/* Import Google Font - Nunito Sans */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

/* Variables de couleurs Odomeo - Nouvelle Palette */
:root {
    /* ========================================
       PALETTE PRINCIPALE
       ======================================== */

    /* Couleurs de base */
    --intense-cherry: #c33149;
    --fern: #4b7f52;
    --porcelain: #f7f9f7;
    --orange: #ffa400;
    --gunmetal: #35393c;

    /* ========================================
       COULEURS SÉMANTIQUES
       ======================================== */

    /* Primary - Fern (vert) */
    --primary: #4b7f52;
    --primary-dark: #3a6340;
    --primary-light: #6a9b70;
    --primary-lighter: #e8f0e9;

    /* Secondary - Orange */
    --secondary: #ffa400;
    --secondary-dark: #cc8300;
    --secondary-light: #ffb833;
    --secondary-lighter: #fff5e0;

    /* Accent - Cherry (pour les accents forts) */
    --accent: #c33149;
    --accent-light: #d4566a;
    --accent-dark: #9c2739;
    --accent-lighter: #fce8eb;

    /* Text - Gunmetal */
    --text-primary: #35393c;
    --text-secondary: #5a5f63;
    --text-muted: #7d8286;

    /* Background - Porcelain */
    --bg-primary: #f7f9f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2ee;

    /* ========================================
       NEUTRES
       ======================================== */
    --neutral-50: #f7f9f7;
    --neutral-100: #eef2ee;
    --neutral-200: #e0e5e0;
    --neutral-300: #c8d0c8;
    --neutral-400: #a0aba0;
    --neutral-500: #7d8286;
    --neutral-600: #5a5f63;
    --neutral-700: #4a4f52;
    --neutral-800: #35393c;
    --neutral-900: #1f2224;

    /* ========================================
       ÉTATS / FEEDBACK
       ======================================== */
    --success: #4b7f52;
    --success-light: #e8f0e9;
    --warning: #ffa400;
    --warning-light: #fff5e0;
    --danger: #c33149;
    --danger-light: #fce8eb;
    --info: #3b82a0;
    --info-light: #e6f2f7;

    /* ========================================
       LEGACY (pour compatibilité)
       ======================================== */
    --celadon: #e8f0e9;
    --frozen-water: #e8f0e9;

    /* ========================================
       BORDERS ET SURFACES
       ======================================== */
    --border-color: var(--neutral-200);
    --card-bg: var(--bg-secondary);
    --sidebar-bg: #35393c;  /* Gunmetal pour sidebar */
    --topbar-bg: #35393c;   /* Gunmetal pour topbar */
    --input-bg: var(--bg-secondary);
    --table-header-bg: var(--neutral-50);
    --table-row-hover: var(--neutral-50);
}

/* ========================================
   MODE SOMBRE (Dark Theme)
   ======================================== */
[data-theme="dark"] {
    /* Couleurs de base inversées */
    --porcelain: #1a1d1f;
    --gunmetal: #e8eaec;

    /* Primary reste le même (vert) */
    --primary-lighter: #1f2e22;

    /* Secondary reste le même (orange) */
    --secondary-lighter: #2a2415;

    /* Accent reste le même (cherry) */
    --accent-lighter: #2a1a1d;

    /* Text */
    --text-primary: #e8eaec;
    --text-secondary: #b0b5ba;
    --text-muted: #8a9099;

    /* Background */
    --bg-primary: #1a1d1f;
    --bg-secondary: #242729;
    --bg-tertiary: #2d3134;

    /* Neutres inversés */
    --neutral-50: #2d3134;
    --neutral-100: #363b3f;
    --neutral-200: #454b50;
    --neutral-300: #5a6066;
    --neutral-400: #7d8489;
    --neutral-500: #9ca3a9;
    --neutral-600: #b0b5ba;
    --neutral-700: #c8cdd2;
    --neutral-800: #e0e4e8;
    --neutral-900: #f5f7f9;

    /* États */
    --success-light: #1f2e22;
    --warning-light: #2a2415;
    --danger-light: #2a1a1d;
    --info-light: #1a2530;

    /* Borders et surfaces */
    --border-color: #454b50;
    --card-bg: #242729;
    --sidebar-bg: #1f2224;
    --topbar-bg: #242729;
    --input-bg: #2d3134;
    --table-header-bg: #2d3134;
    --table-row-hover: #363b3f;
    /* Garder la même couleur gunmetal pour sidebar/topbar en mode sombre */
    --sidebar-bg: #35393c;
    --topbar-bg: #35393c;
}

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

body {
    font-family: "Nunito Sans", sans-serif;
    background-color: var(--porcelain);
    color: var(--gunmetal);
    line-height: 1.6;
}

/* Header et Navigation - styles de base (utilisateurs connectés) */
header:not(.landing-header) {
    background-color: var(--gunmetal);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header:not(.landing-header) > nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header clair pour utilisateurs non connectés */
header.header-light {
    background-color: var(--card-bg);
    color: var(--gunmetal);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header.header-light .logo {
    color: var(--gunmetal);
}

header.header-light .nav-links a {
    color: var(--gunmetal);
}

header.header-light .nav-links a:hover {
    color: var(--primary);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img,
.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-lighter);
}

.nav-links a.active {
    color: var(--primary-lighter);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-lighter);
    padding-bottom: 0.25rem;
}

/* Menu déroulant navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown .dropdown-toggle .fa-caret-down {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-toggle .fa-caret-down {
    transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown .dropdown-menu li {
    list-style: none;
}

.nav-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary) !important;
    transition: background 0.2s;
}

.nav-dropdown .dropdown-menu a:hover {
    background: var(--neutral-100);
    color: var(--primary) !important;
}

.nav-dropdown .dropdown-menu a i {
    width: 1.2rem;
    text-align: center;
    color: var(--primary);
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Messages Flash */
.messages {
    margin: 1rem 0;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-error {
    background-color: var(--danger-light);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background-color: var(--warning-light);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.alert-info {
    background-color: var(--info-light);
    color: var(--info);
    border-left: 4px solid var(--info);
}

/* Cartes */
.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-header {
    border-bottom: 2px solid var(--frozen-water);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    color: var(--neutral-800);
    font-size: 1.8rem;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-align: center;
}

.btn .material-icons-outlined {
    font-size: 18px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--neutral-800);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #a71e1e;
}

.btn-info {
    background-color: var(--info);
    color: white;
}

.btn-info:hover {
    background-color: #0288d1;
}

.btn-disabled {
    background-color: var(--neutral-300);
    color: var(--neutral-500);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-accent {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Button Group */
.btn-group {
    display: inline-flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--neutral-300);
}

.btn-group .btn {
    border-radius: 0;
    margin: 0;
    border: none;
    border-right: 1px solid var(--neutral-300);
}

.btn-group .btn:last-child {
    border-right: none;
}

.btn-group .btn-small {
    padding: 0.4rem 0.6rem;
}

.btn-group .btn .material-icons-outlined {
    font-size: 1.1rem;
    vertical-align: middle;
}

/* Outline Buttons */
.btn-outline-info {
    background: transparent;
    color: var(--info);
    border: none;
}

.btn-outline-info:hover {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.btn-outline-accent {
    background: transparent;
    color: var(--accent);
    border: none;
}

.btn-outline-accent:hover {
    background-color: rgba(139, 92, 246, 0.15);
    color: var(--accent);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--neutral-600);
    border: 1px solid var(--neutral-400);
}

.btn-outline-secondary:hover {
    background-color: var(--neutral-200);
    color: var(--neutral-800);
    border-color: var(--neutral-500);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--primary);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-outline-danger:hover {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.btn-outline-success {
    background: transparent;
    color: var(--success);
    border: 1px solid var(--success);
}

.btn-outline-success:hover {
    background-color: var(--success);
    color: white;
}

.btn-outline-warning {
    background: transparent;
    color: var(--warning);
    border: 1px solid var(--warning);
}

.btn-outline-warning:hover {
    background-color: var(--warning);
    color: white;
}

/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gunmetal);
}

.form-input,
.form-select,
.form-textarea,
select.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--frozen-water);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: var(--card-bg);
}

/* Style spécifique pour les selects/dropdowns */
select.form-input,
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2335393c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Tableaux */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: var(--primary-light);
    color: var(--neutral-800);
}

