/* Inter : la police du logo (Bold pour « EBSIA », Regular pour « Express ») */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* --- Palette Ebsia Express --- */
    --couleur-primaire: 7 31 217;             /* #071FD9 - bleu du logo */
    --couleur-primaire-hover: 5 22 160;       /* #0516A0 - bleu du logo assombri */
    --couleur-primaire-clair: 232 236 254;    /* #E8ECFE - bleu très clair */

    /* Bleu nuit : fonds sombres, header, footer */
    --couleur-encre: 9 22 46;                 /* #09162E */
    --couleur-encre-2: 15 33 66;              /* #0F2142 */

    /* Jaune signalisation (marquage piste, sangles, gilets) */
    --couleur-accent: 255 196 0;              /* #FFC400 */
    --couleur-accent-hover: 236 174 0;        /* #ECAE00 */
    --couleur-accent-clair: 255 244 204;      /* #FFF4CC */

    --couleur-secondaire: 74 88 120;          /* #4A5878 - gris acier */
    --couleur-secondaire-hover: 52 64 92;     /* #34405C */
    --couleur-secondaire-clair: 220 227 239;  /* #DCE3EF */

    --papier: #f4f6fa;                        /* fond neutre bleuté */
    --trait: #dce3ef;                         /* filets, bordures */
}

html {
    scroll-behavior: smooth;
    /* Les ancres (#faq, #zones…) ne passent pas sous le header collant */
    scroll-padding-top: 88px;
}

/* Réserve la hauteur du header avant son injection en JavaScript : sans cela, le contenu
   glisse sous le header une fois chargé (position de défilement restaurée sur mobile). */
#header-placeholder {
    display: block;
    height: 73px;
    background: #ffffff;
    border-bottom: 1px solid var(--trait);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #0b1730;
    font-size: 1rem;
    font-feature-settings: "cv11" 1;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgb(var(--couleur-accent));
    color: rgb(var(--couleur-encre));
}

/* Titres : Inter Bold, comme « EBSIA » dans le logo */
.font-display {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.025em;
    font-feature-settings: "kern" 1;
}

/* Chiffres alignés (SIRET, numéros d'étape, mesures) */
.font-mono {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-variant-numeric: tabular-nums;
}

/* --- Étiquette de section : ■ 01 — FRET AÉRIEN --- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--couleur-primaire));
}

.eyebrow::before {
    content: '';
    width: 20px;
    height: 3px;
    background: rgb(var(--couleur-accent));
    flex-shrink: 0;
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.78);
}

/* --- Header --- */
.site-header {
    background: #ffffff;
    color: rgb(var(--couleur-encre));
}

.nav-link {
    position: relative;
    color: #33415e;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 150ms ease;
}

.nav-link:hover {
    color: rgb(var(--couleur-primaire));
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: rgb(var(--couleur-primaire));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* --- Boutons --- */
.btn-accent,
.btn-primary,
.btn-outline-light,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.btn-accent .fa-arrow-right,
.btn-primary .fa-arrow-right,
.btn-outline-light .fa-arrow-right,
.btn-ghost .fa-arrow-right {
    transition: transform 180ms ease;
}

.btn-accent:hover .fa-arrow-right,
.btn-primary:hover .fa-arrow-right,
.btn-outline-light:hover .fa-arrow-right,
.btn-ghost:hover .fa-arrow-right {
    transform: translateX(4px);
}

.btn-accent {
    background: rgb(var(--couleur-accent));
    color: rgb(var(--couleur-encre));
}

.btn-accent:hover {
    background: rgb(var(--couleur-accent-hover));
}

.btn-primary {
    background: rgb(var(--couleur-primaire));
    color: #ffffff;
}

.btn-primary:hover {
    background: rgb(var(--couleur-primaire-hover));
}

.btn-outline-light {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-ghost {
    color: rgb(var(--couleur-encre));
    border: 1px solid rgb(var(--couleur-encre) / 0.22);
}

.btn-ghost:hover {
    border-color: rgb(var(--couleur-encre));
}

/* --- Hero photo --- */
.hero {
    position: relative;
    overflow: hidden;
    background: rgb(var(--couleur-encre));
    color: #ffffff;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgb(var(--couleur-encre) / 0.95) 0%, rgb(var(--couleur-encre) / 0.86) 45%, rgb(var(--couleur-encre) / 0.45) 100%),
        linear-gradient(0deg, rgb(var(--couleur-encre) / 0.9) 0%, transparent 40%);
}

.hero-compact::before {
    background:
        linear-gradient(90deg, rgb(var(--couleur-encre) / 0.95) 0%, rgb(var(--couleur-encre) / 0.82) 50%, rgb(var(--couleur-encre) / 0.5) 100%);
}

/* --- Panneau d'accès rapide aux services (hero) --- */
.board {
    background: #ffffff;
    color: rgb(var(--couleur-encre));
    border-radius: 8px;
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.55);
    overflow: hidden;
}

.board-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 16px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1px solid var(--trait);
}

