/* ==========================================================================
   Pharmacie de la Mairie – Paris 12e
   Feuille de style commune à toutes les pages

   Sommaire
   1. Polices et couleurs
   2. Base et boutons
   3. En-tête et navigation
   4. Accueil : bandeau principal, enseigne, infos rapides
   5. Sections et en-têtes de page
   6. Nouvelles missions
   7. Cartes de services avec photo
   8. Blocs photo + texte
   9. Liste des services
   10. Horaires et accès
   11. Rendez-vous
   12. Contact et formulaire
   13. Pied de page
   14. Mentions légales
   15. Version de travail
   16. Écrans larges
   17. Accessibilité et impression
   ========================================================================== */


/* 1. Polices et couleurs --------------------------------------------------- */
/* Polices hébergées avec le site (dossier fonts/) : aucune requête vers Google. */
/* Les polices sont déclarées dans css/polices.css */

/* Mise en page : bandeaux pleine largeur alternant blanc, vert clair et vert profond */
:root {
  --forest: #0B4A32;      /* vert profond : titres, sections sombres */
  --forest-deep: #073624; /* pied de page */
  --green: #14A150;       /* vert vif : boutons, croix allumée */
  --green-dark: #0D7A3C;  /* liens et survols */
  --leaf: #8FDDA9;        /* vert clair vif : accents, formes décoratives */
  --mint: #E7F7ED;        /* vert très clair : fonds de sections */
  --mint-strong: #CDEFD9; /* vert clair soutenu : dégradés, étiquettes */
  --white: #FFFFFF;
  --ink: #10261A;         /* texte principal */
  --muted: #47604F;       /* texte secondaire */
  --on-dark: #CDEBD8;     /* texte secondaire sur fond vert profond */
  --line: #D2E7DA;
  --sun: #F6C453;         /* « ferme bientôt » */
  --error: #B3261E;

  --font-display: "Bricolage Grotesque", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;

  --max: 1180px;
  --gutter: 16px;
  --radius: 14px;
  --radius-lg: 24px;

  /* Motif de petites croix de pharmacie */
  --crosses: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M20 14h4v6h6v4h-6v6h-4v-6h-6v-4h6z' fill='%2314A150' fill-opacity='.10'/%3E%3C/svg%3E");
}


/* 2. Base et boutons ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
html.large-text { font-size: 118.75%; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  color: var(--forest);
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.005em; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--forest); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 54px;
  padding: .75em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--green);
  font: 700 1.05rem/1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--green-dark); }
.btn-secondary:hover { background: var(--mint); color: var(--forest); }
.btn-light { background: var(--white); color: var(--forest); border-color: var(--white); }
.btn-light:hover { background: var(--mint-strong); border-color: var(--mint-strong); color: var(--forest); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-weight: 700;
  color: var(--green-dark);
}

.small { font-size: .92rem; color: var(--muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--forest);
  color: var(--white);
  padding: .6em 1em;
  border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* Photos : cadre commun */
.photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mint-strong);
  max-width: 100%;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Forme décorative vert clair décalée derrière une photo */
.deco { position: relative; isolation: isolate; }
.deco::before {
  content: "";
  position: absolute;
  inset: 18px -14px -14px 18px;
  border-radius: var(--radius-lg);
  background: var(--leaf);
  z-index: -1;
}


/* 3. En-tête et navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  color: var(--forest);
  min-width: 0;
}

/* Croix verte dessinée en CSS */
.brand-mark {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green);
  box-shadow: 0 6px 14px rgba(20, 161, 80, .35);
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--white);
  border-radius: 2px;
}
.brand-mark::before { left: 16px; top: 8px; width: 8px; height: 24px; }
.brand-mark::after  { left: 8px; top: 16px; width: 24px; height: 8px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-place { font-size: .82rem; color: var(--muted); }

.header-tools { display: flex; align-items: center; gap: 6px; }

.text-size,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  font: 700 1rem var(--font-text);
  cursor: pointer;
}
.text-size .plus { font-size: .8em; vertical-align: super; }
.text-size[aria-pressed="true"] { background: var(--forest); color: var(--white); border-color: var(--forest); }

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.menu-bars { position: relative; }
.menu-bars::before,
.menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }

.main-nav { display: none; }

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: .65em .85em;
  border-radius: 999px;
}
.main-nav a:hover { background: var(--mint); color: var(--forest); }
.main-nav a[aria-current="page"] { background: var(--mint-strong); color: var(--forest); }

/* Menu mobile ouvert */
.main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 10px var(--gutter) 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(11, 74, 50, .12);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.main-nav.is-open a { padding: .85em 1em; border-radius: 12px; }
.main-nav.is-open .nav-cta { margin-top: 8px; text-align: center; }

.nav-cta { background: var(--green); color: var(--white) !important; }
.nav-cta:hover { background: var(--green-dark) !important; color: var(--white) !important; }

@media (max-width: 420px) {
  .menu-label { display: none; }
  .brand-name { font-size: 1.02rem; }
}


/* 4. Accueil : bandeau principal, enseigne, infos rapides ------------------ */
.hero {
  position: relative;
  padding: 40px 0 0;
  background:
    var(--crosses),
    linear-gradient(160deg, var(--mint) 0%, var(--mint-strong) 100%);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
}

.hero-grid { display: grid; gap: 36px; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: .4em 1em .4em .7em;
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 4px 14px rgba(11, 74, 50, .08);
}
.hero-badge .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(20, 161, 80, .2);
}

.hero-text h1 { margin-bottom: .3em; }

.lead {
  font-size: 1.22rem;
  color: var(--muted);
  max-width: 33em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 26px 0 18px;
}

.hero-visual { position: relative; padding-bottom: 8px; }

/* Photo en arche, comme les fenêtres de la mairie */
.arch {
  aspect-ratio: 4 / 4.4;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  border: 8px solid var(--white);
  box-shadow: 0 24px 50px rgba(11, 74, 50, .18);
}

/* Enseigne : panneau vert profond avec la croix */
.sign {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--white);
}
.hero-visual .sign { margin: -56px 10px 0; position: relative; box-shadow: 0 18px 40px rgba(7, 54, 36, .3); }

.sign-cross { position: relative; flex: none; width: 66px; height: 66px; }
.sign-cross .bar {
  position: absolute;
  border-radius: 6px;
  background: #2F6B53;
  transition: background-color .6s ease, box-shadow .6s ease;
}
.sign-cross .bar-v { left: 32%; top: 0; width: 36%; height: 100%; }
.sign-cross .bar-h { top: 32%; left: 0; height: 36%; width: 100%; }

.sign[data-state="open"] .bar,
.sign[data-state="closing"] .bar {
  background: #2BD46F;
  box-shadow: 0 0 18px rgba(43, 212, 111, .7), 0 0 46px rgba(43, 212, 111, .4);
}
.sign[data-state="unknown"] .bar { background: #5E8B7D; }

.sign-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.12;
  margin: 0 0 .15em;
}
.sign-detail { margin: 0; color: var(--on-dark); }
.sign[data-state="closing"] .sign-title { color: var(--sun); }

/* Infos rapides sous le bandeau */
.quick {
  list-style: none;
  margin: 36px 0 0;
  padding: 0 0 36px;
  display: grid;
  gap: 12px;
}
.quick li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(11, 74, 50, .07);
  min-width: 0;
}
.quick-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--mint-strong);
  color: var(--green-dark);
}
.quick-icon .icon { width: 22px; height: 22px; }
.quick-label { display: block; font-size: .85rem; color: var(--muted); }
.quick-value { display: block; font-weight: 700; color: var(--forest); }
.quick a { text-decoration: none; color: inherit; }


/* 5. Sections et en-têtes de page ------------------------------------------ */
.section { padding: 60px 0; }
.section-mint { background: var(--mint); }
.section-forest {
  background: var(--forest);
  color: var(--white);
  background-image: var(--crosses);
}
.section-forest h2,
.section-forest h3 { color: var(--white); }
.section-forest p { color: var(--on-dark); }

.section-head { margin-bottom: 34px; max-width: 44em; }
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }
.section-forest .section-head p { color: var(--on-dark); }

/* En-tête des pages intérieures */
.page-head {
  padding: 40px 0 44px;
  background:
    var(--crosses),
    linear-gradient(160deg, var(--mint) 0%, var(--mint-strong) 100%);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}
