
/* ===== VARIABLES ===== */
:root {
    --primary: #003A6B;
    --secondary: #00A651;
    --accent: #F5821F;
    --dark: #1a1a1a;
    --gray: #666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
    font-size: 1.2rem;          /* ajustez selon votre goût */
    font-weight: 400;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;         /* clé : pas de retour à la ligne */
    flex-shrink: 0;              /* optionnel : évite le rétrécissement */
    padding: 0.5rem 0;           /* pour l'alignement vertical */
    transition: transform 0.3s, color 0.3s, filter 0.3s;
    text-align: center;  /* pour centrer les deux lignes */
    line-height: 1.2;   /* ajustez pour un espacement agréable */
}
 

.logo:hover {
    color: var(--secondary);
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 6px 8px rgba(102, 126, 234, 0.3));
}

/* Menu principal */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;        /* pour le ::after du lien actif */
    padding-bottom: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* Ajustement de l'espace entre les éléments du menu */
.nav-menu li {
    margin: 0 3px;
}

/* ===== MENU DÉROULANT DES LANGUES ===== */
/* Conteneur principal (li) */
.lang-switcher.language-dropdown {
    position: relative;
    display: inline-block;
    list-style: none;
    margin-left: 15px;          /* espace avec le dernier lien */
}

/* Bouton principal */
.lang-switcher .dropbtn {
    background-color: transparent;
    color: inherit;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Contenu du dropdown (caché par défaut) */
.lang-switcher .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;                   /* aligné à droite (optionnel) */
    left: auto;                 /* pour annuler left:0 si nécessaire */
    background-color: #fff;
    min-width: 70px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
}

/* Liens du dropdown */
.lang-switcher .dropdown-content a {
    color: #333;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.lang-switcher .dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Option active (facultatif) */
.lang-switcher .dropdown-content a.active-lang {
    background-color: #e9ecef;
    font-weight: 500;
}

/* Affichage au survol (si vous voulez garder cette option) */
.lang-switcher.language-dropdown:hover .dropdown-content {
    display: block;
}

/* Affichage via la classe .active (pour l'ouverture au clic) */
.lang-switcher.language-dropdown.active .dropdown-content {
    display: block;
}

/* Responsive pour le dropdown */
@media (max-width: 768px) {
    .lang-switcher.language-dropdown {
        margin-left: 0;
        margin-top: 10px;
    }
    .lang-switcher .dropdown-content {
        right: auto;
        left: 0;                /* repositionnement si nécessaire */
    }
}

/* ===== MAIN CONTENT ===== */
main {
    min-height: calc(100vh - 400px);
}

/* ===== MESSAGES ===== */
.messages {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary), #002d55);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin: 0 10px;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== EXPERTISES ===== */
.expertises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.expertise-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--secondary);
}

.expertise-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.expertise-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.expertise-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.expertise-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.expertise-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.expertise-link:hover {
    color: var(--primary);
}

.expertise-link:hover i {
    transform: translateX(5px);
}

/* ===== SECTEURS TAGS ===== */
.secteurs-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.secteur-tag {
    padding: 10px 25px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.secteur-tag:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ===== TÉMOIGNAGES ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
}

.testimonial-role {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== PARTENAIRES ===== */
.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: center;
}

.partenaire-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.partenaire-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.partenaire-card img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partenaire-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-section p,
.footer-section li {
    color: #aaa;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #aaa;
}

/* ===== MISSION & VISION ===== */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.mission-card,
.vision-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.mission-icon,
.vision-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.mission-card h2,
.vision-card h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.mission-card p,
.vision-card p {
    line-height: 1.8;
    color: var(--gray);
}

/* ===== VALEURS ===== */
.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.valeur-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.valeur-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.valeur-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.valeur-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.valeur-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ===== APPROCHE ===== */
.approche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.approche-step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.approche-step:hover .step-number {
    transform: scale(1.1);
    background: var(--secondary);
}

.approche-step h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.approche-step p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), #002d55);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ===== INFO BLOC ===== */
.info-block {
    background: var(--light-gray);
    padding: 20px;
    border-left: 4px solid var(--accent);
    font-weight: 500;
    margin: 20px 0;
}

/* ===== PRESTATIONS, DOMAINES, EXPÉRIENCES (supplément) ===== */
.prestation-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.prestation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.domaine-card {
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.domaine-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.experience-card {
    transition: all 0.3s ease;
}

.experience-card:hover {
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

/* ===== RESPONSIVE GLOBAL ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .btn {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    .mission-card,
    .vision-card {
        padding: 30px;
    }
    .mission-icon,
    .vision-icon {
        font-size: 2.5rem;
    }
    .mission-card h2,
    .vision-card h2 {
        font-size: 1.5rem;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
    .cta-section p {
        font-size: 1rem;
    }
    .approche-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-menu a {
        font-size: 0.9rem;
    }
    .valeurs-grid {
        grid-template-columns: 1fr;
    }
    .approche-grid {
        grid-template-columns: 1fr;
    }
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}