/* ============================================================
   OXYTRANSPORTS — Bourse de fret (frontend public)
   Design system : Poppins + Inter, bordeaux #601010
   Aligné sur outils/admin/assets/admin.css + design-tokens.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Brand */
    --ot-burgundy-50:  #F8ECEC;
    --ot-burgundy-100: #EFD3D3;
    --ot-burgundy-200: #DC9F9F;
    --ot-burgundy-300: #C26F6F;
    --ot-burgundy-500: #802424;
    --ot-burgundy-600: #701818;
    --ot-burgundy-700: #601010;
    --ot-burgundy-800: #4A0C0C;

    --ox-green-50:  #EAF3E7;
    --ox-green-100: #D5E8CF;
    --ox-green-300: #82B86E;
    --ox-green-500: #4A9745;
    --ox-green-600: #3F8A3A;
    --ox-green-700: #316E2E;
    --ox-green-800: #245221;

    --ox-wheat-100: #F6EED9;
    --ox-wheat-400: #D7B66A;
    --ox-wheat-600: #A88A3F;

    --ox-sky-50:  #F2F8FA;
    --ox-sky-100: #E8F1F5;
    --ox-sky-600: #4F8AA1;

    --ink-900: #1C2A22;
    --ink-800: #2A3A31;
    --ink-700: #3B4C42;
    --ink-600: #4D5C53;
    --ink-500: #6A7770;
    --ink-400: #93A09A;
    --ink-300: #B8C2BD;
    --ink-200: #D8E0DA;
    --ink-100: #ECF1ED;
    --ink-50:  #F6F8F5;

    --line-100: #ECF1ED;
    --line-200: #D8E0DA;
    --line-300: #B8C2BD;

    --bg-0: #FFFFFF;
    --bg-1: #F6F8F5;

    --fg-1: var(--ink-900);
    --fg-2: var(--ink-600);
    --fg-3: var(--ink-400);

    --brand-primary: var(--ox-green-600);
    --brand-primary-hover: var(--ox-green-800);
    --brand-secondary: var(--ot-burgundy-700);
    --brand-secondary-hover: var(--ot-burgundy-800);

    --success: var(--ox-green-600);
    --warning: #E67324;
    --danger:  #C0392B;
    --info:    var(--ox-sky-600);

    --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --fs-12: 0.75rem;
    --fs-14: 0.875rem;
    --fs-16: 1rem;
    --fs-18: 1.125rem;
    --fs-20: 1.25rem;
    --fs-24: 1.5rem;
    --fs-30: 1.875rem;
    --fs-36: 2.25rem;
    --fs-48: 3rem;

    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;
    --sp-8: 64px;
    --sp-9: 96px;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(28, 42, 34, 0.06);
    --shadow-md: 0 6px 18px rgba(28, 42, 34, 0.08);
    --shadow-lg: 0 18px 40px rgba(28, 42, 34, 0.10);

    --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
    --dur-fast: 120ms;
    --dur-base: 180ms;
    --dur-slow: 300ms;

    /* ───── Alias rétrocompat (anciens tokens éditoriaux Fraunces) ───── */
    --paper:       var(--bg-1);
    --surface-2:   #FFFFFF;
    --ink:         var(--ink-900);
    --ink-soft:    var(--ink-700);
    --ink-mute:    var(--ink-500);
    --gris-fonce:  var(--ink-700);
    --rule:        var(--line-200);
    --rule-strong: var(--line-300);
    --bordeaux:    var(--brand-secondary);
    --signal:      var(--brand-primary);
    --display:     var(--font-display);
    --body:        var(--font-body);
    --mono:        'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ────── Reset & body ────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--fg-1);
    background: var(--bg-1);
    font-size: var(--fs-16);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* ──────────────────────────────────────────────────────────────
   MODAL OVERLAYS (généraux : reservation, AO)
   ────────────────────────────────────────────────────────────── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 42, 34, 0.55);
    backdrop-filter: blur(4px);
    display: none;                /* caché par défaut */
    place-items: center;
    z-index: 200;
    padding: var(--sp-4);
}
.modal-overlay.show {
    display: grid;
    animation: fadeIn 0.25s var(--ease-standard);
}
.modal-overlay.hidden, [hidden] { display: none !important; }

/* Sections client/transporteur : cachées par défaut, .show les affiche */
.transporteur-section,
.client-section { display: none; }
.transporteur-section.show,
.client-section.show { display: block; animation: fadeIn 0.3s var(--ease-standard); }

/* ──────────────────────────────────────────────────────────────
   ACCESS MODAL — version premium (page d'accueil)
   Fond gradient bordeaux + blobs animés + carte glassmorphism
   ────────────────────────────────────────────────────────────── */

#accessModal {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(112, 24, 24, 0.95), transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(74, 12, 12, 0.95), transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(63, 138, 58, 0.25), transparent 50%),
        linear-gradient(135deg, #4A0C0C 0%, #601010 50%, #320808 100%);
    backdrop-filter: none;
    overflow: hidden;
    isolation: isolate;
}

/* Pattern bruité subtil par-dessus le gradient */
#accessModal::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0),
        radial-gradient(circle at 25% 25%, rgba(220, 159, 159, 0.08), transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(220, 159, 159, 0.06), transparent 50%);
    background-size: 24px 24px, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 0;
}

/* Blobs flottants animés (2 pour composition équilibrée) */
#accessModal::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    left: -160px;
    top: -160px;
    background: radial-gradient(circle, rgba(220, 159, 159, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: blobDrift 24s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

#accessModal .modal-blob-2 {
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(160, 68, 68, 0.16) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: blobDrift2 28s ease-in-out infinite;
    animation-delay: -8s;
    pointer-events: none;
    z-index: 0;
}

@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60vw, 30vh) scale(1.2); }
    66% { transform: translate(40vw, 60vh) scale(0.9); }
}
@keyframes blobDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40vw, -20vh) scale(0.85); }
    66% { transform: translate(-25vw, -45vh) scale(1.15); }
}

#accessModal .modal-box {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: var(--sp-7) var(--sp-6) var(--sp-6);
    width: 100%;
    max-width: 480px;
    box-shadow:
        0 30px 80px -20px rgba(48, 8, 8, 0.45),
        0 8px 24px rgba(48, 8, 8, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-align: center;
    border-top: none;
    animation: modalIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Eyebrow retiré : redondant avec le logo OXYTRANSPORTS désormais affiché en haut */

/* Logo OXYTRANSPORTS dans la modale d'accès — remplace l'ancienne icône emoji */
.modal-logo {
    display: block;
    width: auto;
    height: 44px;
    max-width: 220px;
    margin: 0 auto var(--sp-3);
    filter: drop-shadow(0 4px 10px rgba(96, 16, 16, 0.14));
    animation: logoFloat 4.5s ease-in-out infinite;
    object-fit: contain;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* Tagline d'ancrage sous le titre */
.modal-tagline {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-500);
    margin: var(--sp-1) 0 var(--sp-4);
    text-align: center;
}
.modal-tagline span {
    display: inline-block;
    margin: 0 6px;
    color: var(--ot-burgundy-300);
    transform: translateY(-1px);
}

.modal-box h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--ink-900);
    margin: 0 0 var(--sp-2);
    letter-spacing: -0.018em;
}
.modal-box p {
    color: var(--fg-2);
    font-size: var(--fs-14);
    margin: 0 0 var(--sp-5);
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.type-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: var(--sp-5);
    background: var(--bg-1);
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--line-100);
}
.type-tab {
    background: transparent;
    border: none;
    padding: 12px 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-14);
    color: var(--ink-500);
    cursor: pointer;
    border-radius: 10px;
    transition: all 250ms var(--ease-standard);
    position: relative;
}
.type-tab:hover { color: var(--ink-800); }
.type-tab.active.transporteur {
    background: #fff;
    color: var(--brand-secondary);
    box-shadow: 0 2px 8px rgba(96, 16, 16, 0.12), 0 0 0 1px var(--ot-burgundy-100);
}
.type-tab.active.client {
    background: #fff;
    color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(63, 138, 58, 0.12), 0 0 0 1px var(--ox-green-100);
}

