/* =========================================================================
   ADIMED SARL — Design System Complet
   Version 2.0 — Inspiré de Biolynx, ADIMED V0, Minah SARL
   Philosophie : "Autorité discrète" — Pro, sobre, précis, mémorable.
   Typographie : DM Serif Display + DM Sans
   Couleur principale : #002B5C navy + #D62828 rouge accent
   ========================================================================= */

/* =========================================================================
   0. IMPORTS
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

/* =========================================================================
   1. VARIABLES CSS (design.md §18)
   ========================================================================= */
:root {
    /* === Couleurs Primaires === */
    --color-navy:         #002B5C;
    --color-navy-80:      #19477A;
    --color-navy-60:      #305F90;
    --color-navy-20:      #CCD5E3;
    --color-navy-10:      #E5EBF2;

    --color-red:          #D62828;
    --color-red-dark:     #B71C1C;
    --color-red-light:    #FDECEA;
    --color-red-05:       #FEF6F6;

    /* === Neutres === */
    --color-black:        #0A0A0A;
    --color-gray-900:     #1A1A2E;
    --color-gray-700:     #2E2E2E;
    --color-gray-500:     #6B7280;
    --color-gray-400:     #9CA3AF;
    --color-gray-300:     #D1D5DB;
    --color-gray-200:     #E5E7EB;
    --color-gray-100:     #F3F4F6;
    --color-gray-50:      #F9FAFB;
    --color-white:        #FFFFFF;

    /* === Sémantiques === */
    --color-success:      #10B981;
    --color-success-bg:   #ECFDF5;
    --color-warning:      #F59E0B;
    --color-warning-bg:   #FFFBEB;
    --color-error:        #EF4444;
    --color-error-bg:     #FEF2F2;

    /* === Surfaces === */
    --surface-page:       #F9FAFB;
    --surface-card:       #FFFFFF;
    --surface-alt:        #EEF2F6;
    --surface-dark:       #002B5C;
    --surface-overlay:    rgba(0, 43, 92, 0.87);

    /* === Typographie === */
    --font-display:       "DM Serif Display", Georgia, "Times New Roman", serif;
    --font-sans:          "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

    /* === Tailles texte === */
    --text-xs:    11px;
    --text-sm:    13px;
    --text-base:  15px;
    --text-md:    17px;
    --text-lg:    20px;
    --text-xl:    24px;
    --text-2xl:   32px;
    --text-3xl:   40px;
    --text-4xl:   48px;
    --text-5xl:   56px;

    /* === Layout === */
    --container-max:          1200px;
    --container-padding:      16px;
    --container-padding-lg:   48px;
    --gutter:                 24px;
    --header-height:          72px;
    --section-py:             96px;
    --section-py-mobile:      56px;
    --hero-min-height:        640px;

    /* === Couleur Footer Alterné === */
    --footer-bg:              var(--color-gray-50);
    --footer-text:            var(--color-navy);

    /* === Composants === */
    --radius-sm:    4px;
    --radius-md:    6px;
    --radius-lg:    12px;
    --radius-pill:  9999px;

    --border-color:           var(--color-gray-200);
    --border-focus:           var(--color-navy);

    /* === Ombres Teintées & Modernes === */
    --shadow-xs:      0 2px 4px rgba(0, 43, 92, 0.04);
    --shadow-card:    0 4px 12px rgba(0, 43, 92, 0.06), 0 1px 2px rgba(0, 43, 92, 0.04);
    --shadow-hover:   0 16px 32px rgba(0, 43, 92, 0.12), 0 4px 8px rgba(0, 43, 92, 0.06);
    --shadow-modal:   0 24px 64px rgba(0, 27, 62, 0.24);
    --shadow-header:  0 4px 20px rgba(0, 43, 92, 0.06);

    /* === Transitions Apple-Style (Spring / Expo) === */
    --ease-fast:    transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --ease-base:    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-slow:    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* === Z-index === */
    --z-base:       1;
    --z-dropdown:   10;
    --z-sticky:     50;
    --z-nav:        100;
    --z-nav-mobile: 200;
    --z-modal:      300;
    --z-toast:      400;
}

/* =========================================================================
   2. RESET & BASE
   ========================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--surface-page);
    color: var(--color-gray-700);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: inherit; transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s cubic-bezier(0.25, 1, 0.5, 1); }

h1, h2, h3, h4, h5, h6 {
    color: var(--color-navy);
    line-height: 1.2;
    font-weight: 400;
}
h1, h2, h3 { font-family: var(--font-display); }
h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; }

p { margin-bottom: 0; }

/* Focus visible */
*:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}
.site-footer *:focus-visible { outline-color: var(--color-red); }

/* Skip link */
.skip-link {
    position: absolute;
    top: 0;
    left: 16px;
    background: var(--color-navy);
    color: white;
    padding: 8px 16px;
    border-radius: 0 0 4px 4px;
    font-size: 14px;
    font-weight: 600;
    z-index: var(--z-toast);
    transition: transform 0.2s ease;
    transform: translateY(-100%);
    text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* =========================================================================
   2.1 RICH TEXT STYLING (Article Content)
   ========================================================================= */
.adimed-rich-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-gray-700);
}
.adimed-rich-text h2 {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--color-navy);
    margin: 48px 0 24px;
    line-height: 1.3;
}
.adimed-rich-text h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--color-navy);
    margin: 32px 0 16px;
}
.adimed-rich-text p {
    margin-bottom: 24px;
}
.adimed-rich-text a {
    color: var(--color-red);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(214, 40, 40, 0.3);
    text-underline-offset: 4px;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.adimed-rich-text a:hover {
    text-decoration-color: var(--color-red);
}
.adimed-rich-text ul, .adimed-rich-text ol {
    margin-bottom: 24px;
    padding-left: 24px;
}
.adimed-rich-text li {
    margin-bottom: 12px;
}
.adimed-rich-text blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 24px;
    color: var(--color-navy);
    border-left: 4px solid var(--color-red);
    padding: 32px;
    margin: 48px 0;
    background: var(--color-gray-50);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.adimed-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 40px 0;
}
.adimed-rich-text hr {
    border: 0;
    border-top: 1px solid var(--color-gray-200);
    margin: 48px 0;
}
@media (max-width: 768px) {
    .adimed-rich-text {
        font-size: 16px;
    }
    .adimed-rich-text h2 {
        font-size: 28px;
    }
}

/* =========================================================================
   2.2 UTILITY CLASSES (MIGRATION FROM TAILWIND CDN)
   ========================================================================= */

/* Display & Layout */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }

/* Flex & Grid Alignment */
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }

/* Spacing (Scale: 1 = 4px) */
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }

.mt-auto { margin-top: auto; }
.mt-6 { margin-top: 24px; }
.mt-10 { margin-top: 40px; }
.mt-16 { margin-top: 64px; }
.mt-20 { margin-top: 80px; }

.p-8 { padding: 32px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.pb-20 { padding-bottom: 80px; }
.pt-10 { padding-top: 40px; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-1 { width: 4px; }
.h-1 { height: 4px; }
.w-5 { width: 20px; }
.h-5 { height: 20px; }
.w-14 { width: 56px; }
.h-14 { height: 56px; }
.w-24 { width: 96px; }
.h-24 { height: 96px; }
.max-w-none { max-width: none; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Aspect Ratio */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }

/* Typography */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: 64px; }
.font-bold { font-weight: 700; }
.font-serif { font-family: var(--font-display); }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.italic { font-style: italic; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }

/* Colors */
.text-white { color: var(--color-white); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-primary { color: var(--color-navy); }
.text-red { color: var(--color-red); }
.bg-navy { background-color: var(--color-navy); }
.bg-white { background-color: var(--color-white); }
.bg-slate-50 { background-color: var(--color-gray-50); }
.bg-slate-100 { background-color: var(--color-gray-100); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-primary\/5 { background-color: rgba(0, 43, 92, 0.05); }
.bg-primary\/10 { background-color: rgba(0, 43, 92, 0.1); }

/* Borders & Radius */
.border { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.rounded-full { border-radius: var(--radius-pill); }
.rounded-xl { border-radius: var(--radius-lg); }
.rounded-2xl { border-radius: 16px; }
.rounded-3xl { border-radius: 24px; }
.rounded-\[32px\] { border-radius: 32px; }
.rounded-\[40px\] { border-radius: 40px; }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-xs); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-premium { box-shadow: 0 30px 60px -12px rgba(0, 43, 92, 0.15); }

/* Grid specific */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:py-32 { padding-top: 128px; padding-bottom: 128px; }
    .md\:-mt-24 { margin-top: -96px; }
    .md\:p-16 { padding: 64px; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:text-6xl { font-size: 64px; }
    .lg\:p-20 { padding: 80px; }
}

/* =========================================================================
   3. LAYOUT HELPERS
   ========================================================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}
@media (min-width: 1024px) {
    .container {
        padding-left: var(--container-padding-lg);
        padding-right: var(--container-padding-lg);
    }
}

/* =========================================================================
   4. SITE HEADER
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    width: 100%;
    height: var(--header-height);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-padding);
    background: rgba(255, 255, 255, 0.95);
    transition: var(--ease-base);
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-header);
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
@media (min-width: 1024px) {
    .site-header { padding: 0 var(--container-padding-lg); }
}

/* Logo ADIMED */
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo__wordmark {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--color-navy);
    letter-spacing: -0.02em;
    line-height: 1;
}
.site-logo__tagline {
    display: none;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-gray-500);
    padding-left: 8px;
    margin-left: 8px;
    border-left: 1px solid var(--color-gray-200);
}
@media (min-width: 1100px) {
    .site-logo__tagline { display: block; }
}

/* Desktop Nav */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    margin: 0;
}
.nav-menu li a,
.nav-link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--color-navy);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--ease-fast);
    letter-spacing: 0.01em;
}
.nav-menu li a:hover,
.nav-link:hover { color: var(--color-navy); background: var(--color-navy-10); }
.nav-menu li.current-menu-item > a,
.nav-link.is-active { color: var(--color-red); font-weight: 600; }

