:root {
    --scc-red: #c81d25;
    --scc-red-dark: #9e141a;
    --scc-red-light: #fff0f1;
    --scc-green: #1d8f4b;
    --scc-green-dark: #126332;
    --scc-green-light: #eafbf0;
    --scc-blue: #0a3d62;
    --scc-blue-dark: #05243a;
    --scc-blue-light: #e6f2fa;
    --scc-gold: #e5c158;
    --scc-dark: #0b2219;
    --scc-muted: #5c6b73;
    --scc-card: #ffffff;
    --scc-bg: #f5f8f7;
    --scc-shadow-sm: 0 4px 6px rgba(10, 43, 33, 0.04);
    --scc-shadow-md: 0 10px 30px rgba(10, 43, 33, 0.06);
    --scc-shadow-lg: 0 20px 50px rgba(10, 43, 33, 0.12);
    --scc-radius-sm: 12px;
    --scc-radius-md: 20px;
    --scc-radius-lg: 32px;
    --font-primary: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background: linear-gradient(180deg, #f3f7f5 0%, #e9eff1 100%);
    color: var(--scc-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--scc-green);
}

a:hover {
    color: var(--scc-green-dark);
}

.landing-page {
    width: 100%;
}

/* ==========================================================================
   TOP PATRONAGE BAR (Poster Diagonal Layout)
   ========================================================================== */
.top-patronage-bar {
    display: flex;
    background: #ffffff;
    border-bottom: 5px solid var(--scc-green);
    overflow: hidden;
    position: relative;
    box-shadow: var(--scc-shadow-sm);
    flex-wrap: wrap;
}

.patronage-left {
    flex: 1 1 45%;
    background: #ffffff;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
}

.patronage-left .logos-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.patronage-left .logo-scc {
    height: 75px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.06));
}

.patronage-left .logo-focev {
    height: 60px;
    object-fit: contain;
}

.patronage-right {
    flex: 1 1 55%;
    background: var(--scc-blue);
    padding: 20px 40px 20px 80px;
    display: flex;
    align-items: center;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.patronage-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40px;
    width: 80px;
    height: 100%;
    background: var(--scc-blue);
    transform: skewX(-25deg);
    z-index: -1;
    border-left: 6px solid var(--scc-green);
}

.patronage-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.patronage-fr {
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 2px solid var(--scc-gold);
    padding-bottom: 4px;
    display: inline-block;
}

.patronage-en {
    font-size: clamp(0.85rem, 1.3vw, 1.1rem);
    font-weight: 600;
    margin: 0;
    font-style: italic;
    opacity: 0.9;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 80px 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(26, 92, 60, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(10, 61, 98, 0.05) 0%, transparent 40%),
        #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-copy {
    text-align: left;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    font-weight: 900;
    color: var(--scc-blue);
    margin: 0 0 15px 0;
}

.hero-copy h1 span.arterielle {
    color: var(--scc-green);
    font-family: var(--font-primary);
    display: inline-block;
    position: relative;
}

.hero-copy h2 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.4;
    font-weight: 600;
    color: var(--scc-muted);
    margin: 0 0 25px 0;
}

.event-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--scc-green-light);
    border: 1px solid rgba(29, 143, 75, 0.15);
    padding: 10px 20px;
    border-radius: var(--scc-radius-sm);
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--scc-green-dark);
    font-size: 1.05rem;
    box-shadow: var(--scc-shadow-sm);
}

.event-meta-badge i {
    font-size: 1.2rem;
}

/* Theme Ribbon banner resembling the theme banner in poster */
.theme-banner {
    background: linear-gradient(135deg, var(--scc-green-dark), var(--scc-green));
    color: #ffffff;
    padding: 24px;
    border-radius: var(--scc-radius-md);
    margin-bottom: 35px;
    border-left: 6px solid var(--scc-red);
    box-shadow: var(--scc-shadow-md);
    position: relative;
    overflow: hidden;
}

