/* =====================================================================
   Tailles de police en em (1em = 16px par défaut)
   Grande Roue de Lyon — charte « Heure bleue »
   Bootstrap 5.3 + surcharges
   ===================================================================== */

:root {
    --gr-night: #0F2240;
    --gr-night-2: #16294B;
    --gr-night-3: #0A1830;
    --gr-line-dark: #2A3D62;
    --gr-field: #4A5A7A;
    --gr-ink: #0F2240;
    --gr-ink-soft: #3B4763;
    --gr-muted: #5A6680;
    --gr-muted-dark: #C9CEDD;
    --gr-paper: #F4F3F8;
    --gr-white: #FFFFFF;
    --gr-line: #E2E1EA;
    --gr-amber: #E39A2D;
    --gr-amber-text: #A8650F;
    --gr-green: #3DD68C;
    --gr-serif: 'Instrument Serif', Georgia, serif;
    --gr-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --bs-body-font-family: var(--gr-sans);
    --bs-body-color: var(--gr-ink);
    --bs-body-bg: var(--gr-paper);
    --bs-link-color-rgb: 15, 34, 64;
    --bs-link-hover-color-rgb: 30, 74, 128;
}

/* Ancres du menu : on s'arrête juste sous l'en-tête fixe (hauteur mesurée en JS) */
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--header-h, 60px); }
body { font-family: var(--gr-sans); color: var(--gr-ink); background: var(--gr-paper); font-size: 16px; }
img { max-width: 100%; }

.serif { font-family: var(--gr-serif); font-weight: 400; }

/* Espacement des lettres pour tous les textes en Instrument Serif */
.serif, .section-title, .brand-name, .hero h1, .key-figures .num, .day-card .hours,
.card-dark .big, .price-card .price, .group-banner .who, .access-item .n,
.contact-form h3, .legal h2 { letter-spacing: .6px; }
.italic { font-style: italic; }
.text-amber { color: var(--gr-amber) !important; }
.text-soft { color: var(--gr-ink-soft); }
.text-muted-dark { color: var(--gr-muted-dark); }

/* --- Sections ------------------------------------------------------- */
.section { padding-top: 70px; }
.section-dark { background: var(--gr-night); color: var(--gr-paper); margin-top: 70px; padding: 70px 0; }
.eyebrow {
    font-size: 0.9375em; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: var(--gr-amber-text); margin-bottom: 16px;
}
.section-dark .eyebrow { color: var(--gr-amber); }
.section-title {
    font-family: var(--gr-serif); font-weight: 400; font-size: clamp(2.375em, 5vw, 3.25em);
    line-height: 1.05; margin: 0;
}

