/* Intertour : feuille de style unique du site. Écrite pour ce projet ; aucune ressource extérieure.
   Une agence de voyages, pas un bureau d'études : de grandes photos qui défilent, le vert des palmeraies et l'or des dunes,
   des cartes de circuits avec leur prix, des boutons arrondis. L'arabe se met en miroir seul (propriétés logiques). */

@font-face {
  font-family: "Jost"; src: url(fonts/jost-latin-wght-normal.woff2?v=7726a5cd6f) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Readex Pro"; src: url(fonts/readex-pro-arabic-wght-normal.woff2?v=b5815b71c4) format("woff2");
  font-weight: 160 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

:root {
  --g-950: #062a1e; --g-900: #0b3d2c; --g-800: #10503a; --g-600: #00764a; --g-500: #138a5b;
  --gold: #f2b632; --gold-hi: #f7c855; --gold-soft: #fcefc9; --gold-deep: #a86f00;
  --sand: #f6efe3; --sand-2: #ecdfc8; --sand-3: #d9c4a0;
  --ink: #17251f; --ink-soft: #4a5a52; --line: rgba(23, 37, 31, .12);
  --route-1: #00764a; --route-2: #c98a06; --route-3: #b4532a; --route-4: #1f6f9a; --route-5: #6a3d9a;
  --alert: #a32d1e; --alert-bg: #fbe9e5;
  --r: 18px; --r-s: 12px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(18px, 4.2vw, 56px);
  --wrap: 1240px;
  --sec: clamp(64px, 8.5vw, 124px);
  --hdr: 66px;
  --t-h2: clamp(1.85rem, 1.15rem + 2.3vw, 3rem);
  --track-tight: -.022em; --track-wide: .14em; --track-mid: .06em;
  --shadow: 0 18px 40px -24px rgba(6, 42, 30, .42), 0 2px 8px -3px rgba(6, 42, 30, .12);
  --shadow-lg: 0 32px 64px -30px rgba(6, 42, 30, .58), 0 4px 14px -6px rgba(6, 42, 30, .16);
  color-scheme: light;
  accent-color: var(--g-600);
  scrollbar-color: var(--g-600) var(--sand);
}
@media (min-width: 1200px) { :root { --hdr: 80px; } }
[dir="rtl"] { --track-tight: 0; --track-wide: 0; --track-mid: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: #fff;
  font: 400 1.0625rem/1.65 "Jost", system-ui, "Segoe UI", sans-serif; font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: "Readex Pro", "Jost", system-ui, "Segoe UI", sans-serif; line-height: 1.85; font-size: 1.04rem; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p a, li a, .prose a { color: var(--g-600); font-weight: 500; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: var(--track-tight); line-height: 1.1; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.4; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--g-600); outline-offset: 3px; border-radius: 6px; }
.hdr :focus-visible, .nav:popover-open :focus-visible, .hero :focus-visible, .banner :focus-visible, .night :focus-visible,
.close :focus-visible, .ftr :focus-visible, .aside :focus-visible, .qbar :focus-visible, .stats :focus-visible,
.wide:focus-visible, .tile:focus-visible, .duo :focus-visible { outline-color: var(--gold); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
bdi { unicode-bidi: isolate; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(880px, 100% - 2 * var(--gutter)); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--g-900); padding: 10px 16px;
  border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- pictogrammes ronds ---------- */
.ic { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 50%; background: var(--gold-soft); color: var(--g-900); }
.ic svg { width: 24px; height: 24px; }

/* ---------- en-tête : bande vert foncé, logo dans un médaillon couleur sable ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--g-900); color: #fff; transition: box-shadow .25s var(--ease); }
.scrolled .hdr { box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.hdr-in { display: flex; align-items: center; gap: 14px; min-height: var(--hdr); }
.brand { display: inline-flex; flex: none; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; color: #fff; }
.mk { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--sand);
  box-shadow: 0 0 0 2px rgba(242, 182, 50, .55); }
.mk .mark { width: 34px; height: 34px; }
.brand-t { display: grid; line-height: 1.05; white-space: nowrap; }
.brand-t b { font-size: 1.16rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.brand-t small { margin-top: 5px; font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .brand-t small { letter-spacing: 0; font-size: .8rem; font-weight: 500; }
.hdr-act { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px; background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .menu-btn:hover { background: rgba(255, 255, 255, .1); } }
@media (min-width: 1200px) { .mk { width: 52px; height: 52px; } .mk .mark { width: 38px; height: 38px; } .brand-t b { font-size: 1.26rem; } }

.nav { display: none; }
.nav-list { list-style: none; }
.nav a { text-decoration: none; }
.lang { display: flex; gap: 4px; }
.lang a { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 8px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--gold); color: var(--g-900); }
.lg-f { display: none; }

/* menu du téléphone : panneau plein écran vert foncé (popover natif, sans script) */
.nav:popover-open {
  display: block; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: 12px var(--gutter) 40px; border: 0; overflow-y: auto; background: var(--g-900); color: #fff;
}
.nav-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-weight: 600;
  letter-spacing: var(--track-wide); text-transform: uppercase; font-size: .82rem; color: var(--gold); }
.nav-x { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer; }
.nav-x svg { width: 22px; height: 22px; }
.nav:popover-open .nav-list > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.nav:popover-open .nav-list > li > a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; font-size: 1.22rem; font-weight: 600;
  color: #fff; }
.nav:popover-open .chev { display: none; }
.nav:popover-open .sub { list-style: none; padding: 0 0 14px; padding-inline-start: 14px; }
.nav:popover-open .sub a { display: flex; align-items: center; min-height: 44px; font-weight: 400; color: rgba(255, 255, 255, .8); }
.nav:popover-open .nav-list a[aria-current="page"] { color: var(--gold); font-weight: 600; }
.nav:popover-open .lang { margin-top: 26px; flex-wrap: wrap; gap: 8px; }
.nav:popover-open .lang a { padding: 0 18px; min-height: 46px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.nav:popover-open .lang a[aria-current="true"] { box-shadow: none; }
.nav:popover-open .lg-s { display: none; }
.nav:popover-open .lg-f { display: inline; }

.hdr .hcta { min-height: 46px; padding: 0 20px; }
@media (max-width: 767px) { .hdr .hcta { display: none; } }

@media (min-width: 1200px) {
  .menu-btn { display: none; }
  .nav { display: flex; align-items: center; position: static; inset: auto; width: auto; height: auto; margin: 0;
    padding: 0; border: 0; overflow: visible; background: none; color: inherit; }
  .nav-head { display: none; }
  .nav-in { display: flex; align-items: center; gap: 12px; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li > a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 9px; border-radius: 999px;
    font-size: .79rem; font-weight: 600; letter-spacing: var(--track-mid); text-transform: uppercase; color: rgba(255, 255, 255, .92); white-space: nowrap;
    transition: color .18s var(--ease); }
  [dir="rtl"] .nav-list > li > a { font-size: .95rem; }
  .nav-list > li > a:hover, .nav-list > li > a[aria-current] { color: var(--gold); }
  .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
  .has-sub { position: relative; }
  .sub { list-style: none; position: absolute; top: calc(100% + 14px); inset-inline-start: -8px; min-width: 300px; padding: 10px;
    background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
  .sub::before { content: ""; position: absolute; inset-inline: 0; top: -16px; height: 16px; }
  .sub a { display: block; padding: 10px 14px; border-radius: 10px; line-height: 1.35; font-size: .97rem; }
  .sub a:hover, .sub a[aria-current] { background: var(--sand); color: var(--g-900); }
  .sub a[aria-current] { font-weight: 600; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .chev, .has-sub:focus-within .chev { transform: rotate(180deg); }
  .lang { gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
  .lang a { min-width: 34px; min-height: 34px; padding: 0 6px; font-size: .8rem; }
  .lang a:not([aria-current="true"]):hover { background: rgba(255, 255, 255, .12); }
}
/* entre 1200 et 1440 pixels, le bouton WhatsApp de l'en-tête ne garde que son pictogramme (le texte reste lu par les lecteurs d'écran) */
@media (min-width: 1200px) and (max-width: 1439px) {
  .hdr .hcta { width: 48px; padding: 0; }
  .hdr .hcta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- boutons : arrondis, l'or pour l'action principale ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .14s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px) scale(.97); }
.btn, .card, .tile, .crow, .wide, .qbar a { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold { background: var(--gold); color: var(--g-900); box-shadow: 0 14px 26px -16px rgba(168, 111, 0, .9); }
.btn-line { color: var(--g-900); box-shadow: inset 0 0 0 1.5px currentColor; background: transparent; }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .btn-line, .banner .btn-line, .night .btn-line, .close .btn-line { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: var(--gold-hi); box-shadow: 0 18px 30px -16px rgba(168, 111, 0, .95); }
  .btn-line:hover { background: rgba(0, 118, 74, .08); }
  .btn-glass:hover, .hero .btn-line:hover, .banner .btn-line:hover { background: rgba(255, 255, 255, .22); }
}
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; } }
/* au clic : une lumière dorée part du point touché */
.flash::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  transform-origin: var(--rx, 50%) var(--ry, 50%);
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255, 244, 210, .85), rgba(242, 182, 50, .35) 28%, rgba(242, 182, 50, 0) 62%);
  animation: flash .65s var(--ease) forwards; }
