/* ==========================================================================
   DESIGN SYSTEM — CABINET AULIOR
   Palette Bordeaux | Typographie Inter + Playfair Display
   ========================================================================== */

:root {
    /* Palette */
    --primary: #82102A;
    --primary-dark: #5E0B1E;
    --primary-light: #A8243C;
    --accent: #C4364D;

    --neutral-900: #1A1A1A;
    --neutral-800: #2C2C2C;
    --neutral-700: #444444;
    --neutral-600: #666666;
    --neutral-400: #999999;
    --neutral-200: #E0E0E0;
    --neutral-100: #F0F0F0;
    --neutral-50: #F8F8F8;
    --white: #FFFFFF;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Montserrat', Arial, sans-serif;

    /* Sizing & Spacing */
    --container: 1200px;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --space-xxs: 0.25rem; /* 4px */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 0.75rem;  /* 12px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px */
    --space-2xl: 3rem;    /* 48px */
    --space-3xl: 4rem;    /* 64px */
    --space-section: 6rem; /* 96px */

    /* Typography Sizes */
    --fs-xs: 0.75rem;     /* 12px */
    --fs-sm: 0.875rem;    /* 14px */
    --fs-base: 1rem;      /* 16px */
    --fs-lg: 1.125rem;    /* 18px */
    --fs-xl: 1.25rem;     /* 20px */
    --fs-2xl: 1.5rem;     /* 24px */
    --fs-3xl: 1.875rem;   /* 30px */
    --fs-4xl: 2.25rem;    /* 36px */
    --fs-display: 3.5rem; /* 56px */

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.2;
}

h2 em,
h1 em {
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 800;
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

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

.py-section {
    padding: var(--space-section) 0;
}

.mt-1 {
    margin-top: 1rem;
}

/* Section Labels */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 2px;
    background: var(--primary);
}

.section-header .section-label {
    padding-left: 0;
}

.section-header .section-label::before {
    display: none;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* ==========================================================================
   PLACEHOLDERS IMAGES
   ========================================================================== */
.img-template {
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--neutral-600);
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
    border: 2px dashed var(--neutral-400);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.img-template i {
    opacity: 0.4;
}

.img-template span {
    opacity: 0.7;
    font-weight: 500;
}

.img-template small {
    font-weight: 400;
    opacity: 0.5;
}

.img-template.full-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

.img-template.img-service {
    height: 180px;
    border-radius: var(--radius) var(--radius) 0 0;
    border: none;
    border-bottom: 2px dashed var(--neutral-400);
}

.img-template.img-location {
    height: 220px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: none;
}

.img-template.img-main {
    height: 380px;
    border-radius: var(--radius-lg);
}

.img-template.img-accent {
    height: 200px;
    width: 250px;
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(130, 16, 42, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
    background: var(--neutral-900);
    color: var(--white);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.top-bar-left a:hover {
    color: var(--white);
}

.separator {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-top {
    display: flex;
    gap: 10px;
}

.social-top a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.social-top a:hover {
    color: var(--white);
}

.btn-client,
.btn-espace-client {
    background: var(--primary);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s var(--ease);
}

.btn-client:hover,
.btn-espace-client:hover {
    background: var(--primary-light);
    color: var(--white);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s var(--ease);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header.scrolled .header-inner {
    height: 65px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    transition: height 0.4s var(--ease-out);
}

/* Logo Template */
.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

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

.logo-placeholder .logo-name {
    display: block;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
    letter-spacing: 2px;
    line-height: 1;
}

.logo-placeholder .logo-subtitle {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--neutral-600);
    text-transform: uppercase;
}

.logo-placeholder.small i {
    font-size: 1.4rem;
}

.logo-placeholder.small .logo-name {
    font-size: 1.2rem;
    color: var(--white);
}

.logo-placeholder.small .logo-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

/* Company Logo Styles */
.logo-img {
    height: 68px;
    width: auto;
    object-fit: contain;
    transition: height 0.4s var(--ease-out);
    display: block;
}

.header.scrolled .logo-img {
    height: 50px;
}

.logo-img-footer {
    height: 58px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Nav */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav>ul>li>a {
    color: var(--neutral-800);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    margin: 0 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s var(--ease);
    position: relative;
}

.main-nav>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease);
}

.main-nav>ul>li>a:hover::after,
.main-nav>ul>li>a.active::after {
    width: 100%;
}

.main-nav>ul>li>a:hover,
.main-nav>ul>li>a.active {
    color: var(--primary);
    background: transparent;
}

.main-nav>ul>li>a i {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

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

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
    z-index: 100;
    border: 1px solid var(--neutral-100);
}

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

.has-dropdown:hover>a i {
    transform: rotate(180deg);
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--neutral-700);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown li a:hover {
    background: rgba(130, 16, 42, 0.05);
    color: var(--primary);
    padding-left: 24px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neutral-900);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 11px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 22px;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background img {
    filter: grayscale(100%) brightness(0.65) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(130, 16, 42, 0.78) 0%,
            rgba(94, 11, 30, 0.75) 50%,
            rgba(26, 26, 26, 0.78) 100%);
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    padding: var(--space-section) var(--space-xl);
}

.hero-content {
    max-width: 700px;
}

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero .badge i {
    color: #F4C542;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 em {
    color: #F4C542;
    font-family: var(--font-display);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   KEY NUMBERS
   ========================================================================== */
.key-numbers {
    background: var(--white);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 2rem;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.number-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
}

.number-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--neutral-200);
}

.number-item .number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-family: var(--font-body);
}

