/* marketing/partenaires/diaporama.css — habillage des présentations Aria (partenaires, clients).
   Spec : docs/superpowers/specs/2026-10-06-presentation-aria-clic-clients-design.md (R1-R4).
   Une scène à la fois, plein écran ; la page ne défile jamais. */
html, body { height: 100%; margin: 0; overflow: hidden; }
body { background: var(--ari-fond); }

/* Les scènes : empilées, une seule visible. Une scène ne capte rien, sauf la courante
   quand la couche de clic s'est retirée (dernière scène, R4). */
.scene { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; display: block;
         opacity: 0; pointer-events: none; visibility: hidden;
         transition: opacity .35s ease, visibility 0s linear .35s; }
.scene[data-actif] { opacity: 1; pointer-events: auto; visibility: visible;
                     transition: opacity .35s ease, visibility 0s; }
/* SAFARI iOS : un calque transparent en `pointer-events: none` capte quand même le
   défilement au doigt (le toucher simple, lui, le traverse). Tout calque caché passe donc
   en `visibility: hidden` APRÈS son fondu — scènes, voile, accueil, couche de clic.
   Mesuré sur iPhone le 2026-10-10 : seule cette variante laisse défiler la scène. */

/* La couche de clic : une iframe avalerait les clics de la page. */
.capteur { position: fixed; inset: 0; z-index: 5; cursor: pointer; }
.capteur[data-inactif] { pointer-events: none; cursor: auto; }

.reperes { position: fixed; top: 0; left: 0; right: 0; z-index: 9; display: flex; gap: 2px; }
.repere { flex: 1; height: 3px; background: var(--ari-filet); transition: background .25s; }
.repere[data-actif] { background: var(--accent); }

.compteur { position: fixed; right: 18px; bottom: 14px; z-index: 6;
            font: 600 13px/1 'Inter Tight', 'Inter', sans-serif; letter-spacing: .08em;
            color: var(--ari-secondaire); }
.compteur:empty { display: none; }

/* Plein écran : visible hors plein écran seulement, et seulement une fois la porte franchie. */
.plein { position: fixed; top: 14px; right: 14px; z-index: 11; display: none; align-items: center; gap: 8px;
         cursor: pointer; font: 600 13px/1 'Inter Tight', 'Inter', sans-serif; color: var(--ari-texte);
         padding: 9px 14px; border-radius: 999px; background: var(--ari-panneau);
         border: 1px solid var(--filet); }
.plein:hover { border-color: var(--accent); }
.plein svg { width: 15px; height: 15px; display: block; }
body[data-diaporama] .plein { display: inline-flex; }
/* C'est <html> qui passe en plein écran : la règle doit battre la précédente (0,2,1). */
:fullscreen body[data-diaporama] .plein { display: none; }

/* Écran d'accueil : la marque en grand, la porte, puis l'invite à cliquer. */
.voile { position: fixed; inset: 0; z-index: 9; background: rgba(7,8,12,.86);
         backdrop-filter: blur(3px); transition: opacity .5s, visibility 0s; pointer-events: none; }
.voile[data-parti] { opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s linear .5s; }

.accueil { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
           z-index: 10; display: flex; flex-direction: column; align-items: center;
           gap: 0; text-align: center; pointer-events: none;
           transition: opacity .5s, transform .5s, visibility 0s; width: min(520px, calc(100vw - 32px)); }
/* Écran plus bas que l'accueil (petit téléphone, clavier ouvert) : la page ne défile
   jamais, donc c'est l'accueil qui défile — sinon son haut et son bas sont coupés. */
.accueil { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
           overflow-y: auto; overscroll-behavior: contain; }
.accueil[data-parti] { opacity: 0; transform: translate(-50%, calc(-50% + 16px)); visibility: hidden;
                       transition: opacity .5s, transform .5s, visibility 0s linear .5s; }
.accueil[data-parti] * { pointer-events: none !important; }

.langues { display: flex; gap: 6px; margin-bottom: 22px; }
.langues a { text-decoration: none; font-family: 'Inter Tight', 'Inter', sans-serif;
             font-size: 13px; font-weight: 600; letter-spacing: .08em;
             color: var(--ari-sourd); border: 1px solid var(--filet);
             border-radius: 999px; padding: 5px 13px; pointer-events: auto; }
.langues a[data-actif] { color: var(--accent); border-color: var(--accent); }

.accueil-tuile { width: 124px; height: 124px; border-radius: 30px; display: block;
                 box-shadow: 0 26px 70px rgba(224,145,63,.18); }
.accueil-marque { font-family: var(--police-titre); font-weight: 600;
                  font-size: clamp(40px, 6vw, 62px); line-height: 1.15;
                  letter-spacing: -0.03em; margin: 22px 0 0; }
.accueil-sous { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: clamp(15px, 1.7vw, 19px);
                font-weight: 600; color: var(--accent); letter-spacing: .12em;
                text-transform: uppercase; margin: 10px 0 0; }

