﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

/**
 * VIAADUC - Styles CSS Principaux
 * Design moderne, responsive, accessibilitÃ© WCAG 2.1 AA
 * Variables CSS, Flexbox, Grid, animations lÃ©gÃ¨res
 */

/* ===========================
   VARIABLES CSS - ThÃ¨me global
   =========================== */
:root {
    /* Couleurs principales - Corporate */
    --color-primary: #1a3a5c;        /* Bleu foncÃ© */
    --color-secondary: #2e5a8c;      /* Bleu moyen */
    --color-accent: #00a8e8;         /* Bleu ciel */
    --color-accent-dark: #0088c9;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    /* Couleurs neutres */
    --color-white: #ffffff;
    --color-off-white: #f8f9fa;
    --color-light-gray: #f3f4f6;
    --color-gray: #6b7280;
    --color-dark-gray: #374151;
    --color-text-dark: #1f2937;
    --color-text-light: #9ca3af;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif; /* For headings */
    --font-secondary: 'Open Sans', sans-serif; /* For body text */
    --font-size-sm: 0.9375rem; /* 15px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-lg: 1.1875rem; /* 19px */
    --font-size-xl: 1.375rem;  /* 22px */
    --font-size-2xl: 1.75rem;  /* 28px */
    --font-size-3xl: 2.25rem;  /* 36px */
    --font-size-4xl: 2.75rem;  /* 44px */
    
    /* Line heights */
    --lh-tight: 1.2;
    --lh-normal: 1.6; /* Increased for better body readability */
    --lh-relaxed: 1.65; /* Slightly reduced for paragraphs for better balance */
    
    /* Border radius */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-smooth: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ===========================
   RESET GLOBAL & STYLES DE BASE
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', var(--font-secondary);
    font-size: var(--font-size-base);
    line-height: var(--lh-normal);
    color: var(--color-text-dark);
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom right, var(--color-light-gray), var(--color-off-white)); /* NEW subtle gradient */
    background-attachment: fixed; /* Ensures gradient covers full page even on scroll */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* AmÃ©lioration de l'accessibilitÃ© */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', var(--font-primary); /* Changed from 'Sora', 'Poppins' */
    font-weight: 700;
    line-height: var(--lh-tight);
    color: var(--color-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.5px;
}

h1 {
    font-size: var(--font-size-4xl); /* Now 2.75rem */
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
    color: var(--color-secondary);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--lh-relaxed);
    font-family: 'Open Sans', var(--font-secondary); /* Changed from 'Inter' */
}

a {
    color: var(--color-accent);
    text-decoration: none !important;
    transition: color var(--transition-fast);
    border: none !important;
}

a:hover {
    color: var(--color-accent-dark);
    text-decoration: none !important;
}

a:focus,
a:active,
a:visited {
    text-decoration: none !important;
    border: none !important;
}

strong {
    font-weight: 600;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.header {
    background: #ffffff;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(42, 48, 98, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    padding: 0.2rem 0;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1;
}

/* Supprimer tous les pointillÃ©s/outlines sur les Ã©lÃ©ments de la navbar */
.navbar a,
.navbar button,
.navbar a:focus,
.navbar button:focus,
.navbar a:active,
.navbar button:active {
    outline: none !important;
    text-decoration: none !important;
    border-style: none;
}

.navbar-logo {
    display: flex;
    align-items: center;
    height: 84px;
    overflow: hidden;
    text-decoration: none !important;
    outline: none;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.navbar-logo:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.navbar-logo-image {
    display: block;
    height: 150px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.logo-animated {
    animation: logoFloat 6s ease-in-out infinite, logoGlow 8s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes logoFloat {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-4px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes logoGlow {
    0%   { filter: drop-shadow(0 4px 10px rgba(26, 58, 92, 0.12)); opacity: 1; }
    50%  { filter: drop-shadow(0 8px 18px rgba(26, 58, 92, 0.22)); opacity: 0.96; }
    100% { filter: drop-shadow(0 4px 10px rgba(26, 58, 92, 0.12)); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .logo-animated {
        animation: none;
        filter: none;
    }
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 2rem; /* Increased for more impact */
    font-weight: 800;
    color: #2A3062;
    letter-spacing: -0.5px;
    text-shadow: none;
}

/* Ensure no stray punctuation is rendered after the logo text */
.logo-text::after,
.navbar-logo::after {
    content: none !important;
}

.logo-tagline {
    display: none;
    font-size: 0.65rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Menu de navigation */
.navbar-menu {
    display: flex;
    gap: var(--spacing-lg); /* Slightly reduced gap for a cleaner look */
    align-items: center;
    transition: all var(--transition-smooth);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.navbar-section {
    position: relative;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger:focus-visible {
    outline: 2px solid rgba(42, 48, 98, 0.35);
    outline-offset: 2px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #2A3062;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.navbar-link,
.navbar-dropdown-toggle {
    color: #2A3062;
    font-family: 'Montserrat', var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none !important;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    padding: 0.45rem 1rem;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-search {
    flex: 0 1 200px;
    max-width: 240px;
    min-width: 170px;
    position: relative;
    transition: all var(--transition-smooth);
    margin-left: auto;
    align-self: center;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.34rem 0.6rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.95));
    border: 1px solid #dfe3e8;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all var(--transition-smooth);
}

.search-form:focus-within {
    border-color: #0f172a;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.12);
}

.search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #2A3062;
    color: #ffffff;
    flex-shrink: 0;
}

.search-icon svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    opacity: 0.85;
}

.search-form input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    color: #111827;
    outline: none;
    padding: 0.06rem 0;
    min-width: 0;
}

.search-form input[type="search"]::placeholder {
    color: #8b94a3;
}

.search-form.is-expanded {
    width: min(860px, 96vw);
    background: #ffffff;
    border-color: #111827;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
    transform: translateY(2px);
    position: relative;
    z-index: 220;
}

.search-submit {
    display: none;
}

.search-kbd {
    display: none;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.95rem;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.15);
    overflow: hidden;
    z-index: 120;
    display: none;
}

.search-suggestions.visible {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xs);
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
}

.search-suggestion-item:hover,
.search-suggestion-item:focus {
    background: #f5f5f5;
}

.search-suggestion-title {
    font-weight: 700;
    color: #111827;
}

.search-suggestion-type {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
}

.search-suggestion-item.is-active {
    background: #e5e7eb;
}

.search-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top-color: #111827;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
    margin-left: 0.4rem;
}

.search-form.is-loading .search-spinner {
    display: inline-block;
}

.search-form.is-loading .search-submit {
    opacity: 0.8;
}

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

.search-quick {
    padding: 0.6rem 1rem 0.8rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.search-chip:hover,
.search-chip:focus {
    background: #e5e7eb;
}

.search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
    z-index: 110;
}

.search-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.search-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    padding: 0.5rem 1rem 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.navbar-link:focus-visible,
.navbar-dropdown-toggle:focus-visible {
    outline: 2px solid rgba(42, 48, 98, 0.35);
    outline-offset: 2px;
}

.navbar-link:hover,
.navbar-dropdown-toggle:hover {
    background-color: rgba(42, 48, 98, 0.08);
    color: #2A3062;
    text-decoration: none !important;
    box-shadow: inset 0 0 0 1px rgba(42, 48, 98, 0.15);
}

.navbar-contact-btn {
    background-color: #2A3062;
    color: var(--color-white) !important;
    font-weight: 700;
    padding: 0.55rem 1.2rem;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    outline: none;
    border: none;
}

.navbar-contact-btn:hover {
    background-color: #E4C4FF;
    color: #2A3062 !important;
    transform: translateY(-3px); /* More pronounced lift */
    box-shadow: var(--shadow-lg); /* Stronger shadow on hover */
}

/* Dropdown menu */
/* Dropdown Hover behavior for Desktop */
@media (min-width: 992px) {
    .navbar-section:hover .navbar-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .navbar-section:hover .navbar-dropdown-toggle .dropdown-icon {
        transform: rotate(180deg);
    }
    
    .navbar-section {
        position: relative;
        padding-bottom: 15px; /* Create a bridge for the cursor */
        margin-bottom: -15px;
    }
}

.navbar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 45px rgba(3, 18, 38, 0.18);
    min-width: 280px; /* Wider dropdown */
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    pointer-events: none;
}
    transform: translateY(5px); /* Start slightly lower for smoother drop */
    transition: all var(--transition-smooth);
    margin-top: var(--spacing-xs); /* Reduced margin-top for closer alignment */
    overflow: hidden;
    padding: var(--spacing-sm); /* More breathing room */
    border: 1px solid rgba(26, 58, 92, 0.08);
    backdrop-filter: blur(6px);
}

.navbar-dropdown-mega {
    display: flex;
    flex-direction: column; /* force vertical stacking */
    gap: 0.35rem;
    min-width: 320px;
}

.navbar-dropdown-mega li {
    border-bottom: none;
}

.navbar-dropdown-mega a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.menu-icon {
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-accent);
    background: rgba(0, 168, 232, 0.12);
    border-radius: 0.35rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .navbar-dropdown-mega {
        min-width: 100%;
    }
}

.navbar-section:hover .navbar-dropdown,
.navbar-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-dropdown li {
    border-bottom: 1px solid rgba(26, 58, 92, 0.08);
}

.navbar-dropdown li:last-child {
    border-bottom: none;
}

.navbar-dropdown a {
    display: block;
    padding: 0.85rem 1rem; /* Refined padding for items */
    color: #0f172a;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none !important;
    border-radius: var(--border-radius-md);
}

.navbar-dropdown a:hover {
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.12), rgba(46, 90, 140, 0.08));
    color: #2A3062;
    padding-left: calc(1rem + 0.4rem); /* Smoother indent on hover */
    text-decoration: none !important;
}

.navbar-dropdown-cta {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(42, 48, 98, 0.04) 100%) !important;
    border: 1px solid rgba(14, 165, 233, 0.2) !important;
    margin: 10px 15px !important;
    border-radius: 12px !important;
    color: #0ea5e9 !important;
    font-weight: 700 !important;
    padding: 12px 15px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

.navbar-dropdown-cta:hover {
    background: #0ea5e9 !important;
    color: white !important;
    padding-left: 15px !important; /* Pas d'indentation pour le bouton CTA */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

/* Dropdown icon */
.dropdown-icon {
    font-size: 0.6rem; /* Slightly smaller icon */
    margin-left: 0.25rem; /* Space between text and icon */
    transition: transform var(--transition-smooth);
}

.navbar-section.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Better desktop dropdown trigger */
@media (min-width: 769px) {
    .navbar-section:hover .navbar-dropdown,
    .navbar-dropdown:hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Responsive adjustments for dropdown menu */
@media (max-width: 768px) {
    .navbar {
        padding: 0.1rem 0;
    }

    .navbar-logo {
        height: 68px;
    }

    .navbar-logo-image {
        height: 110px;
        max-width: none;
    }

    .navbar-dropdown {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        margin-top: 0;
        transition: all var(--transition-smooth);
        width: 100%; /* Full width on mobile */
        box-shadow: none; /* No shadow on mobile */
        border-radius: 0; /* No border radius on mobile */
        padding: 0; /* No internal padding for consistency */
    }

    .navbar-section.active .navbar-dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        margin-top: 0; /* Align with parent menu item */
    }

    .navbar-dropdown li {
        background-color: rgba(255, 255, 255, 0.05); /* Subtle background for mobile dropdown items */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Lighter border for mobile */
    }

    .navbar-dropdown li:last-child {
        border-bottom: none;
    }

    .navbar-dropdown a {
        padding: var(--spacing-md) var(--spacing-xl); /* Generous padding for mobile touch targets */
        color: #0f172a;
    }

    .navbar-dropdown a:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Subtle hover for mobile */
        color: #2A3062;
        padding-left: var(--spacing-xl); /* Keep original padding */
    }

    /* Hamburger menu pour mobile */
    .hamburger {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        padding: var(--spacing-lg) 0; /* Adjusted vertical padding */
        gap: var(--spacing-md);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        transition: right var(--transition-smooth);
        align-items: stretch;
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-search {
        width: 100%;
        max-width: none;
        padding: 0 var(--spacing-xl);
    }

    .search-form {
        width: 100%;
        padding: 0.65rem 0.9rem;
        border-radius: var(--border-radius-lg);
        box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    }

    .navbar-section {
        width: 100%;
    }

    .navbar-link,
    .navbar-dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: var(--spacing-md) var(--spacing-xl); /* Consistent padding */
        border-radius: 0; /* No border radius on mobile */
        background-color: transparent; /* No default background */
    }

    .navbar-link:hover,
    .navbar-dropdown-toggle:hover {
        background-color: rgba(255, 255, 255, 0.05); /* Subtle hover for mobile */
        color: #2A3062;
    }

    .navbar-contact-btn {
        margin: var(--spacing-md) var(--spacing-xl); /* Add margin for mobile CTA */
        width: auto; /* Auto width on mobile */
    }

    .navbar-search {
        width: 100%;
        max-width: none;
        padding: 0 var(--spacing-xl);
        margin-left: 0;
        position: static;
    }

    .search-form {
        width: 100%;
        padding: 0.65rem 0.9rem;
        border-radius: var(--border-radius-lg);
        box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    }

}

body.search-expanded .navbar-search {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
    width: min(880px, 95vw);
    padding: 0;
    max-width: none;
    min-width: auto;
    flex: 0 1 auto;
    z-index: 200;
}

body.search-expanded .navbar-menu {
    z-index: 1;
}

/* ===========================
   PAGE RECHERCHE
   =========================== */
.search-page .search-hero {
    background: radial-gradient(circle at 18% 20%, rgba(0, 168, 232, 0.22), transparent 52%),
                radial-gradient(circle at 82% 8%, rgba(46, 90, 140, 0.24), transparent 48%),
                linear-gradient(135deg, #2A3062, #1a3a5c 62%, #111b38);
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.search-page .breadcrumb {
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
}

.search-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-xs);
    color: #ffffff;
}

.search-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
}

.search-count {
    color: #ffffff;
    font-weight: 700;
    margin-top: var(--spacing-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.search-form-inline input[type="search"] {
    font-size: 1rem;
}

.search-results .search-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.search-card {
    background: linear-gradient(180deg, #fff, #f8fafc);
    border: 1px solid rgba(26, 58, 92, 0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

.search-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.12), rgba(42, 48, 98, 0.08));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.search-card:hover::before {
    opacity: 1;
}

.search-card .card-content {
    position: relative;
    z-index: 1;
}

.search-card-meta {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.search-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 168, 232, 0.12);
    color: #006494;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
}

.search-date {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.search-empty {
    background: #fff;
    border: 1px solid rgba(26, 58, 92, 0.12);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--color-text-dark);
    box-shadow: var(--shadow-md);
}

.search-tips {
    margin-top: var(--spacing-sm);
    color: var(--color-text-light);
}

.search-warning {
    margin-top: var(--spacing-sm);
    color: #b45309;
    background: #fffbeb;
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ===========================
   BOUTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-base); /* Changed from var(--font-size-sm) */
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Variantes de boutons */
.btn-primary {
    background-color: #2A3062;
    color: var(--color-white);
    border-color: #2A3062;
}

.btn-primary:hover:not(:disabled) {
    background-color: #E4C4FF;
    border-color: #E4C4FF;
    color: #2A3062;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: #2A3062;
    border-color: #2A3062;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #E4C4FF;
    color: #2A3062;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #2A3062;
    border-color: #2A3062;
}

.btn-outline:hover:not(:disabled) {
    background-color: #E4C4FF;
    color: #2A3062;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: var(--font-size-base);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: #2A3062;
    color: var(--color-white);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md) var(--spacing-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

.footer-newsletter {
    display: grid;
    gap: var(--spacing-sm);
}

.footer-newsletter input[type="email"] {
    padding: 0.75rem 0.85rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter button {
    padding: 0.75rem 0.9rem;
    border: none;
    border-radius: var(--border-radius-md);
    background: #00a8e8;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 10px 24px rgba(0, 168, 232, 0.25);
}

.footer-newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 168, 232, 0.3);
}

.newsletter-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-tagline {
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.footer-description {
    font-size: var(--font-size-sm);
    line-height: var(--lh-relaxed);
    color: rgba(255, 255, 255, 0.85);
}

.footer-section-qualifications {
    display: flex;
    flex-direction: column;
}

.footer-qualifications-card {
    padding: 0.9rem;
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 30px rgba(7, 15, 38, 0.18);
    backdrop-filter: blur(6px);
}

.footer-qualifications-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius-lg) - 0.35rem);
    object-fit: contain;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: var(--spacing-md);
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none !important;
    transition: color var(--transition-fast);
    font-size: var(--font-size-sm);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-accent);
    text-decoration: none !important;
}

.footer-contact address {
    font-style: normal;
    font-size: var(--font-size-sm);
    line-height: var(--lh-relaxed);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: var(--spacing-xl) 0;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
}

.footer-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}

.footer-legal a:hover {
    color: var(--color-accent);
}

/* ===========================
   ADMIN AUTH / BACK OFFICE
   =========================== */
.admin-login-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-md);
    background:
        radial-gradient(900px 520px at 15% 0%, rgba(0, 168, 232, 0.18), transparent 60%),
        radial-gradient(900px 520px at 85% 10%, rgba(26, 58, 92, 0.2), transparent 60%),
        linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.admin-login-hero::before,
.admin-login-hero::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.22), transparent 60%);
    filter: blur(4px);
    animation: adminGlow 10s ease-in-out infinite;
    opacity: 0.8;
}

.admin-login-hero::before {
    top: -120px;
    left: -120px;
}

.admin-login-hero::after {
    bottom: -160px;
    right: -120px;
    animation-delay: 2s;
}

.admin-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.admin-login-logo-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-white);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    letter-spacing: 1px;
    box-shadow: 0 14px 30px rgba(0, 168, 232, 0.35);
}

@keyframes adminGlow {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.75;
    }
    50% {
        transform: translateY(18px) translateX(-12px) scale(1.08);
        opacity: 1;
    }
}

.admin-login-container {
    width: 100%;
    max-width: 560px;
}

.admin-login-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 30px 60px rgba(6, 24, 44, 0.25);
    padding: var(--spacing-2xl);
    border: 1px solid rgba(26, 58, 92, 0.08);
}

.admin-login-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.admin-login-header h2 {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.admin-login-header p {
    color: var(--color-gray);
    margin: 0;
}

.admin-login-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-white);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.75rem;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0, 168, 232, 0.35);
}

.admin-login-error {
    color: var(--color-error);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.admin-login-success {
    color: var(--color-success);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.admin-login-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.2), transparent);
    margin: var(--spacing-lg) 0;
}

.admin-login-form .form-input {
    background: var(--color-off-white);
}