th, td {
    padding: 1rem;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid var(--frozen-water);
}

tbody tr:hover {
    background-color: var(--frozen-water);
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: default;
    border: 2px solid var(--primary);
}

.stat-card:nth-child(1) {
    border-color: var(--primary);
}

.stat-card:nth-child(2) {
    border-color: var(--secondary);
}

.stat-card:nth-child(3) {
    border-color: var(--accent);
}

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

.stat-card h3 {
    color: var(--neutral-700);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-card:nth-child(1) .stat-value {
    color: var(--primary);
}

.stat-card:nth-child(2) .stat-value {
    color: var(--secondary);
}

.stat-card:nth-child(3) .stat-value {
    color: var(--accent);
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    color: var(--gunmetal);
    margin: 0;
}

.trial-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--secondary-lighter) 0%, var(--accent-lighter) 100%);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--secondary);
}

.trial-banner .material-icons-outlined {
    color: var(--secondary);
}

/* Stat Card Enhancements */
.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stat-header h3 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--neutral-600);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
}

.stat-card:nth-child(1) .stat-icon {
    background: var(--primary-lighter);
    color: var(--primary);
}

.stat-card:nth-child(2) .stat-icon {
    background: var(--secondary-lighter);
    color: var(--secondary);
}

.stat-card:nth-child(3) .stat-icon {
    background: var(--accent-lighter);
    color: var(--accent);
}

.stat-icon .material-icons-outlined {
    font-size: 1.25rem;
}

.stat-comparison {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--neutral-600);
}

.stat-comparison .material-icons-outlined {
    font-size: 1rem;
}

.stat-comparison.positive {
    color: var(--success);
}

.stat-comparison.negative {
    color: var(--danger);
}

.stat-projection {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--neutral-500);
    font-style: italic;
}

.stat-projection .material-icons-outlined {
    font-size: 1rem;
}

.stat-action {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.stat-action:hover {
    text-decoration: underline;
}

.stat-action .material-icons-outlined {
    font-size: 1rem;
}

.stat-empty {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    color: var(--success);
}

.stat-empty .material-icons-outlined {
    font-size: 1rem;
}

.stat-sub {
    font-size: 0.85rem;
    color: var(--neutral-500);
    margin-top: 0.25rem;
}

/* 4ème stat card - Frais annexes */
.stat-card:nth-child(4) {
    border-color: var(--info);
}

.stat-card:nth-child(4) .stat-value {
    color: var(--info);
}

.stat-card:nth-child(4) .stat-icon {
    background: var(--info-light);
    color: var(--info);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    min-height: 300px;
    padding: 1rem;
    width: 100%;
}

.chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 250px;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Top Trips List */
.top-trips-list {
    display: flex;
    flex-direction: column;
}

.trip-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--neutral-100);
}

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

.trip-route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.trip-locations {
    font-weight: 500;
    color: var(--gunmetal);
}

.trip-count {
    background: var(--primary-lighter);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.trip-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--neutral-600);
}

.trip-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trip-stats .material-icons-outlined {
    font-size: 1rem;
}

/* Vehicle Stats List */
.vehicle-stats-list {
    display: flex;
    flex-direction: column;
}

.vehicle-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--neutral-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.vehicle-info {
    display: flex;
    flex-direction: column;
}

.vehicle-name {
    font-weight: 500;
    color: var(--gunmetal);
}

.vehicle-registration {
    font-size: 0.85rem;
    color: var(--neutral-500);
}

.vehicle-stats {
    display: flex;
    gap: 1.5rem;
}

.vehicle-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.vehicle-stat .stat-label {
    font-size: 0.75rem;
    color: var(--neutral-500);
    text-transform: uppercase;
}

.vehicle-stat .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gunmetal);
}

/* Empty State Small */
.empty-state-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--neutral-400);
    text-align: center;
}

.empty-state-small .material-icons-outlined {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.empty-state-small p {
    margin: 0;
    font-size: 0.9rem;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--neutral-50);
    border-radius: 10px;
    text-decoration: none;
    color: var(--gunmetal);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.quick-action-card:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.quick-action-card.quick-action-primary {
    background: var(--primary-lighter);
    border-color: var(--primary);
}

.quick-action-card.quick-action-primary:hover {
    background: var(--primary);
    color: white;
}

.quick-action-card.quick-action-primary:hover .quick-action-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: var(--primary);
    flex-shrink: 0;
}

.quick-action-icon .material-icons-outlined {
    font-size: 1.5rem;
}

.quick-action-content {
    display: flex;
    flex-direction: column;
}

.quick-action-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.quick-action-desc {
    font-size: 0.8rem;
    color: var(--neutral-500);
}

.quick-action-card.quick-action-primary:hover .quick-action-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Page d'accueil */
.hero {
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    color: var(--gunmetal);
    margin-bottom: 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Page de connexion/inscription */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--neutral-50) 100%);
}

.auth-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.auth-container {
    max-width: 450px;
    margin: 0 auto;
}

.auth-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.auth-card h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
}

/* Actions sur les lignes de tableau */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Badge de statut */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-draft {
    background-color: var(--frozen-water);
    color: var(--gunmetal);
}

.badge-validated {
    background-color: var(--celadon);
    color: var(--gunmetal);
}

.badge-exported {
    background-color: var(--neutral-700);
    color: white;
}

.badge-primary {
    background-color: var(--primary);
    color: white;
}

.badge-secondary {
    background-color: var(--neutral-400);
    color: var(--neutral-800);
}

.badge-success {
    background-color: var(--success);
    color: white;
}

.badge-warning {
    background-color: var(--warning);
    color: var(--neutral-900);
}

.badge-info {
    background-color: var(--info);
    color: white;
}

.badge-danger {
    background-color: var(--danger);
    color: white;
}

/* Footer */
footer {
    background-color: var(--topbar-bg);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.5rem;
}

/* Breadcrumbs - Dans le contenu principal */
.page-breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.page-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.page-breadcrumb a:hover {
    color: var(--primary);
}

.page-breadcrumb .breadcrumb-separator {
    color: var(--neutral-400);
    font-size: 0.75rem;
}

.page-breadcrumb .breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* Legacy breadcrumb styles */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--neutral-300);
}

.breadcrumb-current {
    color: var(--neutral-700);
    font-weight: 500;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(75, 127, 82, 0.15);
    transform: translateY(-2px);
}

.quick-action-card.quick-action-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.quick-action-card.quick-action-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(75, 127, 82, 0.3);
}

.quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--neutral-100);
    border-radius: 8px;
    flex-shrink: 0;
}

.quick-action-icon .material-icons-outlined {
    font-size: 24px;
    color: var(--primary);
}

.quick-action-card.quick-action-primary .quick-action-icon {
    background: rgba(255, 255, 255, 0.2);
}

.quick-action-card.quick-action-primary .quick-action-icon .material-icons-outlined {
    color: white;
}

.quick-action-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.quick-action-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.quick-action-card.quick-action-primary .quick-action-title {
    color: white;
}

.quick-action-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.quick-action-card.quick-action-primary .quick-action-desc {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--neutral-700);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--neutral-700);
    margin-bottom: 1.5rem;
}

/* Form States */
.form-error {
    border-color: var(--danger) !important;
}

.form-success {
    border-color: var(--success) !important;
}

