/* ============================================================
   launch.css — avant l'ouverture (SiteStatus.Launched faux) : la frise « Où en est l'ouverture »,
   le formulaire « Me prévenir à l'ouverture », l'état du menu et les pages de compte fermées.
   Chargé par _Layout et _AuthLayout seulement avant l'ouverture. Maquette :
   maquettes/site-vitrine/propositions-ouverture-B.html (B1).
   ============================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === La frise : un tiret de ceinture par étape (plein = fait, rayé qui avance = en cours, vide = à venir) === */
.launch-track {
    max-width: 560px;
    margin: 0 0 26px;
}
.launch-track-title {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}
.launch-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.launch-bar {
    display: block;
    height: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background: var(--c);
}
/* Rayures sur une tuile carrée : décaler d'une tuile retombe exactement sur le même dessin,
   la boucle ne se voit pas (un dégradé « repeating » sur toute la barre, lui, sautait). */
.launch-step.is-doing .launch-bar {
    background-color: color-mix(in srgb, var(--c) 40%, #fff);
    background-image: linear-gradient(-45deg, var(--c) 25%, transparent 25% 50%, var(--c) 50% 75%, transparent 75%);
    background-size: 22px 22px;
    animation: launch-move 1.5s linear infinite;
}
.launch-step.is-todo .launch-bar {
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--border);
}
.launch-label {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    color: var(--text);
}
.launch-status {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--text-soft);
}
.launch-step.is-done .launch-status { color: var(--belt-green); }
.launch-status .material-symbols-rounded { font-size: 15px; }
@keyframes launch-move {
    from { background-position: 0 0; }
    to { background-position: -22px 0; }
}

/* Compacte (cartes des pages de compte) : une ligne comme sur l'accueil, plus serrée */
.launch-track.is-compact { margin: 4px 0 24px; }
.launch-track.is-compact .launch-steps { gap: 8px; }
.launch-track.is-compact .launch-label { font-size: 13px; }
.launch-track.is-compact .launch-status { font-size: 12px; }

@media (max-width: 640px) {
    .launch-steps,
    .launch-track.is-compact .launch-steps { grid-template-columns: 1fr 1fr; row-gap: 16px; }
}

/* === Les petits tirets du menu === */
.launch-dashes {
    display: inline-flex;
    gap: 3px;
}
.launch-dashes i {
    display: block;
    width: 12px;
    height: 5px;
    border-radius: 3px;
    background: var(--c);
}
.launch-dashes i.is-todo {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--border);
}
.launch-dashes i.is-doing { animation: launch-blink 1.6s ease-in-out infinite; }
@keyframes launch-blink {
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .launch-step.is-doing .launch-bar,
    .launch-dashes i.is-doing { animation: none; }
}

/* === Menu : l'état et « Me prévenir » === */
.nav-launch {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav-launch-state {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}
.nav-launch .btn {
    padding: 9px 16px;
    font-size: 14px;
}
@media (max-width: 1160px) {
    .nav-launch-state { display: none; }
}
.drawer-cta .nav-launch-state {
    display: inline-flex;
    justify-content: center;
    padding: 4px 0;
}

/* === Formulaire « Me prévenir à l'ouverture » === */
.notify { max-width: 540px; }
.notify-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.notify-row input {
    flex: 1 1 230px;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 16px;
}
.notify-row input:focus {
    outline: none;
    border-color: var(--belt-yellow);
    box-shadow: 0 0 0 3px rgba(252, 192, 43, 0.15);
}
.notify-row .btn { justify-content: center; }
.notify-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.notify-error {
    margin: 8px 0 0;
    font-size: 13.5px;
    color: var(--belt-dark-red);
}
.notify-error:empty { display: none; }
.notify-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--text-soft);
}
.notify-note a {
    color: inherit;
    text-underline-offset: 2px;
}
.notify-ok {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 540px;
    padding: 14px 16px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--belt-green) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--belt-green) 30%, #fff);
    text-align: left;
}
.notify-ok[hidden] { display: none; }
.notify-ok .material-symbols-rounded {
    font-size: 22px;
    color: var(--belt-green);
}
.notify-ok b {
    display: block;
    font-weight: 400;
    color: var(--text);
}
.notify-ok small {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* Sous le formulaire du hero : « Voir l'application », en lien discret */
.launch-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 14.5px;
    color: var(--text-muted);
    text-decoration: none;
}
.launch-more:hover { color: var(--text); }
.launch-more .material-symbols-rounded { font-size: 18px; }

/* Bandeau du bas de page : formulaire centré */
.cta-final .notify { margin: 0 auto; }
.cta-final .notify-row { justify-content: center; }
.cta-final .notify-row input { background: #fff; }
.cta-final .notify-note {
    max-width: none;
    margin: 10px 0 0;
    font-size: 13px;
    text-align: center;
}
.cta-final .notify-ok { margin: 0 auto; }

/* Pages de compte fermées (Bientot.cshtml, dans _AuthLayout) */
.auth-card .notify-row input {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 15px;
}
.auth-card .notify-row .btn { border-radius: 12px; }
.auth-card .launch-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.auth-more {
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}
.auth-more a { color: var(--primary); }
