/* ===== VARIABLES ===== */
:root {
    --primary-color: #121725; /* Nouvelle couleur demandée */
    --secondary-color: #5C697F;
    --accent-color: #6366F1;
    --light-color: #F7FAFC;
    --text-color: #2D3748;
    --text-light: #718096;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    height: 40px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding: 5px 10px;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 250px 0 150px;
    max-width: 1200px;
    margin: 0 auto; /* Centre horizontalement */
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.hero-content {
    display: grid;
    grid-template-columns: 40% 60%; /* Ajuste les proportions */
    gap: 120px; /* Réduit l'espace entre les colonnes */
    align-items: center;
    width: 100%;
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem); /* Taille responsive */
    margin-bottom: 20px;
    text-align: center; /* Centre le titre */
}

.title-black {
    color: #121725; /* Noir */
}

.title-blue {
    color: #5C697F; /* Bleu moderne (tu peux ajuster) */
}


.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem); /* Taille responsive */
    line-height: 1.6;
    color: #4A5568; /* Gris moderne */
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center; /* Centre le sous-titre */

}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

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

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

.hero-image-container {
    position: relative; /* Pour positionner l'ombre */
    overflow: hidden; /* Contient l'effet de zoom */
    border-radius: 16px; /* Arrondit les coins du conteneur */
    box-shadow: 0 20px 60px 10px rgba(0, 0, 0, 0.35); /* Ombre moderne */

}

.hero-image {
    object-fit: cover; /* ✅ Assure que l'image couvre bien le conteneur */
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease; /* Pour l'effet de zoom */

}

.hero-image:hover {
    transform: scale(1.02); /* Léger zoom */
}

.hero-bg {
    width: 100%;
    height: auto;
    max-height: 500px; /* Limite la hauteur */
    display: block;
    object-fit: cover;
}

/* ===== SECTION PLATEFORME SEKOYA ===== */
.sekoya-platform {
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 60px;
    font-weight: 700;
}

.platform-part {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    text-align: left;
}

.platform-part-reverse {
    direction: rtl;
}

.platform-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.platform-part-reverse .platform-image-container {
    direction: ltr; /* ✅ Réinitialise le sens pour le contenu */
}

.platform-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    border-radius: var(--border-radius);
    object-fit: cover;
}

.platform-part:hover .platform-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.platform-part-reverse .platform-text {
    direction: ltr; /* Réinitialise la direction du texte */
    unicode-bidi: embed; /* Force le rendu standard du texte */
}

.platform-text {
    padding: 20px 0;
}

.platform-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.platform-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== SECTION MÉTHODOLOGIE ===== */
.methodology {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.02); /* Fond légèrement transparent */
    backdrop-filter: blur(10px); /* Effet de flou moderne */
    border-radius: 24px;
    margin: 50px auto 0;
    max-width: 1200px;
    box-shadow: 0 10px 40px -10px rgba(92, 105, 127, 0.15);
}

.methodology-container {
    padding: 0 40px;
    text-align: center;
}

.methodology-title {
    font-size: 2.8rem;
    color: #5C697F; /* RVB 92/105/127 */
    margin-bottom: 20px;
    font-weight: 700;
}

.methodology-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* Chapitres */
.methodology-chapters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    text-align: left;
    align-items: start;
}

.methodology-chapter {
    display: flex;
    flex-direction: column; /* Stack les éléments verticalement */
    min-height: 450px; /* Hauteur minimale pour aligner les titres */
    padding: 30px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.methodology-chapter:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(92, 105, 127, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

/* ===== IMAGES DES CHAPITRES ===== */
.chapter-image {
    text-align: center;
    margin: 0 auto 30px;
    height: 300px; /* Hauteur fixe */
    width: 300px; /* Largeur fixe (ratio 1:1) */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.03); /* Fond légèrement transparent pour l'ombre */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25); /* Ombre discrète mais visible */
    overflow: hidden; /* Masque les bords si l'image dépasse */
}

.chapter-img {
    max-width: 100%; /* S'adapte à la taille du conteneur */
    max-height: 100%; /* S'adapte à la taille du conteneur */
    object-fit: contain; /* Garde le ratio sans déformation */
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.methodology-chapter:hover .chapter-img {
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.25)); /* Ombre renforcée au survol */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Ombre renforcée au survol */
    transform: translateY(-3px); /* Légère remontée */
}

/* Ajustement pour les images (si elles sont trop grandes) */
.methodology-chapter {
    min-height: 420px; /* Ajuste si nécessaire (ex: 450px) */
}

.chapter-title {
    font-size: 1.5rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 600;
    flex-grow: 1;
}