/* Header CTA */
.header-cta {
    padding: 10px 20px !important;
    font-size: var(--text-sm) !important;
}

/* Mobile Nav */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 43, 92, 0.45);
    z-index: calc(var(--z-nav-mobile) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 85vw);
    background: var(--color-white);
    z-index: var(--z-nav-mobile);
    padding: 28px 28px 40px;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 40px rgba(0,43,92,0.14);
    overflow-y: auto;
}
.mobile-nav.is-open {
    transform: translateX(0);
}
.mobile-nav-item a {
    display: block;
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--color-gray-700);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--ease-fast);
    margin-bottom: 4px;
}

.mobile-nav-item a:hover {
    background: var(--color-navy-10);
    color: var(--color-navy);
    transform: translateX(4px);
}

.mobile-nav-item.current-menu-item > a {
    color: var(--color-red);
    font-weight: 600;
    background: var(--color-red-light);
}

/* Header du menu mobile */
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-gray-100);
    margin-bottom: 24px;
}

.mobile-nav__logo .site-logo {
    font-size: 18px !important;
}

.mobile-nav__logo .site-logo__wordmark {
    font-size: 18px !important;
}

.mobile-nav__logo .site-logo__tagline {
    font-size: 11px !important;
}

.mobile-nav__close-btn {
    background: none;
    border: none;
    color: var(--color-gray-400);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav__close-btn:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-600);
}

.mobile-nav__close-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Coordonnées dans le menu mobile */
.mobile-nav__contact {
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.mobile-nav__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-gray-600);
    margin-bottom: 8px;
}

.mobile-nav__contact-item:last-child {
    margin-bottom: 0;
}

.mobile-nav__contact-item .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-red);
}

/* Bouton CTA du menu mobile */
.mobile-nav__cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
}

/* =========================================================================
   5. BOUTONS
   ========================================================================= */
.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    gap: 8px;
    font-size: 13px;
    transition: background-color 0.25s ease, 
                color 0.25s ease, 
                box-shadow 0.25s ease, 
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--color-red);
    color: var(--color-white);
    padding: 16px 32px;
    box-shadow: 0 4px 12px rgba(214, 40, 40, 0.15);
}
.cta-band .btn-primary:hover {
    background: var(--color-red);
    color: var(--color-white);
}
.btn-primary:hover {
    background: #b51c1c;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 40, 40, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--color-navy);
    padding: 14px 30px;
    border: 2px solid var(--color-navy);
}
.btn-secondary:hover {
    background: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-secondary.btn-secondary--light {
    color: var(--color-white);
    border-color: rgba(255,255,255,0.7);
}
.btn-secondary.btn-secondary--light:hover {
    background: var(--color-white);
    color: var(--color-navy);
    border-color: var(--color-white);
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--color-navy);
    padding: 0;
}
.btn-ghost:hover {
    color: var(--color-red); 
}

.btn-sm { font-size: 12px !important; padding: 10px 20px !important; }
.btn-lg { font-size: 14px !important; padding: 14px 28px !important; }
@media (min-width: 768px) {
    .btn-sm { padding: 12px 24px !important; }
    .btn-lg { padding: 18px 40px !important; }
}
.btn-full { width: 100%; justify-content: center; }

/* =========================================================================
   6. HERO SECTION — Accueil
   ========================================================================= */
.hero {
    position: relative;
    min-height: var(--hero-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-navy);
    width: 100%;
}

/* Isolation des couches d'arrière-plan */
.ambient-mesh-bg,
.particles-container,
.hero-carousel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
    z-index: 0;
}

.hero__background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0, 27, 62, 0.94) 0%,
        rgba(0, 43, 92, 0.88) 45%,
        rgba(0, 43, 92, 0.55) 100%
    );
    z-index: 1;
}

/* Motif géométrique subtil */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.02) 0%, transparent 60%);
    z-index: 2;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    padding: 80px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero__content {
        padding: 96px 48px;
    }
}

/* Centrer parfaitement le contenu dans le hero carousel */
.hero--carousel .hero__content {
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
}

.hero__overline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 20px;
}
.hero__overline::before {
    content: '';
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-red);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, var(--text-5xl));
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: 24px;
    max-width: 680px;
    text-align: center;
}
.hero__title em {
    font-style: italic;
    color: rgba(255,255,255,0.85);
}

.hero__subtitle {
    font-family: var(--font-sans);
    font-size: var(--text-md);
    line-height: 1.65;
    color: rgba(255,255,255,0.72);
    margin-bottom: 40px;
    max-width: 520px;
    text-align: center;
}

.hero__trust {
    margin-top: 48px;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hero__trust-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: inline-block;
}

@media (max-width: 767px) {
    .hero { min-height: 580px; }
    .hero__content { padding-top: 72px; padding-bottom: 72px; }
    .hero__title { font-size: 36px; }
    .hero__subtitle { font-size: var(--text-base); }
    
    .hero--carousel { min-height: 100vh; }
    .hero--carousel .hero__content { min-height: 100vh; }
}

/* =========================================================================
   HERO CAROUSEL
   ========================================================================= */

.hero--carousel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero--carousel .hero__background,
.hero--carousel .hero__overlay {
    display: none;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel-slides {
    position: absolute;
    inset: 0;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-carousel-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s ease;
}

.hero-carousel-slide.active .hero-carousel-image {
    transform: scale(1.05);
}

.hero-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 27, 62, 0.92) 0%,
        rgba(0, 43, 92, 0.85) 50%,
        rgba(0, 27, 62, 0.75) 100%
    );
}

/* Contrôles de navigation */
.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.hero-carousel:hover .hero-carousel-btn {
    opacity: 1;
}

.hero-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-carousel-prev {
    left: 24px;
}

.hero-carousel-next {
    right: 24px;
}

.hero-carousel-btn .material-symbols-outlined {
    font-size: 28px;
}

/* Indicateurs (dots) */
.hero-carousel-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.hero-carousel-dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
}

.hero-carousel-dot.active {
    background: var(--color-white);
    border-color: var(--color-white);
    transform: scale(1.2);
}

/* Barre de progression */
.hero-carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.hero-carousel-progress-bar {
    height: 100%;
    background: var(--color-red);
    width: 0%;
    transition: width 0.1s linear;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel-btn {
        width: 40px;
        height: 40px;
        opacity: 0.6;
    }
    
    .hero-carousel-prev {
        left: 12px;
    }
    
    .hero-carousel-next {
        right: 12px;
    }
    
    .hero-carousel-dots {
        bottom: 24px;
    }
}

/* =========================================================================
   7. PAGE HERO (pages internes — Contact, Services, etc.)
   ========================================================================= */
.page-hero {
    background: var(--color-navy);
    padding: 80px 0 64px;
    position: relative;
    overflow: hidden;
}
/* Motif décoratif */
.page-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border: 1.5px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.08);
}
.page-hero__body {
    position: relative;
    z-index: 1;
}
.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 16px;
}
.page-hero__subtitle {
    font-size: var(--text-md);
    line-height: 1.65;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
}

/* =========================================================================
   8. SECTIONS
   ========================================================================= */
.section {
    padding: var(--section-py-mobile) 0;
}
@media (min-width: 768px) {
    .section { padding: var(--section-py) 0; }
}

.section--white { background: var(--color-white); }
.section--gray  { background: var(--color-gray-50); }
.section--alt   { background: var(--surface-alt); }
.section--navy  { background: var(--color-navy); }
.section--categories { background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100%); }

