@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1A3E2F; /* Deep Forest Green */
  --primary-light: #2D6A4F; /* Emerald Green */
  --primary-ultra-light: rgba(45, 106, 79, 0.1);
  --accent: #E29E30; /* Golden Wheat */
  --accent-hover: #C5831D;
  --text-dark: #1F2421; /* Charcoal */
  --text-muted: #5A605D; /* Soft Slate Gray */
  --bg-light: #FCFDFD; /* Crisp White */
  --bg-soft: #F4F7F5; /* Leafy Soft Gray */
  --bg-dark: #121614; /* Deep Slate Black */
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --font-title: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 10px base */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--white); /* Changed to white for dark background visibility */
    background-color: transparent; /* Transparent to show particles */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--primary);
    font-weight: 700;
}

/* Réductions globales de taille des titres pour uniformité */
h1 { font-size: 3rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

/* Common Section Titles */
.section-title-container {
    text-align: center;
    margin-bottom: 6rem;
    padding: 0 2rem;
}

.section-title-container h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title-container h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-title-container p {
    font-size: 1.8rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Bar */
/* Navigation Bar - Floating Island Model */
.nav1 {
    background-color: rgba(255, 255, 255, 0.05); /* very subtle glass tint */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 85px;
    display: flex;
    align-items: center;
    z-index: 1000;
    
    /* Floating Island */
    width: 95%;
    max-width: 1400px;
    margin: 20px auto 0 auto !important;
    left: 0;
    right: 0;
    top: 0;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.nav1.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    height: 75px;
    margin: 10px auto 0 auto !important;
    border-radius: 50px;
}

.nav1 .navbar-brand img {
    height: 50px;
    width: auto;
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.nav1.scrolled .navbar-brand img {
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

/* Agrandir légèrement le logo de la navbar au survol */
.nav1 .navbar-brand img:hover {
    transform: scale(1.08);
}

/* Navbar buttons & links */
.nav1 .nav-item {
    margin-left: 0.8rem;
}

.nav1 .nav-link {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    padding: 0.8rem 1.6rem !important;
    border-radius: 30px; /* Pill shape for links */
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    z-index: 1;
}

/* Animated Pill Hover Background */
.nav1 .nav-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--accent);
    border-radius: 30px;
    z-index: -1;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav1 .nav-link i {
    font-size: 1rem;
    transition: transform 0.4s ease;
}

.nav1.scrolled .nav-link {
    color: #000000;
}

/* Hover States */
.nav1 .nav-link:hover {
    color: #000000; /* Dark text on golden pill */
}

.nav1 .nav-link:hover::before {
    transform: scale(1);
    opacity: 1;
}

.nav1 .nav-link:hover i {
    transform: scale(1.15);
}

.nav1.scrolled .nav-link::before {
    background-color: var(--primary-ultra-light); /* Softer pill on white navbar */
}

.nav1.scrolled .nav-link:hover {
    color: var(--primary);
}

/* Offcanvas Menu Customization */
.offcanvas {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
}
.offcanvas-title {
    color: var(--white) !important;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.5rem;
}

@media (max-width: 991.98px) {
    .offcanvas-body {
        padding: 3rem 2rem;
    }
    .offcanvas-body .navbar-nav {
        gap: 1.5rem;
    }
    .nav1 .nav-item {
        margin-left: 0;
        width: 100%;
    }
    .nav1 .nav-link {
        width: 100%;
        background-color: rgba(255, 255, 255, 0.05);
        padding: 1.5rem !important;
        color: var(--white) !important;
    }
    .nav1 .nav-link:hover {
        background-color: var(--white);
        color: #000000 !important;
    }
}

/* Hero Section (Slider) */
.containers {
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    position: relative;
    overflow: hidden;
}

.left-col {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
}

.left-col .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat;
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.2s ease-in-out;
    transform: scale(1.1);
    z-index: 1;
}

.left-col .slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 22, 20, 0.5) 0%, rgba(18, 22, 20, 0.85) 100%);
    z-index: 2;
}

.left-col .slide.current {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.left-col .slide.previous {
    opacity: 0;
    transform: scale(0.95);
    z-index: 1;
}

/* Hero Captions */
.caption {
    position: absolute;
    top: 55%;
    left: 10%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 800px;
    pointer-events: none;
}

.caption.current-caption {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
}

.caption .caption-heading h1 {
    font-family: var(--font-title);
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    line-height: 1.15;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.05rem;
}

.caption .caption-subhead {
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4rem;
    line-height: 1.5;
}

.caption .hero-actions {
    display: flex;
    gap: 2rem;
}

.caption .hero-btn {
    display: inline-block;
    padding: 1.5rem 3.5rem;
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: var(--transition-smooth);
}

.caption .hero-btn-primary {
    background-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(226, 158, 48, 0.3);
}

.caption .hero-btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(226, 158, 48, 0.5);
}

.caption .hero-btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
}

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

