/* ================================================================
   03-components.css — Composants réutilisables
   ----------------------------------------------------------------
   - Boutons (.btn, variantes)
   - Badge "Early Access" (.eab, .ld, .spots)
   - Formulaires (.ff, .frow, .fsb)
   - Modales (.mo, .mdl, .mx, .mperks, .fft)
   - Toast notifications (.toast)
   ================================================================ */


/* ─── Boutons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 24px;
    font-family: var(--fb);
    font-weight: 700;
    font-size: .85rem;
    border-radius: var(--Rf);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .25s cubic-bezier(.22,1,.36,1);
    letter-spacing: -.01em;
}

/* Variante principale (indigo) */
.ba { background: var(--a); color: #fff; }
.ba:hover {
    background: #3730A3;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79,70,229,.18);
}

/* Variante ghost (contour) — fond blanc sur light theme */
.bg {
    background: #fff;
    color: var(--t);
    border: 1px solid var(--b);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.bg:hover { border-color: var(--a); color: var(--a); }

/* Variante large */
.bl { padding: 14px 32px; font-size: .95rem; }


/* ─── Badge "Early Access ouvert" (hero) ─── */
.eab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px 5px 7px;
    background: linear-gradient(90deg, var(--ad), var(--od));
    border: 1px solid rgba(79,70,229,.15);
    border-radius: var(--Rf);
    font-size: .74rem;
    font-weight: 700;
    color: var(--a);
    margin-bottom: 28px;
    animation: fU .5s ease-out;
    letter-spacing: .02em;
}

/* LED pulsante à gauche du badge */
.ld {
    width: 7px; height: 7px;
    background: var(--a);
    border-radius: 50%;
    animation: pu 2s ease-in-out infinite;
}

/* Compteur de places restantes */
.spots {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg);
    border-radius: var(--Rf);
    font-family: var(--fm);
    font-size: .68rem;
    color: var(--o);
    margin-left: 4px;
    font-weight: 700;
    animation: sc 2s ease-in-out infinite;
}


/* ─── Formulaires (modales) ─── */
.ff { margin-bottom: 16px; }
.ff label {
    display: block;
    font-size: .74rem;
    font-weight: 600;
    color: var(--tm);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 5px;
}
.ff input,
.ff select,
.ff textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(0,0,0,.025);
    border: 1px solid var(--b);
    border-radius: var(--Rs);
    color: var(--t);
    font-family: var(--fb);
    font-size: .9rem;
    outline: none;
    transition: border-color .2s;
}
.ff input:focus,
.ff select:focus,
.ff textarea:focus { border-color: var(--a); }
.ff textarea { resize: vertical; min-height: 80px; }

.frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.fsb { width: 100%; margin-top: 8px; }
.fft {
    text-align: center;
    margin-top: 14px;
    font-size: .76rem;
    color: var(--tm);
}


/* ─── Modales ─── */
.mo {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.mo.act { display: flex; }

.mdl {
    background: #fff;
    border: 1px solid var(--b);
    border-radius: 20px;
    padding: 44px;
    max-width: 460px;
    width: 100%;
    position: relative;
    animation: fU .35s ease-out;
}

.mx {
    position: absolute;
    top: 16px; right: 16px;
    background: none; border: none;
    color: var(--tm);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.mx:hover { color: var(--t); }

.mdl h3 {
    font-family: var(--fd);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.mds {
    font-size: .88rem;
    color: var(--tm);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Liste d'avantages fondateur dans la modale trial */
.mperks {
    background: var(--ad);
    border: 1px solid rgba(79,70,229,.1);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
}
.mperks strong {
    display: block;
    font-size: .74rem;
    color: var(--a);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}
.mperks ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mperks ul li {
    font-size: .82rem;
    color: var(--t2);
    display: flex;
    align-items: center;
    gap: 6px;
}
.mperks ul li::before {
    content: '✓';
    color: var(--a);
    font-weight: 700;
}


/* ─── Toast notifications ─── */
.toast {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 100000;
    padding: 14px 22px;
    border-radius: var(--R);
    font-size: .88rem;
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    transition: all .4s cubic-bezier(.22,1,.36,1);
}
.toast.sh { transform: translateY(0); opacity: 1; }
.toast.ok { background: var(--g); color: #fff; }
.toast.er { background: var(--r); color: #fff; }