/* =========================================================================
   CATÉGORIES DE PRODUITS — Design moderne
   ========================================================================= */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Carte de catégorie */
.category-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--ease-slow);
    border: 1px solid var(--color-gray-100);
}

.category-card:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-gray-200);
}

.category-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Image de la catégorie */
.category-card__image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-gray-100);
}

.category-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-card__image {
    transform: scale(1.05);
}

.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 27, 62, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-card__overlay {
    opacity: 1;
}

/* Placeholder sans image */
.category-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-navy-60) 0%, var(--color-navy-40) 100%);
}

.category-card__placeholder .material-symbols-outlined {
    font-size: 48px;
    color: var(--color-white);
    opacity: 0.8;
}

/* Contenu de la carte */
.category-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.category-card__desc {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* CTA Lire plus */
.category-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-navy);
    transition: all 0.3s ease;
    margin-top: auto;
}

.category-card__cta .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card__cta {
    color: var(--color-red);
}

.category-card:hover .category-card__cta .material-symbols-outlined {
    transform: translateX(4px);
}

/* Footer avec bouton principal */
.categories-footer {
    text-align: center;
    padding-top: 16px;
}

.categories-footer .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Section Header */
.section-header {
    margin-bottom: 56px;
}
.section-header--center {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.section-header__overline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 14px;
}
.section-header--center .section-header__overline {
    justify-content: center;
}
.section-header__overline::before {
   /* content: '';*/
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--color-red);
}
.section-header__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, var(--text-3xl));
    line-height: 1.2;
    color: var(--color-red);
    margin-bottom: 16px;
}
.section-header__subtitle {
    font-family: var(--font-sans);
    font-size: var(--text-md);
    line-height: 1.65;
    color: var(--color-gray-500);
    max-width: 560px;
}
.section-header--center .section-header__subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================================
   9. CARTES SERVICES
   ========================================================================= */
.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: var(--ease-slow);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}
/* Barre rouge top hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--color-red);
    transition: width 0.25s ease;
}
.service-card:hover::before { width: 100%; }

.service-card--navy {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
}
.service-card--navy:hover {
    background: var(--color-navy-80);
    border-color: var(--color-navy-80);
}
.service-card--navy::before { background: var(--color-red); }

.service-card__icon {
    width: 44px;
    height: 44px;
   
    margin-bottom: 20px;
    color: var(--color-navy);
    flex-shrink: 0;
}
.service-card .material-symbols-outlined{
    font-size: 50px;
}
.service-card--navy .service-card__icon { color: rgba(255,255,255,0.80); }

.service-card__title {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 12px;
}
.service-card--navy .service-card__title { color: var(--color-white); }

.service-card__text {
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--color-gray-500);
    flex-grow: 1;
    margin-bottom: 24px;
}
.service-card--navy .service-card__text { color: rgba(255,255,255,0.65); }

/* =========================================================================
   10. CARTES PRODUITS
   ========================================================================= */
.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--ease-slow);
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
    transform: translateY(-4px);
}

.product-card__media {
    position: relative;
    background: var(--color-gray-50);
    padding: 5px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card__image {
    
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card__image { transform: scale(1.04); }

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}
.badge--new      { background: var(--color-red); color: white; }
.badge--stock    { background: var(--color-success-bg); color: var(--color-success); }
.badge--rupture  { background: var(--color-gray-100); color: var(--color-gray-500); }

.product-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card__category {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-gray-400);
    margin-bottom: 8px;
}
.product-card__title {
    font-family: var(--font-sans);
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.35;
    margin-bottom: 6px;
}
.product-card__sku {
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    margin-bottom: 16px;
    flex-grow: 1;
}
.product-card__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.product-card__actions .btn-primary,
.product-card__actions .btn-secondary {
    flex: 1;
    font-size: var(--text-sm);
    padding: 10px 12px;
}

/* =========================================================================
   11. CHIFFRES CLÉS
   ========================================================================= */
.key-figures {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
@media (min-width: 768px) {
    .key-figures { grid-template-columns: repeat(4, 1fr); }
}

.key-figure {
    padding: 30px 15px;
    text-align: center;
    position: relative;
    border-right: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
}
.key-figure:nth-child(2n) { border-right: none; }
@media (min-width: 768px) {
    .key-figure:nth-child(2n) { border-right: 1px solid var(--color-gray-200); }
    .key-figure:nth-child(4n) { border-right: none; }
    .key-figure:nth-child(n+3) { border-bottom: none; }
}
.key-figure:nth-child(n+3) { border-bottom: none; }
@media (min-width: 768px) {
    .key-figure:nth-child(n+3) { border-bottom: 1px solid var(--color-gray-200); }
}

.key-figure__value {
    font-family: var(--font-display);
    font-size: 52px;
    line-height: 1;
    color: var(--color-navy);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.key-figure__label {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gray-500);
}
.key-figure__accent {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-red);
    margin: 12px auto 0;
    border-radius: 1px;
}

/* =========================================================================
   12. FORMULAIRES
   ========================================================================= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 640px) {
    .form-grid--2col { grid-template-columns: 1fr 1fr; gap: 0 20px; }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-label {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    letter-spacing: 0.01em;
}
.form-label .required {
    color: var(--color-red);
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--color-gray-700);
    background: var(--color-white);
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-gray-400); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(0, 43, 92, 0.08);
}
.form-input.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.08);
}
.form-textarea {
    resize: vertical;
    min-height: 128px;
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}
.form-error {
    font-size: var(--text-sm);
    color: var(--color-red);
    display: block;
    min-height: 18px;
}
.form-message--success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: var(--text-sm);
    font-weight: 500;
    display: none;
}
.form-message--error {
    background: var(--color-error-bg);
    color: var(--color-error);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: var(--text-sm);
    font-weight: 500;
    display: none;
}
.form-message--success.is-visible,
.form-message--error.is-visible { display: block; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 479px) { .form-row { grid-template-columns: 1fr; } }

/* =========================================================================
   13. CTA BANDE
   ========================================================================= */
.cta-band {
    background: var(--color-navy-80);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
/* Motif carré subtil */
.cta-band::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.cta-band__body { position: relative; z-index: 1; }
.cta-band__overline {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 16px;
    display: block;
}
.cta-band__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, var(--text-3xl));
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta-band__text {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.65);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.65;
}
.cta-band__trust {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.35);
    margin-top: 20px;
    text-transform: uppercase;
}

/* =========================================================================
   14. PARTENAIRES — Logo strip
   ========================================================================= */
.partners-strip {
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 40px 0;
}
.partners-strip__label {
    text-align: center;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gray-400);
    margin-bottom: 32px;
}
.partners-strip__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 1;
    transition: var(--ease-base);
}
.partners-strip__logos:hover { opacity: 1; }
.partner-logo {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--color-navy);
    letter-spacing: 0.04em;
    font-weight: 400;
    white-space: nowrap;
}

/* =========================================================================
   15. FOOTER
   ========================================================================= */
.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.70);
    font-family: var(--font-sans);
}
.site-footer__body {
    padding: 80px 0 56px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 768px) {
    .site-footer__body { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (min-width: 1024px) {
    .site-footer__body { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
}

.footer-brand__logo {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--color-white);
    margin-bottom: 14px;
    display: block;
}
.footer-brand__desc {
    font-size: var(--text-sm);
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
    max-width: 260px;
    margin-bottom: 24px;
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Icône sociale — base */
.footer-social__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social__icon svg { display: block; }

/* Hover générique */
.footer-social__icon:hover {
    transform: translateY(-3px);
    color: var(--color-white);
}

/* LinkedIn — bleu */
.footer-social__icon--linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    box-shadow: 0 6px 16px rgba(10, 102, 194, 0.35);
}

/* Facebook — bleu FB */
.footer-social__icon--facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
}

/* WhatsApp — vert */
.footer-social__icon--whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* ---- Titres de colonnes ---- */
.footer-col__title {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 20px;
}

/* ---- Liens rapides ---- */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav a {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-nav a:hover { color: var(--color-white); transform: translateX(3px); }

/* ---- Coordonnées ---- */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.55);
}
.footer-contact-item .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-red);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---- Newsletter Premium ---- */
.footer-newsletter__desc {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter-form__field {
    position: relative;
    display: flex;
    align-items: center;
}

.footer-newsletter-form__field-icon {
    position: absolute;
    left: 14px;
    font-size: 17px;
    color: rgba(255,255,255,0.3);
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s ease;
}

.footer-newsletter-form__input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    padding: 12px 14px 12px 44px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.footer-newsletter-form__input::placeholder {
    color: rgba(255,255,255,0.28);
}

.footer-newsletter-form__input:focus {
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(214,40,40,0.15);
}

.footer-newsletter-form__input:focus + .footer-newsletter-form__field-icon,
.footer-newsletter-form__field:focus-within .footer-newsletter-form__field-icon {
    color: var(--color-red);
}

.footer-newsletter-form__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 13px 20px;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(214,40,40,0.3);
}

