/* ================================================
   ATELIER CODE — Séminaire : Bannière flottante + Modal
   ================================================ */

/* ══════════════════════════════════════════════
   BANNIÈRE FLOTTANTE
   Wrapper fixé en bas, centré sans translateX
   ══════════════════════════════════════════════ */

.sem-float-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8000;
    padding: 0 20px 20px;
    display: flex;
    justify-content: center;
    pointer-events: none;           /* le wrapper lui-même ne bloque pas les clics */
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity  0.35s ease;
}

.sem-float-banner.hidden {
    transform: translateY(120%);
    opacity: 0;
}

/* Carte intérieure — c'est elle qui reçoit pointer-events */
.sem-fb-inner {
    background: #001F3F;
    background: linear-gradient(135deg, #001F3F 0%, #003A70 100%);
    border-radius: 20px;
    padding: 16px 22px 18px;
    width: 100%;
    max-width: 960px;
    pointer-events: all;
    box-shadow: 0 -4px 0 rgba(255,184,0,0.4),
                0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Cercle décoratif de fond */
.sem-fb-inner::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(255,184,0,0.06);
    border-radius: 50%;
    top: -100px;
    right: -60px;
    pointer-events: none;
}

/* ── Barre du haut ── */
.sem-fb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sem-fb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,184,0,0.15);
    border: 1px solid rgba(255,184,0,0.4);
    color: #FFB800;
    font-size: 0.73rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    animation: pulseBadge 2.5s infinite;
}
@keyframes pulseBadge {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,184,0,0.35); }
    50%      { box-shadow: 0 0 0 7px rgba(255,184,0,0); }
}

.sem-fb-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
}
.sem-fb-close:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    transform: rotate(90deg);
}

/* ── Grille à 3 colonnes ── */
.sem-fb-body {
    display: grid;
    grid-template-columns: 1fr 200px 160px;
    gap: 16px;
    align-items: center;
}

/* Col gauche : titre + détails */
.sem-fb-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
}
.sem-fb-title em {
    color: #FFB800;
    font-style: normal;
}

.sem-fb-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}
.sem-fb-details span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}
.sem-fb-details i {
    color: #FFB800;
    font-size: 0.7rem;
}

/* Col centre : countdown */
.sem-fb-countdown {
    border-left:  1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 0 16px;
    text-align: center;
}
.sem-fb-cd-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.sem-fb-cd-units {
    display: flex;
    align-items: center;
    gap: 3px;
}
.sem-fb-cd-unit {
    text-align: center;
    flex: 1;
}
.sem-fb-cd-unit span {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border-radius: 7px;
    padding: 5px 2px;
    min-width: 38px;
    line-height: 1;
}
.sem-fb-cd-unit em {
    display: block;
    font-style: normal;
    font-size: 0.58rem;
    color: rgba(255,255,255,0.38);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}
.sem-fb-cd-sep {
    color: #FFB800;
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 14px;
    flex-shrink: 0;
}

/* Col droite : prix + bouton */
.sem-fb-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.sem-fb-price {
    text-align: center;
    line-height: 1;
}
.sem-fb-price-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFB800;
}
.sem-fb-price-unit {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sem-fb-cta {
    background: #FFB800;
    color: #001F3F;
    border: none;
    border-radius: 50px;
    padding: 9px 18px;
    font-size: 0.83rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 5px 16px rgba(255,184,0,0.4);
    width: 100%;
    justify-content: center;
}
.sem-fb-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,184,0,0.55);
}
.sem-fb-places {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ══════════════════════════════════════════════
   ONGLET DE RÉOUVERTURE
   ══════════════════════════════════════════════ */
.sem-reopen-tab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 7999;
    background: #001F3F;
    color: #FFB800;
    border: 1px solid rgba(255,184,0,0.35);
    border-radius: 50px;
    padding: 11px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    /* Caché par défaut */
    opacity: 0;
    pointer-events: none;
    transform: translateY(60px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity  0.3s ease;
}
.sem-reopen-tab.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.sem-reopen-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
    background: #003A70;
}

/* ══════════════════════════════════════════════
   MODAL D'INSCRIPTION
   ══════════════════════════════════════════════ */
.sem-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,15,35,0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.sem-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.sem-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(32px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.sem-modal-overlay.open .sem-modal {
    transform: translateY(0) scale(1);
}

.sem-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-family: inherit;
}
.sem-modal-close:hover {
    background: #e2e8f0;
    color: #001F3F;
    transform: rotate(90deg);
}

.sem-modal-header {
    background: linear-gradient(135deg, #001F3F 0%, #003A70 100%);
    padding: 32px 32px 24px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    color: #ffffff;
}
.sem-modal-logo {
    width: 52px; height: 52px;
    background: #FFB800;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.3rem;
    color: #001F3F;
}
.sem-modal-header h3  { font-size: 1.15rem; font-weight: 700; margin: 0 0 5px; }
.sem-modal-header p   { font-size: 0.83rem; color: rgba(255,255,255,0.6); margin: 0; }
.sem-modal-header strong { color: #FFB800; }

.sem-modal-form { padding: 24px 32px 32px; }

.sem-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.sem-form-group { margin-bottom: 12px; }
.sem-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}
.sem-form-group label span { color: #e53e3e; }
.sem-form-group input,
.sem-form-group select {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #334155;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sem-form-group input:focus,
.sem-form-group select:focus {
    border-color: #0A4B8C;
    box-shadow: 0 0 0 3px rgba(10,75,140,0.1);
}
.sem-form-group input.error,
.sem-form-group select.error { border-color: #e53e3e; }

.sem-payment-notice {
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 16px 0 20px;
}
.sem-payment-icon { color: #d97706; font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.sem-payment-text strong { display: block; font-size: 0.85rem; color: #92400e; margin-bottom: 4px; }
.sem-payment-text p { font-size: 0.8rem; color: #78350f; line-height: 1.6; margin: 0; }

.sem-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #001F3F 0%, #0A4B8C 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.sem-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,31,63,0.3);
}
.sem-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.sem-form-result {
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}
.sem-form-result.success   { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.sem-form-result.error-msg { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 800px) {
    .sem-fb-body {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .sem-fb-left        { grid-column: 1 / -1; }
    .sem-fb-countdown   {
        border-left: none; border-right: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 12px 0 0;
    }
    .sem-fb-right       { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; }
}

@media (max-width: 540px) {
    .sem-float-banner { padding: 0; }
    .sem-fb-inner     { border-radius: 16px 16px 0 0; }
    .sem-fb-body      { grid-template-columns: 1fr; }
    .sem-fb-countdown, .sem-fb-right {
        border-left: none; border-right: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 12px;
    }
    .sem-fb-right     { flex-direction: row; justify-content: space-between; align-items: center; }
    .sem-reopen-tab   { bottom: 16px; right: 16px; }
    .sem-form-row     { grid-template-columns: 1fr; }
    .sem-modal-form   { padding: 18px 18px 24px; }
    .sem-modal-header { padding: 24px 18px 20px; }
}
