/* bebe-moi.fr : un carnet de naissance. Creme, peche, sauge ; images en arche. */
:root {
  --creme: #fdf7f1; --papier: #fffdfa; --peche: #f4d7c6; --terre: #c2634a; --terre-f: #8f4130;
  --sauge: #e3ecdf; --sauge-f: #4d6b47; --encre: #3a2f2b; --doux: #7a6a62; --filet: #ecdfd4;
  --titre: 'Lora', Georgia, serif; --texte: 'Nunito', 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 400 1.1rem/1.75 var(--texte); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terre-f); text-underline-offset: .2em; }
a:hover { color: var(--terre); }
:focus-visible { outline: 3px solid var(--terre); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.25; color: var(--encre); }
.sauter { position: absolute; left: -999px; } .sauter:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 9; }
.largeur { width: min(100% - 2rem, 68rem); margin-inline: auto; }

/* en-tete centre */
.berceau { text-align: center; padding: 1.6rem 1rem .4rem; background: var(--papier); border-bottom: 1px solid var(--filet); }
.enseigne { display: inline-flex; align-items: center; gap: .55rem; font: 600 2rem/1 var(--titre); color: var(--encre); text-decoration: none; margin: 0; }
.enseigne i { color: var(--terre); }
.lune { width: 2rem; height: 2rem; fill: var(--terre); }
.lune circle { fill: var(--sauge-f); }
.berceau__d { margin: .45rem 0 1rem; color: var(--doux); font-size: .95rem; }
.mobiles { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; padding-bottom: 1rem; }
.mobiles a { padding: .45rem 1rem; border-radius: 999px; background: var(--creme); border: 1px solid var(--filet); color: var(--encre); text-decoration: none; font-weight: 600; font-size: .95rem; }
.mobiles a:hover, .mobiles a[aria-current] { background: var(--peche); border-color: var(--peche); }

/* accueil */
.accueil-haut { width: min(100% - 2rem, 68rem); margin: 3rem auto 2.5rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .accueil-haut { grid-template-columns: 1fr 1fr; } }
.accueil-haut h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.3rem); margin: 0 0 1rem; }
.accueil-haut p { color: var(--doux); font-size: 1.15rem; margin: 0; }
.etapes { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 2px dotted var(--terre); }
.etapes li { position: relative; margin-bottom: .9rem; }
.etapes li::before { content: ""; position: absolute; left: calc(-1.4rem - 8px); top: 1.1rem; width: 14px; height: 14px; border-radius: 50%; background: var(--peche); border: 2px solid var(--terre); }
.etapes a { display: block; background: var(--papier); border: 1px solid var(--filet); border-radius: 18px; padding: .8rem 1.2rem; text-decoration: none; color: var(--encre); }
.etapes a:hover { border-color: var(--terre); }
.etapes__q { display: block; font: 600 1.15rem/1.3 var(--titre); }
.etapes__n { font-size: .9rem; color: var(--doux); }
.etapes--404 { margin: 1rem 0 3rem; }
.titre-doux { display: flex; align-items: center; gap: .5rem; font-size: 1.5rem; margin: 2rem 0 1.2rem; }
.feuille { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--sauge-f); stroke-width: 1.8; }
.trio { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.duo { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); margin-bottom: 3rem; }
.vignette__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 999px 999px 18px 18px; }
.vignette__r { margin: .9rem 0 .2rem; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sauge-f); }
.vignette h3 { margin: 0 0 .4rem; font-size: 1.25rem; }
.vignette h3 a { color: var(--encre); text-decoration: none; }
.vignette h3 a:hover { color: var(--terre); }
.vignette__d { margin: 0; color: var(--doux); font-size: 1rem; line-height: 1.6; }
.questions { list-style: none; padding: 0; margin: 2.2rem 0 1rem; border-top: 1px solid var(--filet); }
.questions li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--filet); }
.questions a { color: var(--encre); font-weight: 600; text-decoration: none; }
.questions a:hover { color: var(--terre); }
.questions span { font-size: .85rem; color: var(--doux); white-space: nowrap; }
.suite { color: var(--doux); margin-bottom: 3rem; }

