@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #0f172a;
    --bg-surface: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.75);
    --primary-blue: #3b82f6;
    --primary-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.35);
    --text-white: #f8fafc;
    
    /* AJUSTEMENT : Éclaircissement majeur des textes secondaires pour un contraste parfait */
    --text-muted: #cbd5e6;       /* Élevé de #94a3b8 à #cbd5e1 (Gris Ardoise Lumineux) */
    --text-subtle: #94a3b9;      /* Réservé uniquement aux micro-éléments (ex: dates, bordures) */
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* --- NAVBAR PREMIUM --- */
.navbar-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar-premium.navbar-scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white) !important;
}

.navbar-brand span {
    color: var(--primary-blue);
}

.nav-link {
    font-weight: 500;
    color: var(--text-white) !important;
    margin: 0 0.8rem;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.95) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, var(--bg-main) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.typewriter-text {
    color: var(--primary-blue);
    border-right: 3px solid var(--primary-blue);
    padding-right: 5px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* --- BOUTONS TECH & GLOW --- */
.btn-premium-primary {
    background: var(--primary-blue);
    color: #fff;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: var(--transition-smooth);
}

.btn-premium-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    color: #fff;
}

.btn-premium-outline {
    background: var(--bg-glass);
    color: var(--text-white);
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--border-glass);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.btn-premium-outline:hover {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
    color: #fff;
}

/* --- CARTES & GLASSMORPHISM --- */
.card-glass {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card-glass:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-glass:hover::before {
    opacity: 1;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.card-glass:hover .icon-box {
    background: var(--primary-blue);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* --- STATISTIQUES --- */
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

/* --- CONTACT DIRECT (SANS FORMULAIRE) --- */
.contact-action-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.contact-action-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

.contact-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/* --- BOUTON WHATSAPP FLOTTANT --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition-smooth);
    animation: pulse-wa 2s infinite;
}

.floating-whatsapp:hover {
    background-color: #1ebc57;
    color: #fff;
    transform: scale(1.1);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- FOOTER --- */
.footer-premium {
    background: #080d1a;
    border-top: 1px solid var(--border-glass);
    padding: 5rem 0 2rem;
    margin-top: 6rem;
}

.footer-link {
    color: var(--text-muted);
    transition: var(--transition-smooth);
    display: block;
    margin-bottom: 0.75rem;
}

.footer-link:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

/*----------------------------------*/
/* --- SÉCURITÉ DE CONTRASTE HAUTE PERFORMANCE --- */

/* Force le texte de description de la Hero Section à être parfaitement lisible */
.hero-content .lead.text-muted {
    color: #e2e8f0 !important;
}

/* Optimisation des paragraphes à l'intérieur de toutes les cartes premium */
.card-glass p, 
.contact-action-card p, 
.grid-section .card p {
    color: #e2e8f0 !important; /* Blanc cassé soyeux à haute lisibilité */
    font-weight: 400;
}

/* Réajustement des liens et textes du Footer Premium */
.footer-premium p.text-muted {
    color: #cbd5e1 !important;
}

.footer-link {
    color: #cbd5e1 !important;
}

.footer-link:hover {
    color: var(--primary-blue) !important;
}

/* Correction des puces de listes et petits descriptifs méthodologiques */
.list-unstyled .text-muted,
small.text-muted {
    color: #cbd5e1 !important;
}

/* Ajustement pour les sous-titres de cartes ou badges secondaires */
.text-primary.fw-bold.text-uppercase {
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.2); /* Léger effet néon pour détacher le texte */
}


/* ==========================================================================
   REFONTE GLOBALE DE LISIBILITÉ & CONTRASTE (NORMES WCAG AA/AAA)
   Élimination des zones sombres sur fond sombre pour toutes les pages LIPROC
   ========================================================================== */

/* 1. ÉCRASEMENT DES CLASSES DE TEXTE NATIVES BOOTSTRAP */
.text-muted {
    color: #e2e8f0 !important; /* Élévation vers un gris ardoise très lumineux */
}

.text-secondary {
    color: #cbd5e1 !important; /* Teinte intermédiaire parfaitement lisible */
}

small, .small {
    color: #e2e8f0 !important;
    font-weight: 500; /* Un poil plus épais pour compenser la petite taille de police */
}

/* 2. SECTION HERO & PREMIERS NIVEAUX DE LECTURE */
.hero-content p.lead {
    color: #f1f5f9 !important; /* Intensité maximale pour l'accroche principale */
}

.badge.bg-primary {
    background-color: #3b82f6 !important;
    color: #ffffff !important; /* Texte du badge en blanc pur */
    font-weight: 600;
}

/* 3. COMPTEURS ET STATISTIQUES ANIMÉES */
.stat-number + p,
.stat-number + .text-muted {
    color: #ffffff !important; /* Blanc pur émissif pour les labels sous les chiffres */
    font-weight: 600 !important;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 4. CARTES PREMIUM (GLASSMORPHISM & CONTACT CARDS) */
.card-glass p,
.contact-action-card p {
    color: #e2e8f0 !important; /* Uniformisation des descriptifs de services */
    font-size: 0.98rem;
}

/* Forçage des titres de cartes qui s'assombrissaient au survol */
.card-glass h3, .card-glass h4,
.contact-action-card h3, .contact-action-card h4 {
    color: #ffffff !important;
}

/* 5. BLOCS MÉTHODOLOGIQUES & LISTES (Pages Services individuelles) */
.list-unstyled li div strong {
    color: #ffffff !important; /* Les titres des étapes de méthodologie */
}

.list-unstyled li div small,
.list-unstyled li div .text-muted {
    color: #cbd5e1 !important; /* Les explications sous les étapes */
    font-size: 0.92rem !important;
}

/* 6. COMPOSANT ACCORDÉON / FAQ (Inclus dans les services) */
.accordion-item {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-glass) !important;
}

.accordion-button {
    background-color: var(--bg-surface) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: var(--primary-blue) !important;
    box-shadow: none !important;
}

/* Force l'icône flèche de Bootstrap à passer du noir au blanc */
.accordion-button::after {
    filter: invert(1) brightness(2);
}

.accordion-body {
    color: #e2e8f0 !important;
    background-color: #131d31 !important; /* Léger détachement de fond pour la réponse */
}

/* 7. FOOTER INSTITUTIONNEL & MENTIONS */
.footer-premium h5 {
    color: #ffffff !important; /* Titres des colonnes du footer */
    font-weight: 600;
}

.footer-premium p,
.footer-premium span,
.footer-premium .text-muted {
    color: #cbd5e1 !important; /* Textes d'adresse, téléphone et emails */
}

.footer-link {
    color: #cbd5e1 !important;
}

.footer-link:hover {
    color: var(--primary-blue) !important;
}

/* Éclaircissement de la ligne de séparation du copyright */
.footer-premium .border-top {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* 8. ERGONOMIE MOBILE & RESPONSIVE */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.navbar-toggler-icon {
    /* Force l'icône du menu hamburger à être parfaitement blanche et visible sur mobile */
    filter: invert(1) brightness(2); 
}