.chapter-description {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    margin-top: 20px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 80px 0;
    text-align: center;
    background-color: rgba(247, 250, 252, 0.5);
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== FOOTER STYLES ===== */
.footer {
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 40px 0 20px;
    border-top: 1px solid #444;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Logo et tagline */
.footer-brand {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1); /* Logo sombre → blanc */
}

.footer-tagline {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #cccccc;
    opacity: 0.9;
}

/* Liens légaux */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Coordonnées */
.footer-contact {
    text-align: center;
}

.footer-contact-email,
.footer-contact-phone {
    margin: 5px 0;
    font-size: 0.95rem;
    color: #cccccc;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.85rem;
    color: #888888;
}

/* ===== EFFET DE SCROLL DISCRET ===== */
.scroll-indicator {
    height: 40px; /* Hauteur du trait */
    width: 2px; /* Épaisseur du trait */
    background: linear-gradient(to bottom,
        #002395 0%, #002395 33%,
        white 33%, white 66%,
        #EF4135 66%, #EF4135 100%);
    margin: 0 auto 20px; /* Centré et espacé du contenu */
    border-radius: 1px; /* Arrondi très léger */
    opacity: 0.4; /* Très discret */
    animation: breathe 1s ease-in-out infinite alternate; /* Animation subtile */
}

@keyframes breathe {
    0% { transform: translateY(0); opacity: 0.4; }
    100% { transform: translateY(5px); opacity: 0.7; } /* Légère montée */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr; /* Force une seule colonne */
        gap: 40px; /* Espacement entre les éléments */
        padding: 0 20px; /* ✅ ESPACE UNIQUEMENT EN MOBILE (sur les côtés) */
    }

    /* ✅ Force le conteneur de l'image à prendre toute la largeur */
    .hero-image-container {
        width: 100% !important; /* ✅ Force la largeur à 100% */
        padding: 0 !important ; /* ✅ Supprime tout padding interne */
    }

    /* ✅ Assure que l'image remplit bien le conteneur */
    .hero-image {
        width: 100% !important;
        height: auto !important;
    }
    .logo-text {
        font-size: 16px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-links {
        gap: 30px;
    }

    .footer-contact {
        text-align: right;
    }

    /* ✅ Force la grille à une seule colonne sur mobile */
    .methodology-chapters {
        grid-template-columns: 1fr !important; /* Une seule colonne */
        gap: 30px !important; /* Espacement réduit */
        max-width: 100% !important; /* Empêche le débordement */
        margin: 0 auto !important; /* Centre le conteneur */
    }

    /* ✅ Force les images des chapitres à prendre toute la largeur */
    .chapter-image {
        width: 100% !important; /* Force la largeur à 100% */
        max-width: 100% !important; /* Empêche le débordement */
        height: auto !important; /* Garde le ratio */
        padding: 0 !important; /* Supprime tout padding interne */
    }

    /* ✅ Réinitialise la taille fixe des images */
    .chapter-img {
        width: 100% !important; /* Force la largeur à 100% */
        height: auto !important; /* Garde le ratio */
        max-height: 250px !important; /* Limite la hauteur */
        object-fit: cover !important; /* Garde le ratio sans déformation */
    }

    /* ✅ Centre le titre et le sous-titre de la méthodologie */
    .methodology-title {
        text-align: center !important; /* Force le centrage */
        max-width: 100% !important;
    }

    .methodology-subtitle {
        text-align: center !important; /* Force le centrage */
        max-width: 100% !important;
    }

    /* ✅ Centre les chapitres */
    .methodology-chapter {
        width: 100% !important; /* Force la largeur à 100% */
        max-width: 100% !important; /* Empêche le débordement */
        padding: 0 20px !important; /* ESPACE UNIQUEMENT SUR LES CÔTÉS (20px) */
    }

    /* ✅ Réduit le padding de la méthodologie */
    .methodology {
        padding: 60px 0 !important; /* Réduit le padding */
        margin: 20px auto 0 !important; /* Centre le conteneur */
        max-width: 100% !important; /* Empêche le débordement */
    }

    .methodology-container {
        padding: 0 20px !important; /* ESPACE UNIQUEMENT SUR LES CÔTÉS (20px) */
        max-width: 100% !important;
    }

     .sekoya-platform .platform-part {
        display: flex;
        flex-direction: column; /* Empile verticalement */
        gap: 30px; /* Espacement entre les éléments */
        align-items: center; /* Centre horizontalement */
        text-align: center; /* Centre le texte */
        width: 100%; /* Force la largeur à 100% */
        max-width: 100%; /* Empêche le débordement */
    }

    /* Réinitialise la direction rtl pour éviter les problèmes */
    .sekoya-platform .platform-part-reverse {
        direction: ltr;
    }

    /* Assure que les images prennent toute la largeur */
   .sekoya-platform .platform-image-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    /* ✅ Ajuste la taille des images pour mobile */
   .sekoya-platform .platform-image {
        width: 100%;
        height: auto;
        max-height: 300px; /* Limite la hauteur */
        object-fit: cover;
    }

    /* ✅ Centre le texte et ajuste l'espacement */
    .sekoya-platform .platform-text {
        padding: 0; /* Supprime le padding interne */
        width: 100%; /* Force la largeur à 100% */
        max-width: 100%; /* Empêche le débordement */
    }
    
    .sekoya-platform {
        padding: 60px 0; /* Réduit le padding sur mobile */
    }
}
    /* ✅ CORRECTION DU FOOTER POUR MOBILE */
    .footer {
        padding: 30px 0 15px !important; /* Réduit le padding */
        max-width: 100% !important; /* Force la largeur à 100% */
        margin: 0 auto !important; /* Centre le footer */
    }

    .footer-container {
        flex-direction: column !important; /* Passe en colonne */
        gap: 20px !important; /* Réduit l'espacement */
        padding: 0 20px !important; /* ESPACE UNIQUEMENT SUR LES CÔTÉS (20px) */
        max-width: 100% !important; /* Empêche le débordement */
    }

    .footer-links {
        flex-wrap: wrap !important; /* Force le retour à la ligne */
        justify-content: center !important; /* Centre les liens */
        gap: 15px !important; /* Réduit l'espacement */
    }

    .footer-contact {
        text-align: center !important; /* Centre les coordonnées */
        width: 100% !important; /* Force la largeur à 100% */
    }

    .footer-copyright {
        width: 100% !important; /* Force la largeur à 100% */
        padding-top: 15px !important; /* Réduit l'espacement */
    }

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .contact-title {
        font-size: 2rem;
    }
}
