/* ============================================================
   CoinPhoto – Concours Photo (mobile first)
   ============================================================ */

:root {
  --bg:          #0c0b0a;
  --bg-grad-1:   #161310;
  --bg-grad-2:   #0a0908;
  --card:        #18161400;          /* card uses gradient below */
  --card-bg-1:   #1c1916;
  --card-bg-2:   #141210;
  --input:       #211d19;
  --input-border:#3a322b;
  --orange:      #f7901e;
  --orange-2:    #ff7a00;
  --orange-soft: #ffb24d;
  --text:        #f3f1ee;
  --text-mut:    #9c958c;
  --text-dim:    #6f685f;
  --border:      rgba(247,144,30,.18);
  --radius:      16px;
  --shadow:      0 10px 30px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 70% 0%, #221a12 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2) 40%, var(--bg));
  background-attachment: fixed;
  line-height: 1.45;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

.accent { color: var(--orange); }

svg { width: 1em; height: 1em; display: block; }

a { text-decoration: none; color: inherit; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 15px 22px;
  cursor: pointer;
  color: #fff;
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary {
  background: linear-gradient(180deg, #ffa033, var(--orange-2));
  box-shadow: 0 8px 22px rgba(255,122,0,.35);
}
.btn-primary:active { transform: translateY(1px) scale(.99); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(12,11,10,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  color: var(--orange);
  filter: drop-shadow(0 0 6px rgba(247,144,30,.5));
}
.brand-logo svg { width: 30px; height: 30px; }
.brand-text strong {
  display: block; font-size: 1.05rem; letter-spacing: .5px; line-height: 1;
}
.brand-text small {
  display: block; font-size: .56rem; letter-spacing: 2.5px;
  color: var(--text-mut); margin-top: 3px;
}
.burger {
  background: none; border: none; color: var(--orange);
  padding: 6px; cursor: pointer;
}
.burger svg { width: 28px; height: 28px; }

.mobile-nav {
  display: flex; flex-direction: column;
  background: var(--card-bg-1);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a {
  padding: 14px 22px;
  border-top: 1px solid rgba(255,255,255,.04);
  font-weight: 600;
}
.mobile-nav a:active { background: rgba(247,144,30,.08); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 30px 20px 26px;
  overflow: hidden;
}
.hero-camera {
  position: absolute;
  top: 18px; right: -60px;
  width: 75%; height: 240px;
  background:
    radial-gradient(circle at 60% 45%, rgba(255,138,0,.55) 0%, rgba(255,90,0,.15) 30%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.hero-camera img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: right center;
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
  margin: 0;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: .92;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffd089 0%, var(--orange) 45%, #c75a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 38px rgba(255,128,0,.45);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.6));
}
.hero-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 14px; max-width: 320px;
}
.hero-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.hero-divider svg { width: 22px; height: 22px; color: var(--orange); }
.hero-lead {
  margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: 1px;
}
.hero-sub {
  margin: 6px 0 22px; font-size: .82rem; font-weight: 600;
  letter-spacing: 1.5px; color: var(--text-mut);
}
.hero-cta { padding: 14px 26px; }

/* ============ CARTES ============ */
.card {
  margin: 16px;
  padding: 22px 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-bg-1), var(--card-bg-2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.card-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  color: var(--orange);
  border: 1.5px solid rgba(247,144,30,.5);
  box-shadow: 0 0 16px rgba(247,144,30,.25), inset 0 0 12px rgba(247,144,30,.12);
}
.card-icon svg { width: 22px; height: 22px; }
.card-head h2 {
  margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: .5px;
}
.card-note { margin: 0 0 16px; color: var(--text-mut); font-size: .92rem; }

/* ---------- Dropzone ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px;
  padding: 30px 18px;
  border: 1.5px dashed var(--input-border);
  border-radius: 14px;
  background: rgba(255,255,255,.012);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone.dragover { border-color: var(--orange); background: rgba(247,144,30,.07); }
.dropzone-icon { color: var(--orange); margin-bottom: 4px; }
.dropzone-icon svg { width: 42px; height: 42px; }
.dropzone-title { font-weight: 700; font-size: 1.02rem; }
.dropzone-sub { color: var(--text-mut); font-size: .9rem; }
.dropzone-formats { color: var(--text-dim); font-size: .76rem; margin-top: 6px; }

/* ---------- Aperçu de la photo (sous la zone d'upload) ---------- */
.file-list { list-style: none; margin: 12px 0 0; padding: 0; }
.file-list li.preview {
  display: flex; flex-direction: column; align-items: stretch;
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  overflow: hidden;
  animation: popIn .35s ease both;
}
.file-list .preview-img {
  width: 100%; max-height: 220px; object-fit: cover; display: block; background: #000;
}
.file-list .preview-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
}
.file-list .preview-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-list .fname { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fsize { color: var(--text-dim); font-size: .73rem; }
.file-list .fremove {
  flex-shrink: 0; background: none; border: 1px solid var(--input-border);
  border-radius: 8px; color: var(--text-mut); cursor: pointer; padding: 7px;
  transition: color .2s, border-color .2s;
}
.file-list .fremove:hover { color: var(--orange); border-color: var(--orange); }
.file-list .fremove svg { width: 18px; height: 18px; }

/* ---------- Champs ---------- */
.field { position: relative; margin-top: 12px; }
.field-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-mut); pointer-events: none;
}
.field-icon svg { width: 20px; height: 20px; }
.field input {
  width: 100%;
  padding: 15px 14px 15px 44px;
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: 11px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--text-mut); }
.field input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,144,30,.15); }
.field input.invalid { border-color: #e0533c; box-shadow: 0 0 0 3px rgba(224,83,60,.18); }

/* ---------- Liste déroulante (sujet) ---------- */
.field-select { margin-top: 0; }
.field-select select {
  width: 100%;
  padding: 15px 42px 15px 44px;
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: 11px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.field-select select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,144,30,.15); }
.field-select select:disabled { color: var(--text-mut); cursor: not-allowed; }
.field-select select option { background: #1c1916; color: var(--text); }
.select-chevron {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--orange); pointer-events: none;
}
.select-chevron svg { width: 20px; height: 20px; }