.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.help-text {
    color: var(--neutral-700);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Loading States */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--neutral-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-large {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ========================================
   FILTRES ET RECHERCHE
   ======================================== */

.filters-form {
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
}

.filter-group .form-input {
    width: 100%;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-actions {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Utility Classes */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.ml-1 { margin-left: 0.5rem; }
.ml-2 { margin-left: 1rem; }
.mr-1 { margin-right: 0.5rem; }
.mr-2 { margin-right: 1rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-muted { color: var(--neutral-700); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-normal { font-weight: 400; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.w-auto { width: auto; }

/* Color Preview */
.color-preview {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 2px solid var(--neutral-200);
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Search & Filter */
.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--neutral-100);
    border-radius: 8px;
    font-size: 1rem;
}

.search-input:focus {
    border-color: var(--primary);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-700);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    list-style: none;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--neutral-200);
    border-radius: 4px;
    text-decoration: none;
    color: var(--neutral-800);
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.pagination .active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Tooltips */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    background-color: var(--neutral-800);
    color: white;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ========================================
   APPLICATION LAYOUT WITH SIDEBAR
   ======================================== */

.app-layout {
    display: flex;
    height: 100vh;
    background-color: var(--sidebar-bg);
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transition: all 0.3s;
    z-index: 1000;
    border-right: none;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    height: 65px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Close button for mobile sidebar */
.sidebar-close-mobile {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.sidebar-close-mobile:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-close-mobile .material-icons-outlined {
    font-size: 1.5rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s;
}

.sidebar-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.sidebar-logo .logo-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    color: var(--accent);
}

/* Logo collapsed - hidden by default */
.sidebar-logo-collapsed {
    display: none;
    text-decoration: none;
}

.sidebar-logo-collapsed .logo-icon {
    font-size: 1.75rem;
    color: var(--accent);
}

.sidebar-logo-collapsed .logo-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0 0.5rem;
}

.sidebar.collapsed .sidebar-logo {
    display: none;
}

.sidebar.collapsed .sidebar-logo-collapsed {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.sidebar-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-section {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    transition: all 0.3s;
}

.sidebar.collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.125rem 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 8px;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

.nav-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon .material-icons-outlined {
    color: rgba(255, 255, 255, 0.6) !important;
}

.nav-item:hover .nav-icon .material-icons-outlined {
    color: white !important;
}

.nav-item.active .nav-icon .material-icons-outlined {
    color: white !important;
}

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

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.75rem;
    margin: 0.125rem 0.5rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
}

.subscription-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.status-badge.active {
    background-color: rgba(102, 187, 106, 0.2);
    color: var(--success);
}

.status-badge.inactive {
    background-color: rgba(255, 167, 38, 0.2);
    color: var(--warning);
}

.status-badge .material-icons-outlined {
    font-size: 1.1rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.status-badge.active {
    background-color: rgba(75, 127, 82, 0.3);
    color: #8bc34a;
}

.status-badge.inactive {
    background-color: rgba(255, 164, 0, 0.2);
    color: var(--warning);
}

.status-icon {
    font-size: 1rem;
}

.sidebar.collapsed .sidebar-footer {
    padding: 0.75rem;
}

.sidebar.collapsed .status-text {
    display: none;
}

.sidebar.collapsed .status-badge {
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

.sidebar.collapsed .status-badge .status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.collapsed .sidebar-footer .btn {
    padding: 0.5rem;
    font-size: 0;
    justify-content: center;
}

.sidebar.collapsed .sidebar-footer .btn::before {
    content: "credit_card";
    font-family: "Material Icons Outlined";
    font-size: 1.25rem;
}

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    transition: margin-left 0.3s;
    background-color: var(--topbar-bg);
    overflow: hidden;
}

.sidebar-collapsed .main-wrapper {
    margin-left: 80px;
}

/* Content Area with rounded corners */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--neutral-50);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    margin-bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

/* Footer Area */
.footer-area {
    background-color: var(--sidebar-bg);
    flex-shrink: 0;
}

/* Topbar */
.topbar {
    background-color: var(--topbar-bg);
    border-bottom: none;
    height: 65px;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Sidebar Toggle Button (in topbar) */
.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-toggle .material-icons-outlined {
    font-size: 1.5rem;
}

.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--neutral-700);
    padding: 0.5rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Notifications Bell */
.notifications-bell {
    position: relative;
}

.notifications-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.notifications-toggle .material-icons-outlined {
    font-size: 1.5rem;
}

.notifications-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 360px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

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

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--neutral-100);
}

.notifications-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--gunmetal);
}

.notifications-header .mark-all-read {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
}

.notifications-header .mark-all-read:hover {
    text-decoration: underline;
}

.notifications-list-dropdown {
    max-height: 320px;
    overflow-y: auto;
}

.notifications-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--neutral-400);
}

.notifications-loading .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--neutral-400);
    text-align: center;
}

.notifications-empty .material-icons-outlined {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.notifications-empty p {
    margin: 0;
    font-size: 0.9rem;
}

.notification-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--gunmetal);
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--neutral-50);
}

.notification-dropdown-item:hover {
    background-color: var(--neutral-50);
}

.notification-dropdown-item.unread {
    background-color: var(--primary-lighter);
}

.notification-dropdown-item.unread:hover {
    background-color: var(--primary-lighter);
}

.notification-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon-small .material-icons-outlined {
    font-size: 1.1rem;
}

.notification-icon-reminder {
    background: var(--primary-lighter);
    color: var(--primary);
}

.notification-icon-trial {
    background: var(--secondary-lighter);
    color: var(--secondary);
}

.notification-icon-welcome {
    background: var(--accent-lighter);
    color: var(--accent);
}

.notification-icon-system {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.notification-content-small {
    flex: 1;
    min-width: 0;
}

.notification-title-small {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-date-small {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.notifications-footer {
    padding: 0.75rem 1.25rem;
    text-align: center;
    border-top: 1px solid var(--neutral-100);
}

.notifications-footer a {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.notifications-footer a:hover {
    text-decoration: underline;
}

/* Notifications List Page */
.notifications-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--neutral-100);
    transition: background-color 0.2s;
}

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

.notification-item:hover {
    background-color: var(--neutral-50);
}

.notification-item.unread {
    background-color: var(--primary-lighter);
}

.notification-item.unread:hover {
    background-color: rgba(75, 127, 82, 0.15);
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon .material-icons-outlined {
    font-size: 1.4rem;
}

.notification-icon-reminder {
    background: var(--primary-lighter);
    color: var(--primary);
}

.notification-icon-trial {
    background: var(--secondary-lighter);
    color: var(--secondary);
}

.notification-icon-welcome {
    background: var(--accent-lighter);
    color: var(--accent);
}

.notification-icon-system {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.notification-content {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    display: block;
}

a.notification-content:hover {
    text-decoration: none;
}

a.notification-content:hover .notification-title {
    color: var(--primary-color);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.notification-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gunmetal);
    margin: 0;
}

.notification-date {
    font-size: 0.8rem;
    color: var(--neutral-500);
    white-space: nowrap;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.5;
}

.notification-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
}

.notification-link:hover {
    text-decoration: underline;
}

.notification-link .material-icons-outlined {
    font-size: 1rem;
}

.notification-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--neutral-500);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-icon:hover {
    background-color: var(--neutral-100);
    color: var(--gunmetal);
}

.btn-icon-danger:hover {
    background-color: var(--danger-light);
    color: var(--danger);
}

.btn-icon .material-icons-outlined {
    font-size: 1.25rem;
}

/* Notification Preferences */
.notification-prefs-form {
    padding: 0 1.5rem 1.5rem;
}

.prefs-section {
    margin-bottom: 2rem;
}

.prefs-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--gunmetal);
    margin-bottom: 0.5rem;
}

.prefs-section > p {
    color: var(--neutral-500);
    margin-bottom: 1.5rem;
}

.pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-100);
}

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

.pref-sub-item {
    padding-left: 1.5rem;
    background-color: var(--neutral-50);
    margin: 0 -1.5rem;
    padding-right: 1.5rem;
}

.pref-info {
    flex: 1;
}

.pref-info label {
    font-weight: 500;
    color: var(--gunmetal);
    display: block;
    margin-bottom: 0.25rem;
}

.pref-info p {
    font-size: 0.85rem;
    color: var(--neutral-500);
    margin: 0;
}

.pref-toggle {
    flex-shrink: 0;
}

.pref-input input {
    width: 80px;
}

/* Custom Checkbox Toggle */
.form-checkbox {
    position: relative;
    width: 48px;
    height: 26px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--neutral-300);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-checkbox:checked {
    background: var(--primary);
}

.form-checkbox::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    border-radius: 50%;
    transition: transform 0.3s;
}

