/* ==========================================================================
   Theme Cabinet d'Avocats - Design Clair & Elegant
   Inspire de wiseavocats.com — Palette indigo (logo) + or
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Theme CLAIR
   -------------------------------------------------------------------------- */
:root {
    /* Couleurs principales - Logo indigo */
    --color-primary: #2D1F6B;
    --color-primary-light: #4A3A9F;
    --color-primary-dark: #1A1240;
    --color-primary-rgb: 45, 31, 107;

    --color-secondary: #C9A84C;
    --color-secondary-light: #D4BA6A;
    --color-secondary-dark: #A68A3A;

    --color-accent: #7C5CFC;
    --color-accent-light: #9B82FD;
    --color-accent-dark: #5A3AD4;

    /* Theme clair */
    --color-dark: #1A1240;
    --color-light: #F8F7F4;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-border: rgba(45, 31, 107, 0.1);
    --color-border-light: #E8E5E0;

    /* Surface colors - theme clair */
    --color-surface: #FFFFFF;
    --color-surface-light: #F8F7F4;

    /* Couleurs de statut */
    --color-success: #48BB78;
    --color-info: #4299E1;
    --color-warning: #ECC94B;
    --color-danger: #F56565;

    /* Typographie moderne - Fluid Scaling */
    --font-primary: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Typescale fluide avec clamp() */
    --text-xs:   clamp(0.75rem,  0.7rem + 0.25vw, 0.8rem);
    --text-sm:   clamp(0.875rem, 0.8rem + 0.375vw, 0.95rem);
    --text-base: clamp(1rem,     0.9rem + 0.5vw,   1.125rem);
    --text-lg:   clamp(1.125rem, 1rem + 0.625vw,   1.25rem);
    --text-xl:   clamp(1.25rem,  1.1rem + 0.75vw,  1.5rem);
    --text-2xl:  clamp(1.5rem,   1.3rem + 1vw,     1.875rem);
    --text-3xl:  clamp(1.875rem, 1.5rem + 1.875vw, 2.25rem);
    --text-4xl:  clamp(2.25rem,  1.75rem + 2.5vw,  3rem);
    --text-5xl:  clamp(3rem,      2rem + 3.5vw,     4rem);

    /* Line-height fluide */
    --leading-tight:   1.15;
    --leading-snug:     1.35;
    --leading-normal:   1.55;
    --leading-relaxed:  1.75;
    --leading-loose:   1.9;

    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    --spacing-3xl: 5rem;

    /* Bordures et ombres - legeres pour theme clair */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.12);
    --shadow-colored: 0 8px 30px rgba(45, 31, 107, 0.1);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset et base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text);
    background-color: var(--color-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Typographie moderne avec fluid scaling
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: var(--leading-tight);
    color: var(--color-primary);
    margin-top: 0;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-5xl);
    margin-bottom: var(--spacing-lg);
}
h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--spacing-md);
}
h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-sm);
}
h4 {
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-xs);
}
h5 {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-xs);
}
h6 {
    font-size: var(--text-lg);
}

p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--spacing-md);
}

.lead {
    font-size: var(--text-xl);
    line-height: var(--leading-normal);
    color: var(--color-text-light);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-light {
    background-color: var(--color-surface-light);
}

.section-accent {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

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

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.emergency-banner {
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    text-align: center;
    padding: 0.75rem var(--spacing-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

.emergency-banner a {
    color: var(--color-white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.emergency-banner .phone-number {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin: 0 0.5rem;
}

.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-brand span {
    color: var(--color-primary);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-xs);
    align-items: center;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: rgba(45, 31, 107, 0.06);
}

.nav-link.active {
    color: var(--color-primary);
    background-color: rgba(45, 31, 107, 0.06);
    font-weight: 600;
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-dark) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.25);
    color: var(--color-dark) !important;
}

/* Mobile menu */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius);
    transition: background var(--transition-fast);
}

.navbar-toggler:hover {
    background: var(--color-surface-light);
}

.navbar-toggler span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 6px auto;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

@media (max-width: 968px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
        border: 1px solid var(--color-border-light);
        border-top: none;
    }

    .navbar-nav.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    background: var(--color-surface-light);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(45, 31, 107, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    margin-bottom: var(--spacing-md);
    line-height: 1.15;
    color: var(--color-primary);
}

.hero-text h1 span {
    color: var(--color-secondary);
}

.hero-text .lead {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.hero-image {
    position: relative;
}

.hero-image img,
.hero-image > div {
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--border-radius-xl);
    z-index: -1;
    opacity: 0.15;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border-light);
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-image::before {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-dark);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
    color: var(--color-dark);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(45, 31, 107, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 31, 107, 0.3);
    color: var(--color-white);
}

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

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

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(124, 92, 252, 0.2);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 92, 252, 0.3);
    color: var(--color-white);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

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

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border-light);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: rgba(45, 31, 107, 0.2);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.card-text {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

/* Service cards */
.service-card {
    text-align: center !important;
    padding: var(--spacing-xl);
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.service-card .card-body {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-grow: 1 !important;
    width: 100% !important;
}

.service-card .card-body h3,
.service-card h3 {
    text-align: center !important;
    width: 100% !important;
}

.service-card .service-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.service-card .card-body p {
    text-align: center !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: rgba(45, 31, 107, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

/* Team cards */
.team-card {
    text-align: center;
    overflow: hidden;
}

.team-card .card-img-top,
.team-card img {
    height: 280px;
    transition: transform var(--transition-slow);
}

.team-card:hover .card-img-top,
.team-card:hover img {
    transform: scale(1.05);
}

.team-card .card-body {
    position: relative;
    z-index: 1;
    background: var(--color-white);
}

.team-role {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Testimonial cards */
.testimonial-card {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--color-primary);
    position: relative;
}

.testimonial-rating {
    color: var(--color-warning);
    margin-bottom: var(--spacing-sm);
}

.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-lg);
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--color-primary);
    position: absolute;
    top: -15px;
    left: -5px;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
}

.testimonial-name {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0;
}

.testimonial-info {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Grids
   -------------------------------------------------------------------------- */
.services-grid,
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.reasons-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 968px) {
    .services-grid,
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid,
    .reasons-grid {
        grid-template-columns: 1fr;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img,
.about-image > div {
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--color-primary);
    border-radius: var(--border-radius-xl);
    z-index: -1;
    opacity: 0.15;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 15px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.15;
}

.about-text h2 {
    margin-bottom: var(--spacing-md);
}

.values-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--color-surface-light);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    border: 1px solid var(--color-border-light);
}