.footer-newsletter-form__btn:hover {
    background: #b51c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214,40,40,0.4);
}

.footer-newsletter-form__message {
    font-size: var(--text-xs);
    min-height: 18px;
    color: rgba(255,255,255,0.55);
}

.footer-newsletter-form__privacy {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

/* ---- Footer Bottom ---- */
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.35);
}

.site-footer__bottom > p:first-child {
    justify-self: start;
}

.site-footer__bottom a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer__bottom a:hover { color: rgba(255,255,255,0.70); }

/* "Propulsé par nicearts44" — centré */
.site-footer__poweredby {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    white-space: nowrap;
}

.site-footer__poweredby-link {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.4) !important;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.site-footer__poweredby-link span {
    color: var(--color-red);
}

.site-footer__poweredby-link:hover {
    color: rgba(255,255,255,0.7) !important;
}

.site-footer__legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-self: end;
}

/* Responsive footer bottom */
@media (max-width: 767px) {
    .site-footer__bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
    }
    .site-footer__bottom > p:first-child { justify-self: center; }
    .site-footer__legal-links { justify-self: center; justify-content: center; }
}


/* =========================================================================
   16. BADGES, TAGS
   ========================================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    line-height: 1.4;
}
.badge--navy  { background: var(--color-navy-10); color: var(--color-navy); }
.badge--red   { background: var(--color-red-light); color: var(--color-red); }
.badge--green { background: var(--color-success-bg); color: var(--color-success); }
.badge--gray  { background: var(--color-gray-100); color: var(--color-gray-500); }

/* =========================================================================
   20. CARTES (SERVICES ET PRODUITS)
   ========================================================================= */

/* --- Carte Service --- */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--ease-base);
    color: var(--color-navy);
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-gray-300);
    transform: translateY(-2px);
}
.service-card--navy {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
}
.service-card__icon {
    font-size: 40px;
    margin-bottom: 24px;
    color: var(--color-red);
}
.service-card--navy .service-card__icon {
    color: var(--color-white);
    opacity: 0.9;
}
.service-card__title {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.service-card__text {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--color-gray-600);
    margin-bottom: 24px;
    flex-grow: 1;
}
.service-card--navy .service-card__text {
    color: rgba(255,255,255,0.7);
}

/* --- Carte Produit --- */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--ease-base);
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-gray-300);
}
.product-card__image-wrap,
.product-card__media {
    position: relative;
    aspect-ratio: 3/3;
    overflow: hidden;
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card__image-wrap img,
.product-card__media img {
    
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card__image-wrap img,
.product-card:hover .product-card__media img {
    transform: scale(1.05);
}
.product-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
}
.product-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card__brand,
.product-card__category {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray-400);
    margin-bottom: 8px;
}
.product-card__title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--color-navy);
    margin-bottom: 4px;
    line-height: 1.25;
}
.product-card__title a {
    color: inherit;
    text-decoration: none;
}
.product-card__title a:hover {
    color: var(--color-red);
}
.product-card__model {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-bottom: 2px;
}
.product-card__sku {
    font-size: 13px;
    color: var(--color-gray-400);
    margin-bottom: 12px;
}
.product-card__actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--color-gray-100);
    padding-top: 20px;
}

/* =========================================================================
   21. CHAMPS DE FORMULAIRE
   ========================================================================= */
.form-input,
.form-textarea {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-navy);
    background: var(--color-white);
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray-400);
}

.form-input:hover,
.form-textarea:hover {
    border-color: var(--color-gray-300);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.1), inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* =========================================================================
   17. RESPONSIVITÉ — Utilitaires
   ========================================================================= */
@media (max-width: 767px) {
    .section { padding: var(--section-py-mobile) 0; }
    .cta-band { padding: 64px 0; }
    .key-figure__value { font-size: 40px; }
    .section-header { margin-bottom: 36px; }
    .page-hero { padding: 56px 0 48px; }
}

/* =========================================================================
   18. MODAL DEVIS
   ========================================================================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 43, 92, 0.75);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}
.modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
/* MODAL : caché par défaut (pas de display:flex permanent) */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: 24px;
    pointer-events: none;
}
/* Afficher la modal uniquement quand le backdrop est ouvert */
.modal-backdrop.is-open ~ .modal,
.modal.is-open {
    display: flex;
    pointer-events: none;
}
.modal__box {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    padding: 40px;
    position: relative;
    transform: translateY(16px);
    transition: transform 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
    pointer-events: auto;
}
.modal-backdrop.is-open + .modal .modal__box {
    transform: translateY(0);
}

/* =========================================================================
   19. UTILITAIRES TEXTE & COULEUR
   ========================================================================= */
.text-navy    { color: var(--color-navy); }
.text-red     { color: var(--color-red); }
.text-gray    { color: var(--color-gray-500); }
.text-white   { color: var(--color-white); }
.text-display { font-family: var(--font-display); }

.bg-navy      { background-color: var(--color-navy); }
.bg-red       { background-color: var(--color-red); }
.bg-alt       { background-color: var(--surface-alt); }
.bg-page      { background-color: var(--surface-page); }

.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;
}

/* =========================================================================
   20. RESPONSIVE UTILITIES (POLYFILL FOR TAILWIND REPLACEMENT)
   ========================================================================= */

@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:flex-row { flex-direction: row !important; }
    .md\:items-center { align-items: center !important; }
    .md\:justify-between { justify-content: space-between !important; }
    .md\:gap-6 { gap: 24px !important; }
    .md\:p-2 { padding: 8px !important; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex !important; }
    .lg\:hidden { display: none !important; }
    .lg\:px-10 { padding-left: 40px !important; padding-right: 40px !important; }
    .lg\:gap-8 { gap: 32px !important; }
}

/* Base Utility Extensions */
.gap-1 { gap: 4px !important; }
.gap-6 { gap: 24px !important; }
.font-medium { font-weight: 500 !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.px-4 { padding-left: 16px !important; padding-right: 16px !important; }
.pr-4 { padding-right: 16px !important; }
.pl-9 { padding-left: 36px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.w-44 { width: 176px !important; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important; }
.transition-all    { transition: all 0.2s ease !important; }

/* Positioning Utilities */
.left-3 { left: 12px !important; }
.right-3 { right: 12px !important; }
.top-1/2 { top: 50% !important; }
.-translate-y-1/2 { transform: translateY(-50%) !important; }

/* Interactive Utilities */
.hover\:text-red:hover { color: var(--color-red) !important; }
.hover\:bg-navy-10:hover { background: var(--color-navy-10) !important; }
.hover\:underline:hover { text-decoration: underline !important; }
.hover\:bg-surface-variant:hover { background: var(--color-gray-100) !important; }

/* Custom Badge Colors & Borders */
.bg-navy-10 { background-color: var(--color-navy-10) !important; }
.border-red { border-color: var(--color-red) !important; }
.border-b-2 { border-bottom-width: 2px !important; }
.border-outline { border-color: var(--color-gray-200) !important; }

/* Logo Adjustments */
.site-logo__wordmark { font-weight: 700 !important; }

/* Logo dimensions control */
.site-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: opacity var(--transition);
}

.site-logo:hover {
    opacity: 0.8;
}

.site-logo__img {
    height: 60px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

/* Logo text styles */
.site-logo__company {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: -0.01em;
}

.site-logo__type {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-red);
}

/* Logo variations by context */
.site-header .site-logo__img {
    height: 45px;
    max-width: 180px;
}

@media (min-width: 768px) {
    .site-header .site-logo__img {
        height: 60px;
        max-width: 280px;
    }
}

.mobile-nav__logo .site-logo__img {
    height: 40px;
    max-width: 200px;
}

.footer-brand__logo .site-logo__img {
    height: 40px;
    max-width: 200px;
}

/* =========================================================================
   PAGE DE CONNEXION PERSONNALISÉE
   ========================================================================= */
.login-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    display: flex;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.login-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.login-branding {
    text-align: center;
    margin-bottom: 40px;
}

.login-branding .site-logo {
    justify-content: center;
    margin-bottom: 24px;
}

.login-branding .site-logo__img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.login-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.login-form-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 8px;
}

.form-label .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-navy);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-gray-200);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-body);
    transition: all var(--transition);
    background: var(--color-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(0, 43, 92, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color var(--transition);
}

.password-toggle:hover {
    color: var(--color-navy);
}

.password-toggle .material-symbols-outlined {
    font-size: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-gray-600);
    cursor: pointer;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-gray-300);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition);
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--color-navy);
    border-color: var(--color-navy);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    font-size: 14px;
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.forgot-password:hover {
    color: var(--color-red);
}