.admin-shell {
    background: transparent;
}

.admin-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 64, 175, 0.35) 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.5);
    position: relative;
    overflow: hidden;
}

.admin-hero .hero-title,
.admin-hero .hero-subtitle {
    color: #f8fafc;
    text-shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
}

.admin-hero::before,
.admin-hero::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 60%);
    filter: blur(4px);
    animation: adminFloat 12s ease-in-out infinite;
    opacity: 0.7;
    pointer-events: none;
}

.admin-hero::before {
    top: -120px;
    right: -80px;
}

.admin-hero::after {
    bottom: -160px;
    left: -120px;
    animation-delay: 2.2s;
}

.admin-body {
    background:
        radial-gradient(1200px 520px at 15% -10%, rgba(37, 99, 235, 0.25), transparent 60%),
        radial-gradient(1200px 520px at 85% 5%, rgba(14, 165, 233, 0.2), transparent 60%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 60%, #111827 100%);
    color: #e2e8f0;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.admin-sidebar {
    background: #0b1220;
    color: #e2e8f0;
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-sidebar-brand {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.admin-sidebar-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    animation: adminPulse 3.2s ease-in-out infinite;
    color: #f8fafc;
}

.admin-sidebar-logo svg {
    width: 26px;
    height: 26px;
}

.admin-theme-toggle {
    margin-left: auto;
    margin-right: 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.admin-theme-toggle:hover {
    background: rgba(59, 130, 246, 0.35);
}

.admin-theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.admin-compact-toggle {
    margin-right: 0.5rem;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.admin-compact-toggle:hover {
    background: rgba(148, 163, 184, 0.3);
}

.admin-compact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.admin-sidebar-toggle {
    margin-left: auto;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.admin-sidebar-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
}

.admin-toggle-icon {
    display: inline-block;
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.admin-nav-icon {
    width: 1.3rem;
    display: inline-flex;
    justify-content: center;
    margin-right: 0.5rem;
    height: 1.3rem;
    align-items: center;
    border-radius: 0.5rem;
    background: rgba(59, 130, 246, 0.25);
    color: #e2e8f0;
    font-weight: 700;
}

.admin-nav-icon svg {
    width: 1rem;
    height: 1rem;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.admin-nav-label {
    white-space: nowrap;
}

.admin-glass {
    background: rgba(15, 23, 42, 0.85);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.35), 0 1px 2px rgba(15, 23, 42, 0.2);
}

.admin-traffic {
    margin-bottom: var(--spacing-xl);
}

.admin-traffic-header h3 {
    margin: 0 0 0.35rem;
}

.admin-traffic-header p {
    margin: 0 0 var(--spacing-md);
    color: #94a3b8;
}

.admin-traffic-filter {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
}

.admin-traffic-filter label {
    font-size: var(--font-size-sm);
    color: #94a3b8;
}

.admin-traffic-filter .form-input {
    width: 160px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

.admin-traffic-filter select {
    color: #e2e8f0;
}

.admin-traffic-filter select option {
    color: #0f172a;
    background: #e2e8f0;
}

.admin-traffic-legend {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-sm);
    color: #64748b;
    font-size: var(--font-size-sm);
    flex-wrap: wrap;
}

.admin-traffic-legend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.admin-traffic-legend-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.legend-item {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}

.legend-page {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    color: #0f172a;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.legend-page:hover {
    background: #f1f5f9;
}

.legend-page.inactive {
    opacity: 0.6;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-views {
    background: rgba(0, 168, 232, 0.95);
}

.legend-clicks {
    background: rgba(255, 255, 255, 0.85);
}

.admin-traffic-grid {
    display: grid;
    gap: var(--spacing-sm);
}

.admin-traffic-chart {
    margin: var(--spacing-md) 0 var(--spacing-lg);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-traffic-summary {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.admin-traffic-summary span {
    background: rgba(24, 28, 60, 0.92);
    border: 1px solid rgba(128, 0, 128, 0.35);
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    color: var(--admin-ink);
}

.admin-traffic-chart canvas {
    width: 100%;
    height: 260px;
    display: block;
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    border: 1px solid #e5e7eb;
}

.admin-traffic-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.admin-traffic-item,
.admin-stat-card,
.admin-glass,
.admin-form-card,
.admin-card {
    position: relative;
    overflow: hidden;
}

.admin-traffic-item::after,
.admin-stat-card::after,
.admin-glass::after,
.admin-form-card::after,
.admin-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.6) 45%, transparent 75%);
    transform: translateX(-120%);
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.admin-traffic-item:hover::after,
.admin-stat-card:hover::after,
.admin-glass:hover::after,
.admin-form-card:hover::after,
.admin-card:hover::after {
    opacity: 0.5;
    transform: translateX(120%);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.admin-traffic-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
}

.admin-traffic-mini {
    width: 100%;
}

.admin-traffic-select {
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-traffic-select:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-traffic-select.active {
    outline: 2px solid rgba(0, 168, 232, 0.6);
}

.admin-traffic-page {
    color: #e2e8f0;
    font-weight: 600;
}

.admin-traffic-count {
    color: #38bdf8;
    font-weight: 700;
}

.admin-traffic-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.admin-traffic-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 168, 232, 0.9), rgba(0, 168, 232, 0.4));
}

.admin-chart-tooltip {
    position: absolute;
    transform: translate(-50%, -120%);
    background: rgba(10, 20, 36, 0.95);
    color: var(--color-white);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.admin-chart-tooltip-glass {
    background: rgba(12, 24, 44, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.admin-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    background: #eff6ff;
    color: #0f172a;
    border: 1px solid #bfdbfe;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    animation: adminToastIn 0.35s ease;
}

.admin-toast.admin-modal {
    position: fixed;
    inset: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.25);
    border: none;
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 0;
    animation: adminModalFade 0.35s ease;
    pointer-events: auto;
}

.admin-confirm {
    display: none;
}

.admin-confirm.is-open {
    display: flex;
}

.admin-confirm .admin-toast-content {
    max-width: 520px;
}

.admin-toast-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    min-width: 280px;
    max-width: 460px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    animation: adminModalPop 0.35s ease;
}

.admin-toast-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: #0f172a;
}

.admin-toast.admin-modal p {
    margin: 0 0 0.8rem;
    color: #475569;
}

@keyframes adminModalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes adminModalPop {
    from { transform: translateY(10px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.admin-toast.success {
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.admin-toast.error {
    background: #fee2e2;
    border-color: #f87171;
    color: #7f1d1d;
}

.admin-toast.hide {
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.25s ease;
}

.admin-toast-close {
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    font-size: 1rem;
}

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

.admin-animate {
    animation: adminFadeIn 0.7s ease both;
}

.admin-toast-floating {
    position: fixed;
    right: 24px;
    top: 24px;
    z-index: 1000;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
    animation: adminToastIn 0.45s ease both;
    background: transparent;
    border: none;
    padding: 0;
}

.admin-toast-floating .admin-toast-content {
    text-align: left;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

.admin-toast-floating .admin-toast-title {
    color: #f8fafc;
}

.admin-toast-floating p {
    color: #cbd5f5;
}

.admin-theme-light .admin-toast-floating .admin-toast-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #0f172a;
}

.admin-theme-light .admin-toast-floating p {
    color: #475569;
}

.admin-theme-light .admin-toast.success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #065f46;
}

.admin-theme-light .admin-toast.error {
    background: #fee2e2;
    border-color: #f87171;
    color: #7f1d1d;
}

.admin-notify-list {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.admin-notify-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-md);
}

.admin-notify-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.25);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-notify-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.admin-notify-message {
    margin: 0 0 0.25rem;
    color: #f8fafc;
    font-weight: 700;
}

.admin-notify-time {
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.admin-theme-light .admin-notify-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.08);
}

.admin-theme-light .admin-notify-message {
    color: #0f172a;
}

.admin-theme-light .admin-notify-time {
    color: #64748b;
}

.admin-page-animate {
    animation: adminPageFade 0.55s ease both;
}

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

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

/* Collapsible sidebar */
.admin-collapsed .admin-layout {
    grid-template-columns: 90px 1fr;
}

.admin-collapsed .admin-sidebar {
    align-items: center;
}

.admin-collapsed .admin-sidebar-title,
.admin-collapsed .admin-sidebar-subtitle,
.admin-collapsed .admin-nav-label,
.admin-collapsed .admin-sidebar-actions .btn {
    display: none;
}

.admin-collapsed .admin-nav-item {
    justify-content: center;
}

.admin-collapsed .admin-toggle-icon {
    transform: rotate(180deg);
}

.admin-sidebar-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #f8fafc;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

@keyframes adminFloat {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    50% { transform: translateY(16px) translateX(-10px) scale(1.08); }
}

@keyframes adminPulse {
    0% { box-shadow: 0 0 0 rgba(56, 189, 248, 0.0); }
    70% { box-shadow: 0 0 18px rgba(56, 189, 248, 0.35); }
    100% { box-shadow: 0 0 0 rgba(56, 189, 248, 0.0); }
}

.admin-theme-light .admin-body,
.admin-body.admin-theme-light {
    background:
        radial-gradient(1200px 520px at 15% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
        radial-gradient(1200px 520px at 85% 5%, rgba(14, 165, 233, 0.1), transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 60%, #e2e8f0 100%);
    color: #0f172a;
}

.admin-theme-light .admin-sidebar {
    background: #ffffff;
    color: #0f172a;
    border-right: 1px solid #e5e7eb;
}

.admin-theme-light .admin-hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.1);
}

.admin-theme-light .admin-hero .hero-title,
.admin-theme-light .admin-hero .hero-subtitle {
    color: #0f172a;
    text-shadow: none;
}

.admin-theme-light .admin-sidebar-title {
    color: #0f172a;
}

.admin-theme-light .admin-sidebar-subtitle {
    color: #64748b;
}

.admin-theme-light .admin-nav-item {
    color: #334155;
    background: rgba(15, 23, 42, 0.04);
}

.admin-theme-light .admin-nav-item:hover {
    background: rgba(37, 99, 235, 0.12);
    color: #0f172a;
}

.admin-theme-light .admin-nav-item.active {
    background: rgba(37, 99, 235, 0.18);
    color: #0f172a;
}

.admin-theme-light .admin-nav-icon {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.admin-theme-light .admin-glass,
.admin-theme-light .admin-form-card,
.admin-theme-light .admin-stat-card,
.admin-theme-light .admin-traffic-item,
.admin-theme-light .admin-card {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
}

.admin-theme-light .admin-shell h2,
.admin-theme-light .admin-shell h3,
.admin-theme-light .admin-shell p,
.admin-theme-light .admin-shell label,
.admin-theme-light .admin-traffic-page,
.admin-theme-light .admin-traffic-summary,
.admin-theme-light .admin-traffic-summary span,
.admin-theme-light .admin-stat-value {
    color: #0f172a;
}

.admin-theme-light .admin-stat-label,
.admin-theme-light .admin-muted,
.admin-theme-light .admin-traffic-header p,
.admin-theme-light .admin-traffic-filter label {
    color: #64748b;
}

.admin-theme-light .admin-shell .form-input,
.admin-theme-light .admin-shell .form-textarea,
.admin-theme-light .admin-traffic-filter .form-input {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #0f172a;
}

.admin-theme-light .admin-section-title {
    color: #0f172a;
}

.admin-theme-light .admin-header-totals span,
.admin-theme-light .admin-traffic-summary span {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #0f172a;
}

.admin-sidebar-subtitle {
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-nav-item {
    color: #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none !important;
    background: rgba(148, 163, 184, 0.08);
    transition: all var(--transition-fast);
}

.admin-nav-item:hover {
    background: rgba(59, 130, 246, 0.28);
    color: #f8fafc;
}

.admin-nav-item.active {
    background: rgba(59, 130, 246, 0.45);
    color: #f8fafc;
}

.admin-sidebar-actions {
    margin-top: auto;
    display: grid;
    gap: var(--spacing-sm);
}

.admin-main .btn {
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.35);
    text-transform: none;
    letter-spacing: 0.2px;
}

.admin-main .btn:hover:not(:disabled) {
    box-shadow: 0 22px 50px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.admin-main .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    color: #ffffff;
}

.admin-main .btn-secondary {
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.admin-main .btn-outline {
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.admin-main .btn-outline:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.55);
    color: #ffffff;
}

.admin-main .btn-outline,
.admin-main .btn-secondary {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.admin-main .btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.7);
}

.admin-theme-light .admin-main .btn-secondary {
    background: #e0e7ff;
    color: #1d4ed8;
    border: 1px solid #c7d2fe;
}

.admin-theme-light .admin-main .btn-outline {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5f5;
}

.admin-theme-light .admin-main .btn-outline:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.admin-main .btn-danger:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.95);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(239, 68, 68, 0.3);
}

.admin-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0 var(--spacing-xl);
}

.admin-kpi-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.admin-kpi-spark {
    margin-left: auto;
    color: rgba(56, 189, 248, 0.8);
    opacity: 0.9;
}

.admin-kpi-spark svg {
    width: 120px;
    height: 40px;
}

.admin-kpi-card.pulse {
    animation: adminPulseSoft 2.8s ease-in-out infinite;
    border-color: rgba(56, 189, 248, 0.5);
}

.admin-kpi-card.pulse .admin-kpi-icon {
    background: rgba(56, 189, 248, 0.35);
}

@keyframes adminPulseSoft {
    0%, 100% { box-shadow: 0 0 0 rgba(56, 189, 248, 0.0); }
    50% { box-shadow: 0 0 24px rgba(56, 189, 248, 0.4); }
}

.admin-kpi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.45);
    border-color: rgba(59, 130, 246, 0.4);
}

.admin-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.25);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-kpi-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.admin-kpi-label {
    margin: 0;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

.admin-kpi-value {
    margin: 0.2rem 0 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
}

.admin-theme-light .admin-kpi-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.08);
}

.admin-theme-light .admin-kpi-spark {
    color: rgba(37, 99, 235, 0.65);
}

.admin-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.admin-status::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.admin-status-online {
    color: #34d399;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.admin-status-offline {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.55);
}

.admin-compact .admin-sidebar {
    padding: var(--spacing-lg) var(--spacing-md);
}

.admin-compact .admin-main {
    padding: var(--spacing-lg);
}

.admin-compact .admin-hero {
    padding: var(--spacing-lg);
}

.admin-compact .admin-grid {
    gap: var(--spacing-lg);
}

.admin-compact .admin-kpi {
    gap: var(--spacing-md);
}

.admin-compact .admin-kpi-card {
    padding: var(--spacing-sm);
}

.admin-compact .admin-kpi-value {
    font-size: 1.3rem;
}

.admin-compact .admin-form-card,
.admin-compact .admin-glass,
.admin-compact .admin-stat-card {
    padding: var(--spacing-md);
}

.admin-theme-light .admin-compact-toggle {
    color: #0f172a;
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.admin-theme-light .admin-kpi-card.pulse {
    border-color: rgba(37, 99, 235, 0.4);
}

.admin-theme-light .admin-kpi-icon {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.admin-theme-light .admin-kpi-label {
    color: #64748b;
}

.admin-theme-light .admin-kpi-value {
    color: #0f172a;
}

.admin-theme-light .admin-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.08);
}

.admin-theme-light .admin-card-title {
    color: #0f172a;
}

.admin-theme-light .admin-card-text {
    color: #64748b;
}

.admin-main .btn-outline:active,
.admin-main .btn-secondary:active,
.admin-main .btn-primary:active {
    transform: translateY(1px) scale(0.99);
}

.admin-sidebar-actions .btn.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.admin-sidebar-actions .btn.btn-outline {
    color: #0f172a;
    border-color: #cbd5f5;
}

.admin-main {
    background: #f8fafc;
}

.admin-shell-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(128, 0, 128, 0.2);
    margin-bottom: var(--spacing-lg);
}

.admin-shell-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.6rem;
    font-weight: 800;
}

.admin-shell-header p {
    margin: 0;
    color: var(--admin-muted);
}

.admin-header-totals {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.admin-header-totals span {
    background: rgba(24, 28, 60, 0.92);
    border: 1px solid rgba(128, 0, 128, 0.35);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: var(--admin-ink);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.admin-stat-card {
    background: rgba(15, 23, 42, 0.85);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.4), 0 1px 2px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(8px);
}

.admin-stat-label {
    margin: 0 0 0.35rem;
    color: #94a3b8;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

.admin-stat-value {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.admin-grid > * {
    animation: adminFadeIn 0.7s ease both;
}

.admin-grid > *:nth-child(2) { animation-delay: 0.05s; }
.admin-grid > *:nth-child(3) { animation-delay: 0.1s; }
.admin-grid > *:nth-child(4) { animation-delay: 0.15s; }
.admin-grid > *:nth-child(5) { animation-delay: 0.2s; }

.admin-section-title {
    margin-top: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #f8fafc;
    position: relative;
    padding-left: 1.4rem;
}

.admin-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 0.2rem;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

.admin-form-card {
    background: rgba(15, 23, 42, 0.85);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.4), 0 1px 2px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(8px);
}

.admin-form-author {
    margin: var(--spacing-sm) 0 0;
    font-size: var(--font-size-sm);
    color: #64748b;
}

.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.status-pill {
    cursor: pointer;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.status-online {
    color: #d8ffe8;
}

.status-offline {
    color: #ffd8d8;
}

#status-online:checked + .status-online {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}

#status-offline:checked + .status-offline {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.6rem;
}

.editor-btn {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.35);
    color: #0f172a;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
}

.editor-btn:hover {
    background: rgba(37, 99, 235, 0.18);
}

.editor-color {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #475569;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.editor-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--color-white);
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.editor-select option {
    color: #0b1a2a;
}

.editor-color input {
    width: 28px;
    height: 24px;
    border: none;
    background: transparent;
    padding: 0;
}

.editor-surface {
    min-height: 220px;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0f172a;
    line-height: 1.6;
    outline: none;
}

.editor-surface:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
}

.tox-tinymce {
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.tox .tox-editor-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.tox .tox-toolbar__primary {
    background: transparent !important;
}

.tox .tox-tbtn {
    color: #0f172a !important;
}

.tox .tox-edit-area__iframe {
    background: #ffffff;
}

.tox .tox-edit-area {
    cursor: text;
}
.admin-preview {
    margin-top: var(--spacing-lg);
}

.admin-preview-label {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: var(--spacing-sm);
}

.admin-preview-card {
    display: flex;
    gap: var(--spacing-md);
    background: #f8fafc;
    border-radius: var(--border-radius-lg);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.admin-preview-image {
    width: 140px;
    min-height: 120px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-light-gray);
}

.admin-preview-content {
    padding: var(--spacing-md);
}

.admin-preview-meta {
    margin: 0 0 0.35rem;
    font-size: var(--font-size-sm);
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.admin-preview-title {
    margin: 0 0 0.35rem;
    font-size: var(--font-size-lg);
    color: #0f172a;
}

.admin-preview-excerpt {
    margin: 0;
    font-size: var(--font-size-sm);
    color: #475569;
}

.admin-preview-extra {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.form-hint {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #64748b;
}

.content-editor-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0.4rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.content-editor-card .form-textarea {
    border: none;
    box-shadow: none;
}

.admin-chip {
    display: inline-block;
    background: rgba(56, 189, 248, 0.2);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.admin-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.3);
    margin-bottom: var(--spacing-sm);
}

.admin-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

.admin-glass,
.admin-form-card,
.admin-stat-card,
.admin-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.admin-glass:hover,
.admin-form-card:hover,
.admin-stat-card:hover,
.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(12, 14, 32, 0.35);
    border-color: rgba(128, 0, 128, 0.45);
}

.admin-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e0e7ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.7rem;
}

.admin-date-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.admin-list-thumb {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-light-gray);
}

