/* Santé Maison : composants Aria déclinés dans la palette ambre (variables de da.css). */
html { scroll-padding-top: calc(var(--header-h, 120px) + 16px); }
body { color: var(--c-texte-2); background: var(--c-fond); line-height: 1.7; }
h1, h2, h3 { color: var(--c-texte); letter-spacing: -0.02em; line-height: 1.15; }
.ico { flex-shrink: 0; color: var(--c-primaire-texte); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--c-primaire-texte); outline-offset: 2px; }

/* Header : bandeau de promesse + barre de verre Aria */
#header { background: transparent; }
.sm-bandeau { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; margin: 0; padding: .45rem 3rem .45rem 1rem;
  background: var(--c-doux); color: var(--c-texte); font-size: .8rem; line-height: 1.4; border-bottom: 1px dashed #e8d5bd; position: relative; }
.sm-bandeau[hidden] { display: none; }
.sm-bandeau p { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; margin: 0; text-align: center; }
.sm-bandeau a { color: var(--c-primaire-texte); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sm-bandeau button { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 999px; color: var(--c-texte); background: transparent; border: 0; cursor: pointer; }
.sm-bandeau button:hover { background: #fff; }
#barre { background: rgba(255, 255, 255, .55); }
#barre a[aria-current="page"] { color: var(--c-texte); }
.sm-ico-bouton { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--c-texte); background: transparent; border: 1px solid transparent; cursor: pointer; }
.sm-ico-bouton:hover { border-color: #e5e5e5; background: #fff; }
.sm-bouton-header a { margin-top: 0 !important; min-height: 40px; align-items: center; }
.sm-recherche { width: min(40rem, calc(100vw - 2rem)); margin: 12vh auto auto; padding: 0; border: 1px dashed #d4d4d4; border-radius: 16px; background: #fff; color: var(--c-texte); }
.sm-recherche::backdrop { background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); }
.sm-recherche-tete { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px dashed #d4d4d4; }
.sm-recherche-tete input { flex: 1; min-height: 44px; border: 0; font-size: 1rem; background: transparent; outline: none; }
.sm-recherche-liste { list-style: none; margin: 0; padding: .5rem; max-height: 60vh; overflow: auto; }
.sm-recherche-liste li { padding: .25rem; }
.sm-recherche-liste a { display: flex; flex-direction: column; padding: .6rem .75rem; border-radius: 12px; text-decoration: none; }
.sm-recherche-liste a:hover { background: var(--c-doux); }
.sm-recherche-liste strong { color: var(--c-texte); font-weight: 600; }
.sm-recherche-liste span { font-size: .75rem; color: var(--c-primaire-texte); }

/* Boutons pilule Aria : primaire neutral-900 plein, secondaire contour ambre */
.sm-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .6rem 1.25rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  border: 1px solid #171717; background: #171717; color: #fff; text-decoration: none; transition: all .3s ease-out; cursor: pointer; }
.sm-btn:hover { background: #fff; color: #171717; }
.sm-btn .ico { color: currentColor; }
.sm-btn--contour { background: transparent; color: var(--c-primaire-texte); border: 2px solid var(--c-primaire-texte); }
.sm-btn--contour:hover { background: var(--c-primaire-texte); color: #fff; }

/* Étiquette pilule (séparateur Aria) et badge de rubrique */
.sm-pilule { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border: 1px solid #e5e5e5; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05); font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--c-texte-2); text-decoration: none; }
a.sm-pilule:hover { border-color: var(--c-primaire-texte); color: var(--c-primaire-texte); }
.sm-badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--c-doux); color: var(--c-secondaire-texte); font-size: .7rem; font-weight: 600; letter-spacing: .02em; }
.sm-sep { position: relative; display: flex; justify-content: center; margin: 0 0 2.25rem; }
.sm-sep::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed #d4d4d4; }
.sm-sep .sm-pilule { position: relative; }

/* Carte Aria à double contour pointillé */
.sm-carte { position: relative; display: block; text-decoration: none; color: inherit; border-radius: 16px; }
.sm-carte::before, .sm-carte::after { content: ""; position: absolute; inset: 0; border: 1px dashed #d4d4d4; border-radius: 16px; transition: transform .3s ease-out; pointer-events: none; }
.sm-carte::before { background: #fff; z-index: 0; }
.sm-carte:hover::before { transform: translate(-4px, -4px); }
.sm-carte:hover::after { transform: translate(4px, 4px); }
.sm-carte > * { position: relative; z-index: 1; transition: transform .3s ease-out; }
.sm-carte:hover > * { transform: translate(-4px, -4px); }
.sm-carte--sable::before { background: var(--carte-fond); }
.sm-carte h2, .sm-carte h3 { display: flex; align-items: center; gap: .35rem; }
.sm-fleche { opacity: 0; transform: translateX(-4px); transition: all .2s ease-out; }
.sm-carte:hover .sm-fleche { opacity: 1; transform: none; }

/* Liste éditoriale : vignette à gauche, texte à droite */
.sm-liste { display: flex; flex-direction: column; gap: 1.25rem; }
.sm-ligne { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
.sm-ligne img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.sm-ligne h2, .sm-ligne h3 { font-size: 1.15rem; margin: .4rem 0 .35rem; font-weight: 700; }
.sm-ligne p { margin: 0; font-size: .95rem; }
.sm-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .6rem; font-size: .78rem; font-weight: 500; color: var(--c-texte-2); }
@media (min-width: 40rem) { .sm-ligne { grid-template-columns: minmax(10rem, 15rem) 1fr; align-items: center; gap: 1.5rem; padding: 1.1rem; } }

/* Grille de cartes */
.sm-grille { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 48rem) { .sm-grille--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .sm-grille--3 { grid-template-columns: repeat(3, 1fr); } }
.sm-tuile { padding: 1rem; height: 100%; }
.sm-tuile > div { display: flex; flex-direction: column; height: 100%; }
.sm-tuile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: .9rem; }
.sm-tuile h2, .sm-tuile h3 { font-size: 1.1rem; margin: .45rem 0 .35rem; font-weight: 700; }
.sm-tuile p { margin: 0; font-size: .92rem; }

/* Panneau pointillé + médaillon (hero Aria) */
.sm-panneau { position: relative; padding: 1rem; border: 1px dashed #d4d4d4; border-radius: 16px; background: linear-gradient(135deg, #fafafa, var(--c-doux)); }
.sm-panneau img { display: block; width: 100%; border-radius: 12px; object-fit: cover; }
.sm-medaillon { position: absolute; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 999px; background: var(--c-doux); border: 8px solid #fff;
  box-shadow: 0 6px 18px rgba(36, 26, 15, .12); left: -1.25rem; bottom: -1.25rem; z-index: 2; }

/* Pages internes */
.sm-page { width: 100%; max-width: 70rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; position: relative; z-index: 20; }
.sm-page-tete { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px dashed #d4d4d4; }
.sm-page-tete h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; margin: 1rem 0; }
.sm-page-tete .sm-intro { font-size: 1.05rem; max-width: 60ch; margin: 0; }
@media (min-width: 56rem) { .sm-page-tete--image { grid-template-columns: 1.1fr .9fr; } }
.sm-page-tete .sm-panneau img { aspect-ratio: 4 / 3; }
.sm-ariane { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .78rem; margin-bottom: 1.25rem; }
.sm-ariane a { color: var(--c-primaire-texte); text-decoration: none; }
.sm-ariane a:hover { text-decoration: underline; }
.sm-section { margin: 0 0 4rem; }
.sm-section > h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 1rem; }
.sm-texte { max-width: min(60ch, 34em); }
.sm-texte p { margin: 0 0 1rem; }
.sm-texte h2 { font-size: 1.4rem; font-weight: 700; margin: 2.25rem 0 .75rem; }
.sm-texte h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.sm-texte ul { padding-left: 1.2rem; list-style: disc; margin: 0 0 1rem; }
.sm-texte a { color: var(--c-primaire-texte); text-decoration: underline; text-underline-offset: 3px; }
.sm-encadre { border: 1px dashed #d4d4d4; border-radius: 16px; padding: 1.5rem; background: #fff; }
.sm-encadre--sable { background: var(--c-doux); border-color: #e8d5bd; }
.sm-encadre-tete { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.sm-encadre-tete h2, .sm-encadre-tete h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.sm-pilules { display: flex; flex-wrap: wrap; gap: .6rem; }
.sm-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2rem; }
.sm-cta h2 { margin: 0; font-size: 1.6rem; font-weight: 800; }
.sm-cta p { margin: 0; max-width: 60ch; }
@media (min-width: 48rem) { .sm-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.sm-portrait { width: 6rem; height: 6rem; border-radius: 999px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(36, 26, 15, .12); background: var(--c-doux); }
.sm-coord { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .sm-coord { grid-template-columns: repeat(3, 1fr); } }
.sm-coord .sm-encadre { display: flex; gap: .75rem; align-items: flex-start; }
.sm-coord strong { display: block; color: var(--c-texte); }
.sm-form { display: grid; gap: 1rem; }
.sm-form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--c-texte); }
.sm-form input, .sm-form textarea, .sm-form select { width: 100%; min-height: 44px; padding: .6rem .8rem; border: 1px dashed #a3a3a3; border-radius: 10px; background: #fff; font: inherit; font-weight: 400; color: var(--c-texte); }
.sm-form textarea { min-height: 9rem; }
.sm-pot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sm-retour { padding: 1rem 1.25rem; border-radius: 12px; font-weight: 500; }
.sm-retour--ok { background: #eef6ea; color: #24451a; }
.sm-retour--erreur { background: #fbeceb; color: #6e1d16; }
@media (min-width: 48rem) { .sm-form-2 { grid-template-columns: 1fr 1fr; } }

/* Article : colonne latérale à gauche en bureau, en-tête Aria */
@media (min-width: 64rem) {
  .ka-grille { grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr); }
  .ka-grille > .ka-cote { order: -1; }
}
/* La requête de conteneur du kit (1fr + 22rem) gagnait sur la règle ci-dessus : l'aside passait dans la
   colonne large et l'article dans 352 px. Même largeur d'aside que le kit (22rem, encarts ≥ 300 px), à gauche. */
@container (min-width: 1000px) {
  html body .sm-article .ka-grille { grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr); }
  html body .sm-article .ka-grille > .ka-cote { order: -1; }
}
.sm-article { max-width: 70rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; position: relative; z-index: 20; }
.sm-article .ka-tete h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: .75rem 0; }
.sm-article .ka-tete .sm-chapo { font-size: 1.1rem; margin: 0 0 1rem; }
.sm-article .ka-tete img { border-radius: 16px; }

/* Pied de page : bande de marque puis deux colonnes */
.sm-pied { margin-top: 4rem; padding: 3rem 0 2rem; border-top: 1px dashed #d4d4d4; background: #fafafa; position: relative; z-index: 20; }
.sm-pied-bande { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; padding: 2rem; border: 1px dashed #d4d4d4; border-radius: 16px;
  background: linear-gradient(135deg, #fff, var(--c-doux)); }
.sm-pied-marque p { margin: .75rem 0 0; font-family: var(--f-titre); font-size: 1.2rem; font-weight: 600; color: var(--c-texte); max-width: 38ch; line-height: 1.4; }
.sm-pied-bande a { margin-top: 0 !important; }
@media (min-width: 48rem) { .sm-pied-bande { flex-direction: row; align-items: center; justify-content: space-between; } }
.sm-pied-colonnes { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem .5rem 1.5rem; }
@media (min-width: 40rem) { .sm-pied-colonnes { grid-template-columns: 1fr 1fr; } }
.sm-pied-titre { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--c-texte-2); margin: 0 0 .75rem; }
.sm-pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.sm-pied li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--c-texte); text-decoration: none; font-size: .92rem; }
.sm-pied li a:hover { color: var(--c-primaire-texte); text-decoration: underline; }
.sm-pied-bas { margin: 0; padding: 1.25rem .5rem 0; border-top: 1px dashed #d4d4d4; font-size: .78rem; }
.sm-article .ka-tete img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.sm-bandeau button { color: var(--c-texte) !important; opacity: 1 !important; }
.sm-portrait-panneau { display: block; max-width: 12rem; padding: .5rem; }
.sm-portrait-panneau img, .sm-page-tete .sm-panneau img.rounded-xl { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.ka-auteur-img { object-fit: cover; object-position: center 25%; }
/* Colonnes de texte ≥ 300 px (page_cassee.colonne_etroite) : icône au-dessus du texte, rembourrages réduits */
.sm-coord .sm-encadre { flex-direction: column; padding: 1rem; }
.sm-grille--3 > .sm-encadre { padding: 1.1rem; }
@media (max-width: 47.99rem) {
  .sm-page { padding-left: 1rem; padding-right: 1rem; }
  .sm-cta { padding: 1.1rem; }
  .sm-encadre { padding: 1.1rem; }
  .sm-bandeau { padding: .45rem 2.6rem .45rem .5rem !important; }
  .sm-pied-bande { padding: 1.1rem; }
  .sm-pied-marque, .sm-pied-marque p { width: 100%; max-width: none; }
  .sm-bandeau p { display: block !important; flex: 1 1 auto; width: 100% !important; max-width: none !important; }
  .sm-bandeau p .ico { display: inline-block; vertical-align: -3px; margin-right: .3rem; }
}

/* Sections en 2 colonnes des pages internes (à propos : texte + chiffres ; contact : formulaire + encadrés) */
.sm-duo { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.sm-duo .sm-texte h2 { margin-top: 0; }
.sm-duo-cote { display: grid; gap: 1.25rem; align-content: start; }
.sm-duo-cote h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.sm-liste-ico { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.sm-liste-ico li { display: flex; gap: .65rem; align-items: flex-start; color: var(--c-texte); }
.sm-liste-ico .ico, .sm-liste-ico svg { flex-shrink: 0; color: #9d5f1a; margin-top: .15rem; }
.sm-chiffres { list-style: none; margin: 0; display: grid; gap: .75rem; padding: 1rem; }
.sm-chiffres a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; padding: 1rem 1.25rem; min-height: 44px; border: 1px dashed #d4d4d4; border-radius: 16px; background: #fff; color: var(--c-texte); text-decoration: none; transition: border-color .3s; }
.sm-chiffres a:hover { border-color: #c57621; }
.sm-chiffres svg { grid-row: span 2; color: #9d5f1a; }
.sm-chiffres strong { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.sm-chiffres span { font-size: .9rem; color: #6b6157; }
@media (min-width: 56rem) {
  .sm-duo { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; }
  .sm-duo--form { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