.page-head-grid { display: grid; gap: 28px; align-items: center; }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); margin-bottom: .3em; }
.page-head p { color: var(--muted); font-size: 1.18rem; max-width: 34em; margin: 0; }
.page-head .photo { aspect-ratio: 16 / 10; border: 6px solid var(--white); box-shadow: 0 18px 40px rgba(11, 74, 50, .15); }

.breadcrumb { font-size: .95rem; margin: 0 0 14px; color: var(--muted); }
.breadcrumb a { color: var(--green-dark); font-weight: 700; }


/* 6. Nouvelles missions ---------------------------------------------------- */
.missions-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.mission {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--mint);
  border-radius: var(--radius-lg);
  color: var(--ink);
}
.mission-icon-wrap {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--green);
  color: var(--white);
}
.mission-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.section-forest .mission h3 { color: var(--forest); margin-bottom: .4em; }
.section-forest .mission p { color: var(--muted); margin-bottom: 1em; }
.mission .law {
  margin: auto 0 0 !important;
  padding-top: 14px;
  border-top: 1px dashed #A9D9BA;
  font-size: .86rem;
}
.mission-more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .95rem; color: var(--green-dark); }

.missions-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}
.missions-foot p { margin: 0; max-width: 46em; }

/* Page détaillée des missions */
.toc { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
  display: inline-block;
  padding: .5em 1em;
  border-radius: 999px;
  background: var(--mint);
  text-decoration: none;
  color: var(--forest);
  font-weight: 700;
}
.toc a:hover { background: var(--mint-strong); }

.mission-detail { padding: 44px 0; border-top: 1px solid var(--line); }
.mission-detail:first-of-type { border-top: 0; }
.mission-detail-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.mission-detail-title .mission-icon-wrap { margin: 0; width: 48px; height: 48px; }
.mission-detail h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.mission-detail-grid { display: grid; gap: 24px; }
.mission-detail h3 { font-size: 1.08rem; color: var(--ink); margin: 1.2em 0 .35em; }
.mission-detail h3:first-child { margin-top: 0; }
.mission-detail li { margin-bottom: .3em; }

.laws {
  padding: 22px;
  background: var(--mint);
  border-radius: var(--radius-lg);
  font-size: .95rem;
}
.laws h3 { margin-top: 0 !important; color: var(--forest) !important; }
.laws ul { list-style: none; padding: 0; margin: 0; }
.laws li { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.laws li:last-child { border-bottom: 0; }

.notice {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--mint);
  border-left: 5px solid var(--green);
}
.notice p:last-child { margin-bottom: 0; }
.notice-warn { background: #FFF6E0; border-left-color: var(--sun); }


/* 7. Cartes de services avec photo ----------------------------------------- */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(11, 74, 50, .09);
}
.feature .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.feature-body { padding: 22px 24px 26px; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; }


/* 8. Blocs photo + texte --------------------------------------------------- */
.media { display: grid; gap: 34px; align-items: center; }
.media .photo { aspect-ratio: 4 / 3; }
.media-text h2 { margin-bottom: .4em; }
.media-text p { color: var(--muted); font-size: 1.08rem; }
.section-forest .media-text p { color: var(--on-dark); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 4px; }
.checklist li { position: relative; padding: 6px 0 6px 36px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D7A3C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }


/* 9. Liste des services ---------------------------------------------------- */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.service {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(11, 74, 50, .06);
}
.service-icon-wrap {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--mint-strong);
  color: var(--green-dark);
}
.service-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service h3 { margin-bottom: .25em; }
.service p { margin: 0; color: var(--muted); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .55em 1.1em;
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 74, 50, .07);
}
.chips .icon { color: var(--green); }


/* 10. Horaires et accès ---------------------------------------------------- */
.hours-grid { display: grid; gap: 32px; align-items: start; }

.hours {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 74, 50, .08);
  font-variant-numeric: tabular-nums;
}
.hours th,
.hours td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 700; width: 46%; }
.hours td.is-closed { color: var(--muted); }
.hours td.is-unknown { color: var(--muted); font-style: italic; }
.hours tr.is-today th,
.hours tr.is-today td { background: var(--green); color: var(--white); }
.today-tag {
  display: inline-block;
  margin-left: .5em;
  padding: .05em .55em;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  font-size: .75rem;
  font-weight: 700;
  vertical-align: middle;
}
@media (min-width: 640px) { .hours th { white-space: nowrap; } }

