* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

header {
    background: linear-gradient(135deg, #1f4788 0%, #2d5a3d 100%);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.btn-primary {
    background: #f39c12;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    font-size: 14px;
}

.btn-primary:hover {
    background: #e67e22;
}

.btn-secondary {
    background: white;
    color: #1f4788;
    padding: 12px 25px;
    border: 2px solid #1f4788;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #1f4788;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: background 0.3s;
}

.btn-danger:hover {
    background: #c0392b;
}

/* LANDING PAGE */
.hero {
    background: linear-gradient(135deg, #1f4788 0%, #2d5a3d 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons button {
    font-size: 16px;
    padding: 15px 40px;
}

.features {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #1f4788;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #1f4788;
}

.pricing {
    background: #f8f9fa;
    padding: 80px 20px;
    margin: 80px 0;
}

.pricing-content {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #1f4788;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.price-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid #1f4788;
    transition: transform 0.3s;
}

.price-card.featured {
    border-top: 4px solid #f39c12;
    transform: scale(1.05);
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1f4788;
}

.price-tag {
    font-size: 36px;
    font-weight: bold;
    color: #f39c12;
    margin: 20px 0;
}

.price-card ul {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.price-card li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.price-card li:before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
    margin-right: 10px;
}

/* PAGES (landing / dashboard) */
.landing-page {
    display: none;
}

.landing-page.active {
    display: block;
}

/* DASHBOARD PAGE */
.dashboard-page {
    display: none;
    background: #f0f2f5;
}

.dashboard-page.active {
    display: block;
}

.dashboard-header {
    background: white;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-size: 24px;
    font-weight: bold;
    color: #1f4788;
}

.dashboard-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kpi-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.kpi-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 32px;
    font-weight: bold;
    color: #1f4788;
}

.kpi-trend {
    font-size: 12px;
    margin-top: 8px;
    color: #27ae60;
}

.widget {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.widget h3 {
    color: #1f4788;
    margin-bottom: 20px;
    font-size: 18px;
}

.connector-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.connector-item:last-child {
    border-bottom: none;
}

.connector-name {
    font-weight: bold;
    color: #1f4788;
}

.connector-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-connected {
    background: #d4edda;
    color: #155724;
}

.status-disconnected {
    background: #f8d7da;
    color: #721c24;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    color: #1f4788;
    border-bottom: 2px solid #ddd;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.table tr:hover {
    background: #f9f9f9;
}

.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.badge-new {
    background: #cfe2ff;
    color: #084298;
}

.badge-processing {
    background: #fff3cd;
    color: #664d03;
}

.badge-shipped {
    background: #d1e7dd;
    color: #0f5132;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-content h2 {
    color: #1f4788;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1f4788;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea,
.form-group select {
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    padding: 12px;
    width: 100%;
}

.form-group textarea {
    resize: vertical;
}

.form-group textarea:focus,
.form-group select:focus {
    border-color: #f39c12;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
    outline: none;
}

/* Deux champs côte à côte, empilés sur mobile. */
.form-row {
    display: grid;
    gap: 0 15px;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
    .form-row { grid-template-columns: 1fr; }
}

/* États d'annonce et de travaux. */
.sync-badge.state-active  { background: #eafaf1; border: 1px solid #a9dfbf; color: #1e7a45; }
.sync-badge.state-pending { background: #fff8e6; border: 1px solid #f3d38a; color: #7a5b12; }
.sync-badge.state-error   { background: #fdecea; border: 1px solid #f5b7b1; color: #a93226; }

.form-group input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-close {
    background: #ddd;
    color: #333;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-submit {
    background: #f39c12;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-submit:hover {
    background: #e67e22;
}

.success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.success-message.active {
    display: block;
}

/* ===== Site footer ===== */
.site-footer {
    background: #1f4788;
    color: rgba(255,255,255,0.85);
    padding: 50px 20px 20px;
    margin-top: 60px;
}
.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-brand .logo {
    color: white;
    margin-bottom: 10px;
    font-size: 24px;
}
.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    max-width: 280px;
}
.footer-links h4 {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-links a:hover { color: #f39c12; }
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
@media (max-width: 800px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: span 2; }
}

/* ===== Pricing (promos + badge) ===== */
.price-card { position: relative; }
.price-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #f39c12;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.price-promo {
    background: linear-gradient(135deg, #fff3cd, #ffe082);
    color: #664d03;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin: 12px 0;
    border: 1px solid #ffe082;
}
.price-promo strong { color: #b45309; }

/* ===== Bandeau essai en haut du dashboard ===== */
.trial-banner {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
    flex-wrap: wrap;
}
.trial-banner-text { font-weight: 500; }
.trial-banner-text strong { font-weight: bold; }
.trial-banner .btn-inline {
    background: white;
    color: #f39c12;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
}
.trial-banner .btn-inline:hover { background: #fff8e1; }
.trial-banner.trial-expired { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.trial-banner.trial-expired .btn-inline { color: #e74c3c; }

/* Bandeau « accès propriétaire » — ni essai, ni relance de paiement */
.trial-banner.banner-owner {
    background: linear-gradient(135deg, #1f4788, #2d5a3d);
}

/* ===== Espace « Mon Business » (admin) ===== */
.btn-business {
    background: linear-gradient(135deg, #2d5a3d, #1f4788);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: filter 0.2s;
}
.btn-business:hover { filter: brightness(1.15); }

.business-intro {
    background: linear-gradient(135deg, #2d5a3d, #1f4788);
    color: white;
    padding: 18px 22px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.business-intro strong { font-size: 16px; }
.business-intro p { margin: 6px 0 0; font-size: 14px; opacity: 0.9; max-width: 620px; }
.business-intro .btn-inline { background: white; color: #1f4788; white-space: nowrap; }
.business-intro .btn-inline:hover { background: #eef2f7; }

/* ===== Boutons de connexion sociale ===== */
.social-auth { margin-bottom: 20px; }

.btn-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: white;
    color: #3c4043;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-social:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.btn-social:disabled { opacity: 0.6; cursor: wait; }

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}
.btn-google .social-icon {
    background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg);
    color: white;
}
.btn-apple { background: #000; color: white; border-color: #000; }
.btn-apple:hover { background: #1a1a1a; }
.btn-apple .social-icon { background: transparent; color: white; font-size: 16px; }

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0 0;
    color: #9aa0a6;
    font-size: 13px;
}
.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}
.social-divider span { padding: 0 12px; }

/* Bandeau « vérifie ton email » (bleu, distinct de l'essai orange) */
.trial-banner.verify-banner {
    background: linear-gradient(135deg, #1f4788, #2d5a3d);
    box-shadow: 0 2px 8px rgba(31, 71, 136, 0.3);
}
.trial-banner.verify-banner .btn-inline { color: #1f4788; }
.trial-banner.verify-banner .btn-inline:hover { background: #eef2f9; }

/* ===== État vide du dashboard ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* ===== Hero avec mockup ===== */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
}

.hero-text { text-align: left; }
.hero-text h1 { text-align: left; }

.hero-mockup { display: flex; justify-content: center; }

.mockup-window {
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    color: #333;
    text-align: left;
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.4s;
}
.mockup-window:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }

.mockup-bar {
    background: #ecf0f1;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #dfe4e6;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mockup-url { margin-left: 12px; color: #7f8c8d; font-size: 12px; font-family: monospace; }

.mockup-body { padding: 18px; background: #f8f9fa; }

.mockup-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.mockup-kpi {
    background: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    text-align: center;
}
.mk-label { font-size: 10px; color: #7f8c8d; margin-bottom: 4px; }
.mk-value { font-size: 16px; font-weight: bold; color: #1f4788; }

.mockup-cards { display: flex; flex-direction: column; gap: 6px; }
.mockup-card {
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #1f4788;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mk-pill {
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.mk-ok { background: #d4edda; color: #155724; }

@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; gap: 30px; }
    .hero-text, .hero-text h1 { text-align: center; }
    .mockup-window { transform: none; max-width: 360px; }
}

/* ===== Marketplaces widget ===== */
.marketplaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.marketplace-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.marketplace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.marketplace-name {
    font-weight: bold;
    color: #1f4788;
    font-size: 15px;
}

.marketplace-status {
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.marketplace-status.status-connected { background: #d4edda; color: #155724; }
.marketplace-status.status-disconnected { background: #f3f4f6; color: #6b7280; }
.marketplace-status.status-soon { background: #fff3cd; color: #856404; }
.marketplace-status.status-error { background: #f8d7da; color: #721c24; }

.marketplace-body { flex: 1; font-size: 14px; }

.marketplace-empty {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Catalogue : saisie de stock en ligne dans le tableau. */
.stock-input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    padding: 5px 8px;
    width: 80px;
}

.stock-input:focus {
    border-color: #f39c12;
    outline: none;
}

/* Pastilles d'état de synchronisation par marketplace. */
.sync-badge {
    border-radius: 10px;
    display: inline-block;
    font-size: 11px;
    margin: 2px 3px 2px 0;
    padding: 3px 8px;
    white-space: nowrap;
}

.sync-badge.sync-ok      { background: #eafaf1; border: 1px solid #a9dfbf; color: #1e7a45; }
.sync-badge.sync-error   { background: #fdecea; border: 1px solid #f5b7b1; color: #a93226; }
.sync-badge.sync-skipped { background: #eef2f7; border: 1px solid #cbd5e1; color: #64748b; }

/* Pastille « Bientôt » : fonctionnalité annoncée mais pas encore livrée. */
.soon-badge {
    background: #eef2f7;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.3px;
    padding: 2px 7px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

/* Résultat de l'audit du coffre-fort (espace admin). */
.vault-ok, .vault-warn {
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0;
    padding: 10px 12px;
}

.vault-ok {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    color: #1e7a45;
}

.vault-warn {
    background: #fff8e6;
    border: 1px solid #f3d38a;
    color: #7a5b12;
}

/* Lien de déconnexion d'une marketplace — discret, mais toujours accessible. */
.marketplace-disconnect {
    color: #e74c3c;
    display: inline-block;
    font-size: 12px;
    margin-top: 10px;
    text-decoration: none;
}

.marketplace-disconnect:hover {
    text-decoration: underline;
}

/* Encart « quota atteint » : la formule du compte plafonne les données affichées. */
.quota-notice {
    background: #fff8e6;
    border: 1px solid #f3d38a;
    border-radius: 8px;
    color: #7a5b12;
    font-size: 12px;
    line-height: 1.5;
    margin: 8px 0;
    padding: 8px 10px;
}

.quota-notice a {
    color: #b8860b;
    font-weight: bold;
    text-decoration: underline;
    white-space: nowrap;
}

.marketplace-meta {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 8px;
}

.marketplace-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
}

.marketplace-stats strong { color: #1f4788; font-size: 16px; display: block; }

.btn-inline {
    background: #f39c12;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
}
.btn-inline:hover { background: #e67e22; }
.btn-inline:disabled { opacity: 0.6; cursor: wait; }

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* ===== Toasts ===== */
#toastContainer {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
}

.toast {
    background: white;
    border-left: 4px solid #1f4788;
    padding: 14px 18px;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    animation: toastIn 0.25s ease-out;
    pointer-events: auto;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}
.toast.toast-success { border-left-color: #27ae60; }
.toast.toast-error   { border-left-color: #e74c3c; }
.toast.toast-info    { border-left-color: #f39c12; }
.toast.hiding { animation: toastOut 0.2s ease-in forwards; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(30px); }
}

/* ===== Nav: bouton menu hamburger (mobile) ===== */
.nav-toggle {
    display: none;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .header-content { flex-wrap: wrap; }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    nav.open { display: flex; }
    nav a, nav button { width: 100%; text-align: center; }
    #navLoggedIn { flex-direction: column !important; align-items: stretch !important; }
    #navLoggedIn button { width: 100%; }
    #navUserName { padding: 6px 0; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .marketplaces-grid { grid-template-columns: 1fr; }
    #toastContainer { right: 10px; left: 10px; max-width: none; }

    /* Rendre les tableaux scrollables horizontalement */
    .widget { overflow-x: auto; }
    .table { min-width: 520px; }
}