.modal-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: var(--fs-12);
    font-weight: 600;
    color: var(--ink-700);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
}
.modal-input {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid var(--line-200);
    border-radius: 14px;
    font-size: var(--fs-16);
    color: var(--ink-900);
    background: #fff;
    text-align: center;
    letter-spacing: 0.18em;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    transition: all 200ms var(--ease-standard);
}
.modal-input::placeholder {
    letter-spacing: 0.04em;
    text-transform: none;
    font-weight: 400;
    color: var(--ink-400);
}
/* Filiation : input/bouton bordeaux quand TR actif (défaut), vert quand CL actif */
#accessModal .modal-box.is-transporteur .modal-input:focus,
#accessModal .modal-box .modal-input:focus {
    outline: none;
    border-color: var(--ot-burgundy-700);
    box-shadow: 0 0 0 4px rgba(96, 16, 16, 0.12);
    transform: translateY(-1px);
}
#accessModal .modal-box.is-client .modal-input:focus {
    border-color: var(--ox-green-600);
    box-shadow: 0 0 0 4px rgba(63, 138, 58, 0.16);
}

.modal-btn {
    width: 100%;
    margin-top: var(--sp-4);
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ot-burgundy-700), var(--ot-burgundy-800));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-16);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 200ms var(--ease-standard);
    box-shadow: 0 6px 16px -4px rgba(96, 16, 16, 0.45);
    position: relative;
    overflow: hidden;
}
/* Filiation : bouton vert quand CL actif */
#accessModal .modal-box.is-client .modal-btn {
    background: linear-gradient(135deg, var(--ox-green-600), var(--ox-green-800));
    box-shadow: 0 6px 16px -4px rgba(63, 138, 58, 0.45);
}
.modal-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ot-burgundy-800), var(--ot-burgundy-700));
    opacity: 0;
    transition: opacity 200ms var(--ease-standard);
}
#accessModal .modal-box.is-client .modal-btn::before {
    background: linear-gradient(135deg, var(--ox-green-800), var(--ox-green-600));
}
.modal-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 600ms var(--ease-standard);
}
.modal-btn > * { position: relative; z-index: 1; }
.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(96, 16, 16, 0.55);
}
.modal-btn:hover::before { opacity: 1; }
.modal-btn:hover::after { left: 100%; }
.modal-btn:active { transform: translateY(0); }
.modal-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.modal-error {
    display: none;
    color: var(--danger);
    background: #FCE8E6;
    padding: var(--sp-3);
    border-radius: 10px;
    margin-top: var(--sp-3);
    font-size: var(--fs-14);
    border: 1px solid #F5C6C2;
    animation: shake 0.4s var(--ease-standard);
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

.modal-footer {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--line-100);
    font-size: var(--fs-12);
    color: var(--fg-3);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.modal-footer-text {
    color: var(--ink-500);
    margin: 0;
}
.modal-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 18px;
    color: var(--brand-secondary);
    background: var(--ot-burgundy-50);
    border: 1px solid var(--ot-burgundy-100);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: all 200ms var(--ease-standard);
}
.modal-footer-link:hover {
    background: var(--ot-burgundy-100);
    color: var(--ot-burgundy-800);
    border-color: var(--ot-burgundy-300);
    transform: translateY(-1px);
}
.modal-footer-link::after {
    content: '→';
    font-size: 14px;
    transition: transform 200ms;
}
.modal-footer-link:hover::after { transform: translateX(2px); }

@media (max-width: 540px) {
    #accessModal .modal-box {
        padding: var(--sp-6) var(--sp-5);
        max-width: 100%;
    }
    .modal-box h2 { font-size: 24px; }
    .modal-icon { width: 56px; height: 56px; font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    #accessModal::after,
    #accessModal .modal-blob-2 { animation: none; }
    #accessModal .modal-box { animation: fadeIn 0.3s ease both; }
    .modal-logo { animation: none; }
    .modal-btn,
    .modal-footer-link,
    .modal-input { transition: none; }
    .modal-btn::after { display: none; }
}

/* ──────────────────────────────────────────────────────────────
   HEADER
   ────────────────────────────────────────────────────────────── */

.header {
    background: #fff;
    border-bottom: 1px solid var(--line-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--sp-3) var(--sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
}
.logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    text-decoration: none;
    color: var(--ink-900);
}
.logo-img { height: 44px; width: auto; }
.nav {
    display: flex;
    gap: var(--sp-1);
    align-items: center;
}
.nav a {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink-700);
    text-decoration: none;
    font-size: var(--fs-14);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-sm);
    transition: all var(--dur-base) var(--ease-standard);
}
.nav a:hover {
    color: var(--brand-secondary);
    background: var(--ot-burgundy-50);
}
.nav a.active {
    color: #fff;
    background: var(--brand-secondary);
    font-weight: 600;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: var(--fs-12);
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--ot-burgundy-50);
    color: var(--brand-secondary);
}

/* Pill admin — visible uniquement si session admin valide (toggled via JS) */
.admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: var(--sp-2);
    padding: 6px 12px 6px 10px;
    background: var(--ot-burgundy-50);
    border: 1px solid var(--ot-burgundy-100);
    border-radius: var(--radius-pill);
    color: var(--brand-secondary);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    transition: all 200ms var(--ease-standard);
    white-space: nowrap;
}
.admin-pill:hover {
    background: var(--ot-burgundy-100);
    border-color: var(--ot-burgundy-300);
    color: var(--ot-burgundy-800);
    transform: translateY(-1px);
    text-decoration: none;
}
.admin-pill-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ox-green-600);
    box-shadow: 0 0 0 3px rgba(63, 138, 58, 0.18);
    flex-shrink: 0;
}
.admin-pill-name {
    color: var(--ink-600);
    font-weight: 500;
    margin-left: 2px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-pill-name:empty { display: none; }
.admin-pill-name:not(:empty)::before {
    content: '· ';
    color: var(--ot-burgundy-300);
    font-weight: 400;
    margin-right: 2px;
}
.admin-pill-arrow {
    color: var(--ot-burgundy-300);
    transition: transform 200ms;
}
.admin-pill:hover .admin-pill-arrow { transform: translateX(2px); color: var(--brand-secondary); }
@media (prefers-reduced-motion: reduce) {
    .admin-pill, .admin-pill-arrow { transition: none; }
}
@media (max-width: 720px) {
    .admin-pill-name { display: none; }
    .admin-pill { padding: 6px 10px; }
}
.user-badge.client {
    background: var(--ox-green-50);
    color: var(--ox-green-700);
}
.user-badge.transporteur {
    background: var(--ot-burgundy-50);
    color: var(--brand-secondary);
}

/* ──────────────────────────────────────────────────────────────
   IFRAME BANNER (variante iframe uniquement)
   ────────────────────────────────────────────────────────────── */

#iframeBanner {
    background: linear-gradient(135deg, var(--brand-secondary), var(--ot-burgundy-800));
    color: #fff;
    padding: var(--sp-6) var(--sp-6) var(--sp-5);
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: var(--sp-5) var(--sp-7);
    align-items: center;
}
.iframe-banner-left {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
}
.iframe-banner-logo {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
}
.iframe-banner-title { display: flex; flex-direction: column; gap: var(--sp-1); }
.iframe-banner-kicker {
    font-family: var(--font-display);
    font-size: var(--fs-12);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}
