/* =============================================================================
   VTC France — Feuille de style unique
   Design 2026 : clair, premium, éditorial. Sur mobile : sensation d'application
   native (barre d'onglets, feuille modale, transitions ressort, cartes fluides).
   ========================================================================== */

:root {
    /* -- Couleurs ------------------------------------------------------------ */
    --bg:            #F5F7FA;
    --bg-soft:       #F5F7FA;
    --surface:       #FFFFFF;
    --white:         #FFFFFF;
    --surface-2:     #FBFCFE;

    --text:          #0E1626;
    --text-2:        #5A6577;
    --text-3:        #8A94A6;
    --border:        #E7EBF1;
    --border-2:      #DDE3EC;

    --blue:          #2F6BFF;
    --blue-dark:     #1E50DD;
    --blue-light:    #EAF1FF;
    --blue-glow:     rgba(47, 107, 255, .28);

    --mint:          #E7Faf3;
    --green:         #0E7C5A;
    --amber:         #A55F00;
    --ink:           #0B1220;

    /* -- Rayons ------------------------------------------------------------- */
    --radius-xs:  9px;
    --radius-sm:  13px;
    --radius:     17px;
    --radius-lg:  22px;
    --radius-xl:  30px;
    --radius-2xl: 38px;

    /* -- Ombres (froides, feuilletées) ----------------------------------- */
    --shadow-xs: 0 1px 2px rgba(14,22,38,.05);
    --shadow-sm: 0 1px 3px rgba(14,22,38,.05), 0 1px 2px rgba(14,22,38,.04);
    --shadow:    0 4px 20px -6px rgba(14,22,38,.14), 0 2px 8px -3px rgba(14,22,38,.07);
    --shadow-lg: 0 28px 64px -18px rgba(14,22,38,.26), 0 10px 24px -12px rgba(14,22,38,.12);
    --shadow-blue: 0 12px 30px -8px var(--blue-glow);

    --maxw: 1160px;
    --header-h: 68px;
    --tab-h: 62px;

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            Helvetica, Arial, "Apple Color Emoji", sans-serif;

    --ease:        cubic-bezier(.4, 0, .2, 1);
    --spring:      cubic-bezier(.32, .72, 0, 1);
    --spring-soft: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---- Reset léger --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    letter-spacing: -.011em;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip; /* évite le débordement horizontal des carrousels sans casser sticky/fixed */
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
    line-height: 1.15;
    font-weight: 720;
    letter-spacing: -.028em;
    text-wrap: balance;
}
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
::selection { background: var(--blue); color: #fff; }

/* ---- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section--tight { padding: 46px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.2rem); }
.section-head p { color: var(--text-2); margin-top: 10px; font-size: 1.05rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .74rem; font-weight: 650; letter-spacing: .09em;
    text-transform: uppercase; color: var(--blue);
    background: var(--blue-light);
    padding: 6px 13px; border-radius: 999px; margin-bottom: 15px;
    border: 1px solid rgba(47,107,255,.12);
}
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.muted { color: var(--text-2); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; }
.mb-2 { margin-bottom: 24px; }

/* ---- Boutons ---------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px;
    font-weight: 620; font-size: .96rem; line-height: 1;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .14s var(--spring), box-shadow .25s var(--ease),
                background .2s var(--ease), border-color .2s var(--ease), filter .2s;
    text-decoration: none; white-space: nowrap;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.965); }
.btn--primary {
    background: linear-gradient(180deg, #3d76ff, var(--blue));
    color: #fff; box-shadow: var(--shadow-blue);
}
.btn--primary:hover { filter: brightness(1.05); box-shadow: 0 16px 36px -8px var(--blue-glow); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); box-shadow: var(--shadow-xs); }
.btn--ghost:hover { border-color: #c7d0de; box-shadow: var(--shadow-sm); }
.btn--mint { background: var(--mint); color: var(--green); }
.btn--mint:hover { background: #d8f6ec; }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--sm { padding: 9px 16px; font-size: .86rem; }

/* ---- Cartes ---------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.card--hover { transition: transform .28s var(--spring), box-shadow .3s var(--ease), border-color .2s; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-2); }
.card--hover:active { transform: translateY(-1px) scale(.995); }

/* ---- Header --------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(255,255,255,.86);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px -18px rgba(14,22,38,.28);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em;
         color: var(--text); font-size: 1.12rem; }
.brand:hover { text-decoration: none; }
.brand__mark {
    width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(140deg, #4c81ff, var(--blue) 60%, #1f4fd8);
    color: #fff; font-weight: 800;
    box-shadow: 0 6px 16px -3px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.35);
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a.nav__link {
    color: var(--text-2); font-weight: 520; padding: 8px 14px; border-radius: 999px;
    transition: color .15s, background .15s;
}
.nav a.nav__link:hover { color: var(--text); background: rgba(14,22,38,.04); text-decoration: none; }
.nav a.nav__link.is-active { color: var(--text); background: rgba(14,22,38,.05); }
.nav__sep { width: 1px; height: 22px; background: var(--border); margin: 0 8px; }
.nav__cta { margin-left: 6px; }
.nav-toggle {
    display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--border-2);
    width: 42px; height: 42px; border-radius: 13px; align-items: center; justify-content: center;
    box-shadow: var(--shadow-xs); -webkit-tap-highlight-color: transparent;
    transition: transform .14s var(--spring);
}
.nav-toggle:active { transform: scale(.92); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform .25s var(--spring), opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(6px); }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: rotate(45deg); }
body.menu-open .nav-toggle span::after  { transform: rotate(-45deg); }

/* Voile derrière la feuille modale (mobile) */
.nav-backdrop {
    position: fixed; inset: 0; z-index: 58;
    background: rgba(11,18,32,.42);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease);
}
body.menu-open .nav-backdrop { opacity: 1; pointer-events: auto; }