.form-checkbox:checked::before {
    transform: translateX(22px);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.user-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-name {
    font-weight: 500;
    color: white;
}

.dropdown-arrow {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s;
}

.user-dropdown-toggle:hover .dropdown-arrow {
    transform: translateY(2px);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    padding: 0.5rem 0;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 0.75rem 1.5rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name-large {
    font-weight: 600;
    color: var(--neutral-800);
}

.user-email {
    font-size: 0.875rem;
    color: var(--neutral-700);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--neutral-200);
    margin: 0.5rem 0.75rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.125rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: var(--neutral-100);
    color: var(--text-primary);
}

.dropdown-item.highlight {
    color: var(--accent);
    font-weight: 500;
}

.dropdown-item.highlight:hover {
    background-color: var(--accent-lighter);
    color: var(--accent);
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger:hover {
    background-color: var(--danger-light);
    color: var(--danger);
}

.dropdown-icon {
    font-size: 1.125rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Breadcrumb in Topbar */
.topbar .breadcrumb {
    padding: 0;
    margin: 0;
}

.topbar .breadcrumb,
.topbar .breadcrumb a,
.topbar .breadcrumb-current {
    color: rgba(255, 255, 255, 0.7);
}

.topbar .breadcrumb a:hover {
    color: white;
}

.topbar .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* App Footer */
.app-footer {
    background-color: var(--sidebar-bg);
    border-top: none;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    margin-top: 0;
    border-radius: 12px 12px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

.app-footer .footer-links {
    display: flex;
    gap: 1.5rem;
}

.app-footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.app-footer .footer-links a:hover {
    color: white;
}

/* ========================================
   LANDING PAGE STYLES
   ======================================== */

.landing-page {
    background-color: var(--neutral-50);
}

/* Landing Header */
.landing-header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.landing-nav {
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-right: auto;
}

.landing-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
}

.logo-text {
    color: var(--neutral-800);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
}

.landing-nav-links a {
    text-decoration: none;
    color: var(--neutral-800);
    font-weight: 500;
    transition: color 0.2s;
}

.landing-nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--neutral-800);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, white 100%);
    padding: 5rem 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-700);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-note {
    color: var(--neutral-700);
    font-size: 0.95rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.visual-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: absolute;
}

.stat-preview {
    top: 20%;
    left: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 3s ease-in-out infinite;
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--neutral-700);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.document-preview {
    top: 50%;
    right: 0;
    width: 250px;
    animation: float 3s ease-in-out infinite 1.5s;
}

.document-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--neutral-100);
}

.doc-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.document-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-line {
    height: 8px;
    background-color: var(--neutral-100);
    border-radius: 4px;
}

.doc-line:nth-child(1) { width: 100%; }
.doc-line:nth-child(2) { width: 80%; }
.doc-line:nth-child(3) { width: 60%; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Sections */
.features-section,
.pricing-section,
.about-section {
    padding: 5rem 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--neutral-700);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--neutral-800);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--neutral-700);
    line-height: 1.6;
}

/* Pricing Hero */
.pricing-hero {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, white 100%);
    padding: 4rem 0 2rem;
}

.pricing-hero .section-header {
    margin-bottom: 0;
}

.pricing-hero h1 {
    font-size: 2.5rem;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

/* Pricing Features Section */
.pricing-features-section {
    padding: 5rem 0;
    background-color: var(--neutral-50);
}

/* Pricing Section */
.pricing-section {
    background-color: var(--card-bg);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.pricing-card {
    background: var(--card-bg);
    border: 2px solid var(--neutral-100);
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 400px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(75, 127, 82, 0.2);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    text-align: center;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary);
}

.price-period {
    font-size: 1.25rem;
    color: var(--neutral-700);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--neutral-700);
}

.check {
    color: var(--success);
    font-weight: bold;
    font-size: 1.25rem;
}

.pricing-note {
    text-align: center;
    color: var(--neutral-700);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Pricing Toggle Switch */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.toggle-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-500);
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-label.active {
    color: var(--neutral-800);
    font-weight: 600;
}

.toggle-badge {
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--neutral-300);
    transition: 0.3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--card-bg);
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Single pricing card centered */
.pricing-cards {
    display: flex;
    justify-content: center;
}

.pricing-card {
    max-width: 420px;
    width: 100%;
}

.pricing-equivalent {
    text-align: center;
    color: var(--neutral-600);
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Trial info section */
.trial-info {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--primary-lighter);
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.trial-badge .material-icons-outlined {
    font-size: 1.25rem;
}

.trial-info p {
    color: var(--neutral-700);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: var(--card-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--neutral-200);
}

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

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--neutral-800);
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    font-size: 0.875rem;
    color: var(--neutral-500);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--neutral-700);
    line-height: 1.7;
    font-size: 1rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--neutral-700);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.about-stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visual-element {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.5s ease-out;
}

.visual-element:nth-child(2) {
    animation-delay: 0.2s;
    margin-left: 2rem;
}

.visual-element:nth-child(3) {
    animation-delay: 0.4s;
    margin-left: 4rem;
}

.element-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--success);
}

.element-text {
    font-weight: 500;
    color: var(--neutral-800);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.cta-section .btn {
    background-color: var(--card-bg);
    color: var(--primary);
}

.cta-section .btn:hover {
    background-color: var(--neutral-50);
    transform: translateY(-2px);
}

/* Landing Footer */
.landing-footer {
    background-color: var(--neutral-800);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-grid .footer-column:not(:first-child) {
    text-align: left;
    justify-self: end;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    text-align: left;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.landing-footer .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}

.landing-footer .footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.85rem;
}

.landing-footer .footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.footer-social {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

/* Footer Contact Card */
.footer-contact-card {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-contact-card h5 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-card h5 i {
    color: var(--secondary);
}

.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-contact-form input,
.footer-contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    color: white;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s ease;
    resize: none;
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.15);
}

.btn-footer-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-footer-submit:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-footer-submit i {
    font-size: 0.75rem;
}

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

@media (max-width: 968px) {
    /* Sidebar responsive */
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-close-mobile {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .mobile-sidebar-toggle {
        display: block;
    }

    .topbar {
        padding: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .user-name {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .app-footer .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Landing responsive */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .landing-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
    }

    .landing-nav-links.active {
        display: flex;
    }

    /* Dropdown mobile styles */
    .landing-nav-links .dropdown {
        width: 100%;
    }

    .landing-nav-links .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        padding: 0.75rem 0;
    }

    .landing-nav-links .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: var(--bg-tertiary);
        border-radius: 8px;
        margin: 0.5rem 0;
        padding: 0.5rem;
        display: none;
    }

    .landing-nav-links .dropdown-menu a {
        color: var(--neutral-800) !important;
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: nowrap;
        width: 100%;
    }

    .landing-nav-links .dropdown-menu .material-icons-outlined {
        flex-shrink: 0;
        min-width: 40px;
    }

    .landing-nav-links .dropdown-menu .dropdown-text {
        flex: 1;
        color: var(--neutral-800) !important;
        font-size: 0.95rem;
    }

    .landing-nav-links .dropdown.active .dropdown-menu {
        display: block;
    }

    .landing-nav-links .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .landing-nav-links li {
        width: 100%;
    }

    .landing-nav-links .btn {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .hero-note {
        text-align: center;
        font-size: 0.85rem;
    }

    .hero-content {
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .about-visual .visual-element:nth-child(2),
    .about-visual .visual-element:nth-child(3) {
        margin-left: 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content {
        text-align: center;
    }

    .about-text {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .dropdown-arrow {
        display: none;
    }

    .dropdown-menu {
        right: -1rem;
        min-width: calc(100vw - 2rem);
    }
}

/* Overlay for mobile sidebar */
@media (max-width: 968px) {
    .sidebar.mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Mobile Card View for Tables */
@media (max-width: 768px) {
    .table-responsive-cards {
        display: none;
    }

    .mobile-card {
        background: var(--card-bg);
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .mobile-card-header {
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--neutral-100);
    }

    .mobile-card-row {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
    }

    .mobile-card-label {
        font-weight: 500;
        color: var(--neutral-700);
    }
}

/* ===== DROPDOWN NAVIGATION ===== */
.landing-nav-links .dropdown {
    position: relative;
}

.landing-nav-links .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.landing-nav-links .dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.landing-nav-links .dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.landing-nav-links .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    z-index: 1000;
}

.landing-nav-links .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.landing-nav-links .dropdown-menu li {
    list-style: none;
    margin: 0.125rem 0.75rem;
}

.landing-nav-links .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-radius: 8px;
}

.landing-nav-links .dropdown-menu a:hover {
    background: var(--neutral-100);
    color: var(--text-primary);
}

.landing-nav-links .dropdown-menu .material-icons-outlined {
    font-size: 1.25rem;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(255,255,255,0.9), var(--primary-lighter));
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(75, 127, 82, 0.15);
    transition: all 0.2s ease;
}

.landing-nav-links .dropdown-menu a:hover .material-icons-outlined {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    box-shadow: 0 4px 15px rgba(75, 127, 82, 0.3);
    transform: scale(1.08);
}

.landing-nav-links .dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--neutral-200);
    margin: 0.5rem 0;
    padding: 0;
    list-style: none;
}

/* ===== FEATURE PAGE STYLES ===== */
.feature-page {
    min-height: 100vh;
}

/* Feature Hero */
.feature-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 6rem 2rem 4rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.feature-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Content */
.feature-content {
    padding: 4rem 2rem;
}

.feature-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Feature Grid */
.feature-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Feature Box */
.feature-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.feature-box-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.feature-box-icon.primary { background: var(--primary-lighter); color: var(--primary); }
.feature-box-icon.accent { background: rgba(255, 112, 67, 0.15); color: var(--accent); }
.feature-box-icon.success { background: var(--success-light); color: var(--success); }
.feature-box-icon.warning { background: var(--warning-light); color: var(--warning); }
.feature-box-icon.danger { background: var(--danger-light); color: var(--danger); }
.feature-box-icon.info { background: var(--info-light); color: var(--info); }

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--neutral-800);
}

