/* ============================================================
   Site vitrine ELB Informatique — feuille de style unique
   Palette issue du logo : bleu #1e88e5, violet #7c3aed, orange #f97316
   ============================================================ */

:root {
    --bleu: #1e88e5;
    --bleu-fonce: #1565c0;
    --violet: #7c3aed;
    --orange: #f97316;
    --orange-fonce: #ea580c;
    --nuit: #101a2e;
    --nuit-2: #182543;
    --fond: #f5f8fd;
    --blanc: #ffffff;
    --texte: #22314e;
    --texte-doux: #5a6a8a;
    --bordure: #dbe4f2;
    --ombre: 0 10px 30px rgba(16, 26, 46, .10);
    --rayon: 14px;
    --transition: .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: var(--texte);
    background: var(--fond);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--bleu-fonce); }

.container {
    width: min(1140px, 92%);
    margin-inline: auto;
}

h1, h2, h3 { line-height: 1.2; color: var(--nuit); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-block;
    padding: .8rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn-primaire {
    background: linear-gradient(120deg, var(--orange), var(--orange-fonce));
    color: #fff;
    box-shadow: 0 8px 22px rgba(249, 115, 22, .35);
}
.btn-primaire:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(249, 115, 22, .45); }
.btn-secondaire {
    background: transparent;
    color: var(--bleu);
    border-color: var(--bleu);
}
.btn-secondaire:hover { background: var(--bleu); color: #fff; transform: translateY(-2px); }
.btn-clair {
    background: #fff;
    color: var(--nuit);
}
.btn-clair:hover { color: var(--bleu-fonce); transform: translateY(-2px); }

/* ---------- En-tête / navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(16, 26, 46, .96);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 14px rgba(16, 26, 46, .35);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
}
.nav-marque { display: flex; align-items: center; gap: .7rem; }
.nav-logo { height: 38px; width: auto; }
.nav-nom {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .01em;
    white-space: nowrap;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
}
.nav-menu a {
    color: #cfdaf0;
    font-weight: 600;
    font-size: .98rem;
    transition: color var(--transition);
}
.nav-menu a:hover, .nav-menu a.actif { color: #fff; }
.nav-menu a.actif { border-bottom: 2px solid var(--orange); padding-bottom: .15rem; }
.btn-nav {
    background: linear-gradient(120deg, var(--orange), var(--orange-fonce));
    color: #fff !important;
    padding: .55rem 1.2rem;
    font-size: .92rem;
    border-bottom: none !important;
}
.btn-nav:hover { transform: translateY(-1px); }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
}
.nav-burger span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-burger.ouvert span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.ouvert span:nth-child(2) { opacity: 0; }
.nav-burger.ouvert span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, var(--nuit) 0%, #1d2f57 45%, #3b2a72 100%);
    overflow: hidden;
    padding: 5.5rem 0 6rem;
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    pointer-events: none;
}
.hero::before { width: 420px; height: 420px; background: var(--bleu); top: -140px; right: -80px; }
.hero::after { width: 360px; height: 360px; background: var(--orange); bottom: -160px; left: -100px; opacity: .35; }
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero .surtitre {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: .35rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .accent {
    background: linear-gradient(90deg, #6db3ff, #c084fc, var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lead { font-size: 1.2rem; color: #d7e2f5; max-width: 640px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-petit { margin-top: 1.4rem; font-size: .9rem; color: #9fb2d6; }

/* ---------- Sections génériques ---------- */
.section { padding: 4.5rem 0; }
.section-sombre { background: var(--nuit); color: #d7e2f5; }
.section-sombre h2, .section-sombre h3 { color: #fff; }
.section-tintee { background: linear-gradient(180deg, #eef4fc, var(--fond)); }
.section-titre { text-align: center; max-width: 720px; margin: 0 auto 2.8rem; }
.section-titre .kicker {
    display: inline-block;
    color: var(--violet);
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .5rem;
}
.section-sombre .section-titre .kicker { color: #8fb8ff; }
.section-titre p { color: var(--texte-doux); margin-top: .6rem; }
.section-sombre .section-titre p { color: #a9bce0; }

/* ---------- Cartes ---------- */
.grille { display: grid; gap: 1.4rem; }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }

.carte {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    padding: 1.8rem;
    box-shadow: var(--ombre);
    transition: transform var(--transition), box-shadow var(--transition);
}
.carte:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16, 26, 46, .14); }
.carte .icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(30, 136, 229, .14), rgba(124, 58, 237, .14));
}
.carte h3 { margin-bottom: .5rem; }
.carte p { color: var(--texte-doux); font-size: .97rem; }

.section-sombre .carte {
    background: var(--nuit-2);
    border-color: rgba(255, 255, 255, .08);
}
.section-sombre .carte p { color: #a9bce0; }

/* ---------- Chiffres clés ---------- */
.chiffres { text-align: center; }
.chiffre .valeur {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(90deg, var(--bleu), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.chiffre .libelle { color: var(--texte-doux); font-weight: 600; }

/* ---------- Captures (cadre navigateur) ---------- */
.capture { margin: 0; }
.capture-cadre {
    border-radius: var(--rayon);
    overflow: hidden;
    border: 1px solid var(--bordure);
    background: #fff;
    box-shadow: var(--ombre);
}
.capture-barre {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: #e8eef7;
    padding: .55rem .8rem;
    border-bottom: 1px solid var(--bordure);
}
.pastille { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.pastille-rouge { background: #ff5f57; }
.pastille-jaune { background: #febc2e; }
.pastille-verte { background: #28c840; }
.capture-url {
    margin-left: .6rem;
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: 999px;
    padding: .12rem .9rem;
    font-size: .78rem;
    color: var(--texte-doux);
}
.capture-cadre img { display: block; width: 100%; }
.capture-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1d2f57, #3b2a72 60%, #7a3a12);
    color: #fff;
}
.capture-placeholder-icone { font-size: 2.2rem; opacity: .85; }
.capture-placeholder-texte { font-weight: 600; letter-spacing: .03em; opacity: .9; }
.capture figcaption {
    text-align: center;
    margin-top: .8rem;
    color: var(--texte-doux);
    font-size: .95rem;
}

/* ---------- Tarifs ---------- */
.tableau-tarifs {
    width: 100%;
    border-collapse: collapse;
    background: var(--blanc);
    border-radius: var(--rayon);
    overflow: hidden;
    box-shadow: var(--ombre);
}
.tableau-tarifs th, .tableau-tarifs td {
    padding: 1rem 1.4rem;
    text-align: left;
}
.tableau-tarifs td { color: var(--texte); }
.tableau-tarifs thead th {
    background: linear-gradient(120deg, var(--bleu-fonce), var(--violet));
    color: #fff;
    font-size: .95rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.tableau-tarifs tbody tr { border-top: 1px solid var(--bordure); }
.tableau-tarifs tbody tr:nth-child(even) { background: #f4f8fd; }
.tableau-tarifs .prix { font-weight: 800; color: var(--nuit); white-space: nowrap; }

.carte-prix {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.carte-prix .prix-gros {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--nuit);
    white-space: nowrap;
}
.carte-prix .prix-gros small { font-size: .8rem; font-weight: 600; color: var(--texte-doux); }
.carte-prix ul { list-style: none; }
.carte-prix ul li {
    padding: .35rem 0 .35rem 1.6rem;
    position: relative;
    color: var(--texte-doux);
    font-size: .95rem;
}
.carte-prix ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--bleu);
    font-weight: 800;
}
.note-tarifs { margin-top: 1.2rem; font-size: .92rem; color: var(--texte-doux); }
.section-sombre .note-tarifs { color: #a9bce0; }

/* ---------- FAQ ---------- */
.faq details {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    padding: 1.1rem 1.4rem;
    margin-bottom: .9rem;
}
.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--nuit);
    list-style: none;
    position: relative;
    padding-right: 2rem;
}
.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.3rem;
    color: var(--bleu);
    transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .7rem; color: var(--texte-doux); }

/* ---------- CTA final ---------- */
.cta-final {
    background: linear-gradient(120deg, var(--bleu-fonce), var(--violet) 70%);
    color: #fff;
    text-align: center;
    border-radius: 20px;
    padding: 3.2rem 2rem;
    box-shadow: var(--ombre);
}
.cta-final h2 { color: #fff; margin-bottom: .8rem; }
.cta-final p { color: #dbe6fb; max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- Produits ---------- */
.produit {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1.4rem;
    align-items: start;
}
.produit .badge {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    background: linear-gradient(135deg, rgba(30, 136, 229, .15), rgba(124, 58, 237, .15));
}
.produit .tags { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.produit .tag {
    background: #eef4fc;
    border: 1px solid var(--bordure);
    color: var(--bleu-fonce);
    border-radius: 999px;
    padding: .15rem .8rem;
    font-size: .8rem;
    font-weight: 600;
}

/* ---------- Étapes ---------- */
.etapes { counter-reset: etape; }
.etape {
    position: relative;
    padding: 1.4rem 1.4rem 1.4rem 4.2rem;
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
}
.etape::before {
    counter-increment: etape;
    content: counter(etape);
    position: absolute;
    left: 1.2rem;
    top: 1.3rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--bleu), var(--violet));
}
.etape h3 { margin-bottom: .3rem; }
.etape p { color: var(--texte-doux); font-size: .95rem; }

/* ---------- Formulaire ---------- */
.formulaire {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    padding: 2rem;
}
.champ { margin-bottom: 1.2rem; }
.champ label {
    display: block;
    font-weight: 700;
    color: var(--nuit);
    margin-bottom: .35rem;
    font-size: .95rem;
}
.champ label .requis { color: var(--orange-fonce); }
.champ input, .champ select, .champ textarea {
    width: 100%;
    padding: .75rem .95rem;
    border: 1px solid var(--bordure);
    border-radius: 10px;
    font: inherit;
    color: var(--texte);
    background: #fbfdff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
    outline: none;
    border-color: var(--bleu);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, .15);
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ .erreur-msg {
    display: none;
    color: #c62828;
    font-size: .85rem;
    margin-top: .3rem;
}
.champ.invalide input, .champ.invalide select, .champ.invalide textarea { border-color: #c62828; }
.champ.invalide .erreur-msg { display: block; }
.champ-checkbox { display: flex; gap: .6rem; align-items: flex-start; }
.champ-checkbox input { width: auto; margin-top: .3rem; }
.champ-checkbox label { font-weight: 400; color: var(--texte-doux); font-size: .9rem; }
.champ-cache {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-alerte {
    border-radius: 10px;
    padding: .9rem 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}
.form-alerte-erreur { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c0; }

.contact-grille {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}
.contact-infos .carte { margin-bottom: 1.2rem; }
.contact-infos address { font-style: normal; color: var(--texte-doux); }

/* ---------- Merci ---------- */
.merci-bloc { text-align: center; max-width: 620px; margin: 0 auto; }
.merci-bloc .merci-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    font-size: 2.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--bleu), var(--violet));
    margin-bottom: 1.4rem;
}

/* ---------- Animations au scroll (uniquement si JS actif) ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Pied de page ---------- */
.site-footer {
    background: var(--nuit);
    color: #a9bce0;
    padding: 3.5rem 0 1.5rem;
    margin-top: 0;
}
.footer-grille {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.2rem;
}
.footer-marque { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.footer-logo { height: 32px; width: auto; }
.footer-nom { color: #fff; font-weight: 800; font-size: 1.05rem; }
.site-footer h2 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .45rem; }
.site-footer a { color: #a9bce0; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bas {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.4rem;
    font-size: .88rem;
    text-align: center;
}

/* ---------- Divers ---------- */
.texte-centre { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.liste-check { list-style: none; }
.liste-check li {
    padding: .3rem 0 .3rem 1.7rem;
    position: relative;
    color: var(--texte-doux);
}
.liste-check li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--bleu);
    font-weight: 800;
}
.section-sombre .liste-check li { color: #a9bce0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .grille-4 { grid-template-columns: repeat(2, 1fr); }
    .grille-3 { grid-template-columns: repeat(2, 1fr); }
    .contact-grille { grid-template-columns: 1fr; }
    .footer-grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-burger { display: flex; }
    .nav-menu {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--nuit);
        padding: .6rem 4%;
        box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
        display: none;
    }
    .nav-menu.ouvert { display: flex; }
    .nav-menu li { border-top: 1px solid rgba(255, 255, 255, .08); }
    .nav-menu li:first-child { border-top: none; }
    .nav-menu a { display: block; padding: .85rem .4rem; }
    .nav-menu a.actif { border-bottom: none; border-left: 3px solid var(--orange); padding-left: .7rem; }
    .btn-nav { margin: .7rem .4rem; text-align: center; }
    .hero { padding: 3.8rem 0 4.2rem; }
    .grille-2, .grille-3, .grille-4 { grid-template-columns: 1fr; }
    .produit { grid-template-columns: 1fr; }
    .tableau-tarifs { font-size: .92rem; }
    .tableau-tarifs th, .tableau-tarifs td { padding: .8rem .9rem; }
    .footer-grille { grid-template-columns: 1fr; gap: 1.8rem; }
    .formulaire { padding: 1.4rem; }
}
