:root {
    --nuit: #050708;
    --carrosserie: #0c1113;
    --trait: #1c2529;
    --trait-clair: #56676b;
    --phare: #eef5f3;
    --brume: #93a3a0;
    --lumineux: #24beae;
    --lumineux-vif: #3ad3c1;
    --encre-lumineux: #04221e;
    --led: #c9fbf3;
    --halo: rgba(36, 190, 174, 0.55);
    --wrap: 1120px;
    --gutter: clamp(20px, 5vw, 48px);
    --header-h: 72px;
    --rayon: 22px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
    margin: 0;
    background: var(--nuit);
    color: var(--phare);
    font-family: 'Barlow', system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure, blockquote {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    font-weight: 600;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.3125rem;
    line-height: 1.25;
}

.nowrap {
    white-space: nowrap;
}

::selection {
    background: var(--lumineux);
    color: var(--encre-lumineux);
}

:focus-visible {
    outline: 3px solid var(--lumineux);
    outline-offset: 3px;
}

.wrap {
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-call {
    background: var(--lumineux);
    color: var(--encre-lumineux);
    box-shadow: 0 0 24px rgba(36, 190, 174, 0.35);
}

.btn-call:hover {
    background: var(--lumineux-vif);
    box-shadow: 0 0 36px rgba(36, 190, 174, 0.5);
}

.btn-ghost {
    border-color: var(--trait-clair);
    color: var(--phare);
}

.btn-ghost:hover {
    border-color: var(--lumineux);
}

.text-link {
    color: var(--lumineux);
    font-weight: 600;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.text-link:hover {
    color: var(--phare);
}

/* En-tête */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 7, 8, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--trait);
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-right: auto;
    color: var(--phare);
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    text-decoration: none;
}

.logo-km {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1;
}

.logo-sign {
    padding: 6px 10px 5px;
    border-radius: 9px 9px 4px 4px;
    background: var(--lumineux);
    color: var(--encre-lumineux);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.1em;
    box-shadow: 0 0 14px var(--halo);
}

.site-nav ul {
    display: flex;
    gap: 28px;
}

.site-nav a {
    color: var(--brume);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--phare);
}

.header-call {
    padding: 9px 16px;
    border-radius: 12px;
    background: var(--lumineux);
    color: var(--encre-lumineux);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.header-call:hover {
    background: var(--lumineux-vif);
}

.menu-toggle {
    display: none;
}

/* Accueil */
.hero {
    padding-block: clamp(16px, 3vh, 32px) clamp(48px, 7vh, 80px);
    text-align: center;
}

.hero-photo {
    position: relative;
    width: min(100%, 760px);
    width: clamp(min(100%, 460px), (100svh - var(--header-h) - 296px) * 1.19, min(100%, 880px));
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--rayon);
    background: var(--carrosserie);
}

.hero-img {
    width: 100%;
}

.sign-off {
    position: absolute;
    left: 32.6172%;
    top: 5.814%;
    width: 11.5234%;
    height: 28.1395%;
    opacity: 0;
    pointer-events: none;
}

.sign-glow {
    position: absolute;
    left: 38.72%;
    top: 9.19%;
    width: 30%;
    aspect-ratio: 1.7;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(58, 211, 193, 0.6), rgba(36, 190, 174, 0.24) 45%, rgba(36, 190, 174, 0.07) 72%, transparent);
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero h1 {
    margin-top: clamp(20px, 3vh, 32px);
    font-size: clamp(2rem, 1.45rem + 1.5vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.lead {
    max-width: 34em;
    margin: 12px auto 24px;
    color: var(--brume);
    font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Trajets */
.trajets,
.vehicule,
.avis {
    padding-block: clamp(64px, 8vw, 112px);
    border-top: 1px solid var(--trait);
}

.intro {
    max-width: 36em;
    margin-top: 12px;
    color: var(--brume);
}

.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(32px, 4vw, 48px);
}

.service {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 26px;
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
    background: var(--carrosserie);
}

.service-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--lumineux);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service h3 {
    margin-bottom: 6px;
}

.service p {
    color: var(--brume);
    font-size: 1.0625rem;
}

.service-medical {
    grid-column: 1 / -1;
    border-color: rgba(36, 190, 174, 0.4);
}

.service-medical p:last-child {
    max-width: 42em;
}

.service-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 6px;
}

.service-head h3 {
    margin-bottom: 0;
}

.service .badge {
    padding: 4px 10px 3px;
    border-radius: 8px 8px 4px 4px;
    background: var(--lumineux);
    color: var(--encre-lumineux);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

.destinations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.destinations img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--rayon);
    filter: saturate(0.7) brightness(0.86);
}

.destinations figure:first-child img {
    object-position: 28% 50%;
}

.destinations figure:nth-child(2) img {
    object-position: 30% 50%;
}

.destinations figcaption {
    margin-top: 10px;
    color: var(--brume);
    font-size: 0.9375rem;
}

/* Véhicule */
.vehicule-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.vehicule-photo {
    width: 100%;
    border-radius: var(--rayon);
}

.atouts {
    margin: clamp(20px, 3vw, 28px) 0 0;
}