.board-head span + span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #5b6884;
}

.board-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 15px 22px;
    border-bottom: 1px solid var(--trait);
    color: #4a5878;
    font-size: 0.92rem;
    line-height: 1.35;
    transition: background 150ms ease;
}

.board-row:last-child {
    border-bottom: none;
}

a.board-row:hover {
    background: var(--papier);
}

.board-row strong {
    display: block;
    color: rgb(var(--couleur-encre));
    font-size: 1rem;
    font-weight: 700;
}

.board-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: rgb(var(--couleur-primaire-clair));
    color: rgb(var(--couleur-primaire));
    font-size: 17px;
}

.board-row .fa-arrow-right {
    color: rgb(var(--couleur-primaire) / 0.5);
    transition: transform 150ms ease, color 150ms ease;
}

a.board-row:hover .fa-arrow-right {
    transform: translateX(3px);
    color: rgb(var(--couleur-primaire));
}

/* Code court (Incoterm, type d'opération) */
.board-code {
    display: inline-flex;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgb(var(--couleur-primaire) / 0.25);
    background: rgb(var(--couleur-primaire-clair));
    color: rgb(var(--couleur-primaire));
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

/* --- Bandeau de réassurance (sous le hero) --- */
.trust-band {
    background: #ffffff;
    border-bottom: 1px solid var(--trait);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 0;
    font-weight: 600;
    color: rgb(var(--couleur-encre));
    line-height: 1.3;
}

.trust-item i {
    color: rgb(var(--couleur-primaire));
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.trust-item small {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #5b6884;
}

/* --- Sections --- */
.section-paper {
    background: var(--papier);
}

.section-ink {
    position: relative;
    background-color: rgb(var(--couleur-encre));
    color: #e9eef8;
    isolation: isolate;
}

.ribbed {
    position: relative;
    isolation: isolate;
}

.section-cobalt {
    position: relative;
    background: rgb(var(--couleur-primaire));
    color: #ffffff;
    isolation: isolate;
}

/* --- Cartes modes de transport --- */
.mode-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--trait);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.mode-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: rgb(var(--couleur-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 260ms ease;
}

.mode-card:hover {
    border-color: rgb(var(--couleur-primaire) / 0.4);
    box-shadow: 0 24px 50px -30px rgb(var(--couleur-encre) / 0.45);
}

.mode-card:hover::after {
    transform: scaleX(1);
}

.mode-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgb(var(--couleur-encre));
}

.mode-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.mode-card:hover .mode-card-media img {
    transform: scale(1.04);
}

.mode-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgb(var(--couleur-encre));
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mode-tag b {
    color: rgb(var(--couleur-accent));
    font-weight: 600;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: rgb(var(--couleur-primaire));
}

.link-arrow .fa-arrow-right {
    transition: transform 180ms ease;
}

.link-arrow:hover .fa-arrow-right,
.mode-card:hover .link-arrow .fa-arrow-right {
    transform: translateX(4px);
}

/* --- Étapes (timeline) --- */
.steps {
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 30px;
    border-top: 1px solid var(--trait);
}

.step::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    width: 11px;
    height: 11px;
    background: rgb(var(--couleur-accent));
    box-shadow: 0 0 0 4px #ffffff;
}

.section-paper .step::before {
    box-shadow: 0 0 0 4px var(--papier);
}

.section-ink .step {
    border-top-color: rgba(255, 255, 255, 0.16);
}

.section-ink .step::before {
    box-shadow: 0 0 0 4px rgb(var(--couleur-encre));
}

.step-label {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(var(--couleur-primaire));
}

.section-ink .step-label {
    color: rgb(var(--couleur-accent));
}

/* --- Liste à puces carrées --- */
.square-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.square-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background: rgb(var(--couleur-accent));
}

.square-list-blue li::before {
    background: rgb(var(--couleur-primaire));
}

/* --- Fiche technique (définitions) --- */
.spec {
    border-top: 1px solid var(--trait);
}

.spec > div {
    display: grid;
    grid-template-columns: minmax(120px, 34%) 1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--trait);
}

.spec dt {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgb(var(--couleur-primaire));
}

.spec dd {
    color: #33415e;
}

@media (max-width: 640px) {
    .spec > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* --- Tableau comparatif --- */
.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.compare th,
.compare td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--trait);
}

.compare thead th {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgb(var(--couleur-encre));
    border-bottom: none;
}