.number-item .suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.number-item p {
    color: var(--neutral-600);
    font-size: 0.9rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================================================
   ABOUT PREVIEW
   ========================================================================== */
.about-preview {
    background: var(--neutral-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-images .img-main {
    width: 100%;
}

.about-images .img-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.about-text h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--neutral-600);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-values {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--neutral-800);
}

.value-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    background: var(--white);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.services-grid .service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    width: calc(50% - 1rem);
    max-width: 480px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(130, 16, 42, 0.2);
}

.service-card-body {
    padding: 1.5rem 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--neutral-900);
}

.service-card p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-list {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-list li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    color: var(--neutral-700);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
}

.link-arrow {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    margin-top: auto;
}

.link-arrow i {
    transition: transform 0.3s var(--ease);
    font-size: 0.75rem;
}

.service-card:hover .link-arrow i {
    transform: translateX(5px);
}

/* ==========================================================================
   NEWS BANNER (INFO DU JOUR)
   ========================================================================== */
.news-banner {
    background: var(--primary);
    padding: 0;
}

.news-banner-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.news-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.news-text {
    flex-grow: 1;
}

.news-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.news-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.news-banner .btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    white-space: nowrap;
    flex-shrink: 0;
}

.news-banner .btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* ==========================================================================
   LOCATIONS
   ========================================================================== */
.locations-section {
    background: var(--neutral-50);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 850px;
    margin: 0 auto;
}

.location-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
    border: 1px solid var(--neutral-200);
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.location-info {
    padding: 1.5rem;
}

.location-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-info h3 i {
    color: var(--primary);
    font-size: 0.9rem;
}

.location-info p {
    color: var(--neutral-600);
    font-size: 0.9rem;
}

/* ==========================================================================
   TÉMOIGNAGES (CAROUSEL)
   ========================================================================== */
.testimonials-section {
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 3rem;
    padding-top: 1rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 2.5rem 3rem;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    text-align: center;
    border-top: 4px solid var(--bordeaux);
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

.testimonial-card.active-slide {
    opacity: 1;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    display: block;
}

.testimonial-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--neutral-700);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
}

.avatar-template {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0;
    font-size: 0.6rem;
}

.avatar-template span {
    display: none;
}

.avatar-template i {
    font-size: 1.5rem;
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: var(--neutral-900);
    font-size: 1.1rem;
}