.login-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-dark));
    color: var(--color-white);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 43, 92, 0.3);
}

.login-submit .material-symbols-outlined {
    font-size: 20px;
}

.login-footer {
    text-align: center;
}

.back-to-site {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-gray-600);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

.back-to-site:hover {
    color: var(--color-navy);
}

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-error-bg);
    color: var(--color-error);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    border-left: 4px solid var(--color-error);
}

.login-error .material-symbols-outlined {
    font-size: 18px;
}

.login-decoration {
    color: var(--color-white);
}

.decoration-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.decoration-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item .material-symbols-outlined {
    font-size: 24px;
    color: var(--color-red);
}

/* Responsive */
@media (max-width: 968px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
    }
    
    .login-decoration {
        display: none;
    }
    
    .login-form-container {
        padding: 32px 24px;
    }
    
    .login-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 24px 20px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .login-title {
        font-size: 24px;
    }
}

/* =========================================================================
   TABLEAU DE BORD PERSONNALISÉ
   ========================================================================= */
.dashboard-hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    padding: 60px 20px;
    color: var(--color-white);
}

.dashboard-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.dashboard-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.dashboard-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.quick-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-content {
    padding: 60px 20px;
    background: var(--color-gray-50);
    min-height: calc(100vh - 200px);
}

.dashboard-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--color-navy-10);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
}

.stat-icon .material-symbols-outlined {
    font-size: 28px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-gray-600);
    margin: 0;
}

/* Sections */
.dashboard-section {
    background: var(--color-white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0;
}

.section-title .material-symbols-outlined {
    font-size: 24px;
    color: var(--color-red);
}

.section-link {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color var(--transition);
}

.section-link:hover {
    color: var(--color-red);
}

/* Commandes */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    transition: all var(--transition);
}

.order-item:hover {
    border-color: var(--color-navy);
    box-shadow: 0 2px 8px rgba(0, 43, 92, 0.1);
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-id {
    font-weight: 600;
    color: var(--color-navy);
}

.order-date {
    font-size: 14px;
    color: var(--color-gray-600);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-livre {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.status-en-cours {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.order-total {
    font-weight: 600;
    color: var(--color-navy);
}

/* Actions rapides */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.action-card:hover {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
    transform: translateY(-2px);
}

.action-card .material-symbols-outlined {
    font-size: 24px;
}

/* Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 20px;
}

.sidebar-title .material-symbols-outlined {
    font-size: 20px;
    color: var(--color-red);
}

/* Compte */
.account-info {
    margin-bottom: 20px;
}

.account-name {
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.account-email {
    font-size: 14px;
    color: var(--color-gray-600);
    margin-bottom: 4px;
}

.account-role {
    font-size: 12px;
    color: var(--color-red);
    font-weight: 500;
}

/* Activité */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 12px;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: var(--color-gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon .material-symbols-outlined {
    font-size: 16px;
    color: var(--color-gray-600);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    color: var(--color-gray-700);
    margin-bottom: 2px;
}

.activity-time {
    font-size: 12px;
    color: var(--color-gray-500);
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        grid-template-columns: 1fr;
    }
    
    .dashboard-title {
        font-size: 28px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* =========================================================================
   MENU DÉROULANT SOLUTIONS
   ========================================================================= */

/* Cacher le dropdown par défaut */
.nav-menu li .absolute {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

/* Afficher le dropdown au survol du li parent */
.nav-menu li:hover .absolute {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Style des liens dans le dropdown sur 2 colonnes */
.nav-menu li .absolute a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--color-gray-700);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-menu li .absolute a:hover {
    background-color: var(--color-gray-100);
    color: var(--color-red);
}

/* =========================================================================
   SECTION PARTENAIRES ET MARQUES
   ========================================================================= */

/* Section Partenaires - "Ils nous font confiance" */
.partners-section {
    padding: 60px 0;
    background-color: var(--color-white);
}

.partners-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--color-navy);
    margin-bottom: 40px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: scale(1.05);
}

.partner-link {
    display: block;
    text-decoration: none;
}

.partner-logo {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
    transition: all 0.3s ease;
}

.partner-item:hover .partner-logo {
    opacity: 1;
}

/* Section Marques */
.brands-section {
    padding: 40px 0;
    background-color: var(--color-gray-50);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.brand-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.brand-logo {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .partner-logo {
        max-width: 100px;
        max-height: 60px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .brand-logo {
        max-width: 80px;
        max-height: 40px;
    }
    
    .partners-title {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 480px) {
    .partners-grid,
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================================
   SLIDER DES MARQUES
   ========================================================================= */

.brands-slider-section {
    padding: 80px 0;
    background-color: var(--color-gray-50);
    overflow: hidden;
}

.brands-slider-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--color-navy);
    margin-bottom: 12px;
}

.brands-slider-subtitle {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--color-gray-500);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.brands-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.brands-slider-wrapper {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.brands-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-slide {
    flex: 0 0 calc(20% - 20px);
    min-width: 160px;
}

.brand-slide-inner {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.brand-slide-inner:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.brand-slide-logo {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
    transition: all 0.3s ease;
}

.brand-slide:hover .brand-slide-logo {
    opacity: 1;
}

/* Boutons de navigation */
.brands-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    transition: all 0.3s ease;
    z-index: 10;
}

.brands-slider-btn:hover {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

.brands-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.brands-slider-prev {
    left: 0;
}

.brands-slider-next {
    right: 0;
}

.brands-slider-btn .material-symbols-outlined {
    font-size: 24px;
}

/* =========================================================================
   BLOG LAYOUT — Design moderne avec sidebar
   ========================================================================= */

/* Hero du blog */
.blog-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: var(--color-navy);
    overflow: hidden;
}

.blog-hero__background {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1579154204601-01588f351e67?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 27, 62, 0.95) 0%,
        rgba(0, 43, 92, 0.90) 50%,
        rgba(0, 27, 62, 0.85) 100%
    );
}

.blog-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 0;
}

.blog-hero__overline {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 16px;
}

.blog-hero__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, var(--text-4xl));
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-hero__desc {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Layout principal */
.blog-layout {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-white) 100px);
}

.blog-layout__grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 1024px) {
    .blog-layout__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        order: -1;
    }
}

/* Articles */
.blog-articles {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-article-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gray-200);
}

@media (max-width: 768px) {
    .blog-article-card {
        grid-template-columns: 1fr;
    }
}

/* Image de l'article */
.blog-article-card__image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.blog-article-card__image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: var(--color-gray-100);
}

.blog-article-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-article-card:hover .blog-article-card__image {
    transform: scale(1.05);
}

/* Fallback personnalisé sans image */
.blog-article-card__fallback {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Dégradés pour les fallbacks */
.blog-article-card__fallback[data-post-id="1"],
.blog-article-card__fallback[data-post-id="5"],
.blog-article-card__fallback[data-post-id="9"] {
    background: linear-gradient(135deg, #001B3E 0%, #002B5C 100%);
}

.blog-article-card__fallback[data-post-id="2"],
.blog-article-card__fallback[data-post-id="6"],
.blog-article-card__fallback[data-post-id="10"] {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
}

.blog-article-card__fallback[data-post-id="3"],
.blog-article-card__fallback[data-post-id="7"],
.blog-article-card__fallback[data-post-id="11"] {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
}

.blog-article-card__fallback[data-post-id="4"],
.blog-article-card__fallback[data-post-id="8"],
.blog-article-card__fallback[data-post-id="12"] {
    background: linear-gradient(135deg, #E65100 0%, #EF6C00 100%);
}

.blog-article-card__fallback-content {
    text-align: center;
    color: var(--color-white);
    padding: 20px;
}

.blog-article-card__fallback .material-symbols-outlined {
    font-size: 48px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.blog-article-card__fallback-title {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.4;
    opacity: 0.9;
}

/* Badge catégorie */
.blog-article-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Contenu de l'article */
.blog-article-card__content {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .blog-article-card__content {
        padding: 20px;
    }
}

.blog-article-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.blog-article-card__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-gray-300);
}

.blog-article-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-article-card__title a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-article-card:hover .blog-article-card__title a {
    color: var(--color-red);
}

.blog-article-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-article-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.blog-article-card__read-more .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.blog-article-card:hover .blog-article-card__read-more {
    color: var(--color-red);
}

.blog-article-card:hover .blog-article-card__read-more .material-symbols-outlined {
    transform: translateX(4px);
}

/* SIDEBAR */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

@media (max-width: 1024px) {
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* Widgets */
.blog-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
}

.blog-widget__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-gray-100);
}

.blog-widget__text {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Recherche */
.blog-search-form {
    display: flex;
    gap: 8px;
}

.blog-search-form__input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    background: var(--color-white);
    transition: all 0.3s ease;
}