.on-call {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--white);
}
.on-call-body { padding: 26px; }
.on-call h3 { color: var(--white); margin-bottom: .5em; }
.on-call p { color: var(--on-dark); }
.on-call a { color: var(--white); font-size: 1.1em; }
.on-call-urgent { margin: 0; }
.on-call-cross {
  display: grid;
  place-items: center;
  height: 120px;
  background: var(--forest-deep) var(--crosses);
}
.on-call-cross .sign-cross .bar { background: #2BD46F; box-shadow: 0 0 18px rgba(43, 212, 111, .6); }

.facts { margin: 0 0 24px; display: grid; gap: 16px; }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 0; font-size: 1.18rem; font-weight: 700; color: var(--ink); }

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white) var(--crosses);
  box-shadow: 0 10px 30px rgba(11, 74, 50, .08);
  max-width: 100%;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.map-consent p { margin: 0; color: var(--muted); max-width: 26em; font-size: .95rem; }

.photo-pair { display: grid; gap: 18px; }
.photo-pair figure { margin: 0; }
.photo-pair .photo { aspect-ratio: 4 / 3; }
.photo-pair figcaption { font-size: .92rem; color: var(--muted); margin-top: 10px; }


/* 11. Rendez-vous ---------------------------------------------------------- */
.rdv-band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.rdv-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M20 14h4v6h6v4h-6v6h-4v-6h-6v-4h6z' fill='%23FFFFFF' fill-opacity='.08'/%3E%3C/svg%3E");
  pointer-events: none;
}
.rdv-band .container { position: relative; z-index: 1; }
.rdv-band h2 { color: var(--white); }
.rdv-band p { color: #E3F7EA; }
.rdv-grid { display: grid; gap: 30px; align-items: center; }
.rdv-band .photo { aspect-ratio: 16 / 10; border: 6px solid rgba(255,255,255,.25); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 76px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(11, 74, 50, .07);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }


/* 12. Contact et formulaire ------------------------------------------------ */
.contact-layout { display: grid; gap: 40px; align-items: start; }

.form {
  display: grid;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(11, 74, 50, .08);
}
.form-row { display: grid; gap: 20px; }

.field { display: grid; gap: 6px; min-width: 0; }
.field label,
.field .label { font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: .7em .9em;
  border: 1.5px solid #A9CDB6;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 1.05rem/1.4 var(--font-text);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid rgba(20, 161, 80, .3); border-color: var(--green); }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: .92rem; margin: 0; display: none; }
.field.has-error .field-error { display: block; }

.counter { font-size: .85rem; color: var(--muted); text-align: right; margin: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.check label { font-weight: 400; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 16px 18px; border-radius: var(--radius); font-weight: 700; }
.form-status[hidden] { display: none; }
.form-status.is-success { background: var(--mint); color: var(--forest); border-left: 5px solid var(--green); }
.form-status.is-error { background: #FBE9E7; color: #7A1A13; border-left: 5px solid var(--error); }
.form-status.is-info { background: #FFF6E0; color: #5A4100; border-left: 5px solid var(--sun); }

.contact-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--forest) var(--crosses);
  color: var(--white);
}
.contact-card h2 { color: var(--white); font-size: 1.7rem; margin-bottom: .6em; }
.contact-card p { color: var(--on-dark); }
.contact-card a:not(.btn) { color: var(--white); }
.contact-kind { display: block; font-size: .9rem; color: var(--on-dark); }
.contact-phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1.1;
  text-decoration: none;
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
.contact-card .actions { margin-top: 26px; }


/* 13. Pied de page --------------------------------------------------------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--on-dark);
  padding: 54px 0 30px;
  font-size: .97rem;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: -1px;
}
.site-footer strong { color: var(--white); }
.site-footer a { color: var(--white); }
.site-footer h2 { font-size: 1.15rem; color: var(--white); margin-bottom: .7em; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--white); }

.footer-grid { display: grid; gap: 32px; }
.footer-grid p { margin: 0; }
.footer-hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.footer-bottom p { margin: 0; }


/* 14. Mentions légales ----------------------------------------------------- */
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.6rem; margin: 1.8em 0 .5em; }
.legal h2:first-child { margin-top: 0; }
.legal dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 4px 24px; }
.legal dt { color: var(--muted); font-size: .95rem; margin-top: .6em; }
.legal dd { margin: 0; }
.todo { background: #FFF3D6; padding: 0 .3em; border-radius: 4px; }
.verify { color: var(--muted); font-size: .9em; }

.credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.credits li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; font-size: .95rem; }
.credits .photo { width: 76px; height: 56px; border-radius: 10px; }


/* 15. Version de travail --------------------------------------------------- */
.draft-banner {
  background: #FFF3D6;
  color: #5A4100;
  font-size: .95rem;
  border-bottom: 1px solid #F0D58F;
}
.draft-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.draft-inner p { margin: 0; }
.draft-close {
  flex: none;
  background: transparent;
  border: 1px solid #C9A33F;
  color: #5A4100;
  border-radius: 999px;
  padding: .35em .9em;
  font: inherit;
  cursor: pointer;
}

/* Étiquette « à valider » sur les éléments non confirmés */
body.is-draft [data-a-valider] h3::after,
body.is-draft li[data-a-valider]:not(:has(h3))::after {
  content: "à valider";
  display: inline-block;
  margin-left: .6em;
  padding: .1em .55em;
  border-radius: 999px;
  background: #FFF3D6;
  color: #5A4100;
  font-family: var(--font-text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: middle;
}


/* 16. Écrans larges -------------------------------------------------------- */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .missions-grid { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .photo-pair { grid-template-columns: 1fr 1fr; }
  .legal dl { grid-template-columns: 230px 1fr; }
  .legal dt { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .missions-foot { flex-direction: row; align-items: center; gap: 24px; }
  .missions-foot .btn { flex: none; }
  .form { padding: 34px; }
}

@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .hero-visual .sign { position: absolute; left: -48px; bottom: 36px; margin: 0; max-width: 340px; }
  .arch { aspect-ratio: 4 / 4.6; }
  .quick { margin-top: 48px; padding-bottom: 48px; }

  .section { padding: 92px 0; }

  .missions-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }

  .page-head { padding: 60px 0 56px; }
  .page-head-grid.has-photo { grid-template-columns: 1.1fr 1fr; gap: 64px; }

  .media { grid-template-columns: 1fr 1fr; gap: 72px; }
  .media.reverse .deco,
  .media.reverse .photo { order: 2; }

  .hours-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .access-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }

  .rdv-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }

  .mission-detail-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; }

  .contact-layout { grid-template-columns: 1.5fr 1fr; gap: 56px; }
  .contact-card { position: sticky; top: 100px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1120px) {
  .menu-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 2px; order: 2; }
  .header-tools { order: 3; margin-left: 6px; }
  .nav-home { display: none; }
  .nav-cta { margin-left: 8px; padding: .65em 1.2em !important; }
}


