/* ============================================
   STKTT - Transport et Transit
   Design inspiré de PrimeBlocks
   ============================================ */

:root {
    /* ===== Palette de marque — Bleu océan + Teal, plus vif ===== */
    --primary-color: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-darker: #1E3A8A;
    --primary-light: #DBEAFE;
    --secondary-color: #06B6D4;
    --secondary-dark: #0891B2;
    --success-color: #10B981;
    --accent-color: #F59E0B;
    --danger-color: #EF4444;

    /* Teintes lumineuses pour dégradés et halos */
    --sky: #0EA5E9;
    --cyan: #22D3EE;
    --teal: #14B8A6;

    /* ===== Dégradés (multi-stops, plus lumineux) ===== */
    --gradient-primary: linear-gradient(135deg, #1D4ED8 0%, #2563EB 55%, #1E3A8A 100%);
    --gradient-brand: linear-gradient(135deg, #2563EB 0%, #0EA5E9 50%, #06B6D4 100%);
    --gradient-teal: linear-gradient(135deg, #06B6D4 0%, #0EA5E9 50%, #0891B2 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-hero: linear-gradient(135deg, #1E3A8A 0%, #2563EB 45%, #0891B2 100%);

    /* ===== Neutres (bleutés, ardoise) ===== */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #0F172A;
    --white: #FFFFFF;

    /* ===== Typographie ===== */
    --font-sans: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-display: 'Poppins', 'Segoe UI', Tahoma, sans-serif;

    /* ===== Rayons (plus doux et modernes) ===== */
    --radius-sm: 0.6rem;
    --radius: 0.85rem;
    --radius-md: 1.1rem;
    --radius-lg: 1.4rem;
    --radius-xl: 1.9rem;

    /* ===== Ombres douces, étagées et teintées ===== */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 2px 10px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.10), 0 4px 10px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.14), 0 10px 20px rgba(15, 23, 42, 0.07);
    --shadow-primary: 0 14px 30px rgba(37, 99, 235, 0.34);
    --shadow-teal: 0 14px 30px rgba(6, 182, 212, 0.32);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="dark"] {
    color-scheme: dark;
    --white: #0F172A;
    --gray-50: #111827;
    --gray-100: #1F2937;
    --gray-200: #374151;
    --gray-300: #4B5563;
    --gray-400: #6B7280;
    --gray-500: #9CA3AF;
    --gray-600: #CBD5E1;
    --gray-700: #E2E8F0;
    --gray-800: #F1F5F9;
    --gray-900: #F8FAFC;
    --primary-light: rgba(37, 99, 235, 0.18);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.45), 0 6px 12px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-700);
    background-color: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--gray-900);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body[data-theme="dark"] header,
body[data-theme="dark"] .card,
body[data-theme="dark"] .form-card,
body[data-theme="dark"] .table-container,
body[data-theme="dark"] .navbar,
body[data-theme="dark"] footer {
    background: #0F172A;
}

body[data-theme="dark"] p,
body[data-theme="dark"] label,
body[data-theme="dark"] li,
body[data-theme="dark"] .card-text,
body[data-theme="dark"] .footer-section ul li,
body[data-theme="dark"] .section-title p {
    color: var(--gray-600);
}

body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
    background: #111827;
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.theme-toggle-item {
    display: flex;
    align-items: center;
}

header .navbar ul .theme-toggle-item {
    margin-left: 0.25rem;
}

header .navbar ul .theme-toggle-item .theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.theme-toggle-btn:hover {
    transform: translateY(-1px);
}

/* ============= Typographie ============= */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============= Container ============= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============= Header & Navigation ============= */
header {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Le flou est porté par un pseudo-élément : un backdrop-filter posé
   directement sur le header fait rogner le menu déroulant mobile
   sur WebKit (Safari et Chrome iOS) */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    z-index: -1;
    pointer-events: none;
}

body[data-theme="dark"] header {
    background: rgba(15, 23, 42, 0.82) !important;
    border-bottom-color: var(--gray-200);
}

header .container {
    position: relative;
}

/* ============= Site Announcement (fixed marquee) ============= */
.site-announcement {
    --height: 48px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: block;
    padding: 0.4rem 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    z-index: 1100;
}
.site-announcement .ann-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-announcement .marquee { overflow: hidden; white-space: nowrap; }
.site-announcement .marquee .ann-track { display: inline-block; padding-left: 100%; animation: marquee 22s linear infinite; }
.site-announcement .ann-item { display: inline-block; margin-right: 3rem; color: #fff; font-weight: 700; white-space: nowrap; }
.site-announcement .marquee:hover .ann-track { animation-play-state: paused; }

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.mobile-nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    background: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    padding: 0;
}

.mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--gray-900);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--primary-color);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.logo i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
    color: #fff;
    background: var(--gradient-brand);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-primary);
}

.logo span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

nav a .nav-icon {
    display: none;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--primary-color);
}

nav a.active::after {
    width: 100%;
}

.btn-quick-action {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.25);
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    font-weight: 700;
}

.btn-quick-action:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .navbar {
        gap: 1rem;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    header .navbar {
        width: 100%;
        position: relative;
    }

    header .navbar ul {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap; /* empêche le passage en 2e colonne (hérité de nav ul) */
        gap: 0.55rem;
        align-items: stretch;
        width: 100%;
        padding: 0.9rem;
        max-height: 70vh;
        overflow-y: auto;
        overflow-x: hidden; /* jamais de défilement horizontal */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: 1rem;
        box-shadow: var(--shadow-lg);
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 0.5rem);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    header.nav-open .navbar ul {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    header .navbar ul li {
        width: 100%;
        flex: 0 0 auto; /* garde la hauteur des boutons, le surplus défile */
    }

    header .navbar ul a,
    header .navbar ul button {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.6rem;
        width: 100%;
        min-height: 46px;
        padding: 0.65rem 0.9rem;
        border-radius: 0.8rem;
        border: 1px solid var(--gray-200);
        background: var(--gray-50);
        box-shadow: none;
        margin: 0;
    }

    header .navbar ul a .nav-text,
    header .navbar ul button .nav-text {
        display: inline;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    header .navbar ul a .nav-icon {
        display: inline-flex;
        width: 1.25rem;
        justify-content: center;
        font-size: 1.05rem;
    }

    header .navbar ul button .nav-icon {
        display: inline-flex;
        width: 1.25rem;
        justify-content: center;
        font-size: 1.05rem;
    }

    header .navbar ul a.btn-quick-action,
    header .navbar ul a.btn-outline,
    header .navbar ul button.btn-outline {
        justify-content: center;
        font-weight: 700;
    }

    header .navbar ul a.btn-quick-action,
    header .navbar ul button.btn-quick-action {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        color: var(--white);
        border: 2px solid var(--primary-color);
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
    }

    header .navbar ul a.btn-outline,
    header .navbar ul button.btn-outline {
        background: var(--white);
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }

    header .navbar ul li:last-child {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    header .navbar ul li:last-child a {
        margin-left: 0 !important;
    }

    header .navbar ul li:last-child a {
        margin-left: 0 !important;
    }

    header .navbar ul .theme-toggle-item {
        margin-left: 0;
    }
}

/* ============= Buttons ============= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    outline: none;
    line-height: 1.2;
}

.btn:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.38);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    background: var(--gradient-teal);
    color: var(--white);
    box-shadow: var(--shadow-teal);
}

.btn-secondary:hover {
    box-shadow: 0 16px 32px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============= Hero Section ============= */
/* Fond uni = la couleur de la palette choisie (sans dégradé ni motif) */
.hero {
    position: relative;
    background: var(--primary-color);
    color: var(--white);
    padding: 120px 0 130px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

/* Décorations retirées : fond plat, uniforme */
.hero::before,
.hero::after {
    content: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    margin-bottom: 1.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #E0F2FE;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: slideInDown 0.8s ease;
}

.hero-badge i { color: color-mix(in srgb, var(--secondary-color) 55%, white); }

.hero h1 {
    color: var(--white);
    font-size: clamp(2.25rem, 5.2vw, 4rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
    animation: slideInDown 0.8s ease;
}

.hero h1 .accent {
    background: linear-gradient(120deg, color-mix(in srgb, var(--secondary-color) 45%, white) 0%, color-mix(in srgb, var(--primary-color) 35%, white) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    max-width: 640px;
    margin: 0 auto 2.25rem;
    animation: slideInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.4s both;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Bandeau de confiance sous le hero */
.hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 3.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    animation: slideInUp 0.8s ease 0.6s both;
}

.hero-trust .trust-item {
    text-align: center;
}

.hero-trust .trust-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-trust .trust-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Vague décorative en bas du hero */
.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 60px;
    z-index: 0;
    color: var(--white);
}

body[data-theme="dark"] .hero-wave { color: #0F172A; }

/* ============= Blue Section with Forced White Text ============= */
.blue-section {
    color: #FFFFFF !important;
}

.blue-section h1,
.blue-section h2,
.blue-section h3,
.blue-section h4,
.blue-section h5,
.blue-section h6,
.blue-section p,
.blue-section span,
.blue-section label,
.blue-section li,
.blue-section small,
.blue-section strong,
.blue-section em,
.blue-section blockquote,
.blue-section a {
    color: #FFFFFF !important;
}

/* ============= Cards ============= */
.card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

/* Liseré dégradé qui apparaît au survol */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 2;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    padding: 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.card-text {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* ============= Grid ============= */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

@media (max-width: 768px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============= Forms ============= */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============= Services Section ============= */
.services-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 2rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* ============= Features ============= */
.feature-box {
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    background: var(--gray-50);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.feature-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ============= Testimonials ============= */
.testimonials-section {
    padding: 80px 0;
    background: var(--white);
}

.testimonial-card {
    padding: 2rem;
    border-radius: 0.75rem;
    background: var(--gray-50);
    border-left: 4px solid var(--accent-color);
    margin-bottom: 2rem;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--gray-900);
}

.testimonial-company {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.stars {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* ============= Footer ============= */
footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--gray-400);
}

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35);
    z-index: 3000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    color: var(--white);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.45);
}

/* ============= Utilities ============= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: var(--gray-600); }
.text-danger { color: var(--danger-color); }

.bg-primary { background: var(--primary-color); color: var(--white); }
.bg-secondary { background: var(--secondary-color); color: var(--white); }
.bg-light { background: var(--gray-100); }
.bg-dark { background: var(--gray-900); color: var(--white); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.rounded { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.hidden { display: none !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { justify-content: center; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ============= Animations ============= */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============= About Section ============= */
.about-section {
    background: var(--gray-50);
    padding: 80px 0;
}

/* ============= Home Carousel ============= */
.home-carousel-section {
    padding: 20px 0 80px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.home-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.home-carousel-track {
    display: flex;
    /* Pas de transition : le défilement continu est piloté par JS (requestAnimationFrame) */
    will-change: transform;
}

/* Défilement continu : les flèches n'ont plus d'utilité */
.home-carousel-btn {
    display: none !important;
}

.home-carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-carousel-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: clamp(280px, 54vw, 520px);
    max-height: 72vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0F172A 0%, #1F2937 100%);
}

.home-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transform: none;
    animation: none;
}

.home-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.45);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.home-carousel-btn:hover {
    background: rgba(17, 24, 39, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.home-carousel-prev {
    left: 1rem;
}

.home-carousel-next {
    right: 1rem;
}

.home-carousel-empty {
    background: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.home-announcements-section {
    padding: 0 0 80px;
    background: var(--white);
}

.home-announcements {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.home-announcements-track {
    display: flex;
    transition: transform 0.65s ease;
    will-change: transform;
}

.home-announcement-card {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 1.25rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 6px solid transparent;
    background: var(--white);
}

.home-announcement-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    font-size: 1.25rem;
}

.home-announcement-content h3 {
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
}

.home-announcement-content p {
    margin: 0;
    color: inherit;
    opacity: 0.92;
}

.home-announcements-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.45);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.home-announcements-btn:hover {
    background: rgba(17, 24, 39, 0.7);
    transform: translateY(-50%) scale(1.05);
}

.home-announcements-prev { left: 0.75rem; }
.home-announcements-next { right: 0.75rem; }

.home-announcement-success {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border-left-color: #10B981;
}

.home-announcement-warning {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #78350F;
    border-left-color: #F59E0B;
}

.home-announcement-danger {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #7F1D1D;
    border-left-color: #EF4444;
}

.home-announcement-info {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #0C2340;
    border-left-color: var(--primary-color);
}

body[data-theme="dark"] .home-announcements,
body[data-theme="dark"] .home-announcement-card,
body[data-theme="dark"] .home-announcements-section {
    background: #0F172A;
}

body[data-theme="dark"] .home-announcement-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.12) 100%);
    color: #D1FAE5;
}

body[data-theme="dark"] .home-announcement-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.12) 100%);
    color: #FDE68A;
}

