/* Page d'accueil : joyeuse, des cartes partout. Couleurs : seulement les variables de la charte (ichimai-tokens.css). */
body.accueil { background: var(--anthracite); }
.accueil .haut { position: absolute; top: 0; left: 0; right: 0; z-index: 3; margin: 0 auto; }
.accueil section { position: relative; overflow: hidden; padding: 56px 0; }
.fond-carton { background: var(--fond-photo); color: var(--anthracite); }
.fond-creme { background: var(--clair-fond); color: var(--anthracite); }
.fond-tapis { background: var(--etiquette-arrivage); color: var(--creme); }
.fond-anthracite { background: var(--anthracite); color: var(--pierre); }
.fond-carton h1, .fond-carton h2, .fond-creme h2 { color: var(--anthracite); }
.fond-carton p, .fond-creme p { color: var(--clair-texte-2); }
.fond-tapis p, .fond-tapis h2 { color: var(--creme); }
.repere.clair { color: var(--pierre); }
.fond-carton .repere, .fond-creme .repere { color: var(--clair-texte-2); }

/* Héros */
.heros { padding-top: 96px; padding-bottom: 36px; }
.pastille { display: inline-block; font-family: var(--police-repere); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--anthracite) !important; border: 2px solid var(--anthracite); border-radius: 6px; padding: 5px 10px; margin: 0 0 4px; }
.heros h1 { font-size: clamp(52px, 17vw, 88px); margin: 14px 0 10px; }
.heros .signature { color: var(--anthracite); }
.heros .intro { color: var(--anthracite); }
.heros .bouton { background: var(--anthracite); color: var(--creme); width: auto; display: inline-flex; padding: 0 28px; }
.mini-compteur { font-family: var(--police-repere); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 14px 0 0; min-height: 20px; color: var(--anthracite) !important; }

.eventail { position: relative; width: min(100%, 520px); height: clamp(250px, 80vw, 400px); margin: 20px auto 0; }
.deco { position: absolute; width: 34%; top: 0; filter: drop-shadow(0 14px 18px color-mix(in srgb, var(--anthracite) 35%, transparent)); animation: flotte 6s ease-in-out infinite; }
.deco img { display: block; width: 100%; height: auto; border-radius: 6%; }
.d1 { left: 0; top: 14%; --r: -15deg; transform: rotate(-15deg); animation-delay: -1s; }
.d2 { left: 15%; top: 5%; --r: -8deg; transform: rotate(-8deg); animation-delay: -2.5s; }
.d3 { left: 33%; top: 0; width: 38%; z-index: 2; --r: 0deg; animation-delay: 0s; }
.d4 { left: 52%; top: 6%; --r: 9deg; transform: rotate(9deg); animation-delay: -3.5s; }
.d5 { left: 66%; top: 16%; --r: 16deg; transform: rotate(16deg); animation-delay: -4.5s; }
@keyframes flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Effet de relief au survol (souris seulement), comme sur le site du Dépôt */
.holo { transform-style: preserve-3d; transition: transform .25s ease; }
.holo.is-hover { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.05); z-index: 5; }