.admin-muted {
    font-size: var(--font-size-sm);
    color: #94a3b8;
    margin-bottom: var(--spacing-sm);
}

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

.admin-shell h2,
.admin-shell h3,
.admin-shell p,
.admin-shell label {
    color: #e2e8f0;
}

.admin-shell .form-input,
.admin-shell .form-textarea {
    background: rgba(24, 28, 60, 0.92);
    border-color: rgba(128, 0, 128, 0.35);
    color: var(--admin-ink);
    border-radius: 12px;
}

.admin-shell .form-input::placeholder {
    color: var(--admin-muted);
}

.admin-shell .admin-card {
    background: var(--admin-panel);
    border-color: var(--admin-panel-border);
}

.admin-shell .admin-card-title,
.admin-shell .admin-card-text,
.admin-shell .admin-muted {
    color: var(--admin-ink);
}

.admin-shell .admin-card-text,
.admin-shell .admin-muted {
    color: var(--admin-muted);
}

.admin-shell .btn-outline {
    color: var(--admin-ink);
    border-color: rgba(128, 0, 128, 0.35);
    background: rgba(42, 48, 98, 0.5);
}

.admin-shell .btn-outline:hover {
    background: rgba(128, 0, 128, 0.25);
}

.admin-theme-light .admin-shell .btn-outline {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5f5;
}

.admin-theme-light .admin-shell .btn-outline:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 5;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .admin-sidebar-actions {
        grid-auto-flow: column;
        gap: var(--spacing-sm);
    }
}

/* ===========================
   SECTIONS PRINCIPALES
   =========================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-2xl) var(--spacing-md);
}

.home-cinematic .section {
    padding: var(--spacing-2xl) var(--spacing-md);
}


/* Specific section backgrounds */
.section-expertises {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 8% -10%, rgba(0, 168, 232, 0.22), transparent 60%),
        radial-gradient(900px 500px at 108% 10%, rgba(46, 90, 140, 0.18), transparent 55%),
        linear-gradient(165deg, #f5f8fd 0%, #e9f1fb 55%, #f7fbff 100%);
}

.section-expertises::before,
.section-expertises::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.45;
    pointer-events: none;
}

.section-expertises::before {
    width: 360px;
    height: 360px;
    background: rgba(0, 168, 232, 0.25);
    top: -120px;
    left: -120px;
}

.section-expertises::after {
    width: 420px;
    height: 420px;
    background: rgba(26, 58, 92, 0.22);
    bottom: -160px;
    right: -160px;
}

/* ---- Parcours journey layout ---- */
.parcours-journey {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-xl) 0;
}

/* Ligne verticale du parcours */
.parcours-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(0, 168, 232, 0.15);
    border-radius: 2px;
    z-index: 0;
}

.parcours-line-progress {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #2A3062, var(--color-accent));
    border-radius: 2px;
    transition: height 0.1s linear;
}

/* Ã‰tape du parcours */
.parcours-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    z-index: 1;
    opacity: 0;
    transform: translateX(-30px);
    filter: blur(4px);
}

.parcours-step:nth-child(odd) {
    flex-direction: row;
}

.parcours-step:nth-child(even) {
    flex-direction: row;
}

.parcours-step.step-visible {
    animation: parcourStepIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--step-index) * 0.25s);
}

@keyframes parcourStepIn {
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

/* Marqueur numÃ©rotÃ© */
.parcours-marker {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.parcours-marker-number {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A3062, var(--color-accent));
    color: #fff;
    font-family: 'Montserrat', var(--font-primary);
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(42, 48, 98, 0.35);
    position: relative;
    z-index: 2;
}

.parcours-marker-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    opacity: 0;
}

.parcours-step.step-visible .parcours-marker-pulse {
    animation: markerPulse 2s ease-out infinite;
    animation-delay: calc(0.5s + var(--step-index) * 0.25s);
}

@keyframes markerPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* Carte du parcours */
.parcours-card {
    flex: 1;
    display: flex;
    background: var(--color-white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0, 168, 232, 0.1);
    text-decoration: none !important;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.parcours-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(42, 48, 98, 0.16);
    border-color: var(--color-accent);
}

.parcours-card-image {
    width: 220px;
    min-height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.parcours-card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    position: relative;
}

.parcours-card-icon {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.parcours-card-title {
    font-family: 'Montserrat', var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-sm);
    line-height: var(--lh-tight);
}

.parcours-card-desc {
    font-size: var(--font-size-base);
    color: var(--color-gray);
    line-height: var(--lh-relaxed);
    margin: 0;
}