.author-info span {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.slider-btn {
    background: var(--white);
    border: 1px solid var(--neutral-300);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slider-dots {
    display: flex;
    gap: 0.6rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neutral-300);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.cta-bg img {
    filter: grayscale(100%) brightness(0.65) contrast(1.05);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(130, 16, 42, 0.80) 0%,
            rgba(26, 26, 26, 0.82) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--neutral-900);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-col p {
    margin: 1.2rem 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:not(.btn) {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-col a:not(.btn):hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary-light);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.legal-links a:hover {
    color: var(--white);
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-grid {
        gap: 3rem;
    }

    .services-grid .service-card {
        width: calc(50% - 1rem);
    }

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

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

@media (max-width: 768px) {
    .top-bar-left {
        display: none;
    }

    .top-bar-inner {
        justify-content: flex-end;
    }

    .social-top {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
        border-top: 1px solid var(--neutral-100);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav>ul>li>a {
        padding: 12px 16px;
        border-radius: 0;
        border-bottom: 1px solid var(--neutral-100);
        justify-content: center;
    }

    .dropdown {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 1rem !important;
        background: var(--neutral-50);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .has-dropdown.open .dropdown {
        max-height: 500px;
    }

    .has-dropdown.open>a i {
        transform: rotate(180deg);
    }

    .hero {
        min-height: 70vh;
    }

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

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

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

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

    .number-item:not(:last-child)::after {
        display: none;
    }

    .number-item .number {
        font-size: 2.2rem;
    }

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

    .about-images .img-accent {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }

    .services-grid .service-card {
        width: 100%;
    }

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

    .news-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    /* Testimonials Mobile */
    .testimonial-card {
        padding: 1.5rem;
    }

    .quote-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .testimonial-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .slider-controls {
        margin-top: 1.5rem;
    }

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

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

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

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

    .section-header p {
        font-size: 0.95rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-values {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

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

    .number-item {
        padding: 1.5rem 1rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   PAGES DE SERVICES (sous-pages)
   ========================================================================== */

/* --- Service Hero --- */
.service-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.service-hero-bg img {
    filter: grayscale(100%) brightness(0.65) contrast(1.05);
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(130, 16, 42, 0.78) 0%,
            rgba(94, 11, 30, 0.75) 50%,
            rgba(26, 26, 26, 0.78) 100%);
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: var(--container);
    width: 100%;
}

.service-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.service-hero h1 em {
    color: #F4C542;
    font-family: var(--font-display);
}

.service-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    line-height: 1.8;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

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

.breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* --- Service Intro --- */
.service-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.service-intro-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.service-intro-text p {
    color: var(--neutral-600);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* --- Detail Cards Grid --- */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-detail-grid.grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
}

.detail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s var(--ease-out);
    text-align: center;
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(130, 16, 42, 0.15);
}

.detail-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(130, 16, 42, 0.08), rgba(130, 16, 42, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.4s var(--ease);
}

.detail-card:hover .detail-card-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.detail-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--neutral-900);
}

.detail-card p {
    color: var(--neutral-600);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* --- Why Choose Section --- */
.service-why {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out);
    border: 1px solid transparent;
}

.why-item:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-200);
    transform: translateY(-4px);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.3rem;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(130, 16, 42, 0.3);
}

.why-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--neutral-900);
}

.why-item p {
    color: var(--neutral-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- BG Light Helper --- */
.bg-light {
    background: var(--neutral-50);
}

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

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

    .service-intro-grid {
        gap: 3rem;
    }

    .service-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .service-hero {
        min-height: 320px;
    }

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

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

    .service-hero-content {
        padding: 3rem 1.5rem 3rem;
    }

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

    .service-intro-text h2 {
        font-size: 1.8rem;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

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

    .breadcrumb {
        font-size: 0.78rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .service-hero h1 {
        font-size: 1.7rem;
    }

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

    .detail-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   PAGE "LE CABINET" — PRÉSENTATION
   ========================================================================== */

/* --- Cabinet Intro --- */
.cabinet-intro {
    background: var(--white);
}

.cabinet-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.cabinet-intro-text h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.cabinet-intro-text p {
    color: var(--neutral-600);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.cabinet-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-200);
}

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

.cabinet-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-family: var(--font-body);
}

.cabinet-stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.cabinet-stat p {
    color: var(--neutral-600);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 4px;
}

.cabinet-intro-image {
    position: relative;
}

.cabinet-intro-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.cabinet-intro-badge i {
    font-size: 2rem;
    color: #F4C542;
}

.cabinet-intro-badge strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}

.cabinet-intro-badge span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* --- Values Section --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
    transform-origin: left;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(130, 16, 42, 0.15);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(130, 16, 42, 0.08), rgba(130, 16, 42, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.4s var(--ease);
}

.value-card:hover .value-card-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--neutral-900);
}

.value-card p {
    color: var(--neutral-600);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* --- Team Section --- */
.team-section {
    background: var(--white);
}

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

.team-member-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s var(--ease-out);
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(130, 16, 42, 0.15);
}

.team-member-photo {
    position: relative;
    overflow: hidden;
}

.team-photo-placeholder {
    height: 280px;
    border-radius: 0;
    border: none;
    border-bottom: 2px dashed var(--neutral-400);
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 50%, #c8c8c8 100%);
}

.team-member-card:hover .team-photo-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 50%, #bbb 100%);
}