.feature-box p {
    color: var(--neutral-700);
    line-height: 1.6;
}

/* Feature Showcase */
.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse > * {
    direction: ltr;
}

.feature-showcase-content h2 {
    font-size: 2rem;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.feature-showcase-content p {
    color: var(--neutral-700);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-showcase-list {
    list-style: none;
    padding: 0;
}

.feature-showcase-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--neutral-700);
}

.feature-showcase-list .material-icons-outlined {
    color: var(--success);
    font-size: 1.25rem;
}

.feature-showcase-visual {
    position: relative;
}

.feature-visual-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
}

.feature-visual-card::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: 10px;
    left: 10px;
    background: var(--primary-lighter);
    border-radius: 16px;
    z-index: -1;
}

/* Stats Section */
.feature-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0;
    text-align: center;
}

.feature-stat {
    padding: 1.5rem;
}

.feature-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-stat-label {
    color: var(--neutral-600);
    font-size: 0.95rem;
}

/* Animated Elements */
.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* Feature CTA */
.feature-cta {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    border-radius: 24px;
    margin: 3rem 0;
}

.feature-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-cta p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Demo Preview */
.demo-preview {
    background: var(--neutral-100);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.demo-preview-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.demo-preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-preview-dot:nth-child(1) { background: var(--danger); }
.demo-preview-dot:nth-child(2) { background: var(--warning); }
.demo-preview-dot:nth-child(3) { background: var(--success); }

.demo-preview-content {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
}

/* Timeline */
.feature-timeline {
    position: relative;
    padding: 2rem 0;
}

.feature-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-lighter);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.timeline-dot {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    z-index: 1;
    margin: 0 2rem;
}

/* Responsive Feature Pages */
@media (max-width: 1024px) {
    .feature-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-hero h1 {
        font-size: 2rem;
    }

    .feature-hero p {
        font-size: 1rem;
    }

    .feature-grid-2,
    .feature-grid-3 {
        grid-template-columns: 1fr;
    }

    .feature-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-showcase.reverse {
        direction: ltr;
    }

    .feature-stats {
        grid-template-columns: 1fr;
    }

    .landing-nav-links .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0.5rem 0 0.5rem 1rem;
        opacity: 1;
        visibility: visible;
        min-width: auto;
    }

    .landing-nav-links .dropdown-menu a {
        color: white;
        padding: 0.5rem;
    }

    .landing-nav-links .dropdown-menu a:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }

    .feature-timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }

    .timeline-content {
        width: calc(100% - 60px);
    }

    .timeline-dot {
        margin: 0 1rem;
    }
}

/* ===== UTILITY CLASSES FOR ICONS ===== */
/* Icon colors */
.icon-primary { color: var(--primary); }
.icon-accent { color: var(--accent); }
.icon-success { color: var(--success); }
.icon-warning { color: var(--warning); }
.icon-danger { color: var(--danger); }
.icon-info { color: var(--info); }
.icon-neutral { color: var(--neutral-800); }
.icon-neutral-light { color: var(--neutral-500); }
.icon-neutral-lighter { color: var(--neutral-400); }

/* Icon sizes */
.icon-sm { font-size: 1.2rem; }
.icon-md { font-size: 1.5rem; }
.icon-lg { font-size: 2rem; }
.icon-xl { font-size: 2.5rem; }
.icon-xxl { font-size: 3rem; }
.icon-hero { font-size: 5rem; }

/* Text colors */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-neutral-800 { color: var(--neutral-800); }
.text-neutral-600 { color: var(--neutral-600); }
.text-neutral-500 { color: var(--neutral-500); }
.text-neutral-400 { color: var(--neutral-400); }

/* Font sizes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 2rem; }
.text-4xl { font-size: 3rem; }

/* Font weights */
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

/* Vertical alignment */
.align-middle { vertical-align: middle; }

/* Button variants for CTAs */
.btn-white-accent {
    background: var(--card-bg);
    color: var(--accent);
}

.btn-white-accent:hover {
    background: var(--neutral-100);
}

.btn-white-warning {
    background: var(--card-bg);
    color: var(--warning);
}

.btn-white-warning:hover {
    background: var(--neutral-100);
}

.btn-white-info {
    background: var(--card-bg);
    color: var(--info);
}

.btn-white-info:hover {
    background: var(--neutral-100);
}

.btn-white-success {
    background: var(--card-bg);
    color: var(--success);
}

.btn-white-success:hover {
    background: var(--neutral-100);
}

/* ===== LOCATIONS ROW WITH SWAP BUTTON ===== */
.locations-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.locations-row .location-field {
    flex: 1;
    margin-bottom: 0;
}

.swap-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.swap-btn:hover {
    background-color: var(--accent);
    color: white;
    transform: rotate(180deg);
}

.swap-btn .material-icons-outlined {
    font-size: 1.5rem;
}

/* Responsive pour mobile */
@media (max-width: 640px) {
    .locations-row {
        flex-direction: column;
        align-items: stretch;
    }

    .swap-btn {
        align-self: center;
        margin: 0.5rem 0;
        transform: rotate(90deg);
    }

    .swap-btn:hover {
        transform: rotate(270deg);
    }
}

/* ========================================
   LANDING PAGE VISUAL EFFECTS
   (Effets visuels avancés pour la landing)
   ======================================== */

/* ========================================
   HERO SECTION - ANIMATED BACKGROUND
   ======================================== */

.landing-page .hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, #ffffff 50%, rgba(255, 164, 0, 0.05) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* SVG Waves Animation */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    min-height: 200px;
}

.wave {
    animation: waveMove 10s ease-in-out infinite;
}

.wave-1 {
    animation-delay: 0s;
    animation-duration: 8s;
}

.wave-2 {
    animation-delay: -2s;
    animation-duration: 10s;
}

.wave-3 {
    animation-delay: -4s;
    animation-duration: 12s;
}

@keyframes waveMove {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-5%) translateY(5px);
    }
    50% {
        transform: translateX(0) translateY(10px);
    }
    75% {
        transform: translateX(5%) translateY(5px);
    }
}

/* ========================================
   FLOATING SHAPES / PARTICLES
   ======================================== */

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    top: 20%;
    right: 15%;
    animation-delay: -3s;
    animation-duration: 22s;
}

.shape-3 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--info), var(--info-light));
    top: 60%;
    left: 5%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success-light), var(--success));
    bottom: 20%;
    right: 10%;
    animation-delay: -8s;
    animation-duration: 20s;
    opacity: 0.4;
}

.shape-5 {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--warning), var(--warning-light));
    top: 40%;
    left: 20%;
    animation-delay: -2s;
    animation-duration: 15s;
}

.shape-6 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    bottom: 30%;
    left: 40%;
    animation-delay: -6s;
    animation-duration: 17s;
    opacity: 0.3;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(-15px) translateX(-15px) rotate(180deg) scale(0.95);
    }
    75% {
        transform: translateY(-40px) translateX(10px) rotate(270deg) scale(1.05);
    }
}

/* ========================================
   GRADIENT TEXT
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* ========================================
   TYPEWRITER EFFECT
   ======================================== */

.hero-title {
    color: var(--primary);
}