/* Slider Controls */
.nav {
    position: absolute;
    bottom: 5rem;
    right: 10%;
    z-index: 20;
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav li {
    display: block;
}

.nav a {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 300;
    transition: var(--transition-smooth);
    background-color: rgba(18, 22, 20, 0.2);
    backdrop-filter: blur(5px);
}

.nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Expertise Section */
.expertise {
    padding: 12rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.expertise-img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.expertise-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.expertise-img-wrapper:hover img {
    transform: scale(1.03);
}

.expertise-img-wrapper::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    pointer-events: none;
}

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

.expertise-tag {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.expertise-text h2 {
    font-size: 2.5rem;
    line-height: 1.25;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.expertise-text p {
    font-size: 1.7rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 4rem;
}

.expertise-text .span {
    font-weight: 700;
    color: var(--primary);
}

.expertise-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 3.5rem;
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.6rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(26, 62, 47, 0.15);
}

.expertise-btn:hover {
    background-color: var(--primary-light);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(26, 62, 47, 0.3);
    color: var(--white);
}

.expertise-btn span {
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}

.expertise-btn:hover span {
    transform: translateX(4px);
}

/* Statistics Section */
.statis1 {
    display: none; /* Replaced by elegant title in layout */
}

.statistic-section {
    background: linear-gradient(135deg, var(--primary) 0%, #112B20 100%);
    border-radius: 30px;
    padding: 8rem 4rem;
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.statistic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(226, 158, 48, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.statistic-section .row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.counter {
    text-align: center;
    position: relative;
    padding: 1.2rem;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.counter:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(226, 158, 48, 0.2);
}

.counter .stats-icon {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    display: inline-block;
}

.counter .count-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.3rem;
    letter-spacing: -0.1rem;
}

.counter .stats-line-black {
    width: 25px;
    height: 2px;
    background-color: var(--accent);
    margin: 0.6rem auto;
    border-radius: 2px;
}

.counter .stats-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 600;
}

/* Certifications Section (Infinite CSS Marquee) */
#certification {
    display: none; /* Replaced by the section header */
}

.section-certifs {
    padding: 10rem 0;
    background-color: transparent;
    position: relative;
}

/* Infinite Scrolling Ribbon */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 25s linear infinite;
    gap: 3rem;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-light);
    background-color: var(--white);
    padding: 1.8rem 4rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    border: 1px solid rgba(45, 106, 79, 0.08);
    transition: var(--transition-smooth);
    display: inline-block;
}

.marquee-item:hover {
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Localisation Section */
.localisation-h1 {
    display: none; /* Replaced by common header */
}

.localisation-section {
    padding: 12rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.localisation {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: rgba(255, 255, 255, 0.02); /* Glass effect instead of solid white */
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    align-items: center;
    border: 1px solid rgba(0,0,0,0.02);
}

#info-qauche {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#info-qauche iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

#info-droit {
    padding: 2rem;
    text-align: left;
}

#info-droit h3 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

#info-droit p {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    line-height: 1.6;
}

#info-droit button {
    border: none;
    background-color: transparent;
    padding: 0;
}

#info-droit button a {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.8rem 3.5rem;
    background-color: var(--accent);
    color: var(--primary);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.6rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(226, 158, 48, 0.25);
    transition: var(--transition-smooth);
}

#info-droit button a:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(226, 158, 48, 0.4);
}

/* Activities (Services Grid) */
.activite {
    display: none; /* Replaced by common title */
}

.activities-section {
    padding: 12rem 2rem;
    background-color: transparent;
}

.activites {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.grid1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
    width: 100%;
}

.grid1 .card1 {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid1 .card1:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(45, 106, 79, 0.15);
}

.grid1 .card__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.grid1 .card1:hover .card__img {
    transform: scale(1.05);
}

