/* ═══════════════════════════════════════════════════════════
   AXION — showcase.css
   Mode présentation : sections plein écran, défilement
   automatique de droite à gauche, mise en pause possible.
   Couche additive — n'altère aucun style existant.
   ═══════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════
   0. ANTI-FLASH
════════════════════════════════════════════════════════ */
html.sc-boot #main-content {
    visibility: hidden;
}


/* ════════════════════════════════════════════════════════
   1. VERROUILLAGE DE LA PAGE
════════════════════════════════════════════════════════ */
html.sc-on,
html.sc-on body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

/* Les float-navs sont remplacées par les puces du bandeau. */
html.sc-on .float-nav {
    display: none !important;
}

html.sc-on #main-content {
    margin: 0;
    padding: 0;
}


/* ════════════════════════════════════════════════════════
   2. SCÈNE
════════════════════════════════════════════════════════ */
.sc-stage {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    background: var(--bone);
    isolation: isolate;

    /* En présentation la contrainte est la HAUTEUR, jamais la
       largeur : on élargit donc tous les conteneurs, qui utilisent
       déjà max-width: var(--maxw). Les cartes s'étalent, le texte
       tient sur moins de lignes, la réduction devient inutile. */
    --maxw: 1680px;

    /* Hauteur réservée sous le contenu pour le bandeau de commande.
       Valeur de repli : showcase.js la mesure et la réécrit. */
    --sc-hud-h: 100px;
}

.sc-orphans {
    display: none !important;
}


/* ════════════════════════════════════════════════════════
   3. DIAPOSITIVES
   Position par défaut : en attente, hors champ à droite.
════════════════════════════════════════════════════════ */
.sc-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform .85s cubic-bezier(.76, 0, .24, 1);
    pointer-events: none;
    will-change: transform;
    scrollbar-width: none;
}

    .sc-slide::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .sc-slide.is-left {
        transform: translateX(-100%);
    }

    .sc-slide.is-current {
        transform: none;
        pointer-events: auto;
        z-index: 2;
    }

    .sc-slide.sc-no-anim {
        transition: none !important;
    }

    /* Sections trop denses : panoramique vertical automatique. */
    .sc-slide.can-pan {
        overflow-y: auto;
    }

.sc-fit {
    transform-origin: top center;
}


/* ════════════════════════════════════════════════════════
   4. RESPIRATION VERTICALE & RÉSERVE DU BANDEAU
   Les sections du site respirent sur 5 rem : beaucoup trop
   quand la hauteur est comptée. On resserre, et on réserve
   en bas la place exacte du bandeau pour qu'il ne recouvre
   jamais le contenu.
════════════════════════════════════════════════════════ */
html.sc-on .sc-fit > section {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
}

html.sc-on .sc-fit .section-header,
html.sc-on .sc-fit .about-section-header {
    margin-bottom: 1.6rem;
}

/* Dernier bloc de la diapositive (section, ou pied de page sur
   la dernière) : il porte la réserve. */
html.sc-on .sc-fit > :last-child {
    padding-bottom: var(--sc-hud-h);
}


/* ════════════════════════════════════════════════════════
   5. PIED DE PAGE EN FIN DE PARCOURS
   Rattaché à la dernière diapositive par showcase.js.
════════════════════════════════════════════════════════ */
html.sc-on .sc-fit > .site-footer {
    margin-top: 0;
}


/* ════════════════════════════════════════════════════════
   6. BARRE DE PROGRESSION
════════════════════════════════════════════════════════ */
.sc-progress {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    height: 3px;
    background: rgba(1, 30, 61, .12);
}

.sc-progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    box-shadow: 0 0 10px rgba(242,144,12,.55);
}

.sc-stage.is-paused .sc-progress-fill {
    background: rgba(1, 30, 61, .35);
    box-shadow: none;
}


/* ════════════════════════════════════════════════════════
   7. BANDEAU DE COMMANDE
   Tout y est regroupé — libellé, état de pause, navigation,
   sortie — pour qu'aucun élément flottant ne vienne masquer
   le contenu ailleurs sur l'écran.
════════════════════════════════════════════════════════ */
.sc-hud {
    position: absolute;
    bottom: 22px;
    left: 50%;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(94vw, 900px);
    padding: 8px 12px 8px 18px;
    transform: translateX(-50%);
    border: 1px solid rgba(242, 144, 12, .30);
    border-radius: 999px;
    background: rgba(1, 30, 61, .93);
    box-shadow: 0 10px 34px rgba(1, 15, 31, .38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--white);
}

