/* ARCHITECTURE DU GOUT — feuille de style dérivée de DESIGN.md (tirage W596002695) */

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/literata-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/literata-latin-600-normal.woff2") format("woff2");
}

:root {
  --fond: #f4f5ef;
  --surface: #e8ebe0;
  --texte: #4e5638;
  --primaire: #5f7722;
  --accent: #db24a7;
  --filet: #bfc4b0;
  --titres: "Big Shoulders Display", sans-serif;
  --corps: "Literata", serif;
  --gouttiere: 24px;
  --largeur: 1280px;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--titres); font-weight: 800; margin: 0 0 16px; text-align: left; text-transform: none; }
h1 { font-size: 64px; line-height: 0.98; }
h2 { font-size: 40px; line-height: 1; color: var(--accent); }
h3 { font-size: 26px; line-height: 1.1; }
p, ul, ol, dl { margin: 0 0 20px; max-width: 62ch; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }
strong { font-weight: 600; }
a { color: var(--primaire); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--texte); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--texte); color: var(--fond); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

/* ---------- En-tête : liens en grand comme un sommaire, sans fond ---------- */
.entete { padding: 24px 0 0; }
.entete-haut { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-block; line-height: 0; }
.logo img { width: 298px; height: 44px; }
.menu-bouton {
  display: none;
  font-family: var(--titres); font-weight: 800; font-size: 20px; line-height: 1;
  background: transparent; color: var(--texte); border: 2px solid var(--texte);
  padding: 10px 16px; box-shadow: 4px 4px 0 var(--texte); cursor: pointer;
}
.nav-liste {
  list-style: none; margin: 20px 0 0; padding: 0 0 20px; max-width: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
}
.nav-liste li { margin: 0; }
.nav-liste a {
  font-family: var(--titres); font-weight: 800; font-size: 28px; line-height: 1.1;
  color: var(--texte); text-decoration: none; padding-bottom: 2px;
  border-bottom: 4px solid transparent;
}
.nav-liste a:hover, .nav-liste a:focus-visible, .nav-liste a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-liste .nav-don { margin-left: auto; }
.nav-liste .nav-don a {
  position: relative; display: inline-block;
  background: var(--primaire); color: var(--fond); border: 0;
  padding: 10px 22px; font-size: 24px; box-shadow: 5px 5px 0 var(--texte);
}
.nav-liste .nav-don a::after {
  content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px;
  background: var(--fond); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.nav-liste .nav-don a:hover, .nav-liste .nav-don a:focus-visible { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--texte); border-bottom-color: transparent; }

/* ---------- Hero : phrase manifeste sur fond primaire ---------- */
.hero {
  background: var(--primaire); color: var(--fond);
  padding: 64px 0 56px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}
.hero h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 0.95; max-width: 14ch; margin: 0; }
.hero .mission { font-size: 22px; line-height: 1.45; max-width: 58ch; margin: 24px 0 0; }
.hero .mission + .mission { margin-top: 12px; }
.hero a { color: var(--fond); }
.hero a:hover { color: var(--surface); }
.hero-reduit { padding: 48px 0 40px; }
.hero-reduit h1 { font-size: clamp(36px, 5vw, 64px); }

/* ---------- Sections : écran partagé 50/50, colonne gauche sticky ---------- */
main { display: block; }
.section { padding: 56px 0; }
.section-grand { padding: 72px 0 40px; }
.section-bande { padding: 48px 0; }
.partage { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.partage > .gauche { position: sticky; top: 24px; }
.partage > .gauche h2 { margin-bottom: 12px; }
.partage > .gauche .sous { font-size: 17px; max-width: 32ch; margin: 0; }
.partage > .gauche .sous a { font-weight: 600; }
.partage > .droite > :last-child { margin-bottom: 0; }

/* 1. Texte pleine largeur en grand corps */
.grand-corps p { font-size: 24px; line-height: 1.45; max-width: 46ch; }

/* 2. Liste numérotée / index */
.index { list-style: none; padding: 0; margin: 0; max-width: none; }
.index li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; margin: 0 0 36px; align-items: start; }
.index li:last-child { margin-bottom: 0; }
.index .num { font-family: var(--titres); font-weight: 800; font-size: 72px; line-height: 1; color: var(--accent); }
.index h3 { margin-bottom: 8px; }
.index p { margin-bottom: 8px; }