.typewriter {
    color: var(--secondary);
    border-right: 3px solid var(--secondary);
    padding-right: 5px;
    animation: blink-caret 0.75s step-end infinite;
    display: inline;
    font-weight: 700;
}

.typewriter.typing {
    border-right-color: var(--secondary);
}

.typewriter.paused {
    border-right-color: transparent;
    animation: none;
}

@keyframes blink-caret {
    from, to { border-color: var(--secondary); }
    50% { border-color: transparent; }
}

/* ========================================
   GLASSMORPHISM CARDS
   ======================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transform: translateY(-5px);
}

/* Feature cards glassmorphism */
.feature-card.glass-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2rem;
}

.feature-card.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
}

.feature-card.glass-card .feature-icon {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
    border-radius: 16px;
    padding: 1rem;
    display: inline-flex;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ========================================
   BUTTON GLOW EFFECT
   ======================================== */

.btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(75, 127, 82, 0.4);
    animation: btnPulse 2s ease-in-out infinite;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(75, 127, 82, 0.4);
    }
    50% {
        box-shadow: 0 0 35px rgba(75, 127, 82, 0.6);
    }
}

@keyframes btnShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    50%, 100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ========================================
   CTA SECTION ANIMATED BACKGROUND
   ======================================== */

.cta-animated {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent-dark) 100%);
    background-size: 300% 300%;
    animation: ctaGradient 10s ease infinite;
}

@keyframes ctaGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 40%);
    animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    33% {
        transform: translateX(10px) translateY(-10px);
    }
    66% {
        transform: translateX(-10px) translateY(10px);
    }
}

.cta-animated .cta-container {
    position: relative;
    z-index: 1;
}

