/* ==========================================================================
   ROTATION — socle commun : jetons de charte, reset, typographie, en-tête,
   pied de page, boutons, utilitaires.
   Les maquettes (noir + orange, Bebas Neue / IBM Plex) sont déclinées ici
   dans la charte Rotation : marine, vert, Barlow Condensed, Podiumsharp.
   ========================================================================== */

@font-face {
	font-family: "Podiumsharp-712";
	src: url("../fonts/podiumsharp-7.12-webfont.woff2") format("woff2"),
		url("../fonts/podiumsharp-7.12-webfont.woff") format("woff");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* Palette SOMBRE (par défaut) et zones qui restent toujours sombres, quel que soit le mode :
   en-tête, pied de page, hero, portes d'entrée, bandeau de fiche, barre de réservation
   (texte posé sur des photos ou ancrage de marque). */
:root,
:root[data-theme="dark"],
.site-header, .site-footer, .hero, .door, .sf-hero, .sf-bar {
	color-scheme: dark;
	color: var(--ink);   /* le texte sans couleur explicite hérite de l'encre de la zone */

	/* Couleurs de la charte — --navy = fond de page, --navy-deep = panneaux, --navy-soft = survols */
	--navy: #201747;
	--navy-deep: #181038;
	--navy-soft: #2a2059;
	--green: #00ad50;
	--accent: var(--green);        /* remplissages (boutons, filets) */
	--accent-ink: var(--green);    /* texte vert (plus foncé en mode clair, pour la lisibilité) */
	--on-accent: #201747;          /* texte sur fond vert */
	--white: #fff;

	/* Encre : blanc à opacités */
	--ink: #fff;
	--ink-2: rgba(255, 255, 255, .84);
	--ink-3: rgba(255, 255, 255, .62);
	--ink-4: rgba(255, 255, 255, .40);

	/* Filets */
	--line: rgba(255, 255, 255, .12);
	--line-2: rgba(255, 255, 255, .22);
	--line-3: rgba(255, 255, 255, .36);
}

/* Palette CLAIRE : fond légèrement teinté marine, encre marine, vert foncé pour le texte. */
:root[data-theme="light"] {
	color-scheme: light;

	--navy: #f7f6fb;
	--navy-deep: #ecebf4;
	--navy-soft: #e0deee;
	--accent-ink: #007a36;         /* 5:1 sur fond clair */

	--ink: #201747;
	--ink-2: rgba(32, 23, 71, .84);
	--ink-3: rgba(32, 23, 71, .70);
	--ink-4: rgba(32, 23, 71, .45);

	--line: rgba(32, 23, 71, .12);
	--line-2: rgba(32, 23, 71, .22);
	--line-3: rgba(32, 23, 71, .38);
}

:root {
	/* Typographies : Barlow Condensed partout, Podiumsharp pour l'affichage sportif */
	--f-body: "Barlow Condensed", "Arial Narrow", Helvetica, Arial, sans-serif;
	--f-title: "Barlow Condensed", "Arial Narrow", Helvetica, Arial, sans-serif;
	--f-display: "Podiumsharp-712", "Barlow Condensed", Helvetica, Arial, sans-serif;

	/* Mise en page */
	--gutter: clamp(18px, 4vw, 56px);
	--max: 1680px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* -- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
	margin: 0;
	background: var(--navy);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.45;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	transition: background-color .3s ease, color .3s ease;
}
::selection { background: var(--green); color: var(--on-accent); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-ink); }
button { font: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	padding: 14px 20px; background: var(--accent); color: var(--on-accent);
	font: 500 14px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--on-accent); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important; animation-iteration-count: 1 !important;
		transition-duration: .001ms !important; scroll-behavior: auto !important;
	}
}

/* -- Typographie ---------------------------------------------------------- */
/* Étiquettes (ex IBM Plex Mono, majuscules espacées) */
.label {
	font-family: var(--f-body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	line-height: 1.5;
}
.eyebrow {
	margin-bottom: clamp(20px, 2.6vw, 38px);
	color: var(--accent-ink);
	font-size: 14px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; line-height: 1.4;
}
/* Titres monumentaux (ex Bebas Neue) */
.h-title {
	font-family: var(--f-title);
	font-weight: 600;
	line-height: .9;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--ink);
}
.accent { color: var(--accent-ink); }

.muted { color: var(--ink-3); }
.prose p + p { margin-top: 1em; }

