/* --- VARIABLES ET THÈME --- */
:root {
    --primary: #0124b8;
    --primary-light: #3b59ff;
    --accent: #f06714;
    --dark: #0f172a; /* Bleu nuit plus moderne */
    --gray-bg: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--dark); 
    line-height: 1.6; 
    background: var(--white);
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }

/* --- NAVIGATION GLASSMORPHISM --- */
nav { 
    padding: 15px 0; 
    background: var(--glass);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-size: 1.7rem; 
    font-weight: 800; 
    color: var(--primary); 
    letter-spacing: -1px; 
}
.logo span { color: var(--accent); }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }

.nav-links a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 600; 
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.nav-links a:hover { color: var(--primary); }

.btn-nav { 
    background: var(--primary); 
    color: #fff !important; 
    padding: 10px 22px; 
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(1, 36, 184, 0.2);
}

/* --- HERO SECTION --- */
.hero { 
    padding: 100px 0; 
    background: radial-gradient(circle at top right, #f0f4ff, #ffffff); 
}

.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }

.badge-tag { 
    background: rgba(1, 36, 184, 0.08); 
    color: var(--primary); 
    padding: 8px 16px; 
    border-radius: 50px; 
    font-size: 0.85rem; 
    font-weight: 700; 
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 { 
    font-size: 3.8rem; 
    margin-bottom: 20px; 
    line-height: 1.05;  
    letter-spacing: -2px;
}

.hero-text h1 span { 
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p { font-size: 1.15rem; color: #475569; margin-bottom: 35px; }

/* --- BOUTONS INSTALLATION --- */
.app-links-badges { 
display: flex; 
gap: 15px; 
align-items: center;
}

.install-button {
transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
display: block;
}

.install-button .img-container {
    width: 160px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.install-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.install-button:hover {
    transform: translateY(-8px) scale(1.05);
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.15));
}

/* --- SECTION PARTENAIRES --- */
.partners-section {
padding: 60px 0;
background-color: var(--white);
text-align: center;
}

.partners-text {
font-size: 0.8rem;
font-weight: 800;
letter-spacing: 3px;
color: #94a3b8;
margin-bottom: 40px;
}

.partners-grid {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 50px;
}

/* On définit le style de base de CHAQUE logo */
.partner-logo {
font-size: 1.2rem;
font-weight: 800;
color: #64748b;
opacity: 0.5; /* Légèrement effacé par défaut */
transition: all 0.3s ease; /* Transition fluide */
cursor: pointer;
}

/* L'EFFET HOVER SUR CHAQUE LOGO INDIVIDUELLEMENT */
.partner-logo:hover {
opacity: 1; /* Devient totalement opaque */
color: var(--primary); /* Prend ton bleu principal */
transform: translateY(-5px) scale(1.1); /* Monte et grossit légèrement */
}

/* On supprime l'ancien hover qui s'appliquait à toute la grille */
.partners-grid:hover {
opacity: 1; /* Inutile maintenant, on gère par logo */
}

/* Ajustement mobile */
@media (max-width: 768px) {
.partners-grid { gap: 30px; }
}

/* --- SERVICES (FEATURES) --- */
.features { padding: 100px 0; background: var(--gray-bg); }

.section-title { 
    text-align: center; 
    margin-bottom: 60px; 
    font-size: 2.5rem; 
    font-weight: 800;
    letter-spacing: -1px;
}

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.feature-card { 
    background: var(--white); 
    padding: 40px; 
    border-radius: 30px; 
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
    transition: 0.3s ease;
}

.feature-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    display: inline-block;
    padding: 15px;
    background: var(--gray-bg);
    border-radius: 18px;
    color: var(--primary); /* Utilise ton bleu #0124b8 */
}

.feature-card h3 {
    color: var(--primary);

}

.feature-card:hover h3, 
.feature-card:hover .feature-icon i {
    color: var(--primary-light);
}

/* --- SECTION ÉQUIPE --- */
.company-section { padding: 100px 0; background: var(--white); }

.company-card { 
    background: var(--dark); 
    color: var(--white);
    padding: 50px; 
    border-radius: 40px;
    max-width: 450px; 
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.company-avatar {
    width: 90px; height: 90px; 
    background: var(--accent); 
    border: 4px solid rgba(255,255,255,0.1);
    font-size: 2.5rem; font-weight: 800; 
    border-radius: 30px;
    display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 25px;
}

.role { color: #94a3b8; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* --- CONTACT & LOCALISATION (Version Classique) --- */
.contact-section { 
    padding: 80px 0; 
    background-color: var(--white); /* Fond blanc pour la section */
}

.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
}

/* Formulaire */
.contact-form h3 { 
    margin-bottom: 20px; 
    color: var(--primary); 
    font-weight: 700;
}

.contact-form input, .contact-form textarea { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    border: 1px solid #ddd; 
    border-radius: 10px; 
    font-family: inherit;
    background: var(--white);
}

.btn-send { 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 12px 25px; 
    border-radius: 10px; 
    cursor: pointer; 
    font-weight: 600; 
    width: 100%;
    transition: 0.3s;
}

.btn-send:hover {
    background: var(--dark);
    transform: none; /* On enlève l'effet de scale pour rester classique */
}

/* Blocs d'infos à droite */
.contact-info h3 { 
    margin-bottom: 20px; 
    color: var(--primary); 
    font-weight: 700;
}

.info-box { 
    background: var(--gray-bg); /* Le fameux fond gris clair #f4f7fe */
    padding: 25px; 
    border-radius: 15px; 
    margin-bottom: 25px; 
}

.info-box p { 
    margin-bottom: 15px; 
    font-size: 0.95rem; 
}

.info-box i {
    color: var(--primary);
    margin-right: 10px;
}

/* Carte */
.map-container { 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

/* --- AJUSTEMENT MOBILE --- */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- SMARTPHONE MOCKUP --- */
.phone-wrapper { 
    background: #000; padding: 12px; border-radius: 50px; 
    max-width: 300px; margin: 0 auto; 
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.3); 
}

.app-screenshot { width: 100%; border-radius: 40px; display: block; }

/* --- FOOTER & SOCIAL --- */
footer { padding: 60px 0; background: var(--dark); color: #fff; text-align: center; }

.social-platforms { display: flex; gap: 15px; justify-content: center; margin-top: 25px; }

.social-icon {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.05);
    color: white; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 1.3rem;
    transition: 0.4s;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
    transform: translateY(-10px) rotate(8deg);
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-text h1 { font-size: 2.8rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .app-links-badges { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
}


/* L'icône en grande dimension */
.app-icone-large {
    width: 200px;            /* Dimension augmentée */
    height: 200px;           /* Dimension augmentée */
    object-fit: contain;
    border-radius: 50px;    /* Coins arrondis prononcés (style premium) */
    background: #fff;       /* Fond blanc sous l'icône */
    padding: 10px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        inset 0 -5px 10px rgba(0,0,0,0.05); /* Effet de relief */
    margin-bottom: 25px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-icone-large:hover {
    transform: scale(1.08) rotate(4deg); /* Petit effet dynamique au survol */
}

/* Le nom de l'app en grand sous l'icône */
.app-name-display {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    /* Aligne le texte et l'image l'un sous l'autre */
    .hero-grid { 
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 30px;
    }

    /* Centre les boutons d'installation */
    .app-links-badges { 
        justify-content: center; 
        margin: 0 auto;
    }

    /* Centre le texte d'introduction */
    .hero-text p {
        margin: 0 auto 30px auto;
    }

    /* Ajuste la taille de l'icône sur mobile pour qu'elle ne déborde pas */
    .app-icone-large {
        width: 150px;
        height: 150px;
        margin: 0 auto; /* Force le centrage horizontal */
    }

    /* Centre le cercle orange en arrière-plan */
    .hero-image {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-image::after {
        width: 280px;
        height: 280px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%); /* Centre parfaitement derrière l'icône */
    }
}

/* --- SECTION ÉQUIPE MISE À JOUR --- */
.team-section {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* Pour le mobile */
    margin-top: 50px;
}

.team-card {
    background: var(--white);
    padding: 30px;
    border-radius: 30px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    max-width: 320px;
    transition: 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.headshot-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-bg);
    border: 3px solid var(--primary-light);
}

.headshot-placeholder img {
    width: 100%;    
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--dark);
}

.team-role {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.team-bio {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-socials a {
    font-size: 1.3rem;
    color: #94a3b8;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* Ajustement Mobile */
@media (max-width: 768px) {
    .team-grid {
        flex-direction: column;
        align-items: center;
    }
}


/* --- SECTION DESCRIPTION DÉTAILLÉE --- */
.app-description-detail {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

/* On ajoute un petit élément décoratif en arrière-plan pour le style API/Code */
.app-description-detail::before {
    content: " NOMIKO ";
    position: absolute;
    top: 20px;
    right: -20px;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(1, 36, 184, 0.05);
    user-select: none;
}

.description-content {
    max-width: 800px; /* On limite la largeur pour une lecture confortable */
    margin: 0 auto;
    text-align: center;
}

.vision-badge {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 15px;
}

.description-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.description-content h2 span {
    color: var(--primary);
}

.description-content p {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 20px;
    text-align: justify; /* Pour un aspect plus formel/technique */
    line-height: 1.8;
}

.description-content strong {
    color: var(--dark);
    font-weight: 600;
}   

/* Ajustement Mobile */
@media (max-width: 768px) {
    .app-description-detail {
        padding: 60px 0;
    }
    .description-content h2 {
        font-size: 1.8rem;
    }
    .description-content p {
        font-size: 1rem;
        text-align: left; /* Plus lisible sur petit écran */
    }
}


/* --- LANG SWITCHER --- */
.lang-switcher {
    display: flex;
    gap: 5px;
    background: var(--gray-bg);
    padding: 4px;
    border-radius: 8px;
    margin-left: 15px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    margin-left: 15px;
}

.lang-switcher button {
    border: 1px solid #ddd;
    background: white;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.lang-switcher button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* L'animation d'agrandissement */
@keyframes storeHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); box-shadow: 0 0 25px rgba(1, 36, 184, 0.4); }
    100% { transform: scale(1); }
}

/* La classe qui sera appliquée temporairement via JavaScript */
.pulse-animation {
    animation: storeHighlight 0.6s ease-in-out 2; /* L'animation se joue 2 fois */
    z-index: 10;
}

/* Assure-toi que les boutons de base supportent bien la transition */
.install-button {
    transition: transform 0.3s ease;
}

/* --- CARROUSEL 3D - EFFET CYLINDRE --- */
.app-showcase-3d {
    padding: 120px 0;
    background-color: var(--white);
    text-align: center;
    overflow: hidden;
}

/* Scène 3D (le conteneur parent qui définit la perspective) */
.carousel-3d-scene {
    width: 300px;
    height: 600px;
    margin: 60px auto;
    perspective: 2000px; /* Plus grand = perspective plus douce */
    position: relative;
}

/* Le cylindre qui contient les faces (les téléphones) */
.carousel-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1); /* Animation fluide */
    transform: translateZ(-500px); /* Recule le cylindre pour le voir en entier */
}

/* Base de chaque face (mockup téléphone) */
.carousel-3d-item {
    position: absolute;
    width: 300px;
    height: 600px;
    left: 0;
    top: 0;
    opacity: 0.8; /* Légère transparence pour les faces latérales */
    transition: opacity 0.5s ease;
    backface-visibility: hidden; /* Cache l'arrière des faces */
}

/* La face active est opaque */
.carousel-3d-item.is-active {
    opacity: 1;
}

/* Positionnement des faces sur le cylindre */
/* Face Centrale (0deg) */
.carousel-3d-item.is-front { transform: rotateY(0deg) translateZ(500px); }
/* Face Droite (+120deg) */
.carousel-3d-item.is-right { transform: rotateY(120deg) translateZ(500px); }
/* Face Gauche (-120deg ou 240deg) */
.carousel-3d-item.is-left { transform: rotateY(240deg) translateZ(500px); }


/* Mockup Téléphone (Style identique, adapté 3D) */
.phone-mockup-store {
    width: 100%;
    height: 100%;
    background: #0f172a;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

/* Dynamic Island */
.phone-mockup-store::before {
    content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 20px; background: #000; border-radius: 20px; z-index: 10;
}

.screen-content { width: 100%; height: 100%; background: #fff; border-radius: 32px; overflow: hidden; }
.screen-content img { width: 100%; height: 100%; object-fit: cover; }


/* CONTRÔLES DU CARROUSEL */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.control-btn {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.control-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(1, 36, 184, 0.2);
}

/* Ajustement Mobile */
@media (max-width: 768px) {
    .app-showcase-3d { padding: 60px 0; }
    .carousel-3d-scene { width: 260px; height: 520px; perspective: 1500px; }
    .carousel-3d { transform: translateZ(-400px); }
    .carousel-3d-item { width: 260px; height: 520px; }
    .carousel-3d-item.is-front { transform: rotateY(0deg) translateZ(400px); }
    .carousel-3d-item.is-right { transform: rotateY(120deg) translateZ(400px); }
    .carousel-3d-item.is-left { transform: rotateY(240deg) translateZ(400px); }
}

/* --- MENU BURGER --- */
.menu-toggle {
    display: none; /* Caché sur ordinateur */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* --- RESPONSIVE MOBILE NAVIGATION --- */
@media (max-width: 768px) {
    /* On force l'affichage des 3 barres */
    .menu-toggle {
        display: flex !important; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1100;
        cursor: pointer;
    }

    /* Animation des barres en X */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Le menu mobile */
    .nav-links {
        display: flex; /* On utilise flex pour l'alignement */
        position: fixed;
        top: -100vh; /* Il est caché tout en haut, hors de l'écran */
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: column;
        background: white; /* Couleur solide pour être sûr qu'on le voit */
        padding: 100px 0 40px;
        gap: 25px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        text-align: center;
    }

    /* LA SEULE CLASSE POUR ACTIVER LE MENU */
    .nav-links.active {
        top: 0; /* Il descend à sa position normale */
    }

    .nav-links li {
        width: 100%;
    }

    .btn-nav {
        display: inline-block;
        width: 80%;
        margin: 0 auto;
    }

    .lang-switcher {
        justify-content: center;
        margin-top: 10px;
    }
}