.theme-banner::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.theme-banner .theme-label {
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--scc-gold);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-banner h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-hero {
    background: linear-gradient(135deg, var(--scc-red), #e52932);
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(200, 29, 37, 0.35);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(200, 29, 37, 0.45);
}

.btn-hero-secondary {
    background: #ffffff;
    color: var(--scc-blue) !important;
    border: 2px solid var(--scc-blue);
    box-shadow: var(--scc-shadow-sm);
}

.btn-hero-secondary:hover {
    background: var(--scc-blue-light);
    transform: translateY(-3px);
}

/* Circular Doctor Frame (Right Column) */
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.circle-frame {
    width: min(380px, 90vw);
    height: min(380px, 90vw);
    border-radius: 50%;
    position: relative;
    padding: 10px;
    background: linear-gradient(135deg, var(--scc-red) 30%, var(--scc-gold) 70%, var(--scc-blue) 100%);
    box-shadow: var(--scc-shadow-lg);
}

.circle-frame-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #ffffff;
    position: relative;
}

.circle-frame-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

/* Floating Programme badging */
.program-badges-banner {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.program-badge {
    background: #ffffff;
    border: 1px solid rgba(10, 61, 98, 0.12);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--scc-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--scc-shadow-sm);
}

.program-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--scc-red);
}

.program-badge:nth-child(even)::before {
    background: var(--scc-green);
}

/* ==========================================================================
   BLUE ARROW EVENT BANNERS
   ========================================================================== */
.event-banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: min(1200px, calc(100% - 32px));
    margin: -25px auto 50px;
    position: relative;
    z-index: 10;
}

.event-banner-card {
    background: linear-gradient(135deg, var(--scc-blue), var(--scc-blue-dark));
    color: #ffffff;
    border-radius: var(--scc-radius-md);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--scc-shadow-md);
    border-left: 6px solid var(--scc-gold);
    position: relative;
    overflow: hidden;
}

.event-banner-card::after {
    content: '→';
    font-size: 5rem;
    font-weight: 900;
    position: absolute;
    right: -10px;
    bottom: -30px;
    opacity: 0.05;
    color: #ffffff;
}

.event-banner-card .banner-icon {
    font-size: 2.2rem;
    color: var(--scc-gold);
    background: rgba(255, 255, 255, 0.08);
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.event-banner-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

.event-banner-card span.sub-text {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--scc-gold);
    margin-bottom: 4px;
    font-weight: 800;
}

.event-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--scc-shadow-lg);
}

/* ==========================================================================
   LAYOUT GRID FOR SECTIONS AND FORMS
   ========================================================================== */
.main-content-layout {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 50px 0 100px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
}

.section-shell {
    padding: 0;
}

.section-title {
    text-align: left;
    margin-bottom: 30px;
}

.section-title h2 {
    font-weight: 800;
    font-size: 2.1rem;
    color: var(--scc-blue);
    margin: 0 0 8px 0;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--scc-green);
    margin-top: 8px;
    border-radius: 2px;
}

.section-title p {
    color: var(--scc-muted);
    font-size: 1.05rem;
    margin: 0;
}

.card-soft {
    background: var(--scc-card);
    border-radius: var(--scc-radius-md);
    box-shadow: var(--scc-shadow-md);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
}

.about-text p {
    color: #43545b;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   SIDEBAR (RED DEPISTAGE COLUMN & CONTACTS)
   ========================================================================== */
.sidebar-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Red Depistage Card matching the red panel on poster */
.depistage-card {
    background: linear-gradient(135deg, var(--scc-red), var(--scc-red-dark));
    color: #ffffff;
    border-radius: var(--scc-radius-md);
    padding: 35px 30px;
    box-shadow: var(--scc-shadow-lg);
    border-bottom: 6px solid var(--scc-gold);
    position: relative;
    overflow: hidden;
}

.depistage-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.depistage-card h3.depistage-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--scc-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 20px 0;
    border-bottom: 2px solid rgba(255,255,255,0.15);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.depistage-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: #ffffff;
}

