/* ══════════════════════════════════════════════
   1. VARIABLES & RESET
   ══════════════════════════════════════════════ */
:root {
    --p-base:     #2e22ee;
    --p-dark:     #1e11e3;
    --p-light:    #e9e8fd;
    --bg-body:    #1a1a2e; /* Fond profond modèle */
    --bg-card:    #22224a; /* Fond cartes modèle */
    --bg-grey5:   #f2f2f2; /* Fond sections claires */
    --text-main:  #e0e0f0; /* Texte clair modèle */
    --text-muted: #aaa;
    --accent:     #00bcd4; /* Cyan modèle */
    --font-head:  'Oswald', sans-serif;
    --font-body:  'Roboto', sans-serif;
    --radius:     12px;
    --trans:      0.3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════
   2. NAVBAR & SIDEBAR (Glassmorphism)
   ══════════════════════════════════════════════ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: 70px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-logo img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--p-base); }
.navbar-logo span { font-family: var(--font-head); font-weight: 600; color: #fff; letter-spacing: 1px; font-size: 1.2rem; }

.portail-wrap { display: flex; align-items: center; gap: 15px; flex: 1; margin: 0 20px; overflow: hidden; }
#portail-text { font-family: var(--font-head); font-size: .85rem; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; opacity: 0; transition: 0.5s; }
#portail-text.visible { opacity: 1; }
#portail-line { height: 2px; background: linear-gradient(90deg, var(--accent), transparent); width: 0; transition: 1.2s; }
#portail-line.visible { width: 100%; }

.hamburger { background: var(--p-base); border: none; border-radius: 8px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; transition: var(--trans); }
.hamburger:hover { background: var(--p-dark); }
.hamburger .bar { display: block; width: 22px; height: 2px; background: #fff; transition: var(--trans); }
.hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; }
.hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sidebar { position: fixed; top: 0; left: 0; width: 280px; height: 100%; background: #111; z-index: 199; padding: 100px 0 30px; transform: translateX(-100%); transition: transform .4s cubic-bezier(.4,0,.2,1); box-shadow: 5px 0 25px rgba(0,0,0,0.5); }
.sidebar.active { transform: translateX(0); }
.sidebar nav a { display: block; padding: 15px 30px; color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 1.1rem; transition: var(--trans); text-transform: uppercase; }
.sidebar nav a:hover { background: var(--p-base); padding-left: 40px; }
.sidebar-notez { background: var(--accent) !important; color: #1a1a2e !important; font-weight: bold; }
.sidebar-footer { padding: 30px; color: #555; font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.05); margin-top: auto; }

.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 198; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }

/* ══════════════════════════════════════════════
   3. HERO SECTION
   ══════════════════════════════════════════════ */
.hero {
    min-height: 480px; padding: 140px 20px 80px;
    background: url('images/Fond ChoKInfO-3-ecrans-002.jpg') center/cover no-repeat;
    position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(46,34,238,0.85) 0%, rgba(26,26,46,0.9) 100%);
}
.hero-content { position: relative; z-index: 10; max-width: 850px; }
.hero-content h1 { font-family: var(--font-head); font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 35px; }
.hero-btn { 
    display: inline-block; padding: 15px 35px; margin: 10px;
    background: linear-gradient(90deg, var(--p-base), var(--accent));
    color: #fff; text-decoration: none; font-family: var(--font-head);
    text-transform: uppercase; font-weight: bold; border-radius: 5px; transition: var(--trans);
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 188, 212, 0.3); }

/* ══════════════════════════════════════════════
   4. COMMENT CA MARCHE (Section Claire )
   ══════════════════════════════════════════════ */
.how-section { padding: 90px 24px; background: var(--bg-grey5); color: #1a1a2e; text-align: center; }
.how-section h2 { font-family: var(--font-head); font-size: 2.8rem; color: var(--p-base); text-transform: uppercase; margin-bottom: 15px; }
.subtitle { color: #555; font-size: 1.1rem; margin-bottom: 60px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 35px; max-width: 1100px; margin: 0 auto 50px; }
.step-card { background: #fff; padding: 45px 35px; border-radius: var(--radius); text-align: left; box-shadow: 0 5px 25px rgba(0,0,0,0.05); transition: var(--trans); }
.step-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(46,34,238,0.12); }
.step-num { font-family: var(--font-head); font-size: 3.5rem; color: var(--p-base); font-weight: bold; line-height: 1; margin-bottom: 20px; }
.step-card p { font-size: 1rem; color: #444; }

.how-payment { background: #e9e8fd; padding: 25px 30px; border-radius: 8px; border-left: 6px solid var(--p-base); max-width: 850px; margin: 0 auto 40px; text-align: left; color: #333; }
.how-cta { display: inline-block; padding: 14px 30px; background: var(--p-base); color: #fff; text-decoration: none; border-radius: 5px; font-family: var(--font-head); text-transform: uppercase; transition: 0.3s; }

/* ══════════════════════════════════════════════
   5. NOS OFFRES (Le Cœur du Design)
   ══════════════════════════════════════════════ */
.offers-section { background: var(--bg-body); padding: 100px 24px; text-align: center; }
.section-title { font-family: var(--font-head); font-size: 3rem; color: #fff; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.section-sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 60px; }

.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 35px; max-width: 1200px; margin: 0 auto; }

.service-card { 
    background: var(--bg-card); border-radius: var(--radius); overflow: hidden; 
    display: flex; flex-direction: column; text-align: left; 
    border: 1px solid rgba(255,255,255,0.05); transition: var(--trans); position: relative;
}
.service-card:hover { transform: translateY(-12px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }

.card-header { background: linear-gradient(135deg, var(--p-base), var(--p-dark)); padding: 35px 30px; color: #fff; position: relative; }
.card-header .icon { font-size: 2.8rem; margin-bottom: 10px; }
.card-header h3 { font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.price-badge { position: absolute; top: 25px; right: 25px; background: rgba(255,255,255,0.15); padding: 6px 15px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.2); font-family: var(--font-head); font-size: 0.95rem; }

.card-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.tagline { color: var(--accent); font-weight: bold; font-style: italic; font-size: 0.95rem; margin-bottom: 20px; }

.price-detail { background: rgba(46,34,238,0.2); padding: 15px; border-radius: 8px; margin-bottom: 25px; color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
.price-detail small { display: block; font-family: var(--font-body); font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; font-weight: normal; }

.card-body p { color: #c0c0d8; margin-bottom: 20px; font-size: 0.95rem; }
.card-body ul { list-style: none; margin-bottom: 25px; }
.card-body ul li { position: relative; padding-left: 28px; margin-bottom: 12px; color: #c0c0d8; font-size: 0.9rem; }
.card-body ul li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

.badge-featured { position: absolute; top: 0; left: 30px; background: var(--accent); color: #1a1a2e; padding: 5px 15px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; border-radius: 0 0 8px 8px; z-index: 10; font-family: var(--font-head); }

.card-footer-btns { display: flex; gap: 12px; margin-top: auto; }
.btn-primary, .btn-secondary { flex: 1; text-align: center; padding: 12px; border-radius: 5px; font-family: var(--font-head); text-transform: uppercase; font-size: 0.85rem; font-weight: bold; text-decoration: none; transition: var(--trans); }
.btn-primary { background: var(--p-base); color: #fff; }
.btn-primary:hover { background: var(--p-dark); }
.btn-secondary { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #1a1a2e; }

/* ══════════════════════════════════════════════
   6. CATALOGUE COMPLET
   ══════════════════════════════════════════════ */
.catalogue-section { background: var(--bg-grey5); padding: 90px 24px; text-align: center; color: #333; }
.catalogue-section h2 { font-family: var(--font-head); font-size: 2.2rem; color: var(--p-base); text-transform: uppercase; margin-bottom: 10px; }
.catalogue-section .intro { color: #666; margin-bottom: 50px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; max-width: 1200px; margin: 0 auto 50px; }
.cat-item { background: #fff; padding: 18px 25px; border-left: 5px solid var(--p-base); text-align: left; font-size: 0.95rem; font-weight: 500; box-shadow: 0 3px 10px rgba(0,0,0,0.05); transition: 0.3s; }
.cat-item:hover { transform: translateX(8px); border-left-color: var(--accent); color: var(--p-base); }

/* ══════════════════════════════════════════════
   7. POURQUOI CHOKINFO (Dark)
   ══════════════════════════════════════════════ */
.why-section { background: var(--bg-body); padding: 100px 24px; text-align: center; }
.why-section h2 { font-family: var(--font-head); font-size: 2.8rem; text-transform: uppercase; margin-bottom: 60px; color: #fff; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.why-card { background: var(--bg-card); padding: 45px 35px; border-radius: var(--radius); border-top: 4px solid var(--p-base); text-align: left; transition: var(--trans); }
.why-card:hover { border-top-color: var(--accent); transform: translateY(-5px); }
.why-icon { font-size: 2.8rem; margin-bottom: 20px; }
.why-card h4 { font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; color: #fff; margin-bottom: 15px; }
.why-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ══════════════════════════════════════════════
   8. FOOTER
   ══════════════════════════════════════════════ */
footer { background: #333; padding: 60px 24px 30px; text-align: center; color: #fff; }
.recap-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 40px; }
.btn-recap { padding: 10px 20px; background: var(--p-base); color: #fff; text-decoration: none; font-family: var(--font-head); text-transform: uppercase; font-size: 0.85rem; border-radius: 4px; transition: 0.3s; }
.btn-recap:hover { background: var(--accent); color: #111; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin-bottom: 30px; font-size: 0.85rem; color: #ccc; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.footer-up { display: inline-block; padding: 12px 35px; background: var(--p-base); color: #fff; text-decoration: none; border-radius: 4px; font-family: var(--font-head); margin: 20px 0; }
.footer-credit { margin-top: 30px; font-size: 0.8rem; color: #777; }
.footer-credit a { color: #bbb; text-decoration: none; }

/* ══════════════════════════════════════════════
   9. REVEAL ANIMATIONS
   ══════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.4rem; }
    .section-title { font-size: 2.2rem; }
    .offers-grid { grid-template-columns: 1fr; }
    .navbar { padding: 0 15px; }
    .portail-wrap { display: none; } /* On cache l'animation texte sur petit mobile pour gagner de la place */
}

/* ══════════════════════════════════════════════
   10. RESPONSIVE 
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Ajustement Hero */
    .hero { padding-top: 100px; min-height: 400px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-btn { width: 100%; margin: 8px 0; }

    /* Ajustement "Comment ça marche" */
    .how-section { padding: 60px 15px; }
    .how-section h2 { font-size: 2rem; }
    .steps-grid { 
        grid-template-columns: 1fr; /* Force une seule colonne */
        gap: 20px; 
    }
    .step-card { padding: 30px 20px; }
    .step-num { font-size: 2.5rem; }

    /* Ajustement "Nos Offres" */
    .offers-section { padding: 60px 15px; }
    .section-title { font-size: 2rem; }
    .offers-grid { 
        grid-template-columns: 1fr; 
        gap: 25px; 
    }
    .service-card { border-radius: 8px; }
    .card-header { padding: 25px 20px; }
    .card-header h3 { font-size: 1.2rem; padding-right: 60px; } /* Evite que le titre touche le badge prix */

    /* Ajustement "Catalogue" */
    .cat-grid { 
        grid-template-columns: 1fr 1fr; /* Deux colonnes sur mobile pour les petits items */
        gap: 10px; 
    }
    .cat-item { padding: 12px; font-size: 0.85rem; }

    /* Ajustement "Pourquoi ChoKInfO" */
    .why-section { padding: 60px 15px; }
    .why-section h2 { font-size: 2rem; margin-bottom: 30px; }
    .why-grid { 
        grid-template-columns: 1fr; /* Force une seule colonne */
        gap: 20px; 
    }
    .why-card { padding: 30px 20px; }

    /* Footer mobile */
    .footer-links { gap: 10px; }
    .btn-recap { width: 100%; text-align: center; }
}

/* Optimisation pour très petits écrans (iPhone SE, etc.) */
@media (max-width: 480px) {
    .cat-grid { grid-template-columns: 1fr; } /* On repasse en 1 colonne si c'est vraiment trop étroit */
    .navbar-logo span { font-size: 1rem; }
    .price-badge { font-size: 0.75rem; padding: 4px 10px; top: 15px; right: 15px; }
}