#iframeBanner h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
}
#iframeBanner #bannerDescription {
    font-family: var(--font-body);
    font-size: var(--fs-14);
    color: rgba(255,255,255,0.8);
    margin: var(--sp-2) 0 0;
    max-width: 60ch;
}
.iframe-banner-contact {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    border-left: 1px solid rgba(255,255,255,0.18);
    padding-left: var(--sp-5);
    min-width: 220px;
}
.iframe-banner-contact-label {
    font-family: var(--font-display);
    font-size: var(--fs-12);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    margin-bottom: var(--sp-1);
}
.iframe-banner-phone {
    font-family: var(--font-display);
    font-size: var(--fs-20);
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.iframe-banner-email {
    font-family: var(--font-body);
    font-size: var(--fs-14);
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    margin-top: var(--sp-1);
    align-self: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 1px;
    transition: color var(--dur-base), border-color var(--dur-base);
}
.iframe-banner-email:hover {
    color: #fff;
    border-bottom-color: #fff;
}
@media (max-width: 980px) {
    #iframeBanner { grid-template-columns: 1fr; gap: var(--sp-4); }
    .iframe-banner-contact { border-left: none; border-top: 1px solid rgba(255,255,255,0.18); padding-left: 0; padding-top: var(--sp-4); }
}
@media (max-width: 640px) {
    .iframe-banner-left { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}

/* ──────────────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(180deg, #fff, var(--bg-1));
    padding: var(--sp-8) var(--sp-6) var(--sp-7);
    border-bottom: 1px solid var(--line-100);
}
.hero-content {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}
.hero-content h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(var(--fs-30), 4.5vw, var(--fs-48));
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink-900);
    margin: 0 0 var(--sp-3);
}
.hero-content > p,
.hero-content #heroDescription {
    font-size: var(--fs-18);
    color: var(--fg-2);
    margin: 0 auto var(--sp-5);
    max-width: 56ch;
    line-height: 1.5;
}
.hero-contact {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    background: #fff;
    border: 1px solid var(--line-200);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}
.hero-contact .phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: var(--fs-18);
    font-weight: 600;
    color: var(--brand-secondary);
    text-decoration: none;
    transition: color var(--dur-base);
}
.hero-contact .phone svg {
    flex-shrink: 0;
    color: var(--ot-burgundy-300);
    transition: color var(--dur-base);
}
.hero-contact .phone:hover { color: var(--ot-burgundy-800); }
.hero-contact .phone:hover svg { color: var(--brand-secondary); }
.hero-contact .hero-email {
    font-family: var(--font-body);
    font-size: var(--fs-14);
    color: var(--ink-600);
    text-decoration: none;
    border-bottom: 1px solid var(--line-200);
    padding-bottom: 1px;
    transition: color var(--dur-base), border-color var(--dur-base);
}
.hero-contact .hero-email:hover {
    color: var(--brand-secondary);
    border-bottom-color: var(--brand-secondary);
}
.hero-contact .contact-btn,
.contact-btn {
    background: var(--brand-secondary);
    color: #fff;
    text-decoration: none;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: var(--fs-12);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background var(--dur-base);
}
.contact-btn:hover { background: var(--brand-secondary-hover); }

/* ──────────────────────────────────────────────────────────────
   MAIN CONTAINER
   ────────────────────────────────────────────────────────────── */

/* ==========================================================================
   2026-05-18 : Onglets Nouvelle demande / Mes demandes (section client)
   ========================================================================== */
.client-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--line-200, #D8E0DA);
    margin: 0 auto var(--sp-5);
    max-width: 100%;
}
.client-tab {
    background: transparent;
    border: 0;
    padding: var(--sp-3) var(--sp-5);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-500, #6A7770);
    cursor: pointer;
    position: relative;
    transition: color 160ms ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.client-tab:hover { color: var(--ink-900, #1C2A22); }
.client-tab.active {
    color: var(--brand-secondary, #6E1D1C);
}
.client-tab.active::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 2px;
    background: var(--brand-secondary, #6E1D1C);
}
.client-tab-badge {
    display: inline-block;
    min-width: 22px;
    padding: 2px 7px;
    background: var(--brand-secondary, #6E1D1C);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.client-empty {
    padding: 32px 24px;
    text-align: center;
    color: var(--ink-500, #6A7770);
    font-size: 14px;
}
.form-subtitle {
    color: var(--ink-500, #6A7770);
    font-size: 14px;
    margin: 0 0 var(--sp-4);
    line-height: 1.6;
}

.client-demandes-wrap {
    overflow-x: auto;
}
.client-demandes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.client-demandes-table thead th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-500, #6A7770);
    border-bottom: 1px solid var(--line-200, #D8E0DA);
}
.client-demandes-table tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--line-100, #ECF1ED);
    color: var(--ink-900, #1C2A22);
    vertical-align: middle;
}
.client-demandes-table tbody tr:hover {
    background: rgba(110, 29, 28, 0.02);
}
.client-demandes-table .col-ref {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    font-weight: 600;
    color: var(--brand-secondary, #6E1D1C);
}
.client-demandes-table .col-date {
    white-space: nowrap;
    color: var(--ink-500, #6A7770);
    font-size: 13px;
}
.client-demandes-table .col-trajet {
    min-width: 200px;
}
.client-demandes-table .col-trajet .from,
.client-demandes-table .col-trajet .to {
    display: block;
    line-height: 1.4;
}
.client-demandes-table .col-trajet .arrow {
    color: var(--ink-400, #93A09A);
    margin: 2px 0;
    display: block;
    font-size: 12px;
}
.client-demandes-table .statut-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.statut-pill[data-statut="nouvelle"]  { background: #E8F2FB; color: #0D47A1; }
.statut-pill[data-statut="en_cours"]  { background: #FFF6E5; color: #8C4A00; }
.statut-pill[data-statut="publiee"]   { background: #FFF6E5; color: #8C4A00; }
.statut-pill[data-statut="traitee"]   { background: #E5F7E8; color: #15532F; }
.statut-pill[data-statut="annulee"]   { background: #ECEFF1; color: #546E7A; }

.client-demandes-table .btn-cancel {
    background: transparent;
    border: 1px solid #C0392B;
    color: #C0392B;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 160ms ease;
}
.client-demandes-table .btn-cancel:hover {
    background: #C0392B;
    color: #fff;
}
.client-demandes-table .btn-cancel:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .client-tabs { overflow-x: auto; }
    .client-tab { white-space: nowrap; padding: var(--sp-3) var(--sp-4); }
    .client-demandes-table { font-size: 13px; }
    .client-demandes-table thead th,
    .client-demandes-table tbody td { padding: 10px 8px; }
}

/* 2026-05-18 : pleine largeur demandée par l'utilisateur pour les sections
   client et transporteur. Padding latéral conservé pour respiration. */
.main {
    max-width: 100%;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-6) var(--sp-9);
}
.client-section .form-card {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.client-section .section-hero {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.main h2,
.transporteur-section h2,
.client-section h2,
#aosBlock h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-24);
    color: var(--ink-900);
    margin: var(--sp-7) 0 var(--sp-4);
    letter-spacing: -0.01em;
}
.main h2:first-child { margin-top: 0; }

/* ──────────────────────────────────────────────────────────────
   HOW IT WORKS
   ────────────────────────────────────────────────────────────── */

.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-4);
    margin: var(--sp-5) 0 var(--sp-7);
    list-style: none;
    padding: 0;
    counter-reset: step;
}
.how-it-works > div,
.how-it-works > li {
    background: #fff;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-base), box-shadow var(--dur-base);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    position: relative;
    overflow: hidden;
}
.how-it-works > div::before,
.how-it-works > li::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand-secondary);
    opacity: 0;
    transition: opacity 200ms var(--ease-standard);
}
.how-it-works > div:hover,
.how-it-works > li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.how-it-works > div:hover::before,
.how-it-works > li:hover::before { opacity: 1; }
.how-step-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-12);
    color: var(--brand-secondary);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
}
.how-step-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-18);
    color: var(--ink-900);
    margin: 0 0 var(--sp-2);
}
.how-step-desc {
    font-size: var(--fs-14);
    color: var(--fg-2);
    margin: 0;
}
.reassurance-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-4);
    margin: var(--sp-4) 0;
    padding: 0;
    list-style: none;
}
.reassurance-list li {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-14);
    color: var(--fg-2);
}
.reassurance-list li::before {
    content: '✓';
    color: var(--brand-primary);
    font-weight: 700;
}

/* ──────────────────────────────────────────────────────────────
   STATS ROW
   ────────────────────────────────────────────────────────────── */

/* Hiérarchie : 1ʳᵉ stat (Offres dispo) plus large + plus grosse, les 3 autres compactes */
.stats-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}
@media (max-width: 980px) {
    .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stats-row .stat-card:first-child { grid-column: 1 / -1; }
}
.stat-card {
    background: #fff;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-5);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--brand-secondary);
}
.stats-row .stat-card:first-child {
    padding: var(--sp-5) var(--sp-6);
    gap: var(--sp-5);
}
.stats-row .stat-card:first-child .stat-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
}
.stats-row .stat-card:first-child .stat-icon svg { width: 28px; height: 28px; }
.stats-row .stat-card:first-child .stat-info > h4 {
    font-size: var(--fs-36);
    line-height: 1;
}
.stats-row .stat-card:first-child .stat-info > p {
    font-size: 12px;
    margin-top: 4px;
}
.stat-card.green   { border-top-color: var(--brand-primary); }
.stat-card.blue    { border-top-color: var(--ox-sky-600); }
.stat-card.orange  { border-top-color: var(--ox-wheat-600); }
.stat-card.red     { border-top-color: var(--ambre-alerte, #E67324); }   /* "Urgent" en ambre, pas rouge sang */
.stat-icon {
    width: 40px; height: 40px;
    background: var(--ot-burgundy-50);
    color: var(--brand-secondary);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}
.stat-card.green .stat-icon  { background: var(--ox-green-50);  color: var(--brand-primary); }
.stat-card.blue .stat-icon   { background: var(--ox-sky-100);   color: var(--ox-sky-600); }
.stat-card.orange .stat-icon { background: var(--ox-wheat-100); color: var(--ox-wheat-600); }
.stat-card.red .stat-icon    { background: #FCE8E6;             color: var(--danger); }
.stat-info { display: flex; flex-direction: column; }
.stat-info > div:first-child {
    font-family: var(--font-display);
    font-size: var(--fs-24);
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.1;
}
.stat-info > div:last-child {
    font-size: var(--fs-12);
    color: var(--fg-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* ──────────────────────────────────────────────────────────────
   FILTERS
   ────────────────────────────────────────────────────────────── */

.filters-card {
    background: #fff;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-5);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--sp-5);
    border-bottom: 1px solid var(--line-100);
    cursor: pointer;
    user-select: none;
}
.filters-header > span:first-child,
.filters-header h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-18);
    color: var(--ink-900);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    letter-spacing: -0.005em;
}
.filters-toggle {
    background: transparent;
    border: 1px solid var(--line-200);
    color: var(--ink-700);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--fs-12);
    font-family: var(--font-display);
    font-weight: 500;
    transition: all var(--dur-base);
}
.filters-toggle:hover { background: var(--bg-1); border-color: var(--ink-300); }

/* Pill compteur de filtres actifs (cliquable = reset) */
.filters-active-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: var(--sp-3);
    padding: 3px 10px 3px 8px;
    background: var(--ot-burgundy-50);
    border: 1px solid var(--ot-burgundy-100);
    color: var(--brand-secondary);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--dur-base);
    vertical-align: middle;
}
.filters-active-count::before {
    content: '×';
    font-size: 14px;
    line-height: 1;
    color: var(--ot-burgundy-300);
    transition: color var(--dur-base);
}
.filters-active-count:hover {
    background: var(--ot-burgundy-100);
    border-color: var(--ot-burgundy-300);
    color: var(--ot-burgundy-800);
}
.filters-active-count:hover::before { color: var(--brand-secondary); }
.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-3) var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    align-items: end;
}
@media (max-width: 980px) {
    .filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .filters-grid { grid-template-columns: 1fr; }
}
/* Type de véhicule : prend les 3 premières colonnes du row 2, actions dans la 4ᵉ */
.filter-item.large { grid-column: 1 / 4; }
@media (max-width: 980px) {
    .filter-item.large { grid-column: 1 / -1; }
}
.filter-item { display: flex; flex-direction: column; gap: 6px; }
.filter-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-700);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
}
.filter-input,
.filter-select {
    width: 100%;
    padding: var(--sp-3);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-sm);
    font-size: var(--fs-14);
    color: var(--ink-900);
    background: #fff;
    transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(96, 16, 16, 0.12);
}
/* Lieu de chargement / déchargement : stack vertical pour que l'input/country
   ait sa propre largeur quand le type passe à "département/pays/ville" */