.depistage-locations {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.depistage-locations li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.depistage-locations li i {
    color: var(--scc-gold);
    margin-top: 4px;
}

/* Contacts Card matching poster details */
.contacts-card {
    background: #ffffff;
    border-radius: var(--scc-radius-md);
    padding: 30px;
    box-shadow: var(--scc-shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
}

.contacts-card h3 {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--scc-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item .contact-icon {
    font-size: 1.15rem;
    color: var(--scc-green);
    background: var(--scc-green-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.contact-item:nth-child(even) .contact-icon {
    color: var(--scc-blue);
    background: var(--scc-blue-light);
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item span.label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--scc-muted);
}

.contact-item span.val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--scc-dark);
}

.contact-item a {
    color: var(--scc-dark);
    font-weight: 700;
}

.contact-item a:hover {
    color: var(--scc-green);
}

/* QR Code Scan Me box mimicking poster */
.qr-scan-card {
    background: #ffffff;
    border-radius: var(--scc-radius-md);
    padding: 24px;
    box-shadow: var(--scc-shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-box {
    background: var(--scc-blue-light);
    padding: 16px;
    border-radius: var(--scc-radius-sm);
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    font-size: 4rem;
    color: var(--scc-blue);
    border: 2px dashed rgba(10, 61, 98, 0.2);
}

.qr-scan-card h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--scc-blue);
}

.qr-scan-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--scc-muted);
    font-weight: 600;
}

/* ==========================================================================
   WIZARD REGISTRATION FORM
   ========================================================================== */
.registration-card {
    background: #ffffff;
    border-radius: var(--scc-radius-lg);
    box-shadow: var(--scc-shadow-lg);
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.02);
}

.registration-card .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.registration-card .section-title h2::after {
    margin: 8px auto 0;
}

.registration-card .decorative-note {
    background: var(--scc-blue-light);
    color: var(--scc-blue-dark);
    padding: 12px 20px;
    border-radius: var(--scc-radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
    border-left: 4px solid var(--scc-blue);
}

.inscription-shell {
    background: transparent;
    border: none;
    padding: 0;
}

/* ==========================================================================
   HORIZONTAL CONNECTED STEPPER
   ========================================================================== */

/* Hide the old progress bar - stepper replaces it */
.wizard-progress-bar {
    display: none;
}

/* Stepper wrapper */
.wizard-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

/* Connecting line base */
.wizard-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(10px + 22px);
    right: calc(10px + 22px);
    height: 4px;
    background: #e1e7ea;
    z-index: 0;
    border-radius: 2px;
}

/* Animated fill line */
.wizard-steps::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(10px + 22px);
    height: 4px;
    width: var(--stepper-progress, 0%);
    background: linear-gradient(90deg, var(--scc-green), var(--scc-green));
    z-index: 1;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Each step pill */
.step-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: default;
    flex: 1;
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Circle icon */
.step-pill span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
    border: 3px solid #e1e7ea;
    background: #f5f8f7;
    color: #a0aab4;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
    box-shadow: 0 0 0 4px #f5f8f7;
}

/* Label */
.step-pill small {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a0aab4;
    transition: color 0.3s ease;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

/* ----- ACTIVE (current step = red) ----- */
.step-pill.active span {
    background: var(--scc-red);
    border-color: var(--scc-red);
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(200, 29, 37, 0.15), 0 4px 14px rgba(200, 29, 37, 0.35);
    transform: scale(1.15);
}

.step-pill.active small {
    color: var(--scc-red);
    font-weight: 900;
}

/* Pulsing ring on active step */
.step-pill.active span::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--scc-red);
    animation: pulse-ring 1.8s ease-out infinite;
    opacity: 0;
}

@keyframes pulse-ring {
    0%   { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.4);  opacity: 0; }
}

/* ----- DONE (completed step = green with checkmark) ----- */
.step-pill.done span {
    background: var(--scc-green);
    border-color: var(--scc-green);
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(29, 143, 75, 0.12), 0 3px 10px rgba(29, 143, 75, 0.25);
    transform: scale(1);
    font-size: 0; /* hide the number */
}

/* Show a checkmark via pseudo-element for done steps */
.step-pill.done span::before {
    content: '\f00c'; /* fa-check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    color: #ffffff;
}

.step-pill.done small {
    color: var(--scc-green-dark);
    font-weight: 800;
}

/* ==========================================================================
   FORM FIELDS — Global override for Bootstrap fixed height on selects
   ========================================================================== */

/* Base form controls inside the wizard */
#form-inscription .form-control,
#form-inscription select,
#form-inscription textarea,
#form-inscription input[type="text"],
#form-inscription input[type="email"] {
    height: auto !important;        /* Override Bootstrap's fixed height */
    min-height: 52px;
    line-height: 1.5;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--scc-dark);
    background-color: #f8fafc;
    border: 2px solid #dde4e8;
    border-radius: var(--scc-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    width: 100%;
}