.team-member-info {
    padding: 1.5rem 1.8rem 2rem;
    text-align: center;
}

.team-member-info h3 {
    font-size: 1.2rem;
    color: var(--neutral-900);
    margin-bottom: 4px;
}

.team-member-role {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.team-member-skills {
    font-size: 0.88rem;
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.team-member-contact {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-member-contact a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(130, 16, 42, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease);
}

.team-member-contact a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(130, 16, 42, 0.3);
}

/* --- Team Group Photo --- */
.team-group-photo {
    max-width: 900px;
    margin: 0 auto;
}

.team-group-placeholder {
    height: 420px;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--neutral-400);
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 50%, #c8c8c8 100%);
}

.team-group-caption {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

.team-group-caption i {
    color: var(--primary);
    margin-right: 6px;
}

.team-group-caption strong {
    color: var(--primary);
}

/* --- Services Overview Section --- */
.services-overview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.services-overview-grid > * {
    width: calc(50% - 0.75rem);
}

.service-overview-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s var(--ease-out);
    text-decoration: none;
    color: inherit;
}

.service-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(130, 16, 42, 0.15);
    color: inherit;
}

.service-overview-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(130, 16, 42, 0.08), rgba(130, 16, 42, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.4s var(--ease);
}

.service-overview-card:hover .service-overview-icon {
    background: var(--primary);
    color: var(--white);
}

.service-overview-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--neutral-900);
}

.service-overview-content p {
    color: var(--neutral-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.service-overview-card:hover .link-arrow i {
    transform: translateX(5px);
}

/* --- Le Cabinet Responsive --- */
@media (max-width: 1024px) {
    .cabinet-intro-grid {
        gap: 3rem;
    }

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

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

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

@media (max-width: 768px) {
    .cabinet-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cabinet-intro-text h2 {
        font-size: 1.8rem;
    }

    .cabinet-stats {
        gap: 1.5rem;
    }

    .cabinet-stat-number {
        font-size: 2rem;
    }

    .cabinet-intro-badge {
        position: static;
        margin-top: 1.5rem;
        display: inline-flex;
    }

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

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .team-photo-placeholder {
        height: 240px;
    }

    .services-overview-grid {
        flex-direction: column;
    }

    .services-overview-grid > * {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cabinet-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

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

    .value-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   PAGE CONTACT
   ========================================================================== */

/* --- Contact Main Grid --- */
.contact-main {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-wrapper h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-form-intro {
    color: var(--neutral-600);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* --- Contact Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--neutral-800);
}

.form-group label .required {
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--neutral-900);
    background: var(--white);
    transition: all 0.3s var(--ease);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--neutral-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(130, 16, 42, 0.08);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--neutral-400);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.form-actions {
    margin-top: 0.5rem;
}

.form-actions .btn {
    width: 100%;
    justify-content: center;
}

.form-disclaimer {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--neutral-400);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-disclaimer i {
    font-size: 0.7rem;
}

/* --- Contact Info Cards --- */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: 1.8rem 2rem;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s var(--ease);
}

.contact-info-card:hover {
    border-color: rgba(130, 16, 42, 0.15);
    box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
    font-size: 1.05rem;
    color: var(--neutral-900);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-card h3 i {
    color: var(--primary);
    font-size: 1rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

.contact-info-list li>i {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 4px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.contact-info-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--neutral-700);
    transition: color 0.3s;
}

.contact-info-list li a:hover {
    color: var(--primary);
}

.contact-info-list li a i {
    color: var(--primary);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* --- Contact Social Card --- */
.contact-social-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 1.8rem 2rem;
    color: var(--white);
}

.contact-social-card h3 {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 1.2rem;
}

.contact-social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.social-link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    text-decoration: none;
}

.social-link-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    transform: translateY(-2px);
}

.social-link-btn i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* --- Portals Section --- */
.portals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s var(--ease-out);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(130, 16, 42, 0.2);
    color: inherit;
}

.portal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(130, 16, 42, 0.08), rgba(130, 16, 42, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.4s var(--ease);
}

.portal-card:hover .portal-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.portal-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--neutral-900);
}

