/* =========================================================
   PERSONNALISATION : couleurs et typographies du site.
   Charte validée : aubergine et or (carte de visite), fond crème.
   ========================================================= */
:root {
  --creme: #FAF7F2;        /* fond */
  --blanc: #FFFFFF;        /* bandes et encarts */
  --encre: #2A1F2E;        /* texte courant (14,7:1 sur crème) */
  --gris: #5E4E63;         /* texte secondaire (7,2:1) */
  --aubergine: #452B50;    /* titres, liens, boutons, en-tête */
  --aubergine-2: #584060;  /* survols */
  --or: #CAA769;           /* accents, UNIQUEMENT sur aubergine (5,4:1) */
  --or-fonce: #7A5C24;     /* or lisible sur fond clair (5,8:1) */
  --filet: #E4DCE6;        /* bordures discrètes */
  --texte-sur-aubergine: #FAF7F2;
  --texte-sur-aubergine-2: #E9E1EC;

  --police-texte: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-titres: "Josefin Sans", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --largeur: 1120px;
  --rayon: 12px;
  color-scheme: light;
}

/* ---------- Polices auto-hébergées (SIL Open Font License) ---------- */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: 1.125rem;   /* 18 px */
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--aubergine); text-underline-offset: 0.2em; }
a:hover { color: var(--aubergine-2); }
:focus-visible { outline: 3px solid var(--aubergine); outline-offset: 3px; border-radius: 4px; }
.sur-aubergine :focus-visible { outline-color: var(--or); }

h1, h2 {
  font-family: var(--police-titres);
  font-weight: 600;
  color: var(--aubergine);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; color: var(--aubergine); margin: 0 0 0.3em; line-height: 1.3; }
p { margin: 0 0 1em; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.secondaire { color: var(--gris); }
.petit { font-size: 1rem; }

.evitement {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  background: var(--or); color: var(--aubergine); font-weight: 700;
  padding: 10px 16px; border-radius: 8px;
}
.evitement:focus { top: 12px; }

/* ---------- Bandeau d'absence (affiché par site.js) ---------- */
.absence {
  background: var(--or); color: var(--aubergine);
  font-weight: 700; text-align: center; padding: 12px 24px; margin: 0;
}

/* ---------- En-tête ---------- */
.entete { background: var(--aubergine); }
.entete .conteneur {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.marque { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.marque-cercle {
  width: 56px; height: 56px; flex-shrink: 0;
  border: 2px solid var(--or); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.marque-texte { display: flex; flex-direction: column; line-height: 1.3; }
.marque-nom { font-family: var(--police-titres); color: var(--or); font-size: 1.1rem; letter-spacing: 0.12em; }
.marque-sous { color: var(--texte-sur-aubergine); font-size: 0.95rem; }

.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.menu a { color: var(--texte-sur-aubergine); text-decoration: none; padding: 10px 0; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--or); text-decoration: underline; }
.menu .menu-tel {
  color: var(--or); border: 1.5px solid var(--or); border-radius: 8px; padding: 10px 16px;
}
.menu .menu-tel:hover { background: var(--aubergine-2); text-decoration: none; }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.btn {
  display: inline-block; font-weight: 700; font-size: 1.15rem; text-decoration: none;
  padding: 14px 24px; border-radius: 10px; border: 2px solid var(--aubergine);
  min-height: 48px;
}
.btn-plein { background: var(--aubergine); color: var(--texte-sur-aubergine); }
.btn-plein:hover { background: var(--aubergine-2); border-color: var(--aubergine-2); color: var(--texte-sur-aubergine); }
.btn-contour { color: var(--aubergine); background: transparent; }
.btn-contour:hover { background: var(--blanc); }
button.btn { font-family: inherit; cursor: pointer; }

/* Indicateur « joignable maintenant » (affiché par site.js) */
.statut { color: var(--gris); font-size: 1rem; margin: 0; }
.statut::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 8px; vertical-align: 0.05em; background: var(--gris);
}
.statut[data-etat="ouvert"]::before { background: var(--aubergine); box-shadow: 0 0 0 3px var(--or); }

/* ---------- Accueil ---------- */
.hero { padding-top: 72px; padding-bottom: 56px; }
.intro { font-size: 1.3rem; max-width: 40em; margin-bottom: 32px; }
.reperes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  list-style: none; padding: 0; margin: 40px 0 0;
}
.reperes li { border-top: 2px solid var(--or); padding-top: 14px; }
.reperes strong { display: block; }
.reperes span { color: var(--gris); font-size: 1rem; }

.encart {
  background: var(--blanc); border: 1px solid var(--filet); border-radius: 14px;
  padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
}
.encart > div { flex: 1 1 520px; min-width: 0; }
.encart h2 { font-size: 1.5rem; }
.encart p { margin: 0; }
.encart-lien { font-weight: 700; }

.section { padding-top: 64px; padding-bottom: 64px; }
.section-serree { padding-bottom: 64px; }
.bande { background: var(--blanc); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.chapeau { color: var(--gris); max-width: 45em; margin-bottom: 32px; }

.cartes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  list-style: none; padding: 0; margin: 0;
}
.carte { background: var(--creme); border-radius: var(--rayon); padding: 20px 22px; }
.bande .carte { background: var(--creme); }
.carte p { margin: 0; font-size: 1rem; color: var(--gris); }
.lien-suite { display: inline-block; margin-top: 24px; font-weight: 700; padding: 10px 0; }

.deux-colonnes { display: flex; flex-wrap: wrap; gap: 40px; }
.deux-colonnes > .principal { flex: 2 1 520px; min-width: 0; }
.bref {
  flex: 1 1 280px; min-width: 0; background: var(--aubergine); color: var(--texte-sur-aubergine);
  border-radius: 14px; padding: 26px 28px; align-self: flex-start;
}
.bref h3 { font-family: var(--police-titres); font-weight: 400; color: var(--or); font-size: 1.2rem; margin-bottom: 14px; }
.bref ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 1.05rem; }

