/* ==========================================================================
   Fun Ride Evasion - design system "premium"
   Charge apres style.css : redefinit l'apparence sans toucher au fonctionnement.
   Direction : sombre et cinematique, accents tropicaux (rouge / orange / turquoise).
   ========================================================================== */

:root {
    --ink: #0a0f1a;
    --ink-2: #111a2b;
    --ink-3: #1b2740;
    --paper: #f6f1e8;
    --paper-2: #ece4d6;
    --line: rgba(10, 15, 26, .1);
    --red: #e63a2e;
    --red-2: #c91f1f;
    --orange: #ffa62b;
    --teal: #2ec4b6;
    --muted: #6b7280;
    --font-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);

    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--paper);
    --bs-primary: #d62828;
    --bs-primary-rgb: 214, 40, 40;
    --bs-link-color: #c91f1f; --bs-link-color-rgb: 201, 31, 31; --bs-link-hover-color-rgb: 161, 20, 20;
    --bs-link-hover-color: #a11414;
    --couleur-primaire: #d62828;
    --couleur-accent: #ffa62b;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
body:not(.has-hero) { padding-top: 84px; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    letter-spacing: -.025em;
    font-weight: 700;
    color: inherit;
}
.section-title { font-weight: 700; color: var(--ink); letter-spacing: -.03em; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.text-primary { color: #d62828 !important; }
.text-muted { color: var(--muted) !important; }
a { transition: color .2s ease; }

/* ---------- Barre de progression + rideau de page ---------- */
#fx-progress {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 21000;
    transform-origin: 0 50%; transform: scaleX(var(--p, 0));
    background: linear-gradient(90deg, var(--orange), var(--red));
    pointer-events: none;
}
#fx-curtain {
    position: fixed; inset: 0; z-index: 19000; pointer-events: none;
    background: var(--ink); transform: translateY(-100%);
    animation: fxCurtainIn .65s cubic-bezier(.7, 0, .2, 1) .05s both;
}
#fx-curtain.leaving { animation: none; transform: translateY(100%); transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
#fx-curtain.leaving.go { transform: translateY(0); }
body.is-admin #fx-curtain { display: none; }
@keyframes fxCurtainIn { from { transform: translateY(0); } to { transform: translateY(-100%); } }

/* ---------- Curseur ---------- */
#fx-cursor {
    position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 50%; pointer-events: none;
    z-index: 22000; mix-blend-mode: difference; opacity: 0;
    transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .3s ease, background .25s ease;
}
#fx-cursor.on { opacity: 1; }
#fx-cursor.big { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(255, 255, 255, .12); }

