/* ============================================================
   FUNDAMENTAL – Home Page CSS
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --blue-primary: #2563EB;
    --blue-dark: #1D4ED8;
    --blue-light: #DBEAFE;
    --blue-icon-bg: #EFF6FF;
    --text-dark: #0F172A;
    --text-body: #4B5563;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --font: 'Inter', sans-serif;
    --radius: 16px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
}
/* ---- DARK MODE ---- */
html[data-theme="dark"] {
    --blue-light: #1E3A5F;
    --blue-icon-bg: #1E293B;
    --text-dark: #F1F5F9;
    --text-body: #94A3B8;
    --text-muted: #64748B;
    --border-color: #1E293B;
    --bg-white: #0F172A;
    --bg-light: #1E293B;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .share-btn--x {
    background: #334155;
}
html[data-theme="dark"] .feature-card:hover {
    border-color: var(--blue-primary);
}
html {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ---- THEME TRANSITION (clip-path circular reveal) ---- */

/* View Transitions API — désactiver le fondu par défaut */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

/* L'ancien snapshot reste visible derrière le nouveau qui s'ouvre en cercle */
::view-transition-old(root) {
    z-index: 1;
}
::view-transition-new(root) {
    z-index: 9999;
}

/* Fallback pour navigateurs sans View Transitions API */
.theme-fallback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99998;
    pointer-events: none;
    clip-path: circle(0px at var(--cx) var(--cy));
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
}

/* Toggle button icon animation */
#theme-toggle {
    position: relative;
    overflow: hidden;
    z-index: 99999;
}
#theme-toggle svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
}
.theme-icon-spinning {
    animation: theme-icon-spin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes theme-icon-spin {
    0%   { transform: rotate(-90deg) scale(0); opacity: 0; }
    50%  { transform: rotate(20deg) scale(1.2); opacity: 0.7; }
    100% { transform: rotate(0deg) scale(1); opacity: 1; }
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a {
    text-decoration: none;
    color: inherit;
}
/* ============================================================
   NAV
   ============================================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}
.navbar__logo {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.navbar__nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.navbar__nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-body);
    transition: color 0.15s;
}
.navbar__nav a:hover {
    color: var(--blue-primary);
}
.navbar__left {
    display: flex;
    align-items: center;
    gap: 40px;
}
.navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.navbar__separator {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    flex-shrink: 0;
}
/* ===== GLOBAL CONTROLS — pill: theme icon + lang + chevron ===== */
.global-ctrl {
    position: relative;
    z-index: 110;
}
.global-ctrl__pill {
    display: inline-flex;
    align-items: center;
    height: 36px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.global-ctrl__pill:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.06);
}

/* --- Theme button (left zone) --- */
.global-ctrl__theme {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 100%;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
    outline: none;
    flex-shrink: 0;
}
.global-ctrl__theme:hover {
    background: var(--bg-light);
    color: var(--blue-primary);
}
.global-ctrl__theme:active {
    transform: scale(0.92);
}

/* --- Separator --- */
.global-ctrl__sep {
    width: 1px;
    height: 18px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* --- Lang button (right zone) --- */
.global-ctrl__lang-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 100%;
    padding: 0 10px 0 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-body);
    letter-spacing: 0.03em;
    transition: background 0.15s, color 0.15s;
    outline: none;
}
.global-ctrl__lang-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}
.global-ctrl__lang {
    transition: opacity 0.15s;
}
.global-ctrl__chevron {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.global-ctrl__lang-btn[aria-expanded="true"] .global-ctrl__chevron {
    transform: rotate(180deg);
}

/* --- Dropdown (langue uniquement) --- */
.global-ctrl__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 4px;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    z-index: 120;
}
.global-ctrl__dropdown--open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.global-ctrl__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 7px;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-body);
    transition: background 0.12s, color 0.12s;
    outline: none;
    text-align: left;
}
.global-ctrl__item:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}
.global-ctrl__item:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.global-ctrl__item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
}
.global-ctrl__flag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.global-ctrl__item-label {
    flex: 1;
}
.global-ctrl__check {
    display: flex;
    align-items: center;
    color: var(--blue-primary);
    opacity: 0;
    transition: opacity 0.2s;
}

