/* ==================================================================
  1. VARIABLES & STYLES GLOBAUX
================================================================== */
:root {
    --primary-blue: #0A2540;  
    --primary-blue-light: #1A3A5A; 
    --primary-blue-dark: #071c30; 
    --primary-orange: #F94F21; 
    --text-dark: #333333;
    --text-light: #f4f7f6;
    --bg-light: #FFFFFF;
    --bg-grey: #f9f9f9; /* Gris plus clair */
    --font-main: 'Inter', sans-serif;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
body.no-scroll {
    overflow: hidden; /* Empêche le scroll quand le menu mobile est ouvert */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.container-small {
    max-width: 800px;
}

a {
    text-decoration: none;
    color: var(--primary-orange);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-orange);
    opacity: 0.8;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* Styles de section communs */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1rem;
}
.section-title-left {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    text-align: left;
    margin-bottom: 1rem;
}
.section-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.section-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    color: #555;
}
.text-center { text-align: center; }

/* Arrière-plans de section */
.section-light { padding: 6rem 0; background: var(--bg-light); }
.section-grey  { padding: 6rem 0; background: var(--bg-grey); }
.section-dark  { 
    padding: 6rem 0; 
    background: var(--primary-blue); 
    color: var(--text-light); 
}

.section-dark .section-title,
.section-dark .section-title-left { color: var(--text-light); }
.section-dark .section-subtitle { color: var(--primary-orange); }
.section-dark .section-description { color: var(--text-light); opacity: 0.8; }

/* Bouton d'Appel à l'Action (CTA) */
.cta-button {
    background-color: var(--primary-orange);
    color: var(--text-light) !important;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    display: inline-block;
    border: 2px solid var(--primary-orange);
    transition: all 0.3s ease;
}
.cta-button:hover {
    background-color: transparent;
    color: var(--primary-orange) !important;
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    opacity: 1;
}

/* ==================================================================
  2. HEADER (MENU DE NAVIGATION)
================================================================== */
.navbar {
    background: transparent;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease-out;
}
.navbar.scrolled {
    background: var(--primary-blue);
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo img {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
}
.faq-item summary::after {
    content: '\f078';                 /* Code Font Awesome pour "chevron-down" */
    font-family: 'Font Awesome 6 Free';  /* Police Font Awesome */
    font-weight: 900;                 /* Nécessaire pour les icônes solides */
    font-size: 1rem;                  /* Ajustez la taille si besoin */
    color: var(--primary-orange);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
}
.nav-menu {
    display: flex;
    align-items: center;
}
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-menu a {
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem;
    position: relative;
}
.nav-menu a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.nav-menu a:hover,
.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}
.nav-menu .nav-cta {
    margin-left: 1rem;
}
.nav-menu .nav-cta:hover {
    color: var(--text-light) !important;
    background: transparent;
    border-color: var(--text-light);
}

/* Sélecteur de langue */
.lang-switcher {
    margin-left: 1.5rem;
    display: flex;
    gap: 0.5rem;
}
.lang-switcher a {
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
}
.lang-switcher a.active {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}
.lang-switcher a:not(.active):hover {
    opacity: 1;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle { display: none; }

/* ==================================================================
  3. SECTION HERO
================================================================== */
.hero-premier {
    background: linear-gradient(rgba(10, 37, 64, 0.85), rgba(10, 37, 64, 0.85)), 
                url('/cdn/hero-background.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}
.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 1rem 0 1.5rem 0;
    max-width: 800px;
}
.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}
.hero-premier .cta-button:hover {
    background-color: var(--bg-light);
    color: var(--primary-orange) !important;
    border-color: var(--bg-light);
}

/* ==================================================================
  4. SECTION QUI NOUS SOMMES
================================================================== */
.qui-sommes-nous-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.qui-sommes-nous-grid.reverse {
    grid-template-columns: 1fr 1fr;
}
.qui-sommes-nous-grid.reverse .qui-sommes-nous-content {
    order: 2;
}
.qui-sommes-nous-grid.reverse .qui-sommes-nous-image {
    order: 1;
}
.qui-sommes-nous-content p {
    margin-bottom: 1rem;
    color: #555;
}
.qui-sommes-nous-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}


/* ==================================================================
  5. SECTION SERVICES
================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--primary-blue-light);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border-bottom: 4px solid var(--primary-orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.service-card i {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    display: block;
}
.service-card h3 {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* ==================================================================
  6. SECTION DIRECTION
================================================================== */
.direction-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}
.direction-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.direction-info .role {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}
.direction-info p {
    color: #555;
    margin-bottom: 1rem;
}

/* ==================================================================
  7. SECTION AVANTAGES / APPROCHE
================================================================== */
.approche-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.approche-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.approche-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.approche-card i {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}
.approche-card h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* ==================================================================
  8. SECTION FAQ
================================================================== */
.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}
.faq-item summary {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    padding: 1.2rem 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}
.faq-item[open] summary {
    color: var(--primary-orange);
}
.faq-item p {
    padding: 0 1rem 1.5rem 0;
    font-size: 0.95rem;
    color: #555;
}