.parcours-card-arrow {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 1.4rem;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.parcours-card:hover .parcours-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Parcours header animations */
.parcours-title {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(6px);
}

.parcours-subtitle {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
}

.parcours-header.in-view .parcours-title {
    animation: expertiseTitleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.parcours-header.in-view .parcours-subtitle {
    animation: expertiseSubIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

/* Responsive parcours */
@media (max-width: 768px) {
    .parcours-line {
        left: 20px;
    }

    .parcours-marker {
        width: 42px;
        height: 42px;
    }

    .parcours-marker-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .parcours-card {
        flex-direction: column;
    }

    .parcours-card-image {
        width: 100%;
        min-height: 160px;
        height: 160px;
    }

    .parcours-card-title {
        font-size: var(--font-size-lg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .parcours-step {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
    .parcours-marker-pulse {
        animation: none;
    }
    .parcours-line-progress {
        height: 100% !important;
    }
    .parcours-title,
    .parcours-subtitle {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
}

/* ---- Expertises section animations ---- */
.expertises-main-title {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(6px);
    transition: none;
}

.expertises-subtitle {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
    transition: none;
}

.expertises-header.in-view .expertises-main-title {
    animation: expertiseTitleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.expertises-header.in-view .expertises-subtitle {
    animation: expertiseSubIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@keyframes expertiseTitleIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes expertiseSubIn {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Cards stagger cascade */
.card-stagger {
    opacity: 0;
    transform: translateY(50px) scale(0.92);
    filter: blur(5px);
    transition: none;
}

.card-stagger.card-visible {
    animation: cardCascadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.15s + var(--card-index) * 0.18s);
}

@keyframes cardCascadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.92);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .expertises-main-title,
    .expertises-subtitle,
    .card-stagger {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
}

/* ---- Section Enjeux - Timeline immersive ---- */
.section-enjeux {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 15% 20%, rgba(42, 48, 98, 0.06), transparent 60%),
        radial-gradient(800px 400px at 85% 70%, rgba(0, 168, 232, 0.06), transparent 55%),
        linear-gradient(170deg, #f7f9fc 0%, #eef3fa 50%, #f8faff 100%);
}

.enjeux-title {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(6px);
}

.enjeux-header.in-view .enjeux-title {
    animation: expertiseTitleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.enjeux-subtitle {
    margin-top: var(--spacing-sm);
    font-family: 'Montserrat', var(--font-primary);
    font-weight: 600;
    color: rgba(42, 48, 98, 0.8);
}

/* Timeline container */
.enjeux-timeline {
    position: relative;
    padding: var(--spacing-xl) 0;
}

/* Ligne centrale verticale */
.enjeux-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: rgba(0, 168, 232, 0.12);
    border-radius: 3px;
    z-index: 0;
}

.enjeux-line-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2A3062, var(--color-accent));
    border-radius: 3px;
    transition: none;
}

/* RangÃ©e enjeu */
.enjeux-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    border: 1px solid rgba(42, 48, 98, 0.1);
    border-radius: var(--border-radius-xl);
    background: rgba(255, 255, 255, 0.55);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 1;
}

.enjeux-row:hover,
.enjeux-row:focus-visible {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 168, 232, 0.38);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.enjeux-row:focus-visible {
    outline: 3px solid rgba(0, 168, 232, 0.45);
    outline-offset: 4px;
}

/* Point central sur la ligne */
.enjeux-dot {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A3062, var(--color-accent));
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.15), 0 2px 12px rgba(42, 48, 98, 0.25);
    z-index: 2;
    flex-shrink: 0;
}

.enjeux-dot-ping {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    opacity: 0;
}

.enjeux-item.in-view .enjeux-dot-ping {
    animation: enjeuDotPing 2.2s ease-out infinite;
    animation-delay: calc(0.6s + var(--enjeux-i) * 0.3s);
}

@keyframes enjeuDotPing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Image */
.enjeux-visual {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.enjeux-row:hover .enjeux-visual,
.enjeux-row:focus-visible .enjeux-visual {
    transform: scale(1.03);
    box-shadow: 0 16px 45px rgba(42, 48, 98, 0.18);
}

.enjeux-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.enjeux-row:hover .enjeux-img,
.enjeux-row:focus-visible .enjeux-img {
    transform: scale(1.06);
}

/* Corps texte */
.enjeux-body {
    padding: var(--spacing-md);
}

.enjeux-row-left .enjeux-body {
    text-align: left;
}

.enjeux-row-right .enjeux-body {
    text-align: right;
}

.enjeux-tag {
    display: inline-block;
    font-family: 'Montserrat', var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    background: rgba(0, 168, 232, 0.08);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    margin-bottom: var(--spacing-sm);
}

.enjeux-question {
    font-family: 'Montserrat', var(--font-primary);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
    line-height: var(--lh-tight);
    margin: 0 0 var(--spacing-sm);
    text-decoration: none;
    transition: color 0.3s ease;
}

.enjeux-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: var(--spacing-sm);
    font-family: 'Montserrat', var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #2A3062;
    background: rgba(0, 168, 232, 0.14);
    border: 1px solid rgba(0, 168, 232, 0.45);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.enjeux-action::after {
    content: "\2192";
    font-size: 1rem;
    line-height: 1;
}

.enjeux-row-right .enjeux-action {
    justify-content: flex-end;
}

.enjeux-row:hover .enjeux-question,
.enjeux-row:focus-visible .enjeux-question {
    color: #2A3062;
}

.enjeux-row:hover .enjeux-action,
.enjeux-row:focus-visible .enjeux-action {
    background: rgba(42, 48, 98, 0.12);
    border-color: rgba(42, 48, 98, 0.45);
    color: #1a3a5c;
}

.enjeux-arrow {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--color-accent);
    opacity: 0.75;
    transform: translateX(-10px);
    transition: all 0.35s ease;
}

.enjeux-row-right .enjeux-arrow {
    transform: translateX(10px);
}

.enjeux-row:hover .enjeux-arrow,
.enjeux-row:focus-visible .enjeux-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Animations d'entrÃ©e */
.enjeux-item {
    opacity: 0;
    filter: blur(5px);
}

.enjeux-row-left {
    transform: translateX(-50px);
}

.enjeux-row-right {
    transform: translateX(50px);
}

.enjeux-item.in-view {
    animation: enjeuReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--enjeux-i) * 0.2s);
}

@keyframes enjeuReveal {
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .enjeux-row {
        grid-template-columns: auto 1fr;
        gap: var(--spacing-md);
    }

    .enjeux-line {
        left: 9px;
        transform: none;
    }

    .enjeux-row-left,
    .enjeux-row-right {
        grid-template-columns: auto 1fr;
    }

    /* RÃ©ordonner pour que le dot soit toujours Ã  gauche */
    .enjeux-row-right .enjeux-dot { order: -2; }
    .enjeux-row-right .enjeux-body { order: -1; }
    .enjeux-row-right .enjeux-visual { order: 0; }
    .enjeux-row-right .enjeux-body { text-align: left; }

    .enjeux-visual {
        grid-column: 2;
    }

    .enjeux-dot {
        width: 14px;
        height: 14px;
    }

    .enjeux-question {
        font-size: var(--font-size-xl);
    }

    .enjeux-img {
        height: 180px;
    }

    .enjeux-row-left,
    .enjeux-row-right {
        transform: translateY(30px);
    }
}

@media (max-width: 600px) {
    .enjeux-question {
        font-size: var(--font-size-lg);
    }
    .enjeux-img {
        height: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .enjeux-title,
    .enjeux-item {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
    .enjeux-dot-ping {
        animation: none;
    }
    .enjeux-line-fill {
        height: 100% !important;
    }
}

.section-cta {
    background:
        radial-gradient(700px 360px at 10% 0%, rgba(128, 0, 128, 0.08), transparent 60%),
        radial-gradient(700px 360px at 90% 10%, rgba(42, 48, 98, 0.08), transparent 60%),
        linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
    color: #0f172a;
}

.section-cta h2, .section-cta p {
    color: #0f172a;
}

/* CTA animated elements */
.cta-title {
    font-size: var(--font-size-3xl);
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
}

.cta-description {
    font-size: var(--font-size-lg);
    color: var(--color-gray);
    margin: var(--spacing-lg) 0;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
}

.cta-btn-wrapper {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

.cta-animated.in-view .cta-title {
    animation: ctaSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cta-animated.in-view .cta-description {
    animation: ctaSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.cta-animated.in-view .cta-btn-wrapper {
    animation: ctaBtnPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes ctaSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes ctaBtnPop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    70% {
        transform: translateY(-4px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-title,
    .cta-description,
    .cta-btn-wrapper {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Variantes d'animation par thématique */
.sr-variant-1.scroll-reveal { transform: translateY(32px) scale(0.98); }
.sr-variant-2.scroll-reveal { transform: translateX(-36px) scale(0.98); }
.sr-variant-3.scroll-reveal { transform: translateX(36px) scale(0.98); }
.sr-variant-4.scroll-reveal { transform: translateY(36px) scale(0.96) rotate(-0.3deg); }

.sr-variant-2.scroll-reveal.is-visible,
.sr-variant-3.scroll-reveal.is-visible,
.sr-variant-4.scroll-reveal.is-visible {
    transform: translate(0,0) scale(1) rotate(0deg);
}

.word-reveal-ready {
    display: inline-block;
}

.word-reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        filter 0.6s ease;
    transition-delay: var(--word-delay, 0s);
}

.word-reveal-in .word-reveal-word {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.section-title h2 {
    margin-top: 0;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-gray); /* Updated for better visibility */
    margin-top: var(--spacing-md);
}

/* ===========================
   SNAKE JOURNEY (TRANSFORMATION)
   =========================== */
.snake-section {
    background:
        radial-gradient(900px 520px at 10% 0%, rgba(0, 168, 232, 0.14), transparent 60%),
        radial-gradient(900px 520px at 90% 10%, rgba(26, 58, 92, 0.14), transparent 60%),
        linear-gradient(180deg, #f4f8fc 0%, #edf3fb 60%, #f8fbff 100%);
}

.snake-path {
    position: relative;
    margin-top: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

.snake-path::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(0, 168, 232, 0.3), rgba(46, 90, 140, 0.35));
    transform: translateX(-50%);
    border-radius: 999px;
}

.snake-step {
    position: relative;
    width: calc(50% - 40px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(26, 58, 92, 0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.snake-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.snake-step.left {
    align-self: flex-start;
}

.snake-step.right {
    align-self: flex-end;
}

.snake-step::before {
    content: '';
    position: absolute;
    top: 32px;
    width: 18px;
    height: 18px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(0, 168, 232, 0.15);
}

.snake-step.left::before {
    right: -52px;
}

.snake-step.right::before {
    left: -52px;
}

.snake-step::after {
    content: '';
    position: absolute;
    top: 40px;
    width: 46px;
    height: 24px;
    border-top: 2px solid rgba(0, 168, 232, 0.4);
    border-radius: 999px;
}

.snake-step.left::after {
    right: -46px;
}

.snake-step.right::after {
    left: -46px;
}

.snake-index {
    display: inline-block;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    margin-bottom: var(--spacing-sm);
}

.snake-step h3 {
    margin-top: 0;
}

.snake-step p {
    margin-bottom: 0;
    color: var(--color-gray);
}

.snake-step .snake-extra {
    display: none;
    margin-top: 0.55rem;
    color: #0f172a;
}

.snake-step.is-open .snake-extra {
    display: block;
}

.snake-step .snake-toggle {
    margin-top: 0.55rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.snake-step .snake-toggle::after {
    content: '▼';
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.snake-step.is-open .snake-toggle::after {
    transform: rotate(180deg);
}

.snake-step .snake-toggle:hover,
.snake-step .snake-toggle:focus {
    color: var(--color-accent-dark);
    outline: none;
}

@media (max-width: 1024px) {
    .snake-step {
        width: calc(100% - 60px);
    }
    .snake-path::before {
        left: 20px;
    }
    .snake-step.left,
    .snake-step.right {
        align-self: flex-end;
    }
    .snake-step.left::before,
    .snake-step.right::before {
        left: -40px;
        right: auto;
    }
    .snake-step.left::after,
    .snake-step.right::after {
        left: -40px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .snake-step {
        width: 100%;
    }
    .snake-path::before {
        left: 12px;
    }
    .snake-step.left::before,
    .snake-step.right::before {
        left: -28px;
    }
    .snake-step.left::after,
    .snake-step.right::after {
        left: -28px;
        width: 28px;
    }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    background: #2A3062;
    color: #ffffff;
    padding: var(--spacing-md) var(--spacing-md);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-home {
    background-image:
        linear-gradient(135deg, rgba(26, 58, 92, 0.92) 0%, rgba(46, 90, 140, 0.9) 100%),
        url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=1800&auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-md);
    overflow: visible;
}

.hero-home .hero-content {
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-career {
    min-height: 420px;
    padding: var(--spacing-xl) var(--spacing-md);
    background-image: none;
    background-color: #2A3062;
}

.hero-career .hero-content {
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

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

.hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

/* Typewriter hero title */
.hero-typewriter {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -1px;
    min-height: 1.2em;
}

.hero-typewriter #typed-text {
    color: #ffffff;
    text-shadow:
        0 0 12px rgba(0, 168, 232, 0.65),
        0 0 28px rgba(0, 168, 232, 0.35),
        0 10px 35px rgba(0, 0, 0, 0.25);
}

.typing-cursor {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 300;
    animation: blink 0.7s step-end infinite;
    margin-left: 2px;
}

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

.hero-subtitle,
.hero-description {
    color: rgba(255, 255, 255, 0.85);
}

.hero-subtitle-rotating {
    position: relative;
    display: grid;
    gap: 0.2rem;
    align-content: start;
    min-height: 5em; /* évite les sauts quand les lignes changent */
    padding-bottom: 0.4rem;
    overflow: visible;
}

.hero-subtitle-rotating .scramble-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    white-space: pre-wrap;
    text-shadow: inherit;
    background: transparent;
    opacity: 0.76;
    mix-blend-mode: screen;
    letter-spacing: 0.01em;
}

.hero-subtitle-rotating .hero-subtitle-line {
    grid-area: 1 / 1;
    position: absolute;
    inset: 0;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px) translateX(var(--slide-x, 0)) scale(0.995) translateY(calc(var(--hero-scroll, 0) * -0.04));
    filter: blur(3px);
    font-family: 'Poppins', 'Sora', sans-serif;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.45;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
    will-change: opacity, transform, filter;
    pointer-events: none;
}

.hero-subtitle-rotating .hero-subtitle-line.is-active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
    filter: blur(0);
    animation: heroSubtitleWave 6s ease-in-out infinite;
    box-shadow: none;
    pointer-events: auto;
    color: #dbeafe;
}

.hero-subtitle-rotating .hero-subtitle-line.is-leaving {
    opacity: 0;
    transform: translateY(-10px) translateX(0) scale(0.995);
    filter: blur(2px);
    pointer-events: none;
}

.hero-subtitle-rotating .hero-subtitle-line:nth-child(odd) {
    --slide-x: -16px;
}

.hero-subtitle-rotating .hero-subtitle-line:nth-child(even) {
    --slide-x: 16px;
}

/* Effet "écriture" mot à mot */
@keyframes heroSubtitleWave {
    0%   { filter: drop-shadow(0 6px 14px rgba(0, 168, 232, 0.08)); }
    50%  { filter: drop-shadow(0 10px 24px rgba(0, 168, 232, 0.18)); transform: translateY(-2px); }
    100% { filter: drop-shadow(0 6px 14px rgba(0, 168, 232, 0.08)); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-subtitle-rotating .hero-subtitle-line {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Hero title glow + modern sweep */
.hero-title-glow {
    position: relative;
    display: inline-block;
    color: var(--color-white);
    text-shadow:
        0 0 12px rgba(0, 168, 232, 0.65),
        0 0 28px rgba(0, 168, 232, 0.35),
        0 10px 35px rgba(0, 0, 0, 0.25);
    animation: glowPulse 2.6s ease-in-out infinite;
}

.hero-title-glow::after {
    content: '';
    position: absolute;
    top: -5%;
    left: -25%;
    width: 25%;
    height: 110%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    mix-blend-mode: screen;
    animation: glowSweep 3.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(0, 168, 232, 0.5),
            0 0 24px rgba(0, 168, 232, 0.3),
            0 8px 28px rgba(0, 0, 0, 0.2);
    }
    50% {
        text-shadow:
            0 0 18px rgba(0, 168, 232, 0.85),
            0 0 40px rgba(0, 168, 232, 0.5),
            0 12px 38px rgba(0, 0, 0, 0.28);
    }
}

@keyframes glowSweep {
    0% {
        left: -30%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    45% {
        left: 110%;
        opacity: 0;
    }
    100% {
        left: 110%;
        opacity: 0;
    }
}

/* Typing animation styles (professional, type-once) */
#typed-text {
    display: inline-block;
    color: var(--color-white);
    font-family: 'Sora', 'Poppins', var(--font-primary);
    white-space: nowrap;
    overflow: hidden;
    vertical-align: middle;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: var(--color-accent);
    margin-left: 8px;
    vertical-align: middle;
    animation: blink 1s steps(2, start) infinite;
    opacity: 1;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* subtle hero entrance when JS is disabled or before typing starts */
.hero-title {
    opacity: 1;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.45;
    font-weight: 400; /* Changed from 300 */
}

.hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--lh-relaxed);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   CARTES / CARDS
   =========================== */
/* ===========================
   LAYOUT TRIANGLE - 3 CARTES
   =========================== */
.cards-triangle-container {
    perspective: 1200px;
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: var(--spacing-xl) auto;
    height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-triangle {
    position: absolute;
    width: 330px;
    transition: all var(--transition-smooth);
    animation: floatIn 0.8s ease-out forwards;
}

/* Carte du haut - Centre */
.card-triangle-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
    z-index: 30;
}

/* Carte bas gauche */
.card-triangle-left {
    bottom: 0;
    left: 5%;
    animation-delay: 0.2s;
    z-index: 20;
}

/* Carte bas droite */
.card-triangle-right {
    bottom: 0;
    right: 5%;
    animation-delay: 0.4s;
    z-index: 20;
}

/* Animations des cartes */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-triangle-top {
    animation-name: floatInTop;
}

@keyframes floatInTop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.card-triangle-left {
    animation-name: floatInLeft;
}

@keyframes floatInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

.card-triangle-right {
    animation-name: floatInRight;
}

@keyframes floatInRight {
    from {
        opacity: 0;
        transform: translateX(100px) translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

/* Hover effects pour les cartes triangles */
.card-triangle:hover {
    transform: translateY(-15px) scale(1.05) !important;
    z-index: 40 !important;
    box-shadow: var(--shadow-hover);
}

.card-triangle-top:hover {
    transform: translateX(-50%) translateY(-15px) scale(1.05) !important;
}

.card-triangle-left:hover {
    transform: translateX(0) translateY(-15px) scale(1.05) !important;
}

.card-triangle-right:hover {
    transform: translateX(0) translateY(-15px) scale(1.05) !important;
}

/* Mouvement continu subtle des cartes */
.card-triangle-top {
    animation: floatInTop 0.8s ease-out forwards, bobbing 5s ease-in-out 0.8s infinite;
}

.card-triangle-left {
    animation: floatInLeft 0.8s ease-out forwards, swayLeft 6s ease-in-out 1s infinite;
}

.card-triangle-right {
    animation: floatInRight 0.8s ease-out forwards, swayRight 6s ease-in-out 1s infinite;
}

@keyframes bobbing {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-25px);
    }
}

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

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

/* Grid classique fallback */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.card {
    background: var(--color-off-white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-light-gray);
    text-decoration: none; /* Remove underline for cards acting as links */
    color: inherit; /* Inherit text color */
}

/* Styling for interactive cards (now anchor tags) */
.card-interactive {
    cursor: pointer;
    position: relative; /* For arrow positioning */
}

.card-interactive:hover {
    transform: translateY(-12px); /* More pronounced lift on hover */
    box-shadow: var(--shadow-xl); /* Stronger shadow on hover */
    border-color: var(--color-accent);
}

.card-image {
    width: 100%;
    height: 120px; /* Further reduced image height */
    object-fit: cover;
    background: linear-gradient(135deg, var(--color-light-gray) 0%, var(--color-off-white) 100%);
}

.card-content {
    padding: var(--spacing-sm);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push arrow to bottom */
}

.card-icon {
    width: 50px; /* Slightly smaller icon */
    height: 50px; /* Slightly smaller icon */
    background: var(--color-accent);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Adjusted icon size */
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.card-description {
    color: var(--color-gray);
    font-size: var(--font-size-sm);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--spacing-md);
    flex: 1; /* Allow description to take up space */
}

/* Card Link Arrow */
.card-link-arrow {
    display: inline-block;
    font-size: 2rem; /* Large arrow */
    color: var(--color-accent);
    align-self: flex-end; /* Align to bottom right of content */
    margin-top: var(--spacing-md);
    opacity: 0; /* Hidden by default */
    transform: translateX(-10px); /* Start slightly left */
    transition: all var(--transition-fast);
}

.card-interactive:hover .card-link-arrow {
    opacity: 1; /* Visible on hover */
    transform: translateX(0); /* Slide into place */
}

/* Remove card-details from interactive cards */
.card-interactive .card-details {
    display: none;
}

/* Ensure original .card-details and .card-detail-item are hidden for non-interactive cards if they were ever used */
.card-details {
    display: none;
}
.card-detail-item {
    display: none;
}
.card-detail-item strong {
    display: none;
}

/* ===========================
   QUESTION CARDS (EXCELLENCE)
   =========================== */
.question-cards {
    align-items: stretch;
}

.question-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(42, 48, 98, 0.18);
    background: #f3d2b2;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
    color: #2A3062;
}

.question-card-header {
    background: #e39172;
    color: #1d1f35;
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 0.9rem 1rem;
}

.question-card-body {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-height: 260px;
}

.question-card-body ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
    color: #1f2a44;
    line-height: 1.6;
    font-weight: 600;
}

.question-card-link {
    margin-top: auto;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #2A3062;
}

.question-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.18);
    border-color: rgba(42, 48, 98, 0.5);
}

.question-card:hover .question-card-header {
    background: #e4c4ff;
}

/* ===========================
   FORMULAIRES
   =========================== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem var(--spacing-md);
    border: 2px solid var(--color-light-gray);
    border-radius: var(--border-radius-md);
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    background-color: var(--color-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    font-family: var(--font-secondary);
}

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

.form-error-message {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: 0.5rem;
}

.form-success-message {
    background-color: #d1fae5;
    color: #065f46;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--color-success);
}

/* ===========================
   UTILITIES
   =========================== */
.text-center {
    text-align: center;
}

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

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

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.text-light {
    color: var(--color-text-light);
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.py-1 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-2 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-3 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-4 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

.d-flex {
    display: flex;
}

.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* ===========================
   RESPONSIVE - Tablettes
   =========================== */
@media (max-width: 1024px) {
    .hero-typewriter {
        font-size: 3.5rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

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

    .cards-triangle-container {
        height: 800px;
    }

    .card-triangle {
        width: 280px;
    }
}

/* ===========================
   RESPONSIVE - Mobile
   =========================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 400px;
        padding: var(--spacing-lg) var(--spacing-md);
    }

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

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

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: var(--spacing-lg) var(--spacing-md);
    }

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

    /* Layout triangle Ã¢â€ â€™ Stack vertical sur mobile */
    .cards-triangle-container {
        position: relative;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        margin: var(--spacing-xl) auto;
    }

    .card-triangle,
    .card-triangle-top,
    .card-triangle-left,
    .card-triangle-right {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100%;
        transform: none !important;
        animation: none !important;
    }

    .card-triangle:hover {
        transform: translateY(-10px) scale(1.02) !important;
    }

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

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

    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

/* ===========================
   RESPONSIVE - Petit mobile
   =========================== */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

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

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

    .navbar-logo {
        height: 56px;
    }

    .navbar-logo-image {
        height: 90px;
        max-width: none;
    }

    .navbar-menu {
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .navbar-link,
    .navbar-dropdown-toggle {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .card-image {
        height: 180px;
    }
}

/* ===========================
   ADMIN THEME OVERRIDES (VIAADUC)
   =========================== */
:root {
    --color-primary: #1a3a5c;
    --color-secondary: #2e5a8c;
    --color-accent: #00a8e8;
    --color-accent-dark: #0088c9;
    --admin-ink: #e2e8f0;
    --admin-muted: #94a3b8;
    --admin-panel: rgba(15, 23, 42, 0.85);
    --admin-panel-border: rgba(148, 163, 184, 0.22);
    --admin-glow: rgba(56, 189, 248, 0.35);
}

.admin-body {
    background:
        radial-gradient(1200px 520px at 15% -10%, rgba(37, 99, 235, 0.25), transparent 60%),
        radial-gradient(1200px 520px at 85% 5%, rgba(14, 165, 233, 0.2), transparent 60%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 60%, #111827 100%);
    color: var(--admin-ink);
}

.admin-sidebar {
    background: #0b1220;
    color: var(--admin-ink);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-sidebar-logo {
    background: linear-gradient(135deg, #00a8e8, #0088c9);
    color: #ffffff;
}

.admin-theme-toggle,
.admin-compact-toggle {
    color: var(--admin-ink);
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.2);
}

.admin-theme-toggle:hover,
.admin-compact-toggle:hover {
    background: rgba(59, 130, 246, 0.35);
}

.admin-nav-icon {
    background: rgba(59, 130, 246, 0.25);
    color: #e2e8f0;
}

.admin-nav-item {
    color: var(--admin-ink);
    background: rgba(148, 163, 184, 0.08);
}

.admin-nav-item:hover {
    background: rgba(59, 130, 246, 0.28);
    color: #ffffff;
}

.admin-nav-item.active {
    background: rgba(59, 130, 246, 0.45);
    color: #ffffff;
}

.admin-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 64, 175, 0.35) 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 40px rgba(12, 14, 32, 0.55);
}

.admin-hero::before,
.admin-hero::after {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 60%);
}

.admin-glass,
.admin-form-card,
.admin-stat-card,
.admin-traffic-item,
.admin-kpi-card,
.admin-notify-item {
    background: var(--admin-panel);
    border: 1px solid var(--admin-panel-border);
}

.admin-shell h2,
.admin-shell h3,
.admin-shell p,
.admin-shell label {
    color: var(--admin-ink);
}

.admin-shell .form-label {
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    margin-bottom: 0.4rem;
}

.admin-shell .form-group {
    display: grid;
    gap: 0.4rem;
    margin-bottom: var(--spacing-md);
}

.admin-shell h1,
.admin-shell h2,
.admin-shell h3,
.admin-shell h4,
.admin-shell h5,
.admin-shell h6,
.admin-card-title,
.admin-preview-title,
.admin-preview-meta,
.admin-preview-excerpt,
.admin-preview-extra,
.admin-form-author,
.admin-author-badge,
.admin-date-badge,
.admin-chip,
.admin-traffic-page,
.admin-traffic-count,
.admin-stat-value,
.admin-toast-title,
.admin-toast p,
.admin-toast-content,
.admin-login-header h2,
.admin-login-header p {
    color: var(--admin-ink);
}

.admin-muted,
.admin-stat-label,
.admin-traffic-header p,
.admin-traffic-filter label,
.admin-preview-excerpt,
.admin-preview-extra,
.admin-login-error,
.admin-login-success,
.admin-notify-time,
.admin-kpi-label {
    color: var(--admin-muted);
}

.admin-muted,
.admin-stat-label,
.admin-traffic-header p,
.admin-traffic-filter label,
.admin-notify-time,
.admin-kpi-label {
    color: var(--admin-muted);
}

.admin-shell .form-input,
.admin-shell .form-textarea,
.admin-traffic-filter .form-input {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--admin-ink);
    border-radius: 12px;
}

.admin-shell .form-input,
.admin-shell .form-select,
.admin-traffic-filter .form-input,
.admin-traffic-filter select {
    height: 48px;
    padding-top: 0;
    padding-bottom: 0;
}

.admin-shell .form-textarea {
    min-height: 160px;
}

.admin-shell .form-group {
    margin-bottom: var(--spacing-md);
}

.admin-card {
    background: var(--admin-panel);
    border: 1px solid var(--admin-panel-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 18px 46px rgba(12, 14, 32, 0.35);
    overflow: hidden;
}

.admin-card-content {
    padding: var(--spacing-md);
}

.admin-card-title {
    margin: 0 0 0.35rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--admin-ink);
}

.admin-card-text {
    color: var(--admin-muted);
    margin: 0;
}

.admin-card-meta {
    color: var(--admin-ink);
}

.admin-card-meta .admin-date-badge,
.admin-card-meta .admin-author-badge {
    color: var(--admin-ink);
}

.admin-section {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(128, 0, 128, 0.18);
}

.admin-section:first-of-type {
    border-top: none;
}

.admin-shell .cards-grid {
    gap: var(--spacing-lg);
}

.admin-shell .cards-grid .admin-card {
    height: 100%;
}

.admin-header-totals span,
.admin-traffic-summary span {
    background: rgba(24, 28, 60, 0.92);
    border: 1px solid rgba(128, 0, 128, 0.35);
    color: var(--admin-ink);
}

.admin-preview-meta,
.admin-preview-title,
.admin-preview-excerpt,
.admin-preview-extra,
.admin-form-author,
.admin-card-meta,
.admin-card-meta * {
    color: var(--admin-ink);
}

.admin-preview-excerpt,
.admin-preview-extra,
.admin-muted {
    color: var(--admin-muted);
}

.admin-traffic-page {
    color: var(--admin-ink);
}

.admin-main .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.admin-main .btn-secondary,
.admin-main .btn-outline {
    background: rgba(30, 41, 59, 0.9);
    color: var(--admin-ink);
    border-color: #e2e8f0;
}

.admin-main .btn-outline:hover,
.admin-main .btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.55);
    color: #ffffff;
}

.admin-kpi-icon {
    background: rgba(59, 130, 246, 0.25);
    color: #e2e8f0;
}

.admin-kpi-spark {
    color: rgba(56, 189, 248, 0.8);
}

.admin-traffic-count {
    color: #38bdf8;
}

.admin-toast-floating .admin-toast-content {
    background: rgba(24, 28, 60, 0.96);
    border: 1px solid rgba(128, 0, 128, 0.25);
    color: var(--admin-ink);
}

.admin-confirm {
    background: rgba(10, 12, 28, 0.6);
}

.admin-confirm .admin-toast-content {
    background: rgba(24, 28, 60, 0.98);
    border: 1px solid rgba(128, 0, 128, 0.35);
    color: var(--admin-ink);
    box-shadow: 0 30px 80px rgba(10, 12, 28, 0.6);
}

.admin-confirm .admin-toast-title {
    color: #ffffff;
}

.admin-confirm p {
    color: var(--admin-muted);
}

/* ===========================
   CLIENT LOGOS SECTION
   =========================== */
.client-logos {
    background:
        radial-gradient(800px 420px at 10% 0%, rgba(0, 168, 232, 0.16), transparent 60%),
        radial-gradient(900px 520px at 90% 20%, rgba(26, 58, 92, 0.16), transparent 58%),
        linear-gradient(180deg, #f4f7fc 0%, #ecf3fb 60%, #f7fbff 100%);
    background-size: auto;
    padding: var(--spacing-xl) 0;
    overflow: hidden; /* Hide overflowing logos for carousel effect */
}

.client-logos h2 {
    margin-bottom: var(--spacing-xl);
    color: var(--color-primary);
}

.logo-carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.logo-carousel-inner {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    animation: scroll-logos 30s linear infinite;
    flex-shrink: 0; /* Prevent shrinking */
    padding: var(--spacing-md) 0; /* Some vertical padding */
}

.icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; /* Same as img height */
    height: 80px;
    font-size: 3rem; /* Larger icon size */
    color: var(--color-gray); /* Subtle color */
    opacity: 0.6;
    transition: all var(--transition-fast);
    cursor: pointer;
    border-radius: var(--border-radius-sm); /* Slightly rounded corners */
    background-color: transparent;
}

.icon-placeholder:hover {
    color: var(--color-accent); /* Accent color on hover */
    opacity: 1;
    transform: scale(1.1); /* Subtle scale up on hover */
}

/* Duplicate the inner content to create an infinite scroll effect */
.logo-carousel-inner::after {
    content: attr(data-clone); /* This won't work directly with image tags, need JS or duplicate HTML */
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

@keyframes scroll-logos {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); } /* Scroll half the width to repeat the content */
}

/* Pause animation on hover */
.logo-carousel:hover .logo-carousel-inner {
    animation-play-state: paused;
}


/* ===========================
   TEAM SECTION - CAROUSEL
   =========================== */
.team-carousel-wrapper {
    margin-top: var(--spacing-xl);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.team-carousel {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.team-carousel-inner {
    display: flex;
    width: fit-content;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    flex-wrap: nowrap;
}

.team-card {
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
    scroll-snap-align: start;
    text-align: center;
}

.team-card .card-image {
    height: 300px;
}

.team-card .card-content {
    justify-content: flex-start;
}

.team-role {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.team-card .card-description {
    display: none;
}

/* ===========================
   TESTIMONIALS SECTION - CAROUSEL
   =========================== */
.testimonials-carousel {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    margin: var(--spacing-lg) auto;
    max-width: none;
    width: 100%;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.testimonials-carousel-inner {
    display: flex;
    width: fit-content; /* Allow content to dictate width */
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0; /* Some vertical padding */
    flex-wrap: nowrap; /* Ensure cards stay in a single line */
    animation: none;
    will-change: transform;
}

/* Auto-scroll disabled in favor of card float animation */

@keyframes scroll-testimonials {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); } /* Scroll half the width to repeat the content */
}

.testimonial-card {
    min-width: 360px;
    max-width: 360px;
    box-sizing: border-box;
    padding: var(--spacing-lg);
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: 1px solid #e2e8f0;
    margin: 0;
    position: relative;
    cursor: grab;
    scroll-snap-align: start;
    opacity: 1;
    transform: translateY(0);
    filter: none;
    animation: testimonialFloat 6.5s ease-in-out infinite;
}

.testimonials .testimonial-card:nth-child(1) { animation-delay: 0.25s; }
.testimonials .testimonial-card:nth-child(2) { animation-delay: 0.32s; }
.testimonials .testimonial-card:nth-child(3) { animation-delay: 0.39s; }
.testimonials .testimonial-card:nth-child(4) { animation-delay: 0.46s; }
.testimonials .testimonial-card:nth-child(5) { animation-delay: 0.53s; }
.testimonials .testimonial-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes testimonialsSectionIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes testimonialsCardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes testimonialsTitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    border-color: #cbd5f5;
    z-index: 10;
    cursor: grabbing;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #800080;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-content {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: var(--spacing-md);
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffc107;
    color: #1f2937;
    font-weight: 800;
    letter-spacing: 0.4px;
    border: 1px solid #f4b400;
    box-shadow: 0 6px 14px rgba(255, 193, 7, 0.35);
}

.testimonial-identity {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.testimonial-name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
}

.testimonial-role {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

.testimonial-quote {
    font-size: var(--font-size-base);
    font-style: italic;
    color: #475569;
    line-height: var(--lh-relaxed);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-md);
    flex-grow: 1;
}

.testimonial-quote::before {
    content: "â€œ";
    font-family: serif; 
    font-size: 4rem; /* Reduced quote icon size */
    color: #e2e8f0;
    position: absolute;
    left: -5px; /* Adjust position */
    top: -15px;
    line-height: 1;
    opacity: 0.6; 
    z-index: 0; 
}

.testimonial-card:nth-child(2n) {
    animation-delay: 0.6s;
}

.testimonial-card:nth-child(3n) {
    animation-delay: 1.2s;
}

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

@keyframes testimonialBlink {
    0%, 100% {
        box-shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
    }
    50% {
        box-shadow: 0 26px 55px rgba(56, 189, 248, 0.35);
    }
}

/* Testimonials section background */
.testimonials {
    background: #F2F4FF;
    position: relative;
    overflow: hidden;
    color: #0f172a;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: blur(8px);
    animation: testimonialsSectionIn 0.9s ease forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
}

.testimonials::before {
    display: none;
}

.testimonials .container,
.testimonials .carousel-wrapper {
    position: relative;
    z-index: 1;
}

.testimonials h2 {
    color: #0f172a;
    text-shadow: none;
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
    animation: testimonialsTitleIn 0.7s ease forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
}

.testimonials-title {
    display: block;
    width: 100%;
    text-align: center;
}

.testimonials-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    animation: testimonialsCharIn 0.6s ease forwards;
    animation-delay: calc(var(--i) * 0.04s);
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

@keyframes testimonialsCharIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   BLOGS / ACTUALITES
   =========================== */
.blogs-section {
    background: #f9fafc;
    padding-bottom: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
    color: #0f172a;
}

/* ===========================
   BLOGS PAGE - ARCHIVE
   =========================== */
.blogs-page .breadcrumbs {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.blogs-page .page-header {
    background: #2A3062;
    padding: var(--spacing-2xl) 0;
}

.blogs-page .page-header-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.blogs-page .page-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
}

.blogs-page .page-subtitle {
    font-size: var(--font-size-base);
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.breadcrumbs-nav {
    padding: var(--spacing-sm) 0;
}

.breadcrumbs-nav ol {
    list-style: none;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0;
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.breadcrumbs-nav li + li::before {
    content: "/";
    margin-right: 0.6rem;
    color: #cbd5f5;
}

.breadcrumbs-nav a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.blog-archive {
    padding: var(--spacing-2xl) 0;
    background: #ffffff;
}

.blog-filters {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: var(--spacing-lg);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    margin-bottom: var(--spacing-xl);
}

.blog-filters-title {
    margin: 0 0 var(--spacing-md);
    font-size: 1.1rem;
    color: #0f172a;
}

.blog-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.blog-filter-list .btn {
    text-transform: none;
    letter-spacing: 0;
    padding: 0.55rem 1rem;
}

.blog-filter-list .btn.is-active {
    box-shadow: 0 12px 24px rgba(128, 0, 128, 0.25);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: calc(var(--spacing-lg) + 0.5rem);
}

.blog-entry {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    opacity: 0;
    transform: translateY(18px) scale(0.95);
    animation: blogEntryIn 0.7s ease forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
}

.blog-entry:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.blog-entry:nth-child(1) { animation-delay: 0.05s; }
.blog-entry:nth-child(2) { animation-delay: 0.12s; }
.blog-entry:nth-child(3) { animation-delay: 0.19s; }
.blog-entry:nth-child(4) { animation-delay: 0.26s; }
.blog-entry:nth-child(5) { animation-delay: 0.33s; }
.blog-entry:nth-child(6) { animation-delay: 0.4s; }

@keyframes blogEntryIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.blog-entry-media {
    display: block;
    text-decoration: none;
}

.blog-entry-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}

.blog-entry-body {
    padding: calc(var(--spacing-lg) + 0.25rem);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 1;
}

.blog-entry-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
}

.blog-entry-category {
    background: rgba(128, 0, 128, 0.12);
    color: #800080;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.blog-entry-title {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.blog-entry-title a {
    color: inherit;
    text-decoration: none;
}

.blog-entry-excerpt {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    flex: 1;
}

.blog-entry-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.blog-entry-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.blog-entry-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffc107;
    color: #ffffff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f4b400;
    box-shadow: 0 6px 14px rgba(255, 193, 7, 0.35);
}

.blog-entry-name {
    display: block;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
}

.blog-entry-role {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
}

.blog-entry-link {
    color: #800080;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
}

.blog-entry-link:hover {
    text-decoration: underline;
}

.blog-empty {
    text-align: center;
    color: #64748b;
    margin: var(--spacing-xl) 0;
}

.blog-pagination {
    margin-top: var(--spacing-xl);
}

.blog-pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
}

.blog-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    background: #ffffff;
    transition: all var(--transition-fast);
}

.blog-pagination li.active a,
.blog-pagination a:hover {
    background: #800080;
    color: #ffffff;
    border-color: #800080;
}

@media (max-width: 768px) {
    .blogs-page .page-header {
        padding: var(--spacing-xl) 0;
    }
    .blog-posts {
        grid-template-columns: 1fr;
    }
    .blog-entry-image {
        height: 200px;
    }
    .blog-entry-footer {
        align-items: flex-start;
    }
    .blog-single-layout {
        grid-template-columns: 1fr;
    }
    .blog-single-sidebar {
        position: static;
    }
}

.blogs-section::before {
    content: none;
}

.blogs-section .section-title {
    position: relative;
    z-index: 1;
}

.section-title-blog {
    text-align: center;
    gap: var(--spacing-xs);
}

.section-title-blog h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: -0.2px;
}

.blogs-section .section-subtitle {
    color: #475569;
}

.marquee-title {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    margin-bottom: var(--spacing-sm);
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: blog-marquee 18s linear infinite;
    will-change: transform;
}

.marquee-text {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
    color: #0f172a;
    text-shadow: none;
}

@keyframes blog-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.blogs-carousel {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    z-index: 1;
}

.blogs-carousel-inner {
    display: flex;
    width: fit-content;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0 var(--spacing-xl);
    flex-wrap: nowrap;
}

.blogs-carousel-inner:hover {
    animation-play-state: paused;
}

@keyframes scroll-blogs {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}

.blog-card {
    min-width: 360px;
    max-width: 360px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
    margin: 0 auto;
    scroll-snap-align: start;
    border-radius: 22px;
    overflow: hidden;
    backdrop-filter: blur(0);
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    animation: blogCardIn 0.8s ease both;
    perspective: 1200px;
}

/* Carousel Navigation Controls */
.carousel-wrapper {
    position: relative;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(241, 245, 249, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.16),
        0 2px 8px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(6px);
}

.carousel-control:hover {
    transform: translateY(-50%) scale(1.05);
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.98));
    border-color: rgba(0, 168, 232, 0.65);
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.2),
        0 0 0 4px rgba(0, 168, 232, 0.12);
}

.carousel-control-prev {
    left: 12px;
}

.carousel-control-next {
    right: 12px;
}

.carousel-control-icon {
    font-size: 1.75rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.carousel-control:hover .carousel-control-icon {
    color: #0369a1;
}

.carousel-control:focus-visible {
    outline: 3px solid rgba(0, 168, 232, 0.45);
    outline-offset: 2px;
}

.carousel-control:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.carousel-control:disabled:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(241, 245, 249, 0.94));
    border-color: rgba(148, 163, 184, 0.55);
    transform: translateY(-50%);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.carousel-control:disabled .carousel-control-icon {
    color: #94a3b8;
}

/* Responsive carousel controls */
@media (max-width: 768px) {
    .carousel-control {
        width: 44px;
        height: 44px;
    }

    .carousel-control-icon {
        font-size: 1.35rem;
    }

    .carousel-control-prev {
        left: 8px;
    }

    .carousel-control-next {
        right: 8px;
    }
}

/* Hide scrollbars */
.testimonials-carousel::-webkit-scrollbar,
.blogs-carousel::-webkit-scrollbar,
.team-carousel::-webkit-scrollbar {
    display: none;
}
.testimonials-carousel,
.blogs-carousel,
.team-carousel {
    scrollbar-width: none;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    border-color: #cbd5f5;
}

.blog-card-flip {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.blog-card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card-front {
    transform: rotateY(0deg);
}

.blog-card-back {
    transform: rotateY(180deg);
    background: #ffffff;
}

.blog-card:hover .blog-card-flip {
    transform: rotateY(180deg);
}

.blog-card-back-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    height: 100%;
    justify-content: center;
}

.blog-card-image {
    height: 170px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.25) 100%);
}

.blog-card-content {
    padding: var(--spacing-md);
}

.blog-card-meta {
    font-size: var(--font-size-sm);
    color: #64748b;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.blog-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

.blog-card-meta-row .blog-card-meta {
    margin-bottom: 0;
}

.blog-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #d8ffe8;
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid rgba(46, 213, 115, 0.5);
    box-shadow: 0 0 12px rgba(46, 213, 115, 0.35);
}

.blog-card-title {
    font-size: var(--font-size-lg);
    margin: 0 0 var(--spacing-sm);
    color: #0f172a;
}

.blog-card-excerpt {
    font-size: var(--font-size-sm);
    color: #475569;
    margin: 0;
    line-height: var(--lh-relaxed);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-author-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: var(--spacing-lg);
    padding: 1rem 1.2rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.blog-author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffc107;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
}

.blog-author-label {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    font-weight: 700;
}

.blog-author-name {
    margin: 0.2rem 0 0;
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
}

.blog-author-date {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.blog-author-legend {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}

.blog-card-author {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: #64748b;
    font-weight: 600;
}

.blog-single-layout {
    max-width: 1240px;
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(290px, 360px);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.blog-single-main {
    min-width: 0;
}

.blog-single-cover {
    margin-bottom: var(--spacing-lg);
}

.blog-single-cover-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
}

.blog-single-sidebar {
    position: sticky;
    top: 110px;
}

.blog-sidebar-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 
        0 10px 15px -3px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
}

.blog-sidebar-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-sidebar-header {
    margin-bottom: 1.5rem;
}

.blog-sidebar-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.blog-sidebar-intro {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.blog-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.blog-sidebar-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    group: hover;
}

.blog-sidebar-thumb {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.blog-sidebar-item:hover .blog-sidebar-thumb {
    transform: scale(1.05);
}

.blog-sidebar-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.blog-sidebar-category {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0ea5e9;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.blog-sidebar-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-sidebar-item:hover .blog-sidebar-item-title {
    color: #0ea5e9;
}

.blog-sidebar-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.blog-sidebar-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.blog-sidebar-arrow {
    font-size: 0.9rem;
    color: #0ea5e9;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.blog-sidebar-item:hover .blog-sidebar-arrow {
    opacity: 1;
    transform: translateX(0);
}
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    color: #0f7fb0;
    font-size: 0.9rem;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.blog-sidebar-item:hover .blog-sidebar-arrow,
.blog-sidebar-item:focus-visible .blog-sidebar-arrow {
    transform: translateX(2px);
    background: rgba(14, 165, 233, 0.14);
    color: #0a6d98;
}

.blog-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid #2A3062;
    background: #2A3062;
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    align-self: flex-start;
}

.blog-card-btn:hover {
    transform: translateY(-2px);
    background: #E4C4FF;
    color: #2A3062;
    box-shadow: 0 12px 24px rgba(42, 48, 98, 0.28);
}

@keyframes blogCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.blogs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

@media (max-width: 1024px) {
    .blog-card {
        min-width: 320px;
        max-width: 320px;
    }
    .blog-card-flip {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .blogs-carousel {
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }
    .blog-card {
        min-width: 280px;
        max-width: 280px;
    }
    .blog-card-image {
        height: 180px;
    }
    .blog-card-flip {
        min-height: 380px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        transform: translateX(0);
    }
    .blog-card {
        animation: none;
    }
    .blogs-carousel-inner:hover {
        animation-play-state: running;
    }
    .blog-card-flip {
        transition: none;
    }
    .blog-card:hover .blog-card-flip {
        transform: none;
    }
    .testimonial-card {
        animation: none;
    }
    .testimonials {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
    .testimonials .testimonial-card {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
    .blog-entry {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .word-reveal-word {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* ===========================
   STATS / CHIFFRES CLES
   =========================== */
.stats-section {
    background:
        radial-gradient(900px 520px at 10% 0%, rgba(46, 90, 140, 0.16), transparent 60%),
        radial-gradient(900px 520px at 90% 10%, rgba(0, 168, 232, 0.18), transparent 60%),
        linear-gradient(180deg, #f6f9fd 0%, #edf3fb 60%, #f8fbff 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.stat-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(26, 58, 92, 0.1);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.08), rgba(46, 90, 140, 0.06));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    text-shadow: 0 6px 20px rgba(0, 168, 232, 0.18);
    animation: statGlow 3.2s ease-in-out infinite;
}

.stat-label {
    margin-top: var(--spacing-sm);
    color: var(--color-gray);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.stat-icon {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
}

@keyframes statGlow {
    0%, 100% {
        text-shadow:
            0 6px 22px rgba(0, 168, 232, 0.28),
            0 0 6px rgba(0, 168, 232, 0.12);
    }
    50% {
        text-shadow:
            0 12px 34px rgba(0, 168, 232, 0.6),
            0 0 26px rgba(0, 168, 232, 0.45);
    }
}

/* Star Ratings */
.testimonial-stars {
    display: flex;
    gap: 0.2rem;
    margin-top: var(--spacing-md);
    color: var(--color-warning); 
}

.testimonial-stars .star {
    font-size: 1.1rem; /* Slightly reduced star size */
}

/* Remove old carousel controls (buttons and dots) */
.carousel-prev,
.carousel-next,
.carousel-dots,
.carousel-dot,
.testimonial-card.active-slide {
    display: none !important;
}

/* Responsive adjustments for testimonials carousel */
@media (max-width: 1024px) {
    .testimonial-card {
        min-width: 320px;
        max-width: 320px;
    }

    .team-card {
        min-width: 320px;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
    }
    .team-card {
        min-width: 280px;
        max-width: 280px;
    }
    .team-carousel {
        mask-image: none;
    }
    .testimonials-carousel {
        mask-image: none;
    }
    .testimonial-quote {
        font-size: var(--font-size-base);
    }
    .testimonial-quote::before {
        font-size: 3.5rem;
        top: -10px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        min-width: 260px;
        max-width: 260px;
        padding: var(--spacing-md);
    }
    .team-card {
        min-width: 250px;
        max-width: 250px;
    }
    .team-card .card-image {
        height: 240px;
    }
    .testimonial-quote {
        font-size: var(--font-size-sm);
    }
    .testimonial-quote::before {
        font-size: 3rem;
        top: -5px;
    }
}

/* ===========================
   HOME CINEMATIC ANIMATIONS
   =========================== */
.home-cinematic {
    position: relative;
    isolation: isolate;
    perspective: 1200px;
}

.home-cinematic::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(48% 34% at 10% 14%, rgba(0, 168, 232, 0.14), transparent 72%),
        radial-gradient(40% 28% at 92% 8%, rgba(46, 90, 140, 0.16), transparent 70%),
        radial-gradient(50% 38% at 50% 115%, rgba(26, 58, 92, 0.12), transparent 74%);
    filter: blur(2px);
    animation: homeAmbientFlow 18s ease-in-out infinite alternate;
}

.js [data-home-section] {
    --home-shift: 0px;
    position: relative;
    opacity: 0;
    transform: translateY(26px) scale(0.995);
    filter: blur(2px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease,
        filter 0.65s ease;
    transition-delay: var(--home-section-delay, 0s);
}

.js [data-home-section].home-in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.js [data-home-section]::before {
    display: none;
}

.js [data-home-section].home-in-view::before {
    opacity: 1;
    transform: translateY(0);
}

.js [data-home-section] > .container {
    transform: translateY(var(--home-shift));
    transition: transform 0.55s ease-out;
    will-change: transform;
}

.hero-home {
    --hero-mx: 50%;
    --hero-my: 50%;
    --hero-progress: 0;
}

.js .hero-home .hero-description {
    display: none;
}

.hero-home .hero-content {
    transform: translateY(calc(var(--hero-progress) * -16px));
    transition: transform 0.3s ease-out;
}

.hero-home .hero-content::before {
    content: '';
    position: absolute;
    inset: -14%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(460px 290px at var(--hero-mx) var(--hero-my), rgba(0, 168, 232, 0.34), transparent 66%),
        radial-gradient(560px 300px at 12% 18%, rgba(255, 255, 255, 0.16), transparent 72%);
    opacity: 0.95;
    mix-blend-mode: screen;
    animation: heroAuraPulse 5.8s ease-in-out infinite;
}

.hero-home .hero-content::after {
    content: '';
    position: absolute;
    inset: -16%;
    z-index: -2;
    pointer-events: none;
    background: conic-gradient(
        from 120deg at var(--hero-mx) var(--hero-my),
        rgba(255, 255, 255, 0.22),
        rgba(0, 168, 232, 0.08),
        rgba(255, 255, 255, 0.2)
    );
    filter: blur(34px);
    opacity: 0.3;
    animation: heroHaloTurn 14s linear infinite;
}

.home-cinematic .cards-grid .card,
.home-cinematic .stats-grid .stat-card,
.home-cinematic .blogs-carousel .blog-card {
    position: relative;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --shine-x: 50%;
    --shine-y: 50%;
    opacity: 0;
    transform:
        translateY(42px)
        rotateX(calc(7deg + var(--tilt-x)))
        rotateY(var(--tilt-y))
        scale(0.985);
    filter: blur(6px);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s ease,
        box-shadow 0.4s ease;
    transition-delay: var(--home-delay, 0s);
    will-change: transform, opacity, filter;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.home-cinematic .cards-grid .card.home-card-visible,
.home-cinematic .stats-grid .stat-card.home-card-visible,
.home-cinematic .blogs-carousel .blog-card.home-card-visible {
    opacity: 1;
    transform:
        translateY(0)
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y))
        scale(1);
    filter: blur(0);
}

.home-cinematic .cards-grid .card::before,
.home-cinematic .stats-grid .stat-card::before,
.home-cinematic .blogs-carousel .blog-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(180px 120px at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.36), transparent 72%),
        linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    transform: translateX(-132%);
    opacity: 0.35;
    transition: opacity 0.35s ease;
}

.home-cinematic .cards-grid .card:hover::before,
.home-cinematic .stats-grid .stat-card:hover::before,
.home-cinematic .blogs-carousel .blog-card:hover::before {
    opacity: 0.85;
    animation: homeShineSweep 1.05s ease;
}

.home-cinematic .card.card-interactive:hover {
    transform:
        translateY(-12px)
        rotateX(var(--tilt-x))
        rotateY(var(--tilt-y))
        scale(1.017);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.2);
}

.home-animate-phrase.home-phrase-ready {
    display: inline-block;
    white-space: pre-wrap;
}

.home-animate-phrase .home-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px) scale(0.95) rotateX(10deg);
    filter: blur(6px);
    transition:
        opacity 0.72s ease,
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.72s ease;
    transition-delay: var(--char-delay, 0s);
}

.home-animate-phrase.home-phrase-visible .home-char {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0);
    text-shadow: 0 8px 22px rgba(0, 168, 232, 0.14);
}

.home-cinematic .btn-primary.btn-lg {
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(42, 48, 98, 0.26);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-cinematic .btn-primary.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px rgba(42, 48, 98, 0.32);
}

.home-cinematic .btn-primary.btn-lg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.42), transparent 80%);
    transform: translateX(-130%);
    animation: homeShineSweep 3.8s ease-in-out infinite;
}

