/* =====================================================================
   Ski Megève – Jean-Marc Duvillard · Feuille de style
   Ambiance : soleil, neige, montagne — haut de gamme, contrasté
   ===================================================================== */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --glacier: #1f5f9e;
  --sky: #8ec5ff;
  --ice: #eef4fb;
  --snow: #ffffff;
  --sun: #f4b942;
  --sun-deep: #d9932a;
  --gold-text: #8a5a00;   /* or lisible sur fond clair (contraste AA) */
  --ink: #0b2545;
  --muted: #4d5f75;
  --holiday: #fff1d6;
  --holiday-b: #f0c36a;
  --offpeak: #e7f1fc;
  --offpeak-b: #9cc3ea;
  --late: #e4f5ec;
  --late-b: #7cc8a0;
  --late-text: #1d6b45;
  --radius: 18px;
  --shadow: 0 18px 45px -18px rgba(11, 37, 69, .35);
  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--ice); }
h1, h2, h3, .font-title { font-family: var(--font-title); font-weight: 600; letter-spacing: .01em; }
a { color: var(--glacier); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.visually-hidden-focusable:focus { background: var(--sun); color: var(--navy); padding: .5rem 1rem; z-index: 2000; }

/* ---------- Navbar ---------- */
.navbar-lux {
  background: rgba(11, 37, 69, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s;
}
.navbar-lux.scrolled { background: rgba(11, 37, 69, .97); }
.navbar-lux .navbar-brand { color: #fff; line-height: 1.05; }
.brand-name { font-family: var(--font-title); font-size: 1.45rem; font-weight: 600; display: block; }
.brand-sub { font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--sun); }
.navbar-lux .nav-link { color: rgba(255,255,255,.86); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.navbar-lux .nav-link:hover, .navbar-lux .nav-link:focus { color: var(--sun); }
.navbar-lux .navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-lux .navbar-toggler-icon { filter: invert(1); }
.lang-switch { display: flex; gap: .5rem; align-items: center; }
.lang-flag {
  display: inline-flex; width: 38px; height: 26px; border-radius: 5px; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255,255,255,.25); opacity: .65; transition: .2s;
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-flag:hover, .lang-flag:focus-visible { opacity: 1; transform: translateY(-1px); }
.lang-flag[aria-current="page"] { opacity: 1; box-shadow: 0 0 0 2px var(--sun); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 60% 45% at 78% 16%, rgba(255, 214, 120, .55), transparent 60%),
    linear-gradient(180deg, #0d2d57 0%, #1f5f9e 42%, #8ec5ff 78%, #dcecff 100%);
  display: flex; align-items: center; padding: 120px 0 80px;
}
.hero-sun {
  position: absolute; top: 9%; right: 16%; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, #fff7d6 0%, #ffd66e 45%, #f4b942 70%, rgba(244,185,66,0) 72%);
  box-shadow: 0 0 120px 50px rgba(255, 205, 90, .45);
}
.hero-mountains { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero-kicker { letter-spacing: .32em; text-transform: uppercase; font-size: .78rem; color: var(--sun); font-weight: 600; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); line-height: 1.02; text-shadow: 0 4px 28px rgba(5, 20, 40, .45); }
.hero-lead { font-size: 1.12rem; max-width: 620px; color: #f1f6ff; text-shadow: 0 2px 14px rgba(5,20,40,.5); }
.season-chip {
  display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem; border-radius: 40px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: .88rem;
  backdrop-filter: blur(6px);
}
.snow { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.snow i {
  position: absolute; top: -10px; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .85;
  animation: fall linear infinite;
}
@keyframes fall { to { transform: translate3d(30px, 105vh, 0); } }
@media (prefers-reduced-motion: reduce) { .snow { display: none; } html { scroll-behavior: auto; } }

/* Level picker (glass panel in hero) */
.level-panel {
  background: rgba(255,255,255,.95); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem;
}
.level-panel h2 { font-size: 1.75rem; }
.level-option { position: relative; display: block; cursor: pointer; margin-bottom: .55rem; }
.level-option input { position: absolute; opacity: 0; }
.level-card {
  display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem; border-radius: 12px;
  border: 2px solid #dbe5f1; background: #fff; transition: .18s;
}
.level-option:hover .level-card { border-color: var(--sky); }
.level-option input:focus-visible + .level-card { outline: 3px solid var(--sun); outline-offset: 2px; }
.level-option input:checked + .level-card { border-color: var(--navy); background: var(--ice); box-shadow: inset 0 0 0 1px var(--navy); }
.level-dot { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.lv-jamais { background: #fff; border: 2px dashed #7a8ba0; color: #4d5f75; }
.lv-vert { background: #1e8a4c; color: #fff; }
.lv-bleu { background: #1f5fbf; color: #fff; }
.lv-rouge { background: #c62f2f; color: #fff; }
.lv-noir { background: #111; color: #fff; }
.level-title { font-weight: 600; font-size: .95rem; }
.level-desc { font-size: .8rem; color: var(--muted); }
.level-check { margin-left: auto; opacity: 0; color: var(--navy); font-weight: 700; }
.level-option input:checked + .level-card .level-check { opacity: 1; }

/* ---------- Buttons ---------- */
.btn-sun {
  --bs-btn-color: var(--navy); --bs-btn-bg: var(--sun); --bs-btn-border-color: var(--sun);
  --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: #ffcb5c; --bs-btn-hover-border-color: #ffcb5c;
  --bs-btn-active-bg: var(--sun-deep); --bs-btn-disabled-bg: #e7d6b0; --bs-btn-disabled-border-color: #e7d6b0; --bs-btn-disabled-color: #6b5a33;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 40px; padding: .8rem 1.6rem;
}
.btn-navy {
  --bs-btn-color: #fff; --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--navy-2); --bs-btn-hover-border-color: var(--navy-2);
  border-radius: 40px; font-weight: 600;
}
.btn-outline-navy {
  --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-color: #fff;
  border-radius: 40px; font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-kicker { letter-spacing: .28em; text-transform: uppercase; font-size: .74rem; font-weight: 700; color: var(--gold-text); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); }
.bg-snow { background: #fff; }
.bg-ice { background: var(--ice); }

/* Info cards */
.info-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; height: 100%; box-shadow: 0 8px 26px -16px rgba(11,37,69,.35); border: 1px solid #e3eaf3; }
.info-card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ice); color: var(--navy); font-size: 1.4rem; margin-bottom: .9rem; }
.prob-row { margin-bottom: .9rem; }
.prob-row .label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; margin-bottom: .3rem; }
.progress { height: 10px; background: #e3eaf3; border-radius: 10px; }
.progress-bar { border-radius: 10px; background: linear-gradient(90deg, var(--glacier), var(--sun)); }
.rule-list li { padding: .45rem 0; border-bottom: 1px dashed #d6e0ec; font-size: .92rem; }
.rule-list li:last-child { border-bottom: 0; }
.rule-list strong { color: var(--navy); }

/* Formula cards */
.formula-card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 1.6rem 1.4rem; height: 100%;
  border: 2px solid transparent; box-shadow: var(--shadow); cursor: pointer; transition: .2s; text-align: left; width: 100%;
}
.formula-card:hover { transform: translateY(-4px); }
.formula-card.active { border-color: var(--sun); }
.formula-card.active::after {
  content: attr(data-active-label); position: absolute; top: -12px; right: 16px; background: var(--sun); color: var(--navy);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 20px;
}
.formula-card h3 { font-size: 1.6rem; margin-bottom: .1rem; }
.formula-time { font-weight: 600; color: var(--glacier); font-size: .95rem; }
.price-line { display: flex; justify-content: space-between; align-items: baseline; padding: .4rem 0; border-bottom: 1px solid #edf2f8; font-size: .88rem; }
.price-line:last-of-type { border-bottom: 0; }
.price-line .v { font-weight: 700; font-size: 1.05rem; }
.tag { display: inline-block; padding: .15rem .5rem; border-radius: 6px; font-size: .72rem; font-weight: 600; }
.tag-holiday { background: var(--holiday); color: #7a4c00; border: 1px solid var(--holiday-b); }
.tag-offpeak { background: var(--offpeak); color: #174a7c; border: 1px solid var(--offpeak-b); }
.tag-late { background: var(--late); color: var(--late-text); border: 1px solid var(--late-b); }
.prob-badge { font-size: .75rem; font-weight: 600; color: var(--muted); }

/* ---------- Calendar ---------- */
.planner { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.formula-switch .btn { border-radius: 40px; font-size: .82rem; font-weight: 600; }
.formula-switch .btn-check:checked + .btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.month-nav { display: flex; gap: .4rem; flex-wrap: wrap; }
.month-nav .btn { border-radius: 30px; font-size: .8rem; font-weight: 600; padding: .35rem .9rem; }
.month-nav .btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal-arrow { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; }
.cal-month h3 { font-size: 1.6rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; user-select: none; -webkit-user-select: none; }
.cal-head { text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .3rem 0; }
.cal-day {
  position: relative; border-radius: 10px; border: 1px solid transparent; min-height: 70px; padding: 5px 4px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  font-family: inherit; background: #f6f8fb; color: var(--ink); transition: transform .1s, box-shadow .15s;
}
button.cal-day { cursor: pointer; }
button.cal-day:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -8px rgba(11,37,69,.5); z-index: 1; }
.cal-day .num { font-weight: 700; font-size: .95rem; }
.cal-day .price { font-size: .72rem; font-weight: 700; white-space: nowrap; }
.cal-day.empty { background: transparent; }
.cal-day.t-holiday { background: var(--holiday); border-color: var(--holiday-b); }
.cal-day.t-holiday .price { color: #7a4c00; }
.cal-day.t-offpeak { background: var(--offpeak); border-color: var(--offpeak-b); }
.cal-day.t-offpeak .price { color: #174a7c; }
.cal-day.t-late { background: var(--late); border-color: var(--late-b); }
.cal-day.t-late .price { color: var(--late-text); }
.cal-day.off {
  background: repeating-linear-gradient(135deg, #eef1f5, #eef1f5 6px, #e2e7ee 6px, #e2e7ee 12px);
  color: #8794a6; border-color: #e2e7ee;
}
.cal-day.off .price { color: #6c7a8d; font-weight: 500; }
.cal-day.weekend .num { color: var(--glacier); }
.cal-day.selected { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff; box-shadow: 0 0 0 2px var(--sun) inset; }
.cal-day.selected .price { color: var(--sun) !important; }
.cal-day.selected .num { color: #fff; }
.cal-day .fbadge {
  position: absolute; top: 3px; right: 3px; font-size: .58rem; font-weight: 800; background: var(--sun); color: var(--navy);
  border-radius: 5px; padding: 0 .25rem; line-height: 1.4;
}
.cal-day .star { position: absolute; top: 2px; left: 4px; font-size: .7rem; color: var(--sun-deep); }
.cal-day.today { outline: 2px dashed var(--glacier); outline-offset: -3px; }
.cal-day.run-bad:not(.selected) { }
.cal-day.selected.run-bad { box-shadow: 0 0 0 3px #e25b4b inset; }
.legend { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; border: 1px solid; }
.lg-holiday { background: var(--holiday); border-color: var(--holiday-b) !important; }
.lg-offpeak { background: var(--offpeak); border-color: var(--offpeak-b) !important; }
.lg-late { background: var(--late); border-color: var(--late-b) !important; }
.lg-off { background: repeating-linear-gradient(135deg, #eef1f5, #eef1f5 3px, #d6dce5 3px, #d6dce5 6px); border-color: #d6dce5 !important; }
.lg-sel { background: var(--navy); border-color: var(--sun) !important; }

@media (max-width: 575.98px) {
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 58px; padding: 4px 1px 3px; border-radius: 8px; }
  .cal-day .num { font-size: .85rem; }
  .cal-day .price { font-size: .62rem; }
  .cal-day .fbadge { font-size: .5rem; }
}

/* ---------- Summary ---------- */
.summary { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
@media (min-width: 992px) { .summary-sticky { position: sticky; top: 96px; } }
.summary h3 { font-size: 1.7rem; }
.summary .meta { font-size: .82rem; color: #c6d6ea; }
.summary-list { max-height: 330px; overflow-y: auto; margin: .8rem -.4rem; padding: 0 .4rem; }
.summary-item { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .84rem; }
.summary-item .d { flex: 1 1 auto; min-width: 0; }
.summary-item .d small { display: block; color: #a9bdd6; font-size: .72rem; }
.summary-item select { max-width: 132px; font-size: .75rem; padding: .2rem 1.6rem .2rem .45rem; background-color: #16365f; color: #fff; border-color: #2e5486; }
.summary-item .p { font-weight: 700; min-width: 62px; text-align: right; }
.summary-item .rm { background: none; border: 0; color: #a9bdd6; font-size: 1.1rem; line-height: 1; padding: 0 .2rem; }
.summary-item .rm:hover { color: #ff9b8f; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .8rem; border-top: 2px solid var(--sun); }
.summary-total .amount { font-family: var(--font-title); font-size: 2.4rem; font-weight: 700; color: var(--sun); }
.run-status { font-size: .8rem; border-radius: 10px; padding: .55rem .75rem; margin-top: .45rem; }
.run-ok { background: rgba(60, 190, 120, .16); color: #b5f0cf; border: 1px solid rgba(60,190,120,.35); }
.run-bad { background: rgba(226, 91, 75, .16); color: #ffc9c1; border: 1px solid rgba(226,91,75,.45); }
.summary .empty-state { color: #a9bdd6; font-size: .9rem; padding: 1rem 0; }
.summary .btn-link { color: #c6d6ea; font-size: .8rem; }

/* ---------- Form ---------- */
.form-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.form-label { font-weight: 600; font-size: .86rem; }
.form-control, .form-select { border-radius: 10px; border-color: #c9d6e6; padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--glacier); box-shadow: 0 0 0 .2rem rgba(31,95,158,.18); }
.recap-box { background: var(--ice); border-radius: 14px; padding: 1rem 1.2rem; font-size: .9rem; border: 1px solid #d6e0ec; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: #071a33; color: #b9c8db; padding: 50px 0 30px; font-size: .88rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--sun); }
.footer .brand-name { color: #fff; }

/* Misc */
.toast-container { z-index: 1200; }
.loading-veil { padding: 3rem 0; text-align: center; color: var(--muted); }

/* ---------- Contraste renforcé ---------- */
h1, h2, h3, h4, h5, .h3, .h4 { color: var(--navy); }
.hero h1 { color: #fff; }
.summary h3, .summary .amount { color: var(--sun); }
.summary h3 { color: #fff; }
.text-secondary { color: var(--muted) !important; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 26, 51, .78) 0%, rgba(7, 26, 51, .55) 38%, rgba(7, 26, 51, 0) 66%),
    linear-gradient(0deg, rgba(7, 26, 51, .25) 0%, rgba(7, 26, 51, 0) 40%);
}
.hero-lead { color: #fff; text-shadow: 0 2px 10px rgba(3, 14, 30, .75); }
.season-chip { background: rgba(7, 26, 51, .62); border-color: rgba(255,255,255,.35); color: #fff; }
.season-chip strong { color: var(--sun); }
@media (max-width: 991.98px) {
  .hero::before { background: linear-gradient(180deg, rgba(7,26,51,.7) 0%, rgba(7,26,51,.45) 55%, rgba(7,26,51,.2) 100%); }
}
@media (max-width: 575.98px) {
  .brand-name { font-size: 1.12rem; }
  .brand-sub { font-size: .55rem; letter-spacing: .18em; }
  .lang-flag { width: 30px; height: 21px; }
  .navbar-lux .container { flex-wrap: nowrap; }
  .navbar-lux .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; background: rgba(11,37,69,.98); padding: .5rem 1.25rem 1rem; }
  .lang-switch { gap: .35rem; }
  .navbar-lux .d-flex.gap-3 { gap: .6rem !important; }
}
.season-chip { display: inline-block; line-height: 1.5; }
/* Barre de total mobile */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: var(--navy); color: #fff;
  padding: .65rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  box-shadow: 0 -8px 24px -10px rgba(0,0,0,.45); border-top: 2px solid var(--sun);
  transform: translateY(110%); transition: transform .25s;
}
.mobile-bar.show { transform: none; }
.mobile-bar .amount { font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; color: var(--sun); line-height: 1; }
.mobile-bar small { color: #c6d6ea; display: block; font-size: .72rem; }
.mobile-bar .btn { padding: .5rem 1rem; font-size: .8rem; }
@media (min-width: 992px) { .mobile-bar { display: none; } }

/* ---------- Héro avec photo (pages FR et EN) ---------- */
.hero-photo {
  background: #0b2545;
}
.hero-photo .hero-mountains,
.hero-photo .hero-sun { display: none; }
.hero-photo::before {
  background:
    linear-gradient(90deg, rgba(7, 26, 51, .74) 0%, rgba(7, 26, 51, .48) 42%, rgba(7, 26, 51, 0) 70%),
    linear-gradient(180deg, rgba(7, 26, 51, .55) 0%, rgba(7, 26, 51, 0) 22%);
}
@media (max-width: 991.98px) {
  .hero-photo::before { background: linear-gradient(180deg, rgba(7,26,51,.78) 0%, rgba(7,26,51,.55) 60%, rgba(7,26,51,.35) 100%); }
}
.hero-photo .hero-kicker { color: #ffc94d; text-shadow: 0 1px 2px rgba(3,14,30,.9), 0 0 14px rgba(3,14,30,.7); }
.hero-photo .hero-lead { text-shadow: 0 1px 2px rgba(3,14,30,.9), 0 2px 16px rgba(3,14,30,.85); }

/* Image d'en-tête responsive (<picture> + srcset : 640 / 1024 / 1498 px, WebP + JPEG) */
.hero-bg { position: absolute; inset: 0; z-index: 0; display: block; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; display: block; }
@media (max-width: 991.98px) { .hero-bg img { object-position: 57% 30%; } }

/* ---------- Textes en superposition : contraste garanti ----------
   Panneau bleu nuit à 85 % : même sur de la neige blanche pure,
   blanc = 11,2:1 et doré #ffc94d = 7,3:1 (niveau WCAG AAA). */
.hero-photo::before { background: linear-gradient(180deg, rgba(7,26,51,.45) 0%, rgba(7,26,51,0) 30%); }
.hero-panel {
  background: rgba(7, 26, 51, .85);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
  padding: 2.2rem 2.2rem 2.4rem; box-shadow: 0 24px 60px -24px rgba(3,14,30,.7);
}
.hero-panel h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); text-shadow: none; }
.hero-panel .hero-kicker { color: #ffc94d; text-shadow: none; }
.hero-panel .hero-lead { color: #fff; text-shadow: none; }
.hero-panel .season-chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); backdrop-filter: none; }
.hero-panel .season-chip strong { color: #ffc94d; }
.hero-photo .snow { display: none; }
@media (max-width: 575.98px) { .hero-panel { padding: 1.5rem 1.25rem 1.7rem; } }

/* ---------- Photo d'en-tête responsive : toujours visible en entier ----------
   Grand écran (≥ 1200 px) : la hauteur du bloc suit les proportions de la photo
   (1500 × 748), les textes sont posés dessus.
   Petits ordinateurs, tablettes, mobiles : la photo s'affiche entière en haut (largeur 100 %, hauteur auto),
   le panneau de textes vient en léger chevauchement sur son bas. */
.hero-photo { --photo-ratio: calc(748 / 1500); }
@media (min-width: 1200px) {
  .hero-photo { min-height: max(calc(100vw * var(--photo-ratio)), 640px); padding: 110px 0 56px; }
  .hero-photo .hero-bg img { object-position: 50% 45%; }
}
@media (max-width: 1199.98px) {
  .hero-photo { display: block; min-height: 0; padding: 72px 0 56px; }
  .hero-photo::before { display: none; }
  .hero-photo .hero-bg { position: relative; inset: auto; }
  .hero-photo .hero-bg img { height: auto; object-fit: initial; }
  .hero-photo > .container { margin-top: -56px; }
}
@media (max-width: 575.98px) {
  .hero-photo { padding-top: 67px; }
  .hero-photo > .container { margin-top: -32px; }
}

/* ---------- Bandeau : menu replié jusqu'à 1199 px (évite les libellés sur 2 lignes) ---------- */
@media (min-width: 576px) and (max-width: 1199.98px) {
  .navbar-lux .navbar-collapse { background: rgba(11, 37, 69, .98); margin: .5rem -12px -.5rem; padding: .25rem 1.25rem .9rem; }
}
/* L'ancre #niveau affiche tout le haut de page (photo + titre + choix du niveau) */
#niveau { scroll-margin-top: 0; }
#choix-niveau { scroll-margin-top: 90px; }
