/* ════════════════════════════════════════════════════════════════════
   assets/css/outils/distances.css
   Page    : outils/distances.php
   Version : 1.0.0
   Date    : 2026-06-19
   Thème   : Distances & trajets — sea (#0369a1) + amber (#d97706)
             Modes : route #b45309 · avion #1d4ed8 · bateau #0891b2
   Préfixe BEM : ds-*  (réutilise mc-section-head / mc-eyebrow / mc-reveal)

   ────────────────────────────────────────────────────────────────────
   NOTE CASCADE MOBILE (leçon plages-cotes v1.1.1) :
   Les media queries sont déclarées du plus grand au plus petit et
   BORNÉES (min+max) pour qu'un bloc desktop/tablette ne réécrive
   jamais les règles mobiles 1-colonne par cascade. Le bloc ≤575.98px
   est le dernier et n'est suivi d'aucun override non borné.
════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════
   §1 · BANNIÈRE HÉRO
══════════════════════════════════════════════════════════════ */

.ds-banner {
    position: relative; min-height: 400px;
    display: flex; align-items: flex-end;
    background-size: cover; background-position: center 40%;
    background-repeat: no-repeat; overflow: hidden; isolation: isolate;
}
.ds-banner__overlay       { position: absolute; inset: 0; pointer-events: none; }
.ds-banner__overlay--dark { z-index: 1; background: rgba(12, 74, 110, .66); }
.ds-banner__overlay--grad {
    z-index: 2;
    background: linear-gradient(135deg, rgba(7, 89, 133, .85) 0%, rgba(217, 119, 6, .32) 58%, transparent 100%);
}
.ds-banner__grain {
    position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.08'/%3E%3C/svg%3E");
}