.values-list li:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.values-list li::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image::before,
    .about-image::after {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   CTA Section - Reste sombre pour contraste
   -------------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

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

.cta-section > * {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xxl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border-light);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
    border-color: rgba(45, 31, 107, 0.2);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.125rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-primary);
}

.contact-details p {
    color: var(--color-text-light);
    margin: 0;
}

.contact-form {
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

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

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: var(--spacing-md);
}

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

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--color-border-light);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    font-family: inherit;
    background: var(--color-white);
    color: var(--color-text);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(45, 31, 107, 0.08);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

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

select.form-control {
    appearance: auto;
}

select.form-control option {
    background: var(--color-white);
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Footer - Reste sombre (indigo) pour contraste
   -------------------------------------------------------------------------- */
.site-footer {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    display: block;
    color: var(--color-secondary);
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social a:hover {
    background: var(--color-secondary);
    color: var(--color-dark);
    border-color: transparent;
    transform: translateY(-4px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
    font-family: var(--font-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--color-secondary);
}

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

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

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

/* --------------------------------------------------------------------------
   Page Content
   -------------------------------------------------------------------------- */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-header h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header .lead {
    font-size: 1.25rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.page-header--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 0;
}

.page-header--image::before {
    background: rgba(26, 18, 64, 0.7);
}

.page-content {
    padding: var(--spacing-xxl) 0;
}

.page-content img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Domaine Cards (page domaines d'intervention)
   -------------------------------------------------------------------------- */
.domaine-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 2.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.domaine-card--reverse {
    direction: rtl;
}

.domaine-card--reverse > * {
    direction: ltr;
}

.domaine-card__image {
    overflow: hidden;
    position: relative;
}

.domaine-card__image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 350px;
    max-height: 400px;
    object-fit: cover !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: transform 0.4s ease;
}

.domaine-card:hover .domaine-card__image img {
    transform: scale(1.05);
}

.domaine-card__content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.domaine-card__content h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.domaine-card__content h3 i {
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

.domaine-card__content h4 {
    color: var(--color-secondary);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.domaine-card__content p {
    text-align: justify;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.domaine-card__content .lead {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.domaine-card__content ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.domaine-card__content ul li {
    margin-bottom: 0.5rem;
    color: var(--color-text);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .domaine-card {
        grid-template-columns: 1fr;
    }
    .domaine-card--reverse {
        direction: ltr;
    }
    .domaine-card__image img {
        min-height: 220px !important;
        max-height: 280px !important;
    }
    .domaine-card__content {
        padding: 1.5rem;
    }
    .domaine-card__content h3 {
        font-size: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   Dynamic Section styling
   -------------------------------------------------------------------------- */
.dynamic-section {
    padding: var(--spacing-xl) 0;
    border-radius: var(--border-radius-lg);
    margin-top: var(--spacing-xl);
}

.section-title {
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.section-subtitle {
    margin-bottom: var(--spacing-lg);
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: var(--spacing-sm) 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding: 0 var(--spacing-sm);
    color: var(--color-text-muted);
}

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

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

.breadcrumb-item.active {
    color: var(--color-text);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Section Header - En-tete de section standardise
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
    font-size: var(--text-lg);
}

/* Backward compatibility */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title h2 {
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    border-radius: 2px;
}

.section-title p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
    font-size: var(--text-lg);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 18, 64, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-lg);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: var(--color-white);
    font-weight: 600;
    margin: 0;
    font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-info {
    background: linear-gradient(135deg, #4299E1 0%, #3182CE 100%);
    color: white;
}

.bg-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
}

.bg-success {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
}

.bg-secondary {
    background: linear-gradient(135deg, #718096 0%, #4A5568 100%);
    color: white;
}

/* --------------------------------------------------------------------------
   Utilities - Alignement et Espacement
   -------------------------------------------------------------------------- */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-light); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: var(--color-white); }
.text-secondary-color { color: var(--color-secondary); }

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

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }

.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-items-stretch { align-items: stretch; }

.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }

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

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; }

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

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

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

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

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: var(--spacing-xs); padding-right: var(--spacing-xs); }
.px-2 { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
.px-3 { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.px-4 { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }

.me-1 { margin-right: var(--spacing-xs); }
.me-2 { margin-right: var(--spacing-sm); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Image utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Opacity utilities */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* Width utilities */
.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }
.w-auto { width: auto; }

/* Max-width utilities */
.max-w-sm { max-width: 540px; }
.max-w-md { max-width: 720px; }
.max-w-lg { max-width: 960px; }
.max-w-xl { max-width: 1140px; }
.max-w-2xl { max-width: 1320px; }

/* Content body styles */
.content-body {
    background: var(--color-surface);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
}

.content-body p {
    line-height: var(--leading-relaxed);
    margin-bottom: var(--spacing-md);
}

.content-body h2, .content-body h3, .content-body h4 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.content-body ul, .content-body ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.content-body li {
    margin-bottom: var(--spacing-xs);
}

/* Sidebar sticky */
.sidebar-sticky {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* Social share buttons hover effect */
.footer-social a {
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    transform: translateY(-3px);
    color: var(--color-secondary);
}

/* Social share buttons in sidebar */
.smooth-transition:hover {
    transform: translateY(-3px) scale(1.1);
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
}

/* Text decoration utilities */
.text-decoration-none { text-decoration: none; }
.text-decoration-underline { text-decoration: underline; }

/* Border utilities */
.border-0 { border: none; }
.border-top { border-top: 1px solid var(--color-border-light); }
.border-bottom { border-bottom: 1px solid var(--color-border-light); }
.border-left { border-left: 1px solid var(--color-border-light); }
.border-right { border-right: 1px solid var(--color-border-light); }

/* List utilities */
.list-unstyled { list-style: none; padding: 0; margin: 0; }

/* Flex-grow utilities */
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow-0 { flex-grow: 0; }

/* Opacity utilities for hover states */
.smooth-transition {
    transition: all var(--transition-normal);
}

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Row & Columns */
.row { display: flex; flex-wrap: wrap; margin: -0.75rem; }
.row > * { padding: 0.75rem; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }

@media (max-width: 768px) {
    .col-md-4, .col-md-6, .col-lg-4 { flex: 0 0 100%; max-width: 100%; }
}

.g-4 { gap: var(--spacing-lg); margin: 0; }
.g-4 > * { padding: 0; }

/* Background variants */
.bg-white { background-color: var(--color-white); }
.bg-light { background-color: var(--color-surface-light); }
.bg-primary { background-color: var(--color-primary); }
.bg-dark { background-color: var(--color-dark); }
.bg-gradient-primary { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); }

/* Border utilities */
.border { border: 1px solid var(--color-border-light); }
.border-0 { border: none; }
.border-top { border-top: 1px solid var(--color-border-light); }
.border-bottom { border-bottom: 1px solid var(--color-border-light); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border-light); color: var(--color-text); }
.table-light th { background: var(--color-surface-light); }
.table-bordered { border: 1px solid var(--color-border-light); }
.table-bordered th, .table-bordered td { border: 1px solid var(--color-border-light); }
.table-hover tbody tr:hover { background: rgba(45, 31, 107, 0.03); }
.table-responsive { overflow-x: auto; }

.alert { padding: var(--spacing-md); border-radius: var(--border-radius); margin-bottom: var(--spacing-md); }
.alert-info { background: rgba(66, 153, 225, 0.1); color: #2B6CB0; border: 1px solid rgba(66, 153, 225, 0.2); }

.progress { height: 8px; background: var(--color-surface-light); border-radius: 4px; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%); height: 100%; }

/* --------------------------------------------------------------------------
   Animations modernisees
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delais echelonnes pour les grilles */
.services-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.services-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.services-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.services-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.services-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.services-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

.reasons-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.reasons-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.reasons-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.reasons-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

/* Reasons card - centrage */
.reasons-grid .card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: 100%;
    padding: var(--spacing-lg);
}

.reasons-grid .card h3 {
    text-align: center !important;
    width: 100% !important;
    margin-bottom: var(--spacing-sm);
}

.reasons-grid .card p {
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 0;
}

.reasons-grid .card > div:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hover effects sur cartes */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Smooth hover transitions */
.smooth-transition {
    transition: all var(--transition-normal);
}

.smooth-transition:hover {
    transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */
#back-to-top {
    width: 50px;
    height: 50px;
    z-index: 999;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    position: fixed;
    bottom: 30px;
    right: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(45, 31, 107, 0.25);
}

/* --------------------------------------------------------------------------
   Print styles
   -------------------------------------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .emergency-banner,
    .btn,
    #back-to-top {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}