/* Page de classeur */
.classeur h2 { font-size: clamp(38px, 11vw, 56px); margin: 6px 0 10px; color: var(--creme); }
.page-classeur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: color-mix(in srgb, var(--anthracite) 35%, transparent); padding: 12px; border-radius: 18px; margin: 22px 0 14px; }
.case-carte { position: relative; aspect-ratio: 5 / 7; border: 0; padding: 0; border-radius: 8px; background: color-mix(in srgb, var(--anthracite) 55%, transparent); cursor: pointer; overflow: hidden; }
.case-carte img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .3s ease, opacity .3s ease, transform .3s ease; }
.case-carte.manque { outline: 2px dashed var(--etat-manquante-bord); outline-offset: -2px; }
.case-carte.manque img { filter: grayscale(.8) brightness(.7); opacity: .6; }
.case-carte:not(.manque) { animation: pose .35s ease; }
@keyframes pose { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.case-carte:focus-visible { outline: 2px solid var(--creme); outline-offset: 2px; }
.score { font-family: var(--police-titre); font-weight: 800; font-size: 44px; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

/* Défilé des époques */
.epoques h2 { font-size: clamp(38px, 11vw, 56px); margin: 6px 0 10px; }
.defile { display: flex; gap: 28px; overflow-x: auto; padding: 24px max(20px, calc((100% - 560px) / 2 + 20px)) 28px; scroll-snap-type: x proximity; scroll-padding-inline: 20px; -webkit-overflow-scrolling: touch; }
.epoque { flex: none; scroll-snap-align: start; }
.epoque .repere { margin: 0 0 12px; color: var(--anthracite); font-weight: 500; }
.rang { display: flex; gap: 12px; }
.rang .holo { width: 132px; flex: none; filter: drop-shadow(0 8px 12px color-mix(in srgb, var(--anthracite) 30%, transparent)); }
.rang img { display: block; width: 100%; height: auto; border-radius: 6%; }
.defile:focus-visible { outline: 2px solid var(--anthracite); outline-offset: -4px; }

/* Membres */
.membres h2 { font-size: clamp(38px, 11vw, 56px); margin: 6px 0 14px; }
.ligne-compteur { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; min-height: 60px; }
.ligne-compteur .grand { font-family: var(--police-titre); font-weight: 800; font-size: 60px; line-height: 1; color: var(--creme); font-variant-numeric: tabular-nums; }
.ligne-compteur .unite { font-family: var(--police-titre); font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--pierre); }
.ligne-compteur .vide { height: 56px; width: 70%; background: var(--ardoise); border-radius: 10px; opacity: .5; }
.jauge { height: 10px; border-radius: 6px; background: var(--ardoise); margin: 12px 0 8px; overflow: hidden; }
.jauge span { display: block; height: 100%; width: 0; background: var(--creme); border-radius: 6px; transition: width .8s ease; }
.petit-clair { font-family: var(--police-repere); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--cendre); margin: 0 0 8px; }
.trio { position: relative; display: flex; justify-content: center; align-items: flex-end; margin: 30px auto 22px; width: 100%; max-width: 440px; }
.trio figure { margin: 0; width: 44%; position: relative; }
.trio canvas { display: block; width: 100%; height: auto; aspect-ratio: 880 / 1200; filter: drop-shadow(0 14px 18px color-mix(in srgb, var(--anthracite) 60%, transparent)); }
.trio figcaption { text-align: center; margin-top: 6px; font-size: 10px; }
.trio .t1 { transform: rotate(-9deg) translateX(14%); }
.trio .t2 { z-index: 2; width: 50%; transform: translateY(-14px); }
.trio .t3 { transform: rotate(9deg) translateX(-14%); }

/* Inscription */
.inscription h2 { font-size: clamp(38px, 11vw, 56px); margin: 0 0 18px; }
.panneau { background: var(--clair-surface); color: var(--anthracite); border-radius: 22px; padding: 22px 18px; box-shadow: 0 18px 40px color-mix(in srgb, var(--anthracite) 22%, transparent); }
.panneau .champ label, .panneau .champ .etiquette { color: var(--anthracite); }
.panneau .champ .aide, .panneau .petit { color: var(--clair-texte-2); }
.panneau input[type=email], .panneau input[type=text] { background: var(--clair-fond); border-color: var(--pierre); color: var(--anthracite); }
.panneau input:focus { border-color: var(--anthracite) !important; }
.panneau input::placeholder { color: var(--clair-texte-2); }
.panneau .case, .panneau .case span { color: var(--anthracite); }
.panneau .case input { accent-color: var(--anthracite); }
.panneau a { color: var(--anthracite); }
.panneau .liste { background: var(--clair-surface); border-color: var(--pierre); }
.panneau .liste li { color: var(--anthracite); }
.panneau .liste li .repere { color: var(--clair-texte-2); }
.panneau .liste li[aria-selected=true], .panneau .liste li:hover { background: var(--clair-fond); }
.panneau .combo .effacer { color: var(--clair-texte-2); }
.panneau .erreur { color: var(--anthracite); }
.panneau .merci { background: var(--clair-fond); border-color: var(--pierre); }
.panneau .merci h2 { color: var(--anthracite); font-size: 34px; }
.panneau .merci p { color: var(--anthracite); }
.panneau .bouton { background: var(--anthracite); color: var(--creme); }
.accueil footer { margin-top: 0; }

@media (min-width: 760px) {
  .eventail { width: 520px; }
  .rang .holo { width: 160px; }
}
@media (prefers-reduced-motion: reduce) { .deco { animation: none; } }
