/* ===== VARIABLES COULEURS AFRIQUE ===== */
:root {
    --primary-red: #a63a2e;        /* Rouge africain */
    --dark-red: #8c001a;           /* Rouge foncé */
    --light-red: #ff4d4d;          /* Rouge clair */
    --african-black: #0a0a0a;      /* Noir profond */
    --dark-gray: #1a1a1a;          /* Gris foncé */
    --medium-gray: #444444;        /* Gris moyen */
    --light-gray: #f0f0f0;         /* Gris clair */
    --white: #ffffff;              /* Blanc pur */
    --gold: #d4af37;               /* Or africain */
    --earth: #8b4513;              /* Terre africaine */
    
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--african-black);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* Anchor aliases for EN/FR hashes (offset to account for fixed navbar) */
.anchor-offset {
    position: relative;
    top: -90px;
    height: 0;
    visibility: hidden;
}

.bg-white {
    background-color: var(--white);
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-dark {
    background-color: var(--dark-gray);
    color: var(--white);
}

.highlight {
    color: var(--primary-red);
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    border-bottom: 3px solid var(--primary-red);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    /* Safety: ensure navbar remains interactive */
    pointer-events: auto;
}

/* Safety: guarantee menu items remain clickable even if another layer overlaps */
.navbar * {
    pointer-events: auto;
}

.navbar.scrolled {
    padding: 15px 5%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 46px;
    max-width: 220px;
    width: auto;
    display: block;
}


.logo-icon {
    font-size: 2.8rem;
    color: var(--primary-red);
}

.logo-text h1 {
    font-size: 1.3rem;
    color: var(--african-black);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.logo-text h1 span {
    display: block;
    color: var(--primary-red);
    font-size: 0.95rem;
    font-weight: 600;
}

.tagline {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-top: 3px;
    font-style: italic;
}

.nav-main {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    position: relative;
    z-index: 2001;
}

.nav-menu li a {
    color: var(--african-black);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    position: relative;
    cursor: pointer;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-red);
    background-color: rgba(192, 10, 39, 0.05);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 60%;
}

.nav-contact {
    background-color: var(--primary-red);
    color: var(--white) !important;
    padding: 12px 25px !important;
    border-radius: 6px;
}

.nav-contact:hover {
    background-color: var(--dark-red) !important;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 2002;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--african-black);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: relative;
    height: 100%;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-text h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;

    isolation: isolate;
}

.hero-text h1::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;              /* match the H1 box to keep wrapping identical */
    width: 100%;
    white-space: normal;
    overflow: hidden;      /* prevent outline from leaking outside */
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
    pointer-events: none;
    z-index: -1;
}

.hero-text h2 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 0.9;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-width: 200px;
}

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

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(192, 10, 39, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--african-black);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    color: var(--primary-red);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3.2rem;
    color: var(--african-black);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary-red);
}

.section-title.white {
    color: var(--white);
}