@keyframes heroAuraPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(0.98) rotate(-1deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.04) rotate(1deg);
    }
}

@keyframes homeShineSweep {
    0% {
        transform: translateX(-135%);
    }
    100% {
        transform: translateX(135%);
    }
}

@keyframes heroHaloTurn {
    from {
        transform: rotate(0deg) scale(0.98);
    }
    to {
        transform: rotate(360deg) scale(1.03);
    }
}

@keyframes homeAmbientFlow {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translate3d(-1.2%, 0.6%, 0) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translate3d(1.1%, -0.8%, 0) scale(1.01);
        opacity: 0.92;
    }
}

/* ===========================
   QUI SOMMES-NOUS - ANIMATIONS
   =========================== */

/* Hero title & subtitle */
.about-hero-title {
    opacity: 0;
    transform: translateY(25px) scale(0.96);
    filter: blur(5px);
    animation: aboutFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.about-hero-sub {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
    animation: aboutFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes aboutFadeUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Section headers (titles + subtitles) */
.about-section-header .about-section-title {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(5px);
}

.about-section-header .about-section-sub {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(3px);
}

.about-section-header.in-view .about-section-title {
    animation: aboutFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-section-header.in-view .about-section-sub {
    animation: aboutFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

/* Text block - slide from left */
.about-text-block {
    opacity: 0;
    transform: translateX(-40px);
    filter: blur(4px);
}

.about-text-block.in-view {
    animation: aboutSlideLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes aboutSlideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

/* List items stagger */
.about-text-block.in-view .about-list-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: aboutFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.6s + var(--item-index) * 0.12s);
}

/* Video block - slide from right */
.about-video-block {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    filter: blur(4px);
    align-self: flex-start;
    margin-top: 120px;
}

.about-video-block.in-view {
    animation: aboutSlideRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.about-cta-inline {
    text-align: center;
    margin: var(--spacing-xl) auto 0;
    padding: clamp(1.25rem, 1vw + 1rem, 1.8rem);
    border-radius: var(--border-radius-xl);
    background: linear-gradient(135deg, rgba(14,165,233,0.18), rgba(51,65,85,0.78));
    color: #e2e8f0;
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.22), 0 2px 12px rgba(0, 0, 0, 0.22);
    max-width: 720px;
    display: grid;
    gap: var(--spacing-sm);
}

.about-cta-inline__title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.1rem, 1vw + 0.9rem, 1.35rem);
}

.about-cta-inline__btn {
    margin-top: var(--spacing-sm);
    box-shadow: 0 10px 26px rgba(14,165,233,0.38);
}

@media (max-width: 768px) {
    .about-cta-inline {
        text-align: center;
        margin-top: var(--spacing-lg);
        max-width: 100%;
    }
}

.about-cta-band {
    position: relative;
    margin: var(--spacing-xl) auto 0;
    padding: 0;
}

.about-cta-band__inner {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(2rem, 2vw + 1.5rem, 3rem);
    background: linear-gradient(135deg, #2A3062 0%, #1e293b 100%);
    color: #e2e8f0;
    text-align: center;
    box-shadow: 0 18px 44px rgba(14, 165, 233, 0.22), 0 6px 20px rgba(0, 0, 0, 0.24);
}

.about-cta-band__inner::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(14,165,233,0.22) 0%, transparent 70%);
    pointer-events: none;
}

