/* Page « en construction » : mêmes jetons que le site (public/style.css), aucune police appelée au dehors,
   version nuit, et aucune animation pour qui a demandé moins de mouvement. */
:root {
  --bg: #faf5ec;
  --paper: #fffcf5;
  --ink: #26211d;
  --muted: #6b5f55;
  --line: #e4d8c6;
  --accent: #b4502f;
  --scene: #fbf1dc;
  --shadow: 0 1px 0 rgba(60, 40, 20, .06), 0 18px 40px -22px rgba(60, 40, 20, .35);
  --display: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ressort: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a2b;
    --paper: #1c2438;
    --ink: #f1e9dc;
    --muted: #a9b0c2;
    --line: #2e3854;
    --accent: #ef9a76;
    --scene: #232c45;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 28px 16px;
  background: var(--bg) radial-gradient(circle at 1px 1px, rgba(140, 100, 60, .13) 1px, transparent 0) 0 0 / 22px 22px;
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.carte {
  width: min(100%, 620px);
  padding: 30px 24px 26px;
  text-align: center;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden; /* le ruban déborde de la carte et s'y coupe */
}

.marque { display: flex; flex-direction: column; align-items: center; gap: 14px; }
/* Le GIF a un fond crème : en version nuit, il reste dans sa pastille crème (guide de marque, § 4). */
.pastille { border-radius: 30px; background: #faf5ec; padding: 6px; box-shadow: 0 0 0 1.5px var(--line), 0 10px 24px -14px rgba(60, 40, 20, .45); }
.pastille img { display: block; width: 120px; height: 120px; border-radius: 24px; animation: flotte 6s ease-in-out 1.2s infinite; }
.nom { margin: 0; line-height: 0; }
.nom img { display: block; width: min(80vw, 330px); height: auto; }

/* Le ruban de chantier, aux couleurs du club : moutarde et encre, qui défile doucement. */
.ruban {
  position: relative;
  margin: 22px -60px 14px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(-45deg, #f2cc8f 25%, #26211d 25% 50%, #f2cc8f 50% 75%, #26211d 75%) 0 0 / 34px 34px;
  box-shadow: 0 6px 14px -8px rgba(38, 33, 29, .55);
  transform: rotate(-2.5deg);
  animation: pose-ruban .9s var(--ease-expo) .35s both, rayures 2.4s linear infinite;
}
.ruban span {
  padding: 6px 18px;
  border: 2px solid #26211d;
  border-radius: 999px;
  background: #faf5ec;
  color: #26211d;
  font: 800 .82rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  animation: apparait .6s var(--ease-ressort) .9s both;
}

.cadre { border-radius: 20px; background: var(--scene); overflow: hidden; }
.scene { display: block; width: 100%; height: auto; }

h2 { margin: 20px 0 8px; font: 600 clamp(1.45rem, 4.6vw, 1.9rem)/1.2 var(--display); letter-spacing: -.01em; }
p { margin: 0 auto; max-width: 46ch; color: var(--muted); }
.contact { margin-top: 14px; }
a { color: var(--accent); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
a:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.pied { font-size: .85rem; color: var(--muted); }
.pied a { font-weight: 500; }

/* Entrée : chaque bloc monte et se pose, l'un après l'autre. */
.apparait { animation: apparait .8s var(--ease-expo) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .5s; } .d3 { animation-delay: .62s; }
.d4 { animation-delay: .72s; } .d5 { animation-delay: .82s; } .d6 { animation-delay: .95s; }
.pastille.d0 { animation: pose-logo .9s var(--ease-ressort) both; }

/* Scène : la lampe respire, la vapeur monte, les étoiles scintillent, la tête suit le feutre. */
.halo, .etoile { transform-box: fill-box; transform-origin: center; }
.halo { animation: halo 5s ease-in-out infinite alternate; }
.ampoule { animation: ampoule 3.6s ease-in-out infinite; }
.etoile { animation: scintille 2.8s ease-in-out infinite; }
.etoile.e2 { animation-delay: -.9s; } .etoile.e3 { animation-delay: -1.8s; }
.vapeur path { opacity: 0; animation: vapeur 3.6s var(--ease-out) infinite; }
.vapeur .v2 { animation-delay: -1.2s; } .vapeur .v3 { animation-delay: -2.4s; }
.bulle { opacity: 0; animation: bulle 9s ease-in-out infinite; }
.b2 { animation-delay: -2s; } .b3 { animation-delay: -4s; } .b4 { animation-delay: -6s; } .b5 { animation-delay: -7.5s; }
.corps { transform-box: view-box; transform-origin: 280px 300px; animation: souffle 4.6s ease-in-out infinite; }
.tete { transform-box: view-box; transform-origin: 280px 206px; animation: tete 12s ease-in-out infinite; }

@keyframes apparait { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pose-logo { from { opacity: 0; transform: scale(.7) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes pose-ruban { from { opacity: 0; transform: rotate(-9deg) scaleX(.2); } to { opacity: 1; transform: rotate(-2.5deg); } }
@keyframes rayures { to { background-position: 34px 0; } }
@keyframes halo { from { opacity: .7; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }
@keyframes ampoule { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes scintille { 0%, 100% { opacity: .35; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }
@keyframes vapeur { 0% { opacity: 0; transform: translateY(8px); } 35% { opacity: .8; } 100% { opacity: 0; transform: translateY(-18px); } }
@keyframes bulle { 0% { opacity: 0; transform: translateY(16px); } 25%, 70% { opacity: .9; } 100% { opacity: 0; transform: translateY(-44px); } }
@keyframes souffle { 0%, 100% { transform: none; } 50% { transform: scale(1.01, 1.016); } }
/* Même boucle de 12 s que le feutre : la tête penche vers la fleur, puis se redresse pour l'admirer. */
@keyframes tete {
  0%, 4% { transform: rotate(0deg); }
  10%, 34% { transform: rotate(-3deg) translateY(2px); }
  42%, 66% { transform: rotate(-1.5deg) translateY(3px); }
  74%, 88% { transform: rotate(3deg) translateY(-2px); }
  100% { transform: rotate(0deg); }
}

@media (max-width: 420px) {
  .carte { padding: 24px 16px 22px; border-radius: 20px; }
  .pastille img { width: 96px; height: 96px; }
  .ruban { margin: 18px -40px 12px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
