:root {
  --nuit: #1b1740;
  --nuit-2: #2a2460;
  --safran: #f2a93b;
  --braise: #e4572e;
  --laterite: #a63d2a;
  --lotus: #a8336a;
  --riziere: #2a7a6a;
  --papier: #f7f1e8;
  --papier-2: #efe6d8;
  --encre: #1b1740;
  --encre-douce: #4a4570;
  --filet: #d9cdb9;
  --rayon: 14px;
  --police-titre: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --police-texte: "Hanken Grotesk", system-ui, sans-serif;
  --police-khmer: "Moul", "Noto Sans Khmer", serif;
  --largeur: 1120px;
  --gouttiere: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.65 var(--police-texte);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }
.titre-bloc { font-size: 1.35rem; letter-spacing: -.01em; margin-top: .4em; }
h1, h2, h3 {
  font-family: var(--police-titre);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--lotus); text-underline-offset: 3px; }
a:hover { color: var(--laterite); }
:focus-visible { outline: 3px solid var(--safran); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--nuit); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--nuit { background: var(--nuit); color: #f4efe6; }
.section--nuit a:not(.btn) { color: var(--safran); }
.section--papier-2 { background: var(--papier-2); }
.eyebrow {
  font: 700 .875rem/1 var(--police-texte);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--laterite); margin: 0 0 1rem;
}
.section--nuit .eyebrow { color: var(--safran); }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.5; color: var(--encre-douce); max-width: 46ch; }
.section--nuit .lead { color: #d7d1ee; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 232, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--filet);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.brand:hover { color: var(--encre); }
.brand__lamp { width: 34px; height: 34px; flex: none; }
.brand__name { font: 800 1.05rem/1.05 var(--police-titre); letter-spacing: -.01em; }
.brand__name small { display: none; font: 600 .75rem/1.3 var(--police-texte); letter-spacing: .12em; text-transform: uppercase; color: var(--encre-douce); }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--nuit); color: #fff; border: 0; border-radius: 999px;
  min-height: 44px; padding: 10px 16px; font: 700 .9rem var(--police-texte); cursor: pointer;
}
.nav-toggle__bars { width: 16px; height: 12px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle__bars::before { top: 2px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 5px; transform: rotate(-45deg); }
.site-nav {
  position: fixed; inset: 68px 0 auto 0; height: calc(100vh - 68px); height: calc(100dvh - 68px); background: var(--papier);
  padding: 24px var(--gouttiere) 40px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.site-nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
.site-nav__group { margin-bottom: 22px; }
.site-nav__title { font: 700 .75rem/1 var(--police-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--laterite); margin: 0 0 8px; }
.site-nav a {
  display: block; padding: 10px 0; color: var(--encre); text-decoration: none;
  font: 700 1.35rem/1.2 var(--police-titre);
}
.site-nav a[aria-current="page"] { color: var(--lotus); }
.site-nav .btn { display: inline-flex; margin-top: 8px; color: var(--nuit); font: 700 1rem/1 var(--police-texte); }

.brand { margin-right: auto; }
.langue {
  display: inline-flex; gap: 2px; flex: none; padding: 3px;
  background: var(--papier-2); border: 1px solid var(--filet); border-radius: 999px;
}
.langue__choix {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 3px 10px 3px 6px; border-radius: 999px;
  color: var(--encre-douce); text-decoration: none; font: 800 .78rem/1 var(--police-texte); letter-spacing: .06em;
  transition: background .2s, color .2s;
}
.langue__choix svg { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(27, 23, 64, .18); opacity: .55; filter: saturate(.6); transition: opacity .2s, filter .2s; }
a.langue__choix:hover { color: var(--nuit); background: #fff; }
a.langue__choix:hover svg { opacity: 1; filter: none; }
.langue__choix[aria-current] { background: var(--nuit); color: #fff; }
.langue__choix[aria-current] svg { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--safran); }

@media (max-width: 999px) {
  .site-nav {
    display: flex; flex-direction: column;
    padding: 8px var(--gouttiere) calc(24px + env(safe-area-inset-bottom));
    background: radial-gradient(130% 45% at 50% 112%, rgba(242, 169, 59, .38), transparent 62%), var(--nuit);
  }
  .site-nav__group { margin: 0; }
  .langue__choix { min-height: 44px; }
  .site-nav__title { margin: 22px 0 2px; font: 600 .9rem/1.3 var(--police-texte); letter-spacing: 0; text-transform: none; color: #b9b2dd; }
  .site-nav a:not(.btn) {
    display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    font: 700 1.65rem/1.1 var(--police-titre); color: #f7f1e8;
  }
  .site-nav a:not(.btn):active { opacity: .6; }
  .site-nav a:not(.btn)[aria-current="page"] { color: var(--safran); }
  .site-nav a:not(.btn)[aria-current="page"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--safran); box-shadow: 0 0 14px 3px rgba(242, 169, 59, .6); }
  .site-nav a.btn { justify-content: center; width: 100%; min-height: 58px; margin: auto 0 0; padding: 0 24px; font: 700 1.15rem/1 var(--police-texte); }
  .site-nav[data-open="true"] > * { animation: menu-monte .4s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(var(--m, 0) * 45ms); }
  .site-nav > :nth-child(2) { --m: 1; } .site-nav > :nth-child(3) { --m: 2; } .site-nav > :nth-child(4) { --m: 3; } .site-nav > :nth-child(5) { --m: 4; }
}
@keyframes menu-monte { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .site-nav[data-open="true"] > * { animation: none; } }

@media (max-width: 360px) { .site-header__inner { gap: 8px; } .brand { gap: 8px; min-width: 0; } .brand__name { font-size: .95rem; } .nav-toggle { padding: 10px 12px; } }
@media (max-width: 479px) { .langue__choix { padding-right: 7px; } .langue__choix b { display: none; } }
@media (min-width: 480px) { .brand__name small { display: block; } }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; inset: auto; height: auto; padding: 0; overflow: visible; background: none;
    opacity: 1; visibility: visible; transform: none;
    display: flex; align-items: center; gap: 4px;
  }
  .site-nav__group { display: contents; margin: 0; }
  .site-nav__title { display: none; }
  .site-nav a { padding: 8px 12px; font: 600 .95rem/1 var(--police-texte); border-radius: 999px; }
  .site-nav a:not(.btn):hover { background: var(--papier-2); }
  .site-nav a[aria-current="page"] { background: var(--nuit); color: #fff; }
  .site-nav .btn { margin: 0 0 0 8px; padding: 11px 18px; }
  .site-nav a { white-space: nowrap; }
  .langue { order: 3; margin-left: 12px; }
}
@media (min-width: 1000px) and (max-width: 1179px) {
  .site-nav a { padding: 8px 9px; }
  .site-nav .btn { margin-left: 4px; }
  .langue { margin-left: 4px; }
  .langue__choix b { display: none; }
  .langue__choix { padding-right: 3px; }
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--police-texte); text-decoration: none; cursor: pointer;
  background: var(--safran); color: var(--nuit);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: #ffbc55; color: var(--nuit); transform: translateY(-2px); box-shadow: 0 8px 22px -8px rgba(27, 23, 64, .5); }
.btn--sombre { background: var(--nuit); color: #fff; }
.btn--sombre:hover { background: var(--nuit-2); color: #fff; }
.btn--contour { background: transparent; color: inherit; border-color: currentColor; }
.btn--contour:hover { background: rgba(255, 255, 255, .14); color: inherit; box-shadow: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Héros */
.hero {
  position: relative; overflow: hidden; color: #fff8ec;
  background: linear-gradient(180deg, #2a2460 0%, #7a2f6b 28%, #e4572e 62%, #f2a93b 88%);
  min-height: min(92vh, 780px); display: flex; align-items: flex-end;
}
.hero__soleil {
  position: absolute; left: 50%; bottom: 14%; width: min(46vw, 420px); aspect-ratio: 1;
  translate: -50% 0; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, #fff3c9 0 38%, #ffd37a 60%, rgba(255, 190, 90, 0) 72%);
  animation: lever 2.4s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes lever { from { translate: -50% 38%; opacity: 0; } to { translate: -50% 0; opacity: 1; } }
.hero__angkor { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(150px, 26vw, 300px); }
.hero__khmer {
  position: absolute; top: 14%; right: var(--gouttiere);
  font: 400 clamp(2.2rem, 9vw, 7rem)/1 var(--police-khmer);
  color: rgba(255, 244, 220, .1); writing-mode: horizontal-tb; pointer-events: none; user-select: none;
}
.hero__contenu { position: relative; padding-block: clamp(80px, 12vw, 140px) clamp(260px, 52vw, 330px); }
.hero h1 { max-width: 15ch; text-shadow: 0 2px 30px rgba(27, 23, 64, .35); }
.hero .lead { color: #ffeccc; max-width: 40ch; }
.hero .eyebrow { color: #ffe3a6; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38px; background: var(--nuit); }
@media (min-width: 860px) {
  .hero__angkor { left: auto; right: -4%; width: 68%; }
  .hero__soleil { left: 70%; bottom: 10%; }
  .hero h1 { max-width: 16ch; }
  .hero__contenu { padding-bottom: clamp(120px, 14vw, 180px); }
}
.hero .lead { text-shadow: 0 1px 18px rgba(27, 23, 64, .55); }
.hero__ancre { animation: monter .9s .15s both cubic-bezier(.2, .7, .2, 1); }
.hero__ancre:nth-child(2) { animation-delay: .3s; }
.hero__ancre:nth-child(3) { animation-delay: .45s; }
@keyframes monter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.page-hero {
  background: linear-gradient(180deg, var(--nuit) 0%, #3a2766 100%); color: #fff8ec;
  padding-block: clamp(56px, 9vw, 104px) clamp(48px, 7vw, 80px); position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 169, 59, .55), rgba(242, 169, 59, 0) 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); max-width: 18ch; }
.page-hero .lead { color: #ddd6f3; }
.page-hero .eyebrow { color: var(--safran); }

/* Mises en page */
.split { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 860px) { .split { grid-template-columns: 5fr 6fr; align-items: start; } }
.prose p { color: var(--encre-douce); }
.prose strong { color: var(--encre); }

.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.photo-strip a { display: block; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 16 / 10; background: var(--papier-2); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-strip a:hover img { transform: scale(1.05); }

/* Défis de la nuit */
.nuit-grille { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 800px) { .nuit-grille { grid-template-columns: repeat(3, 1fr); } }
.defi { border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--rayon); padding: 26px; background: rgba(255, 255, 255, .04); }
.defi__icone { width: 56px; height: 56px; color: var(--safran); margin-bottom: 14px; }
.defi h3 { color: #fff; margin-bottom: .3em; }
.defi__probleme { font: 700 .875rem/1 var(--police-texte); letter-spacing: .12em; text-transform: uppercase; color: #b9b1e0; margin: 0 0 8px; }
.defi p:last-child { margin: 0; color: #d7d1ee; }

/* Cartes */
.cartes { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 760px) { .cartes { grid-template-columns: repeat(3, 1fr); } }
.carte {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--filet);
  border-radius: var(--rayon); padding: 26px; text-decoration: none; color: var(--encre);
  transition: transform .2s, box-shadow .2s;
}
a.carte:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(27, 23, 64, .45); color: var(--encre); }
.carte__prix { font: 800 2rem/1 var(--police-titre); color: var(--laterite); margin: auto 0 0; padding-top: 20px; }
.carte__prix small { font: 600 .9rem var(--police-texte); color: var(--encre-douce); }
.carte p { color: var(--encre-douce); }

.bandeau-don { background: var(--safran); color: var(--nuit); text-align: center; }
.bandeau-don h2 { max-width: 20ch; margin-inline: auto; }
.bandeau-don .actions { justify-content: center; }
.bandeau-don .btn { background: var(--nuit); color: #fff; }
.bandeau-don .btn:hover { background: var(--nuit-2); }
.bandeau-don .btn--contour { background: transparent; color: var(--nuit); }
.bandeau-don .btn--contour:hover { background: rgba(27, 23, 64, .1); }

/* Situation : familles */
.familles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.famille {
  all: unset; box-sizing: border-box; cursor: pointer; display: block;
  background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.famille:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(27, 23, 64, .5); }
.famille:focus-visible { outline: 3px solid var(--safran); outline-offset: 3px; }
.famille__photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 3 / 2; background: var(--filet); }
.famille__photos img { width: 100%; height: 100%; object-fit: cover; }
.famille__photos img:first-child { grid-row: span 2; }
.famille__photos--une { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.famille__photos--deux { grid-template-rows: 1fr; }
.famille__legende { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; font-weight: 700; }
.famille__legende span { font-weight: 500; font-size: .9rem; color: var(--encre-douce); }

.visionneuse {
  border: 0; padding: 0; background: var(--nuit); color: #fff; border-radius: var(--rayon);
  width: min(94vw, 900px); max-height: 94vh; overflow: auto;
}
.visionneuse::backdrop { background: rgba(14, 11, 36, .82); }
.visionneuse__tete { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.visionneuse__tete h2 { font-size: 1.15rem; margin: 0; }
.visionneuse__image { background: #000; touch-action: pan-y; }
.visionneuse__image img { display: block; width: 100%; aspect-ratio: 5 / 3; max-height: 62vh; object-fit: cover; }
@media (max-width: 599px) {
  .visionneuse { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--rayon) var(--rayon) 0 0; }
}
.visionneuse__pied { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 18px 18px; }
.visionneuse__nav { display: flex; gap: 8px; }
.btn-rond {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer;
}
.btn-rond:hover { background: rgba(255, 255, 255, .14); }

/* Kits */
.kits { display: grid; gap: 18px; margin-top: 12px; }
@media (min-width: 760px) { .kits { grid-template-columns: repeat(2, 1fr); } }
.kit { display: grid; grid-template-columns: 112px 1fr; gap: 20px; background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); padding: 22px; }
.kit__image { background: var(--papier); border-radius: 10px; display: grid; place-items: center; padding: 8px; align-self: start; }
.kit__code { font: 700 .875rem/1 var(--police-texte); letter-spacing: .12em; text-transform: uppercase; color: var(--lotus); margin: 0 0 8px; }
.kit__etiquette { display: inline-block; font-size: .875rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--papier-2); margin-bottom: 8px; }
.kit h3 { margin-bottom: .35em; }
.kit p { font-size: .98rem; color: var(--encre-douce); }
.kit__pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 599px) {
  .actions { flex-direction: column; }
  .actions .btn, .form .btn[type="submit"], .merci .btn, .prose > .btn { width: 100%; }
  .prose > .btn { margin-top: 8px; }
}
.kit__prix { font: 800 1.6rem/1 var(--police-titre); color: var(--laterite); }
.kit .btn { padding: 11px 18px; font-size: .92rem; }
@media (max-width: 520px) { .kit { grid-template-columns: 1fr; } .kit__image { max-width: 150px; } }

.composition { background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); padding: 24px; }
.composition ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.composition li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--filet); break-inside: avoid; }
.composition li span:last-child { font-weight: 700; white-space: nowrap; }
@media (max-width: 520px) { .composition ul { columns: 1; } }

.temoignages { display: grid; gap: 14px; }
@media (min-width: 760px) { .temoignages { grid-template-columns: repeat(2, 1fr); } }
.temoignage { display: block; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--filet); background: #fff; text-decoration: none; }
.temoignage img { width: 100%; }
.temoignage span { display: block; padding: 12px 16px; font-weight: 700; }

/* Formulaires */
.form { display: grid; gap: 18px; }
.form[hidden] { display: none; }
.form__ligne { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__ligne--2 { grid-template-columns: 1fr 1fr; } }
.champ { display: grid; gap: 6px; }
.champ label, .champ legend { font-weight: 700; font-size: .95rem; padding: 0; }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ input[type="number"], .champ textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 2px solid var(--filet); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.champ[hidden] { display: none; }
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--lotus); box-shadow: 0 0 0 4px rgba(168, 51, 106, .15); }
.champ [aria-invalid="true"] { border-color: #c0262d; }
.champ__erreur { color: #b0202a; font-size: .88rem; font-weight: 600; min-height: 0; }
.champ__aide { font-size: .88rem; color: var(--encre-douce); }
fieldset.champ { border: 0; margin: 0; padding: 0; min-width: 0; }
.choix { display: flex; flex-wrap: wrap; gap: 10px; }
.choix label { position: relative; font-weight: 600; }
.choix input { position: absolute; opacity: 0; inset: 0; }
.choix span {
  display: inline-block; padding: 11px 18px; border: 2px solid var(--filet); border-radius: 999px; background: #fff; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.choix input:checked + span { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.choix input:focus-visible + span { outline: 3px solid var(--safran); outline-offset: 2px; }
.choix--cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.choix--cartes span { display: block; border-radius: 12px; text-align: center; }
.form__statut { padding: 16px 18px; border-radius: 10px; font-weight: 600; }
.form__statut[hidden] { display: none; }
.form__statut--erreur { background: #fde8e8; color: #8d1b24; }
.merci { background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); padding: clamp(24px, 5vw, 44px); text-align: center; }
.merci[hidden] { display: none; }
.merci h2 { color: var(--lotus); }
.form-carte { background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); padding: clamp(20px, 4vw, 36px); }
.form-etroit { max-width: 640px; margin-inline: auto; }

/* Soutenir */
.soutien { display: grid; gap: 28px; align-items: start; }
.soutien__village { order: -1; }
@media (min-width: 980px) { .soutien { grid-template-columns: 1.25fr 1fr; } .soutien__village { order: 0; position: sticky; top: 92px; } }
.lignes-don { display: grid; gap: 12px; }
.ligne-don {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center;
  background: #fff; border: 2px solid var(--filet); border-radius: var(--rayon); padding: 16px 18px;
  transition: border-color .2s;
}
.ligne-don[data-actif="true"] { border-color: var(--safran); }
.ligne-don__nom { font-weight: 700; }
.ligne-don__nom small { display: block; font-weight: 500; color: var(--encre-douce); }
.ligne-don__prix { font-weight: 700; color: var(--laterite); white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--filet); border-radius: 999px; background: var(--papier); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font: 700 1.3rem/1 var(--police-texte); cursor: pointer; border-radius: 50%; color: var(--nuit); }
.stepper button:hover { background: var(--papier-2); }
.stepper input { width: 52px; text-align: center; font: 700 1.05rem var(--police-texte); border: 0; background: none; padding: 0; -moz-appearance: textfield; color: inherit; min-height: 44px; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ligne-don__droite { display: flex; align-items: center; gap: 14px; justify-self: end; }
.ligne-don__total { min-width: 70px; text-align: right; font-weight: 800; }
.don-libre { display: flex; align-items: center; gap: 8px; }
.don-libre input { width: 110px; text-align: right; font: 700 1.05rem var(--police-texte); border: 2px solid var(--filet); border-radius: 10px; padding: 8px 10px; min-height: 44px; }
.don-libre input:focus { outline: none; border-color: var(--lotus); }
@media (max-width: 520px) {
  .ligne-don { grid-template-columns: 1fr; }
  .ligne-don__droite { justify-self: stretch; justify-content: space-between; }
}

.village { background: var(--nuit); color: #f4efe6; border-radius: var(--rayon); overflow: hidden; }
.village__ciel { background: linear-gradient(180deg, #14103a, #2e2166 70%, #4b2b72); }
.village svg { width: 100%; height: auto; }
.village__fenetre { fill: #3a3270; transition: fill .5s, filter .5s; }
.village__fenetre[data-allume="true"] { fill: #ffd56b; filter: drop-shadow(0 0 6px #ffb938); }
.village__corps { padding: 20px 22px 24px; }
.village__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.village__total { flex-wrap: wrap; }
.village__total strong { font: 800 2.6rem/1 var(--police-titre); color: var(--safran); white-space: nowrap; }
.village__texte { margin: 6px 0 0; color: #cfc8ea; min-height: 3.3em; }

.barre-don[hidden], .btn[hidden] { display: none; }
.barre-don {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gouttiere); background: var(--nuit); color: #fff; box-shadow: 0 -8px 24px -10px rgba(0, 0, 0, .5);
}
.barre-don strong { font: 800 1.5rem/1 var(--police-titre); color: var(--safran); }
.barre-don .btn { padding: 12px 18px; }
@media (min-width: 980px) { .barre-don { display: none; } }

/* Pied de page */
.site-footer { background: var(--nuit); color: #d9d3ef; padding-block: 56px 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--safran); text-decoration: underline; }
.footer__grille { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer__grille { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__khmer { font: 400 1.5rem/1.4 var(--police-khmer); color: var(--safran); margin: 0 0 8px; }
.footer__khmer-mot { color: var(--braise); }
.footer__titre { font: 700 .875rem/1 var(--police-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--safran); margin: 0 0 12px; }
.footer__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__bas { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; color: #a59ecb; }
.footer__bas a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

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

/* ---- Mouvement discret et repères d'ergonomie ---- */
.site-header { transition: box-shadow .25s, background .25s; }
.site-header[data-defile="true"] { box-shadow: 0 10px 30px -18px rgba(27, 23, 64, .55); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.est-visible { opacity: 1; transform: none; }

.btn:active, .stepper button:active, .btn-rond:active { transform: scale(.96); }
.btn { position: relative; }
.btn[aria-busy="true"]::after {
  content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: tourner .7s linear infinite;
}
@keyframes tourner { to { rotate: 360deg; } }

.stepper input.bump, .ligne-don__total.bump, #total-affiche.bump, #total-barre.bump { animation: bump .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.village__fenetre[data-allume="true"] { animation: allumer .8s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes allumer { 0% { transform: scale(.4); filter: brightness(2.2) drop-shadow(0 0 14px #fff2b0); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.village__fenetre[data-allume="true"] { animation: allumer .8s ease-out, vacille 5s 1s ease-in-out infinite; }
@keyframes vacille { 0%, 100% { opacity: 1; } 47% { opacity: .86; } 50% { opacity: 1; } 76% { opacity: .92; } }

/* Foyer vert + fumée : kit alimentaire ; jaune : kit lumière */
.village__fumee { opacity: 0; }
.village__fumee circle { fill: #e8e3f7; opacity: 0; }
[data-type="alim"] .village__fenetre[data-allume="true"] { fill: #8fe3a8; filter: drop-shadow(0 0 6px #3fbf7a); }
[data-type="alim"] .village__fumee { opacity: 1; }
[data-type="alim"] .village__fumee circle { animation: fumee 4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
[data-type="alim"] .village__fumee circle:nth-child(2) { animation-delay: 1.3s; }
[data-type="alim"] .village__fumee circle:nth-child(3) { animation-delay: 2.6s; }
@keyframes fumee { 0% { transform: translate(0, 0) scale(.6); opacity: .95; } 100% { transform: translate(6px, -20px) scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .village__fumee circle { animation: none !important; opacity: .5; } }
.village__legende { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 0; padding: 0; list-style: none; font-size: .9rem; color: #cfc8ea; }
.village__legende li { display: flex; align-items: center; gap: 8px; }
.village__legende i { width: 10px; height: 9px; border-radius: 2px; display: inline-block; }
.village__legende .alim { background: #8fe3a8; box-shadow: 0 0 6px #3fbf7a; }
.village__legende .lum { background: #ffd56b; box-shadow: 0 0 6px #ffb938; }

.hero__lanternes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lanterne {
  position: absolute; bottom: -20px; left: var(--x); width: var(--t, 10px); height: calc(var(--t, 10px) * 1.3); border-radius: 40% 40% 30% 30%;
  background: radial-gradient(circle at 50% 60%, #fff4c9, #ffc45a 60%, #f2a93b); box-shadow: 0 0 18px 6px rgba(255, 196, 90, .55);
  opacity: 0; animation: monter-lanterne var(--duree, 16s) var(--delai, 0s) linear infinite;
}
@keyframes monter-lanterne {
  0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; }
  50% { transform: translate(18px, -42vh); } 90% { opacity: .5; }
  100% { transform: translate(-10px, -90vh); opacity: 0; }
}

.don-flottant {
  position: fixed; right: 16px; bottom: 16px; z-index: 45; box-shadow: 0 14px 30px -10px rgba(27, 23, 64, .6);
  transform: translateY(90px); opacity: 0; transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
.don-flottant[data-visible="true"] { transform: none; opacity: 1; }
.don-flottant svg { width: 20px; height: 20px; flex: none; overflow: visible; }

.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.puce { border: 2px solid var(--filet); background: var(--papier); border-radius: 999px; padding: 8px 14px; min-height: 44px; font: 700 .92rem var(--police-texte); cursor: pointer; color: var(--nuit); transition: background .15s, border-color .15s, transform .1s; }
.puce:hover { border-color: var(--safran); background: #fff6e2; }
.puce:active { transform: scale(.95); }

.coche { width: 72px; height: 72px; margin: 0 auto 12px; }
.coche circle { fill: none; stroke: var(--riziere); stroke-width: 3; stroke-dasharray: 190; stroke-dashoffset: 190; animation: tracer .6s ease-out forwards; }
.coche path { fill: none; stroke: var(--riziere); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: tracer .4s .5s ease-out forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }

.portrait-ring { width: 104px; height: 104px; border-radius: 50%; border: 4px solid var(--safran); box-shadow: 0 0 0 6px rgba(27, 23, 64, .12); object-fit: cover; margin: 0 auto 18px; }

.carte, .kit, .famille, .temoignage { transition: transform .25s, box-shadow .25s, border-color .25s; }
.kit:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(27, 23, 64, .5); border-color: var(--safran); }
.temoignage:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(27, 23, 64, .5); }
.site-nav a:not(.btn) { transition: background .15s, color .15s; }

.js img.fondu { opacity: 0; transition: opacity .5s; }
.js img.fondu.charge { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .lanterne { display: none; }
}