.about-cta-band__title {
    margin: 0 0 var(--spacing-sm) 0;
    font-weight: 800;
    font-size: clamp(1.4rem, 1vw + 1.2rem, 1.8rem);
    color: #fff;
}

.about-cta-band__subtitle {
    margin: 0 auto var(--spacing-md) auto;
    max-width: 780px;
    font-size: clamp(1rem, 0.8vw + 0.9rem, 1.2rem);
    opacity: 0.88;
}

.about-cta-band__actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.about-cta-band__actions .btn {
    box-shadow: 0 12px 28px rgba(14,165,233,0.3);
    border: none;
}

/* Variante simple, sans halo ni gradient superflu */
.about-cta-simple .about-cta-band__inner {
    background: #2A3062;
    border-radius: 24px;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.about-cta-simple .about-cta-band__inner::after {
    display: none;
}

@keyframes aboutSlideRight {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

/* Team cards cascade */
.about-card {
    opacity: 0;
    transform: translateY(45px) scale(0.93);
    filter: blur(5px);
}

.about-card.in-view {
    animation: aboutCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.1s + var(--card-index) * 0.18s);
}

@keyframes aboutCardIn {
    0% {
        opacity: 0;
        transform: translateY(45px) scale(0.93);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Stat boxes pop */
.about-stat-box {
    padding: var(--spacing-lg);
    background: var(--color-light-gray);
    border-radius: var(--border-radius-lg);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.about-stat-box.in-view {
    animation: aboutStatPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.1s + var(--card-index) * 0.15s);
}

.about-stat-number {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

@keyframes aboutStatPop {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    70% {
        transform: translateY(-5px) scale(1.04);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Testimonials wrap */
.about-testimonials-wrap {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(3px);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.about-testimonials-wrap.in-view {
    animation: aboutFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .about-hero-title,
    .about-hero-sub,
    .about-section-header .about-section-title,
    .about-section-header .about-section-sub,
    .about-text-block,
    .about-text-block .about-list-item,
    .about-video-block,
    .about-card,
    .about-stat-box,
    .about-testimonials-wrap {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
}

/* ===========================
   HOME CORPORATE OVERRIDES
   =========================== */
.home-cinematic::before {
    display: none;
}

.js [data-home-section] {
    transform: translateY(26px) scale(0.995);
    filter: blur(2px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease,
        filter 0.65s ease;
}

.js [data-home-section]::before {
    display: none;
}

.js [data-home-section] > .container {
    transform: none !important;
}

.hero-home .hero-content::before,
.hero-home .hero-content::after {
    display: none;
}

.hero-home .hero-content {
    transform: none;
}

.home-cinematic .cards-grid .card,
.home-cinematic .stats-grid .stat-card,
.home-cinematic .blogs-carousel .blog-card {
    transform: translateY(22px) scale(0.995);
    filter: blur(2px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        filter 0.55s ease,
        box-shadow 0.25s ease;
}

.home-cinematic .cards-grid .card.home-card-visible,
.home-cinematic .stats-grid .stat-card.home-card-visible,
.home-cinematic .blogs-carousel .blog-card.home-card-visible {
    transform: translateY(0) scale(1);
}

.home-cinematic .cards-grid .card::before,
.home-cinematic .stats-grid .stat-card::before,
.home-cinematic .blogs-carousel .blog-card::before {
    opacity: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.home-cinematic .cards-grid .card:hover::before,
.home-cinematic .stats-grid .stat-card:hover::before,
.home-cinematic .blogs-carousel .blog-card:hover::before {
    opacity: 0.35;
    animation: none;
}

.home-cinematic .card.card-interactive:hover {
    transform: translateY(-6px) scale(1.005);
    box-shadow: var(--shadow-lg);
}

.home-animate-phrase .home-char {
    transform: translateY(10px);
    filter: blur(1px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        filter 0.4s ease;
}

.home-animate-phrase.home-phrase-visible .home-char {
    transform: translateY(0);
    text-shadow: none;
}

.home-cinematic .btn-primary.btn-lg::after {
    animation: none;
    opacity: 0;
}

.home-cinematic .home-animate-phrase {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.home-cinematic .home-animate-phrase.home-phrase-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-cinematic .cards-grid .card,
.home-cinematic .stats-grid .stat-card,
.home-cinematic .blogs-carousel .blog-card {
    border-color: rgba(26, 58, 92, 0.14);
}

.home-cinematic .cards-grid .card:hover,
.home-cinematic .stats-grid .stat-card:hover,
.home-cinematic .blogs-carousel .blog-card:hover {
    transform: translateY(-4px) scale(1.002);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

/* Hero lines reveal - animation ligne par ligne */
.hero-lines-reveal {
    margin-top: var(--spacing-sm);
    max-width: 78ch; /* limite la longueur pour Ã©viter une ligne trop Ã©tirÃ©e */
}

.hero-lines-reveal .hero-line {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
    animation: heroLineReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(1.8s + var(--line-index) * 0.2s);
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
    margin-bottom: 0.25rem;
    white-space: normal; /* autorise un retour Ã  la ligne doux sur la phrase longue */
    text-wrap: balance;
}

.hero-lines-reveal .hero-line--nowrap {
    white-space: nowrap;
}

.hero-lines-reveal .hero-line--two-lines {
    max-width: 52ch;
    text-wrap: balance;
}

.hero-lines-reveal .hero-line--no-wrap {
    white-space: nowrap;
    max-width: none;
}

@media (max-width: 768px) {
    .hero-lines-reveal .hero-line--no-wrap {
        white-space: normal;
    }
}

.hero-home .hero-title {
    opacity: 1;
}

.hero-home .hero-subtitle,
.hero-home .hero-description {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-home .hero-subtitle {
    animation-delay: 0.2s;
    max-width: 960px;
    text-wrap: balance;
    font-size: clamp(1.05rem, 1vw + 0.9rem, 1.35rem);
    max-height: 4.8em;
    overflow: visible;
}

.hero-home .hero-description { animation-delay: 0.4s; }

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

/* VIAADUC tooltip Modernized */
.viaaduc-tooltip {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    color: #0ea5e9;
    font-weight: 800;
    cursor: help;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 60;
}

.viaaduc-word {
    display: inline-block;
    color: #7fe3ff;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    background-image: linear-gradient(120deg, rgba(14,165,233,0.28), rgba(14,165,233,0.08));
    background-size: 100% 45%;
    background-position: 0 90%;
    background-repeat: no-repeat;
    letter-spacing: 0.01em;
}

.viaaduc-word::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.viaaduc-tooltip:hover .viaaduc-word {
    transform: scale(1.05);
    color: #fff;
}

.viaaduc-tooltip:hover .viaaduc-word::after {
    transform: scaleX(1);
}

.viaaduc-tooltip-card {
    position: fixed;
    left: 0;
    bottom: 18px;
    transform: translateY(12px) scale(0.98);
    width: min(calc(100vw - 16px), 860px);
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
    font-weight: 500;
    border-radius: 18px;
    padding: 1rem 3rem 1rem 1.5rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
    white-space: normal;
    word-break: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 140;
}

.viaaduc-tooltip:hover .viaaduc-tooltip-card,
.viaaduc-tooltip:focus-within .viaaduc-tooltip-card,
.viaaduc-tooltip-open .viaaduc-tooltip-card,
body.viaaduc-tooltip-open .viaaduc-tooltip-card,
.viaaduc-tooltip-card:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.viaaduc-tooltip-card strong {
    font-weight: 600;
    color: #f8fafc;
}

.viaaduc-tooltip-close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.viaaduc-tooltip-close:hover,
.viaaduc-tooltip-close:focus {
    opacity: 0.7;
    outline: none;
}

@media (max-width: 992px) {
    .viaaduc-tooltip-card {
        width: calc(100vw - 8px);
        left: 0;
        bottom: 14px;
        transform: translateY(12px) scale(0.98);
    }
    
    .viaaduc-tooltip:hover .viaaduc-tooltip-card {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .viaaduc-tooltip-card {
        left: 0;
        transform: translateY(10px);
        width: calc(100vw - 40px);
        max-width: 520px;
        z-index: 120;
    }
    
    .viaaduc-tooltip:hover .viaaduc-tooltip-card {
        transform: translateY(0);
    }
    
    .viaaduc-tooltip-card::before {
        left: 20%;
    }

    .hero-subtitle-rotating .hero-subtitle-line {
        letter-spacing: 0.01em;
        filter: blur(3px);
    }
}

@keyframes viaaducTyping {
    0%,
    12% {
        width: 0;
    }
    42%,
    58% {
        width: 7.6ch;
    }
    88%,
    100% {
        width: 0;
    }
}

@keyframes viaaducCaret {
    0%,
    100% {
        border-right-color: rgba(201, 247, 255, 0.95);
    }
    50% {
        border-right-color: transparent;
    }
}

@keyframes viaaducTooltipAccentIn {
    0% {
        opacity: 0;
        transform: scale(0.78) rotate(-12deg);
        box-shadow: 0 0 0 rgba(0, 168, 232, 0);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        box-shadow:
            0 10px 22px rgba(0, 168, 232, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

@keyframes viaaducTooltipFadeUp {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes viaaducTooltipLineIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}


@keyframes heroLineReveal {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-lines-reveal .hero-line {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
}

/* ===========================
   ADMIN REBRAND 2026
   =========================== */
:root {
    --admin-r-bg: #060b18;
    --admin-r-bg-soft: #0c1327;
    --admin-r-panel: rgba(15, 23, 42, 0.74);
    --admin-r-panel-strong: rgba(15, 23, 42, 0.9);
    --admin-r-border: rgba(148, 163, 184, 0.2);
    --admin-r-border-strong: rgba(56, 189, 248, 0.42);
    --admin-r-text: #dbe7ff;
    --admin-r-muted: #9db2d4;
    --admin-r-primary: #22c1f1;
    --admin-r-primary-dark: #0f7fc0;
    --admin-r-shadow: 0 24px 48px rgba(2, 8, 23, 0.34);
}

.admin-body {
    background:
        radial-gradient(900px 480px at 8% -10%, rgba(34, 193, 241, 0.22), transparent 58%),
        radial-gradient(900px 480px at 100% 0%, rgba(59, 130, 246, 0.2), transparent 55%),
        linear-gradient(165deg, var(--admin-r-bg) 0%, var(--admin-r-bg-soft) 58%, #111a32 100%);
    color: var(--admin-r-text);
}

.admin-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(8, 15, 35, 0.96), rgba(10, 19, 40, 0.94));
    border-right: 1px solid rgba(34, 193, 241, 0.25);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.admin-sidebar-brand {
    padding: 0.35rem 0.35rem 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 0.9rem;
}

.admin-sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--admin-r-primary), var(--admin-r-primary-dark));
    box-shadow: 0 10px 22px rgba(34, 193, 241, 0.35);
}

.admin-sidebar-title {
    color: #ffffff;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.admin-sidebar-subtitle {
    color: var(--admin-r-muted);
    font-size: 0.8rem;
}

.admin-sidebar-nav {
    gap: 0.5rem;
}

.admin-nav-item {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.72rem 0.78rem;
    color: #d4ddf1;
    background: rgba(15, 23, 42, 0.22);
}

.admin-nav-item:hover {
    border-color: rgba(34, 193, 241, 0.42);
    color: #f8fcff;
    background: rgba(34, 193, 241, 0.12);
    transform: translateY(-1px);
}

.admin-nav-item.active {
    border-color: var(--admin-r-border-strong);
    background: linear-gradient(135deg, rgba(34, 193, 241, 0.2), rgba(59, 130, 246, 0.2));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(14, 116, 144, 0.25);
}

.admin-nav-icon {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
}

.admin-sidebar-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-theme-toggle,
.admin-compact-toggle,
.admin-sidebar-toggle {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.45);
    color: #dbe7ff;
}

.admin-theme-toggle:hover,
.admin-compact-toggle:hover,
.admin-sidebar-toggle:hover {
    border-color: rgba(34, 193, 241, 0.55);
    background: rgba(34, 193, 241, 0.18);
    color: #ffffff;
}

.admin-main {
    padding: 1.5rem 1.7rem;
}

.admin-hero {
    min-height: auto;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--admin-r-shadow);
    background:
        radial-gradient(460px 220px at 12% 10%, rgba(34, 193, 241, 0.2), transparent 62%),
        radial-gradient(460px 220px at 88% 0%, rgba(59, 130, 246, 0.2), transparent 60%),
        linear-gradient(150deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.9));
}

.admin-hero .hero-title {
    color: #ffffff;
    margin-top: 0;
    text-shadow: 0 8px 24px rgba(15, 23, 42, 0.45);
}

.admin-hero .hero-subtitle {
    color: #c7d7f0;
}

.admin-shell {
    padding-top: 1.5rem;
    background: transparent;
}

.admin-shell .container {
    max-width: 1280px;
}

.admin-shell h2,
.admin-shell h3,
.admin-shell h4,
.admin-shell p,
.admin-shell label,
.admin-muted,
.admin-kpi-label,
.admin-stat-label,
.admin-traffic-count {
    color: var(--admin-r-text);
}

.admin-muted,
.admin-kpi-label,
.admin-stat-label,
.admin-traffic-count {
    color: var(--admin-r-muted);
}

.admin-kpi {
    gap: 0.9rem;
}

.admin-kpi-card,
.admin-glass,
.admin-form-card,
.admin-stat-card,
.admin-card,
.admin-traffic-item,
.admin-notify-item,
.admin-toast-content {
    border: 1px solid var(--admin-r-border);
    background: var(--admin-r-panel);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 36px rgba(2, 8, 23, 0.24);
    border-radius: 16px;
}

.admin-kpi-card:hover,
.admin-glass:hover,
.admin-form-card:hover,
.admin-stat-card:hover,
.admin-card:hover,
.admin-traffic-item:hover {
    border-color: rgba(34, 193, 241, 0.5);
    box-shadow: 0 18px 44px rgba(2, 8, 23, 0.34);
    transform: translateY(-2px);
}

.admin-kpi-value,
.admin-stat-value {
    color: #f8fbff;
    text-shadow: 0 6px 18px rgba(14, 165, 233, 0.28);
}

.admin-chip {
    background: rgba(34, 193, 241, 0.18);
    border: 1px solid rgba(34, 193, 241, 0.36);
    color: #7dd3fc;
}

.admin-status {
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.45);
    color: #dbe7ff;
}

.admin-status-online {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.16);
    color: #86efac;
}

.admin-status-offline {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.admin-shell .form-input,
.admin-shell .form-textarea,
.admin-traffic-filter .form-input,
.admin-traffic-filter select {
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(2, 6, 23, 0.46);
    color: #e5edff;
    border-radius: 12px;
}

.admin-shell .form-input::placeholder,
.admin-shell .form-textarea::placeholder {
    color: rgba(159, 177, 209, 0.82);
}

.admin-shell .form-input:focus,
.admin-shell .form-textarea:focus,
.admin-traffic-filter .form-input:focus,
.admin-traffic-filter select:focus {
    border-color: rgba(34, 193, 241, 0.68);
    box-shadow: 0 0 0 3px rgba(34, 193, 241, 0.16);
    outline: none;
}

.admin-main .btn-primary {
    background: linear-gradient(135deg, var(--admin-r-primary), var(--admin-r-primary-dark));
    border-color: rgba(34, 193, 241, 0.85);
    color: #ffffff;
}

.admin-main .btn-primary:hover {
    box-shadow: 0 14px 28px rgba(14, 116, 144, 0.34);
}

.admin-main .btn-secondary,
.admin-main .btn-outline {
    background: rgba(15, 23, 42, 0.36);
    border-color: rgba(148, 163, 184, 0.38);
    color: #e3eeff;
}

.admin-main .btn-secondary:hover,
.admin-main .btn-outline:hover {
    background: rgba(34, 193, 241, 0.18);
    border-color: rgba(34, 193, 241, 0.56);
    color: #ffffff;
}

.admin-main .btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fee2e2;
}

.admin-main .btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
}

.admin-traffic-bar {
    background: rgba(148, 163, 184, 0.2);
}

.admin-traffic-bar-fill {
    background: linear-gradient(90deg, #22c1f1, #60a5fa);
}

.admin-toast.success .admin-toast-content {
    border-color: rgba(16, 185, 129, 0.5);
}

.admin-toast.error .admin-toast-content {
    border-color: rgba(239, 68, 68, 0.5);
}

.admin-theme-light .admin-body,
.admin-body.admin-theme-light {
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(14, 165, 233, 0.16), transparent 58%),
        radial-gradient(900px 420px at 98% 0%, rgba(59, 130, 246, 0.14), transparent 58%),
        linear-gradient(180deg, #f5f9ff 0%, #edf4ff 55%, #f9fbff 100%);
    color: #0f172a;
}

.admin-theme-light .admin-sidebar {
    background: rgba(255, 255, 255, 0.96);
    border-right-color: rgba(148, 163, 184, 0.35);
    box-shadow: inset -1px 0 0 rgba(15, 23, 42, 0.04);
}

.admin-theme-light .admin-sidebar-title {
    color: #0f172a;
}

.admin-theme-light .admin-sidebar-subtitle {
    color: #64748b;
}

.admin-theme-light .admin-nav-item {
    background: #ffffff;
    color: #334155;
    border-color: rgba(148, 163, 184, 0.25);
}

.admin-theme-light .admin-nav-item:hover {
    color: #0f172a;
    border-color: rgba(14, 165, 233, 0.46);
    background: #f0f9ff;
}

.admin-theme-light .admin-nav-item.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(37, 99, 235, 0.16));
    color: #0f172a;
    border-color: rgba(14, 165, 233, 0.46);
}

.admin-theme-light .admin-hero {
    background:
        radial-gradient(460px 220px at 12% 10%, rgba(14, 165, 233, 0.2), transparent 62%),
        radial-gradient(460px 220px at 88% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
        linear-gradient(160deg, #ffffff, #f2f7ff);
    border-color: rgba(148, 163, 184, 0.25);
}

.admin-theme-light .admin-hero .hero-title,
.admin-theme-light .admin-hero .hero-subtitle {
    color: #0f172a;
    text-shadow: none;
}

.admin-theme-light .admin-kpi-card,
.admin-theme-light .admin-glass,
.admin-theme-light .admin-form-card,
.admin-theme-light .admin-stat-card,
.admin-theme-light .admin-card,
.admin-theme-light .admin-traffic-item,
.admin-theme-light .admin-notify-item,
.admin-theme-light .admin-toast-content {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
}

.admin-theme-light .admin-shell h2,
.admin-theme-light .admin-shell h3,
.admin-theme-light .admin-shell h4,
.admin-theme-light .admin-shell p,
.admin-theme-light .admin-shell label,
.admin-theme-light .admin-kpi-value,
.admin-theme-light .admin-stat-value {
    color: #0f172a;
}

.admin-theme-light .admin-muted,
.admin-theme-light .admin-kpi-label,
.admin-theme-light .admin-stat-label,
.admin-theme-light .admin-traffic-count {
    color: #64748b;
}

.admin-theme-light .admin-shell .form-input,
.admin-theme-light .admin-shell .form-textarea,
.admin-theme-light .admin-traffic-filter .form-input,
.admin-theme-light .admin-traffic-filter select {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.4);
    color: #0f172a;
}

@media (max-width: 1200px) {
    .admin-layout {
        grid-template-columns: 268px minmax(0, 1fr);
    }
}

@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.26);
    }
    .admin-main {
        padding: 1rem;
    }
    .admin-hero {
        padding: 1.35rem;
        border-radius: 18px;
    }
}

@media (max-width: 768px) {
    .admin-main {
        padding: 0.85rem;
    }
    .admin-sidebar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .admin-nav-item {
        padding: 0.65rem 0.72rem;
    }
}

/* ===========================
   ADMIN V2 - TOTAL REFONTE
   =========================== */
:root {
    --admin-v2-bg-1: #020617;
    --admin-v2-bg-2: #0b1224;
    --admin-v2-bg-3: #111c36;
    --admin-v2-panel: rgba(12, 22, 42, 0.78);
    --admin-v2-panel-soft: rgba(15, 23, 42, 0.58);
    --admin-v2-border: rgba(148, 163, 184, 0.24);
    --admin-v2-title: #f8fbff;
    --admin-v2-text: #d8e6ff;
    --admin-v2-muted: #99afcf;
    --admin-v2-primary: #14b8e6;
    --admin-v2-primary-2: #3b82f6;
    --admin-v2-success: #10b981;
    --admin-v2-danger: #ef4444;
    --admin-v2-radius: 18px;
}

.admin-body.admin-v2 {
    background:
        radial-gradient(920px 460px at 12% -8%, rgba(20, 184, 230, 0.24), transparent 58%),
        radial-gradient(920px 460px at 100% 0%, rgba(59, 130, 246, 0.2), transparent 55%),
        linear-gradient(160deg, var(--admin-v2-bg-1) 0%, var(--admin-v2-bg-2) 56%, var(--admin-v2-bg-3) 100%);
    color: var(--admin-v2-text);
}

.admin-body.admin-v2::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle at center, black 52%, transparent 98%);
}

.admin-body.admin-v2 .admin-layout {
    position: relative;
    z-index: 1;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 1.1rem;
    padding: 1.1rem;
}

.admin-body.admin-v2 .admin-sidebar {
    position: sticky;
    top: 1.1rem;
    height: calc(100vh - 2.2rem);
    padding: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(6, 12, 26, 0.95), rgba(10, 19, 40, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 24px 48px rgba(2, 8, 23, 0.42);
    backdrop-filter: blur(12px);
}

.admin-body.admin-v2 .admin-sidebar-brand {
    margin-bottom: 1rem;
    padding: 0.3rem 0.25rem 1rem;
    border-bottom: 1px solid var(--admin-v2-border);
}

.admin-body.admin-v2 .admin-sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--admin-v2-primary), var(--admin-v2-primary-2));
    box-shadow: 0 10px 24px rgba(20, 184, 230, 0.35);
}

.admin-body.admin-v2 .admin-sidebar-title {
    color: #ffffff;
    font-size: 1.08rem;
    letter-spacing: 0.3px;
}

.admin-body.admin-v2 .admin-sidebar-subtitle {
    color: var(--admin-v2-muted);
    font-size: 0.8rem;
}

.admin-body.admin-v2 .admin-sidebar-nav {
    gap: 0.5rem;
}

.admin-body.admin-v2 .admin-nav-item {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0.72rem 0.8rem;
    background: rgba(15, 23, 42, 0.34);
    color: #d6e3fa;
}

.admin-body.admin-v2 .admin-nav-item:hover {
    border-color: rgba(20, 184, 230, 0.46);
    background: rgba(20, 184, 230, 0.14);
    color: #ffffff;
    transform: translateY(-1px);
}

.admin-body.admin-v2 .admin-nav-item.active {
    border-color: rgba(20, 184, 230, 0.58);
    background: linear-gradient(135deg, rgba(20, 184, 230, 0.24), rgba(59, 130, 246, 0.22));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(14, 116, 144, 0.3);
}

.admin-body.admin-v2 .admin-nav-icon {
    width: 1.72rem;
    height: 1.72rem;
    border-radius: 0.58rem;
    background: rgba(255, 255, 255, 0.1);
}

.admin-body.admin-v2 .admin-sidebar-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--admin-v2-border);
}

.admin-body.admin-v2 .admin-theme-toggle,
.admin-body.admin-v2 .admin-compact-toggle,
.admin-body.admin-v2 .admin-sidebar-toggle {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.5);
    color: #dbe7ff;
}

.admin-body.admin-v2 .admin-theme-toggle:hover,
.admin-body.admin-v2 .admin-compact-toggle:hover,
.admin-body.admin-v2 .admin-sidebar-toggle:hover {
    border-color: rgba(20, 184, 230, 0.62);
    background: rgba(20, 184, 230, 0.2);
    color: #ffffff;
}

.admin-body.admin-v2 .admin-main {
    padding: 0;
}

.admin-body.admin-v2 .admin-hero {
    min-height: auto;
    margin-bottom: 1rem;
    border-radius: 24px;
    border: 1px solid var(--admin-v2-border);
    background:
        radial-gradient(480px 220px at 10% 8%, rgba(20, 184, 230, 0.22), transparent 62%),
        radial-gradient(500px 220px at 92% 0%, rgba(59, 130, 246, 0.2), transparent 62%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.86));
    box-shadow: 0 20px 44px rgba(2, 8, 23, 0.34);
}

