/* Variables et fondations */
:root {
    --font-serif: "EB Garamond", "EBGaramondLocal", Garamond, Georgia, serif;
    --font-cursive: "Apple Chancery", "AppleChanceryLocal", "URW Chancery L", cursive;
    --radius: 15px;
    --radius-min: 8px;
    --fond-menu: #30303043;
    --fond-sous-menu: #111111f3;
    --text-base-color: #eeeeee;
    --rouge_clair: hsl(0, 100%, 44%);
    --rouge_fonce: rgb(188, 0, 0);
    --background-default-color: #111111;
	--selection-background: color-mix(in srgb, var(--rouge_fonce) 48%, var(--background-default-color));
	--selection-text: var(--text-base-color);
    --color-border: rgba(255, 255, 255, 0.15);
    --color-bg-section: #1a1c22;
    --color-bg-header: #3a3a3a;
    --color-bg-header-mobile: #4c4c4c;
    --color-bg-cell: #232327;
    --couleur-immortel: #5E253E;
    --couleur-templiers: #FF8800;
    --couleur-amants: #1D6D2E;
    --couleur-alchimiste: #2D3F8B;
    --couleur-crypte: #FF1717;
    --couleur-asile: #A41C12;
    --couleur-sorciere: #6D1FDA;
    --couleur-nouveau-monde: #51DCEC;
    --univers-aventure: hsl(42 86% 55%);
    --univers-frisson: hsl(270 100% 72%);
    --univers-horreur: hsl(354 88% 60%);
	--peur-faible: var(--couleur-amants);
	--peur-moyenne: var(--couleur-templiers);
	--peur-forte: var(--couleur-crypte);
	--progression-fleche: var(--couleur-crypte);

	/* Calendriers de réservation */
	--reservation-accent: var(--univers-aventure);
	--reservation-accent-evenement: var(--univers-horreur);
	--reservation-fond: var(--background-default-color);
	--reservation-surface: var(--color-bg-section);
	--reservation-cellule: var(--color-bg-cell);
	--reservation-texte: var(--text-base-color);
	--reservation-bordure: var(--color-border);
	--reservation-disponible: var(--couleur-amants);
	--reservation-derniere-minute: var(--univers-aventure);
	--reservation-selection: var(--couleur-alchimiste);
	--reservation-visite: var(--univers-horreur);
	--reservation-cta: hsl(28 100% 55%);
	--reservation-cta-hover: hsl(38 100% 62%);
	--reservation-cta-texte: #17110a;
	--reservation-ombre: #000;
	--reservation-contraste: #111;

	/* Formulaires de commande */
	--commande-accent: var(--couleur-templiers);
	--commande-accent-survol: #FFAA33;
	--commande-accent-cadeau: var(--commande-accent);
	--commande-cadre: var(--couleur-alchimiste);
	--commande-fond: var(--reservation-fond);
	--commande-surface: var(--reservation-surface);
	--commande-cellule: var(--reservation-cellule);
	--commande-texte: var(--reservation-texte);
	--commande-bordure: var(--reservation-bordure);
	--commande-secondaire: var(--commande-cadre);
	--commande-danger: var(--couleur-crypte);
	--commande-cta-texte: var(--reservation-cta-texte);
	--commande-ombre: var(--reservation-ombre);
}
@font-face {
    font-family: "AppleChanceryLocal";
    src: url("../fonts/AppleChancery.woff2") format("woff2"),
         url("../fonts/AppleChancery.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "EBGaramondLocal";
    src: url("../fonts/EBGaramond-Regular.woff2") format("woff2"),
         url("../fonts/EBGaramond-Regular.ttf") format("truetype");
    font-display: swap;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-color: var(--rouge_fonce) var(--background-default-color);
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--background-default-color);
}
::-webkit-scrollbar-thumb { background: var(--rouge_fonce); }
::-webkit-scrollbar-thumb:hover { background: var(--rouge_clair); }

html {
    width: 100%;
}
body {
    height: 100vh;
	font-family: var(--font-serif);
    background: var(--background-default-color);
    color: var(--text-base-color);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

::selection {
	background: var(--selection-background);
	color: var(--selection-text);
}

button,
.bouton,
.badge-salle,
nav,
h1,
h2,
h3,
[role="button"] {
	-webkit-user-select: none;
	user-select: none;
}
/* Navigation principale et menu mobile */
header {
    padding: min(2vh, 3vw) min(2vh, 3vw);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}
.nav-principale {
    height: 10vh;
    width: 100%;
    padding-right:1vh;
    min-height: 50px;
}
nav {
    border-radius: 20px;
    background: var(--fond-menu);
    white-space: nowrap;
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    box-shadow:
        0 8px 32px black,
        0 2px 8px black;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0;
    transform: scale(0.2);
    filter: blur(20px);
    animation: navGlassIn 0.3s ease forwards;
}
.nav-principale>ul>li>ul>li {
    padding-top:2vh;
}

#nav-logo {
    margin: auto;
    height: 95%;
}

#nav-logo a{
    height: 100%;
    padding:0;
    min-width: 90px;
    margin:auto;
    background: url("../assets/images/interface/logo.svg") center/contain no-repeat;
    transition: transform 0.2s ease;
}

#nav-logo a:hover {
    transform: scale(1.05);
}

@keyframes navGlassIn {
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}
nav li {
    opacity: 0;
    transform: translateY(-20px);
    animation: itemIn 0.9s ease forwards;
}
.nav-principale li:nth-child(1) { animation-delay: 0.5s; }
.nav-principale li:nth-child(2) { animation-delay: 0.4s; }
.nav-principale li:nth-child(3) { animation-delay: 0.3s; }
.nav-principale li:nth-child(4) { animation-delay: 0.1s; }
.nav-principale li:nth-child(5) { animation-delay: 0.3s; }
.nav-principale li:nth-child(6) { animation-delay: 0.5s; }
@keyframes itemIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav > ul {
    width: 100%;
}

.nav-principale a,
.nav-principale .nav-menu-declencheur,
.side-menu a {
    color: var(--text-base-color);
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-principale .nav-menu-declencheur {
	padding: 0 2vw;
	border: 0;
	background: transparent;
	font: inherit;
	cursor: pointer;
}

.nav-principale .evenement-menu,
.side-menu .evenement-menu {
    color: var(--couleur-crypte);
}

a {
    color: var(--rouge_fonce);
    text-decoration: none;
}

/* Liens dans le texte courant : teinte crème réchauffée par la couleur de la page et soulignement fin estompé,
   qui ne s'affirme qu'au survol. Le rouge sombre seul était peu lisible sur fond noir. Spécificité minimale :
   tout lien stylé par une classe garde son style. */
main :where(p, li, td, figcaption, dd, blockquote) a:where(:not([class])) {
    color: color-mix(in srgb, var(--page-accent, var(--rouge_clair)) 25%, #f4e9da);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;
    text-shadow: none;
    transition: text-decoration-color .25s ease;
}

main :where(p, li, td, figcaption, dd, blockquote) a:where(:not([class])):hover,
main :where(p, li, td, figcaption, dd, blockquote) a:where(:not([class])):focus-visible {
    text-decoration-color: currentColor;
}

.nav-principale:has(> ul:first-child > li:first-child:hover),
.nav-principale:has(> ul:first-child > li:first-child:focus-within) {
    border-bottom-left-radius: 0;
}

nav li {
    list-style: none;
    height: 100%;
}

nav > ul > li > a:hover,
nav > ul > li > a:focus-visible,
.nav-principale .nav-menu-declencheur:hover,
.nav-principale .nav-menu-declencheur:focus-visible {
    text-decoration: underline;
}

.nav-principale ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    border-radius: 0 0 20px 20px;
    background: var(--fond-sous-menu);
    opacity: 0;
    border: 1px solid var(--color-border);
    box-shadow:
        0 8px 32px black,
        0 2px 8px black;
    visibility: hidden;
    transform: translateY(-15px);
    filter: blur(4px);
    transition:
        opacity .3s ease,
        transform .3s ease,
        filter .3s ease;
}

nav a:hover,
nav a:focus-visible,
.nav-principale .nav-menu-declencheur:hover,
.nav-principale .nav-menu-declencheur:focus-visible {
    color: var(--rouge_clair);
}

.nav-principale a:hover,
.nav-principale .nav-menu-declencheur:hover {
    transform: scale(1.1);
}

.nav-principale a,
.nav-principale .nav-menu-declencheur {
    transition: transform 0.4s ease;
}

.nav-principale li:hover > ul,
.nav-principale .nav-menu-groupe.is-open > ul,
.nav-principale li:has(> ul:focus-within) > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    filter: blur(0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-bottom: 2vh;
}

.nav-principale ul li a {
    padding: 0 2vw;
}

.salle-lien {
    color: var(--text-base-color) !important;
}

.salle-lien:hover,
.salle-lien:focus-visible {
    color: var(--salle-menu-couleur) !important;
}

.salle-lien-immortel { --salle-menu-couleur: var(--couleur-immortel); }
.salle-lien-templiers { --salle-menu-couleur: var(--couleur-templiers); }
.salle-lien-amants { --salle-menu-couleur: var(--couleur-amants); }
.salle-lien-alchimiste { --salle-menu-couleur: var(--couleur-alchimiste); }
.salle-lien-crypte { --salle-menu-couleur: var(--couleur-crypte); }
.salle-lien-asile { --salle-menu-couleur: var(--couleur-asile); }
.salle-lien-sorciere { --salle-menu-couleur: var(--couleur-sorciere); }
.salle-lien-nouveau-monde { --salle-menu-couleur: var(--couleur-nouveau-monde); }

/* Bascule vers l'autre enseigne (Donjon <-> Temple) : flèche à droite du logo, l'autre logo au survol. */
.bloc_milieu:has(.nav-enseigne) #nav-logo {
    margin-right: 0;
}
.nav-principale .nav-enseigne {
    margin-right: auto;
    position: relative;
    display: flex;
    align-items: center;
}
.nav-principale .nav-enseigne-fleche {
    padding: 0 .4rem;
    font-size: .8em;
    opacity: .7;
    transition: color .2s ease, opacity .2s ease;
}
.nav-principale .nav-enseigne-fleche:hover,
.nav-principale .nav-enseigne-fleche:focus-visible,
.nav-principale .nav-enseigne.is-open .nav-enseigne-fleche {
    opacity: 1;
    transform: none;
    text-decoration: none;
}
.nav-principale .nav-enseigne > ul {
    left: 50%;
    min-width: 0;
    width: max-content;
    margin-left: -90px;
    border-radius: 0 0 var(--radius) var(--radius);
}
.nav-principale .nav-enseigne > ul > li {
    padding-top: 1vh;
}
.nav-principale .nav-enseigne img {
    display: block;
    width: 150px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}
@media (max-width: 1000px) {
    .nav-principale .bloc_milieu .nav-enseigne {
        display: none;
    }
}
.side-menu-enseigne {
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    font-size: .85rem;
    opacity: .75;
}
.side-menu-enseigne img {
    width: 120px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.bloc_gauche,.bloc_milieu,.bloc_droite {
    display: flex;
    height: 100%;
}

.bloc_droite>li {
    display: flex;
    align-items: center;
}
.bloc_droite {
    justify-content: flex-end;
}

.bouton {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: 8vh;
    margin:auto;
    max-height: 55px;
    font-family: var(--font-serif);
    padding: 0 10px;
    color:var(--text-base-color);
    background: var(--rouge_fonce);
    border-radius: var(--radius);
    transition: background .3s, border-color .3s, box-shadow .3s, transform .25s cubic-bezier(.2, .8, .3, 1);
    min-width: fit-content;
    font-size:1.2em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: min(800px,90vw);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bouton::after {
    content: "";
    position: absolute;
    inset: -35% auto -35% -70%;
    z-index: 1;
    width: 45%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: skewX(-18deg);
    transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}

.bouton:hover,.bouton:focus-visible {
    background: var(--rouge_clair);
    color: var(--text-base-color);
    border-color: rgba(222, 0, 0, 0.5);
    transform: translateY(-2px);
    box-shadow:
        0 10px 32px rgba(188, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bouton:hover::after,
.bouton:focus-visible::after {
    transform: translateX(430%) skewX(-18deg);
}

.bouton:active {
    transform: translateY(1px) scale(.985);
    transition-duration: .08s;
}

.nav-principale > ul > li:last-child {
    display: flex;
}

@media (prefers-reduced-motion: reduce) {
    .bouton,
    .bouton::after,
    .nav-principale,
    .nav-principale li,
    .burger-btn span,
    .menu-overlay,
    .side-menu,
	.side-menu > ul > li,
	.side-menu .side-menu-contenu,
	.side-menu .side-menu-declencheur::after  {
        animation: none !important;
        transition: none !important;
    }
}

#burger-toggle {
    position: fixed;
    width: 0;
    height: 0;
    top: 0;
    right: 0;
    margin: 0;
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: min(55px, 8vh);
    height: min(55px, 8vh);
    padding: 0;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
    margin-left: 1vh;
    flex-shrink: 0;
}

.burger-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.burger-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-base-color);
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        width 0.3s ease;
}


#burger-toggle:checked ~ header .burger-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#burger-toggle:checked ~ header .burger-btn span:nth-child(2) {
    opacity: 0;
    width: 0;
}
#burger-toggle:checked ~ header .burger-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.4s ease;
    cursor: pointer;
}

