/* public/css/style.css */

/* IMPORT DE LA POLICE "POPPINS" (Très moderne) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary: #6366f1;       /* Violet Indigo */
    --secondary: #a855f7;     /* Violet Pourpre */
    --accent: #38bdf8;        /* Bleu Cyan */
    --bg-dark: #0f172a;       /* Fond très sombre */
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    /* Le fameux fond dégradé "Onet" */
    background: radial-gradient(circle at top left, #1e1b4b, #0f172a);
    background-attachment: fixed; /* Le fond ne bouge pas quand on scrolle */
    color: #fff;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* --- NAVIGATION --- */
nav {
    background: rgba(15, 23, 42, 0.8); /* Semi transparent */
    backdrop-filter: blur(10px);       /* Effet de flou derrière */
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Texte dégradé */
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.btn-client {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 8px 20px;
    border-radius: 50px;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}
.btn-client:hover { transform: scale(1.05); }

/* --- CONTAINER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- TITRES --- */
h1, h2 { font-weight: 700; margin-bottom: 20px; }
h2 { 
    text-align: center; 
    font-size: 2.5rem; 
    margin-bottom: 50px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- HERO SECTION --- */
.hero {
    text-align: center;
    padding: 100px 20px;
    /* On enlève le cadre pour faire plus aéré */
    background: transparent; 
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero .highlight {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* --- BOUTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

/* --- CARTES (GLASSMORPHISM) --- */
.offres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass);       /* Fond transparent */
    backdrop-filter: blur(12px);    /* Flou */
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

/* Lueur au survol */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.card:hover::before { opacity: 1; }

.card h3 { font-size: 1.4rem; color: #fff; margin-top: 15px; }
.card p { color: #cbd5e1; font-size: 0.9rem; margin-bottom: 25px; }

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* --- BADGES --- */
.badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

/* --- FEATURES (ACCUEIL) --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-item {
    background: var(--glass);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: 0.3s;
}
.feature-item:hover { background: rgba(255,255,255,0.08); border-color: var(--secondary); }

.icon-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 60px; height: 60px;
    line-height: 60px;
    border-radius: 15px;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 20px auto;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* --- FOOTER --- */

/* --- NOUVELLE NAVIGATION FLOTTANTE --- */
.nav-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.glass-nav {
    background: rgba(15, 23, 42, 0.6); /* Sombre et transparent */
    backdrop-filter: blur(15px);       /* Le flou puissant */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;               /* Forme de pilule */
    padding: 10px 30px;
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.glass-nav .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.glass-nav .nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

/* Petit point lumineux sous le lien actif */
.glass-nav .nav-links a.active::after {
    content: '';
    display: block;
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    margin: 5px auto 0 auto;
    box-shadow: 0 0 10px var(--accent);
}

.glass-nav .nav-links a:hover { color: white; }

.btn-login {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}
.btn-login:hover { transform: scale(1.05); }


/* --- PRE-FOOTER CTA (Le bloc appel à l'action) --- */
.pre-footer-cta {
    background: linear-gradient(90deg, rgba(30, 27, 75, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 1000px;
    margin: 0 auto 60px auto; /* Marge en bas pour espacer du footer */
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    /* Astuce : on le fait chevaucher un peu */
    position: relative;
    z-index: 10;
}

.cta-content h2 { margin-bottom: 10px; font-size: 1.8rem; text-align: left; }
.cta-content p { color: #94a3b8; margin: 0; }

@media (max-width: 768px) {
    .pre-footer-cta { flex-direction: column; text-align: center; gap: 20px; }
    .cta-content h2 { text-align: center; }
}


/* --- FOOTER ONET STYLE --- */
footer {
    background: #020617; /* Noir bleuté très profond */
    position: relative;
    padding-top: 80px; /* Espace pour la ligne lumineuse */
    margin-top: 0;
}

/* La ligne lumineuse en haut */
.footer-glow-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    box-shadow: 0 0 20px var(--primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Colonne marque large */
    gap: 50px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.footer-logo .dot { color: var(--accent); }

.brand-col p {
    color: #64748b;
    line-height: 1.8;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    display: inline-block;
}
.footer-col ul li a:hover {
    color: var(--accent);
    transform: translateX(5px); /* Petit mouvement vers la droite */
}

/* Boutons réseaux sociaux ronds */
.socials { margin-top: 20px; display: flex; gap: 10px; }
.social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}
.social-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    border-color: rgba(255,255,255,0.2);
}

/* --- BARRE DU BAS --- */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #000205; /* Encore plus sombre */
    padding: 25px 0;
    display: flex;
    justify-content: space-between; /* Copyright à gauche, Paiement à droite */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px; padding-right: 20px;
}

.copyright { color: #475569; font-size: 0.9rem; }

.payment-methods {
    display: flex;
    gap: 15px;
    color: #64748b;
    font-size: 1.5rem; /* Gros logos */
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .brand-col p { margin: 0 auto; }
    .socials { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; }
}
/* --- FOOTER ONET DESIGN --- */
.footer-wrapper {
    position: relative;
    padding: 60px 20px;
    /* Un fond subtil derrière le bloc flottant */
    background: radial-gradient(circle at bottom center, rgba(99, 102, 241, 0.1), transparent 70%);
}

/* Le grand bloc flottant */
.footer-glass-box {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.85); /* Fond très sombre mais pas noir */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px; /* Les fameux bords arrondis rounded-3xl */
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

/* --- PARTIE HAUTE (Top Section) --- */
.footer-top-section {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Gauche large, Droite plus fine */
    gap: 60px;
    margin-bottom: 50px;
}

/* Identité */
.brand-info h3 { color: white; font-size: 1.2rem; margin-bottom: 10px; }
.brand-info p { color: #94a3b8; font-size: 0.95rem; max-width: 600px; margin-bottom: 30px; }
.footer-logo { font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 15px; }
.footer-logo .dot { color: var(--accent); }

/* Grille des 2 boites d'action */
.action-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Les cartes grises (Client / Contact) */
.action-card {
    background: rgba(30, 41, 59, 0.5); /* slate-800/30 */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.action-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-square {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
}

.card-title { color: white; font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.card-subtitle { color: #94a3b8; font-size: 0.8rem; }

.action-btn {
    margin-top: 15px;
    display: block;
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    text-decoration: none;
    padding: 6px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.2s;
}
.action-btn:hover { background: rgba(255, 255, 255, 0.05); color: white; border-color: #64748b; }

/* --- COLONNE DROITE (Stats) --- */
.footer-right-block h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }

.stat-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.icon-circle {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    width: 32px; height: 32px;
    border-radius: 8px; /* Tailwind style rounded-lg */
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}

.stat-value { color: var(--primary); font-weight: 700; font-size: 1rem; line-height: 1.1; }
.stat-label { color: #94a3b8; font-size: 0.85rem; }

/* --- GRILLE DE LIENS --- */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.link-col h4 { color: white; font-size: 0.95rem; margin-bottom: 20px; font-weight: 700; }
.link-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: 0.2s;
}
.link-col a:hover { color: var(--primary); }

/* --- BARRE DU BAS --- */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text { color: #64748b; font-size: 0.9rem; }

.trustpilot-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
}
.trustpilot-box .stars { color: #fbbf24; /* Jaune Trustpilot */ display: flex; gap: 2px; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .footer-top-section { grid-template-columns: 1fr; }
    .footer-links-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 768px) {
    .action-cards-grid { grid-template-columns: 1fr; }
    .footer-bottom-bar { flex-direction: column; gap: 20px; text-align: center; }
    .desktop-only { display: none; }
}
/* --- LOGOS DE PAIEMENT --- */
.payment-methods {
    display: flex;
    gap: 20px;
    align-items: center;
}

.payment-methods i {
    font-size: 1.8rem; /* Assez gros pour être vus */
    color: #475569;    /* Gris sombre par défaut (discret) */
    transition: 0.3s;
    cursor: help;      /* Petit curseur "?" au survol */
}

/* Effet au survol : on illumine les logos */
.payment-methods i:hover {
    color: #e2e8f0; /* Blanc cassé */
    transform: translateY(-2px);
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

/* RESPONSIVE : Ajustement pour mobile */
@media (max-width: 768px) {
    .footer-bottom-bar {
        flex-direction: column; /* On empile tout sur mobile */
        gap: 20px;
        text-align: center;
    }
    
    .payment-methods {
        order: -1; /* On remonte les paiements pour rassurer sur mobile */
        margin-bottom: 10px;
    }
}