@font-face { font-family: "Source Sans"; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Anton"; src: url(fonts/anton-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --encre: #0f3a44;
  --encre-nuit: #0a2a31;
  --orange: #f7941d;
  --orange-vif: #ffa630;
  --soleil: #ffd27a;
  --sable: #fff3df;
  --creme: #fffaf2;
  --texte: #1c2a2e;
  --doux: #51605f;
  --largeur: 1240px;
  --g: clamp(16px, 4vw, 48px);
  --titre: "Anton", "Arial Narrow", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--creme); color: var(--texte); font: 400 1.25rem/1.6 "Source Sans", system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.05; }
h1, h2 { font-family: var(--titre); font-weight: 400; letter-spacing: .005em; }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--encre); }
h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }

.bandeau-demo { margin: 0; padding: 7px var(--g); background: var(--encre-nuit); color: #d7e4e2; font-size: .88rem; text-align: center; }
.credit { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: .75rem; color: rgba(255,255,255,.8); text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 0 rgba(15,58,68,.12); }
.entete-in { max-width: var(--largeur); margin: 0 auto; padding: 12px var(--g); display: flex; align-items: center; gap: 28px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; margin: 0 auto 0 0; color: var(--encre); }
.marque-360 { font-family: var(--titre); font-size: 2rem; line-height: 1; background: var(--orange); color: var(--encre-nuit); padding: 4px 9px 2px; border-radius: 3px; }
.marque-txt { font-family: var(--titre); font-size: 1.35rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 1.05rem; color: var(--encre); padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--orange); }