.grid1 .card__content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.grid1 .card__header {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.grid1 .card__text-wrapper {
    flex-grow: 1;
    margin-bottom: 3rem;
}

.grid1 .card__text {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.grid1 .card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.4rem;
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--bg-soft);
    border: 1px solid rgba(26, 62, 47, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.grid1 .card1:hover .card__btn {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.grid1 .card__btn span {
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}

.grid1 .card__btn:hover span {
    transform: translateX(4px);
}

/* Members / Team Section */
.membre {
    display: none; /* Replaced by common title */
}

.team-section {
    padding: 12rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cont {
    margin-bottom: 5rem;
    display: flex;
    justify-content: center;
}

.enligne {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 3rem 3rem;
    text-align: center;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--primary-ultra-light);
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(226, 158, 48, 0.2);
}

.img-bx {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.img-bx img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .content {
    position: static;
    padding: 0;
    width: 100%;
}

.card .content .detail h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.card .content .detail h2 span {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-top: 0.3rem;
}

.card .content .detail .contact-info {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-top: 1.2rem;
    line-height: 1.4;
}

.sci {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
    list-style: none;
    width: 100%;
}

.sci li a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(26, 62, 47, 0.05);
}

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

/* Partner Logo Slider (Infinite CSS Scroll) */
.partenaires {
    padding: 10rem 0;
    background-color: transparent;
    border-top: 1px solid rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.partenaires-container {
    max-width: 1200px;
    margin: 0 auto;
}

#marquee {
    width: 100%;
    overflow: hidden;
}

.partner-marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-partners 30s linear infinite;
    gap: 6rem;
    align-items: center;
}

.partner-marquee-track:hover {
    animation-play-state: paused;
}

.partner-logo-wrapper {
    display: inline-block;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.partner-logo-wrapper:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo-wrapper img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ================= Modern Footer ================= */
.modern-footer {
    background-color: var(--primary); /* Deep Forest Green */
    color: var(--white);
    padding: 2rem 2rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
}

/* Subtle glowing gradients in corners */
.modern-footer::before, .modern-footer::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.3;
}
.modern-footer::before {
    top: -100px;
    left: -100px;
    background-color: var(--accent);
}
.modern-footer::after {
    bottom: -100px;
    right: -100px;
    background-color: var(--primary-light);
}

.modern-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Titles */
.modern-footer .footer-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.8rem;
}
.modern-footer .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Brand Column */
.modern-footer .footer-logo {
    height: 60px;
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.modern-footer .footer-logo:hover {
    background-color: var(--white);
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
    transform: scale(1.05);
}
.modern-footer .footer-slogan {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 300px;
}
.modern-footer .social-links {
    display: flex;
    gap: 1.5rem;
}
.modern-footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1.6rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modern-footer .social-links a:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Links & Contact Lists */
.modern-footer .footer-links ul, .modern-footer .footer-contact ul {
    list-style: none;
    padding: 0;
}
.modern-footer .footer-links ul li, .modern-footer .footer-contact ul li {
    margin-bottom: 1.5rem;
}
.modern-footer .footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    display: inline-block;
}
.modern-footer .footer-links ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.modern-footer .footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    line-height: 1.5;
}
.modern-footer .footer-contact ul li i {
    color: var(--accent);
    margin-top: 0.4rem;
    font-size: 1.6rem;
}

/* Newsletter Card */
.modern-footer .footer-newsletter-card {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2.5rem;
    border-radius: 16px;
}
.modern-footer .footer-newsletter-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    margin-bottom: 2rem;
}
.modern-footer #subscribe-modern {
    display: flex;
    position: relative;
}
.modern-footer #subscribe-modern input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 4.5rem 1.2rem 1.5rem;
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.4rem;
    outline: none;
    transition: var(--transition-smooth);
}
.modern-footer #subscribe-modern input:focus {
    border-color: var(--accent);
}
.modern-footer #subscribe-modern button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border: none;
    background-color: var(--accent);
    color: var(--primary);
    width: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modern-footer #subscribe-modern button:hover {
    background-color: var(--white);
    transform: scale(1.05);
}

/* Footer Bottom */
.modern-footer .footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}
.modern-footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    margin: 0;
}
.modern-footer .footer-bottom-links {
    display: flex;
    gap: 2rem;
}
.modern-footer .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    transition: var(--transition-smooth);
}
.modern-footer .footer-bottom-links a:hover {
    color: var(--accent);
}

/* Responsive Media Queries */
@media only screen and (max-width: 1200px) {
    .expertise {
        padding: 8rem 2rem;
    }
    .expertise-layout {
        gap: 4rem;
    }
    .grid1 {
        grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    }
}

@media only screen and (max-width: 991px) {
    .nav1 {
        height: 80px;
    }
    .nav1 .btn {
        margin-left: 1rem;
    }
    .nav1 .btn a {
        font-size: 1.4rem;
        padding: 0.8rem 1.2rem;
    }
    
    .expertise-layout {
        grid-template-columns: 1fr;
        gap: 6rem;
    }
    .expertise-img-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
    .expertise-text {
        text-align: center;
    }
    
    .statistic-section .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .localisation {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 2rem;
    }
    #info-droit {
        text-align: center;
    }
    
    footer .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

@media only screen and (max-width: 768px) {
    .section-title-container h1 {
        font-size: 3rem;
    }
    .caption {
        left: 5%;
        right: 5%;
    }
    .caption .caption-heading h1 {
        font-size: 4rem;
    }
    .caption .hero-actions {
        flex-direction: column;
        gap: 1.5rem;
    }
    .caption .hero-btn {
        width: 100%;
        text-align: center;
    }
    .nav {
        display: none; /* Hide slider arrows on mobile for cleaner look */
    }
    
    .statistic-section {
        padding: 6rem 2rem;
    }
    .counter .count-title {
        font-size: 3.5rem;
    }
    
    .modern-footer .footer-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .modern-footer .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    footer {
        padding: 6rem 2rem 3rem;
    }
    footer .logo-row {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    footer .row {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media only screen and (max-width: 480px) {
    .statistic-section .row {
        grid-template-columns: 1fr;
    }
    .grid1 {
        grid-template-columns: 1fr;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 10rem 2rem;
    background: transparent;
}

.testimonials-section .section-title-container {
    margin-bottom: 6rem;
}

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

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    border: 1px solid rgba(45, 106, 79, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(45, 106, 79, 0.2);
}

.testimonial-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.3rem 0 0 0;
}

.testimonial-stars {
    color: #FFC107;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
}

.testimonial-stars i {
    margin-right: 0.3rem;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

@media only screen and (max-width: 768px) {
    .testimonials-section {
        padding: 6rem 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
}

@media only screen and (max-width: 480px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}