.side-menu {
    display: none;
    position: fixed;
    text-align: center;
    margin: min(2vh, 3vw);
    padding: 1vh;
    top: max(50px, 10vh);
    right: 0;
    bottom: auto;
	max-height: calc(100vh - max(50px, 10vh) - 2rem);
	max-width: calc(100vw - 2 * min(2vh, 3vw));
    background: var(--fond-menu);
    border-left: 1px solid var(--color-border);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(14px);
    z-index: 11;
    border-radius: 0 0 20px 20px;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.mobile-only {
    display: none;
}
@media (max-width: 830px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: revert;
    }
    .side-menu ul li ul {
        margin: 0;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        list-style: none;
        padding: 0;
        text-align: center;
    }
    /* Seul sur sa ligne (Tarifs hors saison du Donjon Maudit) : pleine largeur plutôt qu'une case vide. */
    .side-menu ul li ul > li:only-child {
        grid-column: 1 / -1;
    }
	.side-menu .side-menu-declencheur {
		position: relative;
		width: 100%;
		padding: 1.1vh 3rem 1.1vh 1rem;
		border: 0;
		background: transparent;
		color: var(--text-base-color);
		font: inherit;
		text-align: left;
		cursor: pointer;
	}
	.side-menu .side-menu-declencheur::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 1.25rem;
		width: .65rem;
		height: .65rem;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-70%) rotate(45deg);
		transition: transform .3s ease;
	}
	.side-menu .side-menu-declencheur[aria-expanded="true"]::after {
		transform: translateY(-30%) rotate(225deg);
	}
	.side-menu .side-menu-contenu {
		gap: .35rem;
		max-height: 0;
		padding-inline: .4rem;
		padding-top: 0;
		padding-bottom: 0;
		opacity: 0;
		overflow: hidden;
		filter: blur(4px);
		transform: translateY(-.5rem);
		pointer-events: none;
		transition:
			max-height .45s cubic-bezier(.4, 0, .2, 1),
			padding-top .35s ease,
			padding-bottom .35s ease,
			opacity .25s ease,
			filter .35s ease,
			transform .35s ease;
	}
	.side-menu .side-menu-contenu.is-open {
		max-height: 32rem;
		padding-top: .2rem;
		padding-bottom: .4rem;
		opacity: 1;
		filter: blur(0);
		transform: translateY(0);
		pointer-events: auto;
	}
	.side-menu .side-menu-declencheur:hover,
	.side-menu .side-menu-declencheur:focus-visible {
		color: var(--rouge_clair);
	}
    .side-menu > ul > li {
     border: 1px solid var(--color-border);
     border-radius: 10px;
     margin-bottom: 1vh;
    }
	.side-menu > ul > li:not(.side-menu-groupe) {
		border: 0;
	}
	.side-menu > ul > li:not(.side-menu-groupe) > ul {
		gap: .4rem;
	}
	.side-menu > ul > li:not(.side-menu-groupe) > ul > li {
		border: 1px solid var(--color-border);
		border-radius: 10px;
	}
    .side-menu a {
        padding: 1.2vh;
    }
    .side-menu li a:hover, .side-menu li a:focus-visible {
        border-color: var(--rouge_clair);
        border-radius: 10px;
        outline: 1px solid;
        background: rgba(222, 0, 0, 0.07);
    }
    .side-menu li a.salle-lien:hover,
    .side-menu li a.salle-lien:focus-visible {
        border-color: transparent;
        outline: 0;
        background: transparent !important;
    }
    .bloc_gauche{
        display: none;
    }
    .bloc_droite {
        width: auto;
        margin-left: auto;
        gap: clamp(.65rem, 2vw, 1.25rem);
    }
    .burger-btn {
        display: flex;
        margin-left: clamp(.65rem, 2vw, 1.25rem);
    }
    .menu-overlay {
        display: block;
    }
    #burger-toggle:checked ~ .menu-overlay {
        background: rgba(0, 0, 0, 0.55);
        pointer-events: auto;
    }
    #burger-toggle:checked ~ .side-menu {
        display: block;
        transform: translateX(0);
    }
    #burger-toggle:checked ~ header .nav-principale {
        border-radius: 20px 20px 0 20px;
    }
}

@media (max-width: 830px) and (orientation: landscape) {
    .bloc_droite {
        gap: clamp(1rem, 3vw, 2rem);
    }
    .burger-btn {
        margin-right: clamp(.35rem, 1vw, .75rem);
        margin-left: clamp(1rem, 3vw, 2rem);
    }
}

/* Sur les écrans étroits, le favicon remplace le logo complet afin de laisser
   le libellé Réserver s'agrandir sans recouvrir le bouton du menu. */
@media (max-width: 350px) {
    .bloc_milieu {
        flex: 0 1 42px;
        min-width: 32px;
        width: 42px;
        margin-left: .6rem;
    }
    #nav-logo,
    #nav-logo a {
        width: 100%;
        min-width: 32px;
    }
    #nav-logo a {
        background-image: url("../assets/images/interface/favicon.png");
    }
}

@media (max-width: 360px) {
    .bloc_droite {
        display: none;
    }
    .side-menu {
        width: 90%;
        text-wrap: wrap;
    }
    .side-menu a{
        justify-content: center;
    }
}

h1{
    font-family: var(--font-cursive);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.1;
}
h2{
    font-family: var(--font-cursive);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
}
.titre-page {
    font-size: clamp(2rem, 3vw, 3rem);
}
h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}
p {
    font-size: clamp(1.2rem, 1.6vw, 1.7rem);
	line-height: 1.5;
}

/* Structure et typographie des pages */
#main {
    width: 100%;
    text-align: center;
}

/* Accueil : hero, sélection des salles et aperçu */
.homepage{
    text-shadow: 2px 2px 5px black;
    overflow-x: hidden;
    overflow-x: clip;
}


.hero_container{
    width:100%;
    background: linear-gradient(to bottom, transparent 80%, var(--background-default-color) 100%);
}

.hero{
    margin: auto;
    max-width: min(950px,80vw);
    height:100vh;
    position:relative;
}

.hero_opaque{
    position:relative;
    min-height:50vh;
    display: block;
    margin:0;
    background:var(--background-default-color);
    width:100%;
    padding:2vh 0;
}

.hero_opaque.centre{
    display:flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.hero_centre {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width:100%;
}

.hero-sous-titre {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: bold;
    line-height: normal;
}

.hero-description {
    max-width: 46rem;
    margin: .8rem auto 0;
    padding-inline: 1rem;
    font-size: clamp(1.1rem, 1.75vw, 1.4rem);
    line-height: 1.45;
}

.hero_bas {
    position: absolute;
    bottom: 15vh;
    left: 0;
    right: 0;
}

.hero-preuve-google {
    color: inherit;
    text-decoration-color: color-mix(in srgb, var(--univers-aventure) 70%, transparent);
    text-underline-offset: .25em;
}

.hero-preuve-google:hover,
.hero-preuve-google:focus-visible {
    color: var(--univers-aventure);
}

.etoiles-animees {
    display: inline-flex;
    gap: 0.12em;
    color: var(--univers-aventure);
}

.etoiles-animees > span {
    --etoile-entree-delai: 0.35s;
    --etoile-flottement-delai: 1.45s;
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5rem) scale(0.45) rotate(-12deg);
    animation:
        hero-etoile-entree 0.55s var(--etoile-entree-delai) cubic-bezier(.2, .85, .3, 1.35) forwards,
        hero-etoile-flottement 3.2s var(--etoile-flottement-delai) ease-in-out infinite;
}

.etoiles-animees > span:nth-child(2) { --etoile-entree-delai: 0.47s; --etoile-flottement-delai: 1.8s; }
.etoiles-animees > span:nth-child(3) { --etoile-entree-delai: 0.59s; --etoile-flottement-delai: 2.15s; }
.etoiles-animees > span:nth-child(4) { --etoile-entree-delai: 0.71s; --etoile-flottement-delai: 1.65s; }
.etoiles-animees > span:nth-child(5) { --etoile-entree-delai: 0.83s; --etoile-flottement-delai: 2s; }

.hero_bas .etoiles-animees > span {
    opacity: 1;
    animation:
        hero-etoile-entree-visible 0.45s calc(var(--etoile-entree-delai) - 0.35s) cubic-bezier(.2, .85, .3, 1.35) both,
        hero-etoile-flottement 3.2s var(--etoile-flottement-delai) ease-in-out infinite;
}

.reveal-actif .etoiles-animees[data-accueil-reveal]:not(.est-visible) > span {
    opacity: 0;
    animation: none;
}

@keyframes hero-etoile-entree {
    70% {
        opacity: 1;
        transform: translateY(-0.12rem) scale(1.18) rotate(3deg);
        text-shadow: 0 0 1rem var(--univers-aventure);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
        text-shadow: 0 0 0.45rem color-mix(in srgb, var(--univers-aventure) 70%, transparent);
    }
}

@keyframes hero-etoile-entree-visible {
    0% {
        transform: translateY(0.35rem) scale(0.72) rotate(-8deg);
        filter: brightness(0.85);
    }
    70% {
        transform: translateY(-0.1rem) scale(1.12) rotate(2deg);
        filter: brightness(1.2);
        text-shadow: 0 0 0.8rem var(--univers-aventure);
    }
    100% {
        transform: none;
        filter: brightness(1);
        text-shadow: 0 0 0.45rem color-mix(in srgb, var(--univers-aventure) 70%, transparent);
    }
}

@keyframes hero-etoile-flottement {
    0%, 100% {
        transform: translateY(0) rotate(0);
        filter: brightness(1);
    }
    42% {
        transform: translateY(-0.1rem) rotate(-2deg);
        filter: brightness(1.18);
    }
    72% {
        transform: translateY(0.04rem) rotate(1.5deg);
        filter: brightness(1.05);
    }
}

.salles_de_jeu {
    display: grid;
    max-width: 1200px;
    margin:auto;
    grid-template-columns: repeat(8, 1fr);
    padding: 2rem 2rem 4vh 2rem;
    height:max(70vh,40vw);
    min-height:500px;
}

.salles_de_jeu > div {
    min-height:20vw;
    container-type: inline-size;
    background-size: cover;
    background-position: 50% 20%;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    outline: 4px solid transparent;
    transition: 
        outline-color 0.2s ease,
        transform 0.5s ease,
        filter 0.35s ease,
        opacity 0.35s ease;
}

:where(.reveal-actif) .salles_de_jeu > div {
    opacity: 0;
    transform: translateY(3rem) scale(0.92);
}

:where(.reveal-actif) .salles_de_jeu:not(.reveal-termine) > div {
    transition:
        outline-color 0.2s ease,
        transform 0.9s cubic-bezier(.2, .75, .25, 1),
        filter 0.35s ease,
        opacity 0.75s ease;
}

:where(.reveal-actif) .salles_de_jeu.est-visible > div {
    opacity: 1;
    transform: translateX(0) scale(1);
}

:where(.reveal-actif) .salles_de_jeu.est-visible:not(.reveal-termine) > div:nth-child(2) { transition-delay: 0.07s; }
:where(.reveal-actif) .salles_de_jeu.est-visible:not(.reveal-termine) > div:nth-child(3) { transition-delay: 0.14s; }
:where(.reveal-actif) .salles_de_jeu.est-visible:not(.reveal-termine) > div:nth-child(4) { transition-delay: 0.21s; }
:where(.reveal-actif) .salles_de_jeu.est-visible:not(.reveal-termine) > div:nth-child(5) { transition-delay: 0.28s; }
:where(.reveal-actif) .salles_de_jeu.est-visible:not(.reveal-termine) > div:nth-child(6) { transition-delay: 0.35s; }
:where(.reveal-actif) .salles_de_jeu.est-visible:not(.reveal-termine) > div:nth-child(7) { transition-delay: 0.42s; }
:where(.reveal-actif) .salles_de_jeu.est-visible:not(.reveal-termine) > div:nth-child(8) { transition-delay: 0.49s; }

.salles_de_jeu > div:hover,.salles_de_jeu > div:focus-within{
    transform: scale(1.05);
    z-index: 2;
}

.salles_de_jeu > div:hover .salle_inner,.salles_de_jeu > div:focus-within .salle_inner {
    opacity:1;
}

.salles_de_jeu h2 {
    position:absolute;
    bottom:0;
    width: 100%;
    padding: 1rem 0.2rem;
    font-family: var(--font-cursive);
    font-size: clamp(1rem, 2vw, 1.5rem);
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    text-align: center;
}

/* Les diapositives de l'aperçu suivent l'ordre des cartes. */
.salles_de_jeu > div:nth-child(1), .apercu-salle-diapositive:nth-child(1) { --carte-salle: var(--couleur-immortel); }
.salles_de_jeu > div:nth-child(2), .apercu-salle-diapositive:nth-child(2) { --carte-salle: var(--couleur-templiers); }
.salles_de_jeu > div:nth-child(3), .apercu-salle-diapositive:nth-child(3) { --carte-salle: var(--couleur-amants); }
.salles_de_jeu > div:nth-child(4), .apercu-salle-diapositive:nth-child(4) { --carte-salle: var(--couleur-alchimiste); }
.salles_de_jeu > div:nth-child(5), .apercu-salle-diapositive:nth-child(5) { --carte-salle: var(--couleur-crypte); }
.salles_de_jeu > div:nth-child(6), .apercu-salle-diapositive:nth-child(6) { --carte-salle: var(--couleur-asile); }
.salles_de_jeu > div:nth-child(7), .apercu-salle-diapositive:nth-child(7) { --carte-salle: var(--couleur-sorciere); }
.salles_de_jeu > div:nth-child(8), .apercu-salle-diapositive:nth-child(8) { --carte-salle: var(--couleur-nouveau-monde); }
.apercu-salle-diapositive { --apercu-couleur: var(--carte-salle); }

.salles_de_jeu > div {
    background-image: var(--image-salle);
}

.salles_de_jeu > div:hover,
.salles_de_jeu > div:focus-within {
    outline-color: var(--carte-salle);
    background-image: linear-gradient(to bottom, transparent 50%, var(--carte-salle) 100%), var(--image-salle);
}

@media (hover: hover) and (pointer: fine) {
    .salles_de_jeu:has(> div:hover) > div:not(:hover) {
        filter: blur(3px) brightness(0.55);
        opacity: 0.58;
        transform: scale(0.97);
    }
}

/* Mobile : 2 colonnes */
@media (max-width: 768px) {
    .salles_de_jeu {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
        height: max(70vh, 500px);
        height: max(70svh, 500px);
        min-height: 0;
        padding:2vw 2vw 4vh 2vw;
    }
    .salles_de_jeu .salle_inner {
        opacity:1;
    }
    .salles_de_jeu .salle_inner .badge-salle {
        top: 0.2rem;
        width: calc(100% - 0.5rem);
        padding: 0.18rem 0.15rem;
        font-size: clamp(0.72rem, 3vw, 0.88rem);
    }
    .salles_de_jeu > div {
        height: 100%;
        min-width: 0;
        min-height: 0;
        background-image: linear-gradient(to bottom, transparent 50%, var(--fond-sous-menu) 70%, var(--carte-salle) 140%), var(--image-salle);
    }
    .salles_de_jeu h2 {
        padding-inline: 0.1rem;
        font-size: clamp(0.75rem, 3.5vw, 1rem);
        font-size: clamp(0.75rem, 14cqi, 1rem);
    }
}

.badge-salle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.25rem 0.75rem;
    color: var(--badge-salle-couleur);
    border: 1px solid currentColor;
    border-radius: 20px;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(2, 2, 3, 0.9);
    box-shadow: 0 0.35rem 1.2rem rgba(0, 0, 0, 0.5), 0 0 0.8rem color-mix(in srgb, var(--badge-salle-couleur) 14%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.salles_de_jeu .badge-salle {
    --badge-salle-couleur: var(--carte-salle);
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 769px) {
    .salles_de_jeu .badge-salle {
        max-width: calc(100% - 0.5rem);
        padding-inline: clamp(0.3rem, 5cqi, 0.75rem);
        font-size: clamp(0.9rem, 13cqi, 1.3rem);
    }
}

.salle_inner {
    color: var(--text-base-color);
    opacity:0;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: 
        transform 0.3s ease,
        opacity 0.4s ease;
}

.apercu-salle {
    --apercu-couleur: var(--rouge_fonce);
    --badge-salle-couleur: var(--apercu-couleur);
    width: min(94vw, 1180px);
    max-width: none;
    height: min(84vh, 720px);
    height: min(84svh, 720px);
    max-height: calc(100vh - 2rem);
    max-height: calc(100svh - 2rem);
    margin: auto;
    padding: 0;
    overflow: hidden;
    touch-action: pan-y;
    perspective: 1100px;
    -webkit-perspective: 1100px;
    perspective-origin: 50% 50%;
    color: var(--text-base-color);
    border: 1px solid color-mix(in srgb, var(--apercu-couleur) 72%, var(--color-border));
    border-radius: var(--radius);
    background: var(--background-default-color);
    box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.8), 0 0 2rem color-mix(in srgb, var(--apercu-couleur) 18%, transparent);
}

.apercu-salle[open] {
    display: block;
    animation: apercu-salle-entree 0.35s ease-out;
}

.apercu-salle::backdrop {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(8px);
}

@keyframes apercu-salle-entree {
    from { opacity: 0; transform: translateY(1rem) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.apercu-salle[open].fermeture {
    pointer-events: none;
    animation: apercu-salle-sortie 0.35s ease-in forwards;
}

.apercu-salle[open].fermeture::backdrop {
    animation: apercu-fond-sortie 0.35s ease-in forwards;
}

@keyframes apercu-salle-sortie {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(0.75rem) scale(0.975); }
}

@keyframes apercu-fond-sortie {
    to { background: transparent; backdrop-filter: blur(0); }
}

.apercu-salle-fermer {
    position: absolute;
    z-index: 3;
    top: 0.65rem;
    right: 0.75rem;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--text-base-color);
    background: rgba(0, 0, 0, 0.52);
    display: grid;
    place-items: center;
    font-size: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.apercu-salle-fermer::before,
.apercu-salle-fermer::after {
    content: "";
    position: absolute;
    width: 1.25rem;
    height: 2px;
    border-radius: 1rem;
    background: currentColor;
}

.apercu-salle-fermer::before {
    transform: rotate(45deg);
}

.apercu-salle-fermer::after {
    transform: rotate(-45deg);
}

.apercu-salle-fermer:hover,
.apercu-salle-fermer:focus-visible {
    background: var(--apercu-couleur);
    transform: rotate(90deg);
}

.apercu-salle-piste {
    display: flex;
    width: var(--largeur-piste, 100%);
    height: 100%;
    cursor: grab;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    isolation: isolate;
    will-change: transform;
}

.apercu-salle-piste:active {
    cursor: grabbing;
}

.apercu-salle-diapositive {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.75fr);
    flex: 0 0 calc(var(--largeur-diapositive, 100%) + 1px);
    margin-right: -1px;
    min-width: 0;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
}

.apercu-salle-image {
    min-width: 0;
    overflow: hidden;
    background: #080808;
}

.apercu-salle-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.apercu-salle-contenu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(2rem, 4vw, 4rem);
    overflow-y: auto;
    text-align: center;
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--apercu-couleur) 19%, transparent), transparent 22rem),
        linear-gradient(145deg, #181818, var(--background-default-color));
}

.apercu-salle-titre {
    font-family: var(--font-cursive);
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.1;
}

.apercu-salle-univers {
    align-self: center;
    margin: 1.25rem 0;
}

.apercu-salle-infos {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    list-style: none;
    opacity: 0.9;
}

.apercu-salle-infos li {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

.apercu-salle-description {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.5;
}

.apercu-salle-actions {
    display: grid;
    gap: 0.7rem;
    width: min(100%, 20rem);
    margin: 1.5rem auto 0;
}

.apercu-salle-actions .bouton {
    width: 100%;
    height: 3rem;
    margin: 0;
}

.apercu-salle-actions .apercu-salle-details {
    color: var(--text-base-color);
    border-color: var(--apercu-couleur);
    background: color-mix(in srgb, var(--apercu-couleur) 22%, transparent);
}

.apercu-salle-actions .apercu-salle-details:hover,
.apercu-salle-actions .apercu-salle-details:focus-visible {
    border-color: color-mix(in srgb, var(--apercu-couleur) 75%, white);
    background: color-mix(in srgb, var(--apercu-couleur) 42%, transparent);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--apercu-couleur) 32%, transparent), inset 0 1px rgba(255, 255, 255, .18);
}

@media (min-width: 769px) {
    .apercu-salle-contenu {
        padding: clamp(1.5rem, 3vw, 2.75rem);
        overflow: hidden;
    }

    .apercu-salle-titre {
        font-size: clamp(2rem, 3.3vw, 3.25rem);
        line-height: 1.05;
    }

    .apercu-salle-univers {
        margin: 0.8rem 0;
    }

    .apercu-salle-infos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.2rem 0.75rem;
        margin-bottom: 0.8rem;
    }

    .apercu-salle-description {
        font-size: clamp(0.95rem, 1.15vw, 1.08rem);
        line-height: 1.4;
    }

    .apercu-salle-actions {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .apercu-salle-actions .bouton {
        height: 2.8rem;
    }
}

body:has(.apercu-salle[open]) {
    overflow: hidden;
}

@media (max-width: 768px) {
    .apercu-salle {
        width: min(96vw, 34rem);
        height: auto;
        min-height: 0;
        block-size: auto;
        max-height: calc(100vh - 1rem);
        max-height: calc(100svh - 1rem);
    }

    .apercu-salle-diapositive {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .apercu-salle-image {
        flex: 0 0 clamp(15rem, 36vw, 20rem);
        height: clamp(15rem, 36vw, 20rem);
    }

    .apercu-salle-contenu {
        flex: 0 0 auto;
        justify-content: flex-start;
        padding: 0.8rem;
        overflow: visible;
    }

    .apercu-salle-titre {
        font-size: clamp(1.7rem, 8vw, 2.35rem);
        line-height: 1;
    }

    .apercu-salle-univers {
        margin: 0.45rem 0;
        font-size: 1rem;
    }

    .apercu-salle-infos {
        grid-template-columns: 1fr 1fr;
        gap: 0.1rem 0.5rem;
        margin-bottom: 0.45rem;
    }

    .apercu-salle-infos li {
        font-size: 0.82rem;
    }

    .apercu-salle-description {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .apercu-salle-actions {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.65rem;
    }

    .apercu-salle-actions .bouton {
        height: 2.65rem;
        padding: 0 0.4rem;
        font-size: 0.95rem;
    }

    @supports (height: 100svh) and (translate: -50% -50%) {
        .apercu-salle {
            position: fixed;
            inset: auto;
            top: 50svh;
            left: 50%;
            margin: 0;
            height: auto;
            block-size: auto;
            translate: -50% -50%;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .apercu-salle[open] {
        animation: none;
    }

    .apercu-salle-fermer {
        transition: none;
    }

    .etoiles-animees > span {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

footer .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

footer .footer-bottom {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1rem;
    text-align: center;
    gap: 4px;
}

.footer-univers {
    flex-basis: 100%;
}
.footer-bottom .footer-univers a { display: inline-flex; align-items: center; gap: .5em; color: inherit; }

footer{
    padding: 2rem;
    background: var(--background-default-color);
    color: var(--text-base-color);
    font-size: 0.95rem;
}

/* Footer et newsletter */
.footer-logo{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.footer-logo img {
    display: block;
    max-width: min(100%, 11.5rem);
    width: fit-content;
    height: auto;
    margin: 0;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul.footer-decouvrir {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: .8rem clamp(.9rem, 2vw, 1.5rem);
    width: 100%;
}

.footer-decouvrir > li:nth-child(-n + 2) {
    grid-column: 1 / -1;
    justify-self: center;
}

.footer-col .footer-decouvrir > li {
    text-align: left;
}

.footer-col .footer-decouvrir > li > a {
    display: grid;
    grid-template-columns: 1.4rem max-content;
    align-items: center;
    gap: .4rem;
    margin: 0;
    text-align: left;
}

.footer-col .footer-decouvrir > li > a i {
    margin-right: 0;
    text-align: center;
}

.footer-col ul li a,
.footer-col ul li span {
    color: var(--text-base-color);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--rouge_clair);
}

.footer-col-contact i,
.footer-col a i {
    margin-right: 0.25rem;
}

/* L'asset Font Awesome allégé charge la police Brands, mais pas ce glyphe. */
.footer-col .fa-youtube::before {
    content: "\f167";
}

.footer-col .fa-facebook::before {
    content: "\f09a";
}

.footer-reseaux {
    display: block;
    gap: 0.8rem;
    margin-top: 1.2rem;
    font-size: 1rem;
    width:100%;
}

.footer-reseaux a{
    display: inline;
}

.footer-col-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-col-newsletter > h3 {
    width: min(100%, 18rem);
    margin-bottom: 0.75rem;
    text-align: center;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: min(100%, 18rem);
    margin: 0 auto;
}

.footer-newsletter input[type="email"] {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-min);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-base-color);
    font-size: 0.95rem;
    min-height: 2.75rem;
    max-width: none;
    width: 100%;
}

.footer-newsletter input[type="checkbox"] {
	min-height: 1rem;
    min-width: 1rem;
    flex: 0 0 1rem;
    margin-top: 0.15rem;
    accent-color: var(--rouge_clair);
}

.footer-newsletter label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    font-size: 0.85rem;
    line-height: 1.3;
    text-align: left;
    opacity: 0.9;
    cursor: pointer;
}

.footer-newsletter label span {
    display: inline;
    min-width: 0px;
}
.footer-newsletter label span a{
	display: inline;
	white-space: normal;
    color: var(--rouge_clair);
}

.notification-formulaire:empty {
    display: none;
}

.notification-formulaire:not(:empty) {
    --notification-accent: var(--commande-danger);
    margin-bottom: 0.8rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--notification-accent);
    border-radius: var(--radius-min);
    background: color-mix(in srgb, var(--notification-accent) 15%, transparent);
    color: var(--text-base-color);
    font-weight: 600;
    line-height: 1.35;
    animation: notification-entree 0.3s ease-out;
}

.notification-formulaire.succes {
    --notification-accent: var(--couleur-amants);
}

.notification-formulaire.erreur {
    --notification-accent: var(--commande-danger);
}

.footer-newsletter-message {
    width: 100%;
    margin: 0;
    font-size: 0.9rem;
    text-align: left;
}

.footer-newsletter .bouton {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 2.75rem;
    margin: 0.15rem 0 0;
    font-size: 1rem;
}

.footer-newsletter .bouton:disabled {
    opacity: 0.65;
    cursor: wait;
}

.footer-newsletter-gestion {
    align-self: center;
    text-align: center;
}

.newsletter-formulaire.newsletter-inscrite button[type="submit"] {
    display: none;
}

@media (min-width: 769px) {
    .footer-col > h3 {
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .footer-col ul {
        align-items: center;
        text-align: center;
    }

    .footer-col-contact ul {
        min-height: 8.9rem;
        justify-content: space-between;
        gap: 0;
    }
}

@keyframes notification-entree {
    from { opacity: 0; transform: translateY(-0.35rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .footer-col:not(.footer-col-newsletter) > h3 {
        margin-bottom: 0.75rem;
    }

    footer .footer-top{
        grid-template-columns: 1fr 1fr;
        padding: 2rem;
        text-align: center;
    }
    .footer-top > *:nth-child(4) {
        grid-column: 1 / -1; /* prend toute la largeur des 2 colonnes */
        justify-self: center; /* centre l'élément dans cet espace */
    }
    footer .footer-top li, .footer-reseaux{
        text-align: left;
    }

    .footer-logo {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-logo img {
        width: min(100%, 9.5rem);
    }
}

@media (max-width: 480px) {
    footer .footer-top {
        grid-template-columns: 1fr;
        padding-inline: 0;
    }
    footer .footer-top li, .footer-col a{
        margin: auto;
        text-align: center;
    }
    .footer-reseaux{
        text-align: center;
    }
}

/* Composants éditoriaux partagés */
.carte-verre {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--carte-couleur, var(--rouge_fonce)) 42%, var(--color-border));
    border-radius: var(--radius);
    background:
        radial-gradient(circle at var(--carte-lumiere-x, 12%) 15%, color-mix(in srgb, var(--carte-couleur, var(--rouge_fonce)) 20%, transparent), transparent 24rem),
        color-mix(in srgb, var(--color-bg-section) 84%, transparent);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#main:has(.page-identite) {
    background:
        radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--page-accent, var(--rouge_fonce)) 13%, transparent), transparent 32rem),
        radial-gradient(circle at 8% 100%, color-mix(in srgb, var(--page-accent-fin, var(--page-accent, var(--rouge_fonce))) 8%, transparent), transparent 28rem),
        var(--background-default-color);
}

#main:has(.page-identite)>section {
    background: transparent;
}

body:has(.page-identite) footer {
    background: radial-gradient(circle at 8% 0, color-mix(in srgb, var(--page-accent-fin, var(--page-accent, var(--rouge_fonce))) 8%, transparent), transparent 28rem), var(--background-default-color);
}

.section-immersif,
.section-histoire,
.section-taverne {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: stretch;
    gap: clamp(1rem, 3vw, 2.5rem);
    width: min(92%, 1150px);
    min-height: 0;
    margin: clamp(2rem, 6vw, 5rem) auto;
    padding: clamp(0.75rem, 1.4vw, 1.15rem);
}

.reveal-actif .homepage [data-accueil-reveal="gauche"],
.reveal-actif .homepage [data-accueil-reveal="droite"] {
    opacity: 0;
    transition: opacity 1s ease, transform 1.1s cubic-bezier(.2, .75, .25, 1);
}

.reveal-actif .homepage [data-accueil-reveal="gauche"] {
    transform: translateX(-8rem) scale(0.975);
}

.reveal-actif .homepage [data-accueil-reveal="droite"] {
    transform: translateX(8rem) scale(0.975);
}

.reveal-actif .homepage [data-accueil-reveal].est-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.section-immersif-texte,
.section-histoire-texte,
.section-taverne-texte {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.2rem, 2.8vw, 2.4rem);
    text-align: left;
}

.section-immersif-texte h2,
.section-histoire-texte h2,
.section-taverne-texte h2 {
    margin-bottom: 0.9rem;
}

.section-immersif-texte h2::after,
.section-histoire-texte h2::after,
.section-taverne-texte h2::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    margin-top: 0.7rem;
    border-radius: var(--radius);
    background: var(--carte-couleur);
    box-shadow: 0 0 1rem color-mix(in srgb, var(--carte-couleur) 60%, transparent);
}

.section-immersif-texte p,
.section-histoire-texte p,
.section-taverne-texte p {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.55;
    opacity: 0.9;
    margin-bottom: 0.65rem;
}

.section-immersif-image,
.section-histoire-image,
.section-taverne-image {
    min-height: clamp(14rem, 23vw, 21rem);
    overflow: hidden;
    border-radius: calc(var(--radius) - 0.25rem);
}

.section-immersif-image img,
.section-histoire-image img,
.section-taverne-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.section-immersif:hover img,
.section-histoire:hover img,
.section-taverne:hover img {
    transform: scale(1.035);
}