/* article : colonne unique centree, image en arche */
.page-carnet { width: min(100% - 2rem, 46rem); margin: 2.5rem auto 2rem; }
.page-carnet__tete { text-align: center; margin-bottom: 1.8rem; }
.pilule { display: inline-block; padding: .35rem .9rem; border-radius: 999px; background: var(--sauge); color: var(--sauge-f); font-weight: 700; font-size: .85rem; text-decoration: none; }
.page-carnet h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); margin: .9rem 0 .8rem; }
.page-carnet__m { color: var(--doux); font-size: .92rem; margin: 0; }
.arche { margin: 0 0 2.2rem; }
.arche img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 280px 280px 22px 22px; }
.texte-carnet > * { margin-block: 0 1.1em; }
.texte-carnet h2 { font-size: 1.6rem; margin: 2em 0 .6em; }
.texte-carnet h2::after { content: ""; display: block; width: 3rem; height: 3px; border-radius: 3px; background: var(--peche); margin-top: .5rem; }
.texte-carnet h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; color: var(--terre-f); }
.texte-carnet li { margin-bottom: .4em; }
.texte-carnet li::marker { color: var(--terre); }
.texte-carnet .grp-en-bref { background: var(--sauge); border-radius: 22px; padding: 1.1rem 1.4rem; }
.texte-carnet .grp-en-bref > :last-child { margin-bottom: 0; }
.texte-carnet .grp-table-wrap { overflow-x: auto; }
.texte-carnet table { width: 100%; border-collapse: collapse; background: var(--papier); border-radius: 14px; overflow: hidden; font-size: .97rem; }
.texte-carnet th { background: var(--peche); text-align: left; font-weight: 700; }
.texte-carnet th, .texte-carnet td { padding: .65rem .85rem; border-bottom: 1px solid var(--filet); vertical-align: top; }
.texte-carnet .grp-sources-date, .texte-carnet .grp-sources-caveat { font-size: .9rem; color: var(--doux); }
.texte-carnet .grp-sources { font-size: .88rem; color: var(--doux); padding-left: 1.3rem; word-break: break-word; }
.texte-carnet .grp-mesh, .texte-carnet .grp-mesh-link { display: block; background: var(--papier); border: 1px dashed var(--terre); border-radius: 14px; padding: .8rem 1rem; }
.voisines { margin-bottom: 2rem; }
.voisines ul { list-style: none; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.voisines a { display: block; height: 100%; background: var(--papier); border: 1px solid var(--filet); border-radius: 16px; padding: .9rem 1.1rem; color: var(--encre); text-decoration: none; font-weight: 600; }
.voisines a:hover { border-color: var(--terre); }

/* rubriques */
.rubrique-tete { text-align: center; width: min(100% - 2rem, 50rem); margin: 2.5rem auto 2.5rem; padding: 2.4rem 1.5rem 2rem; background: var(--peche); border-radius: 260px 260px 24px 24px; }
.rubrique-tete__s { margin: 0; font-weight: 700; color: var(--terre-f); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.rubrique-tete h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); margin: .4rem 0 .6rem; }
.rubrique-tete p { margin: 0; color: var(--encre); }
.vide { text-align: center; color: var(--doux); margin-bottom: 3rem; }

/* pied */
.couverture { background: var(--peche); margin-top: 3rem; position: relative; }
.vague { display: block; width: 100%; height: 40px; fill: var(--peche); position: absolute; top: -39px; }
.couverture__z { width: min(100% - 2rem, 68rem); margin-inline: auto; display: grid; gap: 2rem; padding: 2.5rem 0 1.6rem; }
@media (min-width: 800px) { .couverture__z { grid-template-columns: 2fr 1fr 1fr; } }
.enseigne--pied { font-size: 1.5rem; margin-bottom: .8rem; }
.couverture p { margin: 0; line-height: 1.6; max-width: 32rem; }
.couverture nav { display: flex; flex-direction: column; gap: .4rem; }
.couverture nav a { color: var(--encre); text-decoration: none; }
.couverture nav a:hover { color: var(--terre-f); text-decoration: underline; }
.couverture__t { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--terre-f); margin-bottom: .3rem !important; }
.couverture__bas { width: min(100% - 2rem, 68rem); margin: 0 auto !important; padding: 1rem 0 1.4rem; border-top: 1px solid rgba(0,0,0,.08); font-size: .88rem; max-width: none !important; }
body { overflow-wrap: break-word; }