/* 17. Accessibilité et impression ------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .draft-banner, .hero-actions, .skip-link, .map, .form { display: none !important; }
  .section-forest, .site-footer, .contact-card, .on-call, .rdv-band { background: none; color: var(--ink); }
}


/* 18. Encart nutrition et micronutrition ----------------------------------- */
.encart {
  display: grid;
  gap: 26px;
  margin-top: 30px;
  padding: 30px 26px;
  border-radius: 28px;
  background:
    var(--crosses),
    linear-gradient(135deg, var(--leaf) 0%, var(--mint-strong) 100%);
  color: var(--forest);
}
.encart h2, .encart h3 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 800; margin-bottom: .4em; }
.encart p { color: var(--forest); font-size: 1.08rem; max-width: 36em; }
.encart .actions { margin: 22px 0 14px; }
.encart-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 8px 20px rgba(11, 74, 50, .12);
}
.encart-icon .icon { width: 30px; height: 30px; }
.encart-note { font-size: .9rem !important; margin: 0; opacity: .85; }
.encart-themes {
  align-self: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .72);
}
.encart-themes-title { font-weight: 700; margin: 0 0 12px; }
.encart-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.encart-chips li {
  padding: .45em .95em;
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 3px 10px rgba(11, 74, 50, .07);
}
@media (min-width: 900px) {
  .encart { grid-template-columns: 1.15fr 1fr; gap: 40px; padding: 44px; }
}