/* Co-marque d'un partenaire (spec 2026-10-20-presentation-co-marquee-ubiweb R7) : posée par le moteur sous la
   ligne de marque, seulement quand la page déclare un partenaire. Gris SECONDAIRE (6,4:1), jamais le gris sourd (2,5:1). */
.accueil-partenaire { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
                      margin: 20px 0 0; }
.accueil-partenaire-mention { font: 600 12px/1 'Inter Tight', 'Inter', sans-serif; letter-spacing: .12em;
                              text-transform: uppercase; color: var(--ari-secondaire); }
.accueil-partenaire-logo { height: 24px; width: auto; display: block; }

/* La porte : courriel, puis code reçu par courriel. Elle échoue FERMÉE.
   Champ et bouton EMPILÉS, de même largeur et centrés (spec 2026-10-20 R15) : côte à côte, le bouton passait
   à la ligne et restait collé à gauche. */
.porte { display: flex; flex-direction: column; align-items: center; gap: 0;
         margin-top: 32px; width: 100%; pointer-events: auto; }
.porte-invite { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 13px;
                font-weight: 600; color: var(--accent); letter-spacing: .12em;
                text-transform: uppercase; margin: 0 0 10px; }
.porte-texte { color: var(--secondaire); font-size: 16px; line-height: 1.5;
               margin: 0 0 22px; max-width: 42ch; }
.porte-forme { display: flex; flex-direction: column; align-items: stretch; gap: 12px;
               width: 100%; max-width: 400px; }
.porte-champ { min-width: 0; background: var(--ari-panneau); text-align: center;
               border: 1px solid var(--filet); border-radius: 999px;
               padding: 14px 20px; color: var(--texte); font-size: 16px;
               font-family: var(--police-corps); }
.porte-champ::placeholder { color: var(--ari-sourd); }
.porte-champ:focus { outline: none; border-color: var(--accent); }
.porte-bouton { background: var(--accent); color: var(--fond); border: 0; width: 100%;
                border-radius: 999px; padding: 14px 26px; cursor: pointer;
                font-family: 'Inter Tight', 'Inter', sans-serif; font-weight: 600;
                font-size: 16px; white-space: nowrap; }
.porte-bouton:hover { background: var(--ari-signal); }
.porte-bouton[disabled] { opacity: .55; cursor: default; }
.porte-note { color: var(--ari-sourd); font-size: 14px; margin: 18px 0 0; max-width: 46ch; line-height: 1.5; }
.porte-erreur { color: var(--ari-signal); font-size: 14px; margin: 12px 0 0; }
.porte-erreur[hidden] { display: none; }
/* .porte déclare display:flex, qui écrase l'attribut hidden. */
.porte[hidden] { display: none; }
.porte-lien { color: var(--accent); }
.porte-retour { pointer-events: auto; margin-top: 20px; }

/* L'invite, une fois la porte franchie : « Cliquez pour commencer » et l'aide clavier. */
.invite { display: flex; flex-direction: column; align-items: center; gap: 12px;
          margin-top: 34px; transition: opacity .4s; }
.invite[hidden] { display: none; }
.invite-bouton { display: inline-flex; align-items: center; gap: 12px; font-family: inherit;
                 border: 1px solid var(--accent); border-radius: 999px; padding: 11px 13px 11px 20px;
                 background: var(--ari-panneau); font-family: 'Inter Tight', 'Inter', sans-serif;
                 font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--ari-texte); }
.invite-fleche { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
                 background: var(--accent); color: var(--fond); font-size: 15px; line-height: 1;
                 animation: pousse 1.6s cubic-bezier(.4,0,.2,1) infinite; }
.invite-aide { color: var(--ari-sourd); font-size: 13px; margin: 0; }
@keyframes pousse {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .invite-fleche { animation: none; }
}
/* Mouvement réduit : la porte (voile + accueil) s'ouvre et se ferme sans transition
   (spec 2026-10-15-presentation-globale §5). Placé APRÈS les règles d'origine : même spécificité, l'ordre décide. */
@media (prefers-reduced-motion: reduce) {
  .voile, .voile[data-parti], .accueil, .accueil[data-parti] { transition: none; }
}
.invite-bouton { cursor: pointer; pointer-events: auto; }

/* ÉCRAN TACTILE OU ÉTROIT : une scène y dépasse souvent l'écran et doit défiler au
   doigt. La couche de clic s'efface (la scène reçoit le toucher) et deux boutons
   pilotent le diaporama. L'aide clavier n'a pas de sens ici. */
.nav-tactile { display: none; position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
               z-index: 11; gap: 12px; }
.nav-tactile button { width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
                      background: var(--ari-panneau); border: 1px solid var(--filet);
                      color: var(--ari-texte); font-size: 20px; line-height: 1; }
.nav-tactile button:active { border-color: var(--accent); }
@media (max-width: 720px), (pointer: coarse) {
  .capteur { pointer-events: none; visibility: hidden; }
  /* Le doigt doit pouvoir saisir l'accueil n'importe où pour le faire défiler. */
  .accueil:not([data-parti]) { pointer-events: auto; }
  body[data-diaporama] .nav-tactile { display: flex; }
  .invite-aide { display: none; }
}
