/* ============================================================
   PROST — Design system corporate (bleu de marque #0033CC)
   ============================================================ */

:root {
    --navy-950: #04081c;
    --navy-900: #071233;
    --navy-800: #0033cc;
    --navy-700: #0033cc;
    --navy-600: #0033cc;
    --navy-500: #0033cc;
    --blue-accent: #0033cc;
    --blue-accent-dark: #0033cc;
    --accent-cyan: #0033cc;
    --ink-900: #0d1526;
    --ink-600: #2d3748;
    --ink-400: #566176;
    --border-soft: #e3e8f0;
    --bg-soft: #f5f7fb;
    --white: #ffffff;
    --success: #1b8a5a;
    --danger: #c0392b;
    --warning: #b7791f;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(4, 11, 40, 0.08);
    --shadow-md: 0 8px 24px rgba(4, 11, 40, 0.10);
    --shadow-lg: 0 20px 50px rgba(4, 11, 40, 0.18);
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    color: var(--ink-900);
    background: var(--bg-soft);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Topbar / annonce ---------- */
.announcement-bar {
    background: var(--navy-950);
    color: #e3ebfa;
    font-size: 14.5px;
    padding: 7px 0;
    overflow: hidden;
    white-space: nowrap;
}
.announcement-bar .track {
    display: inline-block;
    animation: scroll-left 72s linear infinite;
    padding-left: 100%;
}
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ---------- Navbar ---------- */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--navy-900);
}
.brand-logo { height: 40px; width: auto; display: block; }
.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}
.nav-links a {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--ink-600);
    transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-800); }

/* ---- Menu déroulant "PROST" (regroupe Qui sommes-nous / Pourquoi nous / FAQ / Contact) ---- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: flex; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--ink-700);
    padding: 0; white-space: nowrap;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--navy-800); }
.nav-dropdown-toggle i { font-size: 12.5px; transition: transform .18s; }
.nav-dropdown-toggle.open i { transform: rotate(180deg); }
.nav-dropdown-menu {
    display: none;
    position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
    min-width: 210px; padding: 8px;
    background: var(--white); border: 1px solid var(--border-soft); border-radius: 12px;
    box-shadow: var(--shadow-lg); z-index: 200;
}
.nav-dropdown-menu.open { display: block; }
.nav-dropdown-menu a {
    display: block; padding: 10px 12px; border-radius: 8px;
    font-size: 15.5px; font-weight: 600; color: var(--ink-700);
}
.nav-dropdown-menu a:hover { background: var(--bg-soft); color: var(--navy-800); }
.nav-dropdown-menu a.active { background: #eef3ff; color: var(--blue-accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--border-soft); border-radius: 8px;
    color: var(--navy-900); font-size: 19px; cursor: pointer;
}

.icon-btn {
    position: relative;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--navy-800);
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    transition: background .15s;
}
.icon-btn:hover { background: #eef1f8; }
.cart-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--blue-accent);
    color: #fff;
    font-size: 12px; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .15s ease;
    line-height: 1;
}
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-900); }
.btn-accent { background: var(--blue-accent); color: #fff; }
.btn-accent:hover { background: var(--blue-accent-dark); }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-600); }
.btn-ghost:hover { color: var(--navy-900); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 14.5px; }
.btn-danger { background: var(--danger); color: #fff; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(0,51,204,0.25), transparent 45%),
                       radial-gradient(circle at 10% 90%, rgba(201,162,75,0.15), transparent 40%);
    pointer-events: none;
}
.hero .container { position: relative; padding: 96px 24px 90px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #cfdcf5;
    padding: 6px 14px; border-radius: 30px;
    font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: 46px; line-height: 1.12; letter-spacing: -0.02em;
    font-weight: 800; margin: 0 0 20px;
}
.hero h1 span { color: #ffffff; }
.hero p.lead { font-size: 17px; color: #e3ebfa; max-width: 520px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 48px; }
.hero-stats div strong { display: block; font-size: 24px; font-weight: 800; }
.hero-stats div span { font-size: 14px; color: #dbe5fb; }
.hero-panel {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(6px);
}
.hero-panel .row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hero-panel .row:last-child { border-bottom: none; }
.hero-panel .row .ico {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(0,51,204,0.18); color: #ffffff;
    display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.hero-panel .row strong { display: block; font-size: 16px; }
.hero-panel .row span { font-size: 14px; color: #dbe5fb; }

/* ---------- Sections génériques ---------- */
.section { padding: 76px 0; }
.section-tight { padding: 48px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .eyebrow {
    display: inline-block; color: var(--blue-accent); font-weight: 800;
    font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--navy-900); }