.admin-body.admin-v2 .admin-hero .hero-title {
    margin-top: 0;
    color: #ffffff;
    text-shadow: 0 10px 24px rgba(15, 23, 42, 0.45);
}

.admin-body.admin-v2 .admin-hero .hero-subtitle {
    color: #c8d8f3;
}

.admin-body.admin-v2 .admin-shell {
    padding-top: 0.5rem;
}

.admin-body.admin-v2 .admin-shell .container {
    max-width: 1320px;
}

.admin-body.admin-v2 .admin-shell-header {
    border: 1px solid var(--admin-v2-border);
    background: var(--admin-v2-panel-soft);
    border-radius: var(--admin-v2-radius);
    padding: 1rem 1.2rem;
    backdrop-filter: blur(10px);
}

.admin-body.admin-v2 .admin-kpi {
    gap: 0.95rem;
}

.admin-body.admin-v2 .admin-kpi-card,
.admin-body.admin-v2 .admin-glass,
.admin-body.admin-v2 .admin-form-card,
.admin-body.admin-v2 .admin-stat-card,
.admin-body.admin-v2 .admin-card,
.admin-body.admin-v2 .admin-traffic-item,
.admin-body.admin-v2 .admin-notify-item,
.admin-body.admin-v2 .admin-toast-content {
    border: 1px solid var(--admin-v2-border);
    background: var(--admin-v2-panel);
    border-radius: var(--admin-v2-radius);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 36px rgba(2, 8, 23, 0.28);
}

.admin-body.admin-v2 .admin-kpi-card:hover,
.admin-body.admin-v2 .admin-glass:hover,
.admin-body.admin-v2 .admin-form-card:hover,
.admin-body.admin-v2 .admin-stat-card:hover,
.admin-body.admin-v2 .admin-card:hover,
.admin-body.admin-v2 .admin-traffic-item:hover {
    border-color: rgba(20, 184, 230, 0.48);
    box-shadow: 0 20px 42px rgba(2, 8, 23, 0.36);
    transform: translateY(-2px);
}

.admin-body.admin-v2 .admin-shell h1,
.admin-body.admin-v2 .admin-shell h2,
.admin-body.admin-v2 .admin-shell h3,
.admin-body.admin-v2 .admin-shell h4,
.admin-body.admin-v2 .admin-shell h5,
.admin-body.admin-v2 .admin-shell h6,
.admin-body.admin-v2 .admin-card-title,
.admin-body.admin-v2 .admin-preview-title,
.admin-body.admin-v2 .admin-kpi-value,
.admin-body.admin-v2 .admin-stat-value,
.admin-body.admin-v2 .admin-traffic-page {
    color: var(--admin-v2-title);
}

.admin-body.admin-v2 .admin-shell p,
.admin-body.admin-v2 .admin-shell label,
.admin-body.admin-v2 .admin-card-text,
.admin-body.admin-v2 .admin-preview-excerpt,
.admin-body.admin-v2 .admin-form-author,
.admin-body.admin-v2 .admin-author-badge,
.admin-body.admin-v2 .admin-date-badge {
    color: var(--admin-v2-text);
}

.admin-body.admin-v2 .admin-muted,
.admin-body.admin-v2 .admin-kpi-label,
.admin-body.admin-v2 .admin-stat-label,
.admin-body.admin-v2 .admin-traffic-count,
.admin-body.admin-v2 .admin-preview-extra {
    color: var(--admin-v2-muted);
}

.admin-body.admin-v2 .admin-kpi-value,
.admin-body.admin-v2 .admin-stat-value {
    text-shadow: 0 6px 18px rgba(20, 184, 230, 0.25);
}

.admin-body.admin-v2 .admin-chip {
    background: rgba(20, 184, 230, 0.18);
    border: 1px solid rgba(20, 184, 230, 0.36);
    color: #7dd3fc;
}

.admin-body.admin-v2 .admin-status {
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(15, 23, 42, 0.42);
    color: #dbe7ff;
}

.admin-body.admin-v2 .admin-status-online {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.18);
    color: #86efac;
}

.admin-body.admin-v2 .admin-status-offline {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.admin-body.admin-v2 .admin-shell .form-input,
.admin-body.admin-v2 .admin-shell .form-textarea,
.admin-body.admin-v2 .admin-traffic-filter .form-input,
.admin-body.admin-v2 .admin-traffic-filter select {
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: rgba(2, 6, 23, 0.52);
    color: #e8f0ff;
    border-radius: 12px;
}

.admin-body.admin-v2 .admin-shell .form-input::placeholder,
.admin-body.admin-v2 .admin-shell .form-textarea::placeholder {
    color: rgba(160, 178, 210, 0.86);
}

.admin-body.admin-v2 .admin-shell .form-input:focus,
.admin-body.admin-v2 .admin-shell .form-textarea:focus,
.admin-body.admin-v2 .admin-traffic-filter .form-input:focus,
.admin-body.admin-v2 .admin-traffic-filter select:focus {
    border-color: rgba(20, 184, 230, 0.7);
    box-shadow: 0 0 0 3px rgba(20, 184, 230, 0.16);
    outline: none;
}

.admin-body.admin-v2 .admin-main .btn-primary {
    background: linear-gradient(135deg, var(--admin-v2-primary), var(--admin-v2-primary-2));
    border-color: rgba(20, 184, 230, 0.85);
    color: #ffffff;
}

.admin-body.admin-v2 .admin-main .btn-primary:hover {
    box-shadow: 0 14px 28px rgba(14, 116, 144, 0.34);
}

.admin-body.admin-v2 .admin-main .btn-secondary,
.admin-body.admin-v2 .admin-main .btn-outline {
    background: rgba(15, 23, 42, 0.34);
    border-color: rgba(148, 163, 184, 0.42);
    color: #e5eeff;
}

.admin-body.admin-v2 .admin-main .btn-secondary:hover,
.admin-body.admin-v2 .admin-main .btn-outline:hover {
    background: rgba(20, 184, 230, 0.17);
    border-color: rgba(20, 184, 230, 0.6);
    color: #ffffff;
}

.admin-body.admin-v2 .admin-main .btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
}