.portal-content p {
    color: var(--neutral-600);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.portal-card:hover .link-arrow i {
    transform: translateX(5px);
}

/* --- Recruitment Section --- */
.recruitment-section {
    background: var(--white);
}

.recruitment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.recruitment-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.recruitment-text>p {
    color: var(--neutral-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.recruitment-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.recruitment-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--neutral-800);
}

.recruitment-feature i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(130, 16, 42, 0.08), rgba(130, 16, 42, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.recruitment-email-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--neutral-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

.recruitment-email-hint i {
    color: var(--primary);
    font-size: 0.8rem;
}

.recruitment-email-hint a {
    color: var(--primary);
}

/* --- Map Section --- */
.contact-map-section {
    background: var(--neutral-100);
}

.contact-map-wrapper {
    width: 100%;
}

.contact-map-placeholder {
    height: 400px;
    border-radius: 0;
    border: none;
    border-top: 2px dashed var(--neutral-400);
    border-bottom: 2px dashed var(--neutral-400);
}

/* --- Contact Page Responsive --- */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 3rem;
    }

    .portals-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .recruitment-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-wrapper h2 {
        font-size: 1.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .portals-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

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

    .recruitment-text h2 {
        font-size: 1.8rem;
    }

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

    .contact-map-placeholder {
        height: 300px;
    }

    .contact-social-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .contact-social-links {
        grid-template-columns: 1fr;
    }

    .contact-map-placeholder {
        height: 250px;
    }
}

/* ==========================================================================
   ESPACE CLIENT PAGE
   ========================================================================== */

/* --- Login Section --- */
.ec-login-section {
    background: var(--white);
}

.ec-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* --- Login Card --- */
.ec-login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--neutral-100);
}

.ec-login-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2.5rem 2.5rem 2rem;
    text-align: center;
}

.ec-login-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ec-login-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.ec-login-card-header h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.ec-login-card-header h2 em {
    color: #F4C542;
}

.ec-login-card-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* --- Login Form --- */
.ec-login-form {
    padding: 2.5rem;
}

.ec-form-group {
    margin-bottom: 1.5rem;
}

.ec-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
}

.ec-form-group label i {
    color: var(--primary);
    font-size: 0.85rem;
}

.ec-form-group input[type="email"],
.ec-form-group input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--neutral-800);
    background: var(--neutral-50);
    transition: all 0.3s var(--ease);
    outline: none;
}

.ec-form-group input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(130, 16, 42, 0.08);
}

.ec-form-group input::placeholder {
    color: var(--neutral-400);
}

.ec-password-wrapper {
    position: relative;
}

.ec-password-wrapper input {
    padding-right: 50px;
}

.ec-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--neutral-400);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.3s;
}

.ec-toggle-password:hover {
    color: var(--primary);
}

.ec-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ec-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--neutral-600);
    cursor: pointer;
}

.ec-checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.ec-forgot-link {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
}

.ec-forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.ec-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1.05rem;
}

.ec-login-footer {
    background: var(--neutral-50);
    padding: 1.2rem 2.5rem;
    border-top: 1px solid var(--neutral-100);
}

.ec-login-footer p {
    font-size: 0.85rem;
    color: var(--neutral-600);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.ec-login-footer p i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- Info Side --- */
.ec-info-side h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.ec-info-side>p {
    color: var(--neutral-600);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.ec-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ec-feature-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease);
    border: 1px solid transparent;
}

.ec-feature-item:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-100);
    transform: translateX(6px);
}

.ec-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(130, 16, 42, 0.08), rgba(130, 16, 42, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-feature-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

.ec-feature-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    color: var(--neutral-900);
}

.ec-feature-item p {
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.5;
}

/* --- Advantages Section --- */
.ec-advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.ec-advantage-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-100);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.ec-advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(130, 16, 42, 0.15);
}

.ec-advantage-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(130, 16, 42, 0.05);
    line-height: 1;
    font-family: var(--font-body);
}

.ec-advantage-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.ec-advantage-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.ec-advantage-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--neutral-900);
}