/* --- Boutons ---------------------------------------------------------- */
.btn-gr {
    display: inline-flex; align-items: center; gap: 10px; border-radius: 999px;
    padding: 15px 28px; font-weight: 700; font-size: 1em; border: 1px solid transparent;
    text-decoration: none; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn-gr:hover { transform: translateY(-1px); }
.btn-gr-amber { background: var(--gr-amber); color: var(--gr-night); }
.btn-gr-amber:hover { background: #F0AA42; color: var(--gr-night); }
.btn-gr-night { background: var(--gr-night); color: var(--gr-paper); }
.btn-gr-night:hover { background: #1E3560; color: var(--gr-paper); }
.btn-gr-ghost { color: var(--gr-paper); background: rgba(244, 243, 248, .14); border-color: rgba(244, 243, 248, .6); font-weight: 600;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-gr-ghost:hover { background: rgba(244, 243, 248, .26); color: var(--gr-paper); }

/* --- En-tête ---------------------------------------------------------- */
.site-header { background: var(--gr-night); }
.site-header .navbar { padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--gr-paper); text-decoration: none; }
.brand { transition: opacity .2s ease; }
.brand:hover { color: var(--gr-paper); opacity: .75; }
.brand-name { font-family: var(--gr-serif); font-size: 1.75em; line-height: 1; }
.site-header .nav-link { color: var(--gr-paper); font-weight: 500; font-size: 1em; padding: 12px 16px !important; }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: var(--gr-amber); }
/* Sélecteur de langue */
.lang-switch { margin-left: 12px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
    background: transparent; color: var(--gr-paper); border: 1px solid rgba(244, 243, 248, .35); border-radius: 999px;
    font-size: 0.8125em; font-weight: 700; letter-spacing: 1px; transition: border-color .15s ease, color .15s ease; }
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { border-color: var(--gr-amber); color: var(--gr-amber); }
.lang-toggle:focus-visible { outline: 3px solid rgba(227, 154, 45, .5); outline-offset: 2px; }
.lang-menu { --bs-dropdown-bg: var(--gr-night-2); --bs-dropdown-border-color: var(--gr-line-dark);
    --bs-dropdown-link-color: var(--gr-paper); --bs-dropdown-link-hover-color: var(--gr-paper);
    --bs-dropdown-link-hover-bg: rgba(244, 243, 248, .08); --bs-dropdown-link-active-bg: var(--gr-amber);
    --bs-dropdown-link-active-color: var(--gr-night); border-radius: 14px; padding: 6px; min-width: 190px; margin-top: 8px !important; }
.lang-menu .dropdown-item { display: flex; align-items: center; gap: 12px; border-radius: 10px; padding: 10px 12px; font-weight: 500; }
.lang-menu .code { font-size: 0.75em; font-weight: 700; letter-spacing: 1px; opacity: .7; min-width: 22px; }
@media (max-width: 991.98px) { .lang-switch { margin: 10px 0 8px 14px; } }

/* Japonais : polices avec les caractères japonais, pas d'italique */
:root:lang(ja) { --gr-sans: 'Manrope', 'Noto Sans JP', system-ui, sans-serif; --gr-serif: 'Instrument Serif', 'Noto Serif JP', serif; }
:lang(ja) .italic { font-style: normal; }

/* Horaires au format 24 h / 12 h : un peu plus petits pour tenir sur une ligne */
:root:not(:lang(fr)) .day-card .hours { font-size: 1.375em; }

.navbar-toggler { border-color: rgba(244, 243, 248, .4); color: var(--gr-paper); padding: 10px 14px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(227, 154, 45, .5); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28244,243,248,1%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero ----------------------------------------------------------- */
/* Hero plein écran : hauteur de la fenêtre moins l'en-tête (--header-h, calculé en JS) */
.hero { position: relative; min-height: max(560px, calc(100vh - var(--header-h, 74px))); min-height: max(560px, calc(100svh - var(--header-h, 74px))); overflow: hidden; background: var(--gr-night); color: var(--gr-paper); display: flex; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(15, 34, 64, .45); }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; padding-bottom: calc(clamp(64px, 14vh, 154px) + 10vh); padding-top: 48px; }
.hero h1 { font-family: var(--gr-serif); font-weight: 400; font-size: clamp(2.5em, 6vw, 4.75em); line-height: 1.02; max-width: 760px; margin: 0; }

.status-badge {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 14px;
    background: rgba(0, 0, 0, .4); padding: 13px 22px; border-radius: 999px; font-size: 1.3em; font-weight: 700;
}
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gr-green); flex: none; animation: halo 1.8s ease-out infinite; }
.live-dot.is-closed { background: #E5484D; animation: none; }
@keyframes halo {
    0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, .7); }
    70% { box-shadow: 0 0 0 10px rgba(61, 214, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .live-dot { animation: none; box-shadow: 0 0 0 4px rgba(61, 214, 140, .25); }
    html { scroll-behavior: auto; }
}

/* --- Présentation ----------------------------------------------------- */
.presentation-text { font-size: 1.0625em; line-height: 1.75; color: var(--gr-ink-soft); }
.key-figures { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 16px; border-top: 1px solid #D6D5E0; }
.key-figures .num { font-family: var(--gr-serif); font-size: 2.75em; line-height: 1; display: block; }
.key-figures .lbl { font-size: 0.875em; color: var(--gr-muted); }
.carousel-photo { border-radius: 20px; overflow: hidden; background: var(--gr-night); }
.carousel-photo img { width: 100%; height: 520px; object-fit: cover; display: block; }

/* --- Horaires --------------------------------------------------------- */
.day-card {
    height: 100%; min-height: 150px; border-radius: 18px; padding: 22px 16px;
    display: flex; flex-direction: column; gap: 14px; background: var(--gr-white); border: 1px solid var(--gr-line);
}
.day-card .day { font-weight: 700; }
.day-card .hours { font-family: var(--gr-serif); font-size: 1.625em; line-height: 1.1; margin-top: auto; white-space: nowrap; }
.day-card.is-today { background: var(--gr-night); color: var(--gr-paper); border-color: var(--gr-night); }
.day-card .today-label { font-size: 0.75em; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gr-amber); }
.day-card .live-dot { width: 10px; height: 10px; }
@media (min-width: 992px) {
    .row-cols-lg-7 > * { flex: 0 0 auto; width: 14.2857%; }
}

/* --- Dates d'ouverture ------------------------------------------------ */
.dates { position: relative; overflow: hidden; }
.dates-bg {
    position: absolute; top: 0; right: 0; width: 55%; height: 100%; object-fit: cover; object-position: center 30%;
    opacity: .3; pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 60%);
    mask-image: linear-gradient(to right, transparent, #000 60%);
}
.dates .container { position: relative; }
.card-dark {
    height: 100%; background: var(--gr-night-2); border: 1px solid var(--gr-line-dark); border-radius: 20px;
    padding: 32px; display: flex; flex-direction: column; gap: 10px;
}
.card-dark .label { font-size: 0.875em; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gr-amber); }
.card-dark .big { font-family: var(--gr-serif); font-size: 1.875em; line-height: 1.1; }
.card-dark .txt { font-size: 1em; color: var(--gr-muted-dark); }

