/*
 * Habillage commun du site Falbala 2025 (accueil et cadre des épreuves).
 * Repris tel quel du site d'origine : cette édition est une archive.
 */

/* Les couleurs sont celles des jeux deja en place (jeux/*.html) : fond nuit,
   vert clair. Les jeux portent leurs propres styles, ce fichier ne couvre que
   l'habillage commun et l'accueil. */
:root {
    --nuit: #1c2225;
    --carte: #353b3e;
    --vert: #99ff89;
    --vert-doux: #acfdb3;
    --texte: #e8efe8;
    --sourdine: #b9c7ba;
    --cadre: 68rem;
    --marge: clamp(1.25rem, 4vw, 2.5rem);
}

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

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--texte);
    background: var(--nuit);
}
img { max-width: 100%; height: auto; }
a { color: var(--vert); }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; color: var(--vert); }
p { margin: 0 0 1em; }

.cadre { width: 100%; max-width: var(--cadre); margin-inline: auto; padding-inline: var(--marge); }
.lien-evitement { position: absolute; left: -999rem; }
.lien-evitement:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; color: #000; padding: 0.5rem 1rem; }

.bouton { display: inline-flex; align-items: center; min-height: 3rem; padding: 0.7rem 1.6rem; border-radius: 999px; background: var(--vert); color: var(--nuit); font-weight: 700; text-decoration: none; }
.bouton:hover { background: #fff; }
.bouton--contour { background: transparent; color: var(--vert); border: 2px solid var(--vert); min-height: 2.5rem; padding: 0.4rem 1.1rem; }
.bouton--contour:hover { background: var(--vert); color: var(--nuit); }

.entete { position: sticky; top: 0; z-index: 50; background: var(--nuit); }
.entete .cadre { display: flex; align-items: center; min-height: 3.75rem; }
.entete img { display: block; width: 2.25rem; height: 2.25rem; }

/* Ouverture : trois photos en fondu, le logo par-dessus. */
.ouverture { position: relative; min-height: min(88vh, 46rem); display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; }
.ouverture__fond { position: absolute; inset: 0; z-index: -1; }
.ouverture__fond span { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: fondu 18s infinite; }
.ouverture__fond span:nth-child(1) { opacity: 1; }
.ouverture__fond span:nth-child(2) { animation-delay: 6s; }
.ouverture__fond span:nth-child(3) { animation-delay: 12s; }
.ouverture__fond::after { content: ""; position: absolute; inset: 0; background: rgba(12, 16, 18, 0.55); }
@keyframes fondu { 0%, 28% { opacity: 1; } 36%, 92% { opacity: 0; } 100% { opacity: 1; } }
.ouverture__logo { width: min(34rem, 80vw); }
.ouverture p { margin: 1.5rem 0 2rem; font-size: 1.25rem; }

.bloc { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.bloc--carte { background: var(--carte); }
.bloc__intro { max-width: 42em; margin-top: 1.25rem; color: var(--sourdine); font-size: 1.125rem; }
.atouts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.atouts li { padding: 0.5rem 1.1rem; border: 1px solid var(--vert-doux); border-radius: 999px; font-weight: 600; }

.equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.equipe li { background: var(--nuit); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.bloc:not(.bloc--carte) .equipe li { background: var(--carte); }
.equipe p { margin: 0; color: var(--sourdine); flex: 1; }
.equipe .bouton { align-self: flex-start; }

.mystere { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: center; }
.mystere img { width: 12rem; border-radius: 12px; background: #fff; }
.mystere__lieu { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--sourdine); }
@media (max-width: 44rem) { .mystere { grid-template-columns: 1fr; } }

/* Toute la derniere section est un lien : c'est l'entree du jeu. */
.final { position: relative; text-align: center; }
.final__lien { position: absolute; inset: 0; z-index: 1; }
.final img { width: min(22rem, 70vw); margin-top: 2rem; }

.page-simple { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-simple h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.page-simple .cadre { max-width: 46rem; }
.page-simple table { width: 100%; border-collapse: collapse; }
.page-simple th, .page-simple td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--carte); vertical-align: top; }

.pied { background: #151a1c; padding-block: 2.5rem; text-align: center; color: var(--sourdine); font-size: 0.9375rem; }
.pied img { width: 11rem; }
.pied p { margin: 1rem 0 0; }
.pied a { color: inherit; }

/* Les photos du site d'origine : en fond des sections, sous un voile sombre
   pour que le texte reste lisible, et en portrait sur les cartes des référents. */
.bloc--photo { position: relative; isolation: isolate; background-size: cover; background-position: center; }
.bloc--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 16, 18, 0.72); }
.final.bloc--photo { padding-block: clamp(5rem, 14vw, 9rem); background-position: center bottom; }
.final.bloc--photo::before { background: rgba(12, 16, 18, 0.35); }
.equipe__portrait { width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; align-self: center; margin-bottom: 0.25rem; }
.equipe__prix { position: relative; isolation: isolate; overflow: hidden; background-size: cover; background-position: center; justify-content: flex-end; min-height: 14rem; }
.equipe__prix::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 16, 18, 0.62); }