.ec-advantage-card p {
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

/* --- Support Section --- */
.ec-support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.ec-support-text h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.ec-support-text>p {
    color: var(--neutral-600);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.ec-support-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(130, 16, 42, 0.3);
}

/* --- FAQ --- */
.ec-support-faq h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--neutral-900);
}

.ec-support-faq h3 i {
    color: var(--primary);
}

.ec-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ec-faq-item {
    background: var(--neutral-50);
    border-radius: var(--radius);
    border: 1px solid var(--neutral-100);
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.ec-faq-item[open] {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-color: rgba(130, 16, 42, 0.15);
}

.ec-faq-item summary {
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--neutral-800);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    transition: color 0.3s;
}

.ec-faq-item summary::-webkit-details-marker {
    display: none;
}

.ec-faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--primary);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
    margin-left: 1rem;
}

.ec-faq-item[open] summary::after {
    transform: rotate(180deg);
}

.ec-faq-item summary:hover {
    color: var(--primary);
}

.ec-faq-item p {
    padding: 0 1.5rem 1.2rem;
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

/* --- Espace Client Responsive --- */
@media (max-width: 1024px) {
    .ec-login-grid {
        gap: 3rem;
    }

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

    .ec-support-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .ec-login-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ec-login-card-header {
        padding: 2rem;
    }

    .ec-login-form {
        padding: 2rem;
    }

    .ec-login-footer {
        padding: 1rem 2rem;
    }

    .ec-info-side h2 {
        font-size: 1.8rem;
    }

    .ec-advantages-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .ec-support-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ec-support-text h2 {
        font-size: 1.8rem;
    }

    .ec-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .ec-support-actions {
        flex-direction: column;
    }

    .ec-support-actions .btn {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ec-login-card-header h2 {
        font-size: 1.5rem;
    }

    .ec-advantage-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   ESPACE CLIENT — PORTAILS PREMIUM (nouvelle version)
   ========================================================================== */

/* Bouton bordeau outline */
.btn-outline-bordeaux {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-bordeaux:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(130, 16, 42, 0.25);
}

/* Section portails */
.client-portals-section {
    background: var(--neutral-50);
}

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

/* Carte portail */
.portal-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.35s var(--ease-out);
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(130, 16, 42, 0.2);
}

.portal-card-icon {
    padding: 2.5rem 2.5rem 1.5rem;
    font-size: 2.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(130, 16, 42, 0.08), rgba(130, 16, 42, 0.14));
    margin: 2rem 2rem 0;
    transition: all 0.35s var(--ease);
}

.portal-card:hover .portal-card-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05) rotate(-5deg);
}

.portal-card-icon--secondary {
    background: linear-gradient(135deg, rgba(196, 54, 77, 0.08), rgba(196, 54, 77, 0.14));
    color: var(--accent);
}

.portal-card:hover .portal-card-icon--secondary {
    background: var(--accent);
    color: var(--white);
}

.portal-card-icon--tertiary {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(217, 119, 6, 0.14));
    color: #D97706;
}

.portal-card:hover .portal-card-icon--tertiary {
    background: #D97706;
    color: var(--white);
}

.portal-card-body {
    padding: 1.5rem 2.5rem;
    flex-grow: 1;
}

.portal-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(130, 16, 42, 0.07);
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.portal-tag--secondary {
    color: var(--accent);
    background: rgba(196, 54, 77, 0.07);
}

.portal-tag--tertiary {
    color: #D97706;
    background: rgba(217, 119, 6, 0.07);
}

.portal-card-body h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: 0.8rem;
}

.portal-card-body>p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.portal-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.portal-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--neutral-700);
    font-weight: 500;
}