/* --- Dark mode --- */
html[data-theme="dark"] .global-ctrl__pill {
    background: #1E293B;
    border-color: #334155;
}
html[data-theme="dark"] .global-ctrl__pill:hover {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.06);
}
html[data-theme="dark"] .global-ctrl__theme {
    color: #64748B;
}
html[data-theme="dark"] .global-ctrl__theme:hover {
    background: #334155;
    color: #60A5FA;
}
html[data-theme="dark"] .global-ctrl__sep {
    background: #334155;
}
html[data-theme="dark"] .global-ctrl__lang-btn {
    color: #CBD5E1;
}
html[data-theme="dark"] .global-ctrl__lang-btn:hover {
    background: #334155;
    color: #F1F5F9;
}
html[data-theme="dark"] .global-ctrl__chevron {
    color: #64748B;
}
html[data-theme="dark"] .global-ctrl__dropdown {
    background: #1E293B;
    border-color: #334155;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
}
html[data-theme="dark"] .global-ctrl__item:hover {
    background: #334155;
    color: #F1F5F9;
}
html[data-theme="dark"] .global-ctrl__flag {
    color: #64748B;
}
html[data-theme="dark"] .global-ctrl__check {
    color: #60A5FA;
}

/* ===== HAMBURGER BURGER ===== */
.navbar__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 201;
}
.navbar__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.navbar__burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar__burger.open span:nth-child(2) {
    opacity: 0;
}
.navbar__burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU OVERLAY ===== */
.navbar__mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.navbar__mobile-menu.open {
    opacity: 1;
    visibility: visible;
}
.navbar__mobile-menu-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background: var(--bg-white);
    padding: 80px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}
.navbar__mobile-menu.open .navbar__mobile-menu-inner {
    transform: translateX(0);
}
.navbar__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.navbar__mobile-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
}
.navbar__mobile-nav a:hover {
    background: var(--blue-icon-bg);
    color: var(--blue-primary);
}
.navbar__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* Dark mode mobile menu */
html[data-theme="dark"] .navbar__mobile-menu-inner {
    background: #1e293b;
}
html[data-theme="dark"] .navbar__burger span {
    background: #e2e8f0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    cursor: pointer;
    transition: background 0.15s;
    color: var(--text-body);
}
.btn-icon:hover {
    background: var(--bg-light);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn--ghost {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid transparent;
}
.btn--ghost:hover {
    background: var(--bg-light);
}
.btn--outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
}
.btn--outline:hover {
    border-color: var(--blue-primary);
    color: var(--blue-primary);
}
.btn--primary {
    background: var(--blue-primary);
    color: #fff;
    border: 1.5px solid var(--blue-primary);
}
.btn--primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}
/* ================= CHATBOT — Professional Minimalist ================= */

/* ─── Scoped CSS custom properties ─── */
.chatbot-window {
    --cb-bg:         #ffffff;
    --cb-surface:    #f4f4f5;
    --cb-user-bg:    #e8edf6;
    --cb-user-color: #1e293b;
    --cb-border:     #e9e9eb;
    --cb-text:       #111827;
    --cb-muted:      #9ca3af;
    --cb-btn-bg:     #111827;
    --cb-btn-color:  #ffffff;
}
html[data-theme="dark"] .chatbot-window {
    --cb-bg:         #0f172a;
    --cb-surface:    #1e293b;
    --cb-user-bg:    #1e3a5f;
    --cb-user-color: #bfdbfe;
    --cb-border:     #334155;
    --cb-text:       #f1f5f9;
    --cb-muted:      #64748b;
    --cb-btn-bg:     #e2e8f0;
    --cb-btn-color:  #0f172a;
}

/* ─── Floating toggle button ─── */
.chatbot-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--text-dark);
    color: var(--bg-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.2s ease, opacity 0.18s ease;
}
html[data-theme="dark"] .chatbot-toggle {
    background: #e2e8f0;
    color: #0f172a;
    box-shadow: 0 4px 18px rgba(0,0,0,0.55);
}
.chatbot-toggle:hover  { opacity: 0.82; transform: translateY(-1px); }
.chatbot-toggle:active { transform: scale(0.93); }

/* ─── Chat window ─── */
.chatbot-window {
    position: fixed;
    bottom: 4.8rem;
    right: 1.5rem;
    width: 380px;
    height: 580px;
    background: var(--cb-bg);
    border-radius: 16px;
    box-shadow:
        0 0  0 1px var(--cb-border),
        0 20px 56px rgba(0,0,0,0.12),
        0 4px 16px rgba(0,0,0,0.06);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    border: none;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease;
}
.chatbot-window.open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: cbWindowIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cbWindowIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ─── Minimal top bar — no colored header block ─── */
.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    background: var(--cb-bg);
    border-bottom: 1px solid var(--cb-border);
    flex-shrink: 0;
    min-height: 52px;
}
.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 9px;
}
/* Online dot — replaces the avatar widget */
.chatbot-avatar {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: cbPulse 2.5s ease-in-out infinite;
}
@keyframes cbPulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(34,197,94,0.35); }
    50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0);   }
}
.chatbot-header-info  { display: flex; flex-direction: column; }
.chatbot-header-title {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.015em;
    color: var(--cb-text);
}
.chatbot-header-status { display: none; }