.location-filter {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.location-filter .filter-select,
.location-filter .filter-input,
.location-filter .country-select {
    width: 100%;
    min-width: 0;
}
.country-select {
    padding: var(--sp-3);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-sm);
    font-size: var(--fs-14);
    background: #fff;
    color: var(--ink-900);
}
/* Actions : 4ᵉ colonne du row 2 (à côté des chips véhicule) */
.filter-actions {
    grid-column: 4;
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    justify-content: flex-end;
    align-self: end;
    padding: 0;
}
@media (max-width: 980px) {
    .filter-actions {
        grid-column: 1 / -1;
        padding: var(--sp-2) 0 0;
        border-top: 1px solid var(--line-100);
        margin-top: var(--sp-2);
    }
}

/* ──────────────────────────────────────────────────────────────
   BUTTONS — boutons globaux du frontend
   ────────────────────────────────────────────────────────────── */

.btn,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-14);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--dur-base) var(--ease-standard);
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-secondary);
    color: #fff;
    border-color: var(--brand-secondary);
}
.btn-primary:hover {
    background: var(--brand-secondary-hover);
    border-color: var(--brand-secondary-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--ink-700);
    border-color: var(--line-300);
}
.btn-secondary:hover {
    background: var(--bg-1);
    color: var(--ink-900);
    border-color: var(--ink-700);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    background: var(--brand-primary);
    color: #fff;
    border: none;
    padding: var(--sp-4) var(--sp-6);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-16);
    cursor: pointer;
    transition: all var(--dur-base);
    width: 100%;
    margin-top: var(--sp-3);
}
.btn-submit:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }

.btn-action {
    background: var(--brand-secondary);
    color: #fff;
    border: none;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: var(--fs-12);
    font-weight: 600;
    transition: background var(--dur-base);
}
.btn-action:hover { background: var(--brand-secondary-hover); }

.btn-add-point {
    background: var(--bg-1);
    color: var(--brand-primary);
    border: 1px dashed var(--brand-primary);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: var(--fs-14);
    font-weight: 500;
    width: 100%;
    transition: all var(--dur-base);
    margin-top: var(--sp-3);
}
.btn-add-point:hover {
    background: var(--ox-green-50);
    border-style: solid;
}

/* ──────────────────────────────────────────────────────────────
   TABLES (offres)
   ────────────────────────────────────────────────────────────── */

.table-card {
    background: #fff;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: var(--sp-6);
}
.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-5) var(--sp-6);
    border-bottom: 1px solid var(--line-100);
    background: var(--bg-1);
}
.table-header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-20);
    color: var(--ink-900);
    letter-spacing: -0.01em;
}
.table-count {
    font-family: var(--font-display);
    font-size: var(--fs-12);
    color: var(--fg-2);
    font-weight: 500;
    background: #fff;
    border: 1px solid var(--line-200);
    padding: 2px var(--sp-2);
    border-radius: var(--radius-pill);
}
.table-wrapper { overflow-x: auto; }
.table-wrapper table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.table-wrapper th {
    background: var(--bg-1);
    color: var(--ink-700);
    text-align: left;
    padding: var(--sp-3) var(--sp-4);
    font-family: var(--font-display);
    font-size: var(--fs-12);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line-200);
    white-space: nowrap;
}
.table-wrapper td {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--line-100);
    font-size: var(--fs-14);
    color: var(--ink-900);
    vertical-align: middle;
}
.table-wrapper tbody tr { transition: background var(--dur-base); }
.table-wrapper tbody tr:hover { background: var(--bg-1); }
.table-wrapper tbody tr:last-child td { border-bottom: none; }

.vehicule-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Filter chip — bouton-filtre, pas tag décoratif */
.vehicule-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    background: #fff;
    color: var(--ink-700);
    border: 1.5px solid var(--line-200);
    border-radius: 10px;
    font-size: 13px;
    font-family: var(--font-display);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 180ms var(--ease-standard);
    position: relative;
    line-height: 1;
    white-space: nowrap;
}

/* Indicateur de sélection (case discrète à gauche) */
.vehicule-chip::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--line-300);
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
    transition: all 180ms var(--ease-standard);
}

.vehicule-chip:hover {
    border-color: var(--brand-secondary);
    color: var(--ink-900);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px -4px rgba(96, 16, 16, 0.18);
}
.vehicule-chip:hover::before {
    border-color: var(--brand-secondary);
}

.vehicule-chip.selected,
.vehicule-chip.active {
    background: var(--brand-secondary);
    color: #fff;
    border-color: var(--brand-secondary);
    box-shadow: 0 4px 12px -3px rgba(96, 16, 16, 0.40);
    font-weight: 600;
}
.vehicule-chip.selected::before,
.vehicule-chip.active::before {
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6 L5 8.5 L9.5 4' fill='none' stroke='%23601010' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/10px 10px no-repeat;
    border-color: #fff;
}
.vehicule-chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 16, 16, 0.20);
}

@media (prefers-reduced-motion: reduce) {
    .vehicule-chip { transition: none; }
    .vehicule-chip:hover { transform: none; }
}

/* ──────────────────────────────────────────────────────────────
   TRANSPORTEUR — TABLE OFFRES (classes générées par JS)
   ────────────────────────────────────────────────────────────── */

/* Lignes priorisées (urgent = teinté blé pâle, normal = neutre) */
.table-wrapper tr.priority-high {
    background: linear-gradient(90deg, rgba(214, 152, 56, 0.06), transparent 12%);
}
.table-wrapper tr.priority-high:hover {
    background: linear-gradient(90deg, rgba(214, 152, 56, 0.10), var(--bg-1) 30%);
}
.priority-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ink-300);
    margin-right: var(--sp-2);
    vertical-align: 1px;
    flex-shrink: 0;
}
.priority-high .priority-dot {
    background: var(--ambre-alerte, var(--warning));
    box-shadow: 0 0 0 3px rgba(230, 115, 36, 0.18);
    animation: pulseDot 1.8s ease-in-out 3;   /* pulse 3 fois puis statique */
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(230, 115, 36, 0.18); }
    50%      { box-shadow: 0 0 0 5px rgba(230, 115, 36, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
    .priority-high .priority-dot { animation: none; }
}

/* Référence en mono (DESIGN.md — La Règle du Mono pour Référence) */
.ref-link {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--brand-secondary);
    text-decoration: none;
    background: var(--ot-burgundy-50);
    border: 1px solid var(--ot-burgundy-100);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all 180ms var(--ease-standard);
}
.ref-link:hover {
    background: var(--ot-burgundy-100);
    border-color: var(--ot-burgundy-300);
    color: var(--ot-burgundy-800);
}

/* Contact (nom + 2 actions appel/email) */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.3;
}
.contact-name {
    font-weight: 500;
    color: var(--ink-900);
    font-size: var(--fs-14);
}
.contact-actions {
    display: inline-flex;
    gap: var(--sp-2);
    font-size: 12px;
    flex-wrap: wrap;
}
.contact-actions a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 180ms;
}
.contact-actions a:hover { border-bottom-color: var(--brand-primary); }

/* Localisation (ville en gros + CP en petit) */
.location-cell {
    line-height: 1.2;
    min-width: 110px;
}
.location-cell .city {
    font-weight: 600;
    color: var(--ink-900);
    font-size: var(--fs-14);
}
.location-cell .cp {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--ink-500);
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Tonnage cell — typo neutre, légère emphase */
.tonnage-cell {
    font-variant-numeric: tabular-nums;
    color: var(--ink-700);
    font-weight: 500;
    white-space: nowrap;
}

/* Prix cell — bordeaux fort, mono pour le chiffre */
.price-cell {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 600;
    color: var(--brand-secondary);
    font-size: var(--fs-16);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.price-cell .price-unit {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-500);
    margin-left: 4px;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

/* Marchandise (nom en haut + description en gris) */
.merchandise-cell {
    line-height: 1.3;
    min-width: 140px;
    max-width: 200px;
}
.merchandise-name {
    font-weight: 500;
    color: var(--ink-900);
    font-size: var(--fs-14);
}
.merchandise-desc {
    font-size: 12px;
    color: var(--ink-500);
    margin-top: 2px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Badges BIO / Qualimat */
.badge {
    display: inline-block;
    padding: 2px var(--sp-2);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--bg-1);
    color: var(--ink-600);
    border: 1px solid var(--line-200);
    margin-right: 4px;
    white-space: nowrap;
}
.badge-bio {
    background: var(--ox-green-50);
    color: var(--ox-green-700);
    border-color: var(--ox-green-100);
}
.badge-bio::before { content: '🌿'; margin-right: 3px; font-size: 10px; }
.badge-qualimat {
    background: var(--ox-wheat-100);
    color: var(--ox-wheat-600);
    border-color: rgba(168, 138, 63, 0.25);
}

/* Retour aller-retour (tag + lien) */
.retour-tag,
.retour-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--ox-sky-600);
    background: var(--ox-sky-100);
    border: 1px solid #C8DDE5;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    margin-top: 4px;
    transition: all 180ms;
}
.retour-link:hover {
    background: var(--ox-sky-600);
    color: #fff;
    border-color: var(--ox-sky-600);
}