/* ---------- Navigation ---------- */
#mainNavbar.fx-nav {
    padding: 1rem 0; background: rgba(10, 15, 26, .94); box-shadow: none; border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background .35s ease, padding .35s ease, backdrop-filter .35s ease, border-color .35s ease;
}
body:not(.has-hero) #mainNavbar.fx-nav { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.has-hero #mainNavbar.fx-nav { background: transparent; border-bottom-color: transparent; }
#mainNavbar.fx-nav.scrolled {
    background: rgba(10, 15, 26, .78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    padding: .5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .6);
}
.fx-logo { height: 66px; width: auto; transition: height .35s ease; display: block; }
#mainNavbar.scrolled .fx-logo { height: 50px; }
.fx-links .nav-link {
    color: rgba(255, 255, 255, .78); font-weight: 500; font-size: .93rem; position: relative; padding: .5rem .85rem;
    transition: color .2s ease;
}
.fx-links .nav-link::after {
    content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--orange);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease);
}
.fx-links .nav-link:hover, .fx-links .nav-link.active { color: #fff; }
.fx-links .nav-link:hover::after, .fx-links .nav-link.active::after { transform: scaleX(1); }
.fx-actions .nav-link { color: rgba(255, 255, 255, .8); font-size: .9rem; font-weight: 500; }
.fx-actions .nav-link:hover { color: #fff; }
.lang-switch .btn { padding: .25rem .6rem; font-size: .76rem; font-weight: 700; border-color: rgba(255, 255, 255, .3); }
.lang-switch .btn:hover { background: #fff; color: var(--ink); }

.fx-burger { border: 0 !important; width: 46px; height: 46px; position: relative; box-shadow: none !important; }
.fx-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.fx-burger span:nth-child(1) { top: 18px; }
.fx-burger span:nth-child(2) { top: 26px; }
.fx-burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.fx-burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
@media (max-width: 991.98px) {
    #mainNavbar .navbar-collapse { background: rgba(10, 15, 26, .97); border-radius: 22px; padding: 1.2rem 1.3rem 1.4rem; margin-top: .8rem; border: 1px solid rgba(255, 255, 255, .08); }
    .fx-links .nav-link { font-size: 1.15rem; font-family: var(--font-display); padding: .55rem 0; }
    .fx-links .nav-link::after { left: 0; right: auto; width: 34px; }
    .fx-actions { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* ---------- Boutons ---------- */
.btn {
    border-radius: 999px; font-weight: 600; letter-spacing: .005em; padding: .62rem 1.3rem;
    transition: transform .3s var(--ease), box-shadow .3s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-sm { padding: .38rem .95rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.02rem; }
.btn i.bi-arrow-right, .btn i.bi-arrow-up-right { margin-left: .5rem; transition: transform .3s var(--ease); display: inline-block; }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }
.btn:hover i.bi-arrow-up-right { transform: translate(3px, -3px); }

.btn-primary {
    --bs-btn-bg: #d62828; --bs-btn-border-color: #d62828; --bs-btn-hover-bg: #e63a2e; --bs-btn-hover-border-color: #e63a2e;
    --bs-btn-active-bg: #b41f1f; --bs-btn-active-border-color: #b41f1f; --bs-btn-disabled-bg: #d62828; --bs-btn-disabled-border-color: #d62828;
    background-image: linear-gradient(135deg, #e63a2e 0%, #c91f1f 100%); border: 0; color: #fff;
    box-shadow: 0 12px 28px -12px rgba(214, 40, 40, .75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(214, 40, 40, .85); background-image: linear-gradient(135deg, #f0483c 0%, #d62828 100%); }
.btn-outline-primary { --bs-btn-color: #c91f1f; --bs-btn-border-color: #d62828; --bs-btn-hover-bg: #d62828; --bs-btn-hover-border-color: #d62828; border-width: 1.5px; }
.btn-outline-secondary { border-width: 1.5px; }
.btn-outline-light { border-width: 1.5px; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-reserver, .btn-reserver:focus {
    background: var(--orange); border: 0; color: var(--ink); font-weight: 700; padding: .55rem 1.15rem;
    box-shadow: 0 10px 26px -12px rgba(255, 166, 43, .9);
}
.btn-reserver:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.fx-magnet { translate: var(--mx, 0) var(--my, 0); transition: translate .25s var(--ease), transform .3s var(--ease), box-shadow .3s ease, background-color .25s ease, color .25s ease; }

/* ---------- Eyebrow, titres ---------- */
.fx-eyebrow {
    display: inline-flex; align-items: center; gap: .65rem; text-transform: uppercase; letter-spacing: .22em;
    font-size: .74rem; font-weight: 700; color: var(--orange); margin: 0 0 1.2rem;
}
.fx-eyebrow.dark { color: var(--red-2); }
.fx-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(230, 58, 46, .7); animation: fxPulse 2s infinite; display: inline-block; }
@keyframes fxPulse { 70% { box-shadow: 0 0 0 10px rgba(230, 58, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(230, 58, 46, 0); } }

/* ---------- Hero ---------- */
.fx-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: #fff; overflow: hidden; background: var(--ink); }
.fx-hero-bg {
    position: absolute; inset: -6% 0; background-size: cover; background-position: center 38%;
    transform: translate3d(0, var(--py, 0px), 0); will-change: transform; animation: fxZoom 26s ease-out both;
}
@keyframes fxZoom { from { scale: 1.16; } to { scale: 1; } }
.fx-hero-shade {
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 80% at 0% 100%, rgba(10, 15, 26, .88) 0%, rgba(10, 15, 26, 0) 62%),
        linear-gradient(180deg, rgba(10, 15, 26, .62) 0%, rgba(10, 15, 26, .08) 34%, rgba(10, 15, 26, .5) 70%, var(--ink) 100%);
}
.fx-grain {
    position: absolute; inset: 0; opacity: .09; mix-blend-mode: overlay; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.fx-hero-inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 9rem; padding-bottom: 3.5rem; }
.fx-hero-title {
    font-family: var(--font-display); color: #fff; font-weight: 700; margin: 0 0 1.6rem;
    font-size: clamp(3.1rem, 9.2vw, 8.4rem); line-height: .92; letter-spacing: -.045em;
}
.fx-line { display: block; overflow: hidden; padding: 0 0 .1em; }
.fx-line > span { display: inline-block; transform: translateY(112%); animation: fxUp 1.05s var(--ease) var(--d, 0s) forwards; }
.fx-line em, .fx-h2 em, .fx-cta h2 em {
    font-style: normal; background: linear-gradient(95deg, #ffb347 0%, #ff6a3d 55%, #e63a2e 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .06em;
}
@keyframes fxUp { to { transform: translateY(0); } }
.fx-in { opacity: 0; transform: translateY(22px); animation: fxFade .9s var(--ease) var(--d, 0s) forwards; }
@keyframes fxFade { to { opacity: 1; transform: none; } }
.fx-hero-lead { text-shadow: 0 1px 16px rgba(10, 15, 26, .65); max-width: 33rem; color: rgba(255, 255, 255, .82); font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.6; margin-bottom: 2rem; }
.fx-hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.fx-next {
    position: absolute; right: .75rem; top: 30%; z-index: 3; display: flex; flex-direction: column; gap: .2rem; min-width: 260px;
    padding: 1.15rem 1.35rem; border-radius: 22px; color: #fff; text-decoration: none; text-transform: none;
    background: rgba(10, 15, 26, .5); border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
    transition: background .3s ease, transform .4s var(--ease);
}
.fx-next:hover { background: rgba(10, 15, 26, .68); color: #fff; transform: translateY(-4px); }
.fx-next-label { display: inline-flex; align-items: center; gap: .55rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--orange); }
.fx-next strong { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.02em; text-transform: capitalize; }
.fx-next span:not(.fx-next-label):not(.fx-next-go) { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.fx-next-go { margin-top: .5rem; font-weight: 700; font-size: .88rem; }
@media (max-width: 991.98px) {
    .fx-next { position: relative; right: auto; top: auto; margin-top: 2rem; align-self: flex-start; }
}

.fx-hero-facts { position: relative; z-index: 3; border-top: 1px solid rgba(255, 255, 255, .16); background: rgba(10, 15, 26, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fx-hero-facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.fx-hero-facts li { padding: 1.15rem 1rem 1.15rem 0; display: flex; align-items: center; gap: .9rem; border-right: 1px solid rgba(255, 255, 255, .1); }
.fx-hero-facts li:not(:first-child) { padding-left: 1.2rem; }
.fx-hero-facts li:last-child { border-right: 0; }
.fx-hero-facts strong { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.fx-hero-facts span { font-size: .78rem; line-height: 1.3; color: rgba(255, 255, 255, .7); }
@media (max-width: 767.98px) {
    .fx-hero-facts ul { grid-template-columns: 1fr 1fr; }
    .fx-hero-facts li { padding: .85rem .6rem .85rem 0 !important; border-right: 0; flex-direction: column; align-items: flex-start; gap: .25rem; }
    .fx-hero-facts li:nth-child(even) { padding-left: .6rem !important; }
}
.fx-scroll { position: absolute; right: 2rem; top: 46%; width: 1px; height: 96px; background: rgba(255, 255, 255, .22); z-index: 3; display: none; }
.fx-scroll span { position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: fxDrop 2.2s ease-in-out infinite; }
@keyframes fxDrop { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (min-width: 1400px) { .fx-scroll { display: block; } }

/* ---------- Bandeau defilant ---------- */
.fx-marquee { background: var(--orange); color: var(--ink); overflow: hidden; padding: 1.05rem 0; white-space: nowrap; }
.fx-marquee-track { display: inline-flex; align-items: center; gap: 2.2rem; animation: fxMarquee 38s linear infinite; padding-left: 2.2rem; }
.fx-marquee span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: -.02em; text-transform: uppercase; }
.fx-marquee i { width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); flex: none; }
@keyframes fxMarquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.fx-section { padding: clamp(4.2rem, 9vw, 8rem) 0; position: relative; }
.fx-dark { background: var(--ink); color: #fff; }
.fx-dark h2, .fx-dark h3, .fx-dark h4 { color: #fff; }
.fx-head { display: grid; grid-template-columns: 1fr auto; gap: 0 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.fx-head .fx-eyebrow { grid-column: 1 / -1; }
.fx-h2 { font-size: clamp(2.3rem, 6vw, 5rem); line-height: .98; letter-spacing: -.045em; margin: 0; max-width: 14ch; }
.fx-link-arrow { font-weight: 700; text-decoration: none; color: inherit; border-bottom: 2px solid var(--orange); padding-bottom: 2px; white-space: nowrap; }
.fx-link-arrow:hover { color: var(--red-2); }
.fx-dark .fx-link-arrow:hover { color: var(--orange); }
@media (max-width: 767.98px) { .fx-head { grid-template-columns: 1fr; } .fx-link-arrow { justify-self: start; margin-top: 1.2rem; } }

.reveal-on-scroll, .fade-in-up { opacity: 0; transform: none; translate: 0 34px; transition: opacity .9s ease, translate .9s var(--ease); }
.reveal-on-scroll.visible, .fade-in-up.visible { opacity: 1; translate: 0 0; transform: none; }

/* ---------- Cartes de circuits (accueil) ---------- */
.fx-circuits { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.fx-ccard {
    position: relative; display: block; grid-column: span 6; min-height: 540px; border-radius: 30px; overflow: hidden; color: #fff;
    text-decoration: none; isolation: isolate; background: var(--ink-2);
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: opacity .9s ease, translate .9s var(--ease), transform .35s ease;
    transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s;
}
.fx-ccard:nth-child(4n+1) { grid-column: span 7; }
.fx-ccard:nth-child(4n+2) { grid-column: span 5; }
.fx-ccard:nth-child(4n+3) { grid-column: span 5; }
.fx-ccard:nth-child(4n+4) { grid-column: span 7; }
.fx-ccard:hover { color: #fff; }
.fx-ccard-img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 1.3s var(--ease); }
.fx-ccard:hover .fx-ccard-img { transform: scale(1.07); }
.fx-ccard-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 15, 26, .94) 0%, rgba(10, 15, 26, .45) 42%, rgba(10, 15, 26, .05) 70%); }
.fx-ph::after { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .09) 0 1px, transparent 1px 26px); }
.fx-ph-0 { background-image: linear-gradient(160deg, #0f3d2e, #1f7a5a 55%, #0b2a22); }
.fx-ph-1 { background-image: linear-gradient(160deg, #0a3d62, #12a4b6 55%, #0a2540); }
.fx-ph-2 { background-image: linear-gradient(160deg, #5b1d3a, #ef6a3a 60%, #ffb347); }
.fx-ph-3 { background-image: linear-gradient(160deg, #1c2541, #5a4e8c 55%, #d62828); }
.fx-ccard-num { position: absolute; top: 1.5rem; left: 1.7rem; font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .12em; padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(8px); background: rgba(10, 15, 26, .25); }
.fx-ccard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 2rem 1.8rem; }
.fx-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.fx-pills span { font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: .28rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .18); }
.fx-pills span.hot { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.fx-ccard h3 { font-size: clamp(1.7rem, 3.1vw, 2.7rem); line-height: 1; letter-spacing: -.04em; color: #fff; margin: 0 0 .7rem; max-width: 18ch; }
.fx-ccard p { color: rgba(255, 255, 255, .78); margin: 0 0 1.3rem; max-width: 46ch; font-size: .95rem; line-height: 1.55; }
.fx-ccard-foot { display: flex; align-items: center; justify-content: space-between; }
.fx-price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.fx-round { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; transition: background .3s ease, transform .4s var(--ease); }
.fx-ccard:hover .fx-round { background: var(--orange); transform: rotate(45deg); }
@media (max-width: 991.98px) {
    .fx-ccard, .fx-ccard:nth-child(n) { grid-column: 1 / -1; min-height: 460px; }
    .fx-ccard-body { padding: 1.5rem; }
}

/* ---------- Etapes ---------- */
.fx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: s; }
.fx-step { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 1.5rem; }
.fx-step .n { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--orange); margin-bottom: 1.2rem; }
.fx-step h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.fx-step p { color: rgba(255, 255, 255, .68); margin: 0; line-height: 1.6; }
@media (max-width: 991.98px) { .fx-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .fx-steps { grid-template-columns: 1fr; } }

/* ---------- Sorties a reserver ---------- */
.fx-sorties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 991.98px) { .fx-sorties { grid-template-columns: 1fr; } }
.hs-card { background: #fff; border-radius: 28px; padding: 1.8rem; border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; transition: box-shadow .4s ease, translate .9s var(--ease), opacity .9s ease; }
.hs-card:hover { box-shadow: 0 30px 60px -30px rgba(10, 15, 26, .35); }
.hs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.hs-head h3 { font-size: 1.5rem; letter-spacing: -.03em; margin: 0; }
.hs-sub { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.hs-price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--red-2); white-space: nowrap; letter-spacing: -.03em; }
.hs-price small { font-family: var(--font-body); font-size: .72rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.hs-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .6rem; margin-bottom: 1.4rem; }
.hs-date { display: block; text-align: center; border: 1.5px solid var(--line); border-radius: 18px; padding: .7rem .4rem; text-decoration: none; color: var(--ink); transition: background .25s ease, color .25s ease, border-color .25s ease, transform .3s var(--ease); }
.hs-date:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-3px); }
.hs-date .d { display: block; font-weight: 700; font-size: .92rem; }
.hs-date .d::first-letter { text-transform: uppercase; }
.hs-date .h { display: block; font-size: .78rem; color: var(--muted); }
.hs-date:hover .h { color: rgba(255, 255, 255, .7); }
.hs-date .p { display: inline-block; margin-top: .3rem; font-size: .68rem; font-weight: 700; color: #0f766e; background: #d9f3ef; border-radius: 999px; padding: .1rem .55rem; }
.hs-date .p.few { color: #b45309; background: #ffeacc; }
.hs-foot { margin-top: auto; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.hs-foot a { font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--orange); padding-bottom: 1px; }
.hs-foot a.muted { color: var(--muted); border-color: transparent; }
.hs-foot a:hover { color: var(--red-2); }

/* ---------- Avis ---------- */
.fx-avis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 991.98px) { .fx-avis { grid-template-columns: 1fr; } }
.fx-dark .avis-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px; padding: 2rem; margin: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.fx-dark .avis-card .stars { color: var(--orange); letter-spacing: .1em; }
.fx-dark .avis-card blockquote { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.35; letter-spacing: -.02em; margin: 0; flex: 1; color: #fff; }
.fx-dark .avis-card figcaption { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 700; }

/* ---------- Appel final ---------- */
.fx-cta { position: relative; padding: clamp(6rem, 16vw, 13rem) 0; background-size: cover; background-position: center 60%; color: #fff; text-align: center; overflow: hidden; }
.fx-cta-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 15, 26, .55) 30%, rgba(10, 15, 26, .6) 70%, var(--ink) 100%); }
.fx-cta h2 { font-size: clamp(3rem, 10vw, 9rem); line-height: .92; letter-spacing: -.05em; color: #fff; margin: 0 0 2.4rem; }

/* ---------- Pied de page ---------- */
#mainFooter.fx-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 5rem 0 2rem; margin: 0 !important; position: relative; overflow: hidden; }
.fx-footer-cta { padding-bottom: 4rem; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 4rem; }
.fx-footer .fx-footer-cta .fx-eyebrow { display: flex; }
.fx-footer a.fx-footer-big { display: inline-flex; align-items: center; gap: 1.2rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 10vw, 8.5rem); line-height: .95; letter-spacing: -.05em; color: #fff; text-decoration: none; }
.fx-footer a.fx-footer-big .fx-dot { color: var(--orange); }
.fx-footer-big i { width: 1em; height: 1em; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-size: clamp(2.6rem, 7vw, 6rem); transition: transform .4s var(--ease); }
.fx-footer-big i::before { font-size: .5em; }
.fx-footer a.fx-footer-big:hover { color: #fff; }
.fx-footer-big i { letter-spacing: 0; line-height: 1; flex: none; }
.fx-footer-big:hover i { transform: rotate(45deg); }
.fx-footer-logo { height: 62px; width: auto; margin-bottom: 1.2rem; }
.fx-footer-text { max-width: 34ch; line-height: 1.65; }
.fx-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; margin-bottom: 1.2rem; font-family: var(--font-body); font-weight: 700; }
.fx-footer ul li { margin-bottom: .6rem; }
.fx-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.fx-footer a:hover { color: var(--orange); }
.fx-footer-muted { color: rgba(255, 255, 255, .5); }
.fx-footer-wordmark {
    font-family: var(--font-display); font-weight: 800; white-space: nowrap; text-align: center; user-select: none;
    font-size: clamp(2rem, 8.6vw, 7.4rem); line-height: .85; letter-spacing: -.05em; margin: 4rem 0 2rem;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
}
.fx-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 2rem; font-size: .82rem; color: rgba(255, 255, 255, .5); border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.4rem; }
.fx-footer-bottom a { color: rgba(255, 255, 255, .75); }

/* ==========================================================================
   Composants communs (pages internes, formulaires, tableaux)
   ========================================================================== */
main > .container, main > .container-fluid { position: relative; }
.card { border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 1px 2px rgba(10, 15, 26, .04), 0 18px 40px -26px rgba(10, 15, 26, .25); background: #fff; }
.card.shadow-sm { box-shadow: 0 1px 2px rgba(10, 15, 26, .04), 0 18px 40px -26px rgba(10, 15, 26, .25) !important; }
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: 1.1rem 1.4rem; font-weight: 700; }
.card-header:first-child { border-radius: 22px 22px 0 0; }
.card-footer { background: transparent; border-top: 1px solid var(--line); }
.card-body { padding: 1.5rem; }
.card-circuit { border-radius: 26px; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s ease; }
.card-circuit:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10, 15, 26, .4); }
.card-circuit img { height: 230px; }
.bg-light { background: var(--paper-2) !important; }

.form-control, .form-select, .form-control:focus, .form-select:focus { font-family: var(--font-body); }
.form-control, .form-select { border: 1.5px solid #dcd3c3; border-radius: 14px; padding: .72rem 1rem; background-color: #fff; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.form-control-sm, .form-select-sm { padding: .4rem .75rem; border-radius: 11px; }
.form-control:focus, .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 166, 43, .22); background-color: #fff; }
.form-control::placeholder { color: #9a9488; }
.form-label { font-weight: 600; font-size: .86rem; color: #2d3446; margin-bottom: .4rem; }
.form-check-input { border-width: 1.5px; border-color: #b9b09f; }
.form-check-input:checked { background-color: var(--red-2); border-color: var(--red-2); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(255, 166, 43, .25); border-color: var(--orange); }
.form-switch .form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.input-group-text { border: 1.5px solid #dcd3c3; background: var(--paper-2); border-radius: 14px; }

.alert { border: 0; border-radius: 16px; padding: 1rem 1.2rem; box-shadow: 0 10px 30px -20px rgba(10, 15, 26, .4); }
.alert-success { background: #dff5ee; color: #0b5d4f; }
.alert-danger { background: #fde6e3; color: #8f1d14; }
.alert-warning { background: #fff0d6; color: #7a4a00; }
.alert-info { background: #e2effc; color: #0b4a7a; }

.badge { border-radius: 999px; font-weight: 600; padding: .4em .8em; letter-spacing: .01em; }
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-bottom-color: var(--line); }
.table thead th, .table-light th { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 700; color: var(--muted); background: var(--paper-2) !important; border-bottom: 0; white-space: nowrap; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: rgba(255, 166, 43, .08); }
.table-responsive { border-radius: 0 0 22px 22px; }
.card > .card-body.p-0 .table-responsive, .card > .table-responsive { border-radius: 22px; }

.modal-content { border: 0; border-radius: 26px; box-shadow: 0 40px 80px -30px rgba(10, 15, 26, .6); }
.modal-header, .modal-footer { border-color: var(--line); }
.modal-backdrop.show { opacity: .6; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -24px rgba(10, 15, 26, .4); padding: .5rem; }
.dropdown-item { border-radius: 10px; }
.pagination { gap: .3rem; }
.page-link { border: 0; border-radius: 999px !important; color: var(--ink); background: transparent; min-width: 40px; text-align: center; font-weight: 600; }
.page-link:hover { background: var(--paper-2); color: var(--ink); }
.page-item.active .page-link { background: var(--ink); color: #fff; }
.nav-tabs { border-bottom-color: var(--line); }
.nav-tabs .nav-link { border: 0; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; }
.nav-tabs .nav-link.active { background: transparent; color: var(--ink); border-bottom-color: var(--orange); }
.nav-pills .nav-link { border-radius: 999px; color: var(--ink); font-weight: 600; }
.nav-pills .nav-link.active { background: var(--ink); color: #fff; }
.list-group-item { border-color: var(--line); }
.progress { border-radius: 999px; background: var(--paper-2); }
.progress-bar { background: linear-gradient(90deg, var(--orange), var(--red)); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
hr { border-color: var(--line); opacity: 1; }

/* Titres de pages internes : un peu d'air et de caractere */
main > .container > h1:first-child, main > .container-fluid h1.fw-bold, main > .container > .row h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.04em; line-height: 1.02; }

/* ==========================================================================
   Espace admin (back office) : sobre, dense, lisible
   ========================================================================== */
body.is-admin { background: #eceef3; font-size: .95rem; }
body.is-admin #mainNavbar.fx-nav { background: var(--ink); backdrop-filter: none; }
body.is-admin .fx-logo { height: 44px; }
body.is-admin .card { border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px -8px rgba(16, 24, 40, .12) !important; }
body.is-admin .card-header { border-bottom-color: #eef0f4; }
body.is-admin .bg-light { background: #f4f5f8 !important; }
body.is-admin h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.035em; }
body.is-admin .table thead th, body.is-admin .table-light th { background: #f4f5f8 !important; }
body.is-admin .btn { padding: .5rem 1.05rem; }
body.is-admin .btn-sm { padding: .3rem .8rem; }
body.is-admin .btn-lg { padding: .75rem 1.5rem; }
body.is-admin .form-control, body.is-admin .form-select { border-color: #d5d9e2; border-radius: 12px; }
body.is-admin .card.bg-primary, body.is-admin .card.bg-success, body.is-admin .card.bg-info, body.is-admin .card.bg-warning, body.is-admin .card.bg-danger, body.is-admin .card.bg-dark {
    border-radius: 20px; position: relative; overflow: hidden;
}
body.is-admin .card.bg-primary { background: linear-gradient(135deg, #1d3557, #0a0f1a) !important; }
body.is-admin .card.bg-success { background: linear-gradient(135deg, #14a090, #0b6b60) !important; }
body.is-admin .card.bg-info { background: linear-gradient(135deg, #1b8fc4, #14577d) !important; }
body.is-admin .card.bg-warning { background: linear-gradient(135deg, #ffb13b, #f77f00) !important; color: var(--ink) !important; }
body.is-admin .card.bg-danger { background: linear-gradient(135deg, #e63a2e, #a11414) !important; }
body.is-admin .card.bg-primary::after, body.is-admin .card.bg-success::after, body.is-admin .card.bg-info::after, body.is-admin .card.bg-warning::after, body.is-admin .card.bg-danger::after {
    content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none;
}

/* ---------- Mouvement reduit ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
    #fx-curtain, #fx-cursor { display: none !important; }
    .fx-line > span, .fx-in { transform: none; opacity: 1; }
    .reveal-on-scroll, .fade-in-up { opacity: 1; translate: 0 0; }
    .fx-marquee-track { animation: none; }
}

/* ---------- En-tete de page (liste des circuits) ---------- */
.fx-pagehead { background: var(--ink); color: #fff; padding: 9.5rem 0 4rem; position: relative; overflow: hidden; margin-top: -84px; }
.fx-pagehead::before { content: ''; position: absolute; right: -10%; top: -40%; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(230, 58, 46, .32), transparent); pointer-events: none; }
.fx-pagehead-title { font-size: clamp(3.4rem, 11vw, 9rem); line-height: .9; letter-spacing: -.05em; color: #fff; margin: 0 0 1.4rem; }
.fx-pagehead-title em { font-style: normal; background: linear-gradient(95deg, #ffb347, #ff6a3d 55%, #e63a2e); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.fx-pagehead-lead { max-width: 36rem; color: rgba(255, 255, 255, .75); font-size: 1.12rem; line-height: 1.6; margin-bottom: 2rem; }
.fx-filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.fx-filters a { padding: .55rem 1.2rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .28); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; transition: background .25s ease, color .25s ease; }
.fx-filters a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.fx-filters a.on { background: #fff; color: var(--ink); border-color: #fff; }
.fx-list-section { padding-top: 3rem; }
.fx-grid3 .fx-ccard, .fx-grid3 .fx-ccard:nth-child(n) { grid-column: span 4; min-height: 480px; }
@media (max-width: 991.98px) { .fx-grid3 .fx-ccard, .fx-grid3 .fx-ccard:nth-child(n) { grid-column: 1 / -1; } }

@media (max-width: 575.98px) {
    .fx-eyebrow { letter-spacing: .14em; font-size: .68rem; }
    .fx-hero .fx-eyebrow { text-shadow: 0 1px 12px rgba(10, 15, 26, .7); }
}

body.is-admin .fx-footer-cta, body.is-admin .fx-footer-wordmark { display: none; }
body.is-admin .fx-footer { padding: 2.5rem 0 1.5rem; }

/* Video d'ambiance de l'accueil (facultative : charge seulement si le fichier existe, sur grand ecran, sans economie de donnees) */
.fx-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.fx-hero-video.is-ready { opacity: 1; }