/* ---------- Cases à cocher (consentements) ---------- */
.check {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 14px; cursor: pointer;
  font-size: .84rem; line-height: 1.4; color: var(--text-mut);
}
.check input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.check-box {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 6px; border: 1.5px solid var(--input-border);
  background: var(--input);
  display: grid; place-items: center; color: transparent;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.check-box svg { width: 15px; height: 15px; }
.check input:checked + .check-box {
  background: linear-gradient(180deg, #ffa033, var(--orange-2));
  border-color: var(--orange); color: #fff;
}
.check input:focus-visible + .check-box { box-shadow: 0 0 0 3px rgba(247,144,30,.25); }
.check-text .req { color: var(--orange); font-weight: 700; }
.check.invalid .check-box { border-color: #e0533c; box-shadow: 0 0 0 3px rgba(224,83,60,.18); }

#submitBtn { margin-top: 18px; }

.form-msg {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 10px;
  font-size: .9rem; text-align: center;
}
.form-msg.ok    { background: rgba(46,160,90,.15); border: 1px solid rgba(46,160,90,.5); color: #8ee2ad; }
.form-msg.error { background: rgba(224,83,60,.13); border: 1px solid rgba(224,83,60,.5); color: #f0a99c; }

.secure-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 16px 0 0; color: var(--text-mut); font-size: .82rem;
}
.secure-note svg { width: 16px; height: 16px; }

/* ============ TIMELINE ============ */
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 16px; }
.tl-col { position: relative; display: flex; flex-direction: column; gap: 12px; }
.tl-col::before {
  content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px;
  width: 2px; background: linear-gradient(180deg, var(--orange), rgba(247,144,30,.25));
}
.tl-item { position: relative; display: flex; align-items: center; gap: 10px; padding-left: 22px; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-grad-1); border: 2.5px solid var(--orange);
  box-shadow: 0 0 8px rgba(247,144,30,.5);
}
.tl-row {
  flex: 1; display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: 9px;
}
.tl-time { color: var(--orange); font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.tl-name { flex: 1; font-size: .86rem; }
.tl-cam { color: var(--text-dim); }
.tl-cam svg { width: 17px; height: 17px; }

/* sujet non encore publié : grisé + cadenas */
.tl-item.locked .tl-row { opacity: .55; }
.tl-item.locked::before { border-color: var(--text-dim); box-shadow: none; }
.tl-item.released .tl-cam { color: var(--orange); }

/* ============ INFOS ============ */
.infos {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 16px; padding: 18px 8px;
  background: linear-gradient(180deg, var(--card-bg-1), var(--card-bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.info {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 0 6px;
}
.info + .info { border-left: 1px solid rgba(255,255,255,.06); }
.info > svg { width: 24px; height: 24px; color: var(--orange); }
.info-label { font-size: .58rem; font-weight: 700; letter-spacing: .6px; color: var(--text-mut); }
.info-value { font-size: .66rem; font-weight: 800; letter-spacing: .4px; line-height: 1.25; }

/* ============ FOOTER ============ */
.footer { text-align: center; padding: 24px 20px 40px; }
.footer-logo { display: inline-grid; place-items: center; color: var(--orange); margin-bottom: 12px; filter: drop-shadow(0 0 8px rgba(247,144,30,.5)); }
.footer-logo svg { width: 34px; height: 34px; }
.footer-url {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 0 6px; font-size: 1.05rem; color: var(--text);
}
.footer-url svg { width: 18px; height: 18px; color: var(--text-mut); }
.footer-org { margin: 0; color: var(--text-mut); font-size: .95rem; }

/* ============ ≥ 420px : titre un peu plus grand ============ */
@media (min-width: 420px) {
  .hero-title { font-size: 4.2rem; }
}

/* ============================================================
   ANIMATIONS & EFFETS UX
   ============================================================ */
html { scroll-behavior: smooth; }

@keyframes fadeUp      { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes popIn       { from { opacity: 0; transform: scale(.95); }       to { opacity: 1; transform: none; } }
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes floatY      { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes titleGlow   { 0%,100% { text-shadow: 0 0 34px rgba(255,128,0,.4); }
                         50%      { text-shadow: 0 0 60px rgba(255,150,0,.75); } }
@keyframes cameraGlow  { 0%,100% { opacity: .8; transform: scale(1); }
                         50%      { opacity: 1;  transform: scale(1.06); } }
@keyframes ctaPulse    { 0%,100% { box-shadow: 0 8px 22px rgba(255,122,0,.35); }
                         50%      { box-shadow: 0 8px 32px rgba(255,122,0,.65); } }
@keyframes shine       { 0% { left: -70%; } 32%,100% { left: 150%; } }
@keyframes iconGlow    { 0%,100% { box-shadow: 0 0 16px rgba(247,144,30,.25), inset 0 0 12px rgba(247,144,30,.12); }
                         50%      { box-shadow: 0 0 28px rgba(247,144,30,.5),  inset 0 0 16px rgba(247,144,30,.22); } }
@keyframes dotPulse    { 0%   { box-shadow: 0 0 0 0 rgba(247,144,30,.55); }
                         70%,100% { box-shadow: 0 0 0 7px rgba(247,144,30,0); } }
@keyframes newFlash    { 0% { box-shadow: 0 0 0 0 rgba(247,144,30,.7); border-color: var(--orange); }
                         100%{ box-shadow: 0 0 0 14px rgba(247,144,30,0); } }
@keyframes slideDown   { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes emberRise   { 0% { transform: translateY(0) scale(1); opacity: 0; }
                         15% { opacity: .8; } 100% { transform: translateY(-130px) scale(.4); opacity: 0; } }

/* --- Apparition au défilement (piloté par le JS) --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* --- Hero : entrée + halo vivant --- */
.hero-title  { animation: fadeUp .8s ease both, titleGlow 4.5s ease-in-out 1s infinite; }
.hero-divider{ animation: fadeUp .8s ease .15s both; }
.hero-lead   { animation: fadeUp .8s ease .25s both; }
.hero-sub    { animation: fadeUp .8s ease .35s both; }
.hero-cta    { animation: fadeUp .8s ease .45s both, ctaPulse 2.8s ease-in-out 1.3s infinite; }
.hero-camera { animation: cameraGlow 5s ease-in-out infinite; }
.hero-divider svg { animation: spin 20s linear infinite; }

/* --- Bouton orange : reflet qui balaie --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { filter: brightness(1.06); }
.hero-cta svg, .btn .field-icon { transition: transform .25s ease; }
.hero-cta:hover svg { transform: translateX(4px); }

/* --- Logo qui réagit --- */
.brand-logo svg { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.brand:hover .brand-logo svg { transform: rotate(120deg); }
.footer-logo svg { animation: spin 24s linear infinite; }

/* --- Carte : icône qui respire --- */
.card-icon { animation: iconGlow 3.2s ease-in-out infinite; }

/* --- Champs : icône s'allume au focus --- */
.field:focus-within .field-icon { color: var(--orange); }
.field input, .field-select select { transition: border-color .2s, box-shadow .2s, background .2s; }

/* --- Dropzone vivante --- */
.dropzone { transition: border-color .25s, background .25s, transform .25s; }
.dropzone:hover { border-color: var(--orange-soft); }
.dropzone.dragover { transform: scale(1.01); }
.dropzone-icon { animation: floatY 3.6s ease-in-out infinite; }

/* --- Liste de fichiers + messages : petite apparition --- */
.file-list li { animation: popIn .35s ease both; }
.form-msg { animation: popIn .3s ease both; }

/* --- Timeline : points pulsés + sujet fraîchement publié --- */
.tl-item.released::before { animation: dotPulse 2.2s ease-in-out infinite; }
.tl-row { transition: transform .2s ease, border-color .2s ease; }
.tl-item.released:hover .tl-row { transform: translateX(2px); border-color: rgba(247,144,30,.4); }
.tl-item.tl-new .tl-row { animation: newFlash 1.8s ease; border-color: var(--orange); }

/* --- Menu mobile : glisse à l'ouverture --- */
.mobile-nav:not([hidden]) { animation: slideDown .25s ease; }
.mobile-nav a { transition: background .2s, padding-left .2s; }
.mobile-nav a:hover { padding-left: 28px; }

/* --- Infos : léger zoom au survol --- */
.info > svg { transition: transform .25s ease; }
.info:hover > svg { transform: scale(1.15) translateY(-2px); }

/* --- Braises orange qui montent derrière le hero --- */
.embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ember {
  position: absolute; bottom: 12%;
  width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,170,60,.9), rgba(255,120,0,0));
  animation: emberRise linear infinite;
}

/* ============================================================
   ANNONCE « NOUVEAU SUJET »
   ============================================================ */
.announce {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 38%, rgba(60,30,0,.6), rgba(0,0,0,.84));
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: announceFade .3s ease both;
}
.announce.closing { animation: announceFade .3s ease reverse forwards; }
@keyframes announceFade { from { opacity: 0; } to { opacity: 1; } }

.announce-card {
  position: relative; width: 100%; max-width: 340px; text-align: center;
  background: linear-gradient(180deg, var(--card-bg-1), var(--card-bg-2));
  border: 1px solid var(--orange); border-radius: 20px;
  padding: 32px 24px 26px;
  box-shadow: 0 0 0 1px rgba(247,144,30,.25), 0 22px 60px rgba(0,0,0,.6), 0 0 70px rgba(255,122,0,.35);
  overflow: hidden;
  animation: cardPop .6s cubic-bezier(.18,1.3,.4,1) both;
}
@keyframes cardPop {
  0%   { opacity: 0; transform: scale(.6) translateY(30px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.announce-card::after {
  content: ""; position: absolute; top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.2), transparent);
  transform: skewX(-20deg);
  animation: shine 2.2s ease .45s 2;
  pointer-events: none;
}
.announce-burst {
  position: absolute; top: 38%; left: 50%; width: 40px; height: 40px;
  transform: translate(-50%,-50%); border-radius: 50%;
  border: 3px solid var(--orange);
  animation: burst .9s ease-out both;
}
@keyframes burst {
  0%   { opacity: .7; transform: translate(-50%,-50%) scale(.3); }
  100% { opacity: 0;  transform: translate(-50%,-50%) scale(11); }
}
.announce-icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  color: var(--orange); margin-bottom: 14px;
  border: 2px solid rgba(247,144,30,.5);
  box-shadow: 0 0 20px rgba(247,144,30,.4), inset 0 0 16px rgba(247,144,30,.2);
  animation: iconGlow 2.5s ease-in-out infinite;
}
.announce-icon svg { width: 34px; height: 34px; animation: spin 8s linear infinite; }
.announce-kicker { margin: 0; color: var(--orange); font-weight: 800; letter-spacing: 3px; font-size: .8rem; }
.announce-num { margin: 10px 0 2px; color: var(--text-mut); font-weight: 700; letter-spacing: 1px; font-size: .95rem; }
.announce-title {
  margin: 0 0 4px; font-size: 1.7rem; font-weight: 900; line-height: 1.1;
  background: linear-gradient(180deg, #ffd089, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.announce-time { margin: 0 0 18px; color: var(--text-mut); font-size: .85rem; }
.announce-cta { width: 100%; }
.announce-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none; color: var(--text-mut);
  font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 2px 8px;
}
.announce-close:hover { color: var(--orange); }

.announce-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti {
  position: absolute; top: -14px; width: 9px; height: 9px; opacity: 0;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { opacity: 0; transform: translateY(-10px) rotate(0); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(105vh) rotate(720deg); }
}

/* --- Respect de l'accessibilité --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .embers { display: none; }
}