#form-inscription select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a3d62' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 44px;
    cursor: pointer;
}

/* Keep the first required choice native so it remains reliably interactive
   across desktop and mobile browsers. */
#form-inscription #titre {
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    background-image: none;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

#form-inscription .form-control:focus,
#form-inscription select:focus,
#form-inscription textarea:focus,
#form-inscription input[type="text"]:focus,
#form-inscription input[type="email"]:focus {
    border-color: var(--scc-blue);
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(10, 61, 98, 0.1);
}

#form-inscription .form-control.is-invalid,
#form-inscription select.is-invalid {
    border-color: var(--scc-red) !important;
    background-color: var(--scc-red-light) !important;
    box-shadow: 0 0 0 4px rgba(200, 29, 37, 0.12) !important;
}

/* Keep old .step-card rules for backward compat */
.step-card .form-control,
.step-card select,
.step-card textarea {
    border-radius: var(--scc-radius-sm);
    border: 2px solid #dde4e8;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--scc-dark);
    background-color: #f8fafc;
    transition: all 0.2s ease;
    height: auto !important;
    min-height: 52px;
    line-height: 1.5;
}

.step-card .form-control:focus,
.step-card select:focus,
.step-card textarea:focus {
    border-color: var(--scc-blue);
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(10, 61, 98, 0.1);
}

.step-card select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a3d62' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 44px;
}

.step-card .is-invalid {
    border-color: var(--scc-red) !important;
    background-color: var(--scc-red-light) !important;
    box-shadow: 0 0 0 4px rgba(200, 29, 37, 0.1) !important;
}

.text-danger {
    color: var(--scc-red);
}

/* ==========================================================================
   STEP CARD HEADER (Number + Title)
   ========================================================================== */
.step-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f0f4f6;
}

.step-card-num {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--scc-blue);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(10, 61, 98, 0.25);
}

.step-card-num.done-num {
    background: var(--scc-green);
    box-shadow: 0 4px 12px rgba(29, 143, 75, 0.25);
    font-size: 1.4rem;
}

.step-card-header h4 {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--scc-blue);
}

.step-card-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--scc-muted);
    font-weight: 500;
}

/* ==========================================================================
   STEP NAV FOOTER (Prev / Next buttons inside each step)
   ========================================================================== */
.step-nav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid #f0f4f6;
    gap: 12px;
}

.btn-step-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--scc-blue), var(--scc-blue-dark));
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(10, 61, 98, 0.3);
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.btn-step-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 61, 98, 0.4);
}

.btn-step-prev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f7;
    color: var(--scc-dark);
    border: 2px solid #dde4e8;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.btn-step-prev:hover {
    background: #e4ebef;
    border-color: #c5cfd4;
}

.btn-step-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--scc-green), var(--scc-green-dark));
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(29, 143, 75, 0.35);
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.btn-step-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(29, 143, 75, 0.45);
}

/* ==========================================================================
   GENDER / CHOICE TOGGLE BUTTONS
   ========================================================================== */
.gender-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gender-option {
    cursor: pointer;
    margin: 0;
}

.gender-option input[type="radio"] {
    display: none; /* hide native radio, use custom button */
}

.gender-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid #dde4e8;
    background: #f8fafc;
    color: var(--scc-muted);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.gender-option input[type="radio"]:checked + .gender-btn {
    background: var(--scc-blue-light);
    border-color: var(--scc-blue);
    color: var(--scc-blue);
    box-shadow: 0 2px 8px rgba(10, 61, 98, 0.15);
}

.gender-btn:hover {
    background: #edf2f6;
    border-color: #b8c8d2;
}

/* ==========================================================================
   INPUT WITH ICON (for email / phone / location fields)
   ========================================================================== */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    color: var(--scc-blue);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.input-with-icon .form-control,
.input-with-icon input {
    padding-left: 46px !important;
}

/* ==========================================================================
   ADD ITEM BUTTON (for specialite / labo +)
   ========================================================================== */
.btn-add-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--scc-red-light);
    color: var(--scc-red);
    border: 2px solid rgba(200, 29, 37, 0.2);
    cursor: pointer;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-add-item:hover {
    background: #ffcdd0;
    transform: scale(1.08);
}

/* ==========================================================================
   RECAP BOX (Step 6 summary)
   ========================================================================== */
.recap-box {
    background: linear-gradient(135deg, #f5f9ff, #edf4fd);
    border: 1.5px solid rgba(10, 61, 98, 0.1);
    border-radius: var(--scc-radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.recap-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--scc-blue);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.recap-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(10, 61, 98, 0.06);
}

.recap-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--scc-muted);
    min-width: 120px;
}

.recap-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--scc-dark);
    text-align: right;
}

/* ==========================================================================
   STEP CARD TRANSITIONS (animate step entry)
   ========================================================================== */
.item {
    display: none;
}

.item.show {
    display: block;
    animation: stepFadeIn 0.3s ease-out both;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Radio buttons container (legacy) */
.step-card .input-group {
    display: flex;
    gap: 25px;
    align-items: center;
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: var(--scc-radius-sm);
    border: 2px solid #e1e8eb;
}

.step-card .input-group input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--scc-green);
    cursor: pointer;
    margin: 0;
}

.step-card .input-group label {
    margin: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

/* Buttons and dynamic fields in form */
.grade, .labo {
    color: var(--scc-red);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: var(--scc-red-light);
    border-radius: var(--scc-radius-sm);
    margin-top: 10px;
}

.grade:hover, .labo:hover {
    background: #ffd8db;
}

.conds, .conds-speaker {
    margin-top: 20px;
    background: #f8fafc;
    border-radius: var(--scc-radius-sm);
    padding: 20px;
    border: 1px dashed rgba(10, 61, 98, 0.15);
}

.speaker-field {
    margin-bottom: 16px;
}

.speaker-field:last-child {
    margin-bottom: 0;
}

/* old direction nav */
.direction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.direction .btn-step-nav {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}


/* ==========================================================================
   MODALS AND DIALOGS
   ========================================================================== */
.modal-content {
    border-radius: var(--scc-radius-md);
    border: none;
    box-shadow: var(--scc-shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: var(--scc-blue);
    color: #ffffff;
    border-bottom: none;
    padding: 20px 24px;
}

.modal-header h4, .modal-header h5 {
    color: #ffffff !important;
    font-weight: 800;
}

.modal-header .close {
    color: #ffffff;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    color: #43545b;
    line-height: 1.7;
}

.modal-footer {
    border-top: none;
    padding: 16px 24px 24px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer-shell {
    background: var(--scc-blue-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 40px;
    border-top: 5px solid var(--scc-green);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 20px 0;
}

.footer-column p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--scc-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy .event-meta-badge {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .main-content-layout {
        grid-template-columns: 1fr;
    }

    /* Tablet: keep horizontal stepper, just shrink circles */
    .wizard-steps {
        padding: 0 4px;
    }

    .step-pill span {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .wizard-steps::before,
    .wizard-steps::after {
        top: 18px;
        left: calc(4px + 18px);
        right: calc(4px + 18px);
    }

    .event-banners-grid {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .top-patronage-bar {
        flex-direction: column;
    }

    .patronage-left {
        justify-content: center;
        padding: 20px;
    }

    .patronage-right {
        padding: 25px 20px;
        text-align: center;
        justify-content: center;
    }

    .patronage-right::before {
        display: none;
    }

    .patronage-fr {
        border-bottom: none;
    }

    .circle-frame {
        width: 300px;
        height: 300px;
    }

    /* Mobile: switch stepper to 2-row layout */
    .wizard-steps {
        flex-wrap: wrap;
        gap: 12px;
        padding: 0;
    }

    .wizard-steps::before,
    .wizard-steps::after {
        display: none;
    }

    .step-pill {
        flex: 0 0 calc(33.33% - 8px);
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        background: #f5f8f7;
        border: 2px solid #e1e7ea;
        border-radius: 12px;
        padding: 10px 14px;
    }

    .step-pill.active {
        background: var(--scc-red-light);
        border-color: var(--scc-red);
    }

    .step-pill.done {
        background: var(--scc-green-light);
        border-color: var(--scc-green);
    }

    .step-pill span {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        flex-shrink: 0;
        box-shadow: none;
    }

    .step-pill.active span {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(200, 29, 37, 0.3);
    }

    .step-pill small {
        white-space: normal;
        text-align: left;
        font-size: 0.72rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .registration-card {
        padding: 25px;
    }
}