.compare thead th:first-child {
    color: rgb(var(--couleur-accent));
}

.compare tbody th {
    font-weight: 600;
    color: rgb(var(--couleur-encre));
    width: 26%;
    background: #ffffff;
}

.compare tbody td {
    color: #33415e;
    background: #ffffff;
}

/* --- Carte info / encart --- */
.panel {
    background: #ffffff;
    border: 1px solid var(--trait);
    border-radius: 6px;
    padding: 28px;
}

.panel-ink {
    background: rgb(var(--couleur-encre));
    color: #e9eef8;
    border-color: transparent;
}

.note {
    position: relative;
    padding: 18px 22px 18px 26px;
    background: rgb(var(--couleur-accent-clair));
    border-left: 4px solid rgb(var(--couleur-accent));
    color: #3b3320;
    border-radius: 0 6px 6px 0;
}

.icon-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: rgb(var(--couleur-primaire-clair));
    color: rgb(var(--couleur-primaire));
    font-size: 19px;
    flex-shrink: 0;
}

.section-ink .icon-square,
.panel-ink .icon-square {
    background: rgba(255, 255, 255, 0.08);
    color: rgb(var(--couleur-accent));
}

/* --- Image cadrée --- */
.frame {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: rgb(var(--couleur-encre));
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgb(var(--couleur-encre));
    color: rgba(255, 255, 255, 0.86);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.frame-caption::before {
    content: '';
    width: 7px;
    height: 7px;
    background: rgb(var(--couleur-accent));
}

/* --- Carte des zones couvertes --- */
.zone-map-frame {
    position: relative;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #0b1d3b;
    overflow: hidden;
}

.zone-map {
    display: block;
}

.zone-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.zone-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.legend-line {
    display: inline-block;
    width: 26px;
    height: 0;
    border-top: 2px solid #ffc400;
}

.legend-line.sea { border-top: 2px dashed #8fb0ff; }
.legend-line.road { border-top: 2px dotted rgba(255, 255, 255, 0.7); }
.legend-line.europe { border-top-color: rgba(255, 255, 255, 0.5); border-top-width: 1px; }

.legend-dot {
    display: inline-block;
    width: 14px;
    height: 10px;
    border-radius: 2px;
    background: #071FD9;
    box-shadow: inset 0 0 0 1px #6f8fe0;
}

.map-filter {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.map-filter:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.map-filter[aria-pressed="true"] {
    background: rgb(var(--couleur-accent));
    border-color: rgb(var(--couleur-accent));
    color: rgb(var(--couleur-encre));
}

.map-route {
    fill: none;
    stroke-linecap: round;
}

.map-route.air {
    stroke: rgb(255 196 0 / 0.8);
    stroke-width: 1.4;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.zone-map.is-visible .map-route.air {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.45, 0, 0.2, 1) var(--d, 0s);
}

.map-route.sea {
    stroke: #8fb0ff;
    stroke-width: 1.6;
    stroke-dasharray: 5 6;
    opacity: 0;
    transition: opacity 1s ease 0.4s;
    animation: map-flow 2.4s linear infinite;
}

.map-route.road {
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 1.3;
    stroke-dasharray: 1.5 4;
    opacity: 0;
    transition: opacity 1s ease 1.2s;
}

.map-route.europe {
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 1;
    opacity: 0;
    transition: opacity 1s ease 0.8s;
}

.zone-map.is-visible .map-route.sea { opacity: 0.85; }
.zone-map.is-visible .map-route.road,
.zone-map.is-visible .map-route.europe { opacity: 1; }

.map-node {
    fill: #ffffff;
    stroke: #071FD9;
    stroke-width: 2;
    cursor: help;
}

.map-node.europe {
    fill: #c9d6f5;
    stroke: none;
}

.map-vehicle {
    opacity: 0;
    transition: opacity 0.6s ease 1.6s;
}

.map-vehicle.air { fill: #ffc400; }
.map-vehicle.sea { fill: #c4d4ff; }

.zone-map.is-visible .map-vehicle { opacity: 1; }

.map-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    fill: #ffffff;
    paint-order: stroke;
    stroke: #0b1d3b;
    stroke-width: 3px;
    stroke-linejoin: round;
    pointer-events: none;
}

.map-label-hub {
    font-size: 15px;
    font-weight: 700;
    fill: #ffc400;
}

.map-pulse {
    fill: none;
    stroke: #ffc400;
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: map-pulse 2.6s ease-out infinite;
}

/* Filtres par zone : les autres liaisons s'estompent */
.zone-map [data-zone] {
    transition: opacity 300ms ease;
}

.zone-map[data-filter="chine"] [data-zone]:not([data-zone~="chine"]),
.zone-map[data-filter="afrique"] [data-zone]:not([data-zone~="afrique"]),
.zone-map[data-filter="europe"] [data-zone]:not([data-zone~="europe"]) {
    opacity: 0.1;
}

@keyframes map-flow {
    to { stroke-dashoffset: -22; }
}

@keyframes map-pulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(2.6); opacity: 0; }
}

@media (max-width: 640px) {
    .map-label:not(.map-label-hub) {
        display: none;
    }

    .zone-map-legend {
        font-size: 0.82rem;
    }
}

/* --- FAQ --- */
details.faq-item {
    border-bottom: 1px solid var(--trait);
    padding: 22px 0;
}

details.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1.12rem;
    color: rgb(var(--couleur-encre));
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--trait);
    border-radius: 4px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    color: rgb(var(--couleur-primaire));
    transition: background 150ms ease, color 150ms ease, transform 200ms ease;
}

