/* Accueil du Temple (maquette de Léa). */
.temple-accueil {
    overflow-x: clip;
    text-align: center;
}
.temple-accueil h2 {
    font-weight: 400;
    font-size: clamp(1.7rem, 3.2vw, 2.8rem);
    line-height: 1.15;
}
.temple-accueil .bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    max-height: none;
    /* Compensation optique de la cursive : mêmes dimensions, capitales légèrement abaissées. */
    padding: .9em 1.6em .7em;
    text-transform: uppercase;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
}

/* Hero : statue, logo et réservation. */
.temple-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(100svh, 62rem);
    /* Le bloc logo / réservation est légèrement sous le centre géométrique pour un meilleur équilibre optique. */
    padding: calc(10vh + 7rem) 1rem clamp(5rem, 12vh, 8rem);
    background:
        linear-gradient(180deg, #0008 0%, #0003 30%, #0006 70%, var(--temple-fond) 100%),
        url("../assets/images/accueil/hero.webp") center 30% / cover no-repeat;
}
.temple-hero-contenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 3vh, 2.5rem);
    transform: translateY(1rem);
}
@media (max-width: 768px) {
    .temple-hero {
        background-image:
            linear-gradient(180deg, #0008 0%, #0003 30%, #0006 70%, var(--temple-fond) 100%),
            url("../assets/images/accueil/hero-mobile.webp");
    }
    .temple-hero-contenu {
        transform: translateY(clamp(1.5rem, 5svh, 3.5rem));
    }
}
.temple-hero-logo svg {
    width: min(88vw, 40rem);
    height: auto;
    fill: #fff;
    filter: drop-shadow(0 .3rem 1.2rem #000c);
}
.temple-hero-preuve {
    max-width: 34rem;
    font-size: clamp(.9rem, 1.2vw, 1.05rem);
    text-shadow: 0 1px .5rem #000;
}
.temple-etoiles {
    color: #f2c14e;
    letter-spacing: .2em;
}

/* Bande « archéologues » : photo d'archive épinglée entre deux annotations manuscrites. */
.temple-histoire {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.2rem, 2.5vw, 2rem);
    padding: clamp(3rem, 7vw, 6rem) 1rem clamp(3.5rem, 7vw, 6rem);
}
.temple-embleme-filigrane {
    position: absolute;
    z-index: -1;
    left: -6%;
    top: 30%;
    width: clamp(220px, 34vw, 520px);
    height: auto;
    opacity: .35;
    filter: brightness(1.12);
}
.temple-histoire-photo {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(.5rem, 2vw, 2rem);
    width: min(100%, 72rem);
}
.temple-histoire-photo img {
    width: clamp(150px, 18vw, 265px);
    height: auto;
    box-shadow: 0 .6rem 1.4rem #0006;
    transform: rotate(-1.5deg);
}
.annotation-gauche,
.annotation-droite {
    font-size: clamp(1.8rem, 4.6vw, 4.4rem);
}
.annotation-gauche {
    justify-self: end;
    text-align: center;
    transform: rotate(-6deg) translateY(2.5rem);
}
.annotation-droite {
    justify-self: start;
    max-width: 8em;
    transform: rotate(-4deg) translateY(-2rem);
}
.annotation-gauche .fleche { width: 75%; margin: .2em 0 0 auto; }
.annotation-droite .fleche { width: 70%; margin: .2em auto 0 0; transform: translateY(-.2em); }
.temple-histoire h2 {
    margin-top: clamp(.5rem, 2vw, 1.5rem);
}
.temple-histoire-texte {
    max-width: 44rem;
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    line-height: 1.5;
}
@media (max-width: 640px) {
    .temple-histoire-photo {
        grid-template-columns: 1fr 1fr;
    }
    .temple-histoire-photo img {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        width: min(60vw, 240px);
    }
    .annotation-gauche { transform: rotate(-6deg); justify-self: center; }
    .annotation-droite { grid-row: 3; grid-column: 2; transform: rotate(-4deg); }
    .annotation .fleche { display: none; }
}

/* Nos aventures : le Minotaure, puis les salles à venir dans leur couleur. */
.temple-aventures {
    padding: clamp(5rem, 10vw, 8rem) 1rem clamp(5rem, 10vw, 9rem);
}
.temple-aventures-liste {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.6rem, 1.2vw, 1.2rem);
    width: min(100%, 72rem);
    margin: clamp(2.5rem, 5vw, 4rem) auto 0;
    list-style: none;
}
.temple-aventure {
    --couleur-salle: var(--temple-beige);
    aspect-ratio: 4 / 5;
}
.temple-aventure-minotaure { --couleur-salle: var(--couleur-minotaure); }
.temple-aventure-enfers { --couleur-salle: var(--couleur-enfers); }
.temple-aventure-momie { --couleur-salle: var(--couleur-momie); }
.temple-aventure-apocalypse { --couleur-salle: var(--couleur-apocalypse); }
.temple-aventure a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    height: 100%;
    overflow: hidden;
    border-bottom: 5px solid var(--couleur-salle);
    color: inherit;
    font-family: var(--font-cursive);
    transition: transform .4s ease, box-shadow .4s ease;
}
.temple-aventure a:hover,
.temple-aventure a:focus-visible {
    transform: scale(1.04);
    box-shadow: 0 1rem 2rem #000a;
}
/* Au survol, la case prend la couleur de sa salle, sous le texte : franche sur les cases scellées, en
   multiplication sur les photos pour garder l'image lisible. */