.blog-search-form__input:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(0, 43, 92, 0.1);
}

.blog-search-form__button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-search-form__button:hover {
    background: var(--color-red);
}

/* Liste des catégories */
.blog-categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-categories-list__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: background 0.3s ease;
}

.blog-categories-list__item:hover {
    background: var(--color-gray-50);
}

.blog-categories-list__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.blog-categories-list__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.blog-categories-list__name {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-700);
}

.blog-categories-list__count {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-gray-400);
    background: var(--color-gray-100);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Articles récents */
.blog-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-recent-post {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}

.blog-recent-post:hover {
    background: var(--color-gray-50);
}

.blog-recent-post__thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.blog-recent-post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-recent-post__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

/* Couleurs pour les fallbacks des articles récents */
.blog-recent-post__fallback[data-post-id="1"],
.blog-recent-post__fallback[data-post-id="5"] {
    background: linear-gradient(135deg, #001B3E 0%, #002B5C 100%);
}

.blog-recent-post__fallback[data-post-id="2"],
.blog-recent-post__fallback[data-post-id="6"] {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
}

.blog-recent-post__fallback[data-post-id="3"],
.blog-recent-post__fallback[data-post-id="7"] {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
}

.blog-recent-post__fallback[data-post-id="4"],
.blog-recent-post__fallback[data-post-id="8"] {
    background: linear-gradient(135deg, #E65100 0%, #EF6C00 100%);
}

.blog-recent-post__fallback .material-symbols-outlined {
    font-size: 24px;
}

.blog-recent-post__content {
    flex: 1;
    min-width: 0;
}

.blog-recent-post__title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gray-800);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-recent-post:hover .blog-recent-post__title {
    color: var(--color-red);
}

.blog-recent-post__date {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}

/* Newsletter */
.blog-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-newsletter-form__input {
    padding: 14px 16px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    transition: all 0.3s ease;
}

.blog-newsletter-form__input:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(0, 43, 92, 0.1);
}

.blog-newsletter-form__button {
    padding: 14px 24px;
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-newsletter-form__button:hover {
    background: var(--color-red);
}

/* Pagination */
.blog-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.blog-pagination .nav-links {
    display: flex;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    color: var(--color-gray-600);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
    color: var(--color-navy);
}

.blog-pagination .page-numbers.current {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

.blog-pagination .page-numbers .material-symbols-outlined {
    font-size: 20px;
}

/* État vide */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-100);
}

.blog-empty .material-symbols-outlined {
    font-size: 64px;
    color: var(--color-gray-300);
    margin-bottom: 20px;
}

.blog-empty h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--color-navy);
    margin-bottom: 8px;
}

.blog-empty p {
    color: var(--color-gray-500);
}

/* Indicateurs de pagination */
.brands-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.brands-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--color-gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
}

.brands-slider-dot.active {
    background: var(--color-navy);
    transform: scale(1.2);
}

.brands-slider-dot:hover {
    background: var(--color-navy-60);
}

/* Responsive */
@media (max-width: 1024px) {
    .brand-slide {
        flex: 0 0 calc(25% - 18px);
    }
}

@media (max-width: 768px) {
    .brands-slider-container {
        padding: 0 50px;
    }
    
    .brand-slide {
        flex: 0 0 calc(33.333% - 16px);
    }
    
    .brands-slider-title {
        font-size: var(--text-2xl);
    }
    
    .brands-slider-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .brands-slider-container {
        padding: 0 40px;
    }
    
    .brand-slide {
        flex: 0 0 calc(50% - 12px);
    }
    
    .brand-slide-inner {
        height: 100px;
        padding: 16px;
    }
    
    .brands-slider-btn {
        width: 40px;
        height: 40px;
    }
}

/* =========================================================================
   PILE HORIZONTALE DE LOGOS (Hero)
   ========================================================================= */

.partner-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .partner-stack {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
}

.partner-stack-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partner-stack-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.partner-stack-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-white);
    background: var(--color-white);
    margin-left: -10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.partner-stack-item:first-child {
    margin-left: 0;
}

.partner-stack-item:hover {
    transform: translateY(-4px) scale(1.1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.partner-stack-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-stack-more {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-navy-80);
    border: 2px solid var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.partner-stack-more span {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-white);
}

.partner-stack-more:hover {
    background: var(--color-red);
    transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 768px) {
    .partner-stack {
        gap: 12px;
    }
    
    .partner-stack-label {
        font-size: var(--text-xs);
    }
    
    .partner-stack-item,
    .partner-stack-more {
        width: 38px;
        height: 38px;
        margin-left: -8px;
    }
}

/* =========================================================================
   SECTION RÉFÉRENCES — Page d'accueil & Archive catégorie
   ========================================================================= */

/* ---- Section sur la home ---- */
.section-refs {
    padding: 96px 0;
    background: var(--color-navy);
    position: relative;
    overflow: hidden;
}
.section-refs::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(214,40,40,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.section-refs::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Header de section */
.section-refs__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}
.section-refs__header-text { max-width: 620px; }
.section-refs__overline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 16px;
}
.section-refs__overline .material-symbols-outlined { font-size: 16px; }
.section-refs__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-refs__title em { font-style: italic; color: rgba(255,255,255,0.65); }
.section-refs__subtitle {
    font-family: var(--font-sans);
    font-size: var(--text-md);
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
}
.section-refs__header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: color 0.2s ease, gap 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 4px;
    flex-shrink: 0;
}
.section-refs__header-cta:hover { color: var(--color-white); gap: 12px; }

/* Article vedette (home) */
.refs-home-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    min-height: 420px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.refs-home-featured__image-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: var(--color-navy);
}
.refs-home-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}
.refs-home-featured__image-wrap:hover .refs-home-featured__image { transform: scale(1.06); }
.refs-home-featured__placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,43,92,0.8) 0%, rgba(0,27,62,0.9) 100%);
}
.refs-home-featured__placeholder .material-symbols-outlined { font-size: 80px; color: rgba(255,255,255,0.1); }
.refs-home-featured__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,27,62,0.4) 0%, transparent 60%);
    pointer-events: none;
}
.refs-home-featured__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
}
.refs-home-featured__badge .material-symbols-outlined { font-size: 14px; }
.refs-home-featured__content {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: none;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.refs-home-featured__date {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.refs-home-featured__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 32px);
    line-height: 1.2;
    color: var(--color-white);
    letter-spacing: -0.01em;
}
.refs-home-featured__title a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
.refs-home-featured__title a:hover { color: rgba(255,255,255,0.75); }
.refs-home-featured__excerpt {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.65;
    color: rgba(255,255,255,0.6);
}

/* Grille cartes (home) */
.refs-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

/* Carte référence (home) */
.ref-home-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ref-home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.15);
}
.ref-home-card__image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    text-decoration: none;
    background: rgba(0,27,62,0.8);
}
.ref-home-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}
.ref-home-card:hover .ref-home-card__image { transform: scale(1.07); }
.ref-home-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ref-home-card__placeholder .material-symbols-outlined { font-size: 48px; color: rgba(255,255,255,0.1); }
.ref-home-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,27,62,0.5) 100%);
    pointer-events: none;
}
.ref-home-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ref-home-card__date {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}
.ref-home-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.3;
    color: var(--color-white);
    letter-spacing: -0.01em;
}
.ref-home-card__title a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
.ref-home-card__title a:hover { color: rgba(255,255,255,0.7); }
.ref-home-card__excerpt {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ref-home-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}
.ref-home-card__cta .material-symbols-outlined { font-size: 16px; transition: transform 0.2s ease; }
.ref-home-card:hover .ref-home-card__cta { color: var(--color-red); gap: 10px; }
.ref-home-card:hover .ref-home-card__cta .material-symbols-outlined { transform: translateX(4px); }

/* État vide (home) */
.refs-home-empty {
    text-align: center;
    padding: 80px 32px;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
}
.refs-home-empty__icon .material-symbols-outlined { font-size: 56px; color: rgba(255,255,255,0.12); display: block; margin-bottom: 16px; }
.refs-home-empty h3 { font-family: var(--font-display); font-size: 22px; color: var(--color-white); margin-bottom: 10px; }
.refs-home-empty p { font-size: var(--text-sm); color: rgba(255,255,255,0.4); max-width: 440px; margin: 0 auto; line-height: 1.65; }