details.faq-item[open] summary::after {
    content: '−';
    background: rgb(var(--couleur-accent));
    border-color: rgb(var(--couleur-accent));
    color: rgb(var(--couleur-encre));
}

details.faq-item > *:not(summary) {
    margin-top: 14px;
    color: #3d4a66;
    line-height: 1.7;
    max-width: 62rem;
}

/* --- Fil d'Ariane --- */
.breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a:hover {
    color: #ffffff;
}

/* --- Formulaire --- */
.field-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #33415e;
    margin-bottom: 6px;
}

.field {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cfd8e8;
    border-radius: 4px;
    background: #ffffff;
    color: #0b1730;
    font-size: 0.95rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field:focus {
    outline: none;
    border-color: rgb(var(--couleur-primaire));
    box-shadow: 0 0 0 3px rgb(var(--couleur-primaire) / 0.15);
}

.field::placeholder {
    color: #94a0b8;
}

select.field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23071FD9' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid #cfd8e8;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.92rem;
    color: #33415e;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.choice span i {
    color: rgb(var(--couleur-primaire));
    width: 18px;
    text-align: center;
}

.choice input:checked + span {
    border-color: rgb(var(--couleur-primaire));
    background: rgb(var(--couleur-primaire-clair));
    color: rgb(var(--couleur-encre));
}

.choice input:focus-visible + span {
    box-shadow: 0 0 0 3px rgb(var(--couleur-primaire) / 0.2);
}

/* --- Menu « Services » : masqué en CSS natif (évite le flash au chargement Tailwind / injection header) --- */
.nav-dropdown-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown button i {
    transition: transform 160ms ease;
}

.nav-dropdown.is-open button i {
    transform: rotate(180deg);
}

/* --- Erreurs de formulaire --- */
.field[aria-invalid="true"] {
    border-color: rgb(185 28 28);
    box-shadow: 0 0 0 3px rgb(185 28 28 / 12%);
}

.field-error {
    min-height: 1.15rem;
    margin-top: 0.35rem;
    color: rgb(185 28 28);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
}

#form-status:empty {
    display: none;
}

/* --- Bouton WhatsApp --- */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 4px;
    background: #25d366;
    color: #06301a;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: background-color 150ms ease;
}

.btn-whatsapp:hover {
    background: #1ebe57;
}

.mobile-whatsapp-fab {
    display: none;
}

@media (max-width: 1023px) {
    .mobile-whatsapp-fab {
        position: fixed;
        right: max(1rem, env(safe-area-inset-right, 0px));
        bottom: max(1rem, env(safe-area-inset-bottom, 0px));
        z-index: 45;
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        min-height: 3.25rem;
        padding: 0.75rem 1rem 0.75rem 0.85rem;
        border-radius: 999px;
        background: #25d366;
        color: #fff;
        font-size: 0.92rem;
        font-weight: 700;
        line-height: 1;
        box-shadow: 0 14px 34px -12px rgb(0 0 0 / 45%);
        transition: transform 180ms ease, background-color 180ms ease;
    }

    .mobile-whatsapp-fab i {
        font-size: 1.45rem;
    }

    .mobile-whatsapp-fab:hover,
    .mobile-whatsapp-fab:focus-visible {
        background: #1ebe57;
        transform: translateY(-2px);
    }

    body:has(#cookie-consent) .mobile-whatsapp-fab,
    body.mobile-menu-open .mobile-whatsapp-fab {
        display: none;
    }
}

/* --- Accessibilité / mouvement réduit --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .map-route,
    .map-pulse {
        animation: none;
    }

    .map-vehicle {
        display: none;
    }
}

/* --- Barre de défilement --- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #eef1f7;
}

::-webkit-scrollbar-thumb {
    background: rgb(var(--couleur-primaire) / 0.45);
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--couleur-primaire));
}