/* -- Boutons -------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: 14px;
	min-height: 56px; padding: 0 30px;
	border: 1px solid transparent; background: none;
	font-family: var(--f-body); font-size: 16px; font-weight: 600;
	letter-spacing: .16em; text-transform: uppercase; line-height: 1;
	cursor: pointer;
	transition: transform .35s var(--ease), filter .35s ease, border-color .3s ease, background-color .3s ease, color .3s ease, gap .3s ease;
}
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { color: var(--on-accent); transform: translateY(-3px); filter: brightness(1.12); }
.btn--ghost { border-color: var(--line-3); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-3px); }
.btn--outline { border-color: var(--accent); color: var(--accent-ink); }
.btn--outline:hover { background: var(--accent); color: var(--on-accent); }
.btn--md { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--lg { min-height: 64px; padding: 0 34px; font-size: 17px; gap: 16px; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 12px;
	min-height: 44px; padding-bottom: 2px;
	border-bottom: 1px solid var(--line-3);
	color: var(--accent-ink);
	font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	transition: border-color .3s ease, gap .3s ease;
}
.link-arrow:hover { color: var(--accent-ink); border-color: var(--accent); gap: 20px; }

/* -- En-tête -------------------------------------------------------------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 26px var(--gutter);
	border-bottom: 1px solid transparent;
	transition: padding .45s var(--ease), background-color .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled,
.site-header--solid {
	padding-block: 15px;
	background: rgba(32, 23, 71, .86);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom-color: rgba(255, 255, 255, .09);
}
.brand { display: block; flex-shrink: 0; line-height: 0; }
.brand img { width: auto; height: 24px; transition: height .45s var(--ease); }
.is-scrolled .brand img, .site-header--solid .brand img { height: 21px; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.site-nav__menu { display: none; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.site-nav__menu a {
	display: block; padding: 10px 0;
	color: var(--ink-3);
	font-size: 15px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase;
	transition: color .3s ease;
}
.site-nav__menu a:hover,
.site-nav__menu .current-menu-item > a { color: var(--ink); }
.site-nav__cta { min-height: 44px; padding: 0 20px; font-size: 15px; gap: 10px; }
.site-nav__menu a { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1239px) { .site-nav, .site-nav__menu { gap: 16px; } .site-nav__menu a { font-size: 14px; letter-spacing: .1em; } .site-nav__cta { padding: 0 14px; } }
@media (min-width: 900px) { .site-nav__menu { display: flex; } }
.site-nav__menu a.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* Menu mobile : bouton + panneau sous l'en-tête */
.nav-toggle { display: none; position: relative; flex-shrink: 0; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--line-2); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	position: absolute; left: 12px; width: 18px; height: 2px; background: var(--ink); content: "";
	transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle__bars { top: 20px; }
.nav-toggle__bars::before { top: -6px; left: 0; }
.nav-toggle__bars::after { top: 6px; left: 0; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 899px) {
	.nav-toggle { display: block; }
	.site-nav { gap: 10px; }
	.site-header.is-open { background: var(--navy); border-bottom-color: var(--line); }
	.site-header.is-open .site-nav__menu {
		position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 0;
		padding: 6px var(--gutter) 22px; background: var(--navy); border-bottom: 1px solid var(--line);
	}
	.site-header.is-open .site-nav__menu a { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 18px; box-shadow: none; }
	.site-header.is-open .site-nav__menu a.is-active { color: var(--accent-ink); }
}

