/* ==============================================================
   SITE VITRINE — Suite logicielle (GMAO + Magasin)
   Design 2026 : dark, aurora, bento grid, verre dépoli, reveals.
   Couleurs = thème de la suite (#4f46e5 -> #7c3aed).
   ============================================================== */
:root {
    --c1: #4f46e5;
    --c2: #7c3aed;
    --fond: #0b0b14;
    --fond2: #12121f;
    --carte: rgba(255, 255, 255, 0.045);
    --carte-bord: rgba(255, 255, 255, 0.09);
    --texte: #eef0f6;
    --texte2: #9aa0b5;
    --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--fond);
    color: var(--texte);
    font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Fond : photo d'usine teintée + aurora animé par-dessus ---------- */
.aurora {
    position: fixed; inset: 0; z-index: -2; overflow: hidden;
    background:
        radial-gradient(60vw 60vw at 15% -10%, rgba(79, 70, 229, 0.32), transparent 60%),
        radial-gradient(50vw 50vw at 90% 10%, rgba(124, 58, 237, 0.25), transparent 60%),
        radial-gradient(70vw 60vw at 50% 110%, rgba(37, 99, 235, 0.16), transparent 60%),
        linear-gradient(rgba(11, 11, 20, 0.90), rgba(11, 11, 20, 0.90)),   /* voile sur la photo : valeur UNIQUE 90 %, sans dégradé (réglage Eric 29/09 ; la GMAO est à 55 % sur son bandeau) */
        var(--photo-fond, url('assets/fond_site.jpg')) center / cover no-repeat fixed,
        var(--fond);
}
/* Une photo de fond par page (choix Eric 29/09/2026) ; applis-android.html garde fond_site.jpg. */
body.accueil                 { --photo-fond: url('assets/fond_accueil.jpg'); }
body[data-page="suite"]      { --photo-fond: url('assets/fond_suite.jpg'); }
body[data-page="essentiels"] { --photo-fond: url('assets/fond_essentiels.jpg'); }
body[data-page="acheter"]    { --photo-fond: url('assets/fond_acheter.jpg'); }
body[data-app]               { --photo-fond: url('assets/fond_demo.jpg'); }
.aurora::after {
    content: ''; position: absolute; inset: -50%;
    background: conic-gradient(from 0deg, transparent 60%, rgba(124, 58, 237, 0.08), transparent 80%);
    animation: tourne 26s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }
/* grain léger par-dessus l'aurora */
.grain {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Barre de navigation (verre) ---------- */
.nav {
    position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
    width: min(1120px, calc(100% - 28px));
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 22px; z-index: 50;
    background: rgba(18, 18, 31, 0.55);
    border: 1px solid var(--carte-bord);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 2px; font-size: 15px; }
.nav-logo img { height: 30px; }
.nav-liens { display: flex; gap: 20px; font-size: 14px; color: var(--texte2); }
.nav-liens a { transition: color 0.2s; position: relative; white-space: nowrap; }
.nav-liens a:hover { color: #fff; }
/* page en cours : blanc + petit point lumineux dessous */
.nav-liens a.actif { color: #fff; }
.nav-liens a.actif::after {
    content: ''; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
    width: 5px; height: 5px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 8px #a78bfa;
}
.nav .btn { padding: 9px 20px; font-size: 14px; }
/* bouton ☰ (mobile seulement) : ouvre la liste des pages sous la barre */
.nav-burger {
    display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--carte-bord);
    background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 18px; cursor: pointer; place-items: center;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff; font-weight: 700; font-size: 15.5px;
    padding: 13px 28px; border-radius: 999px; border: 0; cursor: pointer;
    box-shadow: 0 8px 30px rgba(99, 70, 235, 0.35);
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 14px 40px rgba(99, 70, 235, 0.5); }
.btn.fantome {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--carte-bord);
    box-shadow: none;
}
.btn.fantome:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Hero ---------- */
.hero { max-width: 1120px; margin: 0 auto; padding: 158px 20px 40px; text-align: center; }
.hero .pastille {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; color: #c9c4ff; font-weight: 600;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(124, 58, 237, 0.35);
    padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero .pastille .point { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.hero h1 {
    font-size: clamp(40px, 6.5vw, 78px);
    line-height: 1.06; font-weight: 800; letter-spacing: -2px;
}
.hero h1 .grad {
    background: linear-gradient(100deg, #a5b4fc, #c4b5fd 45%, #f0abfc);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sous {
    max-width: 640px; margin: 24px auto 34px;
    font-size: clamp(16px, 2vw, 19px); color: var(--texte2);
}
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* capture en vitrine sous le hero */
.vitrine { max-width: 1120px; margin: 64px auto 0; padding: 0 20px; position: relative; }
.vitrine .cadre {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--carte-bord);
    box-shadow: 0 40px 120px rgba(79, 70, 229, 0.28), 0 6px 24px rgba(0, 0, 0, 0.5);
    background: var(--fond2);
}
.vitrine .barre-nav, .soft-visu .barre-nav {
    display: flex; align-items: center; gap: 7px;
    padding: 12px 16px; background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--carte-bord);
}
.vitrine .rond, .soft-visu .rond { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.vitrine .rond:first-child, .soft-visu .rond:first-child { background: #f87171; }
.vitrine .rond:nth-child(2), .soft-visu .rond:nth-child(2) { background: #fbbf24; }
.vitrine .rond:nth-child(3), .soft-visu .rond:nth-child(3) { background: #34d399; }
.vitrine .url, .soft-visu .url {
    flex: 1; max-width: 380px; margin-left: 12px;
    font-size: 12.5px; color: var(--texte2); text-align: center;
    background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 4px 14px;
}

/* ---------- Sections ---------- */
section { max-width: 1120px; margin: 0 auto; padding: 96px 20px 10px; }
.sur-titre { color: #a78bfa; font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
h2.titre { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -1px; margin: 10px 0 14px; }
.intro { color: var(--texte2); max-width: 560px; font-size: 17px; margin-bottom: 44px; }

/* ---------- Bento produits ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.carte {
    grid-column: span 6;
    background: var(--carte);
    border: 1px solid var(--carte-bord);
    border-radius: var(--radius);
    padding: 30px;
    position: relative; overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.carte:hover { transform: translateY(-5px); border-color: rgba(165, 148, 255, 0.4); background: rgba(255, 255, 255, 0.06); }
.carte .lueur {
    position: absolute; top: -60px; right: -60px; width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
    pointer-events: none;
}
.carte .icone {
    width: 54px; height: 54px; border-radius: 15px;
    display: grid; place-items: center; font-size: 26px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 10px 26px rgba(99, 70, 235, 0.4);
    margin-bottom: 18px;
}
.carte h3 { font-size: 23px; font-weight: 800; margin-bottom: 8px; }
.carte .etat { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: #34d399; text-transform: uppercase; }
.carte .etat.bientot { color: #fbbf24; }
.carte p { color: var(--texte2); font-size: 15.5px; margin: 10px 0 20px; }
.carte .liens { display: flex; gap: 12px; flex-wrap: wrap; }
.carte .mini-visu { margin-top: 22px; border-radius: 12px; overflow: hidden; border: 1px solid var(--carte-bord); }
.carte.large { grid-column: span 12; display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center; }
.carte.tiers { grid-column: span 4; }
/* Les Essentiels : cartes compactes, 3 par ligne */
.carte.essentiel { grid-column: span 4; display: flex; flex-direction: column; padding: 26px; }
.carte.essentiel h3 { font-size: 19px; }
.carte.essentiel p { font-size: 14px; margin: 8px 0 14px; flex-grow: 1; }
.carte.essentiel .icone { width: 46px; height: 46px; font-size: 22px; margin-bottom: 12px; border-radius: 12px; }
.carte.essentiel .puce { font-size: 12px; padding: 4px 10px; }
.carte.essentiel .liens { margin-top: 14px; }

/* étiquettes de fonctionnalités */
.puces { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.puce {
    font-size: 13px; color: #cbd0e4; font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--carte-bord);
    padding: 6px 13px; border-radius: 999px;
}

/* ---------- Bande points forts ---------- */
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.point-carte {
    background: var(--carte); border: 1px solid var(--carte-bord);
    border-radius: 18px; padding: 24px;
}
.point-carte .em { font-size: 26px; margin-bottom: 10px; }
.point-carte b { display: block; font-size: 16.5px; margin-bottom: 5px; }
.point-carte span { color: var(--texte2); font-size: 14px; }

/* ---------- Achat discret ---------- */
.achat {
    text-align: center; padding: 90px 20px 40px;
}
.achat .boite {
    max-width: 660px; margin: 0 auto; padding: 46px 40px;
    background: linear-gradient(160deg, rgba(79, 70, 229, 0.16), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius);
}
.achat h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; letter-spacing: -0.5px; }
.achat p { color: var(--texte2); margin: 14px 0 26px; }
.achat .note { font-size: 13px; color: var(--texte2); margin-top: 18px; opacity: 0.8; }

/* ---------- Pied de page ---------- */
footer {
    border-top: 1px solid var(--carte-bord);
    margin-top: 70px; padding: 34px 20px 40px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    max-width: 1120px; margin-left: auto; margin-right: auto;
    color: var(--texte2); font-size: 14px;
}
footer .liens { display: flex; gap: 22px; }
footer .liens a:hover { color: #fff; }

/* ---------- Cartes tarifs (page Acheter) ---------- */
.carte.tarif { display: flex; flex-direction: column; }
.carte.tarif .prix { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 6px; }
.carte.tarif .montant {
    font-size: 46px; font-weight: 800; letter-spacing: -1px;
    background: linear-gradient(100deg, #a5b4fc, #f0abfc);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.carte.tarif .ht { color: var(--texte2); font-size: 14px; }
.carte.tarif .inclus { list-style: none; margin: 14px 0 24px; display: grid; gap: 9px; }
.carte.tarif .inclus li { color: #cbd0e4; font-size: 15px; }
.carte.tarif .btn { margin-top: auto; justify-content: center; }

/* ---------- Simulation (souris virtuelle) ---------- */
.demo-ecran .cadre { position: relative; }
.curseur {
    position: absolute; z-index: 6; width: 26px; height: 26px;
    margin: -13px 0 0 -13px; pointer-events: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 2.5px solid var(--c2);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(124, 58, 237, 0.25);
    transition: left 1.1s cubic-bezier(0.45, 0.05, 0.25, 1), top 1.1s cubic-bezier(0.45, 0.05, 0.25, 1), opacity 0.4s;
    opacity: 0;
}
.curseur.visible { opacity: 1; }
.curseur.clic { animation: clic-pulse 0.45s ease; }
@keyframes clic-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.55); }
    50% { transform: scale(0.72); }
    100% { transform: scale(1); box-shadow: 0 0 0 26px rgba(124, 58, 237, 0); }
}
.sim-bouton {
    position: absolute; z-index: 5; right: 16px; top: 54px;
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff; font-weight: 700; font-size: 14px; font-family: inherit;
    padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s, filter 0.15s;
}
.sim-bouton:hover { transform: translateY(-2px); filter: brightness(1.12); }
.sim-bouton.cache { display: none; }
/* Démos par onglet (30/09/2026) : menu déroulant sous l'onglet actif du menu + bouton « Visite complète » */
.demo-menu .sous-demos { margin: 2px 10px 10px; }
.demo-menu .sous-demos select { width: 100%; background: rgba(255, 255, 255, 0.06); color: var(--texte); border: 1px solid var(--carte-bord);
    border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.demo-menu .sous-demos select:focus { outline: 2px solid var(--c2); }
.demo-menu .sous-demos option { background: #14141f; color: #fff; }
.btn-visite { margin-top: 12px; }
.sim-etape {
    position: absolute; z-index: 5; left: 50%; bottom: 14px; transform: translateX(-50%);
    max-width: 84%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: rgba(10, 10, 18, 0.82); border: 1px solid rgba(165, 148, 255, 0.35);
    color: #fff; font-size: 14.5px; font-weight: 600;
    padding: 10px 22px; border-radius: 999px;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; transition: opacity 0.35s;
}
.sim-etape.visible { opacity: 1; }

/* ---------- Révélations au scroll ---------- */
/* 6 — arrivée flou → net : chaque bloc surgit du flou avec un léger rebond (cascade via --i plus bas) */
.reveal { opacity: 0; transform: translateY(26px) scale(0.97); filter: blur(14px);
          transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), filter 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; filter: none; }

/* ==============================================================
   PAGE DÉMO SURFABLE
   ============================================================== */
.demo-page { max-width: 1240px; margin: 0 auto; padding: 120px 20px 60px; }
.demo-tete { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.demo-tete h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1px; }
.demo-tete p { color: var(--texte2); }

.demo-shell { display: grid; grid-template-columns: 250px 1fr; gap: 18px; }
.demo-menu {
    background: var(--carte); border: 1px solid var(--carte-bord);
    border-radius: var(--radius); padding: 16px; height: fit-content;
    position: sticky; top: 96px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.demo-menu .cat { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--texte2); margin: 14px 10px 8px; }
.demo-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: none; border: 0; color: var(--texte2);
    font-size: 14.5px; font-weight: 600; font-family: inherit;
    padding: 10px 12px; border-radius: 11px; cursor: pointer; text-align: left;
    transition: background 0.15s, color 0.15s;
}
.demo-menu button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.demo-menu button.actif {
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff; box-shadow: 0 8px 22px rgba(99, 70, 235, 0.35);
}
.demo-ecran .cadre {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--carte-bord);
    background: var(--fond2);
    box-shadow: 0 30px 90px rgba(79, 70, 229, 0.22);
}
.demo-ecran img { width: 100%; opacity: 0; transition: opacity 0.35s; }
.demo-ecran img.chargee { opacity: 1; }
.demo-legende {
    margin-top: 16px; padding: 18px 22px;
    background: var(--carte); border: 1px solid var(--carte-bord); border-radius: 16px;
    color: var(--texte2); font-size: 15px;
}
.demo-legende b { color: var(--texte); }

@media (max-width: 900px) {
    .nav-liens { display: none; }
    .nav-burger { display: grid; }
    /* menu ☰ ouvert : les pages en colonne, sous la barre */
    .nav.ouverte .nav-liens {
        display: flex; flex-direction: column; gap: 4px;
        position: absolute; top: calc(100% + 10px); left: 0; right: 0;
        padding: 14px 18px; border-radius: 22px;
        background: rgba(18, 18, 31, 0.96); border: 1px solid var(--carte-bord);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    .nav.ouverte .nav-liens a { padding: 10px 12px; border-radius: 12px; font-size: 15px; }
    .nav.ouverte .nav-liens a.actif { background: rgba(255, 255, 255, 0.07); }
    .nav.ouverte .nav-liens a.actif::after { display: none; }
    .carte, .carte.tiers, .carte.essentiel { grid-column: span 12; }
    .carte.large { grid-template-columns: 1fr; }
    .points { grid-template-columns: 1fr 1fr; }
    .demo-shell { grid-template-columns: 1fr; }
    .demo-menu { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
    .demo-menu .cat { display: none; }
    .demo-menu button { width: auto; }
}

/* ---------- Sélecteur de démo (GMAO | Magasin) ---------- */
.demo-switch { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.demo-switch .btn.actif { pointer-events: none; box-shadow: 0 0 0 2px rgba(255,255,255,0.35) inset; }
.demo-select {
    background: rgba(255,255,255,0.05); color: var(--texte1);
    border: 1px solid var(--carte-bord); border-radius: 999px;
    padding: 11px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
    font-family: inherit; appearance: none; -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--texte2) 50%), linear-gradient(135deg, var(--texte2) 50%, transparent 50%);
    background-position: calc(100% - 18px) center, calc(100% - 13px) center;
    background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
.demo-select option { background: #14142a; color: var(--texte1); }

/* ---------- Vitrine animée (diaporama des applis, accueil) ---------- */
.vitrine .cadre.flottant { animation: vitrine-flotte 7s ease-in-out infinite; position: relative; }
@keyframes vitrine-flotte {
    0%, 100% { transform: translateY(0); box-shadow: 0 40px 120px rgba(79, 70, 229, 0.28), 0 6px 24px rgba(0, 0, 0, 0.5); }
    50% { transform: translateY(-10px); box-shadow: 0 56px 140px rgba(79, 70, 229, 0.36), 0 10px 30px rgba(0, 0, 0, 0.45); }
}
.vitrine .diapos { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.vitrine .diapo {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.035);
    transition: opacity 1.1s ease, transform 6.5s ease;
}
.vitrine .diapo.active { opacity: 1; transform: scale(1); }
/* balayage lumineux discret sur le cadre */
.vitrine .reflet {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit;
}
.vitrine .reflet::after {
    content: ''; position: absolute; top: -20%; bottom: -20%; width: 34%; left: -40%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    transform: skewX(-18deg); animation: vitrine-reflet 6.5s ease-in-out infinite;
}
@keyframes vitrine-reflet { 0%, 55% { left: -40%; } 90%, 100% { left: 120%; } }
/* points indicateurs sous le cadre */
.diapo-points { display: flex; justify-content: center; gap: 9px; margin-top: 16px; }
.diapo-points button {
    width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255, 255, 255, 0.22); transition: all 0.3s; padding: 0;
}
.diapo-points button.actif { background: var(--accent, #8b8cf8); transform: scale(1.35); }

/* petit onglet Acheter sur les cartes produit */
.carte .liens .btn.mini {
    padding: 9px 16px; font-size: 13.5px;
}

/* ==============================================================
   POP-UPS D'AIDE (« On vous explique ») — verre dépoli + bord dégradé.
   Ouverts par les éléments [data-aide], injectés par script.js.
   ============================================================== */
.aide-overlay {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 22px;
    background: rgba(7, 7, 14, 0.62);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
.aide-overlay.ouverte { opacity: 1; pointer-events: auto; }
.aide-boite {
    position: relative; width: min(660px, 100%); max-height: min(82vh, 720px);
    display: flex; flex-direction: column;
    background: linear-gradient(160deg, rgba(30, 30, 52, 0.96), rgba(16, 16, 28, 0.96));
    border: 1px solid transparent; border-radius: var(--radius);
    background-clip: padding-box;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transform: translateY(18px) scale(0.97); transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.aide-overlay.ouverte .aide-boite { transform: none; }
/* liseré dégradé en haut de la boîte */
.aide-boite::before {
    content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
}
.aide-entete {
    display: flex; align-items: center; gap: 14px;
    padding: 24px 28px 14px;
}
.aide-entete .em {
    font-size: 26px; width: 52px; height: 52px; flex: none;
    display: grid; place-items: center; border-radius: 15px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.28), rgba(124, 58, 237, 0.22));
    border: 1px solid rgba(139, 140, 248, 0.25);
}
.aide-entete h3 { font-size: 20px; line-height: 1.25; }
.aide-fermer {
    position: absolute; top: 16px; right: 16px;
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--carte-bord);
    background: rgba(255, 255, 255, 0.06); color: var(--texte2);
    font-size: 16px; line-height: 1; cursor: pointer; transition: all 0.2s;
}
.aide-fermer:hover { background: rgba(255, 255, 255, 0.14); color: #fff; transform: rotate(90deg); }
.aide-corps {
    padding: 6px 28px 26px; overflow-y: auto; overscroll-behavior: contain;
    color: var(--texte2); font-size: 15px;
}
.aide-corps b { color: var(--texte); }
.aide-corps p { margin: 10px 0; }
/* étapes numérotées */
.aide-etape { display: flex; gap: 14px; margin: 14px 0; align-items: flex-start; }
.aide-etape .num {
    flex: none; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: 13.5px; color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 4px 14px rgba(99, 70, 235, 0.4); margin-top: 2px;
}
/* encadré astuce / avertissement doux */
.aide-note {
    margin: 16px 0 4px; padding: 13px 16px; border-radius: 14px; font-size: 14px;
    background: rgba(124, 58, 237, 0.10); border: 1px solid rgba(139, 140, 248, 0.22);
}
.aide-note.attention { background: rgba(245, 158, 11, 0.09); border-color: rgba(245, 158, 11, 0.28); }
/* deux colonnes « pas à pas » côte à côte (fournisseurs IA) */
.aide-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.aide-duo .col {
    padding: 15px 16px; border-radius: 15px;
    background: var(--carte); border: 1px solid var(--carte-bord);
}
.aide-duo .col b { display: block; margin-bottom: 8px; font-size: 14.5px; }
.aide-duo .col ol { margin: 0 0 0 18px; padding: 0; }
.aide-duo .col li { margin: 5px 0; font-size: 13.8px; }
@media (max-width: 640px) {
    .aide-duo { grid-template-columns: 1fr; }
    .aide-boite { max-height: 88vh; }
    .aide-entete { padding: 20px 20px 10px; }
    .aide-corps { padding: 4px 20px 20px; }
}

/* ---------- Section « On vous explique » (tuiles discrètes) ---------- */
.explique { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 1120px; margin: 34px auto 0; padding: 0 24px; }
.explique button {
    display: flex; align-items: center; gap: 12px; text-align: left;
    padding: 15px 18px; border-radius: 16px; cursor: pointer;
    background: var(--carte); border: 1px solid var(--carte-bord); color: var(--texte);
    font-size: 14.5px; font-weight: 600; font-family: inherit;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.explique button:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.08); border-color: rgba(139, 140, 248, 0.4); }
.explique button .em { font-size: 21px; flex: none; }
.explique button small { display: block; color: var(--texte2); font-weight: 400; font-size: 12.5px; margin-top: 1px; }

/* --- questions en couleur : une teinte par thème (IA violet, devis or, argent vert, réseau bleu, pépins orange) --- */
.explique button[data-aide="cle-ia"]       { --a1: #7c3aed; --a2: #a78bfa; --a3: #ddd6fe; --ombre: rgba(139, 92, 246, 0.38); }
.explique button[data-aide="lire-devis"]   { --a1: #ca8a04; --a2: #facc15; --a3: #fef08a; --ombre: rgba(234, 179, 8, 0.36); }
.explique button[data-aide="ht-ttc"]       { --a1: #059669; --a2: #34d399; --a3: #a7f3d0; --ombre: rgba(16, 185, 129, 0.36); }
.explique button[data-aide="multi-postes"] { --a1: #0284c7; --a2: #38bdf8; --a3: #bae6fd; --ombre: rgba(14, 165, 233, 0.36); }
.explique button[data-aide="pepins"]       { --a1: #ea580c; --a2: #fb923c; --a3: #fed7aa; --ombre: rgba(249, 115, 22, 0.36); }
.explique button[data-aide] {
    color: var(--a3);
    border-color: color-mix(in srgb, var(--a2) 40%, transparent);
    background:
        linear-gradient(180deg, var(--a1), var(--a2), var(--a3)) left / 4px 100% no-repeat,
        linear-gradient(160deg, color-mix(in srgb, var(--a1) 22%, transparent), color-mix(in srgb, var(--a2) 6%, transparent)),
        var(--carte);
    transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.explique button[data-aide] .em {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 8px 22px var(--ombre);
}
.explique button[data-aide] small { color: var(--texte); opacity: 0.8; }
.explique button[data-aide]:hover {
    border-color: var(--a2); box-shadow: 0 14px 34px var(--ombre);
    background:
        linear-gradient(180deg, var(--a1), var(--a2), var(--a3)) left / 4px 100% no-repeat,
        linear-gradient(160deg, color-mix(in srgb, var(--a1) 36%, transparent), color-mix(in srgb, var(--a2) 12%, transparent)),
        var(--carte);
}
/* lien discret « ? » dans les cartes produit */
.lien-aide { font-size: 13px; color: var(--texte2); border-bottom: 1px dashed rgba(154, 160, 181, 0.5); cursor: pointer; transition: color 0.2s; }
.lien-aide:hover { color: #fff; }

/* ==============================================================
   PAGES PAR FAMILLE DE LOGICIELS — bandeau « gros titre » par appli.
   Un <section class="soft"> par logiciel : nom en lettres géantes aux
   couleurs de l'appli (GMAO violet, Magasin vert, Carnet doré), texte +
   points + puces à gauche, grande capture à droite, 3 vignettes dessous.
   Pour AJOUTER une appli : copier une section et régler ses variables --a1/--a2/--nom*.
   ============================================================== */
/* petits raccourcis sous le hero (une pastille par appli de la page) */
.sommaire-softs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.sommaire-softs a {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 14px; font-weight: 700; color: var(--texte2);
    background: var(--carte); border: 1px solid var(--carte-bord);
    padding: 9px 16px; border-radius: 999px; transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.sommaire-softs a:hover { color: #fff; border-color: rgba(165, 148, 255, 0.4); transform: translateY(-2px); }
.sommaire-softs .pt { width: 8px; height: 8px; border-radius: 50%; }
.sommaire-softs .pt.gmao { background: #8b8cf8; box-shadow: 0 0 8px #8b8cf8; }
.sommaire-softs .pt.magasin { background: #34d399; box-shadow: 0 0 8px #34d399; }
.sommaire-softs .pt.carnet { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.sommaire-softs .pt.demandes { background: #818cf8; box-shadow: 0 0 8px #818cf8; }

.soft {
    --a1: var(--c1); --a2: var(--c2); --ombre: rgba(99, 70, 235, 0.42);
    --nom1: #a5b4fc; --nom2: #c4b5fd; --nom3: #f0abfc;
    padding: 84px 20px 10px;
}
.soft + .soft { margin-top: 44px; border-top: 1px solid var(--carte-bord); }
.soft.magasin { --a1: #059669; --a2: #34d399; --ombre: rgba(16, 185, 129, 0.38); --nom1: #6ee7b7; --nom2: #a7f3d0; --nom3: #5eead4; }
.soft.carnet  { --a1: #d97706; --a2: #fbbf24; --ombre: rgba(245, 158, 11, 0.38); --nom1: #fcd34d; --nom2: #fde68a; --nom3: #fdba74; }
.soft.demandes { --a1: #4338ca; --a2: #818cf8; --ombre: rgba(67, 56, 202, 0.42); --nom1: #c7d2fe; --nom2: #a5b4fc; --nom3: #7dd3fc; }

/* en-tête : icône + NOM GÉANT + métier */
.soft-entete { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.soft-icone {
    width: 86px; height: 86px; border-radius: 24px; flex: none;
    display: grid; place-items: center; font-size: 42px;
    background: linear-gradient(135deg, var(--a1), var(--a2));
    box-shadow: 0 16px 40px var(--ombre);
}
.soft-nom {
    font-size: clamp(54px, 9vw, 108px); font-weight: 900; letter-spacing: -4px; line-height: 0.95;
    /* le dégradé n'est peint que dans la boîte du texte : marge interne pour couvrir la boucle du g
       (Magasin) et le bord des lettres, compensée par une marge négative pour ne rien décaler */
    padding: 0.04em 0.06em 0.22em 0.02em; margin: -0.04em 0 -0.22em -0.02em;
    background: linear-gradient(100deg, var(--nom1), var(--nom2) 45%, var(--nom3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.soft-metier { color: var(--texte2); font-size: 17px; font-weight: 600; margin-top: 26px; }   /* sous la boucle du g, même écart pour les 4 titres */
.soft-entete .etat { margin-left: auto; align-self: flex-start; margin-top: 12px; }

/* corps : texte | fenêtre animée (ou l'inverse avec .inverse) */
.soft-corps { display: grid; grid-template-columns: 0.9fr 1.25fr; gap: 40px; align-items: center; }
.soft:not(.fiche-boite .soft) .soft-texte {
    padding: 28px 30px 26px; border-radius: var(--radius); border: 1px solid var(--carte-bord);
    background: linear-gradient(90deg, var(--a1), var(--a2)) top / 100% 4px no-repeat, var(--carte);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.soft.inverse .soft-corps { grid-template-columns: 1.25fr 0.9fr; }
.soft.inverse .soft-visu { order: -1; }
.soft-pitch { font-size: 17px; color: var(--texte2); margin-bottom: 18px; }
.soft-pitch b { color: var(--texte); }
.soft-points { list-style: none; display: grid; gap: 10px; margin: 0 0 20px; }
.soft-points li { position: relative; padding-left: 22px; color: var(--texte2); font-size: 15px; }
.soft-points li::before {
    content: ''; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%;
    background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 0 10px var(--ombre);
}
.soft-points b { color: var(--texte); }
.soft .liens { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.soft .btn { background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 8px 30px var(--ombre); }
.soft .btn.fantome { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.soft .btn.fantome:hover { background: rgba(255, 255, 255, 0.12); }
.soft-visu .cadre {
    border-radius: var(--radius); overflow: hidden; background: var(--fond2);
    border: 1px solid var(--carte-bord);
    box-shadow: 0 30px 90px var(--ombre), 0 6px 24px rgba(0, 0, 0, 0.5);
}
.soft-visu img { width: 100%; }

/* ---------- Fenêtre animée d'une appli (.film) : pages + moments des processus ---------- */
.film .diapos { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0e0e1a; }
.film .diapo {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
    opacity: 0; will-change: opacity, transform;
}
.film .diapo.active { opacity: 1; z-index: 2; }
/* fondu : la page réagit à une action → la capture suivante apparaît sur place, zoom lent */
.film .diapo.fondu { transform: scale(1.03); transition: opacity 0.5s ease, transform 6s ease-out; }
.film .diapo.fondu.active { transform: scale(1); }
/* glisse : on change de page → la nouvelle arrive de la droite, l'ancienne recule */
.film .diapo.glisse { transform: translateX(7%) scale(1.02); transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.film .diapo.glisse.active { transform: translateX(0) scale(1); }
.film .diapo.sortante {
    opacity: 0 !important; transform: translateX(-4%) scale(0.97) !important;
    transition: opacity 0.7s ease, transform 0.8s ease !important; z-index: 1;
}
/* barre de progression de la capture en cours (bas de l'image) */
.film .progression { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; background: rgba(255, 255, 255, 0.10); }
.film .progression i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a1), var(--a2)); box-shadow: 0 0 10px var(--a2); }
/* légende : ce qui se passe sur la capture */
.film .legende {
    display: flex; align-items: center; min-height: 46px; padding: 9px 16px;
    font-size: 13.5px; font-weight: 600; color: var(--texte);
    border-top: 1px solid var(--carte-bord); background: rgba(255, 255, 255, 0.03);
}
.film .legende .txt { transition: opacity 0.18s ease, transform 0.18s ease; }
.film .legende .txt.change { opacity: 0; transform: translateY(4px); }
/* puces de chapitres : une par page de l'appli, cliquables */
.film .chapitres { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--carte-bord); }
.film .chapitres button {
    font-family: inherit; font-size: 12px; font-weight: 700; color: var(--texte2);
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--carte-bord);
    border-radius: 999px; padding: 5px 11px; cursor: pointer; transition: all 0.2s;
}
.film .chapitres button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.film .chapitres button.actif { color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); border-color: transparent; box-shadow: 0 4px 14px var(--ombre); }

/* ---------- ⤢ Agrandir / ⛶ Plein écran (boutons dans la barre de la fenêtre) ---------- */
.film-outils { margin-left: auto; display: flex; gap: 6px; flex: none; }
.film-outils button {
    width: 30px; height: 24px; border-radius: 7px; border: 1px solid var(--carte-bord);
    background: rgba(255, 255, 255, 0.06); color: var(--texte2); font-size: 14px; line-height: 1;
    cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.film-outils button:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
/* agrandi : le film est déplacé dans une couche par-dessus la page (il continue de tourner) */
.film-couche {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(7, 7, 14, 0.88);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    animation: film-couche-arrive 0.25s ease;
}
@keyframes film-couche-arrive { from { opacity: 0; } to { opacity: 1; } }
.film-couche .film {
    width: min(1600px, 96vw, calc((100vh - 190px) * 16 / 9)); max-height: calc(100vh - 48px);
    border-radius: var(--radius); overflow: hidden; background: var(--fond2);
    border: 1px solid var(--carte-bord); box-shadow: 0 40px 120px var(--ombre), 0 10px 40px rgba(0, 0, 0, 0.6);
    animation: film-zoom 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes film-zoom { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.film-couche .legende { font-size: 15px; }
.film-couche .chapitres button { font-size: 13px; }
.film-fermer {
    position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--carte-bord); background: rgba(255, 255, 255, 0.08); color: #fff;
    font-size: 18px; line-height: 1; cursor: pointer; transition: all 0.2s;
}
.film-fermer:hover { background: rgba(255, 255, 255, 0.18); transform: rotate(90deg); }
.film-marque { border-radius: var(--radius); border: 1px dashed var(--carte-bord); }
body.film-ouvert { overflow: hidden; }
/* plein écran (bouton ⛶) : l'image prend toute la hauteur, capture entière visible */
.film:fullscreen { display: flex; flex-direction: column; background: #06060c; border: 0; border-radius: 0; width: 100%; max-height: none; }
.film:fullscreen .diapos { flex: 1; aspect-ratio: auto; min-height: 0; }
.film:fullscreen .diapo { object-fit: contain; object-position: center; }
.film:fullscreen .legende { font-size: 17px; padding: 12px 24px; }
.film:fullscreen .chapitres { justify-content: center; }
.film:fullscreen .chapitres button { font-size: 13.5px; padding: 6px 14px; }

/* ==============================================================
   PAGE D'ACCUEIL — les avantages de la suite Jemalys, avec animations.
   ============================================================== */
.nav-logo.actif { color: #fff; }
/* révélations en cascade : --i = rang de la carte dans son groupe */
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 90ms); }

/* --- hero : titre qui scintille, icônes des applis qui flottent sur les côtés --- */
.hero-accueil { position: relative; padding-bottom: 64px; }
.grad.anime { background-size: 200% auto; animation: grad-brille 7s linear infinite; }
@keyframes grad-brille { to { background-position: 200% center; } }
.orbite { position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); pointer-events: none; }
.orbite .constellation { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Trois couches par bulle : .bulle = profondeur à la souris (translate, posée par script.js) et arrivée
   en cascade (scale + opacité) ; .flot = flottaison + grossissement à l'approche ; i = l'emoji. */
.bulle {
    position: absolute; width: 58px; height: 58px; opacity: 0; --taille: 27px;
    animation: bulle-pop 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
    animation-delay: calc(0.3s + var(--i, 0) * 0.13s);
    will-change: translate;
}
@keyframes bulle-pop { from { opacity: 0; scale: 0.2; } 60% { scale: 1.18; } to { opacity: 1; scale: 1; } }
.bulle .flot {
    position: relative; width: 100%; height: 100%; border-radius: 18px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--a1) 24%, rgba(14, 16, 32, 0.72));
    border: 1px solid color-mix(in srgb, var(--a2) 55%, transparent);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 26px color-mix(in srgb, var(--a2) 34%, transparent),
                inset 0 0 18px color-mix(in srgb, var(--a2) 16%, transparent);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    animation: bulle-flotte 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.9s);
    transition: scale 0.35s cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 0.35s;
}
@keyframes bulle-flotte { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }
.bulle .flot i { font-style: normal; font-size: var(--taille); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); transition: transform 0.35s; }
/* anneau lumineux qui tourne autour de la bulle (dégradé conique animé) */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.bulle .flot::before {
    content: ""; position: absolute; inset: -3px; border-radius: 21px; padding: 2px; opacity: 0.5;
    background: conic-gradient(from var(--angle), transparent 0 55%, var(--a2) 78%, var(--a1) 90%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: bulle-anneau 6s linear infinite; animation-delay: calc(var(--i, 0) * -0.7s);
}
@keyframes bulle-anneau { to { --angle: 360deg; } }
/* à l'approche de la souris : la bulle grossit, son anneau s'allume, une onde part, et elle dit son nom */
.bulle .flot::after { content: ""; position: absolute; inset: 0; border-radius: 18px; border: 2px solid var(--a2); opacity: 0; }
.bulle.proche .flot { scale: 1.32; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), 0 0 46px color-mix(in srgb, var(--a2) 70%, transparent); }
.bulle.proche .flot::before { opacity: 1; animation-duration: 1.6s; }
.bulle.proche .flot::after { animation: bulle-onde 1s ease-out infinite; }
.bulle.proche .flot i { transform: rotate(-10deg) scale(1.08); }
@keyframes bulle-onde { from { opacity: 0.85; scale: 1; } to { opacity: 0; scale: 2; } }
.bulle::after {
    content: attr(data-nom); position: absolute; left: 50%; top: 100%; translate: -50% 14px;
    padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap;
    color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 8px 22px color-mix(in srgb, var(--a2) 45%, transparent);
    opacity: 0; transition: opacity 0.25s, translate 0.25s;
}
.bulle.proche::after { opacity: 1; translate: -50% 20px; }
/* positions : cinq bulles à gauche, cinq à droite, tailles variées */
.bulle.b1  { left: 5%;  top: 30%; }
.bulle.b2  { left: 13%; top: 60%; width: 50px; height: 50px; --taille: 23px; }
.bulle.b3  { left: 3%;  top: 86%; width: 46px; height: 46px; --taille: 21px; }
.bulle.b4  { left: 16%; top: 14%; width: 44px; height: 44px; --taille: 20px; }
.bulle.b5  { left: 9%;  top: 46%; width: 40px; height: 40px; --taille: 18px; }
.bulle.b6  { right: 5%;  top: 28%; }
.bulle.b7  { right: 13%; top: 60%; width: 50px; height: 50px; --taille: 23px; }
.bulle.b8  { right: 3%;  top: 86%; width: 46px; height: 46px; --taille: 21px; }
.bulle.b9  { right: 16%; top: 14%; width: 44px; height: 44px; --taille: 20px; }
.bulle.b10 { right: 9%;  top: 46%; width: 40px; height: 40px; --taille: 18px; }

/* --- chiffres qui comptent --- */
.chiffres { padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chiffre { background: var(--carte); border: 1px solid var(--carte-bord); border-radius: 18px; padding: 22px 20px; text-align: center; }
.chiffre b {
    display: block; font-size: 42px; font-weight: 800; letter-spacing: -1.5px; line-height: 1;
    background: linear-gradient(100deg, #a5b4fc, #f0abfc);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chiffre b small { font-size: 16px; letter-spacing: 0; }
.chiffre > span { display: block; margin-top: 9px; color: var(--texte2); font-size: 14px; }
/* le compteur animé vit DANS le titre : il en garde la taille et le dégradé */
.chiffre b .compteur { display: inline; font-size: inherit; margin: 0; color: inherit; }

/* --- chiffres en couleur : une teinte par carte (--a1 foncé, --a2 vive, --a3 claire), liseré dégradé
       en haut, halo au survol ; l'explication .plus se déplie au survol, au toucher ou au clavier. --- */
/* Les quatre cartes gardent la même taille (hauteur commune de la rangée) : l'explication
   n'agrandit pas la carte, elle se déploie en panneau SOUS la carte, par-dessus la suite. */
.chiffre.c-interface { --a1: #4f46e5; --a2: #818cf8; --a3: #c7d2fe; --ombre: rgba(99, 102, 241, 0.38); }
.chiffre.c-install   { --a1: #d97706; --a2: #fbbf24; --a3: #fde68a; --ombre: rgba(245, 158, 11, 0.36); }
.chiffre.c-licence   { --a1: #059669; --a2: #34d399; --a3: #a7f3d0; --ombre: rgba(16, 185, 129, 0.36); }
.chiffre.c-donnees   { --a1: #0284c7; --a2: #38bdf8; --a3: #bae6fd; --ombre: rgba(14, 165, 233, 0.36); }
.chiffre[class*="c-"] {
    position: relative; cursor: default; outline: none;
    border-color: color-mix(in srgb, var(--a2) 42%, transparent);
    /* liseré dégradé en haut (couche de fond, donc coupé proprement par les coins arrondis) */
    background:
        linear-gradient(90deg, var(--a1), var(--a2), var(--a3)) top / 100% 4px no-repeat,
        linear-gradient(160deg, color-mix(in srgb, var(--a1) 26%, transparent), color-mix(in srgb, var(--a2) 7%, transparent)),
        var(--carte);
}
.chiffre[class*="c-"] b { background: linear-gradient(100deg, var(--a3), var(--a2)); -webkit-background-clip: text; background-clip: text; }
.chiffre[class*="c-"] > span { color: var(--texte); opacity: 0.85; }
.chiffre[class*="c-"].visible { transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, border-radius 0.25s; }
.chiffre[class*="c-"].visible:hover, .chiffre[class*="c-"].visible:focus, .chiffre[class*="c-"].visible:focus-within {
    transform: translateY(-6px); border-color: var(--a2); box-shadow: 0 18px 44px var(--ombre);
    border-bottom-left-radius: 0; border-bottom-right-radius: 0; z-index: 20;
}
.chiffre .plus {
    position: absolute; left: -1px; right: -1px; top: 100%; z-index: 21;
    padding: 12px 18px 16px; font-size: 13.5px; line-height: 1.55; color: var(--texte); text-align: left;
    background: linear-gradient(180deg, color-mix(in srgb, var(--a1) 34%, #10132a), #10132a);
    border: 1px solid var(--a2); border-top: 1px solid color-mix(in srgb, var(--a2) 45%, transparent);
    border-radius: 0 0 18px 18px; box-shadow: 0 22px 44px var(--ombre);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.chiffre:hover .plus, .chiffre:focus .plus, .chiffre:focus-within .plus { opacity: 1; transform: none; pointer-events: auto; }

/* --- avantages : cartes en cascade, icône qui bascule au survol --- */
.avantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.avantage { background: var(--carte); border: 1px solid var(--carte-bord); border-radius: 18px; padding: 24px 22px; }
.avantage.visible { transition: transform 0.25s, border-color 0.25s, background 0.25s; }
.avantage.visible:hover { transform: translateY(-6px); border-color: rgba(165, 148, 255, 0.45); background: rgba(255, 255, 255, 0.07); }
.avantage .em {
    width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 25px;
    background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 26px rgba(99, 70, 235, 0.35);
    margin-bottom: 14px; transition: transform 0.3s;
}
.avantage.visible:hover .em { transform: scale(1.12) rotate(-6deg); }
.avantage b { display: block; font-size: 16.5px; margin-bottom: 6px; }
.avantage span { color: var(--texte2); font-size: 14px; }

/* --- avantages en couleur : une teinte par carte (mêmes codes que les cartes-chiffres quand
       l'argument est le même : données bleu, licence vert, installation ambre, interface indigo). --- */
.avantage.av-donnees   { --a1: #0284c7; --a2: #38bdf8; --a3: #bae6fd; --ombre: rgba(14, 165, 233, 0.36); }
.avantage.av-licence   { --a1: #059669; --a2: #34d399; --a3: #a7f3d0; --ombre: rgba(16, 185, 129, 0.36); }
.avantage.av-install   { --a1: #d97706; --a2: #fbbf24; --a3: #fde68a; --ombre: rgba(245, 158, 11, 0.36); }
.avantage.av-interface { --a1: #4f46e5; --a2: #818cf8; --a3: #c7d2fe; --ombre: rgba(99, 102, 241, 0.38); }
.avantage.av-couleurs  { --a1: #db2777; --a2: #f472b6; --a3: #fbcfe8; --ombre: rgba(236, 72, 153, 0.36); }
.avantage.av-alertes   { --a1: #ea580c; --a2: #fb923c; --a3: #fed7aa; --ombre: rgba(249, 115, 22, 0.36); }
.avantage.av-ia        { --a1: #7c3aed; --a2: #a78bfa; --a3: #ddd6fe; --ombre: rgba(139, 92, 246, 0.38); }
.avantage.av-libre     { --a1: #0d9488; --a2: #2dd4bf; --a3: #99f6e4; --ombre: rgba(20, 184, 166, 0.36); }
.avantage[class*="av-"] {
    border-color: color-mix(in srgb, var(--a2) 38%, transparent);
    background:
        linear-gradient(90deg, var(--a1), var(--a2), var(--a3)) top / 100% 4px no-repeat,
        linear-gradient(160deg, color-mix(in srgb, var(--a1) 22%, transparent), color-mix(in srgb, var(--a2) 6%, transparent)),
        var(--carte);
}
.avantage[class*="av-"] .em { background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 10px 26px var(--ombre); }
.avantage[class*="av-"] b { color: var(--a3); }
.avantage[class*="av-"] span { color: var(--texte); opacity: 0.82; }
.avantage[class*="av-"].visible:hover {
    border-color: var(--a2); box-shadow: 0 18px 44px var(--ombre);
    background:
        linear-gradient(90deg, var(--a1), var(--a2), var(--a3)) top / 100% 4px no-repeat,
        linear-gradient(160deg, color-mix(in srgb, var(--a1) 36%, transparent), color-mix(in srgb, var(--a2) 12%, transparent)),
        var(--carte);
}

/* --- une seule interface : la même fenêtre change de couleur et de métier --- */
.interface-grille { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
#interface .intro { margin-bottom: 20px; }
.ecrans { position: relative; aspect-ratio: 16 / 10; }
.ecran {
    --e: #4f46e5;
    position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column;
    background: #f4f5fa; border: 1px solid var(--carte-bord); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    opacity: 0; animation: ecran-cycle 16s infinite;
}
.ecran.e-magasin { --e: #059669; animation-delay: 4s; }
.ecran.e-carnet { --e: #d97706; animation-delay: 8s; }
.ecran.e-bascule { --e: #0e7490; animation-delay: 12s; }
@keyframes ecran-cycle {
    0% { opacity: 0; transform: scale(0.97); }
    4% { opacity: 1; transform: none; }
    25% { opacity: 1; transform: none; }
    29% { opacity: 0; transform: scale(0.97); }
    100% { opacity: 0; transform: scale(0.97); }
}
.e-barre { height: 15%; display: flex; align-items: center; justify-content: space-between; padding: 0 5%; color: #fff; font-weight: 800; font-size: clamp(11px, 1.3vw, 15px); letter-spacing: 1px; }
.e-gmao .e-barre { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.e-magasin .e-barre { background: linear-gradient(135deg, #047857, #34d399); }
.e-carnet .e-barre { background: linear-gradient(135deg, #a16207, #fde047); }
.e-bascule .e-barre { background: linear-gradient(135deg, #0e7490, #22d3ee); }
.e-menu { display: flex; gap: 10px; }
.e-menu i { display: block; width: 34px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.55); }
.e-corps { flex: 1; padding: 5%; }
.e-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.e-cartes i { display: block; height: 54px; border-radius: 10px; background: #fff; border-left: 4px solid var(--e); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.e-lignes { display: grid; gap: 9px; margin-top: 16px; }
.e-lignes i { display: block; height: 14px; border-radius: 7px; background: #e4e6ef; }
.e-lignes i:nth-child(1) { width: 92%; } .e-lignes i:nth-child(2) { width: 78%; } .e-lignes i:nth-child(3) { width: 85%; } .e-lignes i:nth-child(4) { width: 60%; }
.e-nom { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: rgba(10, 10, 18, 0.82); color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 999px; }

/* --- familles de logiciels : une tuile = une page --- */
.familles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.famille { position: relative; display: block; background: var(--carte); border: 1px solid var(--carte-bord); border-radius: var(--radius); padding: 26px 24px 34px; overflow: hidden; }
.famille.grande {
    grid-column: span 2; display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: center;
    background: linear-gradient(160deg, rgba(79, 70, 229, 0.18), rgba(124, 58, 237, 0.08)); border-color: rgba(124, 58, 237, 0.35);
}
.famille.visible { transition: transform 0.25s, border-color 0.25s, background 0.25s; }
.famille.visible:hover { transform: translateY(-6px); border-color: rgba(165, 148, 255, 0.5); background: rgba(255, 255, 255, 0.07); }
.famille .em {
    width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; font-size: 29px;
    background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 30px rgba(99, 70, 235, 0.4);
    margin-bottom: 16px; transition: transform 0.3s;
}
.famille.grande .em { width: 86px; height: 86px; font-size: 42px; border-radius: 22px; margin: 0; grid-row: 1 / 3; }
.famille.visible:hover .em { transform: scale(1.1) rotate(-5deg); }
.famille b { display: block; font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.famille.grande b { font-size: 30px; }
.famille span { display: block; color: var(--texte2); font-size: 14.5px; max-width: 640px; }
.famille .fleche { position: absolute; right: 22px; bottom: 18px; font-style: normal; font-size: 22px; color: var(--texte2); transition: transform 0.25s, color 0.25s; }
.famille.visible:hover .fleche { transform: translateX(6px); color: #fff; }

/* --- familles en couleur : violet pour la suite, or pour les Essentiels, vert pour Android --- */
.famille.fam-suite      { --a1: #6d28d9; --a2: #a78bfa; --a3: #ddd6fe; --ombre: rgba(124, 58, 237, 0.4); }
.famille.fam-essentiels { --a1: #ca8a04; --a2: #facc15; --a3: #fef08a; --ombre: rgba(234, 179, 8, 0.36); }
.famille.fam-android    { --a1: #15803d; --a2: #4ade80; --a3: #bbf7d0; --ombre: rgba(34, 197, 94, 0.36); }
.famille[class*="fam-"] {
    border-color: color-mix(in srgb, var(--a2) 40%, transparent);
    background:
        linear-gradient(90deg, var(--a1), var(--a2), var(--a3)) top / 100% 4px no-repeat,
        linear-gradient(160deg, color-mix(in srgb, var(--a1) 24%, transparent), color-mix(in srgb, var(--a2) 6%, transparent)),
        var(--carte);
}
.famille[class*="fam-"] .em { background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 12px 30px var(--ombre); }
.famille[class*="fam-"] b { color: var(--a3); }
.famille[class*="fam-"] span { color: var(--texte); opacity: 0.84; }
.famille[class*="fam-"] .fleche { color: var(--a2); }
.famille[class*="fam-"].visible:hover {
    border-color: var(--a2); box-shadow: 0 20px 48px var(--ombre);
    background:
        linear-gradient(90deg, var(--a1), var(--a2), var(--a3)) top / 100% 4px no-repeat,
        linear-gradient(160deg, color-mix(in srgb, var(--a1) 38%, transparent), color-mix(in srgb, var(--a2) 12%, transparent)),
        var(--carte);
}

/* --- trois étapes reliées par un trait qui se dessine --- */
.etapes { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.etapes::before { content: ''; position: absolute; top: 25px; left: 26px; width: 0; height: 2px; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width 1.4s ease 0.3s; }
.etapes.visible::before { width: calc(66.66% + 14px); }
.etape { position: relative; padding-top: 70px; opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.6s; transition-delay: calc(var(--i) * 350ms + 300ms); }
.etapes.visible .etape { opacity: 1; transform: none; }
.etape .num {
    position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 0 0 8px var(--fond), 0 10px 26px rgba(99, 70, 235, 0.45);
}
.etape b { display: block; font-size: 18px; margin-bottom: 6px; }
.etape span { color: var(--texte2); font-size: 14.5px; }

/* ==============================================================
   PAGE « LES ESSENTIELS » — cartes + fiche en fenêtre (bandeau de « La suite »).
   Les couleurs de chaque carte/fiche sont posées en variables par script.js.
   ============================================================== */
.hero-courte { padding-bottom: 30px; }
#essentiels { padding-top: 40px; }
.essentiels-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.carte-app {
    --a1: var(--c1); --a2: var(--c2); --ombre: rgba(99, 70, 235, 0.4); --nom1: #a5b4fc; --nom2: #c4b5fd; --nom3: #f0abfc;
    position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
    padding: 26px 24px 28px; border-radius: var(--radius); cursor: pointer; overflow: hidden;
    font-family: inherit; color: var(--texte); background: var(--carte); border: 1px solid var(--carte-bord);
}
.carte-app.visible { transition: transform 0.25s, border-color 0.25s, background 0.25s; }
.carte-app.visible:hover { transform: translateY(-6px); border-color: var(--a2); background: rgba(255, 255, 255, 0.07); }
.carte-app .lueur { position: absolute; top: -70px; right: -70px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, var(--ombre), transparent 70%); pointer-events: none; }
.carte-app .icone {
    width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; font-size: 28px;
    background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 12px 30px var(--ombre);
    margin-bottom: 14px; transition: transform 0.3s;
}
.carte-app.visible:hover .icone { transform: scale(1.1) rotate(-5deg); }
.carte-app .nom {
    font-size: 32px; font-weight: 900; letter-spacing: -1px; line-height: 1;
    background: linear-gradient(100deg, var(--nom1), var(--nom2) 45%, var(--nom3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.carte-app .metier { display: block; color: var(--texte2); font-size: 13.5px; font-weight: 600; margin: 7px 0 12px; }
.carte-app p { color: var(--texte2); font-size: 14.5px; margin: 0 0 14px; flex-grow: 1; }
.carte-app p b { color: var(--texte); }
.carte-app .puces { margin-bottom: 18px; }
.carte-app .puce { font-size: 12px; padding: 4px 10px; }
.carte-app .ouvrir { font-weight: 700; font-size: 14px; color: #fff; transition: transform 0.25s; }
.carte-app.visible:hover .ouvrir { transform: translateX(6px); }
/* la fiche : le bandeau de « La suite », dans une fenêtre par-dessus la page (défilable) */
.fiche-couche {
    position: fixed; inset: 0; z-index: 300; overflow-y: auto; overscroll-behavior: contain;
    padding: 30px 16px; background: rgba(7, 7, 14, 0.86);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    animation: film-couche-arrive 0.25s ease;
}
.fiche-boite {
    position: relative; width: min(1180px, 100%); margin: 0 auto;
    background: linear-gradient(160deg, rgba(30, 30, 52, 0.97), rgba(14, 14, 26, 0.97));
    border: 1px solid var(--carte-bord); border-radius: var(--radius); padding: 0 34px 36px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
    animation: film-zoom 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.fiche-boite .soft { padding: 48px 0 0; max-width: none; }
.fiche-boite .soft-nom { font-size: clamp(46px, 7vw, 86px); }
.fiche-boite .soft-entete { margin-bottom: 28px; }
.fiche-fermer { z-index: 5; }
.film-couche { z-index: 320; }
@media (max-width: 1100px) { .orbite { display: none; } }
@media (max-width: 900px) {
    .essentiels-grille { grid-template-columns: 1fr; }
    .fiche-couche { padding: 16px 10px; }
    .fiche-boite { padding: 0 18px 26px; }
    .fiche-boite .soft { padding-top: 60px; }
}
@media (max-width: 900px) {
    .chiffres, .avantages { grid-template-columns: 1fr 1fr; }
    .interface-grille, .familles, .etapes { grid-template-columns: 1fr; }
    .famille.grande { grid-column: auto; display: block; }
    .famille.grande .em { margin-bottom: 16px; }
    .etapes { gap: 30px; }
    .etapes::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bulle, .bulle .flot, .bulle .flot::before, .bulle .flot::after, .grad.anime, .film .diapo { animation: none; }
    .bulle { opacity: 1; }
    .ecran { animation: none; }
    .ecran.e-gmao { opacity: 1; }
    .reveal[style*="--i"], .etape { transition-delay: 0s; }
    .reveal { filter: none; transform: none; transition: opacity 0.4s; }
    .defile-applis .piste, .btn .eclat, body { animation: none; }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
    .aurora::before { transition: none; }
}

/* 3 vignettes cliquables (elles mènent à la démo de l'appli) */
.soft-galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.soft-galerie a {
    display: block; border-radius: 14px; overflow: hidden;
    background: var(--carte); border: 1px solid var(--carte-bord);
    transition: transform 0.2s, border-color 0.2s;
}
.soft-galerie a:hover { transform: translateY(-4px); border-color: var(--a2); }
.soft-galerie img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.soft-galerie figcaption { padding: 9px 13px; font-size: 13px; font-weight: 600; color: var(--texte2); }

@media (max-width: 900px) {
    .soft { padding-top: 60px; }
    .soft-corps, .soft.inverse .soft-corps { grid-template-columns: 1fr; gap: 26px; }   /* les blocs inversés aussi (sinon 2 colonnes sur téléphone) */
    .soft.inverse .soft-visu { order: 0; }
    .soft-galerie { grid-template-columns: 1fr; }
    .soft-nom { letter-spacing: -2px; }
    .soft-icone { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
    .soft-entete { gap: 16px; }
    .soft-entete .etat { margin-left: 0; margin-top: 0; }
}

/* =====================================================================================
   ANIMATIONS « pour voir » (29/09/2026) — les neuf propositions posées sur le vrai site.
   1 fondu entre les pages · 2 projecteur sur les cartes · 3 inclinaison 3D + reflet ·
   4 boutons aimantés + éclat · 5 mot qui tourne · 6 flou → net (voir .reveal) ·
   7 prix qui roulent · 8 défilé des applis · 9 halo du fond par section.
   ===================================================================================== */
/* 1 — passage discret d'une page à l'autre : fondu croisé natif du navigateur (View Transitions),
       la barre de menu reste en place, le contenu glisse à peine. Sans support : simple fondu à l'arrivée. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-sort 0.2s ease-in both; }
::view-transition-new(root) { animation: page-entre 0.32s ease-out both; }
.nav { view-transition-name: barre-nav; }
@keyframes page-sort  { to { opacity: 0; } }
@keyframes page-entre { from { opacity: 0; transform: translateY(8px); } }
@supports not (view-transition-name: x) { body { animation: page-fondu 0.35s ease-out both; } }
@keyframes page-fondu { from { opacity: 0; } }

/* 2 — projecteur : deux couches ajoutées par script.js dans la carte (derrière son contenu) */
.projecteur { position: relative; isolation: isolate; }
.projecteur .projo, .projecteur .projo-bord { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; }
.projecteur .projo { background: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), rgba(167, 139, 250, 0.22), transparent 60%); }
.projecteur .projo-bord { padding: 1.5px;
    background: radial-gradient(240px circle at var(--mx, -400px) var(--my, -400px), rgba(196, 181, 253, 0.9), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* 3 — inclinaison 3D vers la souris + reflet qui traverse (seulement sous la souris, pour ne pas
       casser l'arrivée en fondu des .reveal) */
.incline { overflow: hidden; }
.incline.actif:hover {
    transition: transform 0.12s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
}
.incline .reflet { position: absolute; inset: -60%; pointer-events: none; z-index: 2; opacity: 0; transition: opacity 0.3s;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%); transform: translateX(var(--sx, -60%)); }
.incline:hover .reflet { opacity: 1; }

/* 4 — boutons aimantés (translation posée par script.js) + éclat au survol */
.btn { position: relative; overflow: hidden; }
.btn.aimant { transition: transform 0.15s ease-out, box-shadow 0.25s, filter 0.25s; }
.btn .eclat { position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); }
.btn:hover .eclat { animation: eclat 0.8s ease forwards; }
@keyframes eclat { to { left: 130%; } }

/* 5 — le mot qui tourne dans le titre de l'accueil (.mesure = le mot le plus long, invisible, qui donne la largeur) */
.mot-tourne { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; line-height: 1.2; max-width: 100%; }
.mot-tourne > .mesure { visibility: hidden; }
.mot-tourne > span:not(.mesure) { position: absolute; left: 0; right: 0; top: 0; text-align: center; white-space: nowrap; opacity: 0; transform: translateY(110%);
    transition: transform 0.55s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.4s; }
.mot-tourne > span.actif { opacity: 1; transform: none; }
.mot-tourne > span.sort { opacity: 0; transform: translateY(-110%); }

/* 7 — prix qui roulent comme un compteur mécanique (colonnes construites par script.js) */
.odo .colonne { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: baseline; }
.odo .colonne > span { display: block; transform: translateY(0); transition: transform 1.6s cubic-bezier(0.2, 1, 0.3, 1); }
.odo .colonne i { display: block; font-style: normal; height: 1em; line-height: 1; }
/* le dégradé « texte » du montant ne traverse pas une colonne animée (transform) : on le pose chiffre par chiffre */
.carte.tarif .montant.odo { background: none; color: var(--texte, #fff); -webkit-text-fill-color: initial; }
.carte.tarif .montant.odo .colonne i, .carte.tarif .montant.odo .fixe { background: linear-gradient(100deg, #a5b4fc, #f0abfc);
    -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 8 — défilé continu des dix applis, en pause sous la souris */
.defile-applis { margin: 8px auto 0; max-width: 1180px; padding: 0 20px; overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.defile-applis .piste { display: flex; gap: 16px; width: max-content; animation: defile 22s linear infinite; }
.defile-applis:hover .piste { animation-play-state: paused; }
.defile-applis .tuile { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; font-size: 27px; flex: none;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 0 24px color-mix(in srgb, var(--o, #a78bfa) 35%, transparent); }
@keyframes defile { to { transform: translateX(-50%); } }

/* 9 — le halo d'ambiance prend la couleur de la section lue (--acc posée par script.js sur <html>) */
@property --acc { syntax: '<color>'; inherits: true; initial-value: #a78bfa; }
.aurora::before { content: ""; position: absolute; inset: 0; pointer-events: none; transition: --acc 1.2s ease;
    background: radial-gradient(70vw 55vh at 50% 45%, color-mix(in srgb, var(--acc) 24%, transparent), transparent 70%); }

/* ---------- ⤢ Agrandir / ⛶ Plein écran du lecteur de démo ---------- */
.demo-ecran .barre-nav { display: flex; align-items: center; }
.demo-ecran .barre-nav .url { flex: 1; min-width: 0; }
.demo-outils { margin-left: 10px; }
.demo-outils button { width: 28px; height: 22px; font-size: 13px; }
/* agrandi : l'écran de démo (image 16:9 + légende) occupe presque tout l'écran */
.demo-couche { flex-direction: column; gap: 0; }
.demo-couche .demo-ecran { width: min(1700px, 96vw, calc((100vh - 150px) * 16 / 9)); animation: film-zoom 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.demo-couche .demo-legende { font-size: 15px; }
/* plein écran (bouton ⛶) : fond sombre, l'image garde son 16:9, la légende dessous */
.demo-ecran:fullscreen { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #06060c; padding: 12px; overflow: auto; }
.demo-ecran:fullscreen .cadre { width: min(100%, calc((100vh - 130px) * 16 / 9)); }
.demo-ecran:fullscreen .demo-legende { width: min(100%, calc((100vh - 130px) * 16 / 9)); }


/* ===== Pages légales (mentions, CGV, confidentialité) ===== */
.legal { max-width: 820px; padding-top: 40px; color: var(--texte2); font-size: 16px; line-height: 1.65; }
.legal h2 { color: var(--texte, #eef0f6); font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { margin-bottom: 10px; }
.legal a { color: #a5b4fc; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--carte-bord); vertical-align: top; }
.legal th { color: var(--texte, #eef0f6); }
.legal .a-completer { background: rgba(251, 191, 36, 0.12); border: 1px dashed rgba(251, 191, 36, 0.6); border-radius: 12px; padding: 12px 14px; color: var(--texte, #eef0f6); }

/* ==============================================================
   FORMULAIRE DE CONTACT — ouvert par les boutons « Nous contacter »,
   « Nous écrire » et « Commander » ([data-contact]). Même boîte que
   les pop-ups d'aide ; injecté par script.js à la première ouverture.
   ============================================================== */
.aide-boite.contact-boite { width: min(740px, 100%); max-height: min(90vh, 820px); }
.form-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; position: relative; }
.form-contact .plein { grid-column: 1 / -1; }
.form-contact label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--texte2); min-width: 0; }
.form-contact label b { color: var(--texte); font-weight: 600; }
.form-contact label b i { color: #f29aa6; font-style: normal; }
.form-contact input, .form-contact select, .form-contact textarea {
    width: 100%; font: inherit; font-size: 15px; color: var(--texte);
    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--carte-bord); border-radius: 12px;
    padding: 11px 13px; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-contact input::placeholder, .form-contact textarea::placeholder { color: rgba(154, 160, 181, 0.6); }
.form-contact input:focus, .form-contact select:focus, .form-contact textarea:focus {
    outline: 0; border-color: rgba(139, 140, 248, 0.7); box-shadow: 0 0 0 3px rgba(99, 70, 235, 0.25);
}
.form-contact select option { background: #14142a; color: var(--texte); }
.form-contact textarea { min-height: 120px; resize: vertical; }
.form-contact .erreur-champ { border-color: rgba(240, 96, 112, 0.85) !important; }
.form-contact .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13.5px; line-height: 1.45; }
.form-contact .consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--c2); }
.form-contact .consent a { color: #b4b5ff; text-decoration: underline; }
.form-contact .pot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-contact .pied { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.form-contact .pied small { color: var(--texte2); font-size: 13px; }
.form-contact .btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.form-contact .message-form { grid-column: 1 / -1; padding: 12px 15px; border-radius: 12px; font-size: 14px; }
.form-contact .message-form.erreur { background: rgba(240, 96, 112, 0.10); border: 1px solid rgba(240, 96, 112, 0.35); color: #ffd3d8; }
.contact-fin { text-align: center; padding: 18px 6px 8px; }
.contact-fin .em { font-size: 44px; margin-bottom: 10px; }
.contact-fin h4 { font-size: 20px; margin-bottom: 8px; color: var(--texte); }
.contact-fin p { color: var(--texte2); margin: 6px 0 16px; }
.contact-fin .btn { margin: 4px 6px; }
.contact-fin .adresse { font-weight: 700; color: var(--texte); word-break: break-all; }
@media (max-width: 640px) { .form-contact { grid-template-columns: 1fr; } }

/* ==============================================================
   SUR LE TERRAIN — cadres d'appareils en CSS (l'écran = une capture
   de démo), grande tuile des avantages et section à trois scènes.
   ============================================================== */
.appareil {
    position: relative; overflow: hidden; background: #0d0d16;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #1c1c2b;
}
.appareil.telephone { aspect-ratio: 390 / 844; border-radius: 30px; padding: 9px; }
.appareil.tablette { aspect-ratio: 820 / 1180; border-radius: 22px; padding: 11px; }
.appareil img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 18px; background: #fff; }
.appareil.tablette img { border-radius: 12px; }
.appareil.telephone::before {
    content: ''; position: absolute; top: 13px; left: 50%; transform: translateX(-50%); z-index: 2;
    width: 60px; height: 14px; border-radius: 9px; background: #0d0d16;
}
/* grande tuile : toute la largeur de la grille des avantages */
.avantage.av-terrain { --a1: #e11d48; --a2: #fb7185; --a3: #fecdd3; --ombre: rgba(244, 63, 94, 0.36); }
.avantage.large { grid-column: 1 / -1; padding: 26px 26px 22px; }
.avantage.large .tete { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.avantage.large .tete .em { margin-bottom: 0; flex: none; }
.avantage.large .tete b { font-size: 19px; }
.avantage.large .tete span { font-size: 14.5px; line-height: 1.55; }
/* Galerie : une rangée de tablettes puis une rangée de téléphones. Chaque appareil a la MÊME hauteur
   dans sa rangée et sa largeur suit son ratio : une tablette est plus large qu'un téléphone, et les écrans
   restent lisibles (avant : 8 colonnes égales, tablettes minuscules et plus petites que les téléphones). */
.galerie { display: flex; flex-direction: column; gap: 26px; --h-tablette: 262px; --h-telephone: 236px; }
.galerie .rangee { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 18px 18px; }
.galerie figure { margin: 0; text-align: center; flex: none; }
.galerie .appareil { width: auto; margin: 0 auto; }
.galerie .appareil.tablette { height: var(--h-tablette); }
.galerie .appareil.telephone { height: var(--h-telephone); }
.galerie figcaption { font-size: 12.5px; font-weight: 600; color: var(--texte); opacity: 0.85; margin-top: 10px; max-width: 150px; margin-left: auto; margin-right: auto; }
/* section « Dans l'atelier » */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scene {
    background: var(--carte); border: 1px solid var(--carte-bord); border-radius: 22px; padding: 24px 22px 22px;
    text-align: center;
}
.scene .appareil { margin: 0 auto 20px; }
.scene .appareil.tablette { width: 82%; }
.scene .appareil.telephone { width: 58%; }
.scene .em {
    width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 25px; margin: 0 auto 12px;
    background: linear-gradient(135deg, #e11d48, #fb7185); box-shadow: 0 10px 26px rgba(244, 63, 94, 0.36);
}
.scene h3 { font-size: 18px; margin-bottom: 8px; }
.scene p { color: var(--texte2); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 1000px) {
    .galerie { --h-tablette: 230px; --h-telephone: 210px; }
    .scenes { grid-template-columns: 1fr; }
    .scene .appareil.tablette { width: 70%; }
    .scene .appareil.telephone { width: 46%; }
}
@media (max-width: 560px) {
    .galerie { --h-tablette: 200px; --h-telephone: 190px; gap: 18px; }
    .galerie .rangee { gap: 14px 12px; }
    .avantage.large .tete { flex-direction: column; gap: 12px; }
    .scene .appareil.tablette { width: 90%; }
    .scene .appareil.telephone { width: 62%; }
}