.section-title.white::after {
    background-color: var(--gold);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-top: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Emphasis callout for key subtitles (keeps layout stable, avoids regressions) */
.section-subtitle--emphasis {
    display: inline-block;
    padding: 10px 14px;
    border-left: 4px solid var(--primary-red);
    background: rgba(166, 58, 44, 0.06);
    border-radius: 10px;
    font-weight: 700;
    color: var(--african-black);
}

/* Force vertical stacking when a section header contains a callout subtitle (prevents inline alignment) */
.section-header--stack .section-title {
    display: block;
}

.section-header--stack .section-subtitle--emphasis {
    display: block;
    margin-top: 30px;
}

.section-subtitle.white.section-subtitle--emphasis {
    background: rgba(255, 255, 255, 0.10);
    border-left-color: var(--gold);
    color: rgba(255, 255, 255, 0.95);
}

.section-subtitle.white {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    font-size: 2.2rem;
    color: var(--african-black);
    margin-bottom: 25px;
    font-weight: 700;
}

.about-text > p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-points {
    margin-bottom: 40px;
}

.point {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

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

.point span {
    color: var(--african-black);
    font-weight: 500;
}

.director-card {
    background-color: var(--light-gray);
    border-left: 5px solid var(--primary-red);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    gap: 25px;
    align-items: center;
    margin-top: 40px;
}

.director-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
}

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

.director-info h4 {
    color: var(--african-black);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.role {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.director-info p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== EXPERTISE SECTION ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.expertise-card {
    background-color: var(--white);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-red);
    transition: var(--transition);
}

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

.expertise-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.expertise-icon {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.expertise-card h3 {
    font-size: 1.8rem;
    color: var(--african-black);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.expertise-card > p {
    color: var(--medium-gray);
    margin-bottom: 25px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.expertise-list {
    list-style: none;
    position: relative;
    z-index: 1;
}

.expertise-list li {
    color: var(--african-black);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-weight: 500;
}

.expertise-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* ===== TEAM SECTION ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.team-image {
    height: 320px;
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(192, 10, 39, 0.9), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 15px;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--white);
    color: var(--primary-red);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.team-social a:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-5px);
}

.team-info {
    padding: 30px;
}

.team-info h3 {
    color: var(--african-black);
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}

.team-role {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    font-size: 0.95rem;
}

.team-desc {
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(192, 10, 39, 0.1);
    color: var(--primary-red);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.team-badge i {
    font-size: 0.9rem;
}

/* ===== SERVICES ACCORDION ===== */
.services-accordion {
    max-width: 900px;
    margin: 0 auto 60px;
}

.accordion-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid #eee;
}

.accordion-header {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-item.active .accordion-header {
    background-color: rgba(192, 10, 39, 0.05);
}

.accordion-header:hover {
    background-color: rgba(192, 10, 39, 0.02);
}

.accordion-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    min-width: 60px;
    text-align: center;
}

.accordion-header h3 {
    flex: 1;
    color: var(--african-black);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.accordion-toggle {
    font-size: 1.2rem;
    color: var(--primary-red);
    transition: var(--transition);
}

.accordion-item.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

/* Tagline / accroche dans les accordéons (mise en évidence) */
.service-intro{
    padding: 16px 30px 16px 115px;
    margin: 0;
    font-weight: 700;
    color: var(--african-black);
    background: rgba(192, 10, 39, 0.06);
    border-left: 4px solid var(--primary-red);

    /* Replace icon with a pill badge (more premium than an icon) */
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.service-intro i{
    display: none; /* keep markup intact but hide FontAwesome icon */
}

.service-intro::before{
    /* Default language (FR) */
    /* Add a small icon inside the badge (reliable across browsers, no FontAwesome dependency) */
    content: "✓  POINT CLÉ";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: rgba(192, 10, 39, 0.10);
    border: 1px solid rgba(192, 10, 39, 0.22);
    color: var(--primary-red);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1;
    margin-top: 2px;
    flex: 0 0 auto;
    white-space: nowrap;
}

html[lang="en"] .service-intro::before{
    content: "✓  KEY POINT";
}
/* Bloc équipe intégré dans la section Organisation */
.team-section-inline{
    padding: 90px 0;
    margin-top: 70px;
}

.service-details {
    padding: 0 30px 30px 115px;
}

.service-detail {
    margin-bottom: 25px;
}

.service-detail h4 {
    color: var(--african-black);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-detail h4 i {
    color: var(--primary-red);
    font-size: 1rem;
}

.service-detail p {
    color: var(--medium-gray);
    line-height: 1.6;
    padding-left: 27px;
}

.services-cta {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 80px;
}

.cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-content p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.services-cta .btn {
    background-color: var(--white);
    color: var(--primary-red);
    min-width: 250px;
}

.services-cta .btn:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px);
}

/* ===== CLIENTS SECTION ===== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.client-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.client-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-lg);
}

.client-logo {
    font-size: 2.2rem;
    color: var(--primary-red);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
}


/* Logo images inside client cards */
.client-logo{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.client-logo-img{
    max-height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.client-info {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.client-sector {
    color: var(--medium-gray);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-desc {
    color: var(--african-black);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
#contact {
    /* Prevent anchor navigation from hiding the section under the fixed header */
    scroll-margin-top: 110px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "info form";
    gap: 80px;
    align-items: start;
}

.contact-info { grid-area: info; }
.contact-form { grid-area: form; }

.contact-details {
    margin-top: 50px;
}

.contact-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.contact-form {
    background-color: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    color: var(--african-black);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--african-black);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(192, 10, 39, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--african-black);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo .logo {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}

.footer-logo .logo i {
    font-size: 3rem;
    color: var(--primary-red);
}

.footer-logo .logo .footer-logo-img {
    height: 54px;
    max-width: 240px;
    width: auto;
    display: block;
}

.footer-logo .logo h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--white);
}

.footer-logo .logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-motto {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-style: italic;
    padding-left: 20px;
    border-left: 3px solid var(--primary-red);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-red);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 15px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column a:hover {
    color: var(--primary-red);
    padding-left: 10px;
}

.footer-newsletter h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    margin-bottom: 30px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 6px 0 0 6px;
}

.newsletter-form button {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 15px 25px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background-color: var(--dark-red);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-bottom p:last-child {
    color: var(--primary-red);
    font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .about-content {
        gap: 50px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 30px 5%;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        /* Keep above page content and ensure it's clickable */
        z-index: 2001;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    /* Keep the contact section in 2 columns down to tablet widths */
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .services-cta .btn {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "form"
            "info";
        gap: 50px;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 80px;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text h2 {
        font-size: 1.4rem;
    }
.hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .service-details {
        padding-left: 30px;
    }

    /* ===== HERO (center on mobile) ===== */
    .hero-text {
        margin: 0 auto;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* ===== FOOTER (tablet/mobile) ===== */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

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

    .footer-logo .logo > div {
        text-align: center;
        width: 100%;
    }

    .footer-motto {
        text-align: center;
        padding-left: 0;
        border-left: 0;
        padding-top: 15px;
        border-top: 3px solid var(--primary-red);
    }

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


    /* Services accordion: alignements mobile */
    .service-intro{
        padding: 14px 20px;
        border-left-width: 3px;
        border-radius: 10px;
        margin: 0 0 12px 0;
    }
    .service-details{
        padding: 0 20px 25px 20px;
    }

}

@media (max-width: 576px) {
    /* ===== NAVBAR (mobile) ===== */
    .navbar {
        padding: 16px 4%;
    }

    .navbar.scrolled {
        padding: 12px 4%;
    }

    .logo-img {
        height: 38px;
    }

    .nav-menu {
        top: 70px;
        padding: 25px 5%;
        gap: 12px;
    }

    .nav-menu li a {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .expertise-card {
        padding: 40px 25px;
    }
    
    .accordion-header {
        padding: 25px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .accordion-icon {
        min-width: 40px;
        font-size: 2rem;
    }
    
    .accordion-header h3 {
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 30px 25px;
    }

    /* ===== FOOTER (mobile) ===== */
    .footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        gap: 35px;
        margin-bottom: 40px;
    }

    .footer-logo .logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    
    .footer-logo .logo > div {
        text-align: center;
        width: 100%;
    }

    .footer-logo .logo .footer-logo-img {
        height: 44px;
    }

    .footer-logo .logo h3 {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    /* Replace the left border by a top border to save horizontal space */
    .footer-motto {
        padding-left: 0;
        border-left: 0;
        padding-top: 15px;
        border-top: 3px solid var(--primary-red);
    }

    /* Newsletter form: stack on small screens to avoid overlap */
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input {
        border-radius: 6px;
    }

    .newsletter-form button {
        width: 100%;
        justify-content: center;
        border-radius: 6px;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-social a {
        width: 42px;
        height: 42px;
    }

    .footer-bottom p {
        font-size: 0.9rem;
        line-height: 1.6;
        word-break: break-word;
    }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
}

/* ====================================================================== */
/* Responsive hardening (mobile menu + language switch frame)              */
/* Goal: keep the layout intact on desktop, but make mobile fully usable.  */
/* ====================================================================== */

/* Mobile/tablet menu: ensure it is scrollable, fully clickable and clean */
@media (max-width: 992px) {
  .nav-menu {
    /* Use small-viewport units to avoid browser chrome issues on mobile */
    height: calc(100svh - 80px);
    max-height: calc(100svh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 26px;
  }

  /* Avoid the long underline on full-width mobile links */
  .nav-menu li a::after {
    display: none;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    width: 100%;
    justify-content: flex-start;
  }

  /* Language switch: keep a compact pill frame (not full-width) */
  .nav-menu li.lang-switch {
    align-self: center;
    width: fit-content;
    margin: 14px auto 0;
  }
}

@media (max-width: 576px) {
  .nav-menu {
    top: 70px;
    height: calc(100svh - 70px);
    max-height: calc(100svh - 70px);
    padding: 22px 5% 26px;
  }

  /* Slightly denser language switch on small screens */
  .nav-menu li.lang-switch {
    margin-top: 12px;
  }

  .lang-switch {
    height: 40px;
    padding: 6px 10px;
    border-radius: 14px;
  }
}



/* --- Language switch: cadre propre, aligné, hauteur stable --- */
.lang-switch{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  background: #fff;
  line-height: 1;
  height: 44px;               /* hauteur fixe = rendu net */
  box-sizing: border-box;
}

/* Boutons FR/EN */
.lang-switch .lang-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border: 0;                  /* IMPORTANT: le cadre est sur .lang-switch */
  border-radius: 10px;
  line-height: 1;
  font-weight: 700;
  background: transparent;
}

/* Séparateur | centré */
.lang-switch .lang-sep{
  display: inline-block;
  line-height: 1;
  opacity: .5;
  transform: translateY(-0.5px);  /* micro-ajustement */
}

/* État actif */
.lang-switch .lang-btn.active,
.lang-switch .lang-btn[aria-pressed="true"]{
  background: #a63a2c;
  color: #fff;
}

.lang-btn {
    background: transparent;
    border: none;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--african-black);
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-red);
    color: var(--white);
}

.lang-sep {
    opacity: 0.5;
}

/* Honeypot (anti-spam) */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
/* ===== Organisation (Organigramme) ===== */
.orgchart-wrapper{
  display:flex;
  justify-content:center;
  margin-top: 10px;
}
.orgchart-card{
  width:100%;
  max-width: 1100px;
  background: rgba(255,255,255,0.98);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}
.orgchart-link{
  display:block;
}
.orgchart-img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
}
.orgchart-hint{
  text-align:center;
  margin-top: 10px;
  font-size: 0.95rem;
  opacity: 0.85;
}
.orgchart-actions{
  display:flex;
  justify-content:center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.btn.btn-small{
  padding: 10px 14px;
  font-size: 0.95rem;
}

@media (max-width: 768px){
  .orgchart-card{ padding: 14px; border-radius: 16px; }
  .orgchart-hint{ font-size: 0.92rem; }
  .orgchart-actions{ width:100%; }
  .orgchart-actions .btn{ width:100%; justify-content:center; }
}
/* Language switch override to avoid double borders */
.lang-switch button{ border: 0; }

/* ====================================================================== */
/* Final responsive overrides (must be last in file to win the cascade)    */
/* ====================================================================== */

@media (max-width: 992px) {
  /* Mobile menu: keep it usable on small screens */
  .nav-menu {
    height: calc(100svh - 80px);
    max-height: calc(100svh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 26px;
  }

  /* Remove underline animation on mobile (creates long bars) */
  .nav-menu li a::after { display: none; }

  /* Ensure all menu items are full-width and easy to tap */
  .nav-menu li { width: 100%; }
  .nav-menu li a { width: 100%; justify-content: flex-start; }

  /* Language switch: compact frame (not stretched full-width) */
  .nav-menu li.lang-switch {
    align-self: center;
    width: max-content;
    margin: 14px auto 0;
  }
}

@media (max-width: 576px) {
  .nav-menu {
    top: 70px;
    height: calc(100svh - 70px);
    max-height: calc(100svh - 70px);
    padding: 22px 5% 26px;
  }

  .lang-switch {
    height: 40px;
    padding: 6px 10px;
    border-radius: 14px;
  }
}