.lien-en-savoir-plus {
    align-self: flex-start;
    height: auto;
    margin-top: 0.5rem;
    padding-bottom: 0.2rem;
    color: var(--carte-couleur);
    border-bottom: 1px solid currentColor;
    font-family: var(--font-serif);
    font-size: 1rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lien-en-savoir-plus:hover {
    opacity: 0.8;
    transform: translateX(0.25rem);
}

@media (max-width: 768px) {
    .section-immersif,
    .section-histoire,
    .section-taverne {
        grid-template-columns: 1fr;
        width: 94%;
        gap: 0;
        margin: 1.5rem auto;
        padding: 0.5rem;
    }

    .section-immersif-image,
    .section-histoire-image,
    .section-taverne-image {
        min-height: 8rem;
        height: 36vw;
        order: -1;
    }

    .section-immersif-texte,
    .section-histoire-texte,
    .section-taverne-texte {
        padding: 1.1rem 0.9rem 1rem;
    }

    .reveal-actif .homepage [data-accueil-reveal="gauche"] {
        transform: translateX(-3rem) scale(0.975);
    }

    .reveal-actif .homepage [data-accueil-reveal="droite"] {
        transform: translateX(3rem) scale(0.975);
    }

    .reveal-actif .homepage [data-accueil-reveal].est-visible {
        transform: translateX(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-actif .salles_de_jeu > div,
    .reveal-actif .homepage [data-accueil-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Accueil : contenus de découverte et maillage interne */
.accueil-section-editoriale,
.accueil-evenements,
.accueil-localisation {
	width: min(92%, 1150px);
	margin: clamp(3.5rem, 8vw, 7rem) auto;
}

.accueil-section-editoriale,
.accueil-localisation {
	background: transparent;
}

.accueil-section-entete {
	max-width: 52rem;
	margin: 0 auto clamp(1.75rem, 4vw, 3rem);
	text-align: center;
}

.accueil-section-entete > p,
.accueil-sur-titre {
	margin: 0 0 .6rem;
	color: var(--univers-aventure);
	font-family: var(--font-serif);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .18em;
	line-height: 1.3;
	text-transform: uppercase;
}

.accueil-section-entete h2,
.accueil-evenements h2,
.accueil-localisation h2 {
	margin: 0;
	font-family: var(--font-cursive);
	font-size: clamp(2rem, 4.5vw, 3.5rem);
	line-height: 1.08;
	text-wrap: balance;
}

.accueil-categories-grille {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.accueil-categorie {
	position: relative;
	padding: clamp(1.35rem, 3vw, 2rem);
	border-color: color-mix(in srgb, var(--carte-couleur) 36%, #343438);
	background:
		radial-gradient(circle at 10% 0, color-mix(in srgb, var(--carte-couleur) 14%, transparent), transparent 48%),
		linear-gradient(145deg, color-mix(in srgb, var(--carte-couleur) 6%, #18181b), #121215 78%);
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .07);
	text-align: left;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.accueil-categorie::before {
	content: "";
	position: absolute;
	top: 0;
	left: 12%;
	width: 76%;
	height: 2px;
	border-radius: 0 0 999px 999px;
	background: var(--carte-couleur);
	box-shadow: 0 0 1rem color-mix(in srgb, var(--carte-couleur) 65%, transparent);
}

.accueil-categorie:hover {
	transform: translateY(-.25rem);
	border-color: color-mix(in srgb, var(--carte-couleur) 56%, #4b4b50);
	box-shadow: 0 1.5rem 3.2rem rgba(0, 0, 0, .46), 0 0 1.3rem color-mix(in srgb, var(--carte-couleur) 12%, transparent), inset 0 1px rgba(255, 255, 255, .09);
}

.accueil-categorie h3 {
	margin: 0 0 .75rem;
	font-family: var(--font-cursive);
	font-size: clamp(1.65rem, 2.7vw, 2.2rem);
}

.accueil-categorie h3 a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	color: color-mix(in srgb, var(--carte-couleur), white 25%);
	text-decoration: none;
}

.accueil-categorie h3 a span {
	font-family: var(--font-serif);
	font-size: 1.1rem;
	transition: transform .2s ease;
}

.accueil-categorie h3 a:hover span,
.accueil-categorie h3 a:focus-visible span {
	transform: translateX(.3rem);
}

.accueil-categorie > p {
	min-height: 3.2em;
	margin: 0 0 1.1rem;
	color: rgba(255, 255, 255, .72);
	font-family: var(--font-serif);
	font-size: 1rem;
	line-height: 1.5;
}

.accueil-categorie ul {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.accueil-categorie li {
	border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.accueil-categorie li:last-child {
	border-bottom: 0;
}

.accueil-categorie li a {
	display: grid;
	grid-template-columns: auto 1fr auto;
	width: 100%;
	padding: .7rem .15rem;
	align-items: center;
	gap: .65rem;
	border: 0;
	border-radius: 0;
	color: color-mix(in srgb, var(--salle-couleur), white 30%);
	background: transparent;
	font-family: var(--font-serif);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.accueil-categorie li a::before {
	content: "";
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: var(--salle-couleur);
	box-shadow: 0 0 .6rem color-mix(in srgb, var(--salle-couleur) 65%, transparent);
}

.accueil-categorie li a::after {
	content: "→";
	color: color-mix(in srgb, var(--salle-couleur), white 20%);
	font-size: .9rem;
	opacity: .75;
	transition: transform .2s ease;
}

.accueil-categorie li a:hover,
.accueil-categorie li a:focus-visible {
	padding-left: .45rem;
	color: white;
	background: linear-gradient(90deg, color-mix(in srgb, var(--salle-couleur) 13%, transparent), transparent 72%);
}

.accueil-categorie li a:hover::after,
.accueil-categorie li a:focus-visible::after {
	transform: translateX(.2rem);
}

.accueil-atouts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.accueil-atouts article {
	position: relative;
	overflow: hidden;
	padding: clamp(1.25rem, 2.7vw, 2rem);
	border: 1px solid color-mix(in srgb, var(--univers-aventure) 24%, var(--color-border));
	border-radius: var(--radius);
	background: linear-gradient(145deg, color-mix(in srgb, var(--univers-aventure) 7%, transparent), transparent 55%), color-mix(in srgb, var(--color-bg-section) 78%, transparent);
	box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .05);
	text-align: center;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.accueil-atouts article:hover { transform: translateY(-.25rem); border-color: color-mix(in srgb, var(--univers-aventure) 62%, var(--color-border)); box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, .3), 0 0 1rem color-mix(in srgb, var(--univers-aventure) 12%, transparent); }
.accueil-atouts strong,
.accueil-atouts article > i { display: grid; width: 3.25rem; min-height: 3.25rem; margin: 0 auto; place-items: center; border: 1px solid color-mix(in srgb, var(--univers-aventure) 48%, var(--color-border)); border-radius: 50%; color: var(--univers-aventure); background: color-mix(in srgb, var(--univers-aventure) 9%, transparent); font: clamp(1.55rem, 3vw, 2.05rem)/1 var(--font-cursive); box-shadow: 0 0 1rem color-mix(in srgb, var(--univers-aventure) 10%, transparent); }
.accueil-atouts article > i { font-family: "Font Awesome 6 Free"; font-size: 1.45rem; }
.accueil-atouts h3 { margin: .65rem 0 .5rem; font-family: var(--font-cursive); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.15; }
.accueil-atouts p { margin: 0; color: rgba(255, 255, 255, .7); font-family: var(--font-serif); font-size: .94rem; line-height: 1.45; }

.accueil-evenements {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(1.5rem, 5vw, 4rem);
	align-items: center;
	padding: clamp(1.75rem, 5vw, 3.5rem);
	--carte-couleur: var(--couleur-templiers);
	text-align: left;
}

.accueil-evenements h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.accueil-evenements p:last-child { max-width: 68ch; margin: 1rem 0 0; color: rgba(255, 255, 255, .78); font-family: var(--font-serif); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.6; }
.accueil-evenements .bouton { width: auto; height: auto; min-height: 3.3rem; margin: 0; padding: .75rem 1.25rem; text-align: center; }

.accueil-localisation {
	display: grid;
	grid-template-columns: minmax(12rem, .65fr) minmax(0, 1.35fr);
	gap: clamp(1.5rem, 5vw, 4rem);
	align-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	text-align: left;
}

.accueil-localisation-repere { display: grid; width: min(100%, 14rem); min-height: 0; aspect-ratio: 1; margin: 1rem auto; padding: 1.75rem; place-content: center; place-items: center; gap: .65rem; overflow: visible; border: 1px solid color-mix(in srgb, var(--univers-aventure) 42%, var(--color-border)); border-radius: 50%; color: var(--univers-aventure); background: radial-gradient(circle, color-mix(in srgb, var(--univers-aventure) 15%, transparent), transparent 70%); box-shadow: 0 0 2rem color-mix(in srgb, var(--univers-aventure) 10%, transparent), inset 0 0 1.5rem color-mix(in srgb, var(--univers-aventure) 7%, transparent); }
.accueil-localisation-repere i { font-size: clamp(2rem, 5vw, 3.5rem); }
.accueil-localisation-repere span { font: clamp(1.8rem, 4vw, 3rem)/1 var(--font-cursive); white-space: nowrap; }
.accueil-localisation h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.accueil-localisation > div:last-child > p:not(.accueil-sur-titre) { margin: 1rem 0; color: rgba(255, 255, 255, .78); font-family: var(--font-serif); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.6; }

.accueil-faq-liste {
	display: grid;
	gap: .75rem;
	max-width: 58rem;
	margin: 0 auto;
}

.accueil-faq-liste details { --carte-couleur: var(--univers-aventure); padding: 0; text-align: left; }
.accueil-faq-liste summary { position: relative; padding: 1rem 3.2rem 1rem 1.2rem; cursor: pointer; font-family: var(--font-serif); font-size: clamp(1rem, 1.5vw, 1.12rem); font-weight: 700; list-style: none; }
.accueil-faq-liste summary::-webkit-details-marker { display: none; }
.accueil-faq-liste summary::after { content: "+"; position: absolute; top: 45%; right: 1.2rem; color: var(--univers-aventure); font-size: 1.6rem; line-height: 1; transform: translateY(-50%); transition: transform .2s ease; }
.accueil-faq-liste details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accueil-faq-liste details p { margin: 0; padding: 0 1.2rem 1.1rem; color: rgba(255, 255, 255, .74); font-family: var(--font-serif); font-size: 1rem; line-height: 1.55; cursor: pointer; }
.accueil-faq-liste details p a { display: inline-block; margin-left: .35rem; color: white; text-decoration-color: var(--univers-aventure); text-underline-offset: .25em; }

@media (max-width: 850px) {
	.accueil-categories-grille { grid-template-columns: 1fr; }
	.accueil-categorie > p { min-height: 0; }
	.accueil-atouts { grid-template-columns: repeat(2, 1fr); }
	.accueil-evenements,
	.accueil-localisation { grid-template-columns: 1fr; text-align: center; }
	.accueil-evenements .bouton { width: min(100%, 24rem); margin: 0 auto; }
	.accueil-localisation-repere { width: 10rem; min-height: 0; padding: 1.15rem; }
	.accueil-localisation .lien-en-savoir-plus { display: inline-block; }
}

@media (max-width: 520px) {
	.accueil-section-editoriale,
	.accueil-evenements,
	.accueil-localisation { width: 94%; margin-block: 3.5rem; }
	.accueil-atouts { grid-template-columns: 1fr; }
}

.section-avis {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--background-default-color);
}

.section-presse {
    padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.25rem, 6vw, 5rem);
    background: radial-gradient(ellipse 70% 50% at 50% 50%, color-mix(in srgb, var(--univers-aventure) 9%, transparent), transparent 100%);
    text-align: center;
}

.presse-introduction {
    max-width: 48rem;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.presse-sur-titre {
    margin: 0 0 .6rem;
    color: var(--univers-aventure);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.presse-introduction h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
}

.presse-introduction > p:last-child {
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.65;
    opacity: .78;
}

.presse-medias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem;
    width: min(100%, 72rem);
    margin: 0 auto;
}

.presse-media {
    display: flex;
    flex: 0 1 calc(25% - .85rem);
    min-height: 4.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
    padding: 1.15rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    color: inherit;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

@media (max-width: 900px) {
    .presse-media {
        flex-basis: calc(50% - .85rem);
    }
}

.presse-media:hover,
.presse-media:focus-visible {
    transform: translateY(-.2rem);
    border-color: color-mix(in srgb, var(--univers-aventure) 65%, white);
    background: color-mix(in srgb, var(--univers-aventure) 8%, transparent);
    box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .22);
}

.presse-media-fleche {
    flex: 0 0 auto;
    color: var(--univers-aventure);
    font-size: 1.15em;
}

.presse-ressources {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	width: min(100%, 72rem);
	margin: clamp(2rem, 5vw, 3.5rem) auto 0;
	padding: clamp(1.35rem, 3vw, 2rem);
	gap: clamp(1.25rem, 4vw, 3rem);
	align-items: center;
	border: 1px solid color-mix(in srgb, var(--univers-aventure) 38%, var(--color-border));
	border-radius: var(--radius);
	background:
		radial-gradient(circle at 92% 50%, color-mix(in srgb, var(--univers-aventure) 13%, transparent), transparent 18rem),
		color-mix(in srgb, var(--color-bg-section) 82%, transparent);
	box-shadow: 0 1rem 2.8rem rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .06);
	text-align: left;
}

.presse-ressources h3 {
	margin: 0 0 .55rem;
	font-family: var(--font-cursive);
	font-size: clamp(1.45rem, 2.5vw, 2rem);
	line-height: 1.15;
	text-wrap: balance;
}

.presse-ressources p {
	max-width: 68ch;
	margin: 0;
	color: rgba(255, 255, 255, .76);
	font-family: var(--font-serif);
	font-size: clamp(.95rem, 1.3vw, 1.05rem);
	line-height: 1.55;
	text-wrap: pretty;
}

.presse-ressources .presse-ressources-action {
	display: inline-flex;
	width: auto;
	height: auto;
	min-height: 3.25rem;
	margin: 0;
	padding: .75rem 1.2rem;
	gap: .65rem;
	white-space: nowrap;
}

@media (max-width: 560px) {
    .section-presse {
        padding-block: 3.25rem;
    }

    .presse-media {
        flex-basis: 100%;
        min-height: 4rem;
        padding: 1rem 1.1rem;
    }

	.presse-ressources {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.presse-ressources .presse-ressources-action {
		width: 100%;
	}
}

.avis-top {
    display: flex;
	flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
}

.avis-google {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avis-preuve-lien {
	flex: 1 1 18rem;
	min-width: min(100%, 18rem);
	max-width: 24rem;
	height: 11rem;
	box-sizing: border-box;
    padding: 1.7rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: color-mix(in srgb, var(--univers-aventure) 5%, transparent);
    color: inherit;
    text-decoration: none;
    justify-content: center;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.avis-preuve-lien:hover,
.avis-preuve-lien:focus-visible {
    transform: translateY(-.25rem);
    border-color: var(--univers-aventure);
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .28), 0 0 1rem color-mix(in srgb, var(--univers-aventure) 18%, transparent);
}

.avis-google-titre {
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: bold;
    line-height: 1;
}

.avis-google-nombre {
    margin-top: .45rem;
    font-size: clamp(.9rem, 1.3vw, 1.05rem);
    line-height: 1.2;
    opacity: .8;
}

.avis-etoiles {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    letter-spacing: 0.2em;
}

.avis-escapegame {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.7rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.avis-pourcentage {
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.avis-pourcentage span {
    display: inline-block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    border: 2px solid var(--text-base-color);
    border-radius: 50px;
    padding: 0.1em 0.4em;
    margin-right: 0.3em;
    animation: satisfaction-brillance 3.8s ease-in-out infinite;
}

@keyframes satisfaction-brillance {
    0%, 100% {
        color: var(--text-base-color);
        border-color: var(--text-base-color);
        box-shadow: 0 0 0 transparent;
        text-shadow: 0 0 0 transparent;
    }
    50% {
        color: var(--univers-aventure);
        border-color: var(--univers-aventure);
        box-shadow: 0 0 1rem color-mix(in srgb, var(--univers-aventure) 48%, transparent);
        text-shadow: 0 0 0.65rem color-mix(in srgb, var(--univers-aventure) 75%, transparent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .avis-pourcentage span {
        animation: none;
    }
}

.avis-source {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: bold;
}

.preuve-the-escapers {
    align-self: center;
    margin: 0;
    padding: .8rem 1.2rem;
    border: 1px solid color-mix(in srgb, var(--univers-aventure) 38%, var(--color-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--univers-aventure) 8%, transparent);
    color: inherit;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.preuve-the-escapers > span {
    color: var(--univers-aventure);
    text-shadow: 0 0 .65rem color-mix(in srgb, var(--univers-aventure) 65%, transparent);
}

.theescapers-widget {
    width: 100%;
    background: transparent;
}

.theescapers-widget iframe {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
}

.avis-tripadvisor {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.15rem;
	background:
		radial-gradient(circle at 50% 50%, rgba(52, 224, 161, .1), transparent 65%),
		color-mix(in srgb, var(--univers-aventure) 5%, transparent);
	text-align: left;
}

.avis-tripadvisor img {
	display: block;
	flex: 0 0 auto;
	width: auto;
	height: 8rem;
	filter: drop-shadow(0 .35rem .65rem rgba(0, 0, 0, .28));
}

.avis-tripadvisor-contenu {
	display: grid;
	gap: .4rem;
	line-height: 1.2;
}

.avis-tripadvisor-contenu strong {
	font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.avis-tripadvisor-contenu > span {
	color: rgba(255, 255, 255, .72);
	font-size: .95rem;
}

.preuve-the-escapers:hover,
.preuve-the-escapers:focus-visible {
    transform: translateY(-.25rem);
    border-color: var(--univers-aventure);
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .28), 0 0 1rem color-mix(in srgb, var(--univers-aventure) 18%, transparent);
}

.avis-bottom {
    display: grid;
    grid-template-columns: 250px 1fr;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
}

.avis-resume {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.avis-resume strong {
    font-size: 1.3rem;
}

.avis-resume p {
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.4;
}

.avis-resume img {
    width: 100px;
    margin-top: auto;
    opacity: 0.8;
}

.avis-liste {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    padding: 2rem;
    gap: 2rem;
}

.avis-carte {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.avis-carte p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.6;
    opacity: 0.9;
}

.avis-auteur {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: auto;
}

.avis-suivant {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--text-base-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.avis-suivant:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .section-avis {
        padding: 0.5rem;
    }

    .avis-top {
        flex-direction: column;
        align-items: center;
		gap: 1rem;
        text-align: center;
    }

	.avis-preuve-lien {
		width: min(100%, 24rem);
		min-width: 0;
		max-width: 24rem;
		height: auto;
		min-height: 7.25rem;
		max-height: 8rem;
		padding: 1rem 1.25rem;
	}

	.avis-google-titre {
		font-size: clamp(1.8rem, 9vw, 2.25rem);
	}

	.avis-etoiles {
		font-size: 1.25rem;
	}

	.avis-pourcentage span {
		font-size: 1.8rem;
	}

	.avis-source {
		font-size: 1.25rem;
	}

	.avis-tripadvisor {
		justify-content: flex-start;
		gap: 1rem;
		text-align: left;
	}

	.avis-tripadvisor img {
		height: 5.25rem;
	}

	.avis-tripadvisor-contenu strong {
		font-size: 1.1rem;
	}

    .avis-bottom {
        grid-template-columns: 1fr;
    }

    .avis-liste {
        grid-template-columns: 1fr;
    }
}

.footer-bottom a {
    color: var(--rouge_clair);
}

.liens-legaux {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    font-size: clamp(.8rem, 3.4vw, .95rem);
}
.liens-legaux a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .35rem 0;
    color: var(--rouge_clair);
    white-space: nowrap;
    text-decoration: none;
    text-underline-offset: .3em;
}
.liens-legaux a + a {
    margin-left: clamp(.5rem, 2vw, 1rem);
    padding-left: clamp(.5rem, 2vw, 1rem);
}
.liens-legaux a + a::before {
    content: "";
    position: absolute;
    left: 0;
    width: 1px;
    height: .8em;
    background: var(--color-border);
}
.liens-legaux a:hover,
.liens-legaux a:focus-visible,
.liens-legaux a[aria-current="page"] {
    color: var(--commande-accent);
    text-decoration: underline;
}
.liens-legaux a:focus-visible {
    outline: 2px solid var(--commande-accent);
    outline-offset: 3px;
    border-radius: var(--radius);
}
.footer-liens-legaux {
    flex-basis: 100%;
    justify-content: center;
    margin: .4rem 0;
}

#main > section:first-of-type {
	padding-top: 14vh;
}

table {
    margin: auto;
}
section {
    background: var(--background-default-color);
}
.panier-global {
	position: fixed;
	right: max(.6rem, env(safe-area-inset-right));
	bottom: max(.6rem, env(safe-area-inset-bottom));
	z-index: 90;
	font-family: var(--font-serif);
}
.panier-global-declencheur {
	display: flex;
	min-height: 44px;
	padding: .5rem .85rem;
	gap: .55rem;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--text-base-color);
	background: var(--background-default-color);
	box-shadow: 0 .3rem 1rem #0006;
	font: .9rem var(--font-serif);
	cursor: pointer;
}
.panier-global-declencheur:hover { border-color: var(--couleur-templiers); background: var(--color-bg-header); }
.panier-global-declencheur:focus-visible { outline: 2px solid var(--couleur-templiers); outline-offset: 3px; }
.panier-global-declencheur > span {
	display: grid;
	min-width: 22px;
	height: 22px;
	padding: 0 .3rem;
	place-items: center;
	border-radius: 999px;
	color: white;
	background: var(--commande-accent, #c00);
	font-family: sans-serif;
	font-size: .8rem;
	line-height: 1;
	font-weight: 700;
}
.panier-global-apercu {
	position: absolute;
	right: 0;
	bottom: calc(100% + .7rem);
	width: min(360px, calc(100vw - 1.6rem));
	padding: 1rem;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: .75rem;
	color: white;
	background: rgba(20,20,20,.98);
	box-shadow: 0 16px 46px rgba(0,0,0,.5);
}
.panier-global-apercu[hidden] { display: none; }
.panier-global-apercu ul { display: grid; max-height: 240px; margin: .8rem 0; padding: 0; gap: .6rem; overflow: auto; list-style: none; }
.panier-global-apercu li { display: grid; padding-bottom: .55rem; gap: .15rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.panier-global-apercu li span { color: rgba(255,255,255,.7); font-size: .82rem; }
.panier-global-total { display: flex; margin: .75rem 0 1rem; justify-content: space-between; }
.panier-global-apercu .bouton { display: flex; justify-content: center; }
/* Accessible uniquement au clavier, avant la navigation principale. */
.lien-evitement{position:fixed;z-index:100000;top:.5rem;left:.5rem;padding:.75rem 1rem;background:#fff;color:#111;transform:translateY(-150%)}
.lien-evitement:focus{transform:translateY(0);outline:3px solid #de0000;outline-offset:2px}

/* Pages éditoriales thématiques : événements, groupes et guides de choix */
#main:has(.page-longue:not(.page-complement)) {
	background:
		radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--page-accent, var(--rouge_fonce)) 15%, transparent), transparent 31rem),
		radial-gradient(circle at 5% 72%, color-mix(in srgb, var(--page-accent, var(--rouge_fonce)) 8%, transparent), transparent 27rem),
		var(--background-default-color);
}

#main .page-longue {
	width: min(1120px, 92%);
	margin: 0 auto;
	padding: clamp(7.5rem, 14vh, 10rem) 0 clamp(3.5rem, 7vw, 6rem);
	font-family: var(--font-serif);
	text-align: left;
}

#main .page-longue .page-hero {
	position: relative;
	isolation: isolate;
	max-width: 920px;
	margin: 0 auto clamp(3rem, 7vw, 5rem);
	padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4.5rem);
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--page-accent) 48%, var(--color-border));
	border-radius: calc(var(--radius) + .35rem);
	background:
		linear-gradient(145deg, color-mix(in srgb, var(--page-accent) 16%, transparent), transparent 55%),
		color-mix(in srgb, var(--color-bg-section) 87%, transparent);
	box-shadow: 0 1.8rem 4.5rem rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .08);
	text-align: center;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

#main .page-longue .page-hero::before,
#main .page-longue .page-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
}

#main .page-longue .page-hero::before {
	inset: 0;
	background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--page-accent) 30%, transparent), transparent 52%);
	opacity: .65;
}

#main .page-longue .page-hero::after {
	left: 50%;
	bottom: 0;
	width: min(58%, 24rem);
	height: 3px;
	border-radius: 999px;
	background: var(--page-accent);
	box-shadow: 0 0 1.4rem color-mix(in srgb, var(--page-accent) 72%, transparent);
	transform: translateX(-50%);
}

#main .page-longue .page-hero h1,
#main .page-longue .page-section h2,
#main .page-longue .cta-bar h2 {
	font-family: var(--font-cursive);
}

#main .page-longue .page-hero h1 {
	max-width: 24ch;
	margin: 0 auto 1.25rem;
	font-size: clamp(1.9rem, 4.2vw, 3rem);
	line-height: 1.06;
	text-wrap: balance;
	text-shadow: 0 .2rem 1rem rgba(0, 0, 0, .65);
}