/* Skeleton loading (table en cours de chargement) */
.oxy-skeleton-row td {
    background: linear-gradient(90deg, var(--bg-1) 0%, var(--line-100) 50%, var(--bg-1) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
    color: transparent;
    border-bottom-color: var(--line-100);
    user-select: none;
}
@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .oxy-skeleton-row td { animation: none; background: var(--bg-1); }
}

/* Empty state (0 résultat) */
.oxy-empty-state {
    text-align: center;
    padding: var(--sp-7) var(--sp-5);
    color: var(--ink-500);
}
.oxy-empty-state .empty-icon {
    width: 56px; height: 56px;
    margin: 0 auto var(--sp-3);
    background: var(--bg-1);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-pill);
    display: grid;
    place-items: center;
    color: var(--ink-400);
    font-size: 24px;
}
.oxy-empty-state h4 {
    font-family: var(--font-display);
    font-size: var(--fs-18);
    font-weight: 600;
    color: var(--ink-800);
    margin: 0 0 var(--sp-2);
}
.oxy-empty-state p {
    font-size: var(--fs-14);
    color: var(--ink-500);
    max-width: 40ch;
    margin: 0 auto;
}

/* Hero header (h1) section transporteur — ancrage de page */
.transporteur-section > .section-hero,
.client-section > .section-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-5);
    margin: 0 0 var(--sp-6);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--line-100);
    flex-wrap: wrap;
}
.section-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-30);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.018em;
}
.section-hero .section-hero-meta {
    font-size: var(--fs-14);
    color: var(--ink-500);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.section-hero .section-hero-meta strong {
    color: var(--brand-secondary);
    font-family: var(--font-display);
    font-weight: 600;
}

/* Date sub-inputs : fadeIn léger quand on switch */
#dateInputs, #dateRangeInputs, #monthInputs {
    animation: fadeIn 0.25s var(--ease-standard);
}
@media (prefers-reduced-motion: reduce) {
    #dateInputs, #dateRangeInputs, #monthInputs { animation: none; }
}

/* Hint mobile : "glissez horizontalement" pour scroll de table */
.table-mobile-hint {
    display: none;
    padding: var(--sp-2) var(--sp-4);
    background: var(--bg-1);
    border-bottom: 1px solid var(--line-100);
    font-size: 11px;
    color: var(--ink-500);
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
@media (max-width: 720px) {
    .table-mobile-hint { display: block; }
    .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-wrapper table { min-width: 980px; }

    /* Sticky col1 (Réf) — la référence reste visible quand on scrolle horizontalement */
    .table-wrapper thead th:first-child,
    .table-wrapper tbody td:first-child {
        position: sticky;
        left: 0;
        background: #fff;
        z-index: 5;
        box-shadow: 1px 0 0 var(--line-200);
    }
    .table-wrapper thead th:first-child {
        background: var(--bg-1);
    }
    .table-wrapper tbody tr:hover td:first-child {
        background: var(--bg-1);
    }
    .table-wrapper tbody tr.priority-high td:first-child {
        background: linear-gradient(90deg, rgba(214, 152, 56, 0.06), #fff 80%);
    }
    .oxy-skeleton-row td:first-child { box-shadow: 1px 0 0 var(--line-100); }
}

/* Stats refactor — icônes plus sobres */
.stat-icon svg {
    width: 18px; height: 18px;
}
.stat-icon.green   { background: var(--ox-green-50);   color: var(--ox-green-700); }
.stat-icon.red     { background: var(--ox-wheat-100); color: var(--ambre-alerte); }
.stat-icon.blue    { background: var(--ox-sky-100);    color: var(--ox-sky-600); }
.stat-icon.orange  { background: var(--ox-wheat-100);  color: var(--ox-wheat-600); }
.stat-info h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-24);
    color: var(--ink-900);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.stat-info p {
    font-size: 11px;
    color: var(--ink-500);
    margin: 2px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-display);
    font-weight: 500;
}

/* AO block — header en cohérence avec autres .filters-card */
#aosBlock .filters-header h3 {
    color: var(--brand-secondary);
}
#aosBlock #aosCount {
    background: var(--ot-burgundy-50);
    color: var(--brand-secondary);
    border-color: var(--ot-burgundy-100);
}
#aosBlock #aosList .placeholder-loading {
    color: var(--ink-500);
    font-style: italic;
    font-size: var(--fs-14);
    padding: var(--sp-4) 0;
}

/* ──────────────────────────────────────────────────────────────
   APPELS D'OFFRES BLOCK (transporteur)
   ────────────────────────────────────────────────────────────── */

.ao-block {
    margin: var(--sp-9) 0 var(--sp-6);   /* 96px de respiration au-dessus, distancé de la table */
    padding: var(--sp-6) 0 0;
    border-top: 1px solid var(--line-200);
}
.ao-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
    flex-wrap: wrap;
}
.ao-block-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-24);
    color: var(--ink-900);
    letter-spacing: -0.01em;
}
.ao-block #aosCount {
    background: var(--ot-burgundy-50);
    color: var(--brand-secondary);
    border: 1px solid var(--ot-burgundy-100);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.ao-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: var(--sp-4);
}

/* Card AO — design system propre, pas d'inline Fraunces */
.ao-card {
    background: #fff;
    border: 1px solid var(--line-200);
    border-top: 3px solid var(--brand-secondary);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    transition: transform var(--dur-base), box-shadow var(--dur-base);
}
.ao-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.ao-card .ao-ref {
    display: inline-block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--brand-secondary);
    background: var(--ot-burgundy-50);
    border: 1px solid var(--ot-burgundy-100);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    align-self: flex-start;
}
.ao-card .ao-trajet {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-18);
    color: var(--ink-900);
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.ao-card .ao-desc {
    margin: 0;
    font-size: 14px;
    color: var(--ink-600);
    line-height: 1.5;
}
.ao-card .ao-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ink-500);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: 0.02em;
}
.ao-card .ao-tonnage {
    color: var(--ink-900);
    font-weight: 600;
}
.ao-card .ao-meta-sep { color: var(--ink-300); }
.ao-card .btn-action {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 18px;
}

/* ──────────────────────────────────────────────────────────────
   FORMS — section client
   ────────────────────────────────────────────────────────────── */

.form-card {
    background: #fff;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--sp-6);
    margin-bottom: var(--sp-6);
}
.form-title {
    font-family: var(--font-display);
    font-size: var(--fs-24);
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 var(--sp-2);
    letter-spacing: -0.01em;
}
.form-section { margin-bottom: var(--sp-6); }
.form-section-title {
    font-family: var(--font-display);
    font-size: var(--fs-12);
    font-weight: 700;
    color: var(--brand-secondary);    /* défaut bordeaux (transporteur / admin) */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--line-100);
}
/* Numéro de section (01/04, 02/04...) */
.form-section-title {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.form-section-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ot-burgundy-300);
    background: var(--ot-burgundy-50);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.client-section .form-section-num {
    color: var(--ox-green-700);
    background: var(--ox-green-50);
}

