/* =====================================================================
   Annuaire VTC — Charte graphique
   Palette du deck de présentation (voir prompt)
   ===================================================================== */

:root {
    --navy: #0A1628;
    --navy-2: #13243F;
    --white: #FFFFFF;
    --bg-soft: #F4F6FA;
    --border: #E2E8F0;
    --text: #0F172A;
    --muted: #64748B;
    --gold: #F4B942;
    --gold-dk: #C99320;
    --teal: #00BFA5;
    --teal-dk: #008B7A;

    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 4px 12px rgba(15, 23, 42, .06);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, .10);

    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.55;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; color: var(--text); margin: 0 0 .5em; line-height: 1.25; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

a { color: var(--teal-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* ==================== HEADER ==================== */
.site-header {
    background: var(--navy);
    color: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--navy-2);
    position: sticky; top: 0; z-index: 100;
}
.site-header a { color: var(--white); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header .logo { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; }
.site-header .logo .accent { color: var(--gold); }
.site-header nav.nav-main { display: flex; gap: 1.5rem; align-items: center; }
.site-header nav a { font-size: .95rem; }
.site-header nav a:hover { color: var(--gold); text-decoration: none; }

/* ==================== BURGER MOBILE ==================== */
.nav-burger {
    display: none;
    background: transparent; border: 0;
    width: 44px; height: 44px;
    cursor: pointer; padding: 8px;
    flex-direction: column; justify-content: center; gap: 5px;
}
.nav-burger span {
    display: block; height: 2px; width: 100%;
    background: var(--white); border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(10, 22, 40, .55); z-index: 90;
    opacity: 0; transition: opacity .25s;
}
.nav-backdrop.show { display: block; opacity: 1; }

/* Croix de fermeture du drawer mobile (cachée par défaut, affichée dans le drawer) */
.nav-close {
    display: none;
    position: absolute; top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    background: transparent; border: 0;
    color: var(--white); font-size: 2rem; line-height: 1;
    cursor: pointer; padding: 0;
    border-radius: 50%;
    transition: background .15s;
}
.nav-close:hover { background: rgba(255, 255, 255, .1); }

/* Bouton Connexion — version desktop, look or pour ressortir sur le navy */
.btn-login {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .5rem 1rem;
    background: var(--gold);
    color: var(--navy) !important;
    border-radius: var(--radius);
    font-weight: 600; font-size: .9rem;
    transition: background .15s, transform .15s;
}
.btn-login:hover { background: #e4a82e; text-decoration: none; transform: translateY(-1px); }

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    text-align: center;
}
.hero h1 { color: var(--white); font-size: 2.75rem; max-width: 800px; margin: 0 auto 1rem; }
.hero .subtitle { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 700px; margin: 0 auto 2rem; }

.search-bar {
    background: var(--white);
    color: var(--text);
    border-radius: 999px;
    padding: .5rem .5rem .5rem 1.25rem;
    display: flex;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
    transition: border-color .15s ease, box-shadow .15s ease;
}
/* Loupe intégrée (icône SVG, aucun markup requis) */
.search-bar::before {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-right: .6rem;
    opacity: .5;
    background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2364748B'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='7'/%3E%3Cpath%20d='M21%2021l-4.35-4.35'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* État focus premium : liseré doré + halo doux */
.search-bar:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(244, 185, 66, .20), var(--shadow-lg);
}
.search-bar input {
    border: 0;
    flex: 1;
    font-size: 1rem;
    padding: .75rem 0;
    background: transparent;
    outline: none;
    color: var(--text);
}
.search-bar button {
    background: var(--teal);
    color: var(--white);
    border: 0;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.search-bar button:hover { background: var(--teal-dk); }

/* ==================== BUTTONS ==================== */
.btn { display: inline-block; padding: .75rem 1.5rem; border-radius: var(--radius); font-weight: 600; cursor: pointer; border: 0; font-size: .95rem; transition: all .15s; text-align: center; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dk); text-decoration: none; }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dk); text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }
.btn-danger { background: #DC2626; color: var(--white); }
.btn-success { background: #16A34A; color: var(--white); }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s;
}
.card-accent { border-left: 4px solid var(--gold); }
.card-accent-teal { border-left: 4px solid var(--teal); }
.card:hover { box-shadow: var(--shadow); }

/* ==================== BADGES ==================== */
.badge { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.4; }
.badge-free      { background: #F1F5F9; color: #475569; }
.badge-starter   { background: #E2E8F0; color: #475569; }
.badge-pro       { background: var(--gold); color: var(--navy); }
.badge-business  { background: var(--gold-dk); color: var(--white); }
.badge-enterprise{ background: var(--navy); color: var(--white); }
.badge-pending   { background: #FEF3C7; color: #92400E; }
.badge-active    { background: #D1FAE5; color: #065F46; }
.badge-paused    { background: #E2E8F0; color: #475569; }
.badge-suspended { background: #FEE2E2; color: #991B1B; }
.badge-locked    { background: #F1F5F9; color: #64748B; font-size: .7rem; }

/* ==================== ALERTS ==================== */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-success { background: #ECFDF5; border-left: 4px solid #10B981; color: #064E3B; }
.alert-error   { background: #FEF2F2; border-left: 4px solid #EF4444; color: #7F1D1D; }
.alert-info    { background: #EFF6FF; border-left: 4px solid var(--teal); color: #1E3A8A; }
.alert-warning { background: #FFFBEB; border-left: 4px solid var(--gold); color: #78350F; }

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; color: var(--text); }
.form-group .help { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.form-group .error { font-size: .8rem; color: #DC2626; margin-top: .25rem; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: .65rem .9rem; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: .95rem; font-family: inherit; background: var(--white); color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,191,165,.15);
}
.form-textarea { min-height: 120px; resize: vertical; font-family: inherit; }

/* ==================== TABLE ADMIN ==================== */
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
.table th { background: var(--bg-soft); font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .03em; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--bg-soft); }

/* ==================== ADMIN LAYOUT ==================== */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--bg-soft); }
.admin-sidebar { background: var(--navy); color: var(--white); padding: 1.5rem 1rem; }
.admin-sidebar .brand { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 2rem; color: var(--gold); padding: 0 .5rem; }
.admin-sidebar nav a { display: block; color: rgba(255,255,255,.85); padding: .65rem .85rem; border-radius: var(--radius); font-size: .9rem; margin-bottom: .15rem; }
.admin-sidebar nav a:hover { background: var(--navy-2); text-decoration: none; }
.admin-sidebar nav a.active { background: var(--gold); color: var(--navy); font-weight: 600; }
.admin-main { padding: 2rem 2.5rem; }
.admin-main h1 { font-size: 1.75rem; margin-bottom: 1.5rem; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.kpi { background: var(--white); padding: 1.25rem; border-radius: var(--radius); border-left: 4px solid var(--gold); box-shadow: var(--shadow-sm); }
.kpi .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.kpi .value { font-size: 1.75rem; font-weight: 700; color: var(--text); font-family: var(--font-serif); }
.kpi.teal { border-left-color: var(--teal); }

/* ==================== DRIVER PROFILE PAGE ==================== */
.profile-header {
    background: var(--navy);
    color: var(--white);
    padding: 2.5rem 0;
}
.profile-header .container { display: flex; gap: 2rem; align-items: center; }
.profile-header .avatar {
    width: 140px; height: 140px; border-radius: 50%; background: var(--navy-2);
    display: flex; align-items: center; justify-content: center; font-family: var(--font-serif);
    font-size: 3rem; color: var(--gold); border: 4px solid var(--gold);
    flex-shrink: 0; overflow: hidden;
}
.profile-header .avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-header h1 { color: var(--white); margin: 0 0 .25rem; font-size: 2rem; }
.profile-header .meta { color: rgba(255,255,255,.75); font-size: .95rem; }
.profile-header .rating { color: var(--gold); font-weight: 600; font-size: 1.1rem; }

.profile-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; padding: 2.5rem 0; }
.profile-section { margin-bottom: 2rem; }
.profile-section h2 { font-size: 1.35rem; margin-bottom: .85rem; padding-bottom: .5rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.profile-section ul { padding-left: 1.25rem; margin: 0; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); }
.gallery .placeholder {
    aspect-ratio: 16/10; background: var(--bg-soft); border: 2px dashed var(--border);
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: .9rem; text-align: center; padding: 1rem;
}

.review-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: 0; }
.review-item .stars { color: var(--gold); font-size: 1rem; }
.review-item .author { font-weight: 600; }
.review-item .date { color: var(--muted); font-size: .8rem; }

.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-size: 1rem; margin-bottom: .35rem; }
.faq-item p { margin: 0; color: var(--muted); font-size: .9rem; }

.reservation-form { background: var(--bg-soft); padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); position: sticky; top: 2rem; }
.reservation-form h3 { margin-top: 0; }
.step-indicator { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.step-indicator .step { flex: 1; height: 4px; background: var(--border); border-radius: 2px; }
.step-indicator .step.active { background: var(--teal); }
.recap-box .recap-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--border); }
.recap-box .recap-row:last-child { border-bottom: 0; }
.recap-box .recap-row span { color: var(--muted); font-size: .8rem; }
.recap-box .recap-row strong { color: var(--text); text-align: right; }

/* ==================== FOOTER ==================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 3rem 0 2rem; margin-top: 4rem; }
.site-footer .container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; }
.site-footer h4 { color: var(--gold); font-size: .9rem; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer > .container > div > a { display: block; padding: .15rem 0; font-size: .9rem; }
.site-footer h4 { color: var(--gold); font-size: .95rem; margin-bottom: .85rem; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .05em; }
.site-footer a { color: rgba(255,255,255,.7); display: block; margin-bottom: .35rem; font-size: .9rem; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.site-footer .legal { grid-column: 1 / -1; padding-top: 2rem; border-top: 1px solid var(--navy-2); margin-top: 2rem; font-size: .8rem; text-align: center; }

/* ==================== RESPONSIVE ==================== */

/* Helpers de scroll horizontal pour tables sur mobile */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 600px; }

@media (max-width: 900px) {
    .container, .container-sm { padding: 0 1rem; }
    .profile-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0; }
    .reservation-form { position: static; }

    /* Layouts admin/driver/company : sidebar passe en top bar collapsible */
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: sticky; top: 0; z-index: 10;
        padding: .75rem 1rem;
        max-height: 56px; overflow: hidden;
        transition: max-height .25s ease;
    }
    .admin-sidebar.expanded { max-height: 80vh; overflow-y: auto; padding: 1rem; }
    .admin-sidebar .brand {
        margin: 0 0 .5rem;
        font-size: 1.1rem;
        cursor: pointer;
        display: flex; align-items: center; justify-content: space-between;
    }
    .admin-sidebar .brand::after {
        content: '☰'; font-size: 1.3rem; color: var(--gold);
    }
    .admin-sidebar nav { display: none; }
    .admin-sidebar.expanded nav { display: block; }
    .admin-sidebar nav a { padding: .85rem 1rem; min-height: 44px; display: flex; align-items: center; }
    .admin-main { padding: 1.25rem 1rem; }

    /* Header public */
    .site-footer .container { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 1.85rem; line-height: 1.2; }
    .hero .subtitle { font-size: 1rem; }
    .search-bar { padding: .4rem .4rem .4rem 1rem; }
    .search-bar input { font-size: .95rem; padding: .65rem 0; }
    .profile-header .container { flex-direction: column; text-align: center; }
    .profile-header .avatar { width: 100px; height: 100px; font-size: 2.5rem; }
    .profile-header h1 { font-size: 1.5rem; }

    /* Sections */
    .section { padding: 2.5rem 0; }
    h1 { font-size: 1.65rem; line-height: 1.2; }
    h2 { font-size: 1.35rem; }

    /* Cards admin avec actions empilées sur mobile */
    .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .kpi { padding: 1rem; }
    .kpi .value { font-size: 1.4rem; }
    .kpi .label { font-size: .7rem; }

    /* Forms 2 colonnes → 1 colonne */
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:140px 1fr"],
    [style*="grid-template-columns: 140px 1fr"],
    [style*="grid-template-columns:1fr 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr 1fr"],
    [style*="grid-template-columns:2fr 1fr"],
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns:1fr 380px"],
    [style*="grid-template-columns: 1fr 380px"],
    [style*="grid-template-columns:300px 1fr"],
    [style*="grid-template-columns: 300px 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Tables génériques : scroll horizontal automatique */
    .table { display: block; overflow-x: auto; white-space: nowrap; min-width: 0; }
    .table th, .table td { padding: .65rem .75rem; font-size: .85rem; }

    /* Boutons : taille tactile min 44px */
    .btn { min-height: 44px; padding: .65rem 1.25rem; }
    .btn-sm { min-height: 36px; padding: .4rem .75rem; }

    /* Inputs : prévenir le zoom iOS au focus */
    .form-input, .form-select, .form-textarea {
        font-size: 16px; /* iOS ne zoom pas si ≥ 16px */
    }
}

/* Drawer mobile pour la nav principale (étendu jusqu'aux tablettes 900px) */
@media (max-width: 900px) {
    .nav-burger { display: flex; }
    .site-header nav.nav-main {
        position: fixed; top: 0; right: 0;
        height: 100vh; width: 280px; max-width: 85vw;
        background: var(--navy);
        flex-direction: column; align-items: stretch;
        gap: 0; padding: 5rem 1.25rem 2rem;
        transform: translateX(100%);
        transition: transform .25s ease;
        z-index: 95; overflow-y: auto;
        box-shadow: -4px 0 16px rgba(0, 0, 0, .25);
    }
    .site-header nav.nav-main.open { transform: translateX(0); }
    .site-header nav.nav-main a {
        padding: 1rem .5rem;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--navy-2);
        min-height: 48px;
        display: flex; align-items: center;
    }
    .site-header nav.nav-main a.btn {
        margin-top: 1rem;
        justify-content: center;
        border-radius: var(--radius);
        border-bottom: 0;
    }
    .site-header nav.nav-main a.btn-login {
        margin-top: 1.25rem;
        padding: .9rem 1rem;
        font-size: 1rem;
        box-shadow: 0 4px 12px rgba(244, 185, 66, .35);
    }
    /* Affiche la croix dans le drawer */
    .nav-close { display: block; }
}

@media (max-width: 600px) {
    .gallery { grid-template-columns: 1fr; }
    .site-footer .container { grid-template-columns: 1fr; text-align: center; }
    .site-footer h4 { margin-top: 1rem; }
    .site-header .container { gap: .5rem; }
    .site-header .logo { font-size: 1.1rem; }

    .hero h1 { font-size: 1.5rem; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }

    /* Stack flex actions sur très petit écran */
    .reservation-form { padding: 1rem; }

    /* Tables admin : empile en card-like sur mobile */
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; white-space: normal; }
    .table tr {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: .5rem;
        margin-bottom: .75rem;
        background: var(--white);
    }
    .table td {
        border: 0;
        padding: .35rem .5rem;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }
    .table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--muted);
        font-size: .75rem;
        text-transform: uppercase;
    }
}