@keyframes flash { from { opacity: 1; transform: scale(.5); } to { opacity: 0; transform: scale(1.8); } }
/* boutons aimantés (app.js) : le bouton suit un peu la souris qui approche, son contenu un peu plus, puis revient en souplesse */
.mag { translate: var(--mx, 0px) var(--my, 0px);
  transition: translate .55s cubic-bezier(.2, .9, .25, 1.25), transform .14s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease), opacity .25s var(--ease), visibility .25s; }
.mag > svg, .mag > span { translate: calc(var(--mx, 0px) * .35) calc(var(--my, 0px) * .35); transition: translate .55s cubic-bezier(.2, .9, .25, 1.25); }
.mag.mag-on { transition: translate .12s linear, transform .14s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease), opacity .25s var(--ease), visibility .25s; }
.mag.mag-on > svg, .mag.mag-on > span { transition: translate .12s linear; }
.arr { width: 18px; height: 18px; transition: transform .2s var(--ease); }
[dir="rtl"] .arr { transform: scaleX(-1); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--g-600); }
.night .arrow-link, .kprice .arrow-link { color: var(--gold); }
.ext .out { display: inline; width: .9em; height: .9em; margin-inline-start: .2em; vertical-align: -.08em; }
@media (hover: hover) and (pointer: fine) {
  .arrow-link:hover .arr, .card:hover .arr, .tile:hover .arr, .wide:hover .arr, .crow:hover .arr { transform: translateX(4px); }
  [dir="rtl"] .arrow-link:hover .arr, [dir="rtl"] .card:hover .arr, [dir="rtl"] .tile:hover .arr, [dir="rtl"] .wide:hover .arr,
  [dir="rtl"] .crow:hover .arr { transform: scaleX(-1) translateX(4px); }
}

/* ---------- titres de section : un surtitre, le titre, une phrase ---------- */
.eyebrow { margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .eyebrow, [dir="rtl"] .kicker { font-size: .95rem; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--g-600); }
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--gold); }
.sec-h { display: grid; gap: 12px; max-width: 780px; margin-bottom: clamp(30px, 4vw, 52px); }
.sec-h.center { margin-inline: auto; justify-items: center; text-align: center; }
.sec-h.center .kicker::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--gold); }
.sec-p { margin: 0; font-size: 1.12rem; color: var(--ink-soft); }
.night .kicker, .wide .kicker, .aside .kicker { color: var(--gold); }

/* ---------- ouverture : un diaporama de vraies photos, le titre au centre ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; display: grid; align-items: center; touch-action: pan-y;
  min-height: clamp(600px, calc(100svh - var(--hdr)), 900px); color: #fff; background: var(--g-900); }
.slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity 1.4s var(--ease), visibility 0s; }
.sl-img { width: 100%; height: 100%; object-fit: cover; }
.js .sl-img { transform: scale(1.09); transition: transform 9s linear; }
.js .slide.on .sl-img { transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 72% 62% at 50% 46%, rgba(6, 42, 30, .58), rgba(6, 42, 30, .22) 68%, rgba(6, 42, 30, .08)),
    linear-gradient(180deg, rgba(6, 42, 30, .5) 0%, rgba(6, 42, 30, 0) 26%, rgba(6, 42, 30, 0) 58%, rgba(6, 42, 30, .74) 100%); }
.hero-t { display: grid; justify-items: center; text-align: center; padding-block: clamp(56px, 9svh, 104px) clamp(150px, 19svh, 190px); }
.hero-t > * { max-width: 920px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.hero .eyebrow::before, .hero .eyebrow::after { content: ""; width: 30px; height: 2px; border-radius: 2px; background: var(--gold); }
.hero h1 { margin-top: 18px; font-size: clamp(2.15rem, 1.2rem + 4.6vw, 5.2rem); line-height: 1.02; font-weight: 700; letter-spacing: -.028em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.3; font-weight: 600; }
.hero .lead { margin: 22px 0 0; max-width: 62ch; font-size: clamp(1.04rem, .95rem + .45vw, 1.28rem); line-height: 1.55; color: rgba(255, 255, 255, .95);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.hero .cta { justify-content: center; margin-top: 32px; }
.sl-cap { position: absolute; bottom: clamp(100px, 13svh, 118px); inset-inline-start: var(--gutter); display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(50% - var(--gutter)); padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: rgba(6, 42, 30, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sl-cap svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.sl-ctl { position: absolute; z-index: 2; bottom: clamp(96px, 12.6svh, 112px); inset-inline-end: var(--gutter); display: none; align-items: center; gap: 4px;
  padding: 4px; border-radius: 999px; background: rgba(6, 42, 30, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.js .sl-ctl { display: flex; }
.sl-ctl button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: #fff; cursor: pointer; transition: background-color .18s var(--ease); }
.sl-ctl svg { width: 20px; height: 20px; }
[dir="rtl"] .sl-prev svg, [dir="rtl"] .sl-next svg { transform: scaleX(-1); }
.sl-dots { display: flex; align-items: center; }
.sl-ctl .sl-dot { width: 26px; }
.sl-dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .6); transition: width .3s var(--ease), background-color .3s; }
.sl-dot[aria-current="true"]::before { width: 22px; background: var(--gold); }
.i-play, .paused .i-pause { display: none; }
.paused .i-play { display: block; }
@media (hover: hover) and (pointer: fine) { .sl-ctl button:hover { background: rgba(255, 255, 255, .16); } }
@media (max-width: 767px) {
  .hero { min-height: clamp(600px, calc(100svh - var(--hdr) - 30px), 760px); }
  .hero-t { padding-block: 48px 132px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .sl-cap { display: none; }
  .sl-ctl { inset-inline: 0; margin-inline: auto; width: max-content; bottom: 58px; }
}

/* la bande de confiance : une carte blanche posée à cheval sur le diaporama */
.tours { padding-top: 0; }
.trust-w { position: relative; z-index: 3; margin-top: -56px; margin-bottom: clamp(56px, 7vw, 100px); }
.trust { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 10px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow-lg); }
.trust li { display: flex; align-items: center; gap: 14px; padding: 6px 18px; font-weight: 500; line-height: 1.3; }
.trust li + li { border-inline-start: 1px solid var(--line); }
@media (max-width: 1023px) {
  .trust { grid-template-columns: 1fr 1fr; gap: 10px 0; }
  .trust li:nth-child(3) { border-inline-start: 0; }
}
@media (max-width: 560px) {
  .trust-w { margin-top: -38px; }
  .trust { padding: 14px 6px; }
  .trust li { flex-direction: column; text-align: center; gap: 8px; padding: 6px 8px; font-size: .92rem; }
  .trust .ic { width: 42px; height: 42px; }
}