/* Filiation : dans la zone client → vert (DESIGN.md — La Règle de la Filiation) */
.client-section .form-section-title { color: var(--brand-primary); }
.client-section .form-section-title { border-bottom-color: var(--ox-green-100); }
.client-section .form-group input:focus,
.client-section .form-group select:focus,
.client-section .form-group textarea:focus,
.client-section .field input:focus,
.client-section .field select:focus,
.client-section .field textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(63, 138, 58, 0.16);
}
.client-section .req { color: var(--brand-primary); }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-group.full { grid-column: 1 / -1; }
.form-group.large { grid-column: 1 / -1; }
.form-group label,
.field label,
.field-label-text {
    font-family: var(--font-display);
    font-size: var(--fs-12);
    font-weight: 600;
    color: var(--ink-700);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
/* Lorsque le <label> wrappe l'input (a11y multi-points dynamiques),
   le span .field-label-text porte le visuel et le <label> reste structurel. */
.field label .field-label-text { display: block; margin-bottom: 4px; }
.field > label:has(input) { display: block; }
.form-group input,
.form-group select,
.form-group textarea,
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px var(--sp-3);     /* 14×3 = ~42px+ tap target ≥44px avec font 14px */
    border: 1px solid var(--line-200);
    border-radius: var(--radius-sm);
    font-size: var(--fs-14);
    font-family: var(--font-body);
    color: var(--ink-900);
    background: #fff;
    transition: border-color var(--dur-base), box-shadow var(--dur-base);
    min-height: 44px;
}
.form-group textarea,
.field textarea { resize: vertical; min-height: 100px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(96, 16, 16, 0.12);
}
.req { color: var(--danger); margin-left: 2px; }
.form-hint,
.hint-soft {
    font-size: var(--fs-12);
    color: var(--fg-3);
    margin-top: var(--sp-1);
}

.field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.trajet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}
@media (max-width: 720px) {
    .trajet-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

.location-box {
    background: var(--bg-1);
    border: 1px solid var(--line-200);
    border-top: 3px solid var(--brand-primary);   /* top-accent vert pour Chargement (départ) */
    border-radius: var(--radius-md);
    padding: var(--sp-4);
    margin-bottom: var(--sp-3);
    position: relative;
}
.location-box.arrival {
    border-top-color: var(--ot-burgundy-300);     /* top-accent bordeaux clair pour Déchargement (arrivée) */
}
.location-box h4 {
    margin: 0 0 var(--sp-3);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-14);
    color: var(--ink-800);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.location-box h4::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand-primary);
    flex-shrink: 0;
}
.location-box.arrival h4::before { background: var(--ot-burgundy-300); }
.location-fields {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--sp-3);
}
@media (max-width: 540px) {
    .location-fields { grid-template-columns: 1fr; }
}

.chargement-point,
.dechargement-point {
    background: var(--bg-1);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    padding: var(--sp-4);
    margin-bottom: var(--sp-3);
    position: relative;
    transition: border-color var(--dur-base), background var(--dur-base);
}
.chargement-point:hover,
.dechargement-point:hover {
    border-color: var(--brand-primary);
    background: #fff;
}

/* Header de chaque point (numérotation + bouton supprimer) — généré par JS dans ajouterPointXxx() */
.point-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-3);
}
.point-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ox-green-700);
    background: var(--ox-green-50);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}
.dechargement-point .point-label {
    color: var(--brand-secondary);
    background: var(--ot-burgundy-50);
}
.btn-remove {
    background: transparent;
    border: 1px solid var(--line-200);
    color: var(--ink-500);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--dur-base);
}
.btn-remove:hover {
    background: #FCE8E6;
    border-color: #F5C6C2;
    color: var(--danger);
}

/* Checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
}
@media (max-width: 540px) { .checkbox-grid { grid-template-columns: 1fr; } }
.checkbox-card {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    background: #fff;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-sm);
    padding: var(--sp-3) var(--sp-4);
    min-height: 44px;
    cursor: pointer;
    transition: all var(--dur-base);
    font-size: var(--fs-14);
    color: var(--ink-700);
    position: relative;
}
.checkbox-card:hover { border-color: var(--brand-primary); background: var(--ox-green-50); }
.checkbox-card input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border: 1.5px solid var(--line-300);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--dur-base);
    position: relative;
    margin: 0;
}
.checkbox-card input[type="checkbox"]:checked {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}
.checkbox-card input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px; left: 6px;
    width: 5px; height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-card:has(input:checked) {
    border-color: var(--brand-primary);
    background: var(--ox-green-50);
    color: var(--ink-900);
    font-weight: 500;
}
.checkbox-card .check { display: none; }   /* ancien span vide, plus utilisé */

.form-footer {
    margin-top: var(--sp-5);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--line-100);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.form-footer p {
    margin: 0;
    font-size: var(--fs-14);
    color: var(--ink-500);
    max-width: 60ch;
}

/* ──────────────────────────────────────────────────────────────
   SUCCESS BOX
   ────────────────────────────────────────────────────────────── */

.success-box {
    display: none;
    background: linear-gradient(180deg, #fff, var(--ox-green-50));
    border: 1px solid var(--ox-green-100);
    border-top: 3px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: var(--sp-7) var(--sp-6) var(--sp-6);
    margin: var(--sp-5) 0;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}
.success-box.show {
    display: block;
    animation: successIn 0.5s var(--ease-standard) both;
}
@keyframes successIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.success-icon {
    width: 64px; height: 64px;
    margin: 0 auto var(--sp-4);
    background: linear-gradient(135deg, var(--ox-green-500), var(--ox-green-700));
    color: #fff;
    border-radius: var(--radius-pill);
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: 700;
    box-shadow:
        0 8px 24px -6px rgba(63, 138, 58, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: iconPop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.15s both;
}
.success-icon::before { content: '✓'; }
@keyframes iconPop {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}
.success-box h3 {
    font-family: var(--font-display);
    font-size: var(--fs-24);
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 var(--sp-2);
    letter-spacing: -0.01em;
}
.success-box > p {
    color: var(--fg-2);
    font-size: var(--fs-14);
    margin: 0 0 var(--sp-3);
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}
.success-ref {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--ox-green-100);
    color: var(--brand-primary);
    font-family: 'JetBrains Mono', monospace;
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--fs-18);
    letter-spacing: 0.04em;
    margin: var(--sp-3) 0;
    box-shadow: var(--shadow-sm);
}
/* Récap minimal de la demande publiée (3 lignes) */
.success-recap {
    list-style: none;
    margin: var(--sp-4) auto 0;
    padding: var(--sp-4) var(--sp-5);
    background: #fff;
    border: 1px solid var(--ox-green-100);
    border-radius: var(--radius-md);
    max-width: 420px;
    text-align: left;
}
.success-recap li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--ox-green-50);
    font-size: var(--fs-14);
}
.success-recap li:last-child { border-bottom: none; }
.success-recap .recap-key {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-500);
}
.success-recap .recap-val {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-900);
    text-align: right;
}

.success-meta {
    margin-top: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--ox-green-100);
    font-size: var(--fs-12);
    color: var(--ink-500);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.success-meta::before {
    content: '✉';
    color: var(--brand-primary);
    font-size: 14px;
}
.success-box .btn-submit {
    margin-top: var(--sp-4);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────────────────────
   RESERVATION MODAL
   ────────────────────────────────────────────────────────────── */

/* .reservation-modal est une modal-box interne (l'overlay est .modal-overlay) */
.modal-box.reservation-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    padding: 0;
    text-align: left;
    border-top: none;
}

.reservation-head {
    background: linear-gradient(135deg, var(--brand-secondary), var(--ot-burgundy-800));
    color: #fff;
    padding: var(--sp-5) var(--sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.reservation-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-20);
    font-weight: 700;
    color: #fff;
}
.reservation-close {
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: var(--fs-18);
    transition: background var(--dur-base);
    line-height: 1;
}
.reservation-close:hover { background: rgba(255,255,255,0.3); }