/* ---- Barre d'onglets mobile (app shell) -------------------------------- */
.mobile-tabbar { display: none; }
.mobile-tabbar__inner {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    align-items: center;
}
.mobile-tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 8px 4px; color: var(--text-3); font-size: .66rem; font-weight: 600;
    letter-spacing: -.01em; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .18s var(--ease), transform .14s var(--spring);
}
.mobile-tabbar a svg { width: 23px; height: 23px; stroke-width: 1.9; transition: transform .2s var(--spring); }
.mobile-tabbar a:active { transform: scale(.9); }
.mobile-tabbar a.is-active { color: var(--blue); }
.mobile-tabbar a.is-active svg { transform: translateY(-1px) scale(1.06); }
.mobile-tabbar a.tab-accent {
    color: #fff;
}
.mobile-tabbar a.tab-accent .tab-accent__dot {
    width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(150deg, #4c81ff, var(--blue));
    box-shadow: 0 8px 18px -5px var(--blue-glow); margin-top: -14px;
    border: 3px solid var(--surface);
}
.mobile-tabbar a.tab-accent .tab-accent__dot svg { width: 20px; height: 20px; stroke: #fff; }

/* ---- Footer ------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 0 34px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3);
                  font-weight: 720; margin-bottom: 14px; }
.site-footer ul li { margin: 9px 0; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
                 border-top: 1px solid var(--border); margin-top: 44px; padding-top: 24px;
                 color: var(--text-3); font-size: .88rem; }

/* ---- Hero -------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 66px; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: -45% 25% auto -12%; height: 680px; z-index: -1;
    background: radial-gradient(closest-side, rgba(47,107,255,.16), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; inset: auto -18% -55% 38%; height: 640px; z-index: -1;
    background: radial-gradient(closest-side, rgba(14,124,90,.10), transparent 70%);
    pointer-events: none;
}
.hero__inner { position: relative; max-width: 860px; }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 4vw, 3.6rem); letter-spacing: -.038em; line-height: 1.06; }
.hero__lead { font-size: clamp(1.02rem, .95rem + .6vw, 1.22rem); color: var(--text-2); margin-top: 18px; max-width: 560px; }

/* ---- Barre de recherche --------------------------------------- */
.searchbar {
    margin-top: 36px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 14px; box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end;
}
.searchbar--compact { grid-template-columns: 2fr 1fr 1fr auto; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: .76rem; font-weight: 640; color: var(--text-2); padding-left: 4px; }
.field input, .field select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-xs);
    background: var(--surface-2); font-size: 16px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus {
    outline: none; border-color: var(--blue); background: var(--surface);
    box-shadow: 0 0 0 4px var(--blue-light);
}
.searchbar .btn { height: 46px; border-radius: var(--radius-sm); }

/* ---- Stats --------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
        padding: 22px; box-shadow: var(--shadow-xs); transition: transform .28s var(--spring), box-shadow .3s; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.stat__num { font-size: 2rem; font-weight: 800; letter-spacing: -.035em;
             background: linear-gradient(180deg, var(--text), #33405a); -webkit-background-clip: text; background-clip: text; }
.stat__label { color: var(--text-2); font-size: .92rem; margin-top: 2px; }

/* ---- Carte VTC --------------------------------------------- */
.vcard { display: flex; flex-direction: column; gap: 14px; }
.vcard__top { display: flex; gap: 14px; align-items: center; }
.vcard__head { min-width: 0; }
.vcard__name { font-size: 1.08rem; }
.vcard__name a { color: var(--text); }
.vcard__name a:hover { color: var(--blue); text-decoration: none; }
.vcard__loc { color: var(--text-2); font-size: .9rem; }
.vcard__loc .dot { margin: 0 6px; }
.vcard__badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vcard__desc { color: var(--text-2); font-size: .94rem; }
.vcard__cta { margin-top: auto; }

.logo {
    width: 56px; height: 56px; border-radius: 15px; object-fit: cover;
    border: 1px solid var(--border); background: var(--surface); flex: none;
}
.logo--mono { display: grid; place-items: center; font-weight: 800; color: var(--blue);
              background: var(--blue-light); border-color: transparent; letter-spacing: 0; }
.logo--lg { width: 84px; height: 84px; border-radius: 22px; font-size: 1.6rem; }

/* ---- Badges ---------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .76rem; font-weight: 640; padding: 4px 10px; border-radius: 999px;
    background: var(--bg); color: var(--text-2); border: 1px solid var(--border);
}
.badge--premium { background: linear-gradient(135deg, #fff3d6, #ffe6b3); color: var(--amber); border-color: #f3d79c; }
.badge--verified { background: var(--mint); color: var(--green); border-color: #bfe9dc; }
.badge--rating { background: var(--surface); }
.badge__num { font-weight: 720; color: var(--text); }
.badge__count { color: var(--text-2); font-weight: 500; }

.stars { display: inline-flex; letter-spacing: 1px; }
.star { color: #d8deea; font-size: .9rem; }
.star--full { color: #f5b301; }
.star--half { position: relative; color: #d8deea; }
.star--half::before { content: "★"; position: absolute; left: 0; width: 50%; overflow: hidden; color: #f5b301; }

/* ---- Chips (villes / services) — carrousel fluide sur mobile ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 17px; border-radius: 999px; background: var(--surface);
    border: 1px solid var(--border); color: var(--text); font-weight: 520; font-size: .92rem;
    box-shadow: var(--shadow-xs);
    transition: border-color .15s, box-shadow .15s, transform .15s var(--spring), background .15s;
    -webkit-tap-highlight-color: transparent;
}
.chip:hover { text-decoration: none; border-color: #cbd4e3; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.chip:active { transform: scale(.96); }
.chip__count { color: var(--text-2); font-size: .82rem; }
.chip.is-active { background: var(--blue-light); border-color: #c3d5ff; color: var(--blue); }

/* ---- CTA pro ------------------------------------------ */
.cta-pro {
    background: linear-gradient(135deg, #0c1a3f, #22346d);
    color: #fff; border-radius: var(--radius-2xl); padding: 60px; text-align: center;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden; isolation: isolate;
}
.cta-pro::before {
    content: ""; position: absolute; inset: -60% 40% auto -10%; height: 440px; z-index: -1;
    background: radial-gradient(closest-side, rgba(111,151,255,.4), transparent 70%);
}
.cta-pro::after {
    content: ""; position: absolute; inset: auto -20% -70% 30%; height: 440px; z-index: -1;
    background: radial-gradient(closest-side, rgba(14,124,90,.32), transparent 70%);
}
.cta-pro h2 { position: relative; font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.35rem); }
.cta-pro p { position: relative; color: #c4d0ef; margin: 14px auto 26px; max-width: 520px; }
.cta-pro .btn { position: relative; }
.cta-pro .btn--primary { background: #fff; color: var(--ink); box-shadow: 0 14px 34px -10px rgba(0,0,0,.5); }
.cta-pro .btn--primary:hover { filter: none; background: #f2f5ff; }

/* ---- Page annuaire : layout filtres ---------------- */
.directory { display: grid; grid-template-columns: 288px 1fr; gap: 28px; align-items: start; }
.filters {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 16px);
}
.filters h3 { font-size: 1rem; margin-bottom: 4px; }
.filter-group { border-top: 1px solid var(--border); padding: 16px 0; }
.filter-group:first-of-type { border-top: none; }
.filter-group > legend, .filter-group > .fg-title {
    font-weight: 640; font-size: .9rem; margin-bottom: 10px; padding: 0;
}
.check { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: .92rem; color: var(--text-2);
         cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); flex: none; }
.check:hover { color: var(--text); }
.filters .btn { margin-top: 8px; }

.results-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
                margin-bottom: 18px; }
.results-head .count { font-weight: 720; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-weight: 640; font-size: .9rem; padding: 0 10px;
    transition: border-color .15s, color .15s, transform .12s var(--spring);
}
.pagination a:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.pagination a:active { transform: scale(.94); }
.pagination .is-current { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .is-disabled { opacity: .4; }

.empty-state { text-align: center; padding: 64px 20px; color: var(--text-2); }
.empty-state .big { font-size: 2.4rem; margin-bottom: 10px; }

/* Barre de filtres mobile */
.filters-bar { display: none; }

/* ---- Fiche VTC publique ------------------------------ */
.profile-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
                padding: 32px; box-shadow: var(--shadow-sm); }
.profile-hero__row { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.profile-hero__main { min-width: 0; flex: 1; }
.profile-hero h1 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem); }
.profile-hero__loc { color: var(--text-2); margin-top: 6px; }
.profile-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.profile-hero__actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }

.profile-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 28px; align-items: start; }
.prose h2 { font-size: 1.3rem; margin: 30px 0 12px; letter-spacing: -.02em; }
.prose p { color: var(--text); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
         padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.panel h3 { font-size: 1.05rem; margin-bottom: 14px; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--blue-light); color: var(--blue); border-radius: 999px; padding: 6px 13px;
       font-size: .86rem; font-weight: 520; }
.tag--mint { background: var(--mint); color: var(--green); }

.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list a, .contact-list span { color: var(--text); display: flex; gap: 10px; align-items: center; word-break: break-word; }
.contact-list .ico { width: 20px; text-align: center; color: var(--text-2); flex: none; }

.social-row { display: flex; gap: 10px; }
.social-row a {
    width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--border);
    display: grid; place-items: center; color: var(--text-2); background: var(--surface);
    transition: color .15s, border-color .15s, transform .14s var(--spring);
}
.social-row a:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.social-row a:active { transform: scale(.92); }

.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img { border-radius: var(--radius-sm); border: 1px solid var(--border); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.review { border-top: 1px solid var(--border); padding: 16px 0; }
.review:first-child { border-top: none; }
.review__head { display: flex; justify-content: space-between; gap: 10px; }
.review__author { font-weight: 640; }
.review__date { color: var(--text-2); font-size: .84rem; }

/* ---- Auth & Dashboard --------------------------------- */
.auth-wrap { max-width: 440px; margin: 64px auto; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
             padding: 38px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; }
.auth-card p.sub { color: var(--text-2); margin: 6px 0 22px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-weight: 640; font-size: .9rem; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-xs);
    background: var(--surface-2); font-size: 16px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none; border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 4px var(--blue-light);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row .hint { color: var(--text-2); font-size: .82rem; }
.form-row--recaptcha { align-items: flex-start; }
.form-row--recaptcha .g-recaptcha { max-width: 100%; overflow: hidden; }
@media (max-width: 360px) {
    .form-row--recaptcha .g-recaptcha { transform: scale(.86); transform-origin: 0 0; height: 66px; }
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--text-2); font-size: .92rem; }

.dash { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.dash-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
            padding: 14px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 16px); }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px;
              color: var(--text-2); font-weight: 520; transition: background .15s, color .15s; }
.dash-nav a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.dash-nav a.is-active { background: var(--blue-light); color: var(--blue); }
.dash-main { min-width: 0; }
.dash-head { margin-bottom: 24px; }
.dash-head h1 { font-size: 1.6rem; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }

.alert { border-radius: var(--radius-sm); padding: 13px 16px; font-size: .92rem; margin-bottom: 16px; border: 1px solid; }
.alert--success { background: var(--mint); border-color: #bfe9dc; color: var(--green); }
.alert--error { background: #fff1f0; border-color: #ffd7d2; color: #b42318; }
.alert--info { background: var(--blue-light); border-color: #d6e2ff; color: var(--blue-dark); }

.flash-stack { position: fixed; top: calc(var(--header-h) + 14px); right: 20px; z-index: 90; display: flex; flex-direction: column;
               gap: 10px; max-width: 360px; }
.flash-stack .alert { box-shadow: var(--shadow); margin: 0; animation: flashIn .3s var(--spring); }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }

/* ---- Tables (admin) ---------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
table.data th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); background: var(--bg); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--surface-2); }

.pill { display: inline-block; font-size: .74rem; font-weight: 640; padding: 3px 9px; border-radius: 999px; }
.pill--green { background: var(--mint); color: var(--green); }
.pill--gray  { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }
.pill--amber { background: #fff3d6; color: var(--amber); }
.pill--red   { background: #fff1f0; color: #b42318; }
.pill--blue  { background: var(--blue-light); color: var(--blue); }

.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-tabs a { padding: 8px 15px; border-radius: 999px; color: var(--text-2); font-weight: 520; border: 1px solid transparent; }
.admin-tabs a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.admin-tabs a.is-active { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-xs); }

/* ---- Tarifs ----------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
              padding: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
              transition: transform .28s var(--spring), box-shadow .3s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card--featured { border-color: var(--blue); box-shadow: 0 24px 54px -18px var(--blue-glow); position: relative; }
.price-card--featured::before {
    content: "Le plus choisi"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(180deg, #3d76ff, var(--blue)); color: #fff; font-size: .74rem; font-weight: 720;
    padding: 5px 14px; border-radius: 999px; box-shadow: var(--shadow-blue);
}
.price-card h3 { font-size: 1.15rem; }
.price-card .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.035em; }
.price-card .amount small { font-size: .95rem; font-weight: 500; color: var(--text-2); }
.price-card ul.feats li { padding: 7px 0; color: var(--text-2); display: flex; gap: 9px; }
.price-card ul.feats li::before { content: "✓"; color: var(--green); font-weight: 720; }

/* ---- Fil d'Ariane --------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; color: var(--text-2); font-size: .86rem; margin-bottom: 18px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--text); }

/* ---- Révélation au défilement --------------------- */
[data-reveal] {
    opacity: 0; transform: translateY(16px);
    transition: opacity .6s var(--ease), transform .7s var(--spring);
    will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---- Responsive --------------------------------- */
@media (max-width: 1024px) {
    .directory { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    body.filters-open .filters { display: block; }
    .filters-bar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
    .profile-layout { grid-template-columns: 1fr; }
    .dash { grid-template-columns: 1fr; }
    .dash-nav { position: static; display: flex; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    :root { --header-h: 60px; }

    /* Corps : place pour la barre d'onglets */
    body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
    .site-footer { margin-bottom: 0; }

    /* Le header ne doit pas créer de bloc conteneur pour la feuille modale :
       on retire backdrop-filter en < 860px (sinon .nav en position fixed se
       positionne par rapport au header et non au viewport). */
    .site-header {
        backdrop-filter: none; -webkit-backdrop-filter: none;
        background: rgba(255,255,255,.94);
    }
    .site-header.is-scrolled { background: #fff; }

    /* -- Menu = feuille modale qui remonte du bas -------------------------- */
    .nav {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 62;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: var(--surface);
        border-radius: 26px 26px 0 0;
        padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -24px 60px -18px rgba(14,22,38,.3);
        max-height: 80vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
        transform: translateY(102%);
        transition: transform .42s var(--spring);
    }
    .nav::before {
        content: ""; width: 42px; height: 4px; border-radius: 999px;
        background: var(--border-2); margin: 2px auto 14px; flex: none;
    }
    body.menu-open .nav { transform: translateY(0); }
    .nav__sep { display: none; }
    .nav a.nav__link { padding: 14px 16px; border-radius: 14px; font-size: 1rem; font-weight: 560; }
    .nav a.nav__link:hover, .nav a.nav__link.is-active { background: var(--blue-light); color: var(--blue); }
    .nav__cta { margin: 10px 0 0; }
    .nav .btn { padding: 15px 22px; }
    .nav-toggle { display: inline-flex; }

    /* -- Barre d'onglets fixe -------------------------------------------- */
    .mobile-tabbar {
        display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 57;
        background: rgba(255,255,255,.9);
        -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
        border-top: 1px solid var(--border);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .mobile-tabbar__inner { height: var(--tab-h); max-width: 560px; margin: 0 auto; }

    /* -- Header allégé -------------------------------------------------- */
    .site-header.is-scrolled .site-header__inner { height: var(--header-h); }

    /* -- Rythme vertical --------------------------------------------------- */
    .section { padding: 48px 0; }
    .section--tight { padding: 34px 0; }
    .section-head { margin-bottom: 26px; }
    .container { padding: 0 18px; }

    /* -- Cartes plus douces --------------------------------------------- */
    .card { border-radius: var(--radius); padding: 20px; }
    .grid { gap: 14px; }
    .grid--3, .grid--4 { grid-template-columns: 1fr; }

    /* -- Recherche : widget d'app ------------------------------------------ */
    .searchbar { grid-template-columns: 1fr; margin-top: 28px; padding: 16px; border-radius: var(--radius-lg); gap: 12px; }
    .searchbar .btn { width: 100%; height: 50px; }

    .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat { padding: 18px; }

    /* -- Chips en carrousel horizontal (feeling natif) -------------------- */
    .chips {
        flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        margin-inline: -18px; padding-inline: 18px; padding-bottom: 4px;
        scrollbar-width: none;
    }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex: none; scroll-snap-align: start; }

    .results-grid { grid-template-columns: 1fr; }
    .pricing { grid-template-columns: 1fr; }
    .kpi-row { grid-template-columns: 1fr; }
    .cta-pro { padding: 44px 26px; border-radius: var(--radius-xl); }
    .profile-hero, .auth-card { padding: 24px; }
    .profile-hero__actions { min-width: 100%; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .btn { padding: 13px 22px; }
    .btn--lg { padding: 16px 28px; }

    .flash-stack { left: 14px; right: 14px; max-width: none; top: calc(var(--header-h) + 10px); }
}

@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .stats { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .hero { padding: 60px 0 44px; }
    .cta-pro { padding: 38px 22px; }
}

/* ---- Accessibilité --------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px;
             border-radius: 0 0 12px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* =============================================================================
   Blog, pages villes, FAQ, prose enrichie
   ========================================================================== */

/* Footer : 5 colonnes (ajout de la colonne « Villes ») */
.footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Prose : listes, tableaux, sous-titres */
.prose h3 { font-size: 1.08rem; margin: 24px 0 8px; letter-spacing: -.02em; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; color: var(--text); }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 640; }
.prose > p:first-child { margin-top: 0; }
.prose .lead-para { font-size: 1.1rem; color: var(--text); }

/* Bloc FAQ (accueil + pages villes) */
.faq-block h2 { text-align: center; margin-bottom: 8px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 2px 4px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.faq-item[open] { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.faq-item > summary {
    cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 640; color: var(--text);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
    content: ""; width: 11px; height: 11px; flex: none;
    border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
    transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--spring);
}
.faq-item[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-answer { padding: 0 18px 18px; color: var(--text-2); }
.faq-answer a { color: var(--blue); }

/* =============================================================================
   Pages villes — média & mise en page enrichie
   ========================================================================== */
.city-hero-media {
    border-radius: var(--radius-lg); overflow: hidden; margin: 10px 0 4px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    aspect-ratio: 1200 / 360; background: var(--bg);
}
.city-hero-media svg { width: 100%; height: 100%; }
@media (max-width: 640px) { .city-hero-media { aspect-ratio: 3 / 2; border-radius: var(--radius); } }

.prose figure.city-figure { margin: 26px 0; }
.city-figure svg { width: 100%; height: auto; border-radius: var(--radius); }
.city-figure figcaption { margin-top: 8px; font-size: .84rem; color: var(--text-2); text-align: center; }

.figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0; }
.figure-row .city-figure { margin: 0; }
@media (max-width: 640px) { .figure-row { grid-template-columns: 1fr; } }

/* Tableau tarifs */
.route-table-wrap { margin: 22px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.route-table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 420px; }
.route-table th, .route-table td { border-bottom: 1px solid var(--border); padding: 12px 14px; text-align: left; }
.route-table th { background: var(--blue-light); font-weight: 640; border-bottom-color: #d6e2ff; }
.route-table tbody tr:last-child td { border-bottom: none; }
.route-table tbody tr:nth-child(even) td { background: var(--surface-2); }
.route-table-note { font-size: .8rem; color: var(--text-2); margin-top: 8px; }

/* Bloc maillage interne local */
.local-links { margin: 30px 0 8px; padding: 22px 24px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.local-links h3 { font-size: 1rem; margin-bottom: 10px; }
.local-links ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.local-links li { position: relative; }
.local-links li + li::before { content: "·"; position: absolute; left: -11px; color: var(--text-2); }

/* Sommaire d'article ville */
.city-toc { margin: 20px 0 6px; padding: 18px 22px;
    background: linear-gradient(180deg, var(--blue-light), #f3f7ff);
    border: 1px solid #dfe9ff; border-radius: var(--radius); font-size: .92rem; }
.city-toc strong { display: block; margin-bottom: 6px; }
.city-toc a { margin-right: 14px; white-space: nowrap; display: inline-block; padding: 2px 0; }

/* =============================================================================
   v4 — Direction affirmée : type display, matière, profondeur, mouvement.
   Ce bloc surcharge volontairement les règles ci-dessus (ordre = priorité).
   ========================================================================== */
:root {
    --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --violet: #7A5CFF;
    --ink:    #0A0F1C;
}

/* -- Typographie éditoriale ------------------------------------------------ */
h1, h2,
.hero h1, .section-head h2, .cta-pro h2,
.stat__num, .price-card .amount,
.dash-head h1, .auth-card h1, .profile-hero h1, .faq-block h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.035em;
}
.hero h1 { font-size: clamp(2.6rem, 1.5rem + 5vw, 4.15rem); line-height: 1.02; letter-spacing: -.045em; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .6vw, 1.28rem); max-width: 540px; }
.section-head h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.7rem); }
.section-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.95rem); line-height: 1.06; }
.section-head { margin-bottom: 42px; }
.eyebrow {
    background: var(--surface); border: 1px solid var(--border-2); color: var(--text-2);
    padding: 7px 14px 7px 12px;
}
.eyebrow::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--blue); box-shadow: 0 0 0 4px var(--blue-light); flex: none;
}

/* -- Fond : dégradés doux + grain global -------------------------------- */
body {
    background:
        radial-gradient(1000px 720px at 100% -6%, rgba(47,107,255,.055), transparent 55%),
        radial-gradient(880px 620px at -12% 16%, rgba(122,92,255,.045), transparent 55%),
        var(--bg);
    background-attachment: fixed;
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none;
    opacity: .032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -- Hero : aurore animée + grille de points --------------------------- */
.hero { padding: 104px 0 82px; }
.hero::before {
    inset: -34% -12% auto -12%; height: 760px; z-index: -1;
    background:
        radial-gradient(42% 52% at 22% 32%, rgba(47,107,255,.24), transparent 70%),
        radial-gradient(40% 50% at 78% 18%, rgba(122,92,255,.18), transparent 70%),
        radial-gradient(52% 62% at 62% 82%, rgba(14,124,90,.13), transparent 70%);
    filter: blur(22px);
    animation: auroraDrift 20s var(--ease) infinite alternate;
}
@keyframes auroraDrift {
    from { transform: translate3d(-2%, 0, 0) scale(1); }
    to   { transform: translate3d(4%, -3%, 0) scale(1.09); }
}
.hero::after {
    inset: 0; height: auto; z-index: -1;
    background-image: radial-gradient(rgba(14,22,38,.16) 1px, transparent 1.5px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(58% 54% at 50% 34%, #000, transparent 76%);
            mask-image: radial-gradient(58% 54% at 50% 34%, #000, transparent 76%);
}

/* -- Barre de recherche : widget flottant ---------------------------- */
.searchbar {
    border-radius: 24px; padding: 16px;
    background: rgba(255,255,255,.9);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 34px 70px -24px rgba(14,22,38,.3), 0 0 0 1px rgba(14,22,38,.045);
    transition: box-shadow .3s var(--ease);
}
.searchbar:focus-within {
    box-shadow: 0 34px 76px -22px rgba(47,107,255,.34), 0 0 0 1px rgba(47,107,255,.22);
}
.searchbar .btn--primary { align-self: stretch; }

/* -- Boutons : reflet au survol + flèche ----------------------------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.4) 50%, transparent 68%);
    transform: translateX(-130%); transition: transform .65s var(--ease);
}
.btn--primary:hover::after { transform: translateX(130%); }

/* -- Liens de nav : soulignement animé (desktop) -------------------- */
@media (min-width: 861px) {
    .nav a.nav__link { position: relative; }
    .nav a.nav__link::after {
        content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
        border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--violet));
        transform: scaleX(0); transform-origin: left; transition: transform .3s var(--spring);
    }
    .nav a.nav__link:hover, .nav a.nav__link.is-active { background: transparent; color: var(--text); }
    .nav a.nav__link:hover::after, .nav a.nav__link.is-active::after { transform: scaleX(1); }
    .nav__cta.btn { color: #fff; }
    .nav__cta.btn--ghost { color: var(--text); }
    .nav__cta::after { display: none; }
}

/* -- Cartes : bord dégradé + halo au survol ------------------------- */
.card--hover { position: relative; }
.card--hover::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: linear-gradient(140deg, rgba(47,107,255,.55), rgba(122,92,255,.35), transparent 62%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.card--hover:hover::before { opacity: 1; }
.card--hover:hover { box-shadow: 0 24px 54px -20px rgba(47,107,255,.3); }
.vcard__cta::after { content: "→"; margin-left: 2px; transition: transform .2s var(--spring); display: inline-block; }
.card--hover:hover .vcard__cta::after { transform: translateX(4px); }

/* -- Chips : remplissage encre au survol --------------------------- */
.chip { position: relative; overflow: hidden; z-index: 0; }
.chip::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
    transform: translateY(101%); transition: transform .32s var(--spring);
}
.chip:hover { color: #fff; border-color: var(--ink); transform: translateY(-1px); }
.chip:hover::before { transform: translateY(0); }
.chip:hover .chip__count { color: rgba(255,255,255,.7); }

/* -- Bandeau statistiques : panneau sombre ------------------------- */
.stats {
    background: var(--ink); border: 1px solid rgba(255,255,255,.07);
    border-radius: 28px; padding: 14px; gap: 0;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.stats::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(58% 130% at 12% 0%, rgba(47,107,255,.28), transparent 58%);
}
.stats .stat { background: transparent; border: 0; box-shadow: none; padding: 28px 26px; }
.stats .stat:hover { transform: none; }
.stats .stat + .stat { border-left: 1px solid rgba(255,255,255,.08); }
.stats .stat__num {
    font-family: var(--font-display); color: #fff;
    -webkit-text-fill-color: #fff; background: none;
    font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
}
.stats .stat__label {
    color: rgba(255,255,255,.5); text-transform: uppercase;
    letter-spacing: .09em; font-size: .7rem; font-weight: 600; margin-top: 6px;
}
@media (max-width: 860px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stats .stat { padding: 22px 18px; }
    .stats .stat + .stat { border-left: 0; }
    .stats .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
    .stats .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 520px) {
    .stats { grid-template-columns: 1fr; }
    .stats .stat:nth-child(odd) { border-right: 0; }
    .stats .stat + .stat { border-top: 1px solid rgba(255,255,255,.08); }
}

/* -- CTA pro : plus contrasté ------------------------------------- */
.cta-pro { background: linear-gradient(140deg, #080d22, #17306a 52%, #080d22); }
.cta-pro h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.65rem); }

/* -- Pied de page sombre (bookend) ------------------------------- */
.site-footer {
    background: var(--ink); border-top: 0; color: rgba(255,255,255,.62);
    position: relative;
}
.site-footer::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
}
.site-footer .brand { color: #fff; }
.site-footer h4 { color: rgba(255,255,255,.42); }
.site-footer .muted { color: rgba(255,255,255,.5); }
.site-footer ul a { color: rgba(255,255,255,.62); }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { border-top-color: rgba(255,255,255,.1); color: rgba(255,255,255,.4); }

/* -- Barre de progression de lecture (injectée en JS) ----------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    box-shadow: 0 0 12px rgba(47,107,255,.6);
    transition: width .12s linear;
}

/* -- FAQ : matière au survol ----------------------------------- */
.faq-item { transition: border-color .2s, box-shadow .2s, transform .2s var(--spring); }
.faq-item:hover { border-color: var(--border-2); transform: translateY(-1px); }

/* -- Fiche VTC : hero plus premium --------------------------- */
.profile-hero {
    border-radius: var(--radius-xl);
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(47,107,255,.06), transparent 55%),
        var(--surface);
}

@media (max-width: 860px) {
    .hero { padding: 68px 0 52px; }
    .hero::after { background-size: 22px 22px; }
    .section-head { margin-bottom: 30px; }
    .searchbar { border-radius: var(--radius-lg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before { animation: none; }
    .scroll-progress { transition: none; }
}

/* =============================================================================
   v5 — Pages villes enrichies : faits pratiques, étapes, emplacements, comparatif
   ========================================================================== */

/* -- Bandeau de faits pratiques sous le hero ------------------------------- */
.quick-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px; background: var(--border); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.quick-fact { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.quick-fact__k { font-size: .72rem; font-weight: 640; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.quick-fact__v { font-weight: 560; color: var(--text); font-size: .95rem; }

/* -- Étapes numérotées (comment réserver) -------------------------------- */
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-xs);
}
.step__n {
    flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem;
    background: var(--blue-light); color: var(--blue);
}
.step__t { padding-top: 3px; color: var(--text); }

/* -- Cartes emplacement (vitrine partenaires) --------------------------- */
.placement-card { display: flex; flex-direction: column; gap: 12px; position: relative; border-color: #d8e3ff; }
.placement-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(47,107,255,.18);
}
.placement-card__badge {
    align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--blue); background: var(--blue-light);
    border-radius: 999px; padding: 4px 10px;
}
.placement-card__contact { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; font-size: .9rem; font-weight: 560; }
.placement-card__contact a { color: var(--blue); }

.placement-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    border-style: dashed; border-color: var(--border-2); background: var(--surface-2);
    text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .15s var(--spring);
}
.placement-open:hover { text-decoration: none; border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.placement-open--static:hover { transform: none; }
.placement-open__n { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.placement-open__t { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.placement-open__p { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--blue); }
.placement-open__p small { font-size: .8rem; font-weight: 500; color: var(--text-2); }
.placement-open .btn { margin-top: 4px; }

/* -- Tableau comparatif ------------------------------------------------- */
.compare-wrap {
    overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); -webkit-overflow-scrolling: touch;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.compare-table th, .compare-table td {
    padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top;
}
.compare-table thead th {
    font-family: var(--font-display); font-weight: 700; font-size: .92rem;
    background: var(--surface-2); position: sticky; top: 0;
}
.compare-table thead th.is-sponsor { background: var(--blue-light); color: var(--blue-dark); }
.compare-table tbody th[scope="row"] {
    font-weight: 640; color: var(--text-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
    background: var(--surface-2); white-space: nowrap;
}
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: 0; }
.compare-table td:first-child, .compare-table th:first-child {
    position: sticky; left: 0; background: var(--surface-2); z-index: 1;
}
.compare-tag {
    display: inline-block; font-size: .64rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: #fff; background: var(--blue); border-radius: 999px; padding: 2px 7px; vertical-align: middle;
}
.compare-open { color: var(--text-3); font-style: italic; font-weight: 500; }

@media (max-width: 860px) {
    .quick-facts { grid-template-columns: 1fr 1fr; }
    .step { padding: 14px; }
    .placement-open__p { font-size: 1.3rem; }
}

/* -- Coordonnées directes sur les cartes VTC (annuaire, villes, aéroports) -- */
.vcard__contact { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.vcard__contact a {
    display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
    font-size: .82rem; font-weight: 560; color: var(--text-2);
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 6px 11px; border-radius: 999px;
    transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.vcard__contact a:hover { text-decoration: none; color: var(--text); border-color: var(--border-2); background: var(--surface); }
.vcard__contact a:active { transform: scale(.96); }
.vcard__contact a svg { width: 14px; height: 14px; flex: none; }
.vcard__contact a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard__contact a.is-web { color: var(--blue); border-color: #d8e3ff; }
.vcard__contact a.is-web:hover { background: var(--blue-light); border-color: #c3d5ff; }
.vcard__contact a.is-wa { color: #128C4B; border-color: #bfe6d0; }
.vcard__contact a.is-wa:hover { background: #e9faf1; border-color: #9fe0bd; color: #0f7a41; }
@media (max-width: 860px) { .vcard__contact a { font-size: .8rem; padding: 6px 10px; } }

/* =============================================================================
   v6 — Robustesse de mise en page : empêche les longues chaînes (URL collées,
   données saisies incorrectement) de faire déborder les grilles.
   ========================================================================== */
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.directory { grid-template-columns: 288px minmax(0, 1fr); }
.profile-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card, .vcard, .placement-card, .placement-open { min-width: 0; }
.vcard__head, .vcard__contact { min-width: 0; }
.vcard__contact { max-width: 100%; }
.vcard__contact a { min-width: 0; max-width: 100%; }

.vcard__desc { overflow-wrap: anywhere; }
.vcard__name a { overflow-wrap: anywhere; }
.prose { overflow-wrap: anywhere; }
.prose p, .prose li, .prose td, .panel, .panel *, .contact-list a, .contact-list span { overflow-wrap: anywhere; }
.breadcrumb { overflow-wrap: anywhere; }
.profile-hero__main, .profile-hero h1 { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 1024px) {
    .directory { grid-template-columns: minmax(0, 1fr); }
    .profile-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
    .results-grid { grid-template-columns: minmax(0, 1fr); }
    .pricing, .kpi-row { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   v10 — Accueil : grandes vignettes partenaires + petites vignettes annuaire
   ========================================================================== */
.home-bigbox {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.home-smallbox {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.home-chipcard {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line, #E7EBF1);
    border-radius: 14px;
    background: var(--surface, #fff);
    text-decoration: none;
    color: inherit;
    min-width: 0;
    transition: border-color .18s var(--spring, ease), transform .18s var(--spring, ease), box-shadow .18s ease;
}
.home-chipcard:hover {
    border-color: var(--blue, #2F6BFF);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(23, 32, 51, .08);
}
.home-chipcard__logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex: 0 0 44px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    background: var(--blue-050, #eef3ff);
    color: var(--blue, #2F6BFF);
}
.home-chipcard__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-chipcard__name {
    font-weight: 650;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-chipcard__meta {
    font-size: .8rem;
    color: var(--text-2, #667085);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.home-chipcard__tag {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 1px 6px;
    border-radius: 999px;
    background: #eef1f5;
    color: #5A6577;
    white-space: nowrap;
}
.home-chipcard__tag.is-paid { background: #eaf1ff; color: #2F6BFF; }

@media (max-width: 980px) {
    .home-bigbox { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-smallbox { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .home-bigbox { grid-template-columns: minmax(0, 1fr); }
    .home-smallbox { grid-template-columns: minmax(0, 1fr); }
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid--2 { grid-template-columns: minmax(0, 1fr); } }