/* Pas de focus zoom sur iOS, mais on garde la lisibilité desktop */
@media (min-width: 901px) {
    .admin-sidebar .brand::after { display: none; }
}

/* ==================== TABLET (601-900px) ==================== */
@media (max-width: 900px) and (min-width: 601px) {
    /* CTA box homepage : boutons en ligne avec wrap */
    .cta-box .cta-buttons .btn { flex: 0 1 auto; }
    /* Footer : 3 colonnes sur tablette */
    .site-footer .container { grid-template-columns: repeat(3, 1fr); }
}

/* ==================== TINY (<= 400px) ==================== */
@media (max-width: 400px) {
    .container, .container-sm { padding: 0 .75rem; }
    .site-header .logo { font-size: 1rem; }
    .hero { padding: 2rem 0 1.5rem; }
    .hero h1 { font-size: 1.3rem; line-height: 1.25; }
    .hero .subtitle { font-size: .9rem; }
    .search-bar { padding: .3rem .3rem .3rem .75rem; }
    .search-bar input { font-size: 15px; padding: .5rem 0; min-width: 0; }
    .search-bar button { padding: .5rem .9rem; font-size: .85rem; white-space: nowrap; }
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1.05rem; }

    /* KPIs en 1 colonne sur très petit écran */
    .kpi-grid { grid-template-columns: 1fr; }

    /* Boutons : full-width sur tiny */
    .btn { width: 100%; }
    .btn-sm { width: auto; }

    /* CTA box : boutons en colonne pleine largeur */
    .cta-box { padding: 2rem 1rem !important; }
    .cta-box .cta-buttons { flex-direction: column; }
    .cta-box .cta-buttons .btn { width: 100%; }

    /* Section general : moins de padding */
    .section { padding: 2rem 0; }

    /* Cards : moins de padding */
    .card { padding: 1rem; }

    /* Avatar profil header */
    .profile-header .avatar { width: 80px; height: 80px; font-size: 2rem; }
    .profile-header h1 { font-size: 1.3rem; }

    /* Header burger plus compact */
    .nav-burger { width: 40px; height: 40px; }
}

/* ==================== FIX BOUTONS CÔTE À CÔTE (toutes tailles ≤600px) ==================== */
/* Si plusieurs <a class="btn"> consécutifs (frères directs) — empile sur mobile */
@media (max-width: 600px) {
    .cta-box .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-box .cta-buttons .btn { width: 100%; }

    /* Sécurité : boutons consécutifs dans un même parent (ancien code sans wrapper) */
    .btn + .btn { margin-left: 0; }

    /* Inscription société récap palier */
    .card.card-accent[style*="position:sticky"] { position: static !important; }
}

/* ==================== UTILS ==================== */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; } .gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }

.section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section h2 { text-align: center; margin-bottom: 2.5rem; }

.lock-icon::before { content: "🔒 "; font-size: .85em; }