/* ==================================================================
  9. SECTION CTA FINAL
================================================================== */
.section-cta {
    background: var(--primary-orange);
    padding: 5rem 0;
}
.section-cta .section-title {
    color: var(--text-light);
}
.section-cta .section-description {
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 2rem;
}
.section-cta .cta-button {
    background: var(--bg-light);
    color: var(--primary-orange) !important;
    border-color: var(--bg-light);
}
.section-cta .cta-button:hover {
    background: transparent;
    color: var(--text-light) !important;
    border-color: var(--text-light);
}

/* ==================================================================
  10. SECTION CONTACT
================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--primary-blue-light);
    background: var(--primary-blue-light);
    border-radius: 5px;
    font-family: var(--font-main);
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}
.contact-info h3 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}
.contact-info ul li {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.contact-info ul li strong {
    display: block;
    color: var(--primary-orange);
    font-size: 0.9rem;
}
.contact-info ul li a {
    color: var(--text-light);
    font-weight: 700;
}
.contact-info ul li a:hover {
    color: var(--primary-orange);
    opacity: 1;
}

/* ==================================================================
  11. FOOTER
================================================================== */
.footer {
    background: var(--primary-blue-dark);
    color: var(--text-light);
    padding: 3rem 0;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-logo img {
    height: 70px;
    opacity: 0.8;
}
.footer-nav {
    display: flex;
    gap: 1.5rem;
}
.footer-nav a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.8;
}
.footer-nav a:hover {
    opacity: 1;
    color: var(--primary-orange);
}
.footer-copyright p {
    font-size: 0.9rem;
    opacity: 0.7;
}
.lang-switcher-mobile {
    display: none;
}
    /* ==================================================================
    13. STYLES POUR MESSAGES AJAX
    ================================================================== */
    #form-messages {
        padding: 1rem;
        margin-bottom: 1.5rem;
        border-radius: 5px;
        font-weight: 700;
        text-align: center;
        display: none; /* Caché par défaut */
    }

    #form-messages.message {
        display: block; /* Afficher quand il y a un message */
    }

    #form-messages.success {
        background-color: #d1e7dd; /* Vert clair */
        color: #0f5132; /* Vert foncé */
        border: 1px solid #badbcc;
    }

    #form-messages.error {
        background-color: #f8d7da; /* Rouge clair */
        color: #842029; /* Rouge foncé */
        border: 1px solid #f5c2c7;
    }

    #form-messages.waiting {
        background-color: #cff4fc; /* Bleu clair */
        color: #055160; /* Bleu foncé */
        border: 1px solid #b6effb;
    }
/* ==================================================================
  12. RESPONSIVE
================================================================== */