/* ---------- bandes de contenu ---------- */
.band { position: relative; padding-block: var(--sec); background: #fff; }
.sand { background: var(--sand); }
.auto-bg main > .band:nth-child(odd) { background: var(--sand); }
.night { background: var(--g-900); color: #fff; }
.night p { color: rgba(255, 255, 255, .84); }
.sub-sec { margin-top: var(--sec); }
.cta-c .cta { justify-content: center; }

/* cartes de circuits : photo, durée, activité, prix */
.cards { display: grid; gap: clamp(18px, 2vw, 26px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); }
.card { display: flex; flex-direction: column; border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card-ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.card-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.badge { position: absolute; top: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
  border-radius: 999px; background: var(--gold); color: var(--g-900); font-size: .84rem; font-weight: 600; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.badge svg { width: 16px; height: 16px; }
.card-b { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.card-k { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--g-600); }
[dir="rtl"] .card-k { letter-spacing: 0; font-size: .85rem; }
.card h3 { font-size: 1.18rem; }
.card-x { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line); }
.card-pr { margin: 0; font-size: .85rem; color: var(--ink-soft); line-height: 1.3; }
.card-pr strong { font-size: 1.28rem; font-weight: 700; color: var(--g-900); }
.go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--g-600); }
.go i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sand); color: var(--g-900);
  transition: background-color .2s var(--ease); }
.go .arr { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .card:hover .card-ph img { transform: scale(1.06); }
  .card:hover .go i { background: var(--gold); }
}

/* le voyage sur mesure : une grande bande photo sous les cartes */
.wide { display: grid; align-items: center; min-height: 340px; margin-top: clamp(22px, 3vw, 32px); border-radius: var(--r); color: #fff;
  text-decoration: none; background: var(--g-900); box-shadow: var(--shadow); }
.wide-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.wide::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 42, 30, .92) 0%, rgba(6, 42, 30, .72) 42%, rgba(6, 42, 30, .1) 78%); }
[dir="rtl"] .wide::before { background: linear-gradient(270deg, rgba(6, 42, 30, .92) 0%, rgba(6, 42, 30, .72) 42%, rgba(6, 42, 30, .1) 78%); }
.wide-t { max-width: 580px; padding: clamp(28px, 4vw, 56px); }
.wide-t h3 { margin: 12px 0; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.12; }
.wide-t p { color: rgba(255, 255, 255, .88); }
.wide-t .btn { margin-top: 6px; }
@media (hover: hover) and (pointer: fine) { .wide:hover .wide-img { transform: scale(1.04); } .wide:hover .btn-gold { background: var(--gold-hi); } }
@media (max-width: 640px) { .wide::before { background: linear-gradient(0deg, rgba(6, 42, 30, .94) 0%, rgba(6, 42, 30, .7) 55%, rgba(6, 42, 30, .25) 100%); } .wide { min-height: 420px; align-items: end; } }

/* tuiles photo : destinations et services */
.tiles { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.tiles.five, .tiles.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.tile { display: flex; align-items: flex-end; min-height: 340px; border-radius: var(--r); color: #fff; text-decoration: none; background: var(--g-900);
  box-shadow: var(--shadow); }
.tile-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(6, 42, 30, .94) 0%, rgba(6, 42, 30, .6) 40%, rgba(6, 42, 30, 0) 72%); }
.tile-t { display: grid; gap: 6px; padding: 22px; }
.tile h3 { font-size: 1.12rem; letter-spacing: .08em; text-transform: uppercase; }
[dir="rtl"] .tile h3 { letter-spacing: 0; font-size: 1.2rem; }
.tile p { margin: 0; font-size: .95rem; line-height: 1.45; color: rgba(255, 255, 255, .88);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile .go { margin-top: 6px; color: var(--gold); }
.tile .go i { background: rgba(255, 255, 255, .16); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-img { transform: scale(1.07); }
  .tile:hover .go i { background: var(--gold); color: var(--g-900); }
}
/* la mosaïque des destinations : Chinguetti en grand, les quatre autres autour */
.tiles.bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; }
.bento .tile { min-height: 0; }
.tiles.five .tile { min-height: 400px; }
.tiles.five .tile h3 { font-size: 1.02rem; letter-spacing: .06em; }
[dir="rtl"] .tiles.five .tile h3 { font-size: 1.12rem; letter-spacing: 0; }
.bento .tile:first-child { grid-column: span 2; grid-row: span 2; }
.bento .tile:first-child .tile-t { padding: clamp(24px, 3vw, 36px); }
.bento .tile:first-child h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.bento .tile:first-child p { font-size: 1.05rem; max-width: 46ch; }
@media (max-width: 959px) { .tiles.bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 250px; } .bento .tile:first-child { grid-column: 1 / -1; grid-row: span 1; } }
@media (max-width: 560px) { .tiles.bento { grid-template-columns: 1fr; grid-auto-rows: 240px; } }

/* pourquoi nous : deux photos superposées, quatre raisons */
.why-g { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) { .why-g { grid-template-columns: 1fr 1.08fr; } }
.why-ph { position: relative; isolation: isolate; padding-bottom: 56px; padding-inline-end: 56px; }
.why-a { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.why-b { position: absolute; inset-inline-end: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r);
  border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.why-ph::before { content: ""; position: absolute; top: -18px; inset-inline-start: -18px; width: 120px; height: 120px; border-radius: var(--r);
  background: repeating-linear-gradient(45deg, var(--gold) 0 2px, transparent 2px 10px); opacity: .55; z-index: -1; }
.why-t .sec-h { margin-bottom: 26px; }
.why-l { list-style: none; display: grid; gap: 22px; }
.why-l li { display: flex; gap: 18px; align-items: flex-start; }
.why-l h3 { margin-bottom: 4px; font-size: 1.18rem; }
.why-l p { margin: 0; color: var(--ink-soft); }
/* les chiffres : une bande vert foncé, les nombres en or */
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--sec); padding: clamp(28px, 4vw, 48px) clamp(12px, 2vw, 32px);
  border-radius: var(--r); background: var(--g-900); color: #fff; box-shadow: var(--shadow-lg);
  background-image: radial-gradient(circle at 12% 0%, rgba(242, 182, 50, .16), transparent 42%), radial-gradient(circle at 92% 100%, rgba(0, 118, 74, .5), transparent 50%); }