.site-header__crumbs { display: none; align-items: center; gap: 12px; min-width: 0; color: var(--ink-3); font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.site-header__crumbs a { color: var(--ink-3); }
.site-header__crumbs a:hover { color: var(--ink); }
.site-header__crumbs [aria-current] { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .site-header__crumbs { display: flex; } }
.theme-toggle {
	display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
	background: none; border: 1px solid var(--line-2); color: var(--ink-2); cursor: pointer;
	transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}
.theme-toggle:hover { border-color: var(--ink-3); color: var(--ink); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Le soleil propose le mode clair (affiché en mode sombre), la lune propose le mode sombre. */
:root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
:root[data-theme="light"] .theme-toggle__sun { display: none; }
.site-header__phone { color: var(--ink-3); font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.site-header__phone:hover { color: var(--ink); }
/* Mobile : le logo, « Réserver » et les deux boutons doivent tenir sur une ligne, dès 320 px. */
.site-header { gap: 12px; }
@media (max-width: 639px) {
	.site-header { gap: 6px; }
	.brand { flex-shrink: 1; min-width: 0; }
	.brand img, .is-scrolled .brand img, .site-header--solid .brand img { width: clamp(96px, 30vw, 168px); max-width: 100%; height: auto; }
	.site-nav { gap: 6px; }
	.site-nav__cta { min-height: 38px; padding: 0 10px; font-size: 12px; letter-spacing: .08em; gap: 0; }
	.site-nav__cta > span[aria-hidden] { display: none; }
	.nav-toggle, .theme-toggle { width: 38px; height: 38px; }
	.nav-toggle__bars { top: 17px; left: 9px; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { left: 0; }
	.site-header__phone { font-size: 13px; letter-spacing: .1em; white-space: nowrap; }
	.site-header__phone-label { display: none; }
}

/* -- Pied de page --------------------------------------------------------- */
.site-footer {
	padding: clamp(48px, 6vw, 88px) var(--gutter) 34px;
	background: var(--navy-deep);
	border-top: 1px solid var(--line);
}
.site-footer__inner { max-width: var(--max); margin: 0 auto; }
.site-footer__hop {
	margin-bottom: clamp(40px, 5vw, 76px);
	font-family: var(--f-title); font-weight: 600;
	font-size: clamp(56px, 15vw, 240px); line-height: .8; letter-spacing: .01em;
	color: rgba(255, 255, 255, .08); text-transform: uppercase;
}
.site-footer__cols {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: clamp(24px, 3vw, 48px);
	padding-top: 30px; border-top: 1px solid var(--line);
}
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__title { margin-bottom: 6px; color: var(--ink-3); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.site-footer__col a { color: var(--ink-3); font-size: 17px; }
.site-footer__col a:hover { color: var(--ink); }
.site-footer__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: clamp(32px, 4vw, 56px); padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.site-footer__logo { display: inline-flex; align-items: center; min-height: 64px; opacity: .85; transition: opacity .3s ease, transform .3s var(--ease); }
.site-footer__logo:hover { opacity: 1; transform: translateY(-2px); }
.site-footer__logo img { display: block; height: 64px; width: auto; max-width: 200px; object-fit: contain; }
.site-footer__logo span { color: var(--ink-2); font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.site-footer__legal {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	margin-top: clamp(34px, 4vw, 60px); padding-top: 22px; border-top: 1px solid var(--line);
	color: var(--ink-3); font-size: 13px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
}
.site-footer__legal a { color: var(--ink-3); }
.site-footer__legal a:hover { color: var(--ink); }

/* -- Placeholder / photos ------------------------------------------------- */
.photo {
	position: relative; overflow: hidden;
	background: repeating-linear-gradient(135deg, var(--navy-deep) 0 14px, var(--navy-soft) 14px 28px);
	display: flex; align-items: flex-end; padding: 16px;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__cap { position: relative; color: var(--ink-3); font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.photo.has-img { padding: 0; }
.photo.has-img .photo__cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-fill { width: 100%; height: 100%; }

/* -- Pages génériques ----------------------------------------------------- */
.page-plain { padding: clamp(120px, 14vw, 200px) var(--gutter) clamp(60px, 8vw, 120px); }
.page-plain__inner { max-width: 960px; margin: 0 auto; }
.page-plain h1 { font-family: var(--f-title); font-weight: 600; font-size: clamp(44px, 7vw, 110px); line-height: .9; text-transform: uppercase; margin-bottom: 32px; }
.page-plain .prose { color: var(--ink-2); font-size: 20px; line-height: 1.55; }
.page-plain .prose a { color: var(--accent-ink); }
.page-plain .prose > * + * { margin-top: 1em; }
.page-plain .prose h2 { margin-top: clamp(36px, 4vw, 56px); color: var(--ink); font-family: var(--f-title); font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; }
.page-plain .prose h3 { margin-top: 1.6em; color: var(--ink); font-family: var(--f-title); font-weight: 600; font-size: clamp(21px, 1.8vw, 26px); letter-spacing: .05em; text-transform: uppercase; }
.page-plain .prose h2 + *, .page-plain .prose h3 + * { margin-top: .7em; }
.page-plain .prose strong { color: var(--ink); font-weight: 600; }
.page-plain .prose a { text-decoration: underline; text-underline-offset: 3px; }
.page-plain .prose ul, .page-plain .prose ol { padding-left: 1.4em; list-style: disc; }
.page-plain .prose ol { list-style: decimal; }
.page-plain .prose li { padding-left: .2em; }
.page-plain .prose li + li { margin-top: .5em; }
.page-plain .prose li::marker { color: var(--accent-ink); }

/* -- Révélation au scroll (activée par JS uniquement) --------------------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .95s var(--ease), transform .95s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }
