/* =========================================================================
   FLEXEO 10 ans - Landing page d'inscription
   Couleurs : #bc2222 (rouge) | #0e151d (noir) | #f6f6f6 (clair)
   ========================================================================= */

:root {
    --c-red: #bc2222;
    --c-red-dark: #931a1a;
    --c-red-light: #d44545;
    --c-dark: #0e151d;
    --c-dark-2: #1a232f;
    --c-light: #f6f6f6;
    --c-white: #ffffff;
    --c-text: #1a232f;
    --c-text-muted: #6b7585;
    --c-border: #e3e6eb;
    --shadow-sm: 0 1px 3px rgba(14, 21, 29, 0.08);
    --shadow-md: 0 6px 20px rgba(14, 21, 29, 0.12);
    --shadow-lg: 0 20px 60px rgba(14, 21, 29, 0.25);
    --radius: 6px;
    --radius-lg: 12px;
    --font-display: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-red); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-red-dark); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= TOPBAR ================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--c-dark);
    border-bottom: 2px solid var(--c-red);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 16px;
}
.topbar-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.topbar-logo img {
    display: block;
    height: 44px;
    width: auto;
}
@media (max-width: 600px) {
    .topbar-logo img { height: 36px; }
}
.topbar-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.topbar-nav a {
    color: var(--c-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.topbar-nav a:hover { color: var(--c-red-light); }

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s ease;
    line-height: 1;
}
.btn-primary {
    background: var(--c-red);
    color: var(--c-white) !important;
    border-color: var(--c-red);
}
.btn-primary:hover {
    background: var(--c-red-dark);
    border-color: var(--c-red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-ghost {
    background: transparent;
    color: var(--c-light) !important;
    border-color: rgba(246,246,246,0.3);
}
.btn-ghost:hover {
    background: rgba(246,246,246,0.08);
    border-color: var(--c-light);
}
.section-light .btn-ghost {
    color: var(--c-dark) !important;
    border-color: var(--c-border);
}
.section-light .btn-ghost:hover {
    background: var(--c-dark);
    color: var(--c-white) !important;
    border-color: var(--c-dark);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ================= HERO ================= */
.hero {
    position: relative;
    background: var(--c-dark);
    color: var(--c-light);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(188,34,34,0.18) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(188,34,34,0.10) 0%, transparent 50%),
        linear-gradient(135deg, #0e151d 0%, #1a232f 100%);
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 24px 100px;
}
.hero-eyebrow {
    color: var(--c-red-light);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 4px;
    margin: 0 0 16px;
    text-transform: uppercase;
}
.hero-eyebrow sup { font-size: 0.6em; }
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 24px;
    letter-spacing: -1px;
    text-transform: uppercase;
}
.hero-title .accent {
    color: var(--c-red);
    display: inline-block;
}
.hero-place {
    color: rgba(246,246,246,0.7);
    font-size: 18px;
    margin: 0 0 32px;
}
.hero-meta {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}
.hero-meta-item {
    display: flex;
    flex-direction: column;
}
.meta-label {
    color: var(--c-red-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 4px;
}
.meta-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
}

/* ================= COUNTDOWN ================= */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 32px 0;
    max-width: 480px;
}
.cd-cell {
    background: rgba(246,246,246,0.06);
    border: 1px solid rgba(246,246,246,0.12);
    border-radius: var(--radius);
    padding: 16px 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.cd-num {
    display: block;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--c-white);
    line-height: 1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
.cd-lbl {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(246,246,246,0.6);
    font-weight: 500;
}
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* ================= AFFICHE ================= */
.hero-visual {
    display: flex;
    justify-content: center;
}
.affiche {
    max-width: 100%;
    width: auto;
    max-height: 720px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform .4s ease;
}
.affiche:hover { transform: translateY(-4px) scale(1.01); }

/* ================= SECTIONS ================= */
.section { padding: 80px 0; }
.section-light { background: var(--c-light); }
.section-dark {
    background: var(--c-dark);
    color: var(--c-light);
    background-image:
        radial-gradient(circle at 90% 10%, rgba(188,34,34,0.12) 0%, transparent 40%);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin: 0 0 16px;
    text-transform: uppercase;
    color: var(--c-dark);
    position: relative;
    padding-bottom: 16px;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--c-red);
    margin-top: 16px;
}
.section-title-light { color: var(--c-light); }
.section-lead {
    font-size: 18px;
    max-width: 720px;
    color: var(--c-text-muted);
    margin: 0 0 48px;
}
.section-lead-light { color: rgba(246,246,246,0.75); }

/* ================= INFO CARDS ================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}
.info-card {
    background: var(--c-white);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
    transition: transform .2s, box-shadow .2s;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.info-icon { font-size: 28px; margin-bottom: 12px; }
.info-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--c-dark);
    text-transform: uppercase;
}
.info-card p { margin: 0 0 8px; color: var(--c-text); }
.info-card-accent {
    background: var(--c-dark);
    color: var(--c-light);
    border-color: var(--c-dark);
}
.info-card-accent h3 { color: var(--c-white); }
.info-card-accent p { color: rgba(246,246,246,0.85); }
.info-card-accent strong { color: var(--c-red-light); }
.info-note {
    font-size: 13px;
    color: rgba(246,246,246,0.6) !important;
    margin-top: 12px !important;
    padding-top: 12px;
    border-top: 1px solid rgba(246,246,246,0.15);
}

/* ================= PROGRAMME ================= */
.programme {
    background: var(--c-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--c-red);
    box-shadow: var(--shadow-sm);
}
.programme-title {
    font-family: var(--font-display);
    font-size: 24px;
    text-transform: uppercase;
    margin: 0 0 16px;
    color: var(--c-dark);
}
.programme-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.programme-list li {
    padding: 12px 16px;
    background: var(--c-light);
    border-radius: var(--radius);
    font-weight: 500;
    border-left: 3px solid var(--c-red);
}

/* ================= FORM ================= */
.form {
    background: var(--c-white);
    color: var(--c-text);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 920px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}
.form-block {
    border: none;
    padding: 0 0 32px;
    margin: 0 0 32px;
    border-bottom: 1px solid var(--c-border);
}
.form-block:last-of-type { border-bottom: none; }
.block-legend {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--c-dark);
    margin-bottom: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.block-num {
    display: inline-flex;
    width: 32px;
    height: 32px;
    background: var(--c-red);
    color: var(--c-white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.field-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--c-dark);
    margin-bottom: 8px;
}
.field span {
    font-weight: 600;
    font-size: 14px;
    color: var(--c-dark);
}
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--c-text);
    background: var(--c-white);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--c-red);
    box-shadow: 0 0 0 3px rgba(188,34,34,0.15);
}
.field input[type="file"] {
    padding: 8px 12px;
    cursor: pointer;
}
.field textarea {
    resize: vertical;
    min-height: 80px;
}