body[data-theme="dark"] .home-announcement-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.12) 100%);
    color: #FECACA;
}

body[data-theme="dark"] .home-announcement-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.12) 100%);
    color: #DBEAFE;
}

@keyframes homeCarouselFloat {
    from { transform: scale(1.02) translateY(0); }
    to { transform: scale(1.05) translateY(-4px); }
}

body[data-theme="dark"] .home-carousel,
body[data-theme="dark"] .home-carousel-empty {
    background: #0F172A;
    border-color: var(--gray-200);
}

body[data-theme="dark"] .home-carousel-section {
    background: linear-gradient(180deg, #111827 0%, #0F172A 100%);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.about-content {
    padding-right: 1rem;
}

.about-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-content .btn {
    margin-top: 1rem;
}

.stats-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.stats-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.stats-header {
    justify-content: center;
}

.stats-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stats-header i {
    margin-right: 0.75rem;
}

.stats-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--gray-900);
}

.stats-grid {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem;
    border-radius: 0.75rem;
    background: var(--gray-50);
    box-shadow: var(--shadow);
    flex: 1 1 180px;
    min-width: 160px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
}

/* color accents for each stat */
.stats-grid .stat-item:nth-child(1) .stat-number { color: var(--primary-color); }
.stats-grid .stat-item:nth-child(2) .stat-number { color: var(--secondary-color); }
.stats-grid .stat-item:nth-child(3) .stat-number { color: var(--accent-color); }
.stats-grid .stat-item:nth-child(4) .stat-number { color: #10B981; }

/* Subtle separators between items on larger screens */
@media (min-width: 900px) {
    .stats-grid { gap: 1.25rem; }
    .stats-grid .stat-item { padding: 1.25rem; }
}

/* ============= Advantages Section ============= */
.advantages-section {
    padding: 80px 0;
    background: var(--white);
}

.advantage-card {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.advantage-card:nth-child(1) { border-top-color: var(--primary-color); }
.advantage-card:nth-child(2) { border-top-color: var(--secondary-color); }
.advantage-card:nth-child(3) { border-top-color: var(--accent-color); }
.advantage-card:nth-child(4) { border-top-color: var(--primary-color); }
.advantage-card:nth-child(5) { border-top-color: var(--secondary-color); }
.advantage-card:nth-child(6) { border-top-color: var(--accent-color); }

.advantage-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.advantage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.advantage-card:nth-child(2) .advantage-icon {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
}

.advantage-card:nth-child(3) .advantage-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, #D97706 100%);
}

.advantage-card:nth-child(4) .advantage-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.advantage-card:nth-child(5) .advantage-icon {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
}

.advantage-card:nth-child(6) .advantage-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, #D97706 100%);
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.advantage-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============= Mission Card ============= */
.mission-card {
    position: relative;
}

.mission-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.2rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.mission-card:hover .mission-icon {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
}

/* ============= Responsive ============= */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .services-section,
    .testimonials-section,
    .about-section,
    .advantages-section {
        padding: 60px 0;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }

    .home-carousel-btn {
        width: 40px;
        height: 40px;
    }

    .home-carousel-prev {
        left: 0.5rem;
    }

    .home-carousel-next {
        right: 0.5rem;
    }

    .home-carousel-image-wrap {
        aspect-ratio: 4 / 3;
        min-height: 240px;
        max-height: 56vh;
    }

    .home-announcement-card {
        align-items: flex-start;
    }

    .home-announcements-btn {
        width: 36px;
        height: 36px;
    }
    
    .stats-card {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .advantage-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .advantage-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ============= Loader ============= */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--primary-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============= Alert Messages ============= */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.alert-error {
    background: #FEE2E2;
    color: #7F1D1D;
    border: 1px solid #FECACA;
}

.alert-warning {
    background: #FEF3C7;
    color: #78350F;
    border: 1px solid #FCD34D;
}

.alert-info {
    background: #DBEAFE;
    color: #0C2340;
    border: 1px solid #93C5FD;
}

/* ============= Badges ============= */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

/* ============= Widgets flottants ============= */
.floating-actions {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    z-index: 999;
}

.quote-widget,
.whatsapp-widget {
    display: flex;
    align-items: center;
}

.quote-widget {
    margin-right: auto;
}

.whatsapp-widget {
    margin-left: auto;
    animation: slideIn 0.5s ease-out;
}

.quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.2rem;
    min-height: 56px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.26);
    transition: all 0.3s ease;
}

.quote-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
    color: white;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25D366, #20BA5B);
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.whatsapp-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============= Bottom Left Button (Réserver) ============= */
.bottom-left-action {
    animation: slideIn 0.5s ease-out;
}

.bottom-left-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.bottom-left-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    color: white;
}

@media (max-width: 768px) {
    .floating-actions {
        right: 16px;
        left: 16px;
        bottom: 16px;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .quote-widget,
    .whatsapp-widget {
        display: flex;
        align-items: center;
    }

    .whatsapp-widget,
    .bottom-left-action {
        animation: none;
    }

    .quote-button {
        padding: 0.8rem 1rem;
        min-height: 50px;
        font-size: 0.95rem;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .bottom-left-button {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}