.section-head p { color: var(--ink-600); font-size: 17px; margin: 0; }
.section-bg-alt { background: var(--white); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* ---------- Grille catégories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.cat-card {
    background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 26px 18px; text-align: center; transition: all .15s;
}
.cat-card:hover { border-color: var(--blue-accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-card .ico {
    width: 52px; height: 52px; border-radius: 12px; margin: 0 auto 14px;
    background: var(--bg-soft); color: var(--navy-700);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.cat-card strong { display: block; font-size: 16px; color: var(--navy-900); }

/* ---------- Cartes produit ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
    background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius);
    overflow: hidden; transition: all .18s; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: #d3dcec; }
.product-card .thumb {
    aspect-ratio: 4/3; background: var(--bg-soft) center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; color: var(--ink-400); font-size: 30px;
    position: relative;
}
.product-card .badge-featured {
    position: absolute; top: 10px; left: 10px;
    background: var(--accent-cyan); color: #fff; font-size: 12.5px; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
}
.product-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .cat-tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-accent); }
.product-card h3 { font-size: 17px; font-weight: 700; margin: 0; color: var(--navy-900); }
.product-card p.desc { font-size: 14.5px; color: var(--ink-600); margin: 0; flex: 1; }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.product-card .price { font-size: 18px; font-weight: 800; color: var(--navy-900); }
.product-card .price .old { font-size: 14px; color: var(--ink-400); text-decoration: line-through; font-weight: 500; margin-right: 6px; }

/* ---------- Formulaires ---------- */
.form-card {
    background: var(--white); border: 1px solid var(--border-soft); border-radius: 14px;
    padding: 40px; box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 15px; font-weight: 700; color: var(--navy-900); margin-bottom: 7px; }
.form-control {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 8px;
    font-size: 16px; font-family: var(--font-sans); color: var(--ink-900); background: var(--white);
    transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(0,51,204,0.12); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Alertes / flash ---------- */
.alert { padding: 13px 18px; border-radius: 8px; font-size: 15.5px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: #e9f7ef; color: var(--success); border-color: #c7ecd7; }
.alert-danger  { background: #fbeaea; color: var(--danger); border-color: #f3cfcd; }
.alert-warning { background: #fdf3e0; color: var(--warning); border-color: #f6e0ad; }
.alert-info    { background: #e9f1fc; color: var(--blue-accent-dark); border-color: #c9dcf7; }

/* ---------- Tableaux ---------- */
table.table { width: 100%; border-collapse: collapse; background: var(--white); }
table.table th, table.table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 15.5px; }
table.table th { font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-400); font-weight: 700; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 13.5px; font-weight: 700; }
.status-pending{background:#fdf3e0;color:var(--warning);} .status-paid,.status-completed,.status-delivered{background:#e9f7ef;color:var(--success);}
.status-cancelled,.status-failed,.status-refunded{background:#fbeaea;color:var(--danger);}
.status-processing,.status-shipped{background:#e9f1fc;color:var(--blue-accent-dark);}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-950); color: #a9b6cf; padding: 64px 0 24px; margin-top: 80px; }
footer.site-footer h4 { color: #fff; font-size: 16.5px; font-weight: 700; margin: 0 0 18px; }
footer.site-footer .cols { display: grid; grid-template-columns: 1fr 0.8fr 0.9fr 1.3fr; gap: 32px; }
footer.site-footer li { margin-bottom: 10px; font-size: 15.5px; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 44px; padding-top: 22px; font-size: 14.5px; display: flex; justify-content: space-between; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; }

/* ---------- Responsive ---------- */

/* ---- Menu mobile/tablette : le menu horizontal devient un panneau déroulant ----
   Seuil volontairement plus large que les autres breakpoints (1240px plutôt que
   980px) : avec 7 liens de navigation, le menu horizontal devient trop à l'étroit
   avant même la bascule des grilles de contenu. */
@media (max-width: 1240px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-soft);
        box-shadow: var(--shadow-lg);
        padding: 10px 16px 16px;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .18s ease, opacity .18s ease;
        z-index: 99;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-links > a { padding: 13px 6px; border-bottom: 1px solid var(--border-soft); font-size: 16.5px; white-space: normal; }
    .nav-links > a:last-child { border-bottom: none; }
    .navbar .container { position: relative; }
    .nav-actions { gap: 8px; }

    /* Dans le panneau mobile, le menu "PROST" s'ouvre en accordéon plutôt qu'en popover flottant */
    .nav-dropdown { border-bottom: 1px solid var(--border-soft); }
    .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 13px 6px; font-size: 16.5px; }
    .nav-dropdown-menu {
        display: none; position: static; transform: none; width: 100%;
        box-shadow: none; border: none; border-radius: 0; padding: 0 0 6px 14px; background: transparent;
    }
    .nav-dropdown-menu.open { display: block; }
    .nav-dropdown-menu a { padding: 11px 6px; font-size: 16px; color: var(--ink-600); }
}
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    footer.site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .hero .container { padding: 56px 20px 60px; }
    .section { padding: 56px 0; }
    footer.site-footer .cols { grid-template-columns: 1fr; gap: 32px; }
    footer.site-footer .bottom { flex-direction: column; gap: 8px; text-align: center; }
    .form-card { padding: 26px 20px; }
    .brand-logo { height: 32px; }
}
@media (max-width: 400px) {
    .nav-actions .btn-sm { padding: 8px 12px; font-size: 13.5px; }
    .hero h1 { font-size: 26px; }
}

/* ---------- Nouvelles pages de contenu (À propos / Pourquoi nous / FAQ) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.value-card {
    background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 28px 24px; transition: all .18s;
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d3dcec; }
.value-card .ico {
    width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
    background: var(--bg-soft); color: var(--blue-accent);
    display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.value-card h3 { font-size: 16px; font-weight: 800; color: var(--navy-900); margin: 0 0 8px; }
.value-card p { font-size: 15px; color: var(--ink-600); margin: 0; line-height: 1.6; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-strip .num { font-size: 34px; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.stat-strip .lbl { font-size: 14.5px; color: rgba(255,255,255,0.75); margin-top: 4px; }
@media (max-width: 768px) { .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; } }

.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border-soft); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ""; position: absolute; left: -36px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--blue-accent); border: 4px solid var(--white); box-shadow: 0 0 0 1px var(--border-soft);
}
.timeline-item strong { display: block; color: var(--navy-900); font-size: 16.5px; margin-bottom: 4px; }
.timeline-item span { color: var(--ink-600); font-size: 15px; line-height: 1.6; }

.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: center; font-size: 15px; border-bottom: 1px solid var(--border-soft); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-weight: 700; color: var(--navy-900); }
.compare-table thead th { background: var(--bg-soft); font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-600); }
.compare-table thead th.brand-col { background: var(--navy-900); color: #fff; }
.compare-table td.brand-col { background: #f3f6ff; font-weight: 700; }
.compare-table .yes { color: var(--success); font-size: 17px; }
.compare-table .no { color: var(--ink-400); font-size: 17px; }
@media (max-width: 700px) { .compare-table { font-size: 13.5px; } .compare-table th, .compare-table td { padding: 10px 8px; } }

.faq-search { position: relative; max-width: 520px; margin: 0 auto 36px; }
.faq-search input {
    width: 100%; padding: 14px 18px 14px 46px; border-radius: 30px; border: 1px solid var(--border-soft);
    font-family: var(--font-sans); font-size: 16px; background: var(--white);
}
.faq-search input:focus { outline: none; border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(0,51,204,0.1); }
.faq-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-400); }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.faq-cats button {
    padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border-soft); background: var(--white);
    font-size: 14.5px; font-weight: 600; color: var(--ink-600); cursor: pointer; font-family: var(--font-sans);
}
.faq-cats button.active, .faq-cats button:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.faq-item { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 16px; color: var(--navy-900);
}
.faq-q i { transition: transform .2s; color: var(--blue-accent); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 22px 20px; margin: 0; font-size: 15px; color: var(--ink-600); line-height: 1.7; }
.faq-empty { text-align: center; color: var(--ink-400); font-size: 15.5px; padding: 30px; }

/* BUG CORRIGÉ : les 7 pages de l'espace client (tableau de bord, commandes, liste de
   souhaits, profil, abonnements, affiliation, notifications) utilisaient toutes la même
   grille figée "sidebar 240px + contenu", sans aucun repli mobile — la sidebar écrasait le
   contenu sur petit écran. Classe partagée avec repli responsive sous 860px. */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; gap: 20px; } }

.stock-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.stock-in { background: #e9f7ef; color: var(--success); }
.stock-low { background: #fdf3e0; color: var(--warning); }
.stock-out { background: #fbeaea; color: var(--danger); }

/* ---------- Grilles 2 colonnes réutilisables (panier, checkout, fiche produit…) ----------
   BUG CORRIGÉ : plusieurs pages fixaient `grid-template-columns` en style inline, ce qui est
   impossible à surcharger avec une media query -> ces sections ne devenaient JAMAIS responsives
   sur mobile/tablette (colonnes écrasées côte à côte, tableaux qui débordent). Remplacé par ces
   classes utilitaires qui repassent en une seule colonne sous 860px. */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.two-col-even { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.two-col-checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
@media (max-width: 900px) { .admin-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .admin-stats-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
    .two-col, .two-col-even, .two-col-checkout { grid-template-columns: 1fr; gap: 26px; }
    .two-col-even > div:first-child { order: 1; }
}
.two-col-admin { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .two-col-admin { grid-template-columns: 1fr; } }

/* ---------- Notifications (client) ---------- */
.notif-wrap { position: relative; }
.notif-dropdown {
    display: none;
    position: absolute; top: 48px; right: 0;
    width: 340px; max-height: 420px; overflow-y: auto;
    background: var(--white); border: 1px solid var(--border-soft); border-radius: 12px;
    box-shadow: var(--shadow-lg); z-index: 200;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-head { padding: 14px 18px; font-weight: 700; font-size: 15.5px; color: var(--navy-900); border-bottom: 1px solid var(--border-soft); }
.notif-item { display: block; padding: 12px 18px; border-bottom: 1px solid var(--border-soft); }
.notif-item:hover { background: var(--bg-soft); }
.notif-item strong { display: block; font-size: 15px; color: var(--navy-900); margin-bottom: 3px; }
.notif-item span { font-size: 14px; color: var(--ink-600); }
.notif-item.unread { background: #eef3ff; }
.notif-empty { text-align: center; color: var(--ink-400); font-size: 14.5px; padding: 24px 18px; margin: 0; }
.notif-dropdown-footer { display: block; text-align: center; padding: 12px; font-size: 14px; font-weight: 700; color: var(--blue-accent); border-top: 1px solid var(--border-soft); }

/* ---------- Live chat (widget flottant) ---------- */
#chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 300; }
#chat-toggle {
    width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--blue-accent); color: #fff; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); transition: transform .15s;
}
#chat-toggle:hover { transform: scale(1.06); background: var(--blue-accent-dark); }
#chat-panel {
    display: none; flex-direction: column;
    position: absolute; bottom: 74px; right: 0;
    width: 340px; height: 460px; max-height: 70vh;
    background: var(--white); border: 1px solid var(--border-soft); border-radius: 14px;
    box-shadow: var(--shadow-lg); overflow: hidden;
}
#chat-panel.open { display: flex; }
#chat-panel-head {
    background: var(--navy-900); color: #fff; padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 16px;
}
#chat-panel-head button { background: none; border: none; color: #fff; opacity: .8; cursor: pointer; font-size: 16.5px; }
#chat-panel-head button:hover { opacity: 1; }
#chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
#chat-empty { font-size: 14.5px; color: var(--ink-600); margin: 0; line-height: 1.6; }
.chat-bubble { max-width: 85%; padding: 9px 13px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.chat-from-me { align-self: flex-end; background: var(--blue-accent); color: #fff; border-bottom-right-radius: 3px; }
.chat-from-agent { align-self: flex-start; background: var(--bg-soft); color: var(--ink-900); border-bottom-left-radius: 3px; }
.chat-from-agent strong { font-size: 13px; color: var(--blue-accent); }
#chat-guest-fields { display: flex; gap: 8px; padding: 0 14px 10px; }
#chat-guest-fields input {
    flex: 1; min-width: 0; padding: 8px 10px; font-size: 14px;
    border: 1px solid var(--border-soft); border-radius: 7px; font-family: var(--font-sans);
}
#chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border-soft); }
#chat-attach-btn {
    width: 36px; height: 40px; display: flex; align-items: center; justify-content: center;
    color: var(--ink-600); cursor: pointer; border-radius: 8px; flex-shrink: 0; font-size: 16px;
}
#chat-attach-btn:hover { background: var(--bg-soft); color: var(--blue-accent); }
#chat-attach-preview { padding: 0 14px 8px; font-size: 13px; color: var(--ink-600); }
#chat-input {
    flex: 1; resize: none; height: 40px; padding: 9px 12px; font-size: 15px;
    border: 1px solid var(--border-soft); border-radius: 8px; font-family: var(--font-sans);
}
#chat-input:focus { outline: none; border-color: var(--blue-accent); }
#chat-form button {
    width: 40px; height: 40px; border-radius: 8px; border: none; cursor: pointer;
    background: var(--blue-accent); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#chat-form button:hover { background: var(--blue-accent-dark); }

@media (max-width: 560px) {
    #chat-panel { width: calc(100vw - 32px); right: -8px; }
    .notif-dropdown { width: calc(100vw - 48px); right: -8px; }
}