.atouts div {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 4px 20px;
    padding-block: 16px;
    border-top: 1px solid var(--trait);
}

.atouts div:last-child {
    border-bottom: 1px solid var(--trait);
}

.atouts dt {
    color: var(--lumineux);
    font-weight: 600;
}

.atouts dd {
    margin: 0;
    color: var(--brume);
}

/* Avis */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin: clamp(32px, 4vw, 48px) 0 40px;
}

.review {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid var(--trait);
}

.stars {
    color: var(--lumineux);
    font-size: 1rem;
    letter-spacing: 4px;
}

.review blockquote p {
    max-width: 36em;
    font-size: 1.1875rem;
    line-height: 1.5;
}

.review figcaption {
    margin-top: auto;
    color: var(--brume);
    font-size: 1rem;
    font-weight: 600;
}

/* Réservation */
.finale {
    position: relative;
    padding-block: clamp(88px, 11vw, 150px);
    overflow: hidden;
    border-top: 1px solid var(--trait);
    text-align: center;
}

.finale::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 40% 34% at 50% 52%, rgba(36, 190, 174, 0.12), transparent 72%);
    pointer-events: none;
}

.finale .wrap {
    position: relative;
}

.finale-number {
    display: inline-block;
    margin: 14px 0 18px;
    color: var(--led);
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(2.75rem, 1.9rem + 3.2vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 0 3px rgba(36, 190, 174, 0.8), 0 0 18px rgba(36, 190, 174, 0.55), 0 0 48px rgba(36, 190, 174, 0.3);
}

.finale-number:hover {
    color: #ffffff;
}

.finale-text {
    max-width: 32em;
    margin: 0 auto 28px;
    color: var(--brume);
}

.finale-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 28px;
}

/* Pied de page */
.site-footer {
    padding-block: 28px;
    border-top: 1px solid var(--trait);
    color: var(--brume);
    font-size: 0.9375rem;
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 32px;
}

.site-footer a {
    color: var(--phare);
    text-underline-offset: 3px;
}

.callbar {
    display: none;
}

/* Le lumineux s'allume */
@media (prefers-reduced-motion: no-preference) {
    .sign-off {
        animation: extinction 1.2s linear 0.7s both;
    }

    .sign-glow {
        animation: allumage 1.2s linear 0.7s both;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@keyframes allumage {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    16% {
        opacity: 0.1;
    }
    30% {
        opacity: 1;
    }
    36% {
        opacity: 0.2;
    }
    52%,
    100% {
        opacity: 1;
    }
}

@keyframes extinction {
    0% {
        opacity: 1;
    }
    10% {
        opacity: 0;
    }
    16% {
        opacity: 0.9;
    }
    30% {
        opacity: 0;
    }
    36% {
        opacity: 0.8;
    }
    52%,
    100% {
        opacity: 0;
    }
}

/* Tablette */
@media (max-width: 1023px) {
    .services {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Tablette et mobile */
@media (max-width: 879px) {
    :root {
        --header-h: 64px;
    }

    .header-call,
    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 18px;
        border: 1px solid var(--trait-clair);
        border-radius: 12px;
        background: transparent;
        color: var(--phare);
        font: inherit;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
    }

    .site-nav.is-open {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: block;
        padding: 4px var(--gutter) 20px;
        background: var(--carrosserie);
        border-bottom: 1px solid var(--trait);
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--trait);
        color: var(--phare);
        font-size: 1.25rem;
    }

    .vehicule-grid,
    .reviews {
        grid-template-columns: minmax(0, 1fr);
    }

    .reviews {
        gap: 28px;
    }

    .callbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        gap: 8px;
        padding: 10px 12px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        background: rgba(5, 7, 8, 0.92);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--trait);
    }

    .callbar.is-hidden {
        transform: translateY(100%);
        visibility: hidden;
    }

    .callbar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 52px;
        border-radius: 12px;
        font-size: 1.0625rem;
        font-weight: 600;
        text-decoration: none;
    }

    .callbar svg {
        width: 20px;
        height: 20px;
    }

    .callbar-call {
        background: var(--lumineux);
        color: var(--encre-lumineux);
        box-shadow: 0 0 22px rgba(36, 190, 174, 0.35);
    }

    .callbar-wa {
        border: 1px solid var(--trait-clair);
        color: var(--phare);
    }

    body {
        padding-bottom: 76px;
    }
}

/* Mobile */
@media (max-width: 599px) {
    .hero {
        padding-top: 0;
    }

    .hero-photo {
        width: auto;
        margin-inline: calc(-1 * var(--gutter));
        border-radius: 0;
    }

    .actions .btn {
        flex: 1 1 100%;
    }

    .service {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 22px;
    }

    .atouts div {
        grid-template-columns: minmax(0, 1fr);
    }

    .destinations {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 76%;
        margin-inline: calc(-1 * var(--gutter));
        padding-inline: var(--gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    .destinations figure {
        scroll-snap-align: start;
    }
}

@media (max-width: 879px) and (prefers-reduced-motion: no-preference) {
    .callbar {
        transition: transform 0.3s ease, visibility 0.3s;
    }
}