/* L'Individu : l'accueil, « le seuil ». Un seul écran : une déclaration en très grand, les deux boutons en bas. */

.seuil {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 16px 20px 0;
}

.seuil .marque {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seuil .marque img {
    display: block;
    height: auto;
}

/* la déclaration, au milieu de ce qui reste d'écran */
.acte {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 24px 0 32px;
}

.cri {
    margin: 0;
    font-weight: 900;
    font-stretch: 125%;
    font-size: 30px;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-wrap: balance;
}

.cri.geant {
    font-size: clamp(40px, 12.5vw, 54px);
    line-height: 0.92;
}

.souffle {
    margin: 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 27px;
    line-height: 1.12;
    color: var(--texte);
    text-wrap: balance;
}

.souffle.accent {
    font-size: 32px;
    line-height: 1.02;
    color: var(--accent);
}

/* l'appel : les deux boutons, en bas de l'écran */
.appel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 0 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--trait);
}

.appel .note {
    padding-top: 6px;
}

/* un bouton au contour blanc, sur fond noir */
.bouton.blanc {
    background: transparent;
    border-color: var(--texte);
    color: var(--texte);
}

.bouton.blanc:hover {
    color: var(--accent);
    border-color: var(--accent);
    opacity: 1;
}

/* L'ouverture : deux secondes sur fond noir, une seule fois par ouverture de l'application (ouverture.js), puis l'accueil se découvre.
   Tout est en CSS : rien d'autre à charger que le logo. Un toucher la fait passer ; elle ne joue pas si le système demande moins de mouvement. */
.ouverture {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: var(--fond);
    animation: ouverture-fin 0.45s ease-in 1.9s forwards;
}

.ouverture img {
    display: block;
    height: auto;
    opacity: 0;
    animation: ouverture-logo 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards;
}

.ouverture-nom {
    font-weight: 900;
    font-stretch: 125%;
    font-size: 26px;
    text-transform: uppercase;
    opacity: 0;
    animation: ouverture-nom 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s forwards;
}

.ouverture-mot {
    font-family: var(--serif);
    font-style: italic;
    font-size: 26px;
    color: var(--accent);
    opacity: 0;
    animation: ouverture-mot 0.5s ease-out 1.05s forwards;
}

/* elle n'existe que si le script l'a demandée : sans script, ou une fois passée, rien ne couvre la page */
.ouvre .ouverture {
    display: flex;
}

@keyframes ouverture-logo {
    from { opacity: 0; transform: scale(0.82); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes ouverture-nom {
    from { opacity: 0; letter-spacing: 0.5em; }
    to { opacity: 1; letter-spacing: 0.04em; }
}

@keyframes ouverture-mot {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ouverture-fin {
    to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .ouvre .ouverture {
        display: none;
    }
}
