/* ============================================================
   STYLE.CSS — VERSION UNIFIÉE, NETTOYÉE & RESPONSIVE
   ============================================================ */

/* ── Variables ── */
:root {
    --primary:      #0ea5e9;
    --accent:       #10b981;
    --text-dark:    #0b1220;
    --bg-dark:      #0f172a;
    --danger:       #ef4444;
    --radius:       12px;
    --radius-lg:    20px;
    --shadow-sm:    0 2px 8px  rgba(0,0,0,0.06);
    --shadow-md:    0 8px 26px rgba(6,12,34,0.08);
    --shadow-lg:    0 30px 60px rgba(0,0,0,0.12);
    --nav-height:   74px;
    --transition:   0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: white;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Fond décoratif global */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, #e0f2ff, transparent 40%),
        radial-gradient(circle at 80% 70%, #d1fae5, transparent 40%);
    pointer-events: none;
}

main.page-container {
    flex: 1;
    width: 100%;
}

footer { flex-shrink: 0; }

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============================================================
   LOGO SVG
   ============================================================ */
.logo-advanced {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.logo-advanced:hover { transform: scale(1.07) rotate(-3deg); }

.cross {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-advanced:hover .cross { opacity: 1; }

.logo-advanced:hover .scan {
    opacity: 1;
    animation: scanMove 1.2s ease forwards;
}

@keyframes scanMove {
    0%   { transform: translateY(-8px); opacity: 0; }
    50%  { opacity: 0.7; }
    100% { transform: translateY(8px);  opacity: 0; }
}

.pulse { animation: pulseAnim 2.5s infinite ease-out; }

@keyframes pulseAnim {
    0%   { transform: scale(1);   opacity: 0.5; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-color-scheme: dark) {
    .logo-advanced .lens { fill: rgba(255,255,255,0.08); stroke: rgba(255,255,255,0.6); }
    .cross rect           { fill: #0ea5e9; }
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.65);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.site-header.shrink {
    backdrop-filter: blur(30px);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-bottom-color: rgba(0,0,0,0.1);
}

.site-header.shrink .navbar {
    height: 60px;
    padding: 6px 32px;
}

.navbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ── Logo ── */
.nav-left { flex-shrink: 0; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
}

.logo-text { white-space: nowrap; }

/* ── Liens desktop ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

.nav-indicator {
    position: absolute;
    bottom: -6px;
    height: 2px;
    background: #111;
    width: 0;
    left: 0;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    white-space: nowrap;
    transition: color var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: #111;
    transition: width var(--transition);
}

.nav-link:hover       { color: #000; }
.nav-link:hover::after{ width: 100%; }

.nav-cta {
    background: #111;
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.nav-cta-outline {
    border: 1.5px solid #ddd;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    color: #444;
}

.nav-cta-outline:hover {
    border-color: #aaa;
    color: #111;
}

/* ── Avatar / User dropdown ── */
.nav-user { position: relative; }

.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-toggle {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.user-toggle:hover { background: rgba(0,0,0,0.05); }

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: white;
    border-radius: 16px;
    min-width: 200px;
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
    display: none;
    animation: fadeDrop 0.2s ease;
    z-index: 1100;
}

.user-dropdown.show { display: block; }

.user-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #333;
    transition: background 0.15s ease;
}

.user-dropdown a:hover { background: #f7f7f7; }

.user-dropdown .danger { color: #dc2626; }

.divider { height: 1px; background: #eee; margin: 6px 0; }

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

/* ── Mega menu ── */
.mega-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: max-content;
    min-width: 360px;
    max-width: 600px;
    background: white;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1050;
}

.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}

.mega-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 12px;
}

.mega-col a {
    display: block;
    padding: 7px 0;
    color: #111;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.mega-col a:hover { transform: translateX(4px); color: var(--primary); }

/* ── Burger ── */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1200;
    flex-shrink: 0;
}

.burger span {
    width: 24px; height: 2px;
    background: #111;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   CARTE / MAP MODAL
   ============================================================ */
.map-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.map-modal.hidden { display: none; }

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    animation: fadeIn 0.25s ease;
}

.map-container {
    position: fixed;
    inset: env(safe-area-inset-top, 0)
           env(safe-area-inset-right, 0)
           env(safe-area-inset-bottom, 0)
           env(safe-area-inset-left, 0);
    background: white;
    overflow: hidden;
}

#main-map { width: 100%; height: 100%; }

.close-map {
    position: absolute;
    top: 12px; right: 14px;
    z-index: 10;
    background: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background 0.2s ease;
}

.close-map:hover { background: #f1f5f9; }

body.modal-open { overflow: hidden; }

/* ============================================================
   TRANSITIONS PAGE
   ============================================================ */
#page-transition {
    opacity: 1;
    transform: translateY(0);
    animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

body.page-exit #page-transition {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    top: 20px; right: 20px;
    background: #28a745;
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: 0.4s ease;
    z-index: 9999;
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 300px;
    box-shadow: var(--shadow-md);
}

.toast.show    { opacity: 1; transform: translateY(0); }
.toast.success { background: #28a745; }
.toast.error   { background: #dc3545; }

/* ============================================================
   FORMULAIRES GÉNÉRIQUES
   ============================================================ */
.form-card {
    background: white;
    padding: 30px 25px;
    max-width: 420px;
    width: 90%;
    margin: 20px auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-card p      { margin-bottom: 14px; }
.form-card label  { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }

.form-card input,
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
    outline: none;
}

.form-card button {
    width: 100%;
    padding: 12px;
    background: #2e8b57;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.form-card button:hover {
    background: #256b45;
    transform: translateY(-1px);
}

.form-card .form-link {
    margin-top: 14px;
    text-align: center;
    font-size: 0.9rem;
}

.form-card .form-link a { color: #2e8b57; font-weight: 600; }
.form-card .form-link a:hover { text-decoration: underline; }

.form-card .form-errors p,
.field-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
    border: 1px solid #fecaca;
}

/* ============================================================
   CARDS CATALOGUE (style.css — version de base)
   ============================================================ */
.cards-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition:
        opacity 0.6s cubic-bezier(0.65,0,0.35,1),
        transform 0.6s cubic-bezier(0.65,0,0.35,1),
        box-shadow 0.3s ease;
    cursor: pointer;
}

.card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.card img:hover { transform: scale(1.05); }
.card h3 { margin: 10px 0 5px; font-size: 1rem; }

.price      { color: #2563eb; font-weight: 700; }
.available  { color: green;   font-weight: 700; }
.unavailable{ color: red;     font-weight: 700; }
.muted      { color: #777; font-size: 0.85rem; }

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
}

.badge.available   { background: #dcfce7; color: #166534; }
.badge.unavailable { background: #fee2e2; color: #991b1b; }

/* ============================================================
   STOCK / DASHBOARD TABLES
   ============================================================ */
.stock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stock-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.stock-actions .btn {
    background: #2e8b57;
    color: white;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 700;
    border: 1.5px solid #2e8b57;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.stock-actions .btn:hover {
    background: #256f47;
    transform: translateY(-1px);
}

.stock-actions .btn-secondary {
    background: white;
    color: #2e8b57;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 700;
    border: 1.5px solid #2e8b57;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.stock-actions .btn-secondary:hover {
    background: #f0f8f4;
    transform: translateY(-1px);
}

.stock-filters { margin-bottom: 15px; font-size: 14px; }
.stock-filters a { margin-right: 12px; color: #555; }
.stock-filters a.active { color: #2e8b57; font-weight: 700; border-bottom: 2px solid #2e8b57; }

.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.stock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.stock-table thead  { background: #f7f7f7; }
.stock-table th     { text-align: left; padding: 12px 10px; font-weight: 700; color: #555; }
.stock-table td     { padding: 12px 10px; border-bottom: 1px solid #eee; }
.stock-table tbody tr:hover { background: #f9fafb; }

.table-img {
    width: 45px; height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.status.available   { color: #2e8b57; font-weight: 700; }
.status.unavailable { color: #c0392b; font-weight: 700; }

.actions a        { margin-right: 8px; font-weight: 700; color: #555; }
.actions a:hover  { text-decoration: underline; }
.actions .danger  { color: #c0392b; }

.pagination        { margin-top: 20px; text-align: center; font-size: 14px; }
.pagination a      { margin: 0 8px; font-weight: 700; color: #2e8b57; }

/* ============================================================
   RECHERCHE (dashboard)
   ============================================================ */
.search-input {
    max-width: 420px;
    width: 100%;
    padding: 10px 14px 10px 36px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.search-input:focus {
    border-color: #2e8b57;
    box-shadow: 0 0 0 3px rgba(46,139,87,0.12);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 10px;
    font-size: 14px;
    opacity: 0.45;
    pointer-events: none;
}

.search-feedback {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.hidden   { display: none !important; }
.sr-only  {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}
h2 { text-align: center; }

/* Alertes */
.alert          { padding: 10px 14px; border-radius: 8px; margin-bottom: 10px; font-size: 14px; }
.alert.success  { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error    { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Drop zone import */
.drop-zone {
    border: 2px dashed #aaa;
    padding: 40px;
    text-align: center;
    border-radius: var(--radius);
    cursor: pointer;
    background: #fafafa;
    transition: all 0.3s ease;
}

.drop-zone:hover    { background: #f0f0f0; border-color: #888; }
.drop-zone.dragover { border-color: #28a745; background: #eaf9f0; }

.excel-icon { font-size: 40px; margin-bottom: 10px; }

.progress-container {
    width: 100%; background: #eee;
    border-radius: 8px; height: 14px; overflow: hidden; margin: 14px 0;
}

.progress-bar {
    width: 0%; height: 100%;
    background: #28a745;
    transition: width 0.3s ease;
}

/* Confirmation suppression */
.confirm-container {
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.confirm-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.confirm-title   { color: #b00020; margin-bottom: 10px; }
.confirm-text    { color: #555; margin-bottom: 12px; }
.confirm-name    { font-weight: 700; font-size: 16px; margin-bottom: 24px; }

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.danger-btn {
    background: #d9534f;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

/* Modale générique */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 16px;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

/* Image preview */
.image-preview-container { margin-bottom: 20px; text-align: center; }

.image-preview {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
}

/* Leaflet tooltip */
.leaflet-tooltip {
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.leaflet-tooltip::after {
    content: "";
    position: absolute;
    bottom: -6px; left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    border-bottom: 0;
}

/* Animations row tableau */
@keyframes slideGlowGreen {
    0%   { transform: translateX(20px); background: #e6ffed; opacity: 0; }
    50%  { transform: translateX(0);    background: #d4edda; opacity: 1; }
    100% { background: transparent; }
}

@keyframes pulseBlue {
    0%   { background: #e7f1ff; }
    50%  { background: #cce5ff; }
    100% { background: transparent; }
}

.new-created { animation: slideGlowGreen 2.5s ease forwards; }
.updated-row td:nth-child(3) { animation: pulseBlue 2s ease forwards; }

.new-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: #28a745;
    border-radius: 12px;
    opacity: 0;
    animation: badgeFadeIn 0.4s ease forwards, badgeFadeOut 0.4s ease forwards 3s;
}

@keyframes badgeFadeIn  { to { opacity: 1; transform: translateY(0); } }
@keyframes badgeFadeOut { to { opacity: 0; transform: translateY(-5px); } }

/* Fade générique */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE — TABLETTE (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {

    .navbar {
        padding: 0 20px;
        height: 64px;
    }

    .burger { display: flex; }

    .mega-wrapper { display: none; }

    /* Menu mobile plein écran */
    .nav-links {
        position: fixed;
        inset: 0;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(.4,0,.2,1);
        z-index: 1100;
        overflow-y: auto;
        padding: 80px 24px 40px;
    }

    .nav-links.show { transform: translateY(0); }

    .nav-link {
        font-size: 1.3rem;
        font-weight: 600;
    }

    .nav-cta, .nav-cta-outline {
        font-size: 1.1rem;
        padding: 12px 28px;
    }

    .nav-indicator { display: none; }

    /* Dropdown user en mobile */
    .user-dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid #eee;
        border-radius: 12px;
        min-width: 100%;
        margin-top: 8px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {

    .navbar { padding: 0 16px; height: 60px; }

    .logo-advanced { width: 38px; height: 38px; }
    .logo-text     { font-size: 1rem; }

    /* Tableau stock */
    .stock-header  { flex-direction: column; align-items: stretch; }
    .stock-actions { justify-content: space-between; }
    .search-input  { max-width: 100%; }

    /* Toast */
    .toast {
        top: auto;
        bottom: 20px;
        right: 12px;
        left: 12px;
        max-width: none;
        text-align: center;
    }

    /* Confirm card */
    .confirm-card { padding: 20px 16px; }

    /* Form card */
    .form-card { padding: 20px 16px; }
}

/* ============================================================
   RESPONSIVE — TRÈS PETIT (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {

    .navbar { padding: 0 12px; }

    .logo-text { display: none; }  /* cache le texte, garde le logo SVG */

    .nav-link  { font-size: 1.1rem; }

    .confirm-actions { flex-direction: column; }
    .confirm-actions .danger-btn,
    .confirm-actions a { width: 100%; text-align: center; }
}

/* ============================================================
   NAVBAR AMÉLIORÉE — GEOCURE
   ============================================================ */

/* Logo GeoCure SVG */
.logo-geocure {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    filter: drop-shadow(0 2px 6px rgba(30,111,217,0.25));
}

.logo-geocure:hover { transform: scale(1.08) rotate(-4deg); }

/* Nom de l'app avec couleurs GEO|CURE */
.logo-text-geo  { color: #1e6fd9; font-weight: 800; }
.logo-text-cure { color: #2eab4e; font-weight: 800; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

/* Navbar pill pill pour les CTAs */
.nav-cta {
    background: linear-gradient(135deg, #1e6fd9, #2eab4e);
    color: white !important;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 3px 12px rgba(30,111,217,0.25);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,111,217,0.35);
    filter: brightness(1.05);
}

/* Lien actif avec indicateur couleur brand */
.nav-indicator { background: #1e6fd9; }
.nav-link::after { background: #1e6fd9; }

/* Header avec bordure subtile dégradée */
.site-header {
    border-bottom: 1px solid rgba(30,111,217,0.1) !important;
}

/* Badge pharmacien dans nav */
.nav-pharmacist-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #2eab4e;
    background: rgba(46,171,78,0.1);
    border: 1px solid rgba(46,171,78,0.25);
    padding: 3px 10px;
    border-radius: 999px;
    margin-left: 4px;
    white-space: nowrap;
}

/* Avatar amélioré */
.avatar {
    background: linear-gradient(135deg, #1e6fd9, #2eab4e) !important;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(30,111,217,0.3);
}

/* Navbar mobile — menu plein écran amélioré */
@media (max-width: 900px) {
    .nav-links {
        background: linear-gradient(160deg, #0f172a, #0c2340) !important;
    }

    .nav-link {
        color: rgba(255,255,255,0.85) !important;
        font-size: 1.2rem !important;
    }

    .nav-link:hover { color: white !important; }

    .nav-cta, .nav-cta-outline {
        font-size: 1rem !important;
        padding: 12px 28px !important;
        border-radius: 999px !important;
    }

    .nav-cta-outline {
        background: rgba(255,255,255,0.08) !important;
        color: rgba(255,255,255,0.85) !important;
        border-color: rgba(255,255,255,0.2) !important;
    }

    /* Logo blanc sur fond sombre en mobile menu */
    .nav-links .nav-logo .logo-text-geo  { color: #60a5fa; }
    .nav-links .nav-logo .logo-text-cure { color: #4ade80; }

    /* Burger plus visible */
    .burger span { background: #1e6fd9 !important; }
}

/* Burger animation X */
.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: #ef4444 !important;
}
.burger.active span:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
    background: #ef4444 !important;
}


/* ── User dropdown amélioré ── */
.user-dropdown-header {
    padding: 12px 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-dropdown-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.user-dropdown-email {
    font-size: 12px;
    color: #6b7280;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.88rem;
    color: #333;
    transition: background 0.15s ease;
}

.user-dropdown a:hover { background: #f7f7f7; }
.user-dropdown a.danger { color: #dc2626; }
.user-dropdown a.danger:hover { background: #fef2f2; }

/* ── Nav logo text ── */
.nav-logo-text {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    line-height: 1;
}

/* ── user-toggle avec chevron ── */
.user-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}