.chatbot-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--cb-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.chatbot-close:hover {
    background: var(--cb-surface);
    color: var(--cb-text);
}

/* ─── Messages scroll area ─── */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--cb-bg);
    scroll-behavior: smooth;
}
/* Hidden / ultra-thin scrollbar */
.chatbot-messages::-webkit-scrollbar         { width: 3px; }
.chatbot-messages::-webkit-scrollbar-track   { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb   { background: var(--cb-border); border-radius: 99px; }
.chatbot-messages::-webkit-scrollbar-thumb:hover { background: var(--cb-muted); }
.chatbot-messages { scrollbar-width: thin; scrollbar-color: var(--cb-border) transparent; }

/* ─── Message rows ─── */
.chatbot-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    animation: cbMsgIn 0.2s ease forwards;
}
.chatbot-msg-row--user { flex-direction: row-reverse; }
@keyframes cbMsgIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Avatars ─── */
.chatbot-msg-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatbot-msg-avatar--bot {
    background: var(--cb-btn-bg);
    color: var(--cb-btn-color);
}
.chatbot-msg-avatar--user {
    background: var(--cb-surface);
    color: var(--cb-muted);
    border: 1px solid var(--cb-border);
}

/* ─── Bubbles ─── */
.chatbot-message {
    max-width: 82%;
    font-size: 0.875rem;
    line-height: 1.6;
    word-break: break-word;
    color: var(--cb-text);
}
/* BOT — light gray pill #f4f4f5, left-aligned */
.chatbot-message--bot {
    background: var(--cb-surface);
    border-radius: 4px 16px 16px 16px;
    padding: 10px 13px;
    color: var(--cb-text);
}
/* USER — soft blue-slate pill, right-aligned */
.chatbot-message--user {
    background: var(--cb-user-bg);
    color: var(--cb-user-color);
    border-radius: 16px 16px 4px 16px;
    padding: 10px 13px;
}

/* ─── Typing indicator (bouncing dots) ─── */
.chatbot-message--loading {
    background: var(--cb-surface);
    border-radius: 4px 16px 16px 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
}
.chatbot-dots { display: flex; gap: 5px; align-items: center; }
.chatbot-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cb-muted);
    animation: cbDots 1.3s infinite ease-in-out both;
}
.chatbot-dots span:nth-child(1) { animation-delay: -0.32s; }
.chatbot-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes cbDots {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1;   }
}

/* ─── Timestamps hidden ─── */
.chatbot-msg-time { display: none; }

/* ─── Quick suggestions ─── */
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 16px 12px;
    background: var(--cb-bg);
    flex-shrink: 0;
}
.chatbot-suggestion {
    padding: 6px 13px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--cb-bg);
    color: var(--cb-muted);
    border: 1px solid var(--cb-border);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.chatbot-suggestion:hover {
    background: var(--cb-surface);
    border-color: var(--cb-muted);
    color: var(--cb-text);
}

/* ─── Input bar  ─── */
.chatbot-input-area {
    padding: 10px 14px 14px;
    background: var(--cb-bg);
    border-top: 1px solid var(--cb-border);
    flex-shrink: 0;
}
.chatbot-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    border-radius: 24px;
    transition: border-color 0.2s, background 0.2s;
}
.chatbot-input-wrap:focus-within {
    border-color: var(--cb-muted);
    background: var(--cb-bg);
}
.chatbot-input-area input {
    flex: 1;
    padding: 11px 16px;
    padding-right: 46px;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    outline: none;
    font-family: inherit;
    color: var(--cb-text);
    border-radius: 24px;
}
.chatbot-input-area input::placeholder { color: var(--cb-muted); }

/* Send — icon-only minimal circle */
.chatbot-send-btn {
    position: absolute;
    right: 7px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cb-btn-bg);
    color: var(--cb-btn-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.15s, transform 0.15s;
}
.chatbot-send-btn:hover  { opacity: 0.78; }
.chatbot-send-btn:active { transform: scale(0.9); }
.chatbot-send-btn:disabled {
    background: var(--cb-border);
    color: var(--cb-muted);
    cursor: not-allowed;
    transform: none;
    opacity: 1;
}
.chatbot-send-btn svg { width: 14px; height: 14px; }