.ds-banner__icons { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.ds-icon {
    position: absolute; color: rgba(252, 211, 77, .20);
    font-size: 3rem; line-height: 1;
    animation: dsFloat 13s ease-in-out infinite;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
.ds-icon--1 { top: 14%; left:  6%; font-size: 3.6rem; animation-delay: 0s;   animation-duration: 14s; }
.ds-icon--2 { top: 66%; left: 11%; font-size: 3.1rem; animation-delay: 2s;   animation-duration: 11s; color: rgba(125, 211, 252, .22); }
.ds-icon--3 { top: 20%; right:  9%; font-size: 3.4rem; animation-delay: 1s;  animation-duration: 13s; color: rgba(110, 231, 183, .20); }
.ds-icon--4 { top: 70%; right: 16%; font-size: 2.7rem; animation-delay: 3s;  animation-duration: 10s; }
.ds-icon--5 { top: 36%; left: 44%; font-size: 2.5rem;  animation-delay: 1.5s; animation-duration: 12s; color: rgba(125, 211, 252, .18); }
@keyframes dsFloat {
    0%, 100% { transform: translateY(0) rotate(0deg);     opacity: .15; }
    50%      { transform: translateY(-20px) rotate(8deg); opacity: .34; }
}

.ds-banner__inner   { position: relative; z-index: 10; width: 100%; max-width: 1280px; margin: 0 auto; padding: 2rem 2rem 4rem; display: flex; flex-direction: column; gap: 1.25rem; }
.ds-banner__content { display: flex; flex-direction: column; gap: .6rem; }
.ds-banner__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fcd34d; }
.ds-banner__title   { font-family: var(--font-heading); font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; color: #fff; line-height: 1.08; margin: 0; text-shadow: 0 3px 24px rgba(0, 0, 0, .55); }
.ds-banner__title-accent { color: #6ee7b7; }
.ds-banner__subtitle { font-size: clamp(.88rem, 1.6vw, 1.05rem); color: rgba(255, 255, 255, .82); max-width: 660px; line-height: 1.65; margin: 0; }
.ds-banner__subtitle strong { color: #fcd34d; font-weight: 600; }

.ds-banner__stats    { display: flex; align-items: center; gap: 1.5rem; margin-top: .6rem; flex-wrap: wrap; }
.ds-banner__stat     { display: flex; flex-direction: column; gap: .1rem; }
.ds-banner__stat-val { font-family: var(--font-condensed, var(--font-heading)); font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1; }
.ds-banner__stat-lbl { font-size: .70rem; color: rgba(255, 255, 255, .55); font-weight: 500; white-space: nowrap; }
.ds-banner__stat-sep { width: 1px; height: 32px; background: rgba(255, 255, 255, .20); border-radius: 2px; flex-shrink: 0; }

.ds-banner__wave     { position: absolute; bottom: 0; left: 0; right: 0; z-index: 11; line-height: 0; }
.ds-banner__wave svg { display: block; width: 100%; height: 56px; }


/* ══════════════════════════════════════════════════════════════
   §2 · INTRO + LÉGENDE DES MODES
══════════════════════════════════════════════════════════════ */

.ds-section--intro { padding: var(--s16) 0; }
.ds-intro-content  { max-width: 1100px; margin: 0 auto; }

.ds-intro-cols  { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin: var(--s8) 0 var(--s6); align-items: start; }
.ds-intro__lead { font-size: 1rem; color: var(--gray-700); line-height: 1.85; margin: 0; font-weight: 500; overflow-wrap: break-word; }
.ds-intro__lead strong { color: #0369a1; }
.ds-intro__lead em     { font-style: italic; color: #b45309; }
.ds-intro__body { font-size: .92rem; color: var(--gray-500); line-height: 1.85; margin: 0; overflow-wrap: break-word; }
.ds-intro__body strong { color: var(--gray-800); }

.ds-intro__legend { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin-top: var(--s4); }

.ds-mode-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .4rem 1rem; border-radius: var(--r-full);
    font-size: .78rem; font-weight: 700; letter-spacing: .02em;
    border: 1px solid transparent;
}
.ds-mode-chip i { font-size: .75rem; }
.ds-mode-chip--road { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.ds-mode-chip--air  { background: #e0e7ff; color: #1d4ed8; border-color: #c7d2fe; }
.ds-mode-chip--sea  { background: #ecfeff; color: #0891b2; border-color: #a5f3fc; }


/* ══════════════════════════════════════════════════════════════
   §3 · SECTION CARTE PLEINE LARGEUR
══════════════════════════════════════════════════════════════ */

.ds-section--map-full { padding: var(--s16) 0 0; background: #fff; }

.ds-map-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 2rem; margin-bottom: var(--s6); flex-wrap: wrap;
}
.ds-map-section-head__text { flex: 1; min-width: 0; }
.ds-map-section-head__desc { font-size: .88rem; color: var(--gray-500); line-height: 1.75; max-width: 540px; margin-top: var(--s3); }

.ds-map-controls { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

/* ── Sélecteur de mode (route / avion / bateau) ── */
.ds-mode-switcher,
.ds-map-style-switcher {
    display: flex; align-items: center;
    background: var(--gray-100); border: 1px solid var(--gray-200);
    border-radius: var(--r-full); padding: .2rem; gap: .2rem;
}
.ds-mode-btn, .ds-style-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .45rem .85rem; border: none; border-radius: var(--r-full);
    font-size: .75rem; font-weight: 600; cursor: pointer;
    color: var(--gray-500); background: transparent;
    transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
    white-space: nowrap;
}
.ds-mode-btn i, .ds-style-btn i { font-size: .70rem; }
.ds-mode-btn:hover, .ds-style-btn:hover { background: #fff; color: var(--gray-800); box-shadow: var(--shadow-sm); }
.ds-style-btn--active { background: #fff; color: #0369a1; box-shadow: var(--shadow-sm); font-weight: 700; }

/* Mode actif : couleur propre à chaque mode */
.ds-mode-btn--active { background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; }
.ds-mode-btn--road.ds-mode-btn--active { color: #b45309; }
.ds-mode-btn--air.ds-mode-btn--active  { color: #1d4ed8; }
.ds-mode-btn--sea.ds-mode-btn--active  { color: #0891b2; }
.ds-mode-btn[disabled], .ds-mode-btn.is-disabled { opacity: .4; cursor: not-allowed; }

/* ── Bouton toggle principal ── */
.ds-map-toggle-btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .65rem 1.4rem;
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    color: #fff; border: none; border-radius: var(--r-full);
    font-size: .875rem; font-weight: 700; cursor: pointer; white-space: nowrap;
    box-shadow: 0 3px 12px rgba(3, 105, 161, .35);
    transition: background var(--t-base), transform var(--t-fast), box-shadow var(--t-fast);
}
.ds-map-toggle-btn:hover { background: linear-gradient(135deg, #0284c7 0%, #0c4a6e 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(3, 105, 161, .45); }
.ds-map-toggle-btn[aria-expanded="true"] { background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%); }
.ds-map-toggle-btn__chevron { font-size: .70rem; transition: transform .3s ease; }
.ds-map-toggle-btn[aria-expanded="true"] .ds-map-toggle-btn__chevron { transform: rotate(180deg); }

/* ── Zone collapsible ── */
.ds-map-collapsible { overflow: hidden; }
.ds-map-collapsible--opening { animation: dsMapOpen .35s cubic-bezier(.4, 0, .2, 1) forwards; }
.ds-map-collapsible--closing { animation: dsMapClose .28s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes dsMapOpen  { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dsMapClose { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }

/* ── Wrapper externe carte + menu ── */
.ds-fullmap-outer { display: flex; align-items: stretch; width: 100%; height: 620px; min-height: 440px; overflow: hidden; }

/* ── Menu latéral des destinations ── */
.ds-dest-menu {
    width: 250px; min-width: 215px; max-width: 280px; flex-shrink: 0;
    background: #fff; border-right: 1px solid var(--gray-200);
    display: flex; flex-direction: column; overflow: hidden;
    position: relative; z-index: 5;
}
.ds-dest-menu__header {
    display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem;
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
    color: #fff; font-size: .78rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; flex-shrink: 0;
}
.ds-dest-menu__header i { font-size: .9rem; color: #7dd3fc; }

.ds-dest-menu__list {
    list-style: none; margin: 0; padding: .4rem 0; overflow-y: auto; flex: 1;
    scrollbar-width: thin; scrollbar-color: #7dd3fc #f0f9ff;
}
.ds-dest-menu__list::-webkit-scrollbar       { width: 4px; }
.ds-dest-menu__list::-webkit-scrollbar-track { background: #f0f9ff; }
.ds-dest-menu__list::-webkit-scrollbar-thumb { background: #7dd3fc; border-radius: 4px; }

.ds-dest-menu__item { display: block; }
.ds-dest-menu__btn {
    display: flex; align-items: center; gap: .55rem; width: 100%;
    padding: .55rem 1rem; background: transparent; border: none;
    border-left: 3px solid transparent; cursor: pointer; text-align: left;
    font-size: .78rem; font-weight: 500; color: var(--gray-600); line-height: 1.3;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.ds-dest-menu__btn:hover { background: #f0f9ff; color: #0369a1; border-left-color: #7dd3fc; }
.ds-dest-menu__btn--active { background: #dbeafe; color: #1d4ed8; font-weight: 700; border-left-color: #3b82f6; }
.ds-dest-menu__btn--all {
    font-weight: 700; font-size: .80rem;
    border-bottom: 1px solid var(--gray-100); padding-bottom: .65rem; margin-bottom: .2rem;
}
.ds-dest-menu__btn--all.ds-dest-menu__btn--active {
    background: linear-gradient(135deg, rgba(3, 105, 161, .12) 0%, rgba(8, 145, 178, .08) 100%);
    color: #0369a1; border-left-color: #0284c7;
}
.ds-dest-menu__dot  { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 1px 3px rgba(0, 0, 0, .20); }
.ds-dest-menu__name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-dest-menu__km   { font-family: var(--font-condensed, var(--font-heading)); font-size: .68rem; font-weight: 700; color: var(--gray-400); flex-shrink: 0; }
.ds-dest-menu__icon { font-size: .60rem; color: var(--gray-300); flex-shrink: 0; }
.ds-dest-menu__btn:hover .ds-dest-menu__icon,
.ds-dest-menu__btn--active .ds-dest-menu__icon { color: #0369a1; }

/* ── Wrapper carte ── */
.ds-fullmap-wrap { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #e0f2fe; }
#ds-fullmap { width: 100% !important; height: 100% !important; }

/* ── Marqueurs (MapLibre écrit transform : on n'utilise QUE filter) ── */
.ds-map-marker { will-change: filter; transition: filter .15s ease; }
.ds-map-marker:hover { filter: drop-shadow(0 0 6px rgba(255, 152, 0, .75)); }
.ds-map-marker--origin { filter: drop-shadow(0 0 0 rgba(255, 179, 71, .6)); animation: dsOriginPulse 2.4s ease-in-out infinite; }
@keyframes dsOriginPulse {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 179, 71, .55)); }
    50%      { filter: drop-shadow(0 0 9px rgba(255, 179, 71, .85)); }
}

/* ── Marqueur d'escale (vols avec correspondance via Antananarivo) ── */
.ds-escale-marker { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.ds-escale-marker__dot {
    width: 24px; height: 24px; border-radius: 50%;
    background: #fff; border: 2px dashed #1d4ed8; color: #1d4ed8;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
.ds-escale-marker__lbl {
    margin-top: 3px; font-size: .6rem; font-weight: 800;
    color: #1d4ed8; background: rgba(255, 255, 255, .92);
    padding: .05rem .4rem; border-radius: var(--r-full); white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

/* ── Infobox flottante ── */
.ds-fullmap-infobox {
    position: absolute; top: 1rem; right: 1rem; z-index: 30;
    width: 285px; max-height: calc(100% - 2rem); overflow-y: auto;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(3, 105, 161, .22); border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(7, 89, 133, .18); padding: 1rem;
    transition: opacity .3s ease, transform .3s ease; opacity: 0; transform: translateX(12px);
}
.ds-fullmap-infobox--visible { opacity: 1; transform: translateX(0); }
.ds-fullmap-infobox[hidden]  { display: none !important; }
.ds-fullmap-infobox__close {
    position: absolute; top: .55rem; right: .55rem;
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    background: var(--gray-100); border: none; border-radius: 50%;
    color: var(--gray-400); font-size: .70rem; cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.ds-fullmap-infobox__close:hover { background: #fca5a5; color: #991b1b; }

.ds-fullmap-infobox__content strong { display: block; font-size: .92rem; font-weight: 700; color: #0c4a6e; margin-bottom: .15rem; padding-right: 1.5rem; }
.ds-ib-region { font-size: .72rem; color: var(--gray-500); margin: 0 0 .6rem; line-height: 1.4; }
.ds-ib-modes  { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.ds-ib-row {
    display: flex; align-items: flex-start; gap: .55rem;
    padding: .45rem .6rem; border-radius: var(--r-md);
    background: var(--gray-50); border-left: 3px solid var(--gray-300);
    font-size: .76rem; color: var(--gray-600); line-height: 1.45;
}
.ds-ib-row i { margin-top: .15rem; width: 15px; text-align: center; flex-shrink: 0; color: var(--gray-400); }
.ds-ib-row b { color: var(--gray-800); font-weight: 800; }
.ds-ib-row small { color: var(--gray-400); font-size: .68rem; }
.ds-ib-mode { display: block; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); margin-bottom: .1rem; }
.ds-ib-row--road { border-left-color: #b45309; } .ds-ib-row--road i { color: #b45309; }
.ds-ib-row--air  { border-left-color: #1d4ed8; } .ds-ib-row--air  i { color: #1d4ed8; }
.ds-ib-row--sea  { border-left-color: #0891b2; } .ds-ib-row--sea  i { color: #0891b2; }
.ds-ib-row.is-active { background: #f0f9ff; box-shadow: 0 0 0 1px rgba(3, 105, 161, .15); }
.ds-ib-off { color: #b91c1c; font-style: italic; }

/* ── Barre "Masquer la carte" ── */
.ds-map-hide-bar { display: flex; justify-content: center; padding: .85rem 1rem 1rem; background: #fff; border-top: 1px solid var(--gray-100); }
.ds-map-hide-btn {
    display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1.2rem;
    background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200);
    border-radius: var(--r-full); font-size: .80rem; font-weight: 600; cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.ds-map-hide-btn:hover { background: #fef2f2; color: #991b1b; border-color: #fca5a5; transform: translateY(-1px); }
.ds-map-hide-btn i { font-size: .65rem; }


/* ══════════════════════════════════════════════════════════════
   §4 · CARTES PAR DESTINATION
══════════════════════════════════════════════════════════════ */

.ds-section--cards { padding: var(--s16) 0; }
.ds-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: var(--s10); }

.ds-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--gray-200);
    border-top: 3px solid var(--dest-color, #0369a1);
    border-radius: 1.25rem; overflow: hidden; padding: var(--s5);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    min-width: 0; max-width: 100%;
}
.ds-card:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(7, 89, 133, .13); }

.ds-card__head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.ds-card__emoji { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.ds-card__title-wrap { flex: 1; min-width: 0; }
.ds-card__name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin: 0; line-height: 1.25; overflow-wrap: break-word; }
.ds-card__region { font-size: .72rem; color: var(--gray-400); margin: .15rem 0 0; }
.ds-card__airkm {
    display: inline-flex; align-items: center; gap: .3rem; flex-shrink: 0;
    font-family: var(--font-condensed, var(--font-heading)); font-size: .82rem; font-weight: 800;
    color: var(--dest-color, #0369a1);
    background: color-mix(in srgb, var(--dest-color, #0369a1) 10%, white);
    padding: .25rem .55rem; border-radius: var(--r-full); white-space: nowrap;
}
.ds-card__airkm i { font-size: .68rem; opacity: .8; }

.ds-card__modes { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.ds-mode-row {
    display: flex; align-items: flex-start; gap: .65rem;
    padding: .55rem .7rem; border-radius: var(--r-md);
    background: var(--gray-50); border-left: 3px solid var(--gray-300);
}
.ds-mode-row__icon { width: 22px; text-align: center; flex-shrink: 0; font-size: .9rem; margin-top: .1rem; color: var(--gray-400); }
.ds-mode-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ds-mode-row__label { font-size: .72rem; font-weight: 700; color: var(--gray-700); line-height: 1.3; overflow-wrap: break-word; }
.ds-mode-row__data { font-size: .80rem; color: var(--gray-600); line-height: 1.4; }
.ds-mode-row__data strong { font-family: var(--font-condensed, var(--font-heading)); font-weight: 800; color: var(--gray-900); }
.ds-mode-row__dur { color: var(--gray-500); }
.ds-mode-row__data--off { font-style: italic; color: #b91c1c; font-size: .74rem; }

.ds-mode-row--road { border-left-color: #b45309; } .ds-mode-row--road .ds-mode-row__icon { color: #b45309; }
.ds-mode-row--air  { border-left-color: #1d4ed8; } .ds-mode-row--air  .ds-mode-row__icon { color: #1d4ed8; }
.ds-mode-row--sea  { border-left-color: #0891b2; } .ds-mode-row--sea  .ds-mode-row__icon { color: #0891b2; }
.ds-mode-row.is-off { opacity: .55; border-left-color: var(--gray-300); }
.ds-mode-row.is-off .ds-mode-row__icon { color: var(--gray-300); }

.ds-card__map-link {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    margin-top: auto; padding: .6rem 1rem;
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    color: #fff; font-size: .80rem; font-weight: 700; text-decoration: none;
    border-radius: var(--r-full); border: none; cursor: pointer;
    box-shadow: 0 2px 10px rgba(3, 105, 161, .30);
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    max-width: 100%;
}
.ds-card__map-link:hover { background: linear-gradient(135deg, #0284c7 0%, #0c4a6e 100%); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(3, 105, 161, .45); color: #fff; }
.ds-card__map-link .fa-arrow-down { font-size: .65rem; opacity: .75; animation: dsBounceDown 1.6s ease-in-out infinite; flex-shrink: 0; }
@keyframes dsBounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }


/* ══════════════════════════════════════════════════════════════
   §5 · TABLEAU COMPARATIF
══════════════════════════════════════════════════════════════ */

.ds-section--compare { padding: var(--s16) 0; }

.ds-compare {
    margin-top: var(--s8); background: #fff;
    border: 1px solid var(--gray-200); border-radius: 1.25rem;
    box-shadow: 0 6px 24px rgba(7, 89, 133, .08); overflow: hidden;
}
.ds-compare__container { overflow-x: auto; }
.ds-compare__table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 640px; }
.ds-compare__table thead { background: #f8fafc; }
.ds-compare__table th {
    text-align: left; padding: .85rem 1rem; font-size: .7rem; font-weight: 700;
    color: var(--gray-500); letter-spacing: .04em; text-transform: uppercase;
    border-bottom: 1px solid var(--gray-200); white-space: nowrap;
}
.ds-compare__table th i { margin-right: .25rem; }
.ds-compare__table th:nth-child(2) i { color: #b45309; }
.ds-compare__table th:nth-child(3) i { color: #1d4ed8; }
.ds-compare__table th:nth-child(4) i { color: #0891b2; }
.ds-compare__table th.ds-compare__num { text-align: right; }
.ds-compare__table td { padding: .8rem 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-800); vertical-align: middle; }
.ds-compare__table tbody tr { transition: background var(--t-fast); border-left: 3px solid transparent; }
.ds-compare__table tbody tr:hover { background: #f8fafc; border-left-color: var(--row-color, #0369a1); }
.ds-compare__table tbody tr:last-child td { border-bottom: none; }

.ds-compare__city { display: flex; align-items: center; gap: .6rem; min-width: 180px; }
.ds-compare__city-emoji { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.ds-compare__city strong { display: block; font-size: .88rem; font-weight: 700; color: var(--gray-900); line-height: 1.25; }
.ds-compare__city small  { display: block; font-size: .68rem; color: var(--gray-400); margin-top: .1rem; }

.ds-compare__val { display: block; font-family: var(--font-condensed, var(--font-heading)); font-size: .92rem; font-weight: 800; color: var(--gray-900); line-height: 1.2; }
.ds-compare__sub { display: block; font-size: .68rem; color: var(--gray-500); margin-top: .1rem; }
.ds-compare__off { color: var(--gray-300); font-weight: 700; }
.ds-compare__num { text-align: right; white-space: nowrap; font-family: var(--font-condensed, var(--font-heading)); font-weight: 800; color: #0369a1; font-variant-numeric: tabular-nums; }

.ds-compare__note { font-size: .74rem; color: var(--gray-500); line-height: 1.6; margin: 0; padding: var(--s3) var(--s5); background: var(--gray-50); border-top: 1px solid var(--gray-100); }


/* ══════════════════════════════════════════════════════════════
   §6 · CONSEILS PRATIQUES
══════════════════════════════════════════════════════════════ */

.ds-section--tips { padding: var(--s16) 0; }
.ds-tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s8); }

.ds-tip {
    padding: var(--s5); background: #fff; border: 1px solid var(--gray-200);
    border-radius: 1rem; transition: transform var(--t-base), box-shadow var(--t-base);
    min-width: 0; max-width: 100%;
}
.ds-tip:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(7, 89, 133, .10); }
.ds-tip__icon {
    width: 44px; height: 44px; border-radius: var(--r-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; margin-bottom: var(--s3);
    background: #fef3c7; color: #b45309;
}
.ds-tip__icon--sea   { background: #ecfeff; color: #0891b2; }
.ds-tip__icon--sky   { background: #e0f2fe; color: #0284c7; }
.ds-tip__icon--amber { background: #fef3c7; color: #b45309; }
.ds-tip__icon--green { background: #f0fdf4; color: #166534; }
.ds-tip__title { font-family: var(--font-heading); font-size: .98rem; font-weight: 700; color: var(--gray-900); margin: 0 0 var(--s2); line-height: 1.3; overflow-wrap: break-word; }
.ds-tip__text  { font-size: .84rem; color: var(--gray-600); line-height: 1.7; margin: 0; overflow-wrap: break-word; }

.ds-sources   { font-size: .76rem; color: var(--gray-400); text-align: center; line-height: 1.75; margin-top: var(--s6); }
.ds-sources a { color: #0369a1; text-decoration: none; transition: color var(--t-fast); overflow-wrap: anywhere; }
.ds-sources a:hover { color: #0c4a6e; text-decoration: underline; }


/* ══════════════════════════════════════════════════════════════
   §7 · CTA FINAL
══════════════════════════════════════════════════════════════ */

.ds-cta-final { position: relative; overflow: hidden; padding: var(--s24) 0; background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #b45309 100%); }
.ds-cta-final__overlay {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(252, 211, 77, .15) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 30%, rgba(110, 231, 183, .12) 0%, transparent 55%);
}
.ds-cta-final > .container { position: relative; z-index: 1; }

.ds-cta-final__inner { text-align: center; max-width: 760px; margin: 0 auto; }
.ds-cta-final__badge {
    display: inline-flex; align-items: center; gap: var(--s2); padding: .4rem 1rem;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .20);
    border-radius: var(--r-full); color: rgba(255, 255, 255, .75);
    font-size: .72rem; font-weight: 700; letter-spacing: .10em; text-transform: uppercase;
    margin-bottom: var(--s6); backdrop-filter: blur(6px);
}
.ds-cta-final__badge i { color: #fcd34d; }
.ds-cta-final__title { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; color: #fff; line-height: 1.05; margin-bottom: var(--s5); letter-spacing: -.02em; }
.ds-cta-final__accent { display: block; background: linear-gradient(90deg, #fcd34d, #6ee7b7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; }
.ds-cta-final__lead { font-size: 1rem; color: rgba(255, 255, 255, .72); line-height: 1.85; max-width: 560px; margin: 0 auto var(--s10); }

.ds-cta-final__links { display: flex; justify-content: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s10); }
.ds-cta-link { display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-decoration: none; transition: transform var(--t-base); }
.ds-cta-link:hover { transform: translateY(-4px); }
.ds-cta-link__icon {
    width: 60px; height: 60px; border-radius: 1.1rem;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .20);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff; backdrop-filter: blur(8px);
    transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.ds-cta-link:hover .ds-cta-link__icon { background: rgba(255, 255, 255, .20); border-color: rgba(255, 255, 255, .45); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.ds-cta-link__label { font-size: .72rem; font-weight: 700; color: rgba(255, 255, 255, .75); letter-spacing: .04em; text-transform: uppercase; }
.ds-cta-link:hover .ds-cta-link__label { color: #fff; }
.ds-cta-final__actions { display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; }


/* ══════════════════════════════════════════════════════════════
   §8 · FIL D'ARIANE
══════════════════════════════════════════════════════════════ */

.ds-breadcrumb { display: flex; align-items: center; }
.ds-breadcrumb__list {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--s1);
    list-style: none; margin: 0; padding: .4rem 1rem;
    background: rgba(0, 0, 0, .30); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-full);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.ds-breadcrumb__item { display: flex; align-items: center; }
.ds-breadcrumb__link {
    display: inline-flex; align-items: center; gap: .35rem;
    color: rgba(255, 255, 255, .65); font-size: .78rem; font-weight: 500;
    text-decoration: none; padding: .2rem .4rem; border-radius: var(--r-sm); white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast);
}
.ds-breadcrumb__link i { font-size: .65rem; }
.ds-breadcrumb__link:hover { color: #fff; background: rgba(255, 255, 255, .10); }
.ds-breadcrumb__sep { color: rgba(255, 255, 255, .28); font-size: .50rem; padding: 0 .1rem; }
.ds-breadcrumb__item--current {
    display: inline-flex; align-items: center; gap: .35rem;
    color: #fff; font-size: .78rem; font-weight: 700;
    padding: .2rem .5rem; border-radius: var(--r-sm); background: rgba(255, 255, 255, .12);
}
.ds-breadcrumb__item--current i { font-size: .65rem; color: #fcd34d; }


/* ══════════════════════════════════════════════════════════════
   §9 · REVEAL ANIMATIONS
══════════════════════════════════════════════════════════════ */

.mc-reveal { will-change: transform, opacity; transition: opacity .55s ease, transform .55s cubic-bezier(.4, 0, .2, 1); }
.mc-reveal--fade-up    { opacity: 0; transform: translateY(28px); }
.mc-reveal--fade-down  { opacity: 0; transform: translateY(-28px); }
.mc-reveal--scale-in   { opacity: 0; transform: scale(.93); }
.mc-reveal--visible    { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .mc-reveal { transition: none; }
    .mc-reveal--fade-up, .mc-reveal--fade-down, .mc-reveal--scale-in { opacity: 1; transform: none; }
    .ds-icon, .ds-map-marker--origin, .ds-card__map-link .fa-arrow-down { animation: none; }
}


/* ══════════════════════════════════════════════════════════════
   §10 · RESPONSIVE  (bornes min+max — anti-cascade mobile)
══════════════════════════════════════════════════════════════ */

/* ≥ 1400px */
@media (min-width: 1400px) {
    .ds-fullmap-outer { height: 680px; }
    .ds-dest-menu     { width: 270px; }
}

/* 1200px – 1399.98px */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .ds-fullmap-outer { height: 640px; }
}

/* 992px – 1199.98px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .ds-fullmap-outer { height: 580px; }
    .ds-dest-menu     { width: 220px; min-width: 195px; }
    .ds-cards-grid    { grid-template-columns: repeat(2, 1fr); }
    .ds-tips-grid     { grid-template-columns: repeat(2, 1fr); }
}

/* 768px – 991.98px — menu carte horizontal */
@media (min-width: 768px) and (max-width: 991.98px) {
    .ds-fullmap-outer    { height: auto; flex-direction: column; }
    .ds-dest-menu        { width: 100%; max-width: none; border-right: none; border-bottom: 1px solid var(--gray-200); }
    .ds-dest-menu__list  { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: .3rem .5rem; gap: .2rem; }
    .ds-dest-menu__item  { flex-shrink: 0; }
    .ds-dest-menu__btn   { border-left: none; border-bottom: 3px solid transparent; padding: .4rem .75rem; white-space: nowrap; font-size: .72rem; }
    .ds-dest-menu__btn:hover   { border-bottom-color: #7dd3fc; border-left: none; }
    .ds-dest-menu__btn--active { border-bottom-color: #3b82f6; border-left: none; }
    .ds-dest-menu__btn--all    { border-bottom: 3px solid transparent; border-right: 1px solid var(--gray-200); margin-bottom: 0; padding-bottom: .4rem; }
    .ds-dest-menu__km    { display: none; }
    .ds-fullmap-wrap     { height: 480px; }
    .ds-cards-grid       { grid-template-columns: repeat(2, 1fr); }
    .ds-tips-grid        { grid-template-columns: repeat(2, 1fr); }
    .ds-map-section-head { flex-direction: column; align-items: flex-start; }
    .ds-fullmap-infobox  { width: calc(100% - 2rem); right: .5rem; left: .5rem; top: auto; bottom: 1rem; }
}

/* 576px – 767.98px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .ds-fullmap-outer    { height: auto; flex-direction: column; }
    .ds-dest-menu        { width: 100%; max-width: none; border-right: none; border-bottom: 1px solid var(--gray-200); }
    .ds-dest-menu__list  { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: .3rem .5rem; gap: .2rem; }
    .ds-dest-menu__item  { flex-shrink: 0; }
    .ds-dest-menu__btn   { border-left: none; border-bottom: 3px solid transparent; padding: .4rem .7rem; white-space: nowrap; font-size: .70rem; }
    .ds-dest-menu__btn:hover   { border-bottom-color: #7dd3fc; border-left: none; }
    .ds-dest-menu__btn--active { border-bottom-color: #3b82f6; border-left: none; }
    .ds-dest-menu__dot   { display: none; }
    .ds-dest-menu__km    { display: none; }
    .ds-fullmap-wrap     { height: 400px; }
    .ds-fullmap-infobox  { width: calc(100% - 1rem); right: .5rem; left: .5rem; top: auto; bottom: 1rem; }
    .ds-banner           { min-height: 320px; }
    .ds-banner__subtitle { display: none; }
    .ds-intro-cols       { grid-template-columns: 1fr; gap: var(--s5); }
    .ds-cards-grid       { grid-template-columns: 1fr; }
    .ds-tips-grid        { grid-template-columns: 1fr 1fr; }
    .ds-map-section-head { flex-direction: column; align-items: flex-start; }
    .ds-map-controls     { justify-content: flex-start; width: 100%; }
    .ds-mode-btn span, .ds-style-btn span { display: none; }
    .ds-cta-final__actions { flex-direction: column; align-items: center; }
    .ds-cta-final__actions .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* ≤ 575.98px — DERNIER bloc, aucune surcharge ultérieure */
@media (max-width: 575.98px) {
    .ds-fullmap-outer    { height: auto; flex-direction: column; }
    .ds-dest-menu        { width: 100%; max-width: none; border-right: none; border-bottom: 1px solid var(--gray-200); }
    .ds-dest-menu__list  { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: .25rem .4rem; gap: .15rem; }
    .ds-dest-menu__item  { flex-shrink: 0; }
    .ds-dest-menu__btn   { border-left: none; border-bottom: 3px solid transparent; padding: .35rem .6rem; font-size: .68rem; gap: .3rem; }
    .ds-dest-menu__btn:hover   { border-bottom-color: #7dd3fc; border-left: none; }
    .ds-dest-menu__btn--active { border-bottom-color: #3b82f6; border-left: none; }
    .ds-dest-menu__dot   { display: none; }
    .ds-dest-menu__icon  { display: none; }
    .ds-dest-menu__km    { display: none; }
    .ds-fullmap-wrap     { height: 340px; }
    .ds-fullmap-infobox  { width: calc(100% - 1rem); right: .5rem; left: .5rem; top: auto; bottom: 1rem; max-height: 55%; }
    .ds-banner           { min-height: 280px; }
    .ds-banner__inner    { padding: 1.25rem 1rem 3rem; }
    .ds-banner__subtitle { display: none; }
    .ds-banner__stats    { gap: .75rem; }
    .ds-icon             { display: none; }
    .ds-intro-cols       { grid-template-columns: 1fr; gap: var(--s4); }
    .ds-cards-grid       { grid-template-columns: 1fr; gap: 1.25rem; }
    .ds-tips-grid        { grid-template-columns: 1fr; }
    .ds-map-section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .ds-map-controls     { width: 100%; flex-direction: column; align-items: stretch; }
    .ds-mode-switcher, .ds-map-style-switcher { width: 100%; justify-content: center; }
    .ds-mode-btn span, .ds-style-btn span { display: none; }
    .ds-breadcrumb__link span,
    .ds-breadcrumb__item--current span { display: none; }
    .ds-breadcrumb__link i,
    .ds-breadcrumb__item--current i    { font-size: .85rem; }
    .ds-cta-link__icon   { width: 46px; height: 46px; font-size: 1.1rem; }
    .ds-cta-link__label  { font-size: .62rem; }
    .ds-cta-final__title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    .ds-cta-final__actions { flex-direction: column; align-items: center; }
    .ds-cta-final__actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}


/* ══════════════════════════════════════════════════════════════
   §11 · IMPRESSION
══════════════════════════════════════════════════════════════ */

@media print {
    .ds-banner, .ds-cta-final, .back-to-top, .ds-section--map-full,
    nav, footer { display: none !important; }
    .ds-section { padding: 1rem 0 !important; }
    .ds-card, .ds-tip, .ds-compare { box-shadow: none !important; break-inside: avoid; }
    a { color: #000 !important; text-decoration: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   FIN outils/distances.css v1.0.0
════════════════════════════════════════════════════════════════════ */