.sc-label {
    max-width: 230px;
    overflow: hidden;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255, 255, 255, .85);
}

/* Indicateur de pause — dans le bandeau, plus en surimpression. */
.sc-paused-tag {
    display: none;
    align-items: center;
    gap: 6px;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--gold-light);
}

.sc-stage.is-paused .sc-paused-tag {
    display: inline-flex;
}

.sc-stage.is-paused .sc-label {
    display: none;
}

/* Section longue : simple témoin discret. */
.sc-panflag {
    display: none;
    align-items: center;
    font-size: .85rem;
    color: rgba(255, 255, 255, .45);
}

.sc-stage.has-pan .sc-panflag {
    display: inline-flex;
}

.sc-sep {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, .16);
}

.sc-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

    .sc-btn:hover,
    .sc-btn:focus-visible {
        border-color: rgba(242, 144, 12, .45);
        background: rgba(242, 144, 12, .16);
        color: var(--gold-light);
    }

.sc-btn-play {
    width: 40px;
    height: 40px;
    border-color: rgba(242, 144, 12, .45);
    background: rgba(242, 144, 12, .18);
    color: var(--gold-light);
    font-size: 1.1rem;
}

.sc-btn-exit {
    width: 30px;
    height: 30px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .60);
}

.sc-count {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: .74rem;
    letter-spacing: .04em;
    white-space: nowrap;
    color: var(--gold-light);
}

.sc-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sc-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

    .sc-dot:hover {
        background: rgba(255, 255, 255, .55);
    }

    .sc-dot.is-active {
        background: var(--gold);
        transform: scale(1.4);
    }


/* ════════════════════════════════════════════════════════
   8. RETOUR AU MODE PRÉSENTATION
   En bas à GAUCHE : le coin bas-droit est occupé par le
   widget de chat en ligne.
════════════════════════════════════════════════════════ */
.sc-return {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid rgba(242, 144, 12, .40);
    border-radius: 999px;
    background: rgba(1, 30, 61, .94);
    box-shadow: 0 8px 26px rgba(1, 15, 31, .32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

    .sc-return[hidden] {
        display: none;
    }

    .sc-return i {
        color: var(--gold-light);
        font-size: 1rem;
    }

    .sc-return:hover,
    .sc-return:focus-visible {
        border-color: var(--gold);
        background: var(--navy);
        transform: translateY(-2px);
    }


/* ════════════════════════════════════════════════════════
   9. RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
    .sc-label {
        display: none;
    }

    .sc-stage:not(.is-paused) .sc-hud > .sc-sep:first-of-type {
        display: none;
    }
}

@media (max-width: 620px) {
    .sc-hud {
        gap: 9px;
        bottom: 14px;
        padding: 6px 10px;
    }

    .sc-dots,
    .sc-panflag {
        display: none !important;
    }

    .sc-return {
        bottom: 14px;
        left: 14px;
        padding: 9px 14px;
        font-size: .64rem;
    }
}


/* ════════════════════════════════════════════════════════
   10. MOUVEMENT RÉDUIT
════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .sc-slide {
        transition: opacity .45s ease;
        transform: none;
        opacity: 0;
        visibility: hidden;
    }

        .sc-slide.is-left {
            transform: none;
        }

        .sc-slide.is-current {
            opacity: 1;
            visibility: visible;
        }
}


/* ════════════════════════════════════════════════════════
   11. IMPRESSION — retour au flux normal
════════════════════════════════════════════════════════ */
@media print {
    html.sc-on,
    html.sc-on body {
        height: auto;
        overflow: visible;
    }

    .sc-stage {
        position: static;
        overflow: visible;
    }

    .sc-slide {
        position: static;
        transform: none;
        page-break-after: always;
    }

    html.sc-on .sc-fit > :last-child {
        padding-bottom: 0;
    }

    .sc-hud,
    .sc-progress,
    .sc-return {
        display: none !important;
    }
}


/* ════════════════════════════════════════════════════════
   12. LISIBILITÉ DES FORMULAIRES
   La maquette descend à .58–.72rem sur les libellés et les
   champs : acceptable dans le flux, trop petit sur une
   diapositive. On relève le plancher en mode présentation
   uniquement (portail client, formulaire expert, contact).
════════════════════════════════════════════════════════ */
html.sc-on .sc-fit input,
html.sc-on .sc-fit select,
html.sc-on .sc-fit textarea {
    font-size: .95rem;
}

html.sc-on .sc-fit label,
html.sc-on .sc-fit .portal-field > span,
html.sc-on .sc-fit .form-label {
    font-size: .84rem;
}