.bouton { display: inline-block; background: var(--orange); color: var(--encre-nuit); font: 700 1.12rem/1.2 "Source Sans", sans-serif; text-decoration: none; padding: 15px 26px; border: 0; border-radius: 6px; cursor: pointer; text-align: center; transition: background .15s, transform .15s; }
.bouton:hover { background: var(--orange-vif); transform: translateY(-1px); }
.bouton:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.bouton-entete { padding: 12px 20px; white-space: nowrap; }
.bouton-large { width: 100%; padding: 18px 20px; font-size: 1.2rem; }
.bouton-clair { background: #fff; color: var(--encre-nuit); }
.bouton-clair:hover { background: var(--soleil); }
.lien-fort { font-weight: 700; color: var(--encre); text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.menu-mobile { display: none; }

/* Héros : photo plein cadre + formulaire de don */
.heros { position: relative; min-height: min(86vh, 780px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--encre-nuit); }
.heros-photo, .heros-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.heros-photo img { object-fit: cover; object-position: 50% 55%; }
.heros::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,42,49,.9) 0%, rgba(10,42,49,.62) 40%, rgba(10,42,49,0) 68%), linear-gradient(0deg, rgba(10,42,49,.75) 0%, rgba(10,42,49,0) 32%); }
.heros-in { position: relative; z-index: 2; width: 100%; max-width: var(--largeur); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--g) clamp(32px, 4vw, 48px); display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.heros-texte { max-width: 640px; }
.heros h1 { font-size: clamp(3rem, 7vw, 5.6rem); line-height: .98; margin-bottom: .3em; }
.heros-texte p { font-size: clamp(1.2rem, 1.8vw, 1.45rem); max-width: 30em; color: #e9f1f0; }
.heros .credit { z-index: 2; }

.don { background: #fff; color: var(--texte); border-radius: 10px; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
@media (min-width: 1061px) {
  .heros { overflow: visible; z-index: 3; min-height: min(76vh, 740px); }
  .heros-photo { overflow: hidden; }
  .heros-photo img { object-position: 50% 92%; }
  .heros-in { padding-bottom: 0; }
  .don { margin-bottom: -84px; }
  .bande-orange .bande-in { padding-top: 132px; }
  .heros .credit { bottom: auto; top: 10px; }
  .don { display: grid; grid-template-columns: 210px 1fr 300px; grid-template-rows: auto auto; column-gap: 24px; align-items: center; padding: 18px 22px; max-width: 1040px; }
  .don-onglets { grid-column: 1; grid-row: 1; margin: 0; display: flex; flex-direction: column; gap: 4px; }
  .don-montants { grid-column: 2; grid-row: 1; margin: 0; }
  .don-montants legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .don-montants span { padding: 8px 4px; }
  .bouton-large { grid-column: 3; grid-row: 1; height: 100%; }
  .don-recu { grid-column: 2 / 4; grid-row: 2; margin-top: 10px; text-align: right; }
}
.don-onglets { display: grid; grid-template-columns: 1fr 1fr; background: var(--sable); border-radius: 8px; padding: 4px; margin-bottom: 18px; }
.don-onglets button { font: 700 1.05rem "Source Sans", sans-serif; border: 0; background: transparent; color: var(--doux); padding: 11px; border-radius: 6px; cursor: pointer; }
.don-onglets button[aria-selected="true"] { background: var(--encre); color: #fff; }
.don-montants { border: 0; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.don-montants[hidden] { display: none; }
.don-montants legend { font-size: 1rem; color: var(--doux); margin-bottom: 10px; padding: 0; }
.don-montants label { cursor: pointer; }
.don-montants input { position: absolute; opacity: 0; }
.don-montants span { display: block; text-align: center; border: 2px solid #e4d7c2; border-radius: 8px; padding: 10px 4px; font-size: .95rem; color: var(--doux); line-height: 1.25; transition: border-color .15s, background .15s; }
.don-montants strong { display: block; font-family: var(--titre); font-weight: 400; font-size: 1.9rem; color: var(--encre); line-height: 1.1; }
.don-montants input:checked + span { border-color: var(--orange); background: #fff4e3; }
.don-montants input:focus-visible + span { outline: 3px solid var(--encre); outline-offset: 2px; }
.don-recu { margin: 12px 0 0; font-size: .92rem; color: var(--doux); text-align: center; }

/* Bande orange de chiffres */
.bande-orange { background: var(--orange); color: var(--encre-nuit); }
.bande-in { max-width: var(--largeur); margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--g); display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.compte strong { display: block; font-family: var(--titre); font-weight: 400; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; }
.compte strong.a-confirmer { font-size: clamp(1.6rem, 2.6vw, 2.2rem); padding: .35em 0 .2em; border-bottom: 3px dashed var(--encre-nuit); display: inline-block; opacity: .85; }
.compte span { display: block; margin-top: 8px; font-size: 1.05rem; font-weight: 700; line-height: 1.35; }

/* Ce que fait 30 $ */
.ce-que { max-width: var(--largeur); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--g); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.ce-que-photo { position: relative; }
.ce-que-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.ce-que-photo::after { content: ""; position: absolute; left: -18px; bottom: -18px; width: 45%; height: 45%; background: var(--orange); border-radius: 10px; z-index: -1; }
.apports { list-style: none; margin: 0 0 32px; padding: 0; }
.apports li { padding: 18px 0 18px 26px; border-top: 2px solid #f0e2cb; position: relative; }
.apports li::before { content: ""; position: absolute; left: 0; top: 29px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.apports strong { display: block; font-size: 1.3rem; color: var(--encre); }
.comment { background: var(--encre); color: #e9f1f0; border-radius: 10px; padding: 24px 28px; }
.comment h3 { color: var(--soleil); margin-bottom: 10px; }
.comment ol { margin: 0; padding-left: 1.3em; }
.comment li { margin: 6px 0; }

/* Enfants */
.enfants-section { background: var(--sable); padding: clamp(56px, 8vw, 110px) var(--g); }
.enfants-tete, .enfants, .enfants-suite { max-width: var(--largeur); margin-left: auto; margin-right: auto; }
.enfants-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 40px; margin-bottom: 32px; }
.enfants-tete h2 { margin: 0; }
.enfants-tete p { max-width: 26em; color: var(--doux); font-size: 1rem; margin: 0; }
.enfants { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.enfant { display: flex; flex-direction: column; }
.enfant-photo { position: relative; aspect-ratio: 4 / 4.4; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.teinte-1 { background: var(--orange); color: var(--encre-nuit); }
.teinte-2 { background: var(--encre); color: var(--soleil); }
.teinte-3 { background: #e9b949; color: var(--encre-nuit); }
.initiale { font-family: var(--titre); font-size: clamp(7rem, 14vw, 11rem); line-height: 1; opacity: .9; }
.mention { position: absolute; left: 14px; bottom: 12px; font-size: .85rem; font-weight: 700; opacity: .85; }
.enfant h3 { font-family: var(--titre); font-weight: 400; font-size: 2rem; color: var(--encre); margin-bottom: 4px; }
.enfant p { flex: 1; }
.enfant .bouton { align-self: flex-start; }
.enfants-suite { margin-top: 36px; margin-bottom: 0; font-weight: 700; font-size: 1.2rem; }
.enfants-suite a { color: var(--encre); text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Projet eau : photo + panneau qui la chevauche */
.eau { position: relative; max-width: var(--largeur); margin: clamp(56px, 8vw, 110px) auto; padding: 0 var(--g); display: grid; grid-template-columns: 5fr 6fr; align-items: center; }
.eau-photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 10px; }
.eau-panneau { background: var(--encre); color: #e9f1f0; padding: clamp(28px, 4vw, 56px); border-radius: 10px; margin-left: -80px; position: relative; z-index: 1; box-shadow: 0 24px 60px rgba(10,42,49,.25); }
.eau-panneau h2 { color: #fff; }
.eau-etat { display: inline-block; background: var(--orange); color: var(--encre-nuit); font-weight: 700; font-size: .95rem; padding: 4px 12px; border-radius: 4px; margin-bottom: 16px; }
.jauge { margin: 26px 0 28px; }
.jauge-barre { height: 16px; background: rgba(255,255,255,.15); border-radius: 8px; overflow: hidden; }
.jauge-barre span { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--orange), var(--soleil)); border-radius: 8px; }
.jauge-chiffres { margin-top: 10px; font-size: 1.05rem; }
.jauge-chiffres strong { font-family: var(--titre); font-weight: 400; font-size: 1.8rem; color: var(--soleil); margin-right: 4px; }
.credit-eau { left: calc(var(--g) + 12px); right: auto; }

/* Réalisations */
.faits { background: var(--encre-nuit); color: #fff; padding: clamp(56px, 7vw, 96px) var(--g); }
.faits h2, .faits-ligne { max-width: var(--largeur); margin-left: auto; margin-right: auto; }
.faits h2 { color: var(--soleil); margin-bottom: 36px; }
.faits-ligne { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.fait { border-top: 3px solid var(--orange); padding-top: 18px; }
.fait strong { display: block; font-family: var(--titre); font-weight: 400; font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; color: #fff; }
.fait span { display: block; margin-top: 10px; color: #c9d8d6; font-size: 1.08rem; line-height: 1.4; }
.fait strong span { display: inline; margin: 0; color: inherit; font-size: inherit; }

/* À propos */
.apropos { max-width: var(--largeur); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--g); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.apropos-photo { position: relative; }
.apropos-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
.apropos-photo::after { content: ""; position: absolute; right: -18px; top: -18px; width: 40%; height: 40%; background: var(--encre); border-radius: 10px; z-index: -1; }
.apropos blockquote { margin: 0 0 28px; }
.apropos blockquote p { font-family: var(--titre); font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.15; color: var(--encre); }
.apropos blockquote p::before { content: ""; display: block; width: 64px; height: 6px; background: var(--orange); margin-bottom: 22px; border-radius: 3px; }
.apropos blockquote footer { font-weight: 700; color: var(--doux); }

/* Appel final */
.appel { background: var(--orange); text-align: center; padding: clamp(56px, 7vw, 96px) var(--g); }
.appel h2 { color: var(--encre-nuit); max-width: 14em; margin: 0 auto 28px; }
.appel .bouton { width: auto; background: var(--encre-nuit); color: #fff; padding: 18px 36px; }
.appel .bouton:hover { background: var(--encre); }

/* Infolettre */
.infolettre { max-width: var(--largeur); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--g); display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: end; }
.infolettre h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.infolettre-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px 14px; align-items: end; }
.infolettre-form label { grid-row: 1; font-size: 1rem; color: var(--doux); font-weight: 700; }
.infolettre-form input { grid-row: 2; font: inherit; padding: 13px 12px; border: 2px solid #e4d7c2; border-radius: 6px; background: #fff; min-width: 0; }
.infolettre-form button { grid-row: 2; }

/* Pied */
.pied { background: var(--encre-nuit); color: #d2dfdd; }
.pied a { color: #fff; }
.pied-in { max-width: var(--largeur); margin: 0 auto; padding: 56px var(--g) 24px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.marque-pied { color: #fff; margin-bottom: 14px; }
.pied-titre { font: 700 1.05rem "Source Sans", sans-serif; color: var(--soleil); margin-bottom: 8px; letter-spacing: 0; }
.pied p { font-size: 1.02rem; }
.pied-bas { max-width: var(--largeur); margin: 0 auto; padding: 18px var(--g) 32px; border-top: 1px solid #23464d; font-size: .9rem; color: #a9bcba; }

.fenetre { max-width: min(92vw, 30rem); border: 0; border-radius: 10px; padding: 28px; color: var(--texte); background: #fff; }
.fenetre::backdrop { background: rgba(10, 42, 49, .7); }
.fenetre h2 { font-size: 2rem; }

/* Apparitions (seulement si le script tourne et que l'utilisateur accepte le mouvement) */
.anime .ce-que, .anime .enfant, .anime .eau, .anime .apropos, .anime .appel { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.anime .vu { opacity: 1 !important; transform: none !important; }
.anime .enfant:nth-child(2) { transition-delay: .12s; }
.anime .enfant:nth-child(3) { transition-delay: .24s; }
.anime .jauge-barre span { width: 0; transition: width 1.4s cubic-bezier(.2,.7,.2,1) .3s; }

@media (min-width: 1061px) and (max-height: 860px) {
  .heros-in { padding-top: 36px; padding-bottom: 28px; gap: 28px; }
  .heros h1 { font-size: clamp(3rem, 9vh, 4.6rem); }
  .heros-texte p { font-size: 1.2rem; margin-bottom: 0; }
}

/* Tablette */
@media (max-width: 1060px) {
  .nav { display: none; }
  .menu-mobile { display: block; position: relative; }
  .menu-mobile summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--encre); padding: 11px 14px; border: 2px solid #e4d7c2; border-radius: 6px; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile-liens { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 8px; padding: 8px 0; min-width: 230px; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
  .menu-mobile-liens a { display: block; padding: 12px 20px; text-decoration: none; font-weight: 700; color: var(--encre); }
  .entete-in { gap: 12px; }
  .heros-in { grid-template-columns: 1fr; }
  .heros::before { background: linear-gradient(180deg, rgba(10,42,49,.55) 0%, rgba(10,42,49,.85) 55%, rgba(10,42,49,.95) 100%); }
  .don { max-width: 480px; }
  .bande-in, .faits-ligne { grid-template-columns: repeat(2, 1fr); }
  .infolettre { grid-template-columns: 1fr; }
}

/* Téléphone */
@media (max-width: 760px) {
  body { font-size: 1.1875rem; }
  .bandeau-demo { font-size: .8rem; padding: 6px var(--g); }
  .marque-360 { font-size: 1.6rem; }
  .marque-txt { font-size: 1.05rem; }
  .bouton-entete { padding: 11px 14px; font-size: 1rem; }
  .heros { min-height: 0; display: block; }
  .heros-photo { position: relative; display: block; height: 230px; }
  .heros-photo img { object-position: 50% 62%; }
  .heros::before { top: 0; bottom: auto; height: 230px; background: linear-gradient(180deg, rgba(10,42,49,0) 55%, rgba(10,42,49,1) 100%); }
  .heros .credit { top: 8px; bottom: auto; }
  .heros-in { padding-top: 4px; padding-bottom: 40px; gap: 24px; }
  .heros h1 { font-size: 2.9rem; }
  .heros-texte p { font-size: 1.15rem; }
  .don { padding: 16px; }
  .don-montants strong { font-size: 1.6rem; }
  .ce-que, .apropos, .eau, .pied-in { grid-template-columns: 1fr; }
  .ce-que-photo img { aspect-ratio: 4 / 3; }
  .ce-que-photo::after, .apropos-photo::after { display: none; }
  .enfants { grid-template-columns: 1fr; gap: 44px; }
  .enfant-photo { aspect-ratio: 16 / 10; }
  .eau-photo img { aspect-ratio: 4 / 3; }
  .eau-panneau { margin: -48px 12px 0; }
  .credit-eau { top: 8px; bottom: auto; left: auto; right: calc(var(--g) + 12px); }
  .faits-ligne { gap: 32px 20px; }
  .infolettre-form { grid-template-columns: 1fr; }
  .infolettre-form label, .infolettre-form input, .infolettre-form button { grid-row: auto; }
  .infolettre-form button { margin-top: 10px; }
}
@media (max-width: 400px) {
  .bouton-entete .long { display: none; }
  .marque-360 { font-size: 1.35rem; }
  .marque-txt { font-size: .85rem; }
  .menu-mobile summary { padding: 10px; }
  .heros h1 { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bouton:hover { transform: none; } }