.etapes {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.etapes li { display: flex; gap: 16px; }
.etape-num {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: var(--aubergine); color: var(--or);
  font-family: var(--police-titres); font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.etapes strong { display: block; margin-bottom: 4px; }
.etapes p { margin: 0; font-size: 1rem; color: var(--gris); }

.trois { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.trois p { font-size: 1rem; margin: 0; }

.urgence {
  border: 2px solid var(--aubergine); border-radius: 14px; padding: 22px 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
}
.urgence .urgence-titre { flex: 0 0 auto; font-family: var(--police-titres); font-weight: 600; color: var(--aubergine); font-size: 1.6rem; margin: 0; }
.urgence p:not(.urgence-titre) { flex: 1 1 420px; min-width: 0; margin: 0; font-size: 1rem; }

/* ---------- Pages intérieures ---------- */
.page-entete { padding-top: 56px; padding-bottom: 8px; }
.page-entete p { max-width: 45em; }
.soins-liste {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px;
  list-style: none; padding: 0; margin: 0;
}
.soins-liste .carte { background: var(--blanc); border: 1px solid var(--filet); }
.soins-liste .carte p { color: var(--encre); }
.bloc { max-width: 46em; margin-bottom: 48px; }
.bloc ul { padding-left: 1.2em; }
.bloc li { margin-bottom: 0.4em; }
.mentions h2 { font-size: 1.4rem; margin-top: 1.6em; }
.mentions p { max-width: 46em; }

/* ---------- Pied de page ---------- */
.pied { background: var(--aubergine); color: var(--texte-sur-aubergine); }
.pied .conteneur {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px;
  padding-top: 48px; padding-bottom: 40px;
}
.pied .colonne { display: flex; flex-direction: column; gap: 6px; }
.pied a { color: var(--texte-sur-aubergine); }
.pied a:hover { color: var(--or); }
.pied .pied-or { color: var(--or); }
.pied-marque { font-family: var(--police-titres); color: var(--or); letter-spacing: 0.12em; }
.pied-titre { font-weight: 700; }
.pied-note { font-size: 0.95rem; color: var(--texte-sur-aubergine-2); }

/* ---------- Barre d'appel fixe sur téléphone ---------- */
.barre-mobile { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .barre-mobile {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    background: var(--aubergine); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .barre-mobile a {
    flex: 1; text-align: center; font-weight: 700; text-decoration: none;
    padding: 12px 8px; border-radius: 10px; min-height: 48px;
  }
  .barre-mobile .appel { background: var(--or); color: var(--aubergine); }
  .barre-mobile .sms { border: 2px solid var(--or); color: var(--or); }
  .hero { padding-top: 40px; }
  .encart { padding: 22px; }
}

/* ---------- Fiche contact imprimable (page infos pratiques) ---------- */
.fiche-frigo { display: none; }
@media print {
  .page-infos > *:not(.fiche-frigo) { display: none !important; }
  .page-infos .fiche-frigo { display: block; color: #000; font-size: 16pt; line-height: 1.4; }
  .fiche-frigo h1 { color: #000; font-size: 26pt; margin-bottom: 4pt; }
  .fiche-frigo .fiche-tel { font-size: 34pt; font-weight: 700; margin: 12pt 0; }
  .fiche-frigo .fiche-urgence { border: 3pt solid #000; padding: 10pt 14pt; margin-top: 18pt; font-weight: 700; }
  .barre-mobile, .evitement, .absence { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* ---------- Page d'attente (jusqu'au 1er décembre 2026) ---------- */
.h-petit { font-size: 1.35rem; }
.trois p:not(:last-child) { margin-bottom: 0.6em; }
.espace { height: 64px; }