.reservation-body { padding: var(--sp-6); }
.reservation-offer {
    background: linear-gradient(180deg, var(--ot-burgundy-50), var(--bg-1));
    border: 1px solid var(--ot-burgundy-100);
    border-top: 3px solid var(--brand-secondary);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-5);
    margin-bottom: var(--sp-5);
    font-size: var(--fs-14);
    color: var(--ink-700);
    line-height: 1.6;
}
.reservation-offer strong {
    color: var(--ink-900);
    font-family: var(--font-display);
    font-weight: 600;
}
.reservation-offer .resa-ref {
    display: inline-block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 600;
    color: var(--brand-secondary);
    background: #fff;
    border: 1px solid var(--ot-burgundy-100);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-2);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* Méta de l'offre dans la modale réservation (rendu par openReservationModal JS) */
.reservation-offer-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px var(--sp-3);
    margin-top: var(--sp-3);
    font-size: 13px;
}
.reservation-offer-meta dt {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-500);
    padding-top: 2px;
}
.reservation-offer-meta dd {
    margin: 0;
    color: var(--ink-900);
    font-weight: 500;
}
.reservation-offer-price {
    display: inline-block;
    margin-top: var(--sp-3);
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--ot-burgundy-100);
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-18);
    font-weight: 600;
    color: var(--brand-secondary);
    letter-spacing: 0.02em;
}

.reservation-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.reservation-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.reservation-field label {
    font-family: var(--font-display);
    font-size: var(--fs-12);
    font-weight: 600;
    color: var(--ink-700);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.reservation-field input,
.reservation-field textarea {
    padding: 14px var(--sp-3);
    min-height: 44px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-sm);
    font-size: var(--fs-14);
    color: var(--ink-900);
    background: #fff;
    font-family: var(--font-body);
    transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.reservation-field textarea { min-height: 80px; }
.reservation-field input:focus,
.reservation-field textarea:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(96, 16, 16, 0.12);
}
.reservation-field textarea { resize: vertical; min-height: 80px; }

.reservation-price {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.reservation-price-input {
    flex: 1;
    padding: var(--sp-3);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-sm);
    font-size: var(--fs-16);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brand-secondary);
}
.reservation-price-input:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(96, 16, 16, 0.12);
}
.reservation-price-currency {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brand-secondary);
    font-size: var(--fs-16);
    padding: 0 var(--sp-2);
}
.reservation-price-help {
    font-size: var(--fs-12);
    color: var(--fg-3);
    margin-top: var(--sp-1);
}

/* Preview live du gain (calculé par JS quand la contre-offre change) */
.reservation-gain {
    margin-top: var(--sp-2);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
    display: inline-block;
    animation: fadeIn 0.2s var(--ease-standard);
}
.reservation-gain.better {
    background: var(--ot-burgundy-50);
    color: var(--brand-secondary);
    border: 1px solid var(--ot-burgundy-100);
}
.reservation-gain.better::before { content: '↓ '; }
.reservation-gain.higher {
    background: var(--ox-wheat-100);
    color: var(--ox-wheat-600);
    border: 1px solid rgba(168, 138, 63, 0.2);
}
.reservation-gain.higher::before { content: '↑ '; }
.reservation-gain.neutral {
    background: var(--bg-1);
    color: var(--ink-600);
    border: 1px solid var(--line-200);
}

.reservation-note {
    background: var(--ox-wheat-100);
    border-left: 3px solid var(--ox-wheat-600);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
    font-size: var(--fs-12);
    color: var(--ink-700);
    margin-top: var(--sp-3);
}

.reservation-submit {
    background: var(--brand-primary);
    color: #fff;
    border: none;
    padding: var(--sp-4);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-16);
    cursor: pointer;
    transition: background var(--dur-base), transform var(--dur-base);
    margin-top: var(--sp-2);
}
.reservation-submit:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
}
.reservation-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }

/* ──────────────────────────────────────────────────────────────
   AO RESPONSE MODAL — utilise .reservation-modal du design system
   ────────────────────────────────────────────────────────────── */

#aoResponseModal { align-items: center; justify-content: center; }
#aoResponseModal .reservation-offer {
    /* AO desc en mode info-box bordeaux léger */
    color: var(--ink-700);
    font-family: var(--font-body);
    font-size: var(--fs-14);
}
.reservation-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}
@media (max-width: 540px) {
    .reservation-grid-2 { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────
   TOAST (oxyToast créé via JS)
   ────────────────────────────────────────────────────────────── */

.oxy-toast-container {
    position: fixed;
    top: var(--sp-5);
    right: var(--sp-5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    pointer-events: none;
}
.oxy-toast {
    background: #fff;
    color: var(--ink-900);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--brand-secondary);
    font-size: var(--fs-14);
    font-family: var(--font-body);
    font-weight: 500;
    min-width: 280px;
    max-width: 420px;
    animation: oxy-toast-in 0.3s var(--ease-standard);
    pointer-events: auto;
}
.oxy-toast.success { border-left-color: var(--success); }
.oxy-toast.error   { border-left-color: var(--danger); }
.oxy-toast.warning { border-left-color: var(--warning); }
.oxy-toast.info    { border-left-color: var(--info); }
@keyframes oxy-toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.oxy-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: oxy-spin 0.6s linear infinite;
    vertical-align: -2px;
    margin-right: var(--sp-1);
}
@keyframes oxy-spin { to { transform: rotate(360deg); } }

/* ──────────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────────── */

.footer {
    background: #fff;
    border-top: 1px solid var(--line-200);
    padding: var(--sp-6);
    text-align: center;
    color: var(--fg-2);
    font-size: var(--fs-14);
    margin-top: var(--sp-9);
}
.footer p { margin: 0; }
.footer .footer-meta {
    color: var(--ink-500);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.04em;
}
.footer .footer-meta a {
    color: var(--brand-secondary);
    text-decoration: none;
    font-weight: 600;
}
.footer .footer-meta a:hover { text-decoration: underline; }
.footer .footer-sep {
    color: var(--ink-300);
    margin: 0 6px;
}

.footer-admin {
    margin-top: var(--sp-3);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--line-100);
}
.footer-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 14px;
    color: var(--ink-500);
    background: transparent;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.04em;
    transition: all 200ms var(--ease-standard);
}
.footer-admin-link:hover {
    background: var(--ot-burgundy-50);
    color: var(--brand-secondary);
    border-color: var(--ot-burgundy-100);
    text-decoration: none;
}

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .header-content { padding: var(--sp-3) var(--sp-4); flex-wrap: wrap; }
    .nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: var(--sp-1); overflow-x: auto; }
    .nav a { white-space: nowrap; padding: var(--sp-2) var(--sp-3); font-size: var(--fs-12); }
    .main { padding: var(--sp-5) var(--sp-4) var(--sp-7); }
    .hero { padding: var(--sp-6) var(--sp-4); }
    .form-card { padding: var(--sp-4); }
    .form-grid { grid-template-columns: 1fr; }
    .reservation-body { padding: var(--sp-4); }
    .reservation-head { padding: var(--sp-4); }
}

@media (max-width: 540px) {
    .hero-content h1 { font-size: var(--fs-24); }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .table-wrapper th, .table-wrapper td { padding: var(--sp-2); font-size: var(--fs-12); }
    .vehicule-chip { font-size: 10px; padding: 2px 6px; }
    .modal-box { padding: var(--sp-5) var(--sp-4); }
}

/* ──────────────────────────────────────────────────────────────
   UTILITIES
   ────────────────────────────────────────────────────────────── */

[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