@media (max-width: 900px) {
    .section-title, .section-title-left { font-size: 2rem; }
    
    .qui-sommes-nous-grid,
    .qui-sommes-nous-grid.reverse {
        grid-template-columns: 1fr;
    }
    .qui-sommes-nous-grid.reverse .qui-sommes-nous-content {
        order: 1;
    }
    .qui-sommes-nous-image {
        margin-top: 2rem;
        order: 2;
    }

    .services-grid { grid-template-columns: 1fr 1fr; }
    .direction-grid { grid-template-columns: 1fr; }
    .direction-image { text-align: center; margin-bottom: 2rem; }
    .approche-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* --- Styles Globaux pour Mobile --- */
    body {
        font-size: 15px; /* Réduire légèrement la taille de base */
        line-height: 1.6; 
    }
    section{
        
        overflow: hidden;
    }
    .direction-image img {
        width: 100%;
        max-width: 355px;
        object-position: top;
        height: 465px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: var(--shadow);
    }
    .nav-logo img {
        height: 60px;
    }
    /* Réduire l'espacement vertical des sections */
    .section-light, 
    .section-grey, 
    .section-dark,
    .section-cta { 
        padding: 4rem 0; /* Moins d'espace en haut et en bas */
    }

    .container {
        width: 90%; /* Garder un peu de marge */
    }
    
    /* Ajuster les tailles des titres de section */
    .section-title, 
    .section-title-left { 
        font-size: 1.8rem; /* Plus petit */
        line-height: 1.3;
    }
    .section-subtitle { 
        font-size: 1rem; 
        margin-bottom: 0.8rem;
    }
    .section-description { 
        font-size: 1rem; /* Texte d'intro plus petit */
        margin-bottom: 2rem;
    }

    /* --- Menu Mobile (Peu de changements ici) --- */
    .nav-menu {
        display: flex;
        flex-direction: column;
        justify-content: center; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary-blue);
        padding-top: 5rem; /* Réduit un peu */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.5s ease;
    }
    .nav-menu.nav-open {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-menu ul {
        flex: 1; 
        display: flex;
        flex-direction: column;
        justify-content: center; 
        width: 100%;
        gap: 0.5rem; /* Moins d'espace entre les liens */
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu a {
        padding: 0.8rem; /* Moins de padding */
        display: block;
        width: 100%;
        color: var(--text-light);
        font-size: 1.1rem; /* Légèrement plus petit */
    }
    .nav-menu .nav-cta {
        margin: 1rem 0;
        width: auto;
        padding: 0.8rem 1.8rem; /* Bouton plus petit */
        font-size: 0.9rem;
    }

    /* Cacher le sélecteur de langue pour ordinateur */
    .lang-switcher {
        display: none;
    }

    /* Styliser le sélecteur de langue pour mobile */
    .lang-switcher-mobile {
        display: flex;
        gap: 1rem; /* Moins d'espace */
        padding-bottom: 4rem; /* Moins d'espace en bas */
        z-index: 1001;
    }
    .lang-switcher-mobile a {
        color: var(--text-light);
        font-weight: 700;
        font-size: 1.1rem; /* Légèrement plus petit */
        padding: 0.5rem;
        border: 1px solid transparent;
        border-radius: 4px;
    }
    .lang-switcher-mobile a.active {
        color: var(--primary-orange);
        border-color: var(--primary-orange);
    }

    /* --- Bouton Burger (Inchangé) --- */
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        width: 24px;
        height: 18px;
        position: relative;
        z-index: 1001; 
    }
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-light);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }
    .nav-toggle span:nth-child(1) { top: 0; }
    .nav-toggle span:nth-child(2) { top: 8px; }
    .nav-toggle span:nth-child(3) { top: 16px; }

    .nav-toggle.is-active span {
        background: var(--text-light);
    }
    .nav-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- Section Hero --- */
    .hero-premier {
        text-align: center;
        padding-top: 80px; /* Moins d'espace en haut */
        padding-bottom: 3rem;
        min-height: 70vh; /* Moins haut */
    }
    .hero-title {
        font-size: 1.72rem; /* Titre principal plus petit */
        line-height: 1.3;
    }
    .hero-subtitle {
        font-size: 1rem; /* Sous-titre plus petit */
        max-width: 90%; /* Prend plus de largeur */
        margin-bottom: 2rem;
    }
    .hero-premier .cta-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.8rem;
    }

    /* --- Section Qui Nous Sommes / Approche --- */
    .qui-sommes-nous-content p {
        font-size: 0.95rem; /* Texte courant plus petit */
    }
    .qui-sommes-nous-image {
        margin-top: 1.5rem; /* Moins d'espace */
    }

    /* --- Section Services --- */
    .services-grid { 
        grid-template-columns: 1fr; /* 1 colonne */
        gap: 1rem; /* Moins d'espace */
    }
    .service-card {
        padding: 1.8rem 1.5rem; /* Moins de padding */
    }
    .service-card i {
        font-size: 2rem; /* Icônes plus petites */
        margin-bottom: 0.8rem;
    }
    .service-card h3 {
        font-size: 1.1rem; /* Titre de carte plus petit */
    }
    .service-card p {
        font-size: 0.85rem; /* Texte de carte plus petit */
    }

    /* --- Section Direction --- */
    .direction-info .role {
        font-size: 1rem;
    }
    .direction-info p {
        font-size: 0.95rem; /* Texte courant plus petit */
    }

    /* --- Section Avantages / Approche --- */
    .approche-grid { 
        grid-template-columns: 1fr; /* 1 colonne */
        gap: 1rem; /* Moins d'espace */
    }
    .approche-card {
        padding: 2rem 1.5rem; /* Moins de padding */
    }
    .approche-card i {
        font-size: 2.5rem;
    }
    .approche-card h3 {
        font-size: 1.2rem;
    }
     .approche-card p {
        font-size: 0.9rem; /* Texte courant plus petit */
    }

    /* --- Section FAQ --- */
    .faq-item summary {
        font-size: 1rem; /* Question plus petite */
        padding: 1rem 0;
        padding-right: 1.5rem; /* Espace pour l'icône */
    }
     .faq-item summary::after {
        font-size: 1.2rem; /* Icône plus petite */
    }
    .faq-item p {
        font-size: 0.9rem; /* Réponse plus petite */
        padding-bottom: 1rem;
    }

    /* --- Section CTA Final --- */
     .section-cta .section-title {
        font-size: 1.6rem;
    }
    .section-cta .section-description {
        font-size: 0.95rem;
    }

    /* --- Section Contact --- */
    .contact-grid { 
        gap: 2rem; /* Moins d'espace */
    }
     .form-group label {
        font-size: 0.85rem;
    }
    .form-group input, .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    .contact-info h3 {
        font-size: 1.5rem;
    }
     .contact-info p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
     .contact-info ul li {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
     .contact-info ul li strong {
        font-size: 0.85rem;
    }

    /* --- Footer --- */
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav {
        margin: 1rem 0;
        gap: 1rem; /* Moins d'espace */
    }
    .footer-nav a {
        font-size: 0.85rem;
    }
     .footer-copyright p {
        font-size: 0.85rem;
    }
}