#main .page-longue .page-intro {
	max-width: 68ch;
	margin: 0 auto;
	color: rgba(255, 255, 255, .88);
	font-family: var(--font-serif);
	font-size: clamp(1.08rem, 1.75vw, 1.3rem);
	line-height: 1.65;
	text-wrap: pretty;
}

#main .page-longue .page-cta-inline {
	display: flex;
	justify-content: center;
	margin-top: clamp(1.5rem, 3vw, 2rem);
}

#main .page-longue .page-cta-inline .bouton,
#main .page-longue .cta-bar .bouton {
	height: auto;
	min-height: 3.25rem;
	padding: .75rem 1.4rem;
	text-align: center;
}

#main .page-longue .page-photo-signature {
	position: relative;
	isolation: isolate;
	width: min(920px, 100%);
	margin: clamp(-3.5rem, -5vw, -2rem) auto clamp(2rem, 5vw, 3.5rem);
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--page-accent) 52%, var(--color-border));
	border-radius: calc(var(--radius) + .25rem);
	background: var(--color-bg-section);
	box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, .38), 0 0 1.4rem color-mix(in srgb, var(--page-accent) 12%, transparent);
}

#main .page-longue .page-photo-signature::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(5, 5, 7, .82), transparent 42%);
	pointer-events: none;
}

#main .page-longue .page-photo-signature img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .8s cubic-bezier(.2, .75, .25, 1), filter .5s ease;
}

#main .page-longue .page-photo-signature figcaption {
	position: absolute;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(.9rem, 2vw, 1.5rem);
	left: clamp(1rem, 3vw, 2rem);
	z-index: 2;
	color: rgba(255, 255, 255, .9);
	font-family: var(--font-serif);
	font-size: clamp(.92rem, 1.4vw, 1.08rem);
	font-style: italic;
	line-height: 1.4;
	text-align: left;
	text-shadow: 0 2px .7rem #000;
}

#main .page-longue .page-photo-signature:hover img {
	transform: scale(1.025);
	filter: saturate(1.06);
}