.stats li { display: grid; align-content: start; justify-items: center; gap: 4px; padding: 6px 18px; text-align: center; }
.stats li + li { border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.st-pre { min-height: 1.3em; font-size: .78rem; font-weight: 600; letter-spacing: var(--track-wide); text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.st-n { font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.2rem); line-height: 1; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.st-l { max-width: 24ch; font-size: .98rem; line-height: 1.4; color: rgba(255, 255, 255, .88); }
@media (max-width: 767px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .stats li:nth-child(3) { border-inline-start: 0; }
}

/* le jour et le soir : deux vraies photos côte à côte */
.duo { display: grid; grid-template-columns: 1fr 1fr; background: var(--g-900); }
.duo-it { position: relative; display: flex; align-items: flex-end; min-height: clamp(440px, 72svh, 660px); overflow: hidden; isolation: isolate; color: #fff; }
.duo-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.duo-it::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(6, 42, 30, .82) 0%, rgba(6, 42, 30, .28) 46%, rgba(6, 42, 30, 0) 72%); }
.say { margin: 0; padding: clamp(28px, 4vw, 60px); max-width: 30ch; font-size: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); line-height: 1.24; font-weight: 500;
  letter-spacing: var(--track-tight); text-shadow: 0 2px 18px rgba(0, 0, 0, .42); }
@media (max-width: 767px) { .duo { grid-template-columns: 1fr; } .duo-it { min-height: 64svh; } }

/* comment réserver : quatre étapes reliées par une piste en pointillés dorés */
.track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0 0 8px; }
.track li { position: relative; padding: 0 6px; text-align: center; }
.st-i { position: relative; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--gold); color: var(--g-900); font-size: 1.6rem; font-weight: 700;
  box-shadow: 0 0 0 8px #fff, 0 0 0 9px rgba(242, 182, 50, .5), 0 18px 30px -14px rgba(168, 111, 0, .8); }
.track li::after { content: ""; position: absolute; top: 37px; inset-inline-start: calc(50% + 54px); width: calc(100% - 108px + 28px);
  border-top: 2px dashed rgba(201, 138, 6, .7); }
.track li:last-child::after { display: none; }
.track h3 { margin-bottom: 8px; }
.track p { margin: 0; color: var(--ink-soft); }
.steps .cta-c { margin-top: 18px; }
@media (max-width: 899px) { .track { grid-template-columns: 1fr 1fr; gap: 40px 20px; } .track li::after { display: none; } }
@media (max-width: 520px) { .track { grid-template-columns: 1fr; } }