.portal-features li i {
    color: var(--primary);
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    background: rgba(130, 16, 42, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-card-footer {
    padding: 2rem 2.5rem;
    border-top: 1px solid var(--neutral-100);
    background: var(--neutral-50);
}

.portal-card-footer .btn {
    width: 100%;
    justify-content: center;
}

/* Note d'aide */
.client-help-note {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.client-help-icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.client-help-note strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--neutral-900);
    font-size: 0.95rem;
}

.client-help-note p {
    color: var(--neutral-600);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.6;
}

.client-help-note p a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Responsive portails */

@media (max-width: 768px) {
    .client-portals-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 2rem;
    }

    .portal-card-icon {
        margin: 1.5rem 1.5rem 0;
    }

    .portal-card-body {
        padding: 1.2rem 1.5rem;
    }

    .portal-card-footer {
        padding: 1.5rem;
    }

    .client-help-note {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   ARTICLES GRID — Page Actualités
   ========================================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s var(--ease-out);
    border: 1px solid var(--neutral-100);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-card-body {
    padding: 1.8rem;
    flex-grow: 1;
}

.article-card-footer {
    padding: 1rem 1.8rem;
    background: var(--neutral-50);
    border-top: 1px solid var(--neutral-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--neutral-400);
    font-size: 0.85rem;
}

/* ==========================================================================
   PAGE BANNER — bannière générique pour les pages simples
   ========================================================================== */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.page-banner h1 {
    color: var(--white);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-banner h1 em {
    color: #F4C542;
    font-family: var(--font-display);
}

.page-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 3.5rem 0 3rem;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

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

/* ==========================================================================
   RESPONSIVE — Corrections globales supplémentaires
   ========================================================================== */

/* numbers-grid : passage en 2×2 sur mobile */
@media (max-width: 600px) {
    .numbers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .number-item:nth-child(2)::after {
        display: none;
    }
}

/* service-intro-grid : passage en colonne sur mobile */
@media (max-width: 768px) {
    .service-intro-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

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

    /* top-bar : masqué sur très petit écran */
    .top-bar-left .separator,
    .top-bar-left a:last-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-bar {
        display: none;
    }

    .service-hero h1 {
        font-size: 1.75rem;
    }

    .portal-card-body h3 {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   PRESENTATION PAGE ADDITIONAL STYLES (TIMELINE & LOCATIONS)
   ========================================================================== */

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: white;
    border: 3px solid var(--secondary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-right::after {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.timeline-content .date {
    display: block;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Locations Section */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.location-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.location-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.location-header i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.location-body {
    padding: 25px;
    flex-grow: 1;
}

.location-body h4 {
    margin-top: 20px;
    color: var(--primary-color);
}

/* Expertise List (Simplified Services) */
.expertise-summary {
    background: var(--primary-color);
    color: white;
    padding: 50px 0;
    margin-top: 60px;
    text-align: center;
    border-radius: 15px;
}

.expertise-list-simple {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    list-style: none;
}

.expertise-list-simple li {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Team Badges */
.team-role-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-green);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
    text-transform: uppercase;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 22px;
    }

    .timeline-right {
        left: 0%;
    }

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

/* Recruitment Hint in Contact Page */
.recruitment-email-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
}

.recruitment-email-hint i {
    color: var(--primary-color);
    margin-top: 3px;
    font-size: 1.1rem;
}

.hint-text {
    line-height: 1.5;
    color: var(--text-color);
}

.recruitment-email-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.recruitment-email-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--neutral-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-subtitle-spaced {
    margin-top: 25px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* Footer — Social links */
.footer-social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    font-size: 1.2rem;
}

.footer-social-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* Footer — Contact items */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact-item i {
    margin-top: 5px;
    color: var(--primary-light);
}

.footer-contact-item span {
    line-height: 1.5;
}

.footer-contact-item--inline {
    align-items: center;
}

.footer-contact-item--inline i {
    margin-top: 0;
}


/* Footer — Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--white);
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   PAGES LÉGALES (Mentions légales, Confidentialité, CGV)
   ========================================================================== */
.legal-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 60px 0 50px;
    text-align: center;
}

.legal-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.legal-hero p {
    opacity: 0.85;
    font-size: 1rem;
}

.legal-page {
    padding: 80px 0;
    background: #fafafa;
}

.legal-page .container {
    max-width: 860px;
}

.legal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 50px 60px;
    margin-top: -30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.legal-content h2 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 35px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0e8ea;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.05rem;
    color: #333;
    margin: 20px 0 8px;
}

.legal-content p,
.legal-content li {
    color: #444;
    line-height: 1.8;
    font-size: 0.97rem;
}

.legal-content ul {
    padding-left: 20px;
    margin: 8px 0 15px;
}

.legal-content ul li {
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--primary);
}

.legal-info-box {
    background: #f8f4f5;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin: 15px 0;
}

.legal-info-box strong {
    display: block;
    margin-bottom: 4px;
    color: #222;
}

.legal-date {
    text-align: right;
    color: #999;
    font-size: 0.85rem;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Confidentialité — Grille des droits */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 18px 0;
}

.right-card {
    background: #f8f4f5;
    border-radius: 8px;
    padding: 16px 18px;
    border-top: 3px solid var(--primary);
}

.right-card strong {
    display: block;
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.right-card p {
    font-size: 0.88rem;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Confidentialité — Tableau des données */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.92rem;
}

.data-table th {
    background: var(--primary);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    color: #444;
    vertical-align: top;
}

.data-table tr:nth-child(even) td {
    background: #fafafa;
}

/* Confidentialité — Badge RGPD */
.rgpd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ==========================================================================
   RESPONSIVE — FOOTER
   ========================================================================== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .legal-content {
        padding: 30px 25px;
    }
}

/* ==========================================================================
   CORRECTIFS RESPONSIVE GLOBAUX (MOBILE) - AJOUTS
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --space-xl: 1.25rem;
        --space-section: 4rem;
        --fs-display: 2rem;
    }

    /* 1. Header & Navigation (Topbar & Sticky Header) */
    .topbar {
        padding: 5px 0;
    }
    .topbar-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .header {
        padding: 10px 0;
    }
    .header.scrolled {
        padding: 5px 0;
    }
    .logo-img {
        height: 50px;
    }
    .header.scrolled .logo-img {
        height: 40px;
    }

    /* 2. Typographie Globale */
    h1, .hero-content h1, .service-hero h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    h2, .section-header h2, .about-text h2, .ec-support-text h2, .ec-info-side h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    h3 {
        font-size: 1.4rem !important;
    }

    /* 3. Mises en page (Grilles / Flex) qui restaient cassées */
    .values-grid,
    .team-grid,
    .service-intro-grid,
    .service-detail-grid,
    .why-grid,
    .cabinet-intro-grid,
    .services-overview-grid,
    .contact-grid,
    .ec-login-grid,
    .ec-support-grid,
    .client-portals-grid,
    .articles-grid,
    .rights-grid,
    .portals-grid,
    .recruitment-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Statistiques (Si c'est .numbers-grid ou similaire) */
    .numbers-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Cartes de services et paddings */
    .service-card, .portal-card, .ec-advantage-card, .value-card, .team-card, .service-detail-text, .why-content {
        padding: 1.5rem !important;
    }
    
    .py-section {
        padding: 4rem 0 !important;
    }

    /* 4. Fil d'Ariane (Breadcrumb) */
    .hero-breadcrumb, .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        text-align: center;
        line-height: 1.5;
    }

    /* Ajustement de la Topbar spécifiquement si elle déborde */
    .topbar .container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1, .hero-content h1, .service-hero h1 {
        font-size: 1.6rem !important;
    }
    h2, .section-header h2 {
        font-size: 1.5rem !important;
    }
    .service-card {
        padding: 1.2rem !important;
    }
}

/* ==========================================================================
   TEAM & PILLARS SECTION (CABINET)
   ========================================================================== */
.team-group-photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.team-group-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: filter 0.8s ease;
}

/* Blur effect */
.photo-blurred img {
    filter: blur(15px) brightness(0.6);
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.blur-message {
    text-align: center;
    color: var(--white);
    max-width: 500px;
    background: rgba(26, 26, 26, 0.85);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(5px);
}

.blur-message i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.blur-message h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.blur-message p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.team-group-caption {
    background: var(--neutral-50);
    padding: 1.2rem 1.8rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    display: inline-block;
    font-size: 0.95rem;
    color: var(--neutral-700);
    border-left: 4px solid var(--primary);
}

.team-group-caption i {
    color: var(--primary);
    margin-right: 8px;
}

/* Pillars grid */
.team-pillars {
    margin-top: 5rem;
}

.team-pillars h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.pillars-grid.pillars-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.pillar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s var(--ease-out);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(130, 16, 42, 0.25);
}

.pillar-img-wrap {
    height: 340px;
    overflow: hidden;
    position: relative;
    background: var(--neutral-50);
}

.pillar-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.pillar-card:hover .pillar-img-wrap img {
    transform: scale(1.06);
}

.pillar-info {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pillar-info h4 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--neutral-900);
}

.pillar-info .pillar-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.pillar-info p {
    color: var(--neutral-600);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .pillars-grid, .pillars-grid.pillars-grid--two {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}