#main .page-longue .page-section {
	position: relative;
	margin: 0 0 clamp(1.5rem, 4vw, 2.75rem);
	padding: clamp(1.5rem, 4vw, 2.75rem);
	border: 1px solid color-mix(in srgb, var(--page-accent) 24%, var(--color-border));
	border-radius: var(--radius);
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--page-accent) 7%, transparent), transparent 45%),
		color-mix(in srgb, var(--color-bg-section) 80%, transparent);
	box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .045);
}

#main .page-longue .page-section::before {
	content: "";
	position: absolute;
	top: clamp(1.5rem, 4vw, 2.75rem);
	left: 0;
	width: 3px;
	height: clamp(2.4rem, 5vw, 3.5rem);
	border-radius: 0 999px 999px 0;
	background: var(--page-accent);
	box-shadow: 0 0 1rem color-mix(in srgb, var(--page-accent) 65%, transparent);
}

#main .page-longue .page-section h2 {
	margin: 0 auto clamp(1.15rem, 2.5vw, 1.6rem);
	font-size: clamp(1.45rem, 2.6vw, 2rem);
	line-height: 1.12;
	text-align: center;
	text-wrap: balance;
}

#main .page-longue .page-section > p,
#main .page-longue .cta-bar > p {
	max-width: 76ch;
	margin: 0 auto 1rem;
	color: rgba(255, 255, 255, .84);
	font-family: var(--font-serif);
	font-size: clamp(1.02rem, 1.45vw, 1.17rem);
	line-height: 1.68;
	text-wrap: pretty;
}

#main .page-longue .page-section > p:last-child {
	margin-bottom: 0;
}

#main .page-longue .grille-cartes-info {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.75rem;
}

#main .page-longue .grille-cartes-info > .carte-verre {
	--carte-couleur: var(--page-accent);
	padding: clamp(1.25rem, 2.5vw, 1.7rem);
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

#main .page-longue .grille-cartes-info > .carte-verre:hover {
	transform: translateY(-.25rem);
	border-color: color-mix(in srgb, var(--page-accent) 70%, var(--color-border));
	box-shadow: 0 1.3rem 2.6rem rgba(0, 0, 0, .32), 0 0 1rem color-mix(in srgb, var(--page-accent) 18%, transparent);
}

#main .page-longue .grille-cartes-info strong {
	display: block;
	color: color-mix(in srgb, var(--page-accent), white 25%);
	font-family: var(--font-cursive);
	font-size: clamp(1.9rem, 3.5vw, 2.55rem);
	line-height: 1.1;
}

#main .page-longue .grille-cartes-info span {
	display: block;
	margin-top: .65rem;
	color: rgba(255, 255, 255, .72);
	font-family: var(--font-serif);
	font-size: 1rem;
	line-height: 1.4;
}

#main .page-longue .grille-cartes-texte > div {
	text-align: left;
}

#main .page-longue .grille-cartes-texte h3 {
	margin: 0 0 .65rem;
	color: color-mix(in srgb, var(--page-accent), white 28%);
	font-family: var(--font-cursive);
	font-size: clamp(1.3rem, 2.2vw, 1.65rem);
	line-height: 1.2;
}

#main .page-longue .grille-cartes-texte p {
	margin: 0;
	color: rgba(255, 255, 255, .75);
	font-family: var(--font-serif);
	font-size: 1rem;
	line-height: 1.55;
}

#main .page-longue .tableau-choix {
	overflow-x: auto;
	margin-top: 1.75rem;
	border: 1px solid color-mix(in srgb, var(--page-accent) 35%, var(--color-border));
	border-radius: var(--radius);
	background: rgba(12, 12, 14, .72);
	box-shadow: inset 0 1px rgba(255, 255, 255, .05);
	-webkit-overflow-scrolling: touch;
}

#main .page-longue .tableau-choix table {
	width: 100%;
	min-width: 660px;
	table-layout: auto;
	border-collapse: collapse;
	font-family: var(--font-serif);
}

#main .page-longue .tableau-choix th,
#main .page-longue .tableau-choix td {
	min-width: 0;
	padding: .9rem 1rem;
	overflow-wrap: normal;
	border-bottom: 1px solid rgba(255, 255, 255, .09);
	font-size: .98rem;
	line-height: 1.35;
	text-align: left;
}

#main .page-longue .tableau-choix th {
	color: rgba(255, 255, 255, .68);
	background: color-mix(in srgb, var(--page-accent) 9%, transparent);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

#main .page-longue .tableau-choix tr:last-child td {
	border-bottom: 0;
}

#main .page-longue .tableau-choix .suggestion-salle {
	cursor: pointer;
}

#main .page-longue .tableau-choix .suggestion-salle td {
	background: color-mix(in srgb, var(--salle-couleur) 6%, transparent);
	transition: background .25s ease;
}

#main .page-longue .tableau-choix .suggestion-salle:hover td,
#main .page-longue .tableau-choix .suggestion-salle:focus-within td {
	background: color-mix(in srgb, var(--salle-couleur) 17%, transparent);
}

#main .page-longue .tableau-choix .salle-nom-tableau {
	color: color-mix(in srgb, var(--salle-couleur), white 28%);
	font-weight: 700;
	text-decoration-color: var(--salle-couleur);
	text-underline-offset: .2em;
}

#main .page-longue .page-faq {
	background: transparent;
	box-shadow: none;
}

#main .page-longue .page-faq-liste {
	display: grid;
	gap: .85rem;
	max-width: 880px;
	margin: 0 auto;
}

#main .page-longue .page-faq-liste details {
	--carte-couleur: var(--page-accent);
	padding: 0;
	transition: border-color .25s ease, box-shadow .25s ease;
}

#main .page-longue .page-faq-liste details[open] {
	border-color: color-mix(in srgb, var(--page-accent) 68%, var(--color-border));
	box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .3), 0 0 1rem color-mix(in srgb, var(--page-accent) 14%, transparent);
}

#main .page-longue .page-faq-liste summary {
	position: relative;
	padding: 1.15rem 3.6rem 1.15rem 1.3rem;
	cursor: pointer;
	font-family: var(--font-serif);
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	font-weight: 700;
	line-height: 1.35;
	list-style: none;
}

#main .page-longue .page-faq-liste summary::-webkit-details-marker {
	display: none;
}

#main .page-longue .page-faq-liste summary::after {
	content: "+";
	position: absolute;
	top: 45%;
	right: 1.25rem;
	color: color-mix(in srgb, var(--page-accent), white 25%);
	font-family: var(--font-serif);
	font-size: 1.7rem;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-52%);
	transition: transform .25s ease;
}

#main .page-longue .page-faq-liste details[open] summary::after {
	transform: translateY(-52%) rotate(45deg);
}

#main .page-longue .page-faq-liste summary:focus-visible {
	outline: 2px solid var(--page-accent);
	outline-offset: -4px;
	border-radius: var(--radius);
}

#main .page-longue .page-faq-liste details p {
	margin: 0;
	padding: 0 1.3rem 1.25rem;
	color: rgba(255, 255, 255, .75);
	font-family: var(--font-serif);
	font-size: 1rem;
	line-height: 1.6;
	cursor: pointer;
}

#main .page-longue .cta-bar {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(2rem, 5vw, 3.5rem);
	border: 1px solid color-mix(in srgb, var(--page-accent) 55%, var(--color-border));
	border-radius: calc(var(--radius) + .35rem);
	background:
		radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--page-accent) 32%, transparent), transparent 62%),
		linear-gradient(145deg, color-mix(in srgb, var(--page-accent) 13%, #171717), #111 72%);
	box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .07);
	text-align: center;
}

#main .page-longue .cta-bar h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.5rem, 2.8vw, 2.1rem);
	text-wrap: balance;
}

#main .page-longue .cta-bar > div {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .9rem 1.25rem;
	margin-top: 1.5rem;
}

#main .page-longue .lien-secondaire {
	padding: .45rem .15rem;
	color: rgba(255, 255, 255, .92);
	text-decoration-line: underline;
	font-family: var(--font-serif);
	font-size: 1.05rem;
	text-decoration-color: var(--page-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: .3em;
	transition: color .2s ease;
}

#main .page-longue .lien-secondaire:hover,
#main .page-longue .lien-secondaire:focus-visible {
	color: color-mix(in srgb, var(--page-accent), white 28%);
}

@media (max-width: 800px) {
	#main .page-longue {
		width: min(94%, 1120px);
	}

	#main .page-longue .grille-cartes-info {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	#main .page-longue {
		width: min(95%, 1120px);
		padding-top: max(6.5rem, 13vh);
	}

	#main .page-longue .page-hero,
	#main .page-longue .page-section,
	#main .page-longue .cta-bar {
		padding-inline: 1.15rem;
	}

	#main .page-longue .page-hero h1 {
		font-size: clamp(1.75rem, 8vw, 2.3rem);
	}

	#main .page-longue .grille-cartes-info {
		grid-template-columns: 1fr;
	}

	#main .page-longue .tableau-choix {
		margin-inline: -.35rem;
	}

	#main .page-longue .page-photo-signature img {
		aspect-ratio: 4 / 3;
	}

	#main .page-longue .cta-bar > div {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	#main .page-longue .grille-cartes-info > .carte-verre,
	#main .page-longue .page-photo-signature img,
	#main .page-longue .page-faq-liste summary::after {
		transition: none;
	}
}

/* Bandeau et réglages des cookies */
.consentement[hidden],
[data-consentement-ouvrir][hidden],
[data-consentement-placeholder][hidden],
[data-consentement-visible][hidden],
[data-consentement-src][hidden] {
	display: none !important;
}

.consentement {
	position: fixed;
	z-index: 100;
	right: auto;
	bottom: max(1rem, env(safe-area-inset-bottom));
	left: max(1rem, env(safe-area-inset-left));
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: .65rem 1.25rem;
	width: min(520px, calc(100% - max(1rem, env(safe-area-inset-left)) - max(1rem, env(safe-area-inset-right))));
	max-height: 75dvh;
	margin: 0;
	padding: clamp(.85rem, 2vw, 1.25rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--color-border);
	border-top: 2px solid var(--rouge_fonce);
	border-radius: var(--radius);
	background: linear-gradient(130deg, var(--color-bg-section), var(--background-default-color));
	color: var(--text-base-color);
	box-shadow: 0 1rem 4rem #000b;
	font: 1rem/1.45 var(--font-serif);
	text-align: left;
	animation: consentement-entree .3s ease-out;
}

.consentement .consentement-titre {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 .4rem;
	padding-right: 2.6rem;
	font: 600 1.2rem/1.25 var(--font-serif);
}
.consentement-titre svg { flex: 0 0 20px; color: var(--commande-accent); }
.consentement-titre + p { padding-top: .25rem; }
.consentement p + p { margin-top: .4rem; }
.consentement p { font-size: 1em; line-height: 1.45; }
.consentement .consentement-infos { font-size: .92rem; }
.consentement a, .consentement-placeholder a, .consentement-sans-js a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.consentement-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: center; align-content: center; grid-auto-rows: 1fr; gap: .7rem; }

.consentement-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .65rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-bg-cell);
	color: var(--text-base-color);
	font: 600 1rem/1.25 var(--font-serif);
	text-align: center;
	cursor: pointer;
}

.consentement-bouton:hover { border-color: var(--couleur-templiers); background: var(--color-bg-header); }
.consentement-bouton[data-consentement-accepter] {
	min-height: 3.4rem;
	border-color: var(--commande-accent);
	border-radius: var(--radius);
	background: var(--commande-accent);
	color: var(--commande-cta-texte);
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 700;
	text-shadow: none;
	box-shadow: 0 10px 34px color-mix(in srgb, var(--commande-accent) 32%, transparent);
	transition: background .3s, border-color .3s, box-shadow .3s, transform .25s;
}
.consentement-bouton[data-consentement-accepter]:hover,
.consentement-bouton[data-consentement-accepter]:focus-visible {
	border-color: var(--commande-accent-survol);
	background: var(--commande-accent-survol);
	color: var(--commande-cta-texte);
	transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
	.consentement-bouton[data-consentement-accepter] { transition: none; transform: none; }
}
.consentement button:focus-visible, .consentement summary:focus-visible, .consentement a:focus-visible,
.consentement-rappel:focus-visible, .consentement-lien:focus-visible,
.consentement-placeholder button:focus-visible, .consentement-option input:focus-visible {
	outline: 2px solid var(--couleur-templiers);
	outline-offset: 3px;
}