.cta-animated .btn {
    background: white !important;
    color: var(--primary) !important;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-animated .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   FLAG ANIMATION
   ======================================== */

.flag-animated {
    display: inline-block;
    animation: flagWave 2s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes flagWave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
}

/* ========================================
   VISUAL CARDS IN HERO - ENHANCED
   ======================================== */

.hero-visual .visual-card {
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.hero-visual .stat-preview {
    animation: cardFloat 6s ease-in-out infinite;
}

.hero-visual .document-preview {
    animation: cardFloat 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* Document lines animation */
.doc-line {
    animation: lineExpand 2s ease-in-out infinite;
}

.doc-line:nth-child(1) {
    animation-delay: 0s;
}

.doc-line:nth-child(2) {
    animation-delay: 0.3s;
}

.doc-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes lineExpand {
    0%, 100% {
        width: 60%;
        opacity: 0.5;
    }
    50% {
        width: 90%;
        opacity: 1;
    }
}

/* ========================================
   ABOUT SECTION VISUAL ELEMENTS - ENHANCED
   ======================================== */

.about-visual .visual-element {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-visual .visual-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.about-visual .visual-element:hover::before {
    left: 100%;
}

.about-visual .visual-element:hover {
    transform: translateX(10px);
    background: rgba(75, 127, 82, 0.15);
}

/* ========================================
   STATS COUNTER STYLES
   ======================================== */

.about-stat .stat-number.counter {
    font-variant-numeric: tabular-nums;
}

.about-stat {
    transition: all 0.4s ease;
}

.about-stat:hover {
    transform: scale(1.1);
}

.about-stat:hover .stat-number {
    color: var(--secondary);
}

/* ========================================
   FEATURES SECTION BACKGROUND - ENHANCED
   ======================================== */

.landing-page .features-section {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, var(--neutral-50) 100%);
}

.landing-page .features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(75, 127, 82, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(195, 49, 73, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ========================================
   ABOUT SECTION BACKGROUND - ENHANCED
   ======================================== */

.landing-page .about-section {
    position: relative;
    background: var(--neutral-50);
}

.landing-page .about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(75, 127, 82, 0.02) 100%);
    pointer-events: none;
}

/* ========================================
   SECTION HEADER ENHANCEMENTS - ANIMATED
   ======================================== */

.landing-page .section-header h2 {
    position: relative;
    display: inline-block;
}

.landing-page .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: lineWidth 3s ease-in-out infinite;
}

@keyframes lineWidth {
    0%, 100% {
        width: 60px;
    }
    50% {
        width: 100px;
    }
}

/* ========================================
   SCROLL INDICATOR (optional)
   ======================================== */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--primary);
    border-radius: 3px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scrollDot {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ========================================
   LANDING EFFECTS - RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .floating-shapes .shape {
        display: none;
    }

    .floating-shapes .shape-1,
    .floating-shapes .shape-2 {
        display: block;
        width: 40px;
        height: 40px;
    }

    .hero-waves {
        height: 30%;
    }

    .gradient-text {
        font-size: 2rem;
    }

    .glass-card {
        backdrop-filter: blur(5px);
    }
}

@media (max-width: 480px) {
    .floating-shapes {
        display: none;
    }

    .landing-page .hero-section {
        animation: none;
        background: linear-gradient(135deg, var(--primary-lighter) 0%, #ffffff 100%);
    }
}

/* ========================================
   PERFORMANCE: REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .landing-page *,
    .landing-page *::before,
    .landing-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .landing-page .hero-section {
        animation: none;
        background: linear-gradient(135deg, var(--primary-lighter) 0%, #ffffff 100%);
    }

    .floating-shapes {
        display: none;
    }
}

/* ========================================
   ABOUT PAGE STYLES
   ======================================== */

/* About Hero */
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 8rem 2rem 6rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* Mission Section */
.about-mission {
    padding: 6rem 0;
    background: var(--card-bg);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-content h2 {
    font-size: 2.5rem;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
}

.mission-lead {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.mission-content p {
    color: var(--neutral-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.mission-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mission-card {
    background: var(--neutral-50);
    padding: 2rem;
    border-radius: 16px;
}

.mission-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.mission-icon .material-icons-outlined {
    font-size: 1.5rem;
    color: var(--primary);
}

.mission-card h3 {
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
}

.mission-card p {
    color: var(--neutral-700);
    font-size: 0.95rem;
    margin: 0;
}

/* Values Section */
.about-values {
    padding: 6rem 0;
    background: var(--neutral-50);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon .material-icons-outlined {
    font-size: 2rem;
    color: var(--primary);
}

.value-card h3 {
    color: var(--neutral-800);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.value-card p {
    color: var(--neutral-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Story Timeline */
.about-story {
    padding: 6rem 0;
    background: var(--card-bg);
}

.story-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 60px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -60px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-marker .material-icons-outlined {
    color: var(--primary);
    font-size: 1.5rem;
}

.timeline-content {
    background: var(--neutral-50);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    border: 10px solid transparent;
    border-right-color: var(--neutral-50);
}

.timeline-date {
    display: inline-block;
    background: var(--secondary);
    color: var(--neutral-800);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--neutral-700);
    margin: 0;
    line-height: 1.6;
}

/* France Section */
.about-france {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, white 100%);
}

.france-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.france-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.france-content h2 {
    font-size: 2rem;
    color: var(--neutral-800);
    margin-bottom: 2rem;
}

.france-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.france-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.france-list li .material-icons-outlined {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.france-list strong {
    display: block;
    color: var(--neutral-800);
    margin-bottom: 0.25rem;
}

.france-list p {
    color: var(--neutral-700);
    margin: 0;
    font-size: 0.95rem;
}

.france-visual {
    display: flex;
    justify-content: center;
}

.france-map {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.france-map > i {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: block;
}

.france-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.france-stat {
    text-align: center;
}

.france-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.france-stat .stat-label {
    font-size: 0.85rem;
    color: var(--neutral-700);
}

/* Commitment Section */
.about-commitment {
    padding: 6rem 0;
    background: var(--card-bg);
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.commitment-card {
    background: var(--neutral-50);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.commitment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.commitment-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-lighter);
    line-height: 1;
    margin-bottom: 1rem;
}

.commitment-card h3 {
    color: var(--neutral-800);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.commitment-card p {
    color: var(--neutral-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* About Page Responsive */
@media (max-width: 1024px) {
    .values-grid,
    .commitment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero p {
        font-size: 1.1rem;
    }

    .mission-grid,
    .france-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .values-grid,
    .commitment-grid {
        grid-template-columns: 1fr;
    }

    .story-timeline {
        padding-left: 50px;
    }

    .story-timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: -50px;
        width: 40px;
        height: 40px;
    }

    .timeline-marker .material-icons-outlined {
        font-size: 1.2rem;
    }

    .france-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================================
   THEME TOGGLE (Mode sombre)
   ======================================== */

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--neutral-300);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.theme-toggle .material-icons-outlined {
    font-size: 1.5rem;
}

/* Icône soleil en mode clair, lune en mode sombre */
.theme-toggle .icon-light {
    display: block;
}

.theme-toggle .icon-dark {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-light {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-dark {
    display: block;
}

/* Ajustements pour le mode sombre */

/* Header reste en gunmetal fixe (pas inversé) */
[data-theme="dark"] header:not(.landing-header):not(.header-light) {
    background-color: #35393c;
}

[data-theme="dark"] .modal-content {
    background: var(--card-bg);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--border-color);
    background: var(--bg-tertiary);
}

[data-theme="dark"] .modal-summary {
    background: var(--bg-tertiary);
}

[data-theme="dark"] table thead th {
    background: var(--table-header-bg);
}

[data-theme="dark"] table tbody tr:hover {
    background: var(--table-row-hover);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .form-select,
[data-theme="dark"] select {
    background-color: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .empty-state {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .stat-card {
    background: var(--card-bg);
}

[data-theme="dark"] .notifications-dropdown {
    background: var(--card-bg);
}

[data-theme="dark"] .notification-item:hover {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .badge {
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .badge-draft {
    background-color: #3a4a5c;
    color: #a8c5da;
}

[data-theme="dark"] .badge-validated {
    background-color: #2d4a3e;
    color: #8ed4a8;
}

[data-theme="dark"] .badge-exported {
    background-color: #4a4a4a;
    color: #d0d0d0;
}

[data-theme="dark"] .badge-primary {
    background-color: #2563eb;
    color: white;
}

[data-theme="dark"] .badge-secondary {
    background-color: #4b5563;
    color: #d1d5db;
}

[data-theme="dark"] .badge-success {
    background-color: #059669;
    color: white;
}

[data-theme="dark"] .badge-warning {
    background-color: #d97706;
    color: white;
}

[data-theme="dark"] .badge-info {
    background-color: #0891b2;
    color: white;
}

[data-theme="dark"] .badge-danger {
    background-color: #dc2626;
    color: white;
}

/* Animation de transition pour le changement de thème */
body,
.card,
.sidebar,
.topbar,
.modal-content,
table,
.form-input,
.dropdown-menu {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* =============================================================================
   LEGAL PAGES (Mentions légales, CGV, Confidentialité, Cookies)
   ============================================================================= */

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--neutral-100);
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.legal-header .last-update {
    color: var(--neutral-500);
    font-size: 0.875rem;
}

.legal-content {
    color: var(--text-primary);
    line-height: 1.8;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content section.intro {
    background: var(--primary-lighter);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--neutral-100);
}

.legal-content h3 {
    font-size: 1.125rem;
    color: var(--neutral-800);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content h4 {
    font-size: 1rem;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

.legal-content code {
    background: var(--neutral-100);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
}

.legal-content strong {
    color: var(--neutral-800);
}

/* Table des données dans pages légales */
.legal-content .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.legal-content .data-table th,
.legal-content .data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--neutral-200);
}

.legal-content .data-table th {
    background: var(--neutral-100);
    font-weight: 600;
    color: var(--neutral-800);
}

.legal-content .data-table tr:nth-child(even) {
    background: var(--neutral-50);
}

/* Grille des droits RGPD */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.right-item {
    background: var(--card-bg);
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 1rem;
}

.right-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.right-item p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--neutral-600);
}

/* Tableau des prix dans CGV */
.pricing-table {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.pricing-item {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    flex: 1;
    min-width: 200px;
}

.pricing-item .price {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
    margin-top: 0.25rem;
}

.pricing-item .savings {
    display: block;
    font-size: 0.75rem;
    color: var(--neutral-500);
}

/* Footer des pages légales */
.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--neutral-100);
    text-align: center;
}

/* Dark mode pour les pages légales */
[data-theme="dark"] .legal-content section.intro {
    background: rgba(75, 127, 82, 0.1);
}

[data-theme="dark"] .legal-content .data-table th {
    background: var(--neutral-800);
    color: var(--neutral-200);
}

[data-theme="dark"] .legal-content .data-table td {
    border-color: var(--neutral-700);
}

[data-theme="dark"] .legal-content .data-table tr:nth-child(even) {
    background: var(--neutral-800);
}

[data-theme="dark"] .right-item {
    background: var(--neutral-800);
    border-color: var(--neutral-700);
}

[data-theme="dark"] .pricing-item {
    background: var(--neutral-800);
    border-color: var(--neutral-700);
}

[data-theme="dark"] .legal-content code {
    background: var(--neutral-800);
}

/* =============================================================================
   BLOG STYLES
   ============================================================================= */

/* Blog Hero */
.blog-hero {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--neutral-50) 100%);
}

.blog-hero .section-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.blog-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.blog-category-badge .material-icons-outlined {
    font-size: 1rem;
}

/* Categories Navigation */
.blog-categories-nav {
    padding: 1.5rem 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--neutral-100);
    position: sticky;
    top: 0;
    z-index: 100;
}

.categories-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.category-chip:hover {
    background: var(--primary-lighter);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.category-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.category-chip .material-icons-outlined {
    font-size: 1rem;
}

.category-count {
    background: rgba(0,0,0,0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.category-chip.active .category-count {
    background: rgba(255,255,255,0.2);
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 3rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Blog Card */
.blog-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--neutral-100);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--neutral-100) 100%);
}

.blog-card-image-placeholder .material-icons-outlined {
    font-size: 4rem;
    color: var(--primary-light);
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.blog-card-category .material-icons-outlined {
    font-size: 0.875rem;
}

.blog-card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-meta .material-icons-outlined {
    font-size: 0.875rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: auto;
}

.blog-card-link:hover {
    gap: 0.75rem;
}

.blog-card-link .material-icons-outlined {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.blog-card-link:hover .material-icons-outlined {
    transform: translateX(4px);
}

/* Blog Empty State */
.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.blog-empty .material-icons-outlined {
    font-size: 4rem;
    color: var(--neutral-300);
    margin-bottom: 1rem;
}

.blog-empty h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Blog Post Detail */
.blog-post-hero {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--neutral-50) 100%);
}

.blog-post-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.blog-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: var(--primary);
}

.blog-breadcrumb .material-icons-outlined {
    font-size: 1rem;
}

.blog-post-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1rem;
}

.blog-post-category .material-icons-outlined {
    font-size: 1rem;
}

.blog-post-title {
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-post-meta .material-icons-outlined {
    font-size: 1rem;
    color: var(--primary);
}

/* Featured Image */
.blog-post-image-section {
    padding: 2rem 0;
}

.blog-post-featured-image {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content Layout */
.blog-post-content-section {
    padding: 3rem 0;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-post-content {
    min-width: 0;
}

.blog-post-excerpt {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--neutral-100);
    font-style: italic;
}

/* Markdown Content Styles */
.markdown-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.markdown-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.markdown-content h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.markdown-content p {
    margin-bottom: 1.5rem;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.markdown-content code {
    background: var(--neutral-100);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Fira Code', 'Monaco', monospace;
}

.markdown-content pre {
    background: var(--neutral-800);
    color: var(--neutral-100);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.markdown-content a {
    color: var(--primary);
    text-decoration: underline;
}

.markdown-content a:hover {
    color: var(--primary-dark);
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid var(--neutral-200);
    padding: 0.75rem;
    text-align: left;
}

.markdown-content th {
    background: var(--neutral-50);
    font-weight: 600;
}

/* Share Buttons */
.blog-post-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--neutral-100);
}

.share-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: block;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-twitter { background: #1DA1F2; }
.share-linkedin { background: #0077B5; }
.share-facebook { background: #1877F2; }
.share-copy { background: var(--neutral-600); }

.share-btn:hover {
    transform: scale(1.1);
}

.share-copy.copied {
    background: var(--success);
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--neutral-100);
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 0.5rem;
}

.sidebar-categories a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-categories a:hover,
.sidebar-categories a.active {
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

.sidebar-categories .material-icons-outlined {
    font-size: 1rem;
}

.sidebar-categories .count {
    margin-left: auto;
    background: var(--neutral-100);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.sidebar-cta h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.sidebar-cta p {
    opacity: 0.9;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sidebar-cta .btn {
    background: white;
    color: var(--primary-dark);
}

.sidebar-cta .btn:hover {
    background: var(--neutral-50);
}

/* Related Posts */
.blog-related-section {
    padding: 3rem 0;
    background: var(--neutral-50);
}

.blog-related-section .section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.blog-card-small .blog-card-image {
    height: 150px;
}

.blog-card-small .blog-card-content {
    padding: 1rem;
}

.blog-card-small .blog-card-title {
    font-size: 1rem;
}

/* Blog Responsive */
@media (max-width: 992px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .blog-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero .section-header h1 {
        font-size: 2rem;
    }

    .blog-post-title {
        font-size: 1.75rem;
    }

    .blog-post-meta {
        gap: 1rem;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-grid,
    .blog-grid-3 {
        grid-template-columns: 1fr;
    }

    .categories-list {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .category-chip {
        flex-shrink: 0;
    }
}

/* =============================================================================
   CALCULATEUR IK STYLES
   ============================================================================= */

/* Hero */
.calc-hero {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--neutral-50) 100%);
    text-align: center;
}

.calc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.calc-badge .material-icons-outlined {
    font-size: 1rem;
}

.calc-hero h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.calc-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Calculator Section */
.calc-section {
    padding: 3rem 0;
    background: var(--neutral-50);
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.calc-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.calc-card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.calc-card h2 .material-icons-outlined {
    color: var(--primary);
}

/* Form */
.calc-form .form-group {
    margin-bottom: 1.5rem;
}

.calc-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.calc-form label .material-icons-outlined {
    font-size: 1.25rem;
    color: var(--primary);
}

.calc-form input[type="number"],
.calc-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.calc-form input[type="number"]:focus,
.calc-form select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

/* Checkbox */
.form-checkbox-group {
    background: var(--neutral-50);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid var(--neutral-200);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.checkbox-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-text .material-icons-outlined {
    color: var(--success);
}

.electric-badge {
    background: var(--success);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Rates Table */
.calc-rates-card {
    margin-top: 1.5rem;
}

.calc-rates-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.rates-table-wrapper {
    overflow-x: auto;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.rates-table th,
.rates-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid var(--neutral-200);
}

.rates-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.rates-table th:first-child {
    border-radius: 8px 0 0 0;
}

.rates-table th:last-child {
    border-radius: 0 8px 0 0;
}

.rates-table td:first-child {
    text-align: left;
    background: var(--neutral-50);
}

.rates-table tbody tr:hover {
    background: var(--primary-lighter);
}

.rates-source {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.rates-source .material-icons-outlined {
    font-size: 0.875rem;
}

.rates-source a {
    color: var(--primary);
}

/* Results */
.calc-results {
    min-height: 400px;
}

.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-muted);
    text-align: center;
}

.results-placeholder .material-icons-outlined {
    font-size: 4rem;
    color: var(--neutral-300);
    margin-bottom: 1rem;
}

.results-content h2 {
    margin-bottom: 1.5rem;
}

.result-main {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.result-amount {
    font-size: 3rem;
    font-weight: 700;
}

.result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--neutral-50);
    border-radius: 8px;
}

.detail-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    border-radius: 8px;
}

.detail-icon .material-icons-outlined {
    font-size: 1.25rem;
    color: var(--primary);
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Savings */
.result-savings {
    margin-bottom: 1.5rem;
}

.savings-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #f59e0b;
}

.savings-card .material-icons-outlined {
    font-size: 2rem;
    color: #d97706;
}

.savings-label {
    font-size: 0.8rem;
    color: #92400e;
}

.savings-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #92400e;
}

.savings-note {
    font-size: 0.7rem;
    color: #b45309;
}

/* Formula */
.result-formula {
    background: var(--neutral-800);
    padding: 1rem;
    border-radius: 8px;
}

.formula-label {
    display: block;
    font-size: 0.75rem;
    color: var(--neutral-400);
    margin-bottom: 0.5rem;
}

.result-formula code {
    color: #10b981;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

/* Animation */
.result-animate {
    animation: resultPulse 0.5s ease;
}

@keyframes resultPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* CTA Card */
.calc-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    margin-top: 1.5rem;
}

.calc-cta .cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.calc-cta .cta-icon .material-icons-outlined {
    font-size: 2rem;
}

.calc-cta h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.calc-cta p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.cta-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.cta-features .material-icons-outlined {
    font-size: 1rem;
    color: #10b981;
}

.calc-cta .btn {
    background: white;
    color: var(--primary-dark);
}

.calc-cta .btn:hover {
    background: var(--neutral-100);
}

.cta-note {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.75rem;
}

/* FAQ */
.calc-faq-section {
    padding: 4rem 0;
}

.calc-faq-section .section-header h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.faq-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-item h3 {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.faq-item h3 .material-icons-outlined {
    color: var(--primary);
    flex-shrink: 0;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .calc-layout {
        grid-template-columns: 1fr;
    }

    .calc-results-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    .calc-hero h1 {
        font-size: 1.75rem;
    }

    .result-amount {
        font-size: 2.25rem;
    }

    .result-details {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MODAL ABONNEMENT REQUIS
   ======================================== */

.subscription-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.subscription-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.subscription-modal {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .subscription-modal {
    background: var(--card-bg);
}

.subscription-modal-overlay.show .subscription-modal {
    transform: scale(1) translateY(0);
}

.subscription-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.subscription-modal-close:hover {
    background: var(--neutral-100);
    color: var(--text-primary);
}

.subscription-modal-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.subscription-modal-icon .material-icons-outlined {
    font-size: 32px;
    color: var(--accent);
}

.subscription-modal-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.subscription-modal-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subscription-modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    background: var(--bg-tertiary, var(--neutral-50));
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

[data-theme="dark"] .subscription-modal-features {
    background: #2d3134 !important;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .subscription-modal-features li {
    color: #a8b3cf !important;
    background: transparent !important;
}

.subscription-modal-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.subscription-modal-features li .material-icons-outlined {
    font-size: 20px;
    color: var(--success);
}

.subscription-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subscription-modal-actions .btn-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.subscription-modal-actions .btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
}

.subscription-modal-actions .btn-outline:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-300);
}

.subscription-modal-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.subscription-modal-note .material-icons-outlined {
    font-size: 18px;
    flex-shrink: 0;
    color: var(--info);
}

/* ========================================
   BOUTONS/LIENS DÉSACTIVÉS (ABONNEMENT)
   ======================================== */

[data-requires-subscription] {
    position: relative;
    cursor: not-allowed !important;
    opacity: 0.6;
}

[data-requires-subscription]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
}

/* Indicateur visuel de verrouillage */
.subscription-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    background: var(--warning-light);
    color: var(--warning);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.subscription-lock-badge .material-icons-outlined {
    font-size: 12px;
}

/* Bannière d'information en mode lecture seule */
.readonly-banner {
    background: linear-gradient(135deg, var(--warning-light), var(--secondary-lighter));
    border: 1px solid var(--warning);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.readonly-banner-icon {
    width: 40px;
    height: 40px;
    background: var(--warning);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.readonly-banner-icon .material-icons-outlined {
    color: white;
    font-size: 20px;
}

.readonly-banner-content {
    flex: 1;
}

.readonly-banner-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.readonly-banner-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.readonly-banner .btn {
    flex-shrink: 0;
}

/* Mode sombre */
[data-theme="dark"] .subscription-modal {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .subscription-modal-features {
    background: var(--neutral-800);
}

[data-theme="dark"] .readonly-banner {
    background: linear-gradient(135deg, rgba(255, 164, 0, 0.15), rgba(255, 184, 51, 0.1));
}

/* Responsive */
@media (max-width: 480px) {
    .subscription-modal {
        padding: 1.5rem;
    }

    .subscription-modal-title {
        font-size: 1.25rem;
    }

    .subscription-modal-features {
        padding: 0.75rem 1rem;
    }

    .subscription-modal-features li {
        font-size: 0.875rem;
    }

    .readonly-banner {
        flex-direction: column;
        text-align: center;
    }

    /* Auth forms mobile */
    .auth-card {
        padding: 1.5rem;
    }

    .auth-card h2 {
        font-size: 1.5rem;
    }
}