/* 3. Bande de couleur avec appel à l'action */
.bande {
  background: var(--primaire); color: var(--fond);
  clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%, 0 40px);
}
.bande h2 { color: var(--fond); }
.bande a { color: var(--fond); }
.bande .bouton { background: var(--fond); color: var(--primaire); box-shadow: 5px 5px 0 var(--texte); }
.bande .bouton:hover, .bande .bouton:focus-visible { color: var(--primaire); box-shadow: 3px 3px 0 var(--texte); }
.bande .bouton-contour { background: transparent; color: var(--fond); border-color: var(--fond); }

/* 4. Encadré / citation sur aplat */
.encadre {
  background: var(--surface); padding: 32px;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 32px 100%, 0 calc(100% - 32px));
}
.encadre > :last-child { margin-bottom: 0; }
.citation { font-family: var(--titres); font-weight: 800; font-size: 32px; line-height: 1.05; margin: 0 0 16px; max-width: 24ch; }
.encadre-avis { border-left: 8px solid var(--accent); }

/* 5. Texte + note de marge */
.marge { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.note { background: var(--surface); padding: 16px; font-size: 15px; line-height: 1.5; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.note p { margin-bottom: 10px; font-size: 15px; }
.note p:last-child { margin-bottom: 0; }
.note h3 { font-size: 22px; margin-bottom: 8px; }

/* 6. Tableau / liste de définitions */
.definitions { display: grid; grid-template-columns: 220px 1fr; max-width: none; margin: 0; }
.definitions dt, .definitions dd { padding: 14px 0; border-top: 1px solid var(--filet); margin: 0; }
.definitions dt { font-family: var(--titres); font-weight: 800; font-size: 24px; line-height: 1.1; padding-right: 16px; }
.definitions dd { max-width: 62ch; }
.definitions dd p { margin-bottom: 8px; }
.definitions dd p:last-child { margin-bottom: 0; }

/* 7. Deux colonnes texte / image */
.texte-image { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.photo {
  background: var(--primaire); line-height: 0;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}
.photo img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; }
.photo-pleine { margin: 32px 0 0; }

/* Liens sur fond --surface : contraste 4,19 insuffisant en --primaire, donc --texte */
.pied a, .note a, .encadre a, .formulaire a, .message a, .avertissement a, .definitions a, .radios a { color: var(--texte); }
.pied a:hover, .note a:hover, .encadre a:hover, .formulaire a:hover, .message a:hover, .avertissement a:hover, .definitions a:hover, .radios a:hover { color: var(--primaire); }

/* ---------- Boutons ---------- */
.bouton, button.bouton {
  display: inline-block; font-family: var(--titres); font-weight: 800; font-size: 22px; line-height: 1;
  background: var(--primaire); color: var(--fond); text-decoration: none; border: 0;
  padding: 14px 24px; box-shadow: 5px 5px 0 var(--texte); cursor: pointer;
}
.bouton:hover, .bouton:focus-visible { color: var(--fond); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--texte); }
.bouton-contour { background: transparent; color: var(--texte); border: 2px solid var(--texte); padding: 12px 22px; }
.bouton-contour:hover, .bouton-contour:focus-visible { color: var(--texte); }
.boutons { display: flex; flex-wrap: wrap; gap: 20px 24px; margin: 24px 0 0; }
.bouton + .bouton { margin-left: 0; }

/* ---------- Formulaires ---------- */
.formulaire {
  color: var(--texte);
  background: var(--surface); padding: 32px;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 32px 100%, 0 calc(100% - 32px));
}
.formulaire h2, .formulaire h3 { color: var(--texte); }
.champ { margin: 0 0 20px; }
.champ label, .champ legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.champ .aide { font-size: 15px; margin: 0 0 6px; }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ input[type="number"], .champ select, .champ textarea {
  width: 100%; font: inherit; color: var(--texte); background: var(--fond);
  border: 2px solid var(--filet); padding: 12px 14px;
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--primaire); outline: 3px solid var(--accent); outline-offset: 2px; }
.champ input:disabled { background: var(--surface); color: var(--filet); }
.champ input:user-invalid, .champ textarea:user-invalid, .champ select:user-invalid { border-color: var(--accent); }
.case { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.case input { width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--primaire); }
.case label { font-weight: 400; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 12px; }
.radios label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  background: var(--fond); border: 2px solid var(--filet); padding: 10px 16px; cursor: pointer; margin: 0;
}
.radios label:has(input:checked) { border-color: var(--primaire); box-shadow: 4px 4px 0 var(--texte); }
.radios input { accent-color: var(--primaire); width: 20px; height: 20px; margin: 0; }
.piege { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }
.message { color: var(--texte); background: var(--surface); border-left: 6px solid var(--accent); padding: 16px 20px; margin: 0 0 24px; max-width: none; }
.message p { margin: 0; }
.message[hidden] { display: none; }
.avertissement { background: var(--surface); padding: 24px; margin: 0 0 32px; border-left: 8px solid var(--primaire); }
.avertissement p { margin: 0; max-width: none; font-weight: 600; }
.erreur-champ { color: var(--texte); font-size: 15px; font-weight: 600; margin: 6px 0 0; }
.erreur-champ:empty { display: none; }
.transparence { font-size: 15px; }
.transparence dt { font-size: 20px; }

