/* ==========================================================================
   IMPACT, APPEL FINAL, BANDEAU LIVE
   Même langage que la section Sécurité et le carrousel : surfaces pleines,
   pas de halo ni de bordure lumineuse, typographie très grande et serrée,
   une petite illustration animée par tuile.
   ========================================================================== */

/* ---------------------------------------------------------------- IMPACT */
.chiffres {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 56px;
}
.chiffre {
    display: flex;
    flex-direction: column;
    padding: 34px 32px 32px;
    border-radius: 28px;
    background: #111F34;
    min-height: 380px;
}
.chiffre-cle { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.chiffre-valeur {
    margin: 14px 0 0;
    font-size: clamp(4rem, 7vw, 5.6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #FFFFFF 25%, #7FB2FB 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding-bottom: 0.08em;
}
.chiffre-titre {
    margin: 10px 0 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #F5F7FA;
}
/* Le visuel pousse le sous-titre en bas : les trois tuiles alignent
   leurs sous-titres, quelle que soit la hauteur de leur illustration. */
.chiffre-visuel { margin-top: auto; padding-top: 30px; }
.chiffre-sous { margin: 16px 0 0; font-size: 0.92rem; color: #8E9BB0; }

/* 1. Investissement contre retour */
.cb { display: flex; flex-direction: column; gap: 12px; }
.cb-ligne {
    display: grid;
    grid-template-columns: 104px 1fr;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #8E9BB0;
}
.cb-ligne i {
    display: block;
    height: 10px;
    width: var(--w);
    border-radius: 999px;
    background: #2A3A55;
    transform-origin: left;
}
.cb-retour { color: #EAF0F8; font-weight: 600; }
.cb-retour i { background: linear-gradient(90deg, #3B82F6, #93C5FD); }

/* 2. Une journée de 8 h à 19 h : deux heures rendues */
.journee-heures { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; }
.journee-heures i {
    height: 34px;
    border-radius: 7px;
    background: #1C2B44;
}
.journee-heures i.gagne { background: linear-gradient(180deg, #93C5FD, #3B82F6); }
.journee-bornes {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #6B7A90;
}

/* 3. Trois étapes jusqu'à la mise en ligne */
.etapes { position: relative; }
.etapes-ligne {
    position: absolute;
    left: 8px; right: 8px; top: 38px;
    height: 3px;
    border-radius: 3px;
    background: #1C2B44;
}
.etapes-ligne i {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3B82F6, #93C5FD);
    transform-origin: left;
}
.etapes-points { position: relative; display: flex; justify-content: space-between; }
.etapes-points span { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.etapes-points span:first-child { align-items: flex-start; }
.etapes-points span:last-child { align-items: flex-end; }
.etapes-points b {
    width: 19px; height: 19px;
    margin-top: 30px;
    border-radius: 50%;
    background: #111F34;
    border: 3px solid #3B82F6;
}
.etapes-points span:last-child b { background: #3B82F6; box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.2); }
.etapes-points em { font-style: normal; font-size: 0.78rem; color: #8E9BB0; }

/* Animations d'arrivée : déclenchées par .anime (js/sections.js). Sans JS,
   ou avant l'arrivée à l'écran, tout reste visible et complet. */
.chiffres.js-pret .cb-ligne i,
.chiffres.js-pret .etapes-ligne i { transform: scaleX(0); transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1); }
.chiffres.js-pret .cb-retour i { transition-delay: 0.25s; }
.chiffres.js-pret .journee-heures i.gagne { opacity: 0; transform: scaleY(0.3); transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.chiffres.js-pret .journee-heures i.gagne:nth-child(6) { transition-delay: 0.15s; }
.chiffres.anime .cb-ligne i,
.chiffres.anime .etapes-ligne i { transform: scaleX(1); }
.chiffres.anime .journee-heures i.gagne { opacity: 1; transform: none; }
.chiffres.anime .etapes-points span:last-child b { animation: etapePrete 2.4s ease-out 1.3s infinite; }
@keyframes etapePrete {
    0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ---------------------------------------------------------------- APPEL FINAL */
.appel-final {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 40px;
    padding: 64px 64px 64px 72px;
    border-radius: 32px;
    background:
        radial-gradient(55% 90% at 80% 40%, rgba(59, 130, 246, 0.35) 0%, transparent 70%),
        linear-gradient(135deg, #14295A 0%, #0B1629 100%);
    overflow: hidden;
}
.af-cle { margin: 0; font-size: 0.95rem; font-weight: 600; color: #7FB2FB; }
.af-titre {
    margin: 12px 0 0;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    color: #FFFFFF;
    text-wrap: balance;
}
.af-desc {
    margin: 20px 0 0;
    max-width: 460px;
    font-size: 1.08rem;
    line-height: 1.55;
    color: rgba(234, 240, 248, 0.72);
}
.af-points {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.af-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
    color: #EAF0F8;
}
.af-points li::before { display: none; }
.af-points svg {
    flex-shrink: 0;
    width: 20px; height: 20px;
    padding: 3px;
    border-radius: 50%;
    background: rgba(147, 197, 253, 0.16);
    color: #93C5FD;
}
.af-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.af-bouton {
    padding: 15px 28px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #0B1829;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}
.af-bouton:hover { background: #E8EEF7; transform: translateY(-1px); }
.af-bouton:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.af-mention { font-size: 0.9rem; color: rgba(234, 240, 248, 0.6); }

/* Visuel : la prise de rendez-vous telle que le prospect la vivra */
.af-visuel { display: flex; justify-content: center; }
.af-agenda {
    width: min(340px, 100%);
    padding: 22px;
    border-radius: 24px;
    background: rgba(8, 14, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.7);
    color: #EAF0F8;
    transform: rotate(-2deg);
}
.af-agenda-tete { display: flex; align-items: center; gap: 12px; }
.af-agenda-tete div { display: flex; flex-direction: column; }
.af-agenda-tete b { font-size: 0.98rem; }
.af-agenda-tete span { font-size: 0.8rem; color: #8E9BB0; }
.af-agenda-logo {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #26262A 0%, #000000 70%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.af-jours { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 20px; }
.af-jours span {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    color: #8E9BB0;
}
.af-jours b { font-size: 1.02rem; color: #EAF0F8; }
.af-heures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 10px; }
.af-heures span {
    padding: 9px 0;
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #C9D2DE;
}
.af-jours .choisi, .af-heures .choisi { background: #2F6BFF; border-color: #2F6BFF; color: #fff; }
.af-jours .choisi b { color: #fff; }
.af-confirme {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 14px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(52, 211, 153, 0.12);
    color: #6EE7B7;
    font-size: 0.85rem;
    font-weight: 600;
}
.af-confirme svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- BANDEAU LIVE + BADGES
   Même contenu et même script, habillage refait : plus de halo vert,
   plus de flottement, une surface pleine comme les autres tuiles. */
.trust-badges { gap: 10px; }
.trust-badge-item {
    background: #111F34;
    border: 0;
    padding: 9px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #AEB9C9;
}
.live-wrap .live-ticker {
    background: #111F34;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
    padding: 18px 28px 18px 22px;
}
.live-wrap .live-ticker::before { display: none; }
.live-wrap .live-label { color: #34D399; letter-spacing: 1.5px; }
.live-wrap .live-stat-num,
.live-wrap .live-stat-num strong,
.live-wrap .live-stat-headline .live-stat-num {
    background: none;
    -webkit-text-fill-color: #FFFFFF;
    color: #FFFFFF;
    filter: none;
    letter-spacing: -0.03em;
}
.live-wrap .live-stat-lbl { color: #7D8BA1; letter-spacing: 0.06em; }
.live-wrap .live-trend {
    background: rgba(52, 211, 153, 0.12);
    border: 0;
    color: #34D399;
}
.live-wrap .live-vsep { background: rgba(255, 255, 255, 0.08); }
.live-wrap .live-latest {
    background: #111F34;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ---------------------------------------------------------------- RESPONSIVE */
@media (max-width: 960px) {
    .chiffres { grid-template-columns: 1fr; }
    .chiffre { min-height: 0; }
    .appel-final { grid-template-columns: 1fr; padding: 48px 32px 40px; gap: 36px; }
    .af-agenda { transform: none; }
}
@media (max-width: 620px) {
    .chiffre { padding: 28px 24px; border-radius: 24px; }
    .appel-final { padding: 38px 22px 30px; border-radius: 24px; }
    .af-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .af-bouton { text-align: center; }
    .af-mention { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .chiffres.js-pret .cb-ligne i,
    .chiffres.js-pret .etapes-ligne i,
    .chiffres.js-pret .journee-heures i.gagne { transition: none; }
    .chiffres.anime .etapes-points span:last-child b { animation: none; }
}

/* ---------------------------------------------------------------- DÉMO VOCALE
   Le lecteur natif du navigateur (barre grise) est remplacé par un lecteur
   façon message vocal : la forme d'onde est celle de l'enregistrement réel,
   elle se colore à mesure que la voix avance. */
.voix-tuile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding: 64px 64px 64px 72px;
    border-radius: 32px;
    background:
        radial-gradient(55% 90% at 78% 50%, rgba(99, 102, 241, 0.32) 0%, transparent 70%),
        linear-gradient(135deg, #1A1F4E 0%, #0B1629 100%);
}
.voix-cle { margin: 0; font-size: 0.95rem; font-weight: 600; color: #A5B4FC; }
.voix-titre {
    margin: 12px 0 0;
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: #FFFFFF;
    text-wrap: balance;
}
.voix-desc { margin: 20px 0 0; max-width: 440px; font-size: 1.08rem; line-height: 1.55; color: rgba(234, 240, 248, 0.72); }

.voix-lecteur {
    padding: 24px;
    border-radius: 26px;
    background: rgba(6, 10, 22, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 70px -26px rgba(0, 0, 0, 0.75);
}
.voix-tete { display: flex; align-items: center; gap: 12px; }
.voix-avatar {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #26262A 0%, #000000 70%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
/* Pendant la lecture, un anneau respire autour de l'avatar. */
.voix-avatar::after {
    content: '';
    position: absolute; inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(165, 180, 252, 0.7);
    opacity: 0;
}
.voix-tuile.en-lecture .voix-avatar::after { animation: voixRespire 1.6s ease-out infinite; }
@keyframes voixRespire { from { opacity: 1; transform: scale(0.9); } to { opacity: 0; transform: scale(1.35); } }
.voix-qui { display: flex; flex-direction: column; flex: 1; }
.voix-qui b { font-size: 1rem; color: #F5F7FA; }
.voix-etat { font-size: 0.82rem; color: #8E9BB0; }
.voix-direct {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.78rem; font-weight: 600; color: #FF7B72;
    opacity: 0; transition: opacity 0.3s ease;
}
.voix-direct::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #FF5B52; }
.voix-tuile.en-lecture .voix-direct { opacity: 1; }

.voix-commandes { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.voix-bouton {
    flex-shrink: 0;
    width: 58px; height: 58px;
    border-radius: 50%;
    border: 0;
    background: #FFFFFF;
    color: #0B1829;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.voix-bouton:hover { transform: scale(1.05); background: #EEF2FF; }
.voix-bouton:focus-visible { outline: 2px solid #A5B4FC; outline-offset: 3px; }
.voix-bouton svg { width: 24px; height: 24px; }
.voix-bouton .ic-pause,
.voix-tuile.en-lecture .voix-bouton .ic-lecture { display: none; }
.voix-tuile.en-lecture .voix-bouton .ic-pause { display: block; }

.voix-onde {
    flex: 1;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    border-radius: 8px;
}
.voix-onde:focus-visible { outline: 2px solid #A5B4FC; outline-offset: 4px; }
.voix-onde i {
    flex: 1;
    height: var(--h);
    min-height: 4px;
    border-radius: 3px;
    background: rgba(165, 180, 252, 0.25);
    transition: background 0.15s ease;
}
.voix-onde i.lue { background: linear-gradient(180deg, #E0E7FF, #818CF8); }
.voix-temps {
    display: flex; justify-content: space-between;
    margin: 12px 0 0 74px;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    color: #8E9BB0;
}

@media (max-width: 960px) {
    .voix-tuile { grid-template-columns: 1fr; padding: 48px 32px 40px; gap: 34px; }
}
@media (max-width: 620px) {
    .voix-tuile { padding: 38px 20px 22px; border-radius: 24px; }
    .voix-lecteur { padding: 18px; }
    .voix-bouton { width: 50px; height: 50px; }
    .voix-temps { margin-left: 66px; }
    .voix-onde { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .voix-tuile.en-lecture .voix-avatar::after { animation: none; }
}
