/* --- 1. BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; background-color: #f4f6f9; color: #333; line-height: 1.6; overflow-x: hidden; }

/* --- 2. HEADER --- */
header {
    background-color: #ffffff;
    height: 80px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo { display: flex; align-items: center; gap: 15px; text-decoration: none; flex: 1; }
.logo-img { height: 55px; width: auto; } 
.logo-text { font-size: 1.4rem; font-weight: 700; color: #0c1438; }

nav.desktop-nav { display: flex; justify-content: center; flex: 2; }
nav.desktop-nav ul { display: flex; list-style: none; gap: 35px; }
nav.desktop-nav a { text-decoration: none; color: #555; font-size: 1rem; font-weight: 500; transition: color 0.3s; }
nav.desktop-nav a:hover { color: #0056d2; }

.client-area-desktop { display: flex; justify-content: flex-end; flex: 1; }

/* --- 3. MENU MOBILE & BURGER --- */
.mobile-menu-btn { display: none; cursor: pointer; z-index: 1100; background: none; border: none; }
.mobile-overlay {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh;
    background: white; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: 0.3s ease-in-out;
    z-index: 1050; padding: 100px 30px; display: flex; flex-direction: column; gap: 20px;
}
.mobile-overlay.active { right: 0; }
.mobile-overlay a { text-decoration: none; color: #0c1438; font-size: 1.2rem; font-weight: 600; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }

/* --- 4. BOUTONS --- */
.btn-client {
    background-color: #f0f4ff; color: #0056d2; padding: 10px 25px; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 10px; transition: 0.3s;
}
.btn-client:hover { background-color: #e0e9ff; transform: translateY(-1px); }

/* --- 5. HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, #050a1e 0%, #002d72 100%);
    min-height: 400px; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 120px 20px 60px; color: white;
}
.hero-badge {
    background: rgba(255, 255, 255, 0.15); padding: 8px 22px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700; margin-bottom: 25px; display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-section h1 { font-size: 2.8rem; margin-bottom: 20px; max-width: 900px; font-weight: 700; line-height: 1.2; }
.hero-section p { font-size: 1.2rem; color: #dbe4ff; margin-bottom: 40px; max-width: 750px; }

/* --- 6. TRUST BAR & SERVICES --- */
.trust-bar {
    background: white; padding: 15px 5%; border-bottom: 1px solid #eee;
    display: flex; justify-content: center; gap: 50px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; color: #666; font-weight: 500; }
.trust-item i { color: #0056d2; }

.services-container {
    max-width: 1200px; margin: 25px auto; padding: 0 20px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
}

.card {
    background: white; padding: 25px; border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06); display: flex; flex-direction: column;
    min-height: 260px; border-top: 5px solid #0056d2; transition: all 0.3s;
    text-align: left;
}
.card:hover { transform: translateY(-10px); }
.card-icon { font-size: 1.8rem; margin-bottom: 15px; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; color: #0c1438; }
.card .subtitle { font-size: 0.75rem; font-weight: 700; color: #0056d2; text-transform: uppercase; margin-bottom: 15px; font-style: italic; }
.card p { font-size: 0.95rem; color: #666; line-height: 1.6; }
.card-link { margin-top: auto; font-weight: 700; color: #0056d2; text-decoration: none; font-size: 0.9rem; padding-top: 20px; }

/* --- 7. MODAL --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); z-index: 2000;
    justify-content: center; align-items: center;
}
.login-card {
    background: white; width: 95%; max-width: 420px; padding: 45px; border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3); position: relative; text-align: center;
    animation: slideUp 0.4s ease-out;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { position: absolute; top: 20px; right: 25px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #bbb; }

/* --- 8. RESPONSIVE --- */
@media (max-width: 1150px) {
    .desktop-nav, .client-area-desktop { display: none !important; }
    .mobile-menu-btn { display: block !important; }
    .services-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
    .services-container { grid-template-columns: 1fr; }
    .logo-text { font-size: 1.1rem; }
    .hero-section h1 { font-size: 1.8rem; }
}

/* --- 9. PAGE SOLUTIONS --- */
.solutions-wrapper {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.solution-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}

/* Permet d'inverser l'image et le texte une fois sur deux */
.solution-block.reverse {
    flex-direction: row-reverse;
}

.sol-icon-box {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0; /* Empêche l'icône de s'écraser */
}

.sol-content h2 {
    color: #0c1438;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.sol-content .tagline {
    color: #0056d2;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.sol-content p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.sol-list {
    list-style: none;
}

.sol-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #444;
}

.sol-list li i {
    color: #10b981; /* Vert pour les coches */
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .solution-block, .solution-block.reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .sol-list li {
        justify-content: center;
    }
}

/* --- 10. PAGE TARIFS (MODE 3D ANIMÉ) --- */
.tarifs-container {
    max-width: 1100px;
    margin: 50px auto 60px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Un peu plus d'espace pour l'effet 3D */
    position: relative;
    z-index: 10;
    perspective: 1000px; /* Ajoute une perspective globale */
}

.tarif-card {
    background: white;
    padding: 25px 15px;
    border-radius: 12px;
    /* DEFINITION DE L'ETAT NORMAL 3D */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05); /* Double ombre pour la profondeur */
    text-align: center;
    border-top: 4px solid #0056d2;
    /* Ajout d'un petit bord en bas pour un effet "bloc" physique */
    border-bottom: 3px solid #e6e6e6; 
    display: flex;
    flex-direction: column;
    position: relative;
    /* L'animation va durer 0.4 secondes et sera fluide (ease-out) */
    transition: all 0.4s ease-out; 
    backface-visibility: hidden; /* Rend l'animation plus nette */
}

/* --- L'ANIMATION AU SURVOL --- */
.tarif-card:hover {
    /* La carte remonte de 12 pixels */
    transform: translateY(-12px) scale(1.02); 
    /* L'ombre devient beaucoup plus grande et douce en dessous */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 8px 10px rgba(0,0,0,0.08);
    /* La bordure du bas change de couleur pour s'allumer */
    border-bottom-color: #0056d2;
}

/* Carte mise en avant (Verte) */
.tarif-card.featured {
    border-top: 4px solid #10b981;
    border-bottom: 3px solid #10b981; /* Déjà colorée en bas */
    /* Elle est déjà un peu surélevée de base */
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
    z-index: 20;
    transform: scale(1.03);
}
.tarif-card.featured:hover {
    /* Elle remonte encore plus haut */
    transform: translateY(-15px) scale(1.06);
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.3);
}

.best-choice {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #10b981; color: white; padding: 4px 12px;
    font-size: 0.7rem; font-weight: 700; border-radius: 20px; letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Animation sur les icônes aussi */
.icon-circle {
    font-size: 1.5rem;
    color: #0056d2; margin-bottom: 10px;
    transition: transform 0.4s ease-out;
}
.tarif-card:hover .icon-circle {
    transform: scale(1.2) rotate(5deg); /* Petit zoom et rotation sympa au survol */
}
.tarif-card.featured .icon-circle { color: #10b981; }

.tarif-header h3 { 
    font-size: 1rem; 
    color: #0c1438; margin-bottom: 0; font-weight: 700;
    min-height: 35px; display: flex; align-items: center; justify-content: center;
}

.price-tag {
    font-size: 1.7rem; 
    font-weight: 700; color: #0056d2; margin: 8px 0;
    transition: color 0.3s;
}
.tarif-card:hover .price-tag { color: #0c1438; } /* Le prix fonce un peu au survol */
.tarif-card.featured .price-tag { color: #10b981; }

.small { font-size: 0.8rem; font-weight: 400; color: #999; }
.desc-court { color: #888; font-style: italic; font-size: 0.8rem; margin-bottom: 15px; }

.tarif-features {
    list-style: none; margin-bottom: 0; text-align: left; font-size: 0.85rem; padding: 0 5px;
}
.tarif-features li {
    padding: 6px 0; border-bottom: 1px solid #f5f5f5; color: #555;
    display: flex; align-items: center; gap: 8px;
}
.tarif-features li:last-child { border-bottom: none; }
.tarif-features li i { color: #10b981; font-size: 0.8rem; }

/* --- AJOUT : "Me contacter" plus petit (uniquement pour la page Tarifs) --- */
.tarifs-container .tarif-contact{
    display: inline-block;
    font-size: 0.90rem;      /* ↓ taille du texte */
    font-weight: 600;
    color: #0056d2;
    text-decoration: none;
    padding: 6px 10px;       /* ↓ moins "gros" */
    border-radius: 10px;
    border: 1px solid #dbe6ff;
    background: #f6f9ff;
    transition: background .12s ease, transform .12s ease;
}
.tarifs-container .tarif-contact:hover{
    background:#eaf1ff;
    transform: translateY(-1px);
}
/* Si tu utilises encore class="btn-send" dans les tarifs, ça réduit uniquement ici */
.tarifs-container .btn-send{
    font-size: 0.90rem;
    padding: 8px 14px;
}

/* Responsive */
@media (max-width: 1000px) {
    .tarifs-container { grid-template-columns: repeat(2, 1fr); max-width: 600px; gap: 30px; }
    .tarif-card.featured { transform: scale(1); }
    .tarif-card.featured:hover { transform: translateY(-12px) scale(1.02); }
}
@media (max-width: 550px) {
    .tarifs-container { grid-template-columns: 1fr; }
}

/* --- 12. PAGE CONTACT (VERSION FUSIONNÉE BLEUE) --- */

.contact-wrapper {
    max-width: 1000px;
    margin: -80px auto 50px; /* Remonte sur la bannière */
    background: white;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2); /* Ombre forte pour détacher le bas */
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 10;
    min-height: 550px;
}

/* --- PARTIE GAUCHE (BLEUE - CORRIGÉE) --- */
.contact-info-panel {
    /* On utilise la couleur UNIE exacte de votre charte graphique */
    background: #03173C; 
    
    color: white;
    width: 35%;
    padding: 60px 30px 40px;
    display: flex;
    flex-direction: column;
    /* Petite astuce pour lisser la transition si besoin : 
       une ombre portée intérieure très légère en haut */
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.1);
}

.contact-info-panel h3 { font-size: 1.5rem; margin-bottom: 15px; color: white; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; display: inline-block; }
.intro-text { font-size: 0.9rem; color: #dbe4ff; margin-bottom: 30px; line-height: 1.5; }

.info-row {
    display: flex; align-items: center; gap: 15px; margin-bottom: 25px;
}
.icon-box {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.2);
}
.text-box strong { display: block; font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px;}
.text-box span, .text-box a { font-size: 1rem; color: white; text-decoration: none; font-weight: 500; }

.mini-map {
    margin-top: auto;
    border-radius: 10px; overflow: hidden; border: 4px solid rgba(255,255,255,0.1);
    height: 200px;
}

/* --- PARTIE DROITE (BLANCHE) --- */
.contact-form-panel {
    width: 65%;
    padding: 40px 50px; /* Un peu plus d'espace sur les côtés */
}

.contact-form-panel h3 { color: #0c1438; margin-bottom: 25px; font-size: 1.8rem; font-weight: 700; }

.compact-form .input-row {
    display: flex; gap: 20px;
}
.compact-form .input-group {
    margin-bottom: 15px; width: 100%;
}
.compact-form label {
    display: block; font-size: 0.85rem; font-weight: 700; color: #444; margin-bottom: 6px;
}
.compact-form input, .compact-form textarea {
    width: 100%; padding: 12px; border: 1px solid #e0e0e0; border-radius: 6px;
    font-size: 0.95rem; background: #fdfdfd; transition: 0.3s;
}
.compact-form input:focus, .compact-form textarea:focus {
    background: white; border-color: #0056d2; outline: none; box-shadow: 0 0 0 3px rgba(0,86,210,0.1);
}

.form-footer {
    display: flex; align-items: center; justify-content: space-between; margin-top: 20px;
    border-top: 1px solid #eee; padding-top: 20px;
}

.btn-send {
    background: #0056d2; color: white; border: none; padding: 12px 35px;
    border-radius: 5px; font-weight: 600; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; gap: 10px; font-size: 1rem;
}
.btn-send:hover { background: #0c1438; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,45,114,0.3); }

/* Message de succès */
.success-box {
    text-align: center; color: #10b981; font-size: 1.2rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; background: #ecfdf5; border-radius: 10px; padding: 30px;
}
.error-msg {
    background: #fee2e2; color: #b91c1c; padding: 15px; border-radius: 5px; margin-bottom: 20px; font-size: 0.9rem;
}

/* --- RESPONSIVE MOBILE (CORRECTIF INVERSION FORMULAIRE) --- */
@media (max-width: 850px) {
    /* 1. INVERSION : Le bas (Formulaire) passe en haut */
    .contact-wrapper {
        flex-direction: column-reverse; 
        margin: -40px 10px 40px; 
        width: auto;
    }

    /* 2. FORMULAIRE (Blanc) */
    .contact-form-panel {
        width: 100%;
        padding: 25px 20px;
    }

    /* 3. INFOS (Bleu) - Passent en dessous */
    .contact-info-panel {
        width: 100%;
        padding: 30px 20px;
        min-height: auto;
    }
    
    /* On cache la carte sur mobile pour gagner de la place */
    .mini-map { display: none; }
    
    /* FORMULAIRE MOBILE */
    .compact-form .input-row {
        flex-direction: column; /* Nom et Tel l'un sous l'autre */
        gap: 0;
    }
    .form-footer {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .btn-send {
        width: 100%; 
        justify-content: center;
        padding: 15px; 
    }
    
    /* TITRES */
    .contact-info-panel h3, .contact-form-panel h3 {
        font-size: 1.4rem;
    }
}