.admin-body.admin-v2 .admin-main .btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.64);
}

.admin-body.admin-v2 .admin-traffic-bar {
    background: rgba(148, 163, 184, 0.22);
}

.admin-body.admin-v2 .admin-traffic-bar-fill {
    background: linear-gradient(90deg, var(--admin-v2-primary), #60a5fa);
}

.admin-body.admin-v2 .admin-toast.success .admin-toast-content {
    border-color: rgba(16, 185, 129, 0.55);
}

.admin-body.admin-v2 .admin-toast.error .admin-toast-content {
    border-color: rgba(239, 68, 68, 0.55);
}

.admin-body.admin-v2.admin-theme-light {
    background:
        radial-gradient(900px 420px at 12% -8%, rgba(20, 184, 230, 0.16), transparent 58%),
        radial-gradient(900px 420px at 100% 0%, rgba(59, 130, 246, 0.14), transparent 58%),
        linear-gradient(180deg, #f7fbff 0%, #edf4ff 55%, #fbfcff 100%);
    color: #0f172a;
}

.admin-body.admin-v2.admin-theme-light .admin-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(148, 163, 184, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 16px 30px rgba(15, 23, 42, 0.11);
}

.admin-body.admin-v2.admin-theme-light .admin-sidebar-title,
.admin-body.admin-v2.admin-theme-light .admin-shell h1,
.admin-body.admin-v2.admin-theme-light .admin-shell h2,
.admin-body.admin-v2.admin-theme-light .admin-shell h3,
.admin-body.admin-v2.admin-theme-light .admin-shell h4,
.admin-body.admin-v2.admin-theme-light .admin-kpi-value,
.admin-body.admin-v2.admin-theme-light .admin-stat-value,
.admin-body.admin-v2.admin-theme-light .admin-card-title,
.admin-body.admin-v2.admin-theme-light .admin-traffic-page {
    color: #0f172a;
    text-shadow: none;
}

.admin-body.admin-v2.admin-theme-light .admin-sidebar-subtitle,
.admin-body.admin-v2.admin-theme-light .admin-muted,
.admin-body.admin-v2.admin-theme-light .admin-kpi-label,
.admin-body.admin-v2.admin-theme-light .admin-stat-label,
.admin-body.admin-v2.admin-theme-light .admin-traffic-count {
    color: #64748b;
}

.admin-body.admin-v2.admin-theme-light .admin-nav-item {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.3);
    color: #334155;
}

.admin-body.admin-v2.admin-theme-light .admin-nav-item:hover {
    background: #f0f9ff;
    border-color: rgba(14, 165, 233, 0.46);
    color: #0f172a;
}

.admin-body.admin-v2.admin-theme-light .admin-nav-item.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(37, 99, 235, 0.16));
    border-color: rgba(14, 165, 233, 0.5);
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.14);
}

.admin-body.admin-v2.admin-theme-light .admin-hero {
    background:
        radial-gradient(480px 220px at 10% 8%, rgba(14, 165, 233, 0.2), transparent 62%),
        radial-gradient(500px 220px at 92% 0%, rgba(59, 130, 246, 0.16), transparent 62%),
        linear-gradient(160deg, #ffffff, #f2f7ff);
}

.admin-body.admin-v2.admin-theme-light .admin-hero .hero-title,
.admin-body.admin-v2.admin-theme-light .admin-hero .hero-subtitle {
    color: #0f172a;
}

.admin-body.admin-v2.admin-theme-light .admin-kpi-card,
.admin-body.admin-v2.admin-theme-light .admin-glass,
.admin-body.admin-v2.admin-theme-light .admin-form-card,
.admin-body.admin-v2.admin-theme-light .admin-stat-card,
.admin-body.admin-v2.admin-theme-light .admin-card,
.admin-body.admin-v2.admin-theme-light .admin-traffic-item,
.admin-body.admin-v2.admin-theme-light .admin-notify-item,
.admin-body.admin-v2.admin-theme-light .admin-toast-content,
.admin-body.admin-v2.admin-theme-light .admin-shell-header {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

.admin-body.admin-v2.admin-theme-light .admin-shell .form-input,
.admin-body.admin-v2.admin-theme-light .admin-shell .form-textarea,
.admin-body.admin-v2.admin-theme-light .admin-traffic-filter .form-input,
.admin-body.admin-v2.admin-theme-light .admin-traffic-filter select {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.4);
    color: #0f172a;
}

.admin-body.admin-v2.admin-collapsed .admin-layout {
    grid-template-columns: 90px minmax(0, 1fr);
}

@media (max-width: 1280px) {
    .admin-body.admin-v2 .admin-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

@media (max-width: 1024px) {
    .admin-body.admin-v2 .admin-layout {
        grid-template-columns: 1fr;
        padding: 0.7rem;
    }
    .admin-body.admin-v2 .admin-sidebar {
        position: relative;
        top: 0;
        height: auto;
        border-radius: 18px;
    }
    .admin-body.admin-v2 .admin-main {
        padding-top: 0.15rem;
    }
    .admin-body.admin-v2 .admin-hero {
        border-radius: 18px;
    }
}

@media (max-width: 768px) {
    .admin-body.admin-v2 .admin-layout {
        gap: 0.7rem;
        padding: 0.55rem;
    }
    .admin-body.admin-v2 .admin-sidebar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }
    .admin-body.admin-v2 .admin-nav-item {
        padding: 0.66rem 0.72rem;
    }
}

/* Login refresh */
.admin-login-v2 {
    background:
        radial-gradient(780px 420px at 10% -10%, rgba(20, 184, 230, 0.26), transparent 58%),
        radial-gradient(760px 420px at 92% 0%, rgba(59, 130, 246, 0.2), transparent 56%),
        linear-gradient(155deg, #060b18 0%, #0f172a 58%, #1b2a4d 100%);
}

.admin-login-v2 .admin-login-hero {
    background: transparent;
}

.admin-login-v2 .admin-login-card {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(12px);
    box-shadow: 0 28px 54px rgba(2, 8, 23, 0.38);
}

.admin-login-v2 .admin-login-header h2,
.admin-login-v2 .admin-login-header p,
.admin-login-v2 .form-label {
    color: #dbe7ff;
}

.admin-login-v2 .admin-login-badge {
    background: linear-gradient(135deg, #14b8e6, #3b82f6);
}

.admin-login-v2 .form-input {
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: rgba(2, 6, 23, 0.52);
    color: #eff6ff;
}

.admin-login-v2 .form-input::placeholder {
    color: rgba(186, 201, 227, 0.82);
}

.admin-login-v2 .form-input:focus {
    border-color: rgba(20, 184, 230, 0.72);
    box-shadow: 0 0 0 3px rgba(20, 184, 230, 0.16);
}

.admin-login-v2 .btn-primary {
    background: linear-gradient(135deg, #14b8e6, #3b82f6);
    border-color: rgba(20, 184, 230, 0.9);
    color: #ffffff;
}


/* Thématiques d'expertise */
.thema-hero {
    padding-top: var(--spacing-xxl);
    text-align: center;
}

.thema-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin: var(--spacing-sm) 0;
}

.thema-lead {
    max-width: 760px;
    margin: 0 auto;
    color: #475569;
}

.thema-section {
    padding-top: var(--spacing-xl);
}

.thema-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: clamp(1.5rem, 2vw, 2.5rem);
    align-items: start;
}

.thema-sidebar {
    position: sticky;
    top: 110px;
    background: #fff;
    border: 1px solid rgba(26, 58, 92, 0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
}

.thema-sidebar-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.thema-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
}

.thema-list a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: var(--border-radius-md);
    color: #0f172a;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.thema-list a:hover,
.thema-list a:focus-visible {
    border-color: rgba(0, 168, 232, 0.22);
    background: rgba(0, 168, 232, 0.08);
    outline: none;
}

.thema-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.thema-card {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid rgba(26, 58, 92, 0.08);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

.thema-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.thema-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 168, 232, 0.12);
    color: #005f95;
    font-weight: 600;
    font-size: 0.85rem;
}

.thema-card-title {
    font-size: 1.45rem;
    margin: 0;
}

.thema-description {
    color: #334155;
    margin: 0 0 var(--spacing-sm) 0;
}

.thema-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
    display: grid;
    gap: 0.35rem;
}

.thema-bullets li {
    position: relative;
    padding-left: 1.4rem;
    color: #0f172a;
}

.thema-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.thema-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.95rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(26, 58, 92, 0.12);
    background: #fff;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.cta-btn:hover,
.cta-btn:focus-visible {
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.14), rgba(46, 90, 140, 0.1));
    border-color: rgba(0, 168, 232, 0.35);
    color: #0f172a;
    outline: none;
}

@media (max-width: 1024px) {
    .thema-layout {
        grid-template-columns: 1fr;
    }

    .thema-sidebar {
        position: static;
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }

    .thema-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .thema-card {
        padding: var(--spacing-md);
    }

    .thema-cta {
        flex-direction: column;
    }
}
/* CTA visibles pour les thématiques d'expertise */
.expertise-cta-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.9rem;
    margin-top: var(--spacing-lg);
}

.expertise-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(0, 168, 232, 0.45);
    background: radial-gradient(circle at 20% 20%, rgba(0,168,232,0.18), rgba(46,90,140,0.12)), #fff;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(0, 168, 232, 0.18);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.expertise-cta:hover,
.expertise-cta:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 168, 232, 0.26);
    background: radial-gradient(circle at 20% 20%, rgba(0,168,232,0.26), rgba(46,90,140,0.18)), #fff;
    outline: none;
}

.expertise-cta:active {
    transform: translateY(0);
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: rgba(0, 168, 232, 0.16);
    font-size: 1.1rem;
}

.cta-text {
    line-height: 1.25;
}
/* CTA thématiques – version accentuée */
.expertise-cta-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
    margin-top: calc(var(--spacing-lg) + 0.25rem);
}

.expertise-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.1rem;
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(0, 168, 232, 0.55);
    background: linear-gradient(135deg, rgba(0,168,232,0.18), rgba(46,90,140,0.12)), #fff;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(0, 168, 232, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    animation: ctaPop 0.45s ease forwards;
    opacity: 0;
}

.expertise-cta:nth-child(1) { animation-delay: 0.05s; }
.expertise-cta:nth-child(2) { animation-delay: 0.12s; }
.expertise-cta:nth-child(3) { animation-delay: 0.2s; }

.expertise-cta:hover,
.expertise-cta:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 46px rgba(0, 168, 232, 0.28);
    background: linear-gradient(135deg, rgba(0,168,232,0.26), rgba(46,90,140,0.18)), #fff;
    outline: none;
}

.expertise-cta:active { transform: translateY(-1px); }

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(0, 168, 232, 0.18);
    font-size: 1.15rem;
}

.cta-text {
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
}

.cta-text::after {
    content: "?";
    margin-left: 0.45rem;
    transition: transform 160ms ease;
}

.expertise-cta:hover .cta-text::after,
.expertise-cta:focus-visible .cta-text::after {
    transform: translateX(4px);
}

@keyframes ctaPop {
    0% { transform: translateY(6px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
/* CTA thématiques – override pro */
.expertise-cta-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: calc(var(--spacing-lg) + 0.35rem);
}

.expertise-cta {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.05rem 1.25rem;
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(0, 168, 232, 0.65);
    background: #0f1f38;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(0, 168, 232, 0.22);
    transition: transform 220ms ease, box-shadow 220ms ease, color 220ms ease, border-color 220ms ease;
    animation: ctaLiftIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards, ctaGlow 2.2s ease-in-out infinite 0.8s;
    opacity: 0;
    isolation: isolate;
    z-index: 0;
}

.expertise-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,168,232,0.16), rgba(46,90,140,0.14));
    opacity: 0.9;
    transition: opacity 200ms ease;
    z-index: 0;
}

.expertise-cta::after {
    content: '';
    position: absolute;
    width: 160%;
    height: 140%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.28) 45%, transparent 62%);
    top: -20%;
    left: -40%;
    transform: translateX(-50%);
    transition: transform 360ms ease;
    pointer-events: none;
    z-index: 0;
}

.expertise-cta:hover::after,
.expertise-cta:focus-visible::after {
    transform: translateX(55%);
}

.expertise-cta:hover,
.expertise-cta:focus-visible {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 24px 58px rgba(0, 168, 232, 0.32);
    color: #e8f5ff;
    border-color: rgba(0, 168, 232, 0.9);
    outline: none;
}

.expertise-cta:active { transform: translateY(-2px); }

.expertise-cta:nth-child(1) { animation-delay: 0.06s; }
.expertise-cta:nth-child(2) { animation-delay: 0.16s; }
.expertise-cta:nth-child(3) { animation-delay: 0.26s; }

.cta-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 1.15rem;
}

.cta-text {
    position: relative;
    z-index: 1;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
}

.cta-text::after {
    content: "?";
    margin-left: 0.5rem;
    transition: transform 180ms ease;
}

.expertise-cta:hover .cta-text::after,
.expertise-cta:focus-visible .cta-text::after {
    transform: translateX(5px);
}

@keyframes ctaGlow {
    0%   { box-shadow: 0 18px 38px rgba(0, 168, 232, 0.22); }
    50%  { box-shadow: 0 24px 58px rgba(0, 168, 232, 0.32); }
    100% { box-shadow: 0 18px 38px rgba(0, 168, 232, 0.22); }
}

/* CTA thématiques – fix visibilité/hover */
.expertise-cta {
    opacity: 1 !important;
    filter: none !important;
    color: #fff !important;
}
.expertise-cta::before {
    opacity: 0.28 !important;
}
.expertise-cta::after {
    opacity: 0.5 !important;
}
.expertise-cta:hover,
.expertise-cta:focus-visible {
    background: #10294d !important;
    color: #ffffff !important;
    opacity: 1 !important;
}
.expertise-cta:hover::before,
.expertise-cta:focus-visible::before {
    opacity: 0.36 !important;
}
.expertise-cta:hover::after,
.expertise-cta:focus-visible::after {
    opacity: 0.65 !important;
    transform: translateX(40%) !important;
}
/* CTA thématiques – visibilité forcée */
.expertise-cta {
    opacity: 1 !important;
    animation-duration: 0.55s, 2.2s;
}

/* Fond pro et moderne pour la page expertises */
.expertise-page {
    min-height: 100vh;
    background:
        radial-gradient(1200px 520px at 8% 8%, rgba(0, 168, 232, 0.10), transparent 55%),
        radial-gradient(1100px 500px at 88% -5%, rgba(46, 90, 140, 0.10), transparent 55%),
        linear-gradient(135deg, #f3f6fb 0%, #ffffff 45%, #eef3fa 100%);
}

/* Animations thématiques menu */
.expertise-menu-item {
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.expertise-menu-item:hover,
.expertise-menu-item:focus-visible {
    transform: translateX(6px);
    box-shadow: 0 10px 24px rgba(26, 58, 92, 0.12);
    background: linear-gradient(135deg, rgba(0,168,232,0.14), rgba(46,90,140,0.12));
    color: #0f172a;
    border-left-color: var(--color-accent);
}
.expertise-menu-item.highlight-trigger {
    animation: menuPunch 0.85s cubic-bezier(0.2, 0.9, 0.2, 1) both;
    box-shadow: 0 16px 36px rgba(14, 116, 204, 0.25);
    background: linear-gradient(135deg, rgba(0,168,232,0.2), rgba(46,90,140,0.18));
    border-left-color: var(--color-accent);
}
.expertise-menu-item.highlight-trigger .expertise-menu-badge {
    animation: badgePulse 0.85s ease both;
}
.expertise-menu-item.highlight-trigger .expertise-menu-icon {
    animation: iconJolt 0.85s ease both;
}

@keyframes menuPunch {
    0% { transform: translateX(0) scale(1); filter: brightness(1); }
    28% { transform: translateX(12px) scale(1.04); filter: brightness(1.05); }
    55% { transform: translateX(-4px) scale(0.99); }
    100% { transform: translateX(0) scale(1); filter: brightness(1); }
}
@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(14, 116, 204, 0); }
    35% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(14, 116, 204, 0.18); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(14, 116, 204, 0); }
}
@keyframes iconJolt {
    0% { transform: translateX(0) rotate(0); }
    35% { transform: translateX(4px) rotate(-8deg); }
    70% { transform: translateX(-2px) rotate(6deg); }
    100% { transform: translateX(0) rotate(0); }
}

/* Animations douces sur sections de la page expertise */
.expertise-page .section {
    opacity: 0;
    transform: translateY(14px);
    animation: sectionFade 0.7s ease forwards;
}
.expertise-page .section:nth-of-type(2) { animation-delay: 0.05s; }
.expertise-page .section:nth-of-type(3) { animation-delay: 0.1s; }
.expertise-page .section:nth-of-type(4) { animation-delay: 0.15s; }

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

to   { opacity: 1; transform: translateY(0); }
}

.about-cta-full {
    width: 100%;
    background: #2A3062;
    padding: clamp(2.5rem, 3vw + 1rem, 4rem) 0;
    margin: var(--spacing-xl) 0 0;
}

.about-cta-full__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #e2e8f0;
    display: grid;
    gap: var(--spacing-sm);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-cta-full__inner.in-view {
    opacity: 1;
    transform: translateY(0);
}

.about-cta-full__inner .about-cta-band__title {
    color: #fff;
    font-size: clamp(1.4rem, 1vw + 1.2rem, 1.8rem);
    font-weight: 800;
    margin: 0;
}

.about-cta-full__inner .about-cta-band__actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.about-cta-full__inner .about-cta-band__actions .btn {
    box-shadow: 0 12px 28px rgba(14,165,233,0.3);
    background: var(--color-accent);
    color: #fff;
    border: none;
}

.about-check {
    display: inline-block;
    color: #0ea5e9;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    margin-right: 0.35rem;
}

.about-list-cards {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: var(--spacing-md) 0;
    list-style: none;
}

.about-list-cards .about-list-item {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    padding: 0.95rem 1.15rem;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 1.02rem;
    line-height: 1.55;
}

.about-list-cards .about-list-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12), 0 6px 14px rgba(15, 23, 42, 0.08);
}

.about-list-cards .about-emoji {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}
