/* =====================================================================
   BASE : couleurs, polices, textes, boutons et mise en page générale.
   Utilisé par toutes les pages du site.
   Pour changer une couleur partout, modifie-la dans :root ci-dessous.
   ===================================================================== */

/* ---------- Polices, hébergées avec le site (dossier polices/) ----------
   Cormorant Garamond (titres) et Jost (texte), polices libres (licence OFL).
   Seuls les caractères utiles en français sont gardés, pour un site plus léger. */
@font-face { font-family: "Cormorant Garamond"; src: url("../polices/CormorantGaramond-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../polices/CormorantGaramond-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../polices/CormorantGaramond-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../polices/CormorantGaramond-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../polices/CormorantGaramond-MediumItalic.woff") format("woff"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../polices/Jost-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../polices/Jost-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../polices/Jost-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --creme: #FDF7F0;      /* fond principal */
  --sable: #F5E8DD;      /* fond des sections alternées */
  --rouille: #BA4B2F;    /* couleur du logo : boutons et accents */
  --vieux-rose: #B2786C; /* titres secondaires */
  --poudre: #D9B4A2;     /* cartes et illustrations */
  --sauge: #A8BFA3;      /* touches de vert */
  --vieux-rose-fonce: #93594D; /* petits titres et textes en vieux rose : plus lisible */
  --sauge-fonce: #5A7854;      /* fond vert avec texte blanc : plus lisible */
  --encre: #4A2E28;      /* texte */
  --encre-douce: #6E524A;
  --font-titre: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-texte: "Jost", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--creme); color: var(--encre);
  font-family: var(--font-texte); font-weight: 300; font-size: 1.0625rem; line-height: 1.7;
}
img { max-width: 100%; display: block; }
/* Téléphones : rien ne doit dépasser la largeur de l’écran */
input, select, textarea { max-width: 100%; min-width: 0; }
a, p, h1, h2, h3, li { overflow-wrap: break-word; }
a { color: var(--rouille); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rouille); outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--font-titre); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; color: var(--encre); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
.surtitre { font-family: var(--font-texte); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--vieux-rose-fonce); font-weight: 500; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.texte { max-width: 65ch; }
.pile { display: flex; flex-direction: column; gap: 1.1rem; }


/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font: 500 .98rem var(--font-texte);
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--rouille); transition: background .2s, color .2s;
  max-width: 100%; text-align: center;
}
.btn-plein { background: var(--rouille); color: #fff; }
.btn-plein:hover { background: #9E3E26; border-color: #9E3E26; }
.btn-ligne { background: transparent; color: var(--rouille); }
.btn-ligne:hover { background: var(--rouille); color: #fff; }
/* Sur fond sable, texte du bouton en rouille un peu plus foncé (celui du survol) : plus lisible */
.bloc-sable .btn-ligne { color: #9E3E26; }
.bloc-sable .btn-ligne:hover { color: #fff; }


/* ---------- Sections de page ---------- */
.bloc { padding: clamp(56px, 8vw, 96px) 0; }
.bloc-sable { background: var(--sable); }
.tete-bloc { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2.5rem; max-width: 65ch; }


/* ---------- Citation ---------- */
blockquote { margin: 0; padding: 24px 28px; border-left: 3px solid var(--sauge); background: #F3F6F1; border-radius: 0 18px 18px 0; font-family: var(--font-titre); font-size: 1.4rem; line-height: 1.4; font-style: italic; }


/* ---------- Petite note en bas de section (ex. « non médical ») ---------- */
.note { font-size: .92rem; color: var(--encre-douce); border-top: 1px solid #EBD6C8; padding-top: 1.2rem; margin-top: 2.5rem; max-width: 75ch; }


/* ---------- Formulaires : astérisque et piège à robots ---------- */
.obligatoire { color: var(--rouille); }
.hp { position: absolute; left: -9999px; }