.consentement details, .consentement #consentement-erreur { grid-column: 1 / -1; }
.consentement summary { width: fit-content; min-height: 30px; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.consentement-necessaires { padding: .8rem 0; }
.consentement-option { display: flex; align-items: flex-start; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--color-border); cursor: pointer; }
.consentement-option input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--couleur-templiers); }
.consentement-option span span { display: block; margin-top: .2rem; }
.consentement-lien { border: 0; padding: .25rem 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.consentement-fermer { --apercu-couleur: var(--rouge_fonce); top: .4rem; right: .4rem; width: 44px; height: 44px; }
.consentement-infos-liens { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem; margin-top: .2rem; }
.consentement-infos-liens .consentement-lien { padding: 0; }
.consentement details:not([open]) { display: none; }
.consentement [data-consentement-enregistrer] { margin-top: .8rem; }
.consentement-rappel { position: fixed; z-index: 90; bottom: max(.6rem, env(safe-area-inset-bottom)); left: max(.6rem, env(safe-area-inset-left)); padding: .5rem .85rem; min-height: 44px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--background-default-color); color: var(--text-base-color); font: .9rem var(--font-serif); box-shadow: 0 .3rem 1rem #0006; cursor: pointer; }
.consentement:not([hidden]) ~ .consentement-rappel { display: none; }
.consentement-placeholder { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg-section); color: var(--text-base-color); text-align: center; }
.consentement-placeholder p { line-height: 1.5; margin: 0 0 .75rem; }
.consentement-placeholder a { display: block; margin-top: .75rem; }
.consentement-video { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 15rem; }
.consentement-sans-js { padding: 1rem; text-align: center; }
.politique-cookies { width: min(92%, 1100px); margin: 2rem auto 0; scroll-margin-top: calc(14vh + 1rem); }
.politique-cookies h3 { margin: 1rem 0 .5rem; }
.politique-cookies .consentement-bouton { margin-top: 1rem; }

@media (max-width: 600px) {
	.consentement {
		left: max(2vw, env(safe-area-inset-left));
		right: max(2vw, env(safe-area-inset-right));
		width: auto;
		padding: .85rem 2vw;
		grid-template-columns: minmax(0, 1fr);
		gap: .6rem;
		max-height: 70dvh;
		font-size: .95rem;
	}
	.consentement-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.consentement-bouton { padding: .55rem .6rem; }
	.consentement-actions .consentement-bouton { min-height: 44px; font-size: 1rem; }
	.consentement .consentement-titre { font-size: 1.1rem; }
}

@media (min-width: 601px) {
	.consentement-actions .consentement-bouton {
		min-height: 44px;
		padding: .65rem .75rem;
		font-size: 1rem;
	}
}

@keyframes consentement-entree {
	from { opacity: 0; transform: translate(-1rem, 2rem); }
	to { opacity: 1; transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.consentement { animation: none; }
}

/* Le Journal du Donjon : liste des articles et article */
body:has(.journal) { --page-accent: var(--univers-aventure); }
#main .journal .journal-meta { margin: 0 0 1rem; color: var(--page-accent); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#main .journal .journal-meta a { color: inherit; }
#main .journal-signature { margin: .75rem 0 1rem; color: color-mix(in srgb, var(--text-base-color) 78%, transparent); font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 1.5; }
#main .journal-signature a { color: var(--page-accent); font-weight: 700; }
#main .journal-vide { text-align: center; opacity: .78; }
#main .journal-liste { display: grid; gap: 1.25rem; }
#main .journal-carte { --carte-couleur: var(--page-accent); }
#main .journal-carte a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); color: inherit; text-decoration: none; }
#main .journal-carte img { width: 100%; height: 100%; object-fit: cover; }
#main .journal-carte div { padding: clamp(1.25rem, 3vw, 2rem); }
#main .journal-carte h2 { margin: 0 0 .75rem; font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
#main .journal-carte p:last-child { margin: 0; opacity: .82; line-height: 1.6; }
#main .journal-carte a:hover h2 { color: color-mix(in srgb, var(--page-accent), white 25%); }
#main .journal-article { max-width: 880px; }
#main .journal-article .page-hero h1 { max-width: 26ch; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; }
#main .journal-salle h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
#main .journal-corps > :is(p, ul) { max-width: 70ch; margin: 0 auto 1.1rem; font-size: clamp(1.02rem, 1.45vw, 1.17rem); line-height: 1.7; }
#main .journal-corps > ul { padding-inline-start: clamp(1.5rem, 4vw, 2.25rem); }
#main .page-longue .journal-corps h2 { max-width: 70ch; margin: 2rem auto 1rem; font-size: clamp(1.45rem, 2.4vw, 1.9rem); text-align: center; }
#main .journal-corps h3 { margin: 1.75rem auto .75rem; max-width: 70ch; font-family: var(--font-cursive); font-size: 1.35rem; }
#main .journal-corps a { color: color-mix(in srgb, var(--page-accent), white 20%); }
#main .journal-corps blockquote { max-width: 64ch; margin: 1.75rem auto; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--page-accent); font-size: 1.2rem; font-style: italic; line-height: 1.6; }
#main .journal-corps blockquote p { margin: 0; }
#main .article-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.75rem 0; }
#main .article-images figure { margin: 0; }
#main .article-images img { display: block; width: auto; max-width: 100%; height: auto; max-height: 26rem; margin: 0 auto; border-radius: var(--radius); }
/* Une photo seule reste à taille de lecture, centrée, au lieu d'occuper toute la largeur. */
#main .article-images:has(> figure:only-child) { max-width: 34rem; margin-inline: auto; }
#main .article-images figcaption { margin-top: .5rem; font-size: .92rem; font-style: italic; opacity: .75; text-align: center; }
#main .journal-source { font-size: .95rem; opacity: .8; }
#main .journal-transparence { max-width: 70ch; margin: 1.5rem auto; padding: 1rem 1.25rem; border-left: 3px solid var(--page-accent); }
#main .journal-transparence strong { color: var(--page-accent); }
#main .journal-transparence p { margin: .35rem 0 0; line-height: 1.5; }
#main .journal-transparence a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
#main .journal-salles { display: grid; gap: 1rem; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
#main .journal-salle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
#main .journal-salle img { width: 100%; height: 100%; object-fit: cover; }
#main .journal-salle div { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.5rem; text-align: center; }
#main .journal-salle h2 { margin: 0; }
#main .journal-reserver { color: inherit; }
#main .journal-auteur { display: flex; gap: 1.25rem; align-items: center; padding: 1.5rem; text-align: left; }
#main .journal-auteur img { flex: 0 0 auto; width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; }
#main .journal-auteur p { margin: 0 0 .5rem; line-height: 1.55; }
#main .journal-auteur p:last-child { margin: 0; opacity: .8; }
#main .journal-auteur a { color: inherit; }
#main .journal-retour { margin-top: 2rem; text-align: center; }
#main .journal-retour a { color: inherit; }
#main .journal-a-lire { margin: clamp(2rem, 5vw, 3.5rem) 0; }
#main .page-longue .journal-faq { max-width: 880px; margin-inline: auto; }
#main .journal-faq > h2 { margin-bottom: 1.25rem; text-align: center; }
#main .journal-faq-liste { display: grid; gap: .65rem; }
#main .journal-faq details { border: 1px solid color-mix(in srgb, var(--page-accent) 38%, var(--color-border)); border-radius: var(--radius); background: color-mix(in srgb, var(--color-bg-section) 84%, transparent); }
#main .journal-faq summary { padding: 1rem 1.2rem; color: var(--text-base-color); font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 700; text-align: left; cursor: pointer; }
#main .journal-faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: color-mix(in srgb, var(--text-base-color) 86%, transparent); font-size: 1rem; line-height: 1.6; }
#main .journal-faq-contact { margin: 1.25rem 0 0; text-align: center; }
#main .journal-faq-contact a { color: var(--page-accent); font-weight: 700; }
@media (max-width: 700px) {
	#main .journal-carte a,
	#main .journal-salle { grid-template-columns: 1fr; }
	#main .journal-carte img,
	#main .journal-salle img { aspect-ratio: 16 / 9; }
	#main .journal-auteur { flex-direction: column; text-align: center; }
}
#main .journal-profil img { width: 8rem; height: 8rem; margin: 0 auto 1.25rem; border-radius: 50%; object-fit: cover; }
#main .journal-profil .page-intro + .page-intro { margin-top: 1rem; }
#main .journal-profil-lien { margin: 1.25rem 0 0; }
#main .journal-profil-lien a { color: color-mix(in srgb, var(--page-accent), white 20%); }
#main .journal-profil-titre { margin: 0 0 1.5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; }
body:has(.donjon-maudit) { --page-accent: var(--couleur-crypte); }

/* Contenu éditorial ajouté sous une page à mise en page propre (tarifs, cartes cadeaux, Taverne). */
#main .page-longue.page-complement { padding-top: clamp(1.5rem, 4vw, 3rem); }
#main .page-complement .notification-taverne { max-width: 760px; margin: 0 auto 2rem; padding: 1rem 1.25rem; text-align: center; }

/* Bandeau du protocole d'urgence (design/js/bandeau_urgence.js) : fixé en bas pour ne pas décaler la page. */
.bandeau-urgence { position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; display: flex; gap: .75rem; align-items: center; justify-content: center; padding: .6rem max(1rem, env(safe-area-inset-right)) max(.6rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); background: var(--rouge_fonce); color: #fff; font: 1rem/1.4 var(--font-serif); text-align: center; box-shadow: 0 -.3rem 1rem #0008; }
.bandeau-urgence p { margin: 0; }
/* Proposition de la version anglaise (design/footer.php), en bas à droite pour laisser libre le bouton des cookies. */
/* Même aspect que le bouton des cookies (.consentement-rappel). */
.suggestion-anglais { position: fixed; z-index: 90; right: max(.6rem, env(safe-area-inset-right)); bottom: max(.6rem, env(safe-area-inset-bottom)); display: flex; align-items: center; min-height: 44px; padding-right: .85rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--background-default-color); box-shadow: 0 .3rem 1rem #0006; font: .9rem var(--font-serif); }
.suggestion-anglais[hidden] { display: none; }
.suggestion-anglais a { color: var(--text-base-color); text-decoration: none; }
.suggestion-anglais button { min-width: 2.4rem; min-height: 44px; border: 0; background: transparent; color: var(--text-base-color); font-size: 1.1rem; cursor: pointer; }
.bandeau-urgence a { color: inherit; text-decoration: underline; }
.bandeau-urgence button { flex: none; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid #fff8; border-radius: var(--radius-min); background: transparent; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }

/* Bloc en deux colonnes : photo à fond perdu d'un côté, texte (un div) de l'autre ; photo au-dessus sur mobile. */
#main .bloc-photo,
#main .page-longue .bloc-photo {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	align-items: center;
	padding: 0;
	overflow: hidden;
}
#main .bloc-photo > img { width: 100%; height: 100%; min-height: 22rem; object-fit: cover; }
#main .page-section.bloc-photo > div > p + p { margin-top: 1rem; }
#main .bloc-photo > div { min-width: 0; padding: clamp(1.5rem, 4vw, 3.25rem); }
#main .page-longue .page-hero.bloc-photo { max-width: none; margin-top: 1.5rem; }
#main .page-longue .page-hero.bloc-photo::after { content: none; }
@media (min-width: 761px) {
	#main .bloc-photo-inverse,
	#main .page-longue .bloc-photo-inverse { grid-template-columns: 1fr 1.1fr; }
	#main .bloc-photo-inverse > img { order: 1; }
}
@media (max-width: 760px) {
	#main .bloc-photo,
	#main .page-longue .bloc-photo { grid-template-columns: 1fr; }
	#main .bloc-photo > img { min-height: 0; aspect-ratio: 16 / 10; }
}
