/* ==========================================================
   Karine Rouget — Sage-femme à Nîmes
   Palette : bleu nuit + or du pissenlit. Couleurs modifiables dans :root.
   ========================================================== */

@font-face { font-family: "Jost"; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Palette tirée de la photo de Karine : sauge, rose poudré, brun chaud */
  --nuit: #5b6b58;        /* vert sauge profond : fonds forts (héros, bandeaux) */
  --nuit-2: #4f5f4c;      /* sauge foncé : survol, titres */
  --or: #d9b99d;          /* rose sable (pull) : accents, boutons sur fond sauge */
  --or-texte: #8a5a40;    /* terre rosée : texte d'accent lisible sur blanc */
  --or-pale: #f4e7dc;     /* rose poudré très clair : encadrés */
  --lin: #f8f2ec;         /* lin chaud : sections alternées */
  --blanc: #fffdfb;
  --encre: #3b2f28;       /* brun des cheveux, adouci : texte courant */
  --gris: #6e6259;
  --trait: #eaded3;
  --clair: #f3e9df;       /* texte clair sur fond sauge */
  --pied: #3f342d;        /* pied de page brun chaud */
  --font: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blanc); color: var(--encre); font: 400 1.0625rem/1.7 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nuit); text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--or-texte); }
h1, h2, h3 { font-weight: 300; line-height: 1.15; color: var(--nuit-2); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 400; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }
strong { font-weight: 500; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--nuit); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
:target { scroll-margin-top: 100px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font: 500 1rem/1.2 var(--font); text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-or { background: var(--or); color: var(--nuit); }
.btn-or:hover { background: #e6cbb3; color: var(--nuit); }
.btn-nuit { background: var(--nuit); color: #fff; }
.btn-nuit:hover { background: var(--nuit-2); color: #fff; }
.btn-ligne { border-color: currentColor; color: inherit; background: transparent; }
.btn-ligne:hover { background: rgba(255,255,255,.08); color: inherit; }

/* ---------- En-tête ---------- */
.site-header { background: var(--blanc); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { flex: none; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--nuit); }
.brand img { width: 46px; height: 46px; }
.brand-name { font-size: 1.3rem; font-weight: 400; line-height: 1.1; display: block; white-space: nowrap; }
.brand-tag { font-size: .88rem; color: var(--gris); display: block; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav li { margin: 0; position: relative; }
.nav-link { display: block; padding: 10px 9px; text-decoration: none; color: var(--encre); font: 400 1rem var(--font); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-link:hover { color: var(--or-texte); }
.nav-link[aria-current="page"], .is-current > .nav-link { color: var(--nuit); font-weight: 500; text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 8px; }
button.nav-link::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.submenu { list-style: none; margin: 0; padding: 10px 0; position: absolute; left: 0; top: 100%; min-width: 280px; background: var(--blanc); border: 1px solid var(--trait); border-top: 2px solid var(--or); box-shadow: 0 14px 32px rgba(59,47,40,.12); display: none; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { display: block; }
.submenu a { display: block; padding: 9px 20px; text-decoration: none; color: var(--encre); }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--lin); color: var(--nuit); }
.soon { font-size: .78rem; color: var(--or-texte); background: var(--or-pale); border-radius: 999px; padding: 1px 9px; margin-left: 6px; vertical-align: 2px; font-weight: 500; }
.nav .btn { margin-left: 8px; padding: 10px 18px; }

.menu-toggle { display: none; background: none; border: 1.5px solid var(--nuit); color: var(--nuit); border-radius: 999px; padding: 8px 18px; font: 500 .95rem var(--font); cursor: pointer; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-block; }
  .site-header .wrap { position: relative; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); border-bottom: 1px solid var(--trait); padding: 6px 22px 22px; flex-direction: column; align-items: stretch; box-shadow: 0 18px 30px rgba(59,47,40,.1); max-height: calc(100vh - 78px); overflow: auto; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav > ul > li { border-bottom: 1px solid var(--trait); }
  .nav-link { padding: 15px 0; width: 100%; text-align: left; font-size: 1.1rem; }
  .nav-link[aria-current="page"], .is-current > .nav-link { text-underline-offset: 6px; }
  .submenu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 12px 14px; min-width: 0; border-left: 2px solid var(--or); }
  .submenu a { padding: 8px 12px; }
  .nav .btn { display: none; } /* remplacé par la barre fixe en bas */
}

/* ---------- Héros (accueil) ---------- */
.hero { background: var(--nuit); color: var(--clair); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; min-height: min(78vh, 640px); padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: #fff; }
.hero h1 span { display: block; color: var(--or-pale); font-size: .5em; margin-top: .4em; letter-spacing: 0; }
.hero .lead { color: var(--clair); font-size: 1.2rem; font-weight: 300; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .btn-ligne { color: #fff; }
.hero-flower { position: relative; justify-self: center; width: min(460px, 90%); aspect-ratio: 1; }
.hero-flower::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(244,231,220,.35) 0%, rgba(244,231,220,0) 68%); }
.hero-flower img { position: relative; width: 100%; height: 100%; animation: tourne 160s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-flower img { animation: none; } }
.hero-address { margin-top: 26px; font-size: .95rem; color: #e2d6c9; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; padding-bottom: 44px; }
  .hero-flower { order: -1; width: 190px; justify-self: start; margin-bottom: -8px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-lin { background: var(--lin); }
.intro { max-width: 640px; margin-bottom: 36px; }
.intro p { color: var(--gris); font-size: 1.15rem; font-weight: 300; }

/* Soins regroupés par moment de vie */
.moments { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--trait); }
.moment { padding: 32px 30px 10px 0; }
.moment + .moment { padding-left: 30px; border-left: 1px solid var(--trait); }
.moment h3 { font-size: 1.05rem; font-weight: 500; color: var(--or-texte); margin-bottom: 18px; }
.moment ul, ul.moment { list-style: none; padding: 0; margin: 0; }
.moment li, ul.moment li { margin: 0; padding: 0; }
ul.moment li::before { display: none; }
.moment a { display: block; padding: 14px 0; border-bottom: 1px solid var(--trait); text-decoration: none; color: var(--nuit); }
.moment a:hover { color: var(--or-texte); }
.moment a strong { display: block; font-size: 1.2rem; font-weight: 400; }
.moment a small { display: block; color: var(--gris); font-size: .95rem; margin-top: 2px; }
@media (max-width: 860px) {
  .moments { grid-template-columns: 1fr; border-top: 0; }
  .moment, .moment + .moment { padding: 0 0 26px; border-left: 0; }
}

/* À propos */
.apropos { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.photo { aspect-ratio: 4/5; background: var(--or-pale) url("../img/pissenlit.webp") center/70% no-repeat; border-radius: 200px 200px 6px 6px; overflow: hidden; }
.photo picture, .photo img { display:block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.parcours { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.parcours li { border-top: 2px solid var(--or); padding-top: 12px; margin: 0; font-size: .98rem; color: var(--gris); }
.parcours b { display: block; color: var(--nuit); font-weight: 500; font-size: 1.05rem; }
@media (max-width: 860px) { .apropos { grid-template-columns: 1fr; gap: 30px; } .photo { max-width: 280px; } }

/* Infos pratiques */
.pratique { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--blanc); border: 1px solid var(--trait); }
.pratique .infos { padding: 40px; }
.pratique iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; background: var(--lin); }
.infos dl { margin: 0 0 26px; }
.infos dt { color: var(--or-texte); font-weight: 500; font-size: .95rem; margin-top: 18px; }
.infos dt:first-child { margin-top: 0; }
.infos dd { margin: 2px 0 0; }
.tel { font-size: 1.6rem; font-weight: 300; color: var(--nuit); text-decoration: none; }
@media (max-width: 860px) { .pratique { grid-template-columns: 1fr; } .pratique .infos { padding: 26px; } }

/* ---------- Pages intérieures ---------- */
.page-head { background: var(--nuit); color: var(--clair); padding: 46px 0 50px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; top: 50%; width: 300px; height: 300px; transform: translateY(-50%); background: url("../img/pissenlit.webp") center/contain no-repeat; opacity: .55; pointer-events: none; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; max-width: 15em; }
.page-head .lead { font-size: 1.18rem; font-weight: 300; max-width: 36em; margin: 0; }
.crumbs { font-size: .92rem; margin-bottom: 14px; color: #e2d6c9; }
.crumbs a { color: var(--clair); text-decoration-color: rgba(217,185,157,.7); }
@media (max-width: 700px) { .page-head::after { width: 170px; height: 170px; right: -50px; top: 26px; transform: none; opacity: .35; } }

.content { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.prose > *:first-child { margin-top: 0; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { padding-left: 24px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--or); }
.etapes { list-style: none; padding: 0; counter-reset: e; }
.etapes li { counter-increment: e; padding-left: 48px; position: relative; margin-bottom: 18px; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--or); color: var(--or-texte); display: grid; place-items: center; font-weight: 500; font-size: .95rem; }
.encadre { background: var(--or-pale); padding: 20px 24px; margin: 1.6em 0; border-radius: 4px; }
.encadre p:last-child { margin: 0; }
@media (max-width: 900px) { .content { grid-template-columns: 1fr; gap: 40px; } }

.aside { position: sticky; top: 104px; display: grid; gap: 16px; }
.rdv { background: var(--nuit); color: var(--clair); padding: 26px; }
.rdv h2 { color: #fff; font-size: 1.3rem; font-weight: 400; }
.rdv .tel { color: #fff; display: block; margin-bottom: 16px; }
.rdv .btn { width: 100%; }
.adresse { padding: 4px 0 0; font-size: .97rem; color: var(--gris); }
.adresse b { color: var(--nuit); font-weight: 500; }
@media (max-width: 900px) { .aside { position: static; } }

/* Bandeau RDV */
.bandeau { background: var(--nuit); color: var(--clair); }
.bandeau .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.bandeau h2 { color: #fff; margin: 0; font-size: 1.7rem; }
.bandeau p { margin: 4px 0 0; }
.bandeau .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bandeau .btn-ligne { color: #fff; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--pied); color: #e2d6c9; padding: 54px 0 30px; font-size: .97rem; }
.site-footer a { color: var(--clair); text-decoration: none; }
.site-footer a:hover { color: var(--or); }
.site-footer h2 { font-size: 1rem; font-weight: 500; color: var(--or); margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bas { border-top: 1px solid #57493f; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Barre RDV fixe (mobile) ---------- */
.barre-rdv { display: none; }
@media (max-width: 1100px) {
  .barre-rdv { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--blanc); border-top: 1px solid var(--trait); box-shadow: 0 -6px 20px rgba(59,47,40,.08); }
  .barre-rdv .btn { padding: 12px 10px; }
  body { padding-bottom: 76px; }
}