/* ─── Footer ─── */
.chatbot-footer {
    padding: 0 16px 12px;
    text-align: center;
    font-size: 0.66rem;
    color: var(--cb-muted);
    background: var(--cb-bg);
    opacity: 0.65;
    flex-shrink: 0;
}


/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 340px;
    max-width: 440px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font);
    line-height: 1.5;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(120%);
    opacity: 0;
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast.toast--removing {
    animation: toastOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.toast__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toast__text {
    flex: 1;
}
.toast__close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 4px 7px;
    border-radius: 6px;
    opacity: 0.6;
    transition: all 0.15s;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
}
.toast__close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.18);
}
.toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 10px 10px;
    animation: toastProgress 4s linear forwards;
}

/* Success — bleu nuit */
.toast--success {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(99, 179, 237, 0.2);
    color: #e2e8f0;
}
.toast--success .toast__icon { color: #63b3ed; }
.toast--success .toast__progress { background: #63b3ed; }

/* Error — rouge sombre */
.toast--error {
    background: rgba(42, 15, 15, 0.92);
    border-color: rgba(239, 68, 68, 0.25);
    color: #fecaca;
}
.toast--error .toast__icon { color: #f87171; }
.toast--error .toast__progress { background: #ef4444; }

/* Warning — ambre sombre */
.toast--warning {
    background: rgba(42, 32, 12, 0.92);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fde68a;
}
.toast--warning .toast__icon { color: #fbbf24; }
.toast--warning .toast__progress { background: #f59e0b; }

/* Info — bleu nuit */
.toast--info {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(96, 165, 250, 0.2);
    color: #e2e8f0;
}
.toast--info .toast__icon { color: #60a5fa; }
.toast--info .toast__progress { background: #3b82f6; }

/* Dark mode */
html[data-theme="dark"] .toast--success {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(99, 179, 237, 0.15);
    color: #cbd5e1;
}
html[data-theme="dark"] .toast--error {
    background: rgba(42, 15, 15, 0.95);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
html[data-theme="dark"] .toast--warning {
    background: rgba(42, 32, 12, 0.95);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}
html[data-theme="dark"] .toast--info {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(96, 165, 250, 0.15);
    color: #93bbfd;
}

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(120%); opacity: 0; }
}
@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

/* ============================================================
   CONFIRM MODAL (remplacement des confirm() natifs)
   ============================================================ */
.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: confirmFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.confirm-overlay.confirm--closing {
    animation: confirmFadeOut 0.2s ease forwards;
}

.confirm-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25), 0 8px 24px rgba(15, 23, 42, 0.12);
    transform: scale(0.9) translateY(10px);
    animation: confirmBoxIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-align: center;
}
.confirm-overlay.confirm--closing .confirm-box {
    animation: confirmBoxOut 0.2s ease forwards;
}

.confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fef2f2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.confirm-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.confirm-message {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1.75rem;
}

.confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.confirm-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.confirm-btn--cancel {
    background: #f1f5f9;
    color: #475569;
}
.confirm-btn--cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.confirm-btn--danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.confirm-btn--danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

/* Dark mode */
html[data-theme="dark"] .confirm-box {
    background: #1e293b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .confirm-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}
html[data-theme="dark"] .confirm-title { color: #f1f5f9; }
html[data-theme="dark"] .confirm-message { color: #94a3b8; }
html[data-theme="dark"] .confirm-btn--cancel {
    background: #334155;
    color: #94a3b8;
}
html[data-theme="dark"] .confirm-btn--cancel:hover {
    background: #475569;
    color: #e2e8f0;
}

@keyframes confirmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes confirmFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes confirmBoxIn {
    from { transform: scale(0.9) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes confirmBoxOut {
    from { transform: scale(1) translateY(0); opacity: 1; }
    to { transform: scale(0.9) translateY(10px); opacity: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.84rem;
}
.footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 2rem 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
}
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer__logo {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}
.footer__tagline {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}
.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__col-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.footer__col a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.15s;
}
.footer__col a:hover {
    color: var(--text-dark);
}
.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}
@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================================
   LANGUAGE TOGGLE — Sleek fluid pill
   ============================================================ */

/* ============================================================
   RESPONSIVE — NAVBAR MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }
    .navbar__nav {
        display: none;
    }
    .navbar__actions {
        display: none;
    }
    .navbar__separator {
        display: none;
    }
    .navbar__burger {
        display: flex;
    }
    .navbar__mobile-menu {
        display: block;
    }
    .navbar__left {
        gap: 12px;
    }
}