/* Footer CTA */
.section-refs__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.section-refs__footer-note {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

/* Responsive section-refs */
@media (max-width: 1024px) {
    .refs-home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .section-refs { padding: 64px 0; }
    .section-refs__header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .section-refs__header-cta { align-self: flex-start; }
    .refs-home-featured { grid-template-columns: 1fr; min-height: auto; }
    .refs-home-featured__image-wrap { height: 240px; }
    .refs-home-featured__content { padding: 28px; }
    .refs-home-grid { grid-template-columns: 1fr; }
}


/* =========================================================================
   PAGE ARCHIVE RÉFÉRENCES (category-references.php)
   ========================================================================= */

.refs-hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-navy);
}
.refs-hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 40%, rgba(214,40,40,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
}
.refs-hero__overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 0%), radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 0%);
    background-size: 40px 40px;
}
.refs-hero__body {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 0 64px;
}
.refs-hero__overline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 20px;
}
.refs-hero__overline .material-symbols-outlined { font-size: 16px; }
.refs-hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    color: var(--color-white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.refs-hero__subtitle {
    font-family: var(--font-sans);
    font-size: var(--text-md);
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 28px;
}
.refs-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 8px 20px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.06em;
}
.refs-hero__badge .material-symbols-outlined { font-size: 16px; color: var(--color-red); }

.refs-archive { background: var(--color-gray-50); padding: 80px 0; }

/* Vedette archive */
.refs-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 64px;
    min-height: 460px;
    box-shadow: var(--shadow-xl);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
}
.refs-featured__image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    background: var(--color-gray-200);
}
.refs-featured__image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.refs-featured__image-wrap:hover .refs-featured__image { transform: scale(1.05); }
.refs-featured__image-wrap--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: linear-gradient(135deg, var(--color-navy) 0%, rgba(0,43,92,0.8) 100%);
}
.refs-featured__image-wrap--placeholder .material-symbols-outlined { font-size: 80px; color: rgba(255,255,255,0.15); }
.refs-featured__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,27,62,0.18) 0%, transparent 60%); pointer-events: none; }
.refs-featured__content { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.refs-featured__meta { display: flex; align-items: center; gap: 12px; }
.refs-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 16px;
}
.refs-tag .material-symbols-outlined { font-size: 13px; }
.refs-date {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-400);
}
.refs-featured__title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); line-height: 1.15; color: var(--color-navy); letter-spacing: -0.01em; }
.refs-featured__title a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
.refs-featured__title a:hover { color: var(--color-red); }
.refs-featured__excerpt { font-family: var(--font-sans); font-size: var(--text-base); line-height: 1.7; color: var(--color-gray-600); }

/* Grille archive */
.refs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 64px; }

/* Carte archive */
.ref-card { background: var(--color-white); border: 1px solid var(--color-gray-200); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.ref-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--color-gray-300); }
.ref-card__image-wrap { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; text-decoration: none; background: var(--color-gray-100); }
.ref-card__image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.ref-card:hover .ref-card__image { transform: scale(1.08); }
.ref-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--color-navy) 0%, rgba(0,43,92,0.8) 100%); }
.ref-card__placeholder .material-symbols-outlined { font-size: 48px; color: rgba(255,255,255,0.15); }
.ref-card__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,27,62,0.12) 100%); pointer-events: none; }
.ref-card__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.ref-card__date { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-gray-400); }
.ref-card__title { font-family: var(--font-display); font-size: 20px; line-height: 1.3; color: var(--color-navy); letter-spacing: -0.01em; }
.ref-card__title a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
.ref-card__title a:hover { color: var(--color-red); }
.ref-card__excerpt { font-family: var(--font-sans); font-size: var(--text-sm); line-height: 1.65; color: var(--color-gray-500); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
.ref-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-navy); text-decoration: none; transition: color 0.2s ease, gap 0.2s ease; }
.ref-card__cta .material-symbols-outlined { font-size: 16px; transition: transform 0.2s ease; }
.ref-card:hover .ref-card__cta { color: var(--color-red); gap: 10px; }
.ref-card:hover .ref-card__cta .material-symbols-outlined { transform: translateX(4px); }

/* État vide archive */
.refs-empty { text-align: center; padding: 100px 32px; background: var(--color-white); border: 1px solid var(--color-gray-200); border-radius: var(--radius-lg); margin-bottom: 64px; }
.refs-empty .material-symbols-outlined { font-size: 64px; color: var(--color-gray-300); display: block; margin: 0 auto 24px; }
.refs-empty h2 { font-family: var(--font-display); font-size: 26px; color: var(--color-navy); margin-bottom: 12px; }
.refs-empty p { font-size: var(--text-base); color: var(--color-gray-500); max-width: 480px; margin: 0 auto 32px; line-height: 1.65; }

/* Pagination */
.refs-pagination { display: flex; justify-content: center; margin-bottom: 32px; }
.refs-pagination .nav-links { display: flex; gap: 8px; align-items: center; }
.refs-pagination .page-numbers { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; background: var(--color-white); border: 1px solid var(--color-gray-200); color: var(--color-gray-600); font-weight: 500; font-size: 14px; text-decoration: none; transition: all 0.2s ease; }
.refs-pagination .page-numbers:hover { background: var(--color-gray-50); color: var(--color-navy); border-color: var(--color-gray-300); }
.refs-pagination .page-numbers.current { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }
.refs-pagination .page-numbers .material-symbols-outlined { font-size: 18px; }

/* Responsive archive */
@media (max-width: 1024px) {
    .refs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .refs-hero { min-height: 360px; }
    .refs-featured { grid-template-columns: 1fr; min-height: auto; }
    .refs-featured__image-wrap { height: 260px; }
    .refs-featured__content { padding: 32px 24px; gap: 16px; }
    .refs-archive { padding: 48px 0; }
    .refs-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   PAGE SERVICES (Refonte Premium)
   ========================================================================= */

/* Hero Banner Arrondi */
.services-header-wrap { padding-top: 32px; padding-bottom: 48px; }
.services-hero-banner { position: relative; border-radius: 24px; overflow: hidden; padding: 80px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.services-hero-banner__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.4) saturate(1.2); z-index: 1; }
.services-hero-banner__content { position: relative; z-index: 2; max-width: 800px; }
.services-hero-banner__title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); color: var(--color-white); margin-bottom: 24px; letter-spacing: -0.01em; line-height: 1.1; }
.services-hero-banner__subtitle { font-family: var(--font-sans); font-size: var(--text-lg); color: rgba(255,255,255,0.85); line-height: 1.6; }

/* Service Highlight (Vedette) */
.service-highlight { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--color-white); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,27,62,0.06); margin-bottom: 64px; }
.service-highlight__media-col { position: relative; display: block; overflow: hidden; }
.service-highlight__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; display: block; min-height: 480px; }
.service-highlight:hover .service-highlight__img { transform: scale(1.05); }
.service-highlight__body-col { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.service-highlight__title { font-family: var(--font-display); font-size: 36px; line-height: 1.15; color: var(--color-navy); margin-bottom: 16px; letter-spacing: -0.01em; }
.service-highlight__accroche { font-size: 18px; font-weight: 500; color: var(--color-red); margin-bottom: 24px; line-height: 1.5; }
.service-highlight__separator { width: 40px; height: 3px; background: var(--color-gray-200); margin-bottom: 24px; }
.service-highlight__desc { font-size: 16px; color: var(--color-gray-600); line-height: 1.7; margin-bottom: 32px; }

/* Grille Services Premium */
.services-grid-premium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 80px; }
.service-card-premium { background: var(--color-white); border-radius: 16px; overflow: hidden; transition: var(--ease-slow); border: 1px solid var(--color-gray-100); display: flex; flex-direction: column; }
.service-card-premium:hover { transform: translateY(-5px) scale(1.005); box-shadow: var(--shadow-hover); border-color: transparent; }
.service-card-premium__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; }
.service-card-premium__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); display: block; }
.service-card-premium:hover .service-card-premium__img { transform: scale(1.05); }
.service-card-premium__body { padding: 32px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.service-card-premium__meta { margin-bottom: 16px; }
.service-card-premium__title { font-family: var(--font-display); font-size: 22px; color: var(--color-navy); margin-bottom: 12px; line-height: 1.25; }
.service-card-premium__title a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
.service-card-premium__title a:hover { color: var(--color-red); }
.service-card-premium__desc { font-size: 14px; color: var(--color-gray-500); line-height: 1.6; margin-bottom: 24px; flex-grow: 1; }
.service-card-premium__footer { padding-top: 20px; border-top: 1px solid var(--color-gray-100); display: flex; align-items: center; }
.service-card-premium__link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-navy); text-decoration: none; transition: color 0.2s ease; }
.service-card-premium__link .material-symbols-outlined { font-size: 18px; transition: transform 0.2s ease; }
.service-card-premium:hover .service-card-premium__link { color: var(--color-red); }
.service-card-premium:hover .service-card-premium__link .material-symbols-outlined { transform: translateX(4px); }

/* CTA Services Premium */
.services-cta-premium { margin-bottom: -60px; padding: 0 20px; position: relative; z-index: 10; }
.services-cta-premium__inner { background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%); border-radius: 24px; padding: 64px 48px; display: flex; align-items: center; justify-content: space-between; gap: 40px; box-shadow: 0 20px 40px rgba(0,27,62,0.15); transform: translateY(30px); }
.services-cta-premium__content { flex: 1; max-width: 600px; }
.services-cta-premium__overline { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-red); margin-bottom: 16px; }
.services-cta-premium__title { font-family: var(--font-display); font-size: 32px; color: var(--color-white); margin-bottom: 16px; line-height: 1.2; }
.services-cta-premium__text { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.6; margin: 0; }
.services-cta-premium__actions { flex-shrink: 0; }

@media (max-width: 1024px) {
    .service-highlight { grid-template-columns: 1fr; }
    .service-highlight__img { min-height: 300px; }
    .services-grid-premium { grid-template-columns: repeat(2, 1fr); }
    .services-cta-premium__inner { flex-direction: column; text-align: center; padding: 48px 32px; }
}
@media (max-width: 767px) {
    .services-hero-banner { padding: 48px 24px; min-height: auto; border-radius: 16px; }
    .services-hero-banner__title { font-size: 28px; }
    .service-highlight__body-col { padding: 40px 24px; }
    .services-grid-premium { grid-template-columns: 1fr; gap: 24px; }
    .services-cta-premium__title { font-size: 24px; }
}

/* =========================================================================
   SINGLE ARTICLE — Layout 2 colonnes avec sidebar (Inspiré Kvell)
   ========================================================================= */

/* Hero spécifique single */
.blog-hero--single {
    min-height: 350px;
    padding: 80px 0;
}

.blog-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
}

.blog-hero__category {
    display: inline-flex;
    padding: 6px 16px;
    background: var(--color-red);
    color: var(--color-white);
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-hero__category:hover {
    background: var(--color-white);
    color: var(--color-navy);
}

.blog-hero__sep {
    opacity: 0.5;
}

.blog-hero__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.blog-hero__author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
}

.blog-hero__author-info {
    text-align: left;
}

.blog-hero__author-name {
    display: block;
    font-weight: 600;
    color: var(--color-white);
    font-size: var(--text-sm);
}

.blog-hero__author-role {
    display: block;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.6);
}

/* Layout principal */
.single-layout {
    padding: 60px 0 80px;
    background: var(--color-gray-50);
}

.single-layout__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 1024px) {
    .single-layout__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Article principal */
.single-article {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.single-article__featured {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
}

.single-article__featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-article__caption {
    text-align: center;
    padding: 16px 24px;
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--color-gray-500);
    background: var(--color-gray-50);
    margin: 0;
}

/* Fallback image */
.single-article__featured--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.single-article__featured--fallback[data-post-id="1"],
.single-article__featured--fallback[data-post-id="5"],
.single-article__featured--fallback[data-post-id="9"] {
    background: linear-gradient(135deg, #001B3E 0%, #002B5C 100%);
}

.single-article__featured--fallback[data-post-id="2"],
.single-article__featured--fallback[data-post-id="6"],
.single-article__featured--fallback[data-post-id="10"] {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
}

.single-article__featured--fallback[data-post-id="3"],
.single-article__featured--fallback[data-post-id="7"],
.single-article__featured--fallback[data-post-id="11"] {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
}

.single-article__featured--fallback[data-post-id="4"],
.single-article__featured--fallback[data-post-id="8"],
.single-article__featured--fallback[data-post-id="12"] {
    background: linear-gradient(135deg, #E65100 0%, #EF6C00 100%);
}

.single-article__fallback-content {
    text-align: center;
    color: var(--color-white);
}

.single-article__fallback-content .material-symbols-outlined {
    font-size: 64px;
    opacity: 0.8;
    display: block;
    margin-bottom: 16px;
}

.single-article__fallback-content span:last-child {
    font-size: var(--text-lg);
    font-weight: 600;
    opacity: 0.9;
}

/* Contenu article */
.single-article__content {
    padding: 48px;
}

@media (max-width: 768px) {
    .single-article__content {
        padding: 32px 24px;
    }
}

.single-article__body {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-gray-700);
}

.single-article__body h2,
.single-article__body h3,
.single-article__body h4 {
    font-family: var(--font-display);
    color: var(--color-navy);
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-article__body p {
    margin-bottom: 20px;
}

.single-article__body img {
    border-radius: var(--radius-lg);
    margin: 32px 0;
}

.single-article__body blockquote {
    border-left: 4px solid var(--color-red);
    padding-left: 24px;
    font-style: italic;
    color: var(--color-gray-600);
    margin: 32px 0;
}

/* Tags */
.single-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-gray-100);
}

.single-article__tags-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
}

.single-article__tag {
    display: inline-flex;
    padding: 8px 16px;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-article__tag:hover {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

/* Share */
.single-article__share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--color-gray-100);
    border-bottom: 1px solid var(--color-gray-100);
}

.single-article__share-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
}

.single-article__share-buttons {
    display: flex;
    gap: 12px;
}

.single-article__share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-gray-50);
    color: var(--color-navy);
    border: 1px solid var(--color-gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.single-article__share-btn:hover {
    background: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
    transform: translateY(-2px);
}

.single-article__share-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Auteur */
.single-author {
    display: flex;
    gap: 24px;
    margin-top: 48px;
    padding: 32px;
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-100);
}

@media (max-width: 600px) {
    .single-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.single-author__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.single-author__content {
    flex: 1;
}

.single-author__name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.single-author__bio {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--color-gray-600);
    margin: 0;
}

/* Navigation Prev/Next */
.single-navigation {
    margin-top: 48px;
    padding-top: 32px;
}

.single-navigation__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 600px) {
    .single-navigation__grid {
        grid-template-columns: 1fr;
    }
}

.single-navigation__link {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-100);
    position: relative;
    overflow: hidden;
}

.single-navigation__link:hover {
    background: var(--color-navy);
    border-color: var(--color-navy);
}

.single-navigation__link--next {
    text-align: right;
    align-items: flex-end;
}

.single-navigation__link--prev {
    text-align: left;
    align-items: flex-start;
}

.single-navigation__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-400);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.single-navigation__link:hover .single-navigation__label {
    color: rgba(255,255,255,0.7);
}

.single-navigation__label .material-symbols-outlined {
    font-size: 16px;
}

.single-navigation__title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.4;
    transition: color 0.3s ease;
    z-index: 1;
}

.single-navigation__link:hover .single-navigation__title {
    color: var(--color-white);
}

.single-navigation__thumb {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.2;
    transition: all 0.3s ease;
}

.single-navigation__link--prev .single-navigation__thumb {
    right: auto;
    left: -20px;
}

.single-navigation__link:hover .single-navigation__thumb {
    opacity: 0.3;
    transform: scale(1.1);
}

/* SIDEBAR SINGLE */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

@media (max-width: 1024px) {
    .single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

/* Widgets */
.single-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
}

.single-widget--newsletter {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    border: none;
}

.single-widget--newsletter .single-widget__title {
    color: var(--color-white);
    border-color: rgba(255,255,255,0.2);
}

.single-widget--newsletter .single-widget__text {
    color: rgba(255,255,255,0.8);
}

.single-widget__title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-gray-100);
}

.single-widget__text {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* Catégories dans sidebar */
.single-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.single-categories__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: background 0.3s ease;
}

.single-categories__item:hover {
    background: var(--color-gray-50);
}

.single-categories__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.single-categories__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.single-categories__name {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-700);
}

.single-categories__count {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-gray-400);
    background: var(--color-gray-100);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Articles récents dans sidebar */
.single-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.single-recent-post {
    display: flex;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-recent-post:hover .single-recent-post__title {
    color: var(--color-red);
}

.single-recent-post__thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.single-recent-post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-recent-post:hover .single-recent-post__img {
    transform: scale(1.1);
}

.single-recent-post__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

/* Couleurs fallbacks */
.single-recent-post__fallback[data-post-id="1"],
.single-recent-post__fallback[data-post-id="5"] { background: linear-gradient(135deg, #001B3E 0%, #002B5C 100%); }
.single-recent-post__fallback[data-post-id="2"],
.single-recent-post__fallback[data-post-id="6"] { background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%); }
.single-recent-post__fallback[data-post-id="3"],
.single-recent-post__fallback[data-post-id="7"] { background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%); }
.single-recent-post__fallback[data-post-id="4"],
.single-recent-post__fallback[data-post-id="8"] { background: linear-gradient(135deg, #E65100 0%, #EF6C00 100%); }

.single-recent-post__fallback .material-symbols-outlined {
    font-size: 28px;
}

.single-recent-post__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-recent-post__title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gray-800);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.single-recent-post__date {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}

/* =========================================================================
   12. APPLE-STYLE SCROLL REVEALS
   ========================================================================= */
.adimed-reveal-hidden {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.adimed-reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