/* ---------- Carte à la demande ---------- */
.carte { margin-top: 24px; }
.carte iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--surface); padding: 40px 0; margin-top: 56px; font-size: 15px; line-height: 1.5;
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%);
}
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.pied h2 { font-size: 24px; color: var(--texte); margin-bottom: 10px; }
.pied p { margin-bottom: 8px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied button { font: inherit; color: var(--texte); background: transparent; border: 0; padding: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.pied button:hover { color: var(--primaire); }
.pied address { font-style: normal; }

/* ---------- Bandeau cookies ---------- */
.cookies {
  position: fixed; left: 24px; bottom: 24px; z-index: 40; max-width: 440px;
  background: var(--texte); color: var(--fond); padding: 24px; font-size: 15px; line-height: 1.5;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.cookies[hidden] { display: none; }
.cookies h2 { font-size: 24px; color: var(--fond); margin-bottom: 8px; }
.cookies p { margin: 0 0 16px; max-width: none; }
.cookies a { color: var(--fond); }
.cookies-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cookies-boutons button {
  font-family: var(--titres); font-weight: 800; font-size: 20px; line-height: 1;
  background: var(--fond); color: var(--texte); border: 2px solid var(--fond); padding: 12px 20px; cursor: pointer;
}
.cookies-boutons button:hover, .cookies-boutons button:focus-visible { background: var(--surface); }

/* ---------- Page 404 / merci ---------- */
.simple { padding: 56px 0; }
.simple p { font-size: 20px; }

/* ---------- Réactivité ---------- */
@media (max-width: 1100px) {
  .texte-image { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .partage { grid-template-columns: 1fr; gap: 24px; }
  .partage > .gauche { position: static; }
  .marge { grid-template-columns: 1fr; }
  .definitions { grid-template-columns: 1fr; }
  .definitions dd { border-top: 0; padding-top: 0; }
  .pied-grille { grid-template-columns: 1fr; }
  .grand-corps p { font-size: 20px; }
}
@media (max-width: 720px) {
  :root { --gouttiere: 16px; }
  body { font-size: 16px; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .entete { padding-top: 16px; }
  .logo img { width: 230px; height: 34px; }
  .menu-bouton { display: inline-block; }
  .nav-liste { display: none; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 16px; padding-bottom: 16px; }
  .nav-liste.ouverte { display: flex; }
  .nav-liste a { font-size: 26px; display: inline-block; }
  .nav-liste .nav-don { margin-left: 0; margin-top: 8px; }
  .nav-liste .nav-don a { display: block; text-align: center; }
  .hero { padding: 48px 0 40px; }
  .hero .mission { font-size: 18px; }
  .section { padding: 48px 0; }
  .section-grand { padding: 56px 0 32px; }
  .section-bande { padding: 40px 0; }
  .grand-corps p { font-size: 19px; }
  .index li { grid-template-columns: 64px 1fr; gap: 16px; margin-bottom: 28px; }
  .index .num { font-size: 56px; }
  .encadre, .formulaire { padding: 20px; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }
  .citation { font-size: 26px; }
  .bouton, button.bouton { font-size: 20px; padding: 12px 20px; }
  .boutons { gap: 16px; }
  .pied { margin-top: 40px; }
  .cookies { left: 0; bottom: 0; max-width: none; width: 100%; padding: 16px; font-size: 14px; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
  .cookies h2 { font-size: 20px; margin-bottom: 2px; }
  .cookies { line-height: 1.4; }
  .cookies p { margin-bottom: 10px; }
  .cookies-boutons button { font-size: 18px; padding: 10px 12px; }
  .carte iframe { height: 280px; }
}
@media print {
  .cookies, .menu-bouton { display: none; }
}