.sub-title {
    font-family: var(--font-display);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 24px 0 16px;
    color: var(--c-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}
.badge {
    display: inline-block;
    background: var(--c-red);
    color: var(--c-white);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
}

/* RADIOS / CHECKBOX */
.radio-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.radio,
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    margin-bottom: 8px;
}
.radio input,
.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--c-red);
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox span { font-weight: 400; }

.block-hint {
    background: rgba(188,34,34,0.06);
    border-left: 3px solid var(--c-red);
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--c-text);
    font-size: 14px;
    margin: 0 0 16px;
}
.block-hint.muted {
    background: var(--c-light);
    border-left-color: var(--c-text-muted);
    color: var(--c-text-muted);
}
.radio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.radio-cards.locked {
    opacity: 0.5;
    pointer-events: none;
}
.radio-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border: 2px solid var(--c-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .15s;
    background: var(--c-white);
}
.radio-card:hover { border-color: var(--c-red-light); }
.radio-card input { margin-top: 3px; flex-shrink: 0; }
.radio-card input:checked ~ .radio-card-body strong { color: var(--c-red); }
.radio-card:has(input:checked) {
    border-color: var(--c-red);
    background: rgba(188,34,34,0.04);
}
.radio-card-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--c-light);
    position: relative;
}
.radio-card-disabled::after {
    content: attr(data-lock-badge);
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--c-text-muted);
    font-weight: 600;
    background: var(--c-white);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--c-border);
}
.radio-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.radio-card-body strong {
    font-family: var(--font-display);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--c-dark);
}
.radio-card-body span {
    font-size: 13px;
    color: var(--c-text-muted);
    font-weight: 400;
}

/* DYNAMIC LIST */
.dynamic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}
.dynamic-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 12px;
    background: var(--c-light);
    border-radius: var(--radius);
}
.dynamic-row .field { margin-bottom: 0; }
.dynamic-row .remove-btn {
    background: transparent;
    border: 1.5px solid var(--c-border);
    color: var(--c-text-muted);
    padding: 10px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all .15s;
}
.dynamic-row .remove-btn:hover {
    border-color: var(--c-red);
    color: var(--c-red);
    background: rgba(188,34,34,0.05);
}
.add-row {
    color: var(--c-red) !important;
    border-color: var(--c-red) !important;
    background: transparent;
}
.add-row:hover {
    background: var(--c-red);
    color: var(--c-white) !important;
}

/* RECAP */
.recap {
    background: var(--c-light);
    border-left: 4px solid var(--c-red);
    border-radius: var(--radius);
    padding: 24px;
    margin: 32px 0;
}
.recap-line,
.recap-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.recap-line { color: var(--c-text-muted); }
.recap-total {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--c-dark);
    border-top: 1px solid var(--c-border);
    margin-top: 8px;
    padding-top: 16px;
}
.recap-total strong { color: var(--c-red); }
.recap-note {
    font-size: 13px;
    color: var(--c-text-muted);
    margin: 16px 0 0;
    line-height: 1.5;
}

/* ALERTS */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-weight: 500;
}
.alert-success {
    background: #e8f7ee;
    color: #1a6b3e;
    border-left: 4px solid #27a560;
}
.alert-error {
    background: #fdecec;
    color: #8b1c1c;
    border-left: 4px solid var(--c-red);
}
.section-dark .alert { color: var(--c-text); }

.form-submit {
    text-align: center;
    margin-top: 32px;
}

/* ================= FOOTER ================= */
.footer {
    background: #06080c;
    color: rgba(246,246,246,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand img {
    height: 60px;
    width: auto;
    display: block;
}
.footer-brand p { margin-top: 16px; max-width: 320px; }
.footer-block h4 {
    font-family: var(--font-display);
    color: var(--c-light);
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    margin: 0 0 12px;
}
.footer-block p { margin: 0; line-height: 1.7; }
.footer-block a { color: var(--c-red-light); }
.footer-bottom {
    border-top: 1px solid rgba(246,246,246,0.1);
    padding: 20px 0;
    font-size: 13px;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 24px 60px;
    }
    .hero-visual { order: -1; }
    .affiche { max-height: 540px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .form { padding: 28px 20px; }
    .grid-2 { grid-template-columns: 1fr; }
    .dynamic-row { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .topbar-nav { gap: 14px; }
    .topbar-nav a:not(.btn) { display: none; }
}

@media (max-width: 480px) {
    .hero-meta { flex-direction: column; gap: 16px; }
    .countdown { gap: 8px; }
    .cd-num { font-size: 28px; }
    .cd-cell { padding: 12px 4px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { text-align: center; }
}