/* saison et sécurité : deux cartes */
.calm-g { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 900px) { .calm-g { grid-template-columns: 1fr 1fr; } }
.calm-c { padding: clamp(26px, 3.5vw, 44px); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.calm-c .ic { margin-bottom: 18px; }
.calm-c h2 { margin: 10px 0 14px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.calm-c p { color: var(--ink-soft); }
.months { margin-top: 24px; }
.months ol { list-style: none; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.months li { display: grid; place-items: center; min-height: 44px; padding: 0 2px; border-radius: 8px; background: var(--sand); color: var(--ink-soft);
  font-size: .72rem; font-weight: 600; text-transform: uppercase; text-align: center; line-height: 1.15; }
.months li.on { background: var(--g-600); color: #fff; }
[dir="rtl"] .months ol { grid-template-columns: repeat(6, 1fr); }
[dir="rtl"] .months li { font-size: .82rem; text-transform: none; }
.m-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; font-size: .92rem; color: var(--ink-soft); }
.m-leg i { width: 14px; height: 14px; border-radius: 4px; background: var(--g-600); }
.m-leg b { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .months ol { grid-template-columns: repeat(6, 1fr); } [dir="rtl"] .months ol { grid-template-columns: repeat(4, 1fr); } }

/* la carte des circuits : fond vert de nuit, les circuits se tracent quand la carte arrive à l'écran */
/* la carte va de l'océan à Oualata : elle prend toute la largeur, sous le texte et la légende */
.map-g { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (min-width: 960px) {
  .map-t { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: clamp(32px, 4vw, 64px); align-items: start; }
  .map-t > * { grid-column: 1; }
  .map-t > .legend { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: 1fr 1fr; margin-top: 0; }
}
.map-t h2 { margin: 12px 0 16px; }
.legend { list-style: none; display: grid; gap: 8px; margin-top: 24px; }
.legend a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 16px; border-radius: 14px; color: #fff; text-decoration: none;
  font-weight: 500; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background-color .2s var(--ease); }
.legend a:hover, .legend a:focus-visible { background: rgba(255, 255, 255, .16); }
.legend i { position: relative; width: 36px; height: 16px; flex: none; border-radius: 8px; background: var(--sand); }
.legend i::after { content: ""; position: absolute; inset: 6px 7px; border-radius: 3px; background: currentColor; }
.lg1 i { color: var(--route-1); } .lg2 i { color: var(--route-2); } .lg3 i { color: var(--route-3); } .lg4 i { color: var(--route-4); }
.lg5 i { color: var(--route-5); }
.map-v, .map-box { position: relative; }
/* la mention des données de la carte, exigée par leur licence : en tout petit dans un coin, comme « © Google » sur
   Google Maps. Le coin est choisi par build.py là où il ne cache rien. La carte ne se met pas en miroir en arabe (la
   géographie garde son sens), d'où des coins physiques (left, right) et non logiques. */
.map-credit { position: absolute; z-index: 1; padding: 0 6px; border-radius: 6px; font: 400 11px/16px "Jost", sans-serif;
  letter-spacing: .01em; color: rgba(23, 37, 31, .8); background: rgba(246, 239, 227, .86); text-decoration: none; }
.map-credit:hover { text-decoration: underline; }
.map-credit.br { right: 6px; bottom: 6px; }
.map-credit.bl { left: 6px; bottom: 6px; }
.map-credit.tr { right: 6px; top: 6px; }
.map-credit.tl { left: 6px; top: 6px; }
.smap { width: 100%; height: auto; overflow: hidden; border-radius: var(--r); background: var(--sand); box-shadow: var(--shadow-lg); }
.smap .sea { fill: #cfe3e6; }
.smap .border { fill: none; stroke: rgba(23, 37, 31, .32); stroke-width: 1.5; stroke-dasharray: 7 7; }
.smap .reg { font: 600 20px "Jost", "Readex Pro", sans-serif; letter-spacing: .32em; fill: rgba(23, 37, 31, .26); }
.smap .ocean { font: italic 500 19px "Jost", "Readex Pro", sans-serif; letter-spacing: .04em; fill: rgba(31, 84, 104, .72); }
.smap .isle { fill: var(--sand); }
/* les circuits partagent souvent la même route : chacun est plus fin que le précédent, on les voit tous côte à côte */
.smap .route { fill: none; stroke-width: var(--w, 4.5); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; transition: opacity .25s var(--ease), stroke-width .25s var(--ease); }
.smap .r1 { --w: 11; stroke: var(--route-1); stroke-dashoffset: calc(1 - var(--r1, 1)); }
.smap .r2 { --w: 8.6; stroke: var(--route-2); stroke-dashoffset: calc(1 - var(--r2, 1)); }
.smap .r3 { --w: 6.4; stroke: var(--route-3); stroke-dashoffset: calc(1 - var(--r3, 1)); }
.smap .r4 { --w: 4.4; stroke: var(--route-4); stroke-dashoffset: calc(1 - var(--r4, 1)); }
.smap .r5 { --w: 2.6; stroke: var(--route-5); stroke-dashoffset: calc(1 - var(--r5, 1)); }
.smap[data-focus] .route { opacity: .18; }
.smap[data-focus="1"] .r1, .smap[data-focus="2"] .r2, .smap[data-focus="3"] .r3, .smap[data-focus="4"] .r4,
.smap[data-focus="5"] .r5 { opacity: 1; stroke-width: calc(var(--w) * 1.5 + 2); }
.smap .halo { fill: #fff; stroke: rgba(23, 37, 31, .25); stroke-width: 1; }
.smap .spark { fill: var(--g-900); }
.smap .lbl { font: 500 21px "Jost", "Readex Pro", sans-serif; fill: var(--ink); letter-spacing: .02em;
  paint-order: stroke; stroke: rgba(246, 239, 227, .94); stroke-width: 6px; stroke-linejoin: round; }
.smap[direction] [direction="rtl"] { font-family: "Readex Pro", sans-serif; letter-spacing: 0; }
@media (max-width: 959px) {
  .legend { grid-template-columns: 1fr 1fr; }
  .legend a { font-size: .9rem; padding: 8px 12px; gap: 10px; line-height: 1.3; }
  .legend i { width: 28px; }
  .smap .lbl { font-size: 30px; }
  .smap .r1 { --w: 16; } .smap .r2 { --w: 12.5; } .smap .r3 { --w: 9.2; } .smap .r4 { --w: 6.2; } .smap .r5 { --w: 3.6; }
  .smap .reg { font-size: 26px; }
  .smap .ocean { font-size: 24px; }
}
@media (max-width: 700px) {
  .smap .r1 { --w: 26; } .smap .r2 { --w: 20.5; } .smap .r3 { --w: 15; } .smap .r4 { --w: 10; } .smap .r5 { --w: 5.5; }
  .smap .reg { font-size: 46px; }
  .smap .ocean { display: none; }
}
@media (max-width: 480px) { .legend { grid-template-columns: 1fr; } }
/* petite carte d'un circuit */
/* traits de la petite carte : épaisseur en pixels d'écran, quelle que soit l'étendue du circuit */
.smap.mini .route, .smap.mini .rail, .smap.mini .rail-ov, .smap.mini .camel, .smap.mini .boat-trip, .smap.mini .dseg {
  fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dashoffset: 0; }
.smap.mini .route { stroke: var(--g-600); stroke-width: 3.2px; stroke-dasharray: none; }
.smap.mini .rail { stroke: var(--g-900); stroke-width: 5px; stroke-linecap: butt; }
.smap.mini .rail-ov { stroke: #fff; stroke-width: 2.2px; stroke-dasharray: 6px 6px; stroke-linecap: butt; }
.smap.mini .camel { stroke: var(--route-3); stroke-width: 3.4px; stroke-dasharray: 0 7px; }
.smap.mini .boat-trip { stroke: var(--route-4); stroke-width: 3px; stroke-dasharray: 0 6px; }
.smap.mini .boat { fill: var(--route-4); }
/* le chemin du jour qu'on lit s'allume (app.js) */
.smap.mini .dseg { stroke: var(--gold); stroke-width: 7px; opacity: 0; transition: opacity .3s var(--ease); }
.smap.mini .dseg.dots { stroke-width: 6px; stroke-dasharray: 0 9px; }
.smap.mini .dseg.on { opacity: 1; }
.smap.mini .wp { fill: var(--g-900); stroke: #fff; }
.smap.mini .lbl { font-size: inherit; stroke-width: .24em; }
.smap.mini .lbl.sm { font-size: .8em; font-style: italic; }
[dir="rtl"] .smap.mini .lbl.sm { font-style: normal; }
.smap.mini .day circle { fill: var(--gold); stroke: var(--g-900); stroke-width: 2; transition: fill .3s var(--ease); }
.smap.mini .day text { font: 700 19px "Jost", "Readex Pro", sans-serif; fill: var(--g-900); transition: fill .3s var(--ease); }
.smap.mini .day.on circle { fill: var(--g-900); stroke: var(--gold); }
.smap.mini .day.on text { fill: var(--gold); }
/* repères en deux tailles : ordinateur, téléphone */
.smap .mk-m { display: none; }
.smap .mk-m .lbl { font-size: inherit; stroke-width: .24em; }
@media (max-width: 700px) {
  .smap .mk-d { display: none; }
  .smap .mk-m { display: inline; }
  .smap.mini .route { stroke-width: 2.6px; }
  .smap.mini .rail { stroke-width: 4.4px; }
  .smap.mini .rail-ov { stroke-width: 1.8px; stroke-dasharray: 5px 5px; }
  .smap.mini .dseg { stroke-width: 6px; }
}
/* légende de la petite carte */
.mm-leg { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; padding: 0; font-size: .9rem; color: var(--ink-soft); }
.mm-leg li { display: flex; align-items: center; gap: 8px; }
.mm-leg svg { width: 30px; height: 16px; flex: none; overflow: visible; }
.mm-leg .sw-road { fill: none; stroke: var(--g-600); stroke-width: 3.4; stroke-linecap: round; }
.mm-leg .sw-rail { fill: none; stroke: var(--g-900); stroke-width: 5; }
.mm-leg .sw-rail-ov { fill: none; stroke: #fff; stroke-width: 2.2; stroke-dasharray: 4 4; }
.mm-leg .sw-camel { fill: none; stroke: var(--route-3); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 0 6.5; }
.mm-leg .sw-boat { fill: var(--route-4); }
.mm-leg .sw-day { fill: var(--gold); stroke: var(--g-900); stroke-width: 1.2; }
.mm-leg .sw-day-t { font: 700 10px "Jost", "Readex Pro", sans-serif; fill: var(--g-900); }

/* « En images » : colonnes de photos, chacune dans son cadre d'origine, sans recadrage */
.g-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -16px 0 26px; font-size: .95rem; color: var(--ink-soft); }
.g-hint svg { width: 18px; height: 18px; flex: none; }
.gal { columns: 3 250px; column-gap: clamp(12px, 1.4vw, 18px); }
.gal.g2 { columns: 2 250px; }
.g-it { position: relative; display: block; margin: 0 0 clamp(12px, 1.4vw, 18px); break-inside: avoid; border-radius: 14px; overflow: hidden;
  cursor: zoom-in; box-shadow: var(--shadow); background: var(--sand-2); }
/* téléphone : deux colonnes, pour parcourir l'album sans défiler six écrans ; la photo s'ouvre en grand au toucher */
@media (max-width: 559px) {
  .gal, .gal.g2 { columns: 2; column-gap: 10px; }
  .gal .g-it { margin-bottom: 10px; border-radius: 12px; }
  .gal .g-z { top: 7px; inset-inline-end: 7px; width: 30px; height: 30px; }
  .gal .g-z svg { width: 16px; height: 16px; }
}
.g-it img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.g-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 14px; font-size: .9rem; line-height: 1.4; color: #fff;
  background: linear-gradient(0deg, rgba(6, 42, 30, .88), rgba(6, 42, 30, 0)); opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease); }
.g-z { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--g-900); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45);
  transition: transform .2s var(--ease), opacity .2s var(--ease); }
.g-z svg { width: 19px; height: 19px; }
@media (hover: hover) and (pointer: fine) {
  .g-z { opacity: 0; transform: scale(.85); }
  .g-it:hover img, .d-it:hover img { transform: scale(1.05); }
  .g-it:hover .g-cap, .g-it:focus-visible .g-cap { opacity: 1; transform: none; }
  .g-it:hover .g-z, .g-it:focus-visible .g-z, .d-it:hover .g-z, .d-it:focus-visible .g-z { opacity: 1; transform: none; }
}

/* ---------- visionneuse : la photo en grand, l'album qui défile ---------- */
.lb-open { overflow: hidden; }
.lb { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  color: #fff; background: #07140f; overflow: hidden; }
.lb::backdrop { background: rgba(7, 20, 15, .7); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 6px; padding-inline-start: 20px; }
.lb-k { margin: 0; font-size: .95rem; font-variant-numeric: tabular-nums; opacity: .85; }
.lb-x, .lb-p, .lb-n { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .13);
  cursor: pointer; transition: background-color .18s var(--ease); }
.lb-x { width: 48px; height: 48px; }
.lb-x svg, .lb-p svg, .lb-n svg { width: 24px; height: 24px; }
.lb-f { position: relative; display: grid; place-items: center; min-height: 0; padding: 4px 80px; touch-action: pan-y pinch-zoom; }
.lb-i { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px;
  user-select: none; -webkit-user-drag: none; transition: opacity .25s var(--ease); }
.lb-wait .lb-i { opacity: .35; }
.lb-p, .lb-n { position: absolute; top: 50%; width: 56px; height: 56px; translate: 0 -50%; }
.lb-p { inset-inline-start: 14px; }
.lb-n { inset-inline-end: 14px; }
[dir="rtl"] .lb-p svg, [dir="rtl"] .lb-n svg { transform: scaleX(-1); }
.lb-c { margin: 0; padding: 10px 20px 0; min-height: 2.4em; text-align: center; font-size: .95rem; line-height: 1.45; color: rgba(255, 255, 255, .84); }
.lb-t { display: flex; gap: 8px; overflow-x: auto; justify-content: safe center; padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.lb-th { flex: none; width: 76px; height: 56px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #1d2a24; opacity: .5;
  cursor: pointer; transition: opacity .18s var(--ease), box-shadow .18s var(--ease); }
.lb-th img { width: 100%; height: 100%; object-fit: cover; }
.lb-th.on { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
.lb-one .lb-p, .lb-one .lb-n, .lb-one .lb-t { display: none; }
.lb :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .lb-x:hover, .lb-p:hover, .lb-n:hover { background: rgba(255, 255, 255, .26); }
  .lb-th:hover { opacity: .85; }
}
@media (max-width: 640px) {
  .lb-f { padding: 4px 0; }
  .lb-i { border-radius: 0; }
  .lb-p, .lb-n { width: 44px; height: 44px; background: rgba(0, 0, 0, .45); }
  .lb-p { inset-inline-start: 6px; }
  .lb-n { inset-inline-end: 6px; }
  .lb-th { width: 60px; height: 44px; }
}

/* ---------- questions fréquentes : le titre d'un côté, les réponses de l'autre ---------- */
.faq-g { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 960px) {
  .faq-g { grid-template-columns: minmax(260px, .8fr) 1.45fr; align-items: start; }
  .faq-side { position: sticky; top: calc(var(--hdr) + 32px); }
}
.faq-side h2 { margin-bottom: 14px; }
.faq-side p { color: var(--ink-soft); font-size: 1.08rem; }
.faq-side .cta { margin-top: 20px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s var(--ease); }
.sand .faq details { box-shadow: var(--shadow); }
.faq details[open] { box-shadow: inset 0 0 0 1.5px var(--g-600), var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 16px 20px;
  font-weight: 600; font-size: 1.06rem; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sand); color: var(--g-900); font-size: 1.35rem; font-weight: 500; line-height: 1;
  transition: transform .25s var(--ease), background-color .25s var(--ease); }
.sand .faq summary::after { background: var(--sand-2); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); }
.faq-a { padding: 0 20px 20px; }
.faq-a p { margin: 0; max-width: 70ch; color: var(--ink-soft); }

/* ---------- fin de page : une photo du soir, et le contact à côté ---------- */
.close { display: grid; background: var(--g-900); color: #fff; }
@media (min-width: 900px) { .close { grid-template-columns: 1fr 1fr; } }
.close-ph { position: relative; min-height: 320px; overflow: hidden; }
.close-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.close-t { display: flex; align-items: center; padding: clamp(48px, 7vw, 100px) var(--gutter);
  background-image: radial-gradient(circle at 100% 0%, rgba(242, 182, 50, .14), transparent 45%); }
.close-in { width: min(560px, 100%); }
.close h2 { margin-bottom: 14px; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); }
.close p { color: rgba(255, 255, 255, .84); font-size: 1.1rem; }
.crows { display: grid; gap: 12px; margin-top: 26px; }
.crow { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background-color .2s var(--ease); }
.crow > svg:first-child { width: 46px; height: 46px; flex: none; padding: 11px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.crow span { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.crow small { font-size: .76rem; font-weight: 600; letter-spacing: var(--track-wide); text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.crow b { font-size: 1.12rem; font-weight: 600; overflow-wrap: anywhere; }
.crow.wa { background: var(--gold); color: var(--g-900); box-shadow: 0 16px 30px -18px rgba(242, 182, 50, .9); }
.crow.wa small { color: rgba(11, 61, 44, .78); }
.crow.wa > svg:first-child { background: rgba(11, 61, 44, .12); }
.crow .arr { width: 20px; height: 20px; flex: none; }
@media (hover: hover) and (pointer: fine) { .crow:hover { background: rgba(255, 255, 255, .14); } .crow.wa:hover { background: var(--gold-hi); } }

/* ---------- pages intérieures : bandeau photo, texte, encadré ---------- */
.banner { position: relative; display: grid; align-items: end; min-height: clamp(400px, 60svh, 580px); isolation: isolate; overflow: hidden;
  color: #fff; background: var(--g-900); }
.banner:not(.has-ph) { min-height: 0; background-image: radial-gradient(circle at 85% 10%, rgba(242, 182, 50, .18), transparent 40%),
  radial-gradient(circle at 0% 100%, rgba(0, 118, 74, .55), transparent 55%); }
.banner.tall { min-height: clamp(520px, calc(100svh - var(--hdr)), 820px); align-items: center; }
.bn-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.banner.has-ph::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(6, 42, 30, .9) 0%, rgba(6, 42, 30, .58) 42%, rgba(6, 42, 30, .18) 78%),
    linear-gradient(90deg, rgba(6, 42, 30, .5), rgba(6, 42, 30, 0) 64%); }
[dir="rtl"] .banner.has-ph::before { background: linear-gradient(0deg, rgba(6, 42, 30, .9) 0%, rgba(6, 42, 30, .58) 42%, rgba(6, 42, 30, .18) 78%),
    linear-gradient(270deg, rgba(6, 42, 30, .5), rgba(6, 42, 30, 0) 64%); }
.bn-in { padding-block: clamp(48px, 8svh, 96px) clamp(44px, 6svh, 76px); }
.bn-in > * { max-width: 860px; }
.banner .eyebrow { margin-top: 18px; }
.banner h1 { margin: 12px 0 16px; font-size: clamp(2.1rem, 1.25rem + 3.1vw, 4rem); line-height: 1.06; font-weight: 700; letter-spacing: -.024em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
[dir="rtl"] .banner h1 { letter-spacing: 0; line-height: 1.32; font-weight: 600; }
.banner .lead { margin: 0; max-width: 62ch; font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); color: rgba(255, 255, 255, .92); }
.p-404 .banner .lead { max-width: 48ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }
.page-g { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 1024px) {
  .page-g { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .aside { position: sticky; top: calc(var(--hdr) + 28px); }
}
.aside-in { padding: 28px; border-radius: var(--r); background: var(--g-900); color: #fff; box-shadow: var(--shadow-lg);
  background-image: radial-gradient(circle at 100% 0%, rgba(242, 182, 50, .16), transparent 46%); }
.aside-h { margin-bottom: 10px; font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.aside-in p:not(.aside-h) { color: rgba(255, 255, 255, .84); }
.aside-in .cta { margin-top: 18px; }
.aside-in .btn { width: 100%; }
.aside-l { list-style: none; display: grid; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.aside-l li { display: flex; align-items: center; gap: 12px; font-size: .95rem; line-height: 1.35; }
.aside-l .ic { width: 38px; height: 38px; background: rgba(255, 255, 255, .1); color: var(--gold); }
.aside-l .ic svg { width: 19px; height: 19px; }

/* textes longs */
.prose { min-width: 0; font-size: 1.08rem; }
.prose p, .prose li { max-width: 70ch; }
.blk + .blk { margin-top: clamp(38px, 5vw, 58px); }
.blk h2 { margin-bottom: 18px; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); }
.blk h2::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 14px; border-radius: 3px; background: var(--gold); }
.updated { padding: 12px 16px; border-radius: var(--r-s); background: var(--sand); font-size: .95rem; color: var(--ink-soft); }
.note { font-size: .92rem; color: var(--ink-soft); }
.list { list-style: none; display: grid; gap: 10px; }
.list li { position: relative; padding-inline-start: 30px; }
.list li::before { content: ""; position: absolute; inset-inline-start: 5px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.list.yes li::before, .list.no li::before { inset-inline-start: 0; top: .32em; width: 20px; height: 20px; }
.list.yes li::before { background: var(--g-600); }
.list.yes li::after { content: ""; position: absolute; inset-inline-start: 7px; top: calc(.32em + 4px); width: 6px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.list.no li::before { background: transparent; box-shadow: inset 0 0 0 2px rgba(74, 90, 82, .6); }
.list.no li::after { content: ""; position: absolute; inset-inline-start: 6px; top: calc(.32em + 9px); width: 8px; height: 2px; background: var(--ink-soft); }
.steps-ol { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps-ol li { counter-increment: s; position: relative; padding-inline-start: 48px; }
.steps-ol li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -2px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--g-900); color: var(--gold); font-weight: 700; font-size: .95rem; }

/* ---------- page d'un circuit ---------- */
.p-circuit .banner .bn-in { padding-bottom: calc(clamp(44px, 6svh, 76px) + 64px); }
.kinfo { position: relative; z-index: 3; margin-top: -64px; }
.kgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kbox { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow-lg); }
.kbox .ic { width: 46px; height: 46px; margin-bottom: 6px; }
.kbox .ic svg { width: 22px; height: 22px; }
.k-h { margin: 0; font-size: .76rem; font-weight: 600; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--g-600); }
[dir="rtl"] .k-h { font-size: .9rem; }
.k-v { margin: 0; font-size: 1.28rem; font-weight: 600; line-height: 1.25; }
.ticks { list-style: none; display: grid; gap: 6px; margin-top: 6px; font-size: .93rem; line-height: 1.4; color: var(--ink-soft); }
.ticks li { display: flex; align-items: flex-start; gap: 8px; }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--g-600); stroke-width: 2.4; }
.kprice { background: var(--g-900); color: #fff; background-image: radial-gradient(circle at 100% 0%, rgba(242, 182, 50, .2), transparent 50%); }
.kprice .ic { background: var(--gold); }
.kprice .k-h { color: var(--gold); }
.kprice .k-v { font-size: 2rem; color: var(--gold); line-height: 1.1; }
.kprice .k-v small { font-size: .92rem; font-weight: 500; color: rgba(255, 255, 255, .84); }
.k-pp, .k-note { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .84); }
.kprice .arrow-link { margin-top: auto; padding-top: 8px; }
@media (max-width: 1099px) { .kgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kgrid { grid-template-columns: 1fr; } .kinfo { margin-top: -44px; } .p-circuit .banner .bn-in { padding-bottom: 88px; } }
.intro { padding-top: clamp(56px, 7vw, 96px); }
.two { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 960px) { .two { grid-template-columns: 1.1fr .9fr; align-items: start; } }
/* programme jour par jour : la carte reste à l'écran pendant la lecture, à côté des jours */
.days-g { display: grid; gap: clamp(28px, 4vw, 56px); margin-top: 8px; }
@media (min-width: 1080px) {
  .days-g { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; }
  .days-map { order: 2; position: sticky; top: calc(var(--hdr) + 20px); }
}

/* le programme jour par jour : une piste, un médaillon par jour, des photos sous chaque étape */
.days { list-style: none; position: relative; display: grid; gap: 30px; padding-inline-start: 96px; }
.days::before { content: ""; position: absolute; top: 14px; bottom: 14px; inset-inline-start: 37px; border-inline-start: 2px dashed rgba(201, 138, 6, .7); }
.day { position: relative; }
.day-n { position: absolute; inset-inline-start: -96px; top: 0; display: grid; place-items: center; align-content: center; width: 76px; height: 76px;
  border-radius: 50%; background: var(--g-900); color: #fff; line-height: 1; box-shadow: 0 0 0 6px var(--sand); }
.day-n small { font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
[dir="rtl"] .day-n small { letter-spacing: 0; font-size: .72rem; }
.day-n b { margin-top: 3px; font-size: 1.7rem; font-weight: 700; color: var(--gold); }
.day-b { padding: 22px 24px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.day-b h3 { margin-bottom: 8px; font-size: 1.22rem; }
.day-b p { margin: 0; color: var(--ink-soft); }
.day-ph { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.d-it { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; cursor: zoom-in; background: var(--sand-2); }
.d-it img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.d-it .g-z { width: 32px; height: 32px; top: 8px; inset-inline-end: 8px; }
.d-it .g-z svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .days { padding-inline-start: 0; gap: 22px; }
  .days::before { display: none; }
  .day-n { position: relative; inset: auto; display: inline-flex; align-items: baseline; gap: 6px; width: auto; height: auto; margin-bottom: -18px;
    margin-inline-start: 18px; padding: 8px 16px; border-radius: 999px; box-shadow: 0 0 0 4px var(--sand); z-index: 1; }
  .day-n small { font-size: .7rem; }
  .day-n b { margin: 0; font-size: 1.1rem; }
  .day-b { padding: 30px 18px 18px; }
  .day-ph { gap: 6px; }
}

/* les prix par personne */
.price-box { padding: clamp(24px, 3vw, 38px); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-lg); border-top: 5px solid var(--gold); }
.price-box h2 { margin: 10px 0; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.price-box > p:not(.kicker):not(.note) { color: var(--ink-soft); }
.price-box .note { margin: 0; }
.prices { width: 100%; border-collapse: collapse; margin: 18px 0 14px; font-size: 1.06rem; }
.prices th, .prices td { padding: 13px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.prices thead th { font-size: .76rem; font-weight: 600; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--ink-soft); }
.prices thead th:last-child, .prices td { text-align: end; }
.prices tbody th { font-weight: 500; }
.prices td { font-weight: 700; font-size: 1.22rem; color: var(--g-900); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices tbody tr:last-child > * { border-bottom: 0; }
.prices tbody tr:nth-child(odd) { background: var(--sand); }
.prices tbody tr:last-child td { color: var(--g-600); }
.incl h2 { margin-bottom: 16px; font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem); }
.incl h2 + .list { margin-bottom: 34px; }
.zone-c { padding: clamp(26px, 4vw, 44px); border-radius: var(--r); background: var(--sand); }
.zone-c .ic { margin-bottom: 16px; background: #fff; }
.zone-c h2 { margin-bottom: 12px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
/* avertissement en tête d'un circuit qui traverse une zone formellement déconseillée : il chevauche le bandeau, comme les
   cadres du circuit, et passe avant eux */
.alert-band { position: relative; z-index: 3; margin-top: -64px; }
.alert-band + .kinfo { margin-top: clamp(20px, 3vw, 32px); }
.alert-c { display: flex; gap: 18px; align-items: flex-start; padding: clamp(20px, 3vw, 30px); border-radius: var(--r); background: #fff;
  box-shadow: var(--shadow-lg); border-inline-start: 6px solid var(--alert); }
.alert-c .ic { flex: none; background: var(--alert-bg); color: var(--alert); }
.alert-c p + p { margin-top: 10px; }
.alert-c strong { color: var(--alert); }
@media (max-width: 560px) { .alert-band { margin-top: -44px; } .alert-c { flex-direction: column; gap: 12px; } }

/* ---------- pied de page ---------- */
.ftr { padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--g-950); color: rgba(255, 255, 255, .76); font-size: .96rem; }
.ftr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 36px; margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ftr-top .brand { margin: 0; }
.ftr-top .cta { margin: 0; }
.ftr-g { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
@media (min-width: 1100px) { .ftr-g { grid-template-columns: 1.35fr repeat(4, 1fr); } }
.ftr bdi { white-space: nowrap; }
.ftr h2 { margin: 0 0 14px; font-size: .8rem; font-weight: 600; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .ftr h2 { font-size: .95rem; }
.ftr ul { list-style: none; display: grid; gap: 4px; }
/* liens des colonnes : la couleur du texte du pied de page (la règle générale « li a » les mettait en vert sur vert) */
.ftr ul a { display: inline-flex; align-items: center; gap: 10px; padding-block: 4px; color: inherit; font-weight: 400; text-decoration: none; }
.ftr ul a:hover { color: #fff; text-decoration: underline; }
.ftr-ct li > span { display: inline-flex; align-items: center; gap: 10px; padding-block: 4px; }
.ftr-ct svg { width: 18px; height: 18px; flex: none; color: var(--gold); }
.ftr-bot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: 46px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.ftr-bot p { margin: 0; max-width: 80ch; }
@media (min-width: 768px) { .ftr-bot { padding-inline-end: 64px; } }
.ftr .ftr-l { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* barre d'action du téléphone et retour en haut */
.qbar { display: none; }
@media (max-width: 767px) {
  .qbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 61, 44, .97); box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .55); }
  .qbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px;
    font-weight: 600; text-decoration: none; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
  .qbar .q1 { background: var(--gold); color: var(--g-900); box-shadow: none; }
  .qbar svg { width: 20px; height: 20px; }
  /* la place de la barre est prise dans le pied de page : aucune bande claire sous lui */
  .ftr { padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
}
.totop { position: fixed; inset-inline-end: 18px; bottom: 22px; z-index: 39; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--gold); color: var(--g-900); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.totop svg { width: 22px; height: 22px; }
.scrolled .totop { opacity: 1; visibility: visible; transform: none; }
/* la règle .totop ci-dessus remplace les transitions de .mag : on les redonne pour le bouton « haut de page » aimanté */
.totop.mag { transition: translate .55s cubic-bezier(.2, .9, .25, 1.25), opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.totop.mag.mag-on { transition: translate .12s linear, opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
@media (max-width: 767px) { .totop { bottom: calc(82px + env(safe-area-inset-bottom)); width: 44px; height: 44px; } }

/* ---------- révélation à l'entrée dans l'écran (seulement si les scripts tournent) ---------- */
.js .rv { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv:not(.in) { opacity: 0; transform: translateY(24px); }
.js :is(.cards, .tiles, .why-l, .track, .stats, .kgrid, .calm-g) > .rv:nth-child(2) { transition-delay: 70ms; }
.js :is(.cards, .tiles, .why-l, .track, .stats, .kgrid, .calm-g) > .rv:nth-child(3) { transition-delay: 140ms; }
.js :is(.cards, .tiles, .why-l, .track, .stats, .kgrid, .calm-g) > .rv:nth-child(4) { transition-delay: 210ms; }
.js :is(.cards, .tiles, .why-l, .track, .stats, .kgrid, .calm-g) > .rv:nth-child(5) { transition-delay: 280ms; }

/* ---------- moins d'animations : tout reste lisible, rien ne bouge ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv:not(.in), .js .rv { opacity: 1; transform: none; transition: none; }
  .js .sl-img, .js .slide.on .sl-img { transform: none; transition: none; }
  .slide, .slide.on { transition: none; }
  .card, .card-ph img, .tile-img, .wide-img, .btn, .arr, .g-it img, .d-it img, .g-cap, .smap .route { transition: none; }
  .flash::after { animation: none; opacity: 0; }
  .mag, .mag > svg, .mag > span { translate: none; }
}
@media print {
  .hdr, .qbar, .totop, .lb, .sl-ctl, .sl-cap { display: none !important; }
  body { background: #fff; }
  .hero, .banner, .night, .close, .duo { color: #000; background: #fff; }
}