/* --- Tarifs ----------------------------------------------------------- */
.price-card {
    height: 100%; background: var(--gr-white); border: 1px solid var(--gr-line); border-radius: 20px;
    padding: 32px; display: flex; flex-direction: column; gap: 12px;
}
.price-card .name { font-weight: 700; }
.price-card .price { font-family: var(--gr-serif); font-size: 3.5em; line-height: 1; }
.price-card .note { font-size: 1em; line-height: 1.6; color: var(--gr-ink-soft); }
.price-card.is-dark { background: var(--gr-night); border-color: var(--gr-night); color: var(--gr-paper); }
.price-card.is-dark .name { color: var(--gr-amber); }
.price-card.is-dark .note { color: var(--gr-muted-dark); }
.group-banner {
    background: var(--gr-white); border: 1px solid var(--gr-line); border-radius: 20px; padding: 32px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
}
.group-banner .who { font-family: var(--gr-serif); font-size: clamp(1.75em, 3vw, 2.25em); line-height: 1.15; }

/* --- Emplacement ------------------------------------------------------ */
.access-item { display: flex; gap: 20px; }
.access-item .n { font-family: var(--gr-serif); font-size: 2em; line-height: 1; color: var(--gr-amber); }
.access-item a { color: var(--gr-amber); text-underline-offset: 3px; }
.map-frame { border-radius: 20px; overflow: hidden; min-height: 380px; height: 100%; background: var(--gr-night-2); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* --- Contact ---------------------------------------------------------- */
.section-contact { padding-bottom: 70px; }
.contact-list { display: flex; flex-direction: column; gap: 24px; font-size: 1em; line-height: 1.7; color: var(--gr-ink-soft); }
.contact-list .item { display: flex; gap: 16px; }
.contact-list svg { flex: none; width: 32px; height: 32px; margin-top: 0; stroke: var(--gr-amber-text); }
.contact-list strong { display: block; color: var(--gr-ink); }
.contact-list a { color: var(--gr-amber-text); font-weight: 600; text-underline-offset: 3px; }
.contact-form {
    max-width: 440px; margin-left: auto; background: var(--gr-white); border: 1px solid var(--gr-line);
    border-radius: 20px; padding: 32px; color: var(--gr-ink);
}
.contact-form h3 { font-family: var(--gr-serif); font-weight: 400; font-size: 1.875em; line-height: 1.1; margin-bottom: 20px; }
.contact-form .form-label { font-size: 0.875em; font-weight: 600; color: var(--gr-ink); margin-bottom: 8px; }
.contact-form .form-control {
    background: var(--gr-paper); color: var(--gr-ink); border: 1px solid #D6D5E0;
    border-radius: 12px; padding: 13px 16px; font-size: 1em;
}
.contact-form .form-control:focus { border-color: var(--gr-amber); box-shadow: 0 0 0 3px rgba(227, 154, 45, .25); background: var(--gr-white); color: var(--gr-ink); }
.contact-form .btn-gr { border: 0; }
.recaptcha-note { font-size: 0.75em; color: var(--gr-muted); margin: 12px 0 0; max-width: 440px; margin-left: auto; }
.recaptcha-note a { color: var(--gr-muted); }
.grecaptcha-badge { visibility: hidden; }
@media (max-width: 991.98px) { .recaptcha-note { max-width: none; } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 991.98px) { .contact-form { max-width: none; margin-left: 0; } }

/* --- Pied de page ------------------------------------------------------ */
.site-footer { background: var(--gr-night-3); color: var(--gr-muted-dark); font-size: 0.875em; }
.site-footer a { color: var(--gr-muted-dark); text-underline-offset: 3px; }
.site-footer a.weaver { color: var(--gr-amber); }

/* --- Mentions --------------------------------------------------------- */
.legal h2 { font-family: var(--gr-serif); font-weight: 400; font-size: 2em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--gr-ink-soft); line-height: 1.7; }

/* --- Mobile ------------------------------------------------------------ */
@media (max-width: 575.98px) {
    .section { padding-top: 56px; }
    .section-contact { padding-bottom: 56px; }
    .section-dark { margin-top: 56px; padding: 56px 0; }
    .hero-content { padding-bottom: calc(clamp(56px, 12vh, 136px) + 10vh); }
    .status-badge { font-size: 0.9375em; padding: 11px 18px; }
    .carousel-photo img { height: 360px; }
    .price-card .price { font-size: 3em; }
    .dates-bg { width: 100%; opacity: .18; }
}