.temple-aventure a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--couleur-salle);
    opacity: 0;
    transition: opacity .4s ease;
}
.temple-aventure a:not(.temple-aventure-bientot)::after {
    mix-blend-mode: multiply;
}
.temple-aventure a:hover::after,
.temple-aventure a:focus-visible::after {
    opacity: .9;
}
.temple-aventure a.temple-aventure-bientot:hover,
.temple-aventure a.temple-aventure-bientot:focus-visible {
    color: var(--text-base-color);
}
/* Beige sur beige ne se verrait pas : la Momie prend un sable plus soutenu et garde un texte foncé. */
.temple-aventure-momie a::after {
    background: color-mix(in srgb, var(--couleur-momie) 60%, #6b4a1e);
}
.temple-aventure-momie a.temple-aventure-bientot:hover,
.temple-aventure-momie a.temple-aventure-bientot:focus-visible {
    color: #1d1712;
}
.temple-aventure a span {
    position: relative;
    z-index: 1;
}
.temple-aventure img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter .4s ease;
}
.temple-aventure a:not(.temple-aventure-bientot) .temple-aventure-nom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem .8rem 1rem;
    background: linear-gradient(transparent, #000d);
    font-size: clamp(1rem, 1.6vw, 1.4rem);
}
.temple-aventure a:hover img,
.temple-aventure a:focus-visible img {
    filter: brightness(1.15) sepia(.2);
}
.temple-aventure .temple-aventure-bientot {
    background: var(--papier, var(--temple-beige));
    color: #1d1712;
    text-transform: uppercase;
    font-size: clamp(.85rem, 1.2vw, 1.1rem);
}
.temple-aventure-bientot .temple-aventure-nom {
    font-size: .8em;
    opacity: .75;
}
.temple-aventure-apocalypse .temple-aventure-bientot { border-bottom-color: #2a2a2a; }
@media (max-width: 760px) {
    .temple-aventures-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Le Temple en bref. */
.temple-bref {
    padding: clamp(3.5rem, 7vw, 6rem) 1rem;
}
.temple-bref-liste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    width: min(100%, 72rem);
    margin: clamp(2rem, 4vw, 3rem) auto 0;
    list-style: none;
}
.temple-bref-liste li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    line-height: 1.4;
}
.temple-bref-liste i {
    font-size: 1.8rem;
    color: var(--temple-emeraude);
}
.temple-bref-liste strong {
    font-family: var(--font-cursive);
    font-size: 1.15rem;
}

/* Équipe du Donjon (avis) et appel final. */
.temple-equipe {
    padding: clamp(6rem, 11vw, 9rem) 1rem 3rem;
}
.temple-equipe > p {
    max-width: 38rem;
    margin: 1rem auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: .85;
}
.temple-equipe-lien {
    display: inline-block;
    margin-top: 2rem;
    color: var(--temple-beige);
}
.temple-appel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 1rem clamp(4rem, 8vw, 6rem);
    background: linear-gradient(180deg, transparent, var(--temple-fond) 72%);
}

body:has(.temple-accueil) footer {
    background: var(--temple-fond) !important;
}
