/* =====================================================
   CHARTE GRAPHIQUE TKS – VARIABLES GLOBALES
===================================================== */
:root {
    --tks-blue: #0b4f7d;
    --tks-orange: #f36f3a;
    --tks-dark: #0f172a;
    --tks-light: #f8f9fa;
    --tks-white: #ffffff;
}

/* =====================================================
   BASE GÉNÉRALE
===================================================== */
body {
    background-color: var(--tks-light);
    color: #212529;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--tks-blue) !important;
}

.card {
    border-radius: 0.75rem;
}

/* =====================================================
   BOUTONS – ALIGNÉS TKS
===================================================== */
.btn-primary {
    background-color: var(--tks-blue);
    border-color: var(--tks-blue);
}

.btn-primary:hover {
    background-color: #083a5c;
    border-color: #083a5c;
}

.btn-warning {
    background-color: var(--tks-orange);
    border-color: var(--tks-orange);
    color: #fff;
}

.btn-warning:hover {
    background-color: #d85f2f;
    border-color: #d85f2f;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* =====================================================
   BACKGROUND SLIDER
===================================================== */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation:
        fadeSlider 24s infinite,
        zoomHero 24s infinite;
}

.hero-bg.bg1 {
    background-image: url("/images/hero/hero3.png");
    animation-delay: 0s;
}

.hero-bg.bg2 {
    background-image: url("/images/hero/hero4.png");
    animation-delay: 8s;
}

.hero-bg.bg3 {
    background-image: url("/images/hero/hero1.png");
    animation-delay: 16s;
}

/* =====================================================
   OVERLAY HERO
===================================================== */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.92),
        rgba(11, 79, 125, 0.65)
    );
    z-index: 1;
}

/* .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.82),
        rgba(11, 79, 125, 0.5)
    );
    z-index: 1;
} */

/* =====================================================
   ANIMATIONS HERO
===================================================== */
@keyframes fadeSlider {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    30% {
        opacity: 1;
    }
    35% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes zoomHero {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* =====================================================
   HERO CONTENT
===================================================== */
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--tks-white);
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 1.25rem;
    padding: 42px;
}

/* =====================================================
   HERO CARD – EFFETS DE SURVOL PREMIUM
===================================================== */
.hero-hover {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.hero-hover:hover {
    transform: translateY(-8px);
    border-color: rgba(243, 111, 58, 0.6);
    box-shadow:
        0 25px 60px rgba(11, 79, 125, 0.35),
        inset 0 0 0 1px rgba(243, 111, 58, 0.4);
}

/* Effet lumineux subtil */
.hero-hover::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(243, 111, 58, 0.15),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.hero-hover:hover::before {
    opacity: 1;
}

/* =====================================================
   CARTES / ÉTAPES
===================================================== */
/* .step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(11, 79, 125, 0.25);
} */

.step-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(243, 111, 58, 0.4);
    box-shadow:
        0 22px 50px rgba(11, 79, 125, 0.3),
        inset 0 0 0 1px rgba(243, 111, 58, 0.25);
}

.step-card i {
    color: var(--tks-blue);
}

.step-border {
    border: 1px solid rgba(11, 79, 125, 0.25); /* bleu TKS */
}

/* =====================================================
   FALLBACK NAVIGATEURS
===================================================== */
@supports not (backdrop-filter: blur(8px)) {
    .hero-card {
        background: rgba(15, 23, 42, 0.88);
    }
}

/* =====================================================
   RESPONSIVE MOBILE
===================================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero-card {
        padding: 28px;
        backdrop-filter: none;
        background: rgba(15, 23, 42, 0.9);
    }

    .hero-card h1 {
        font-size: 1.9rem;
        line-height: 1.3;
    }

    .hero-bg {
        animation-duration: 36s;
    }

    /* Désactivation hover mobile */
    .hero-hover:hover {
        transform: none;
        box-shadow: none;
    }
}

.section-title {
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
    background-image: linear-gradient(
        90deg,
        var(--tks-blue),
        var(--tks-orange)
    );
    background-repeat: no-repeat;
    background-size: 60% 4px; /* largeur du trait (PAS 100%) */
    background-position: center bottom;
}

h2 {
    letter-spacing: -0.02em;
}
.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

.form-control,
.form-select {
    border-radius: 0.6rem;
    padding: 0.65rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tks-blue);
    box-shadow: 0 0 0 0.15rem rgba(11, 79, 125, 0.2);
}

.text-primary {
    color: var(--tks-blue) !important;
}

/* ================================
   FORMULAIRE INSCRIPTION – PREMIUM
================================ */

.register-card {
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow:
        0 20px 40px rgba(11, 79, 125, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.register-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 30px 60px rgba(11, 79, 125, 0.25),
        0 10px 25px rgba(243, 111, 58, 0.15);
}

.form-control,
.form-select {
    border-radius: 0.75rem;
    border: 1px solid #dee2e6;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tks-blue);
    box-shadow: 0 0 0 0.2rem rgba(11, 79, 125, 0.15);
}
.register-card h6 {
    position: relative;
    padding-left: 12px;
}

.register-card h6::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--tks-blue), var(--tks-orange));
    border-radius: 2px;
}

.register-card .btn-warning {
    box-shadow: 0 10px 25px rgba(243, 111, 58, 0.35);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.register-card .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(243, 111, 58, 0.45);
}
/* ================================
   TITRE INSCRIPTION – EFFET PREMIUM
================================ */

.register-title {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    letter-spacing: -0.02em;
}

/* Soulignement dégradé */
.register-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 55%;
    height: 4px;
    background: linear-gradient(90deg, var(--tks-blue), var(--tks-orange));
    border-radius: 2px;
    transition: width 0.35s ease;
}

/* Hover élégant */
.register-title:hover::after {
    width: 100%;
}
.register-title:hover {
    text-shadow: 0 6px 20px rgba(11, 79, 125, 0.25);
}
/* ================================
   BACKGROUND FORMULAIRE – IMAGE
================================ */

.register-bg {
    background-image: url("/images/register-bg.jpg"); /* remplace par l'une des images ci-dessus */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.register-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    /* overlay léger TKS */
    background: rgba(15, 23, 42, 0.8), rgba(11, 79, 125, 0.6);
    mix-blend-mode: overlay;
}

/* Contenu au-dessus du fond */
.register-bg > * {
    position: relative;
    z-index: 1;
}
.register-card {
    backdrop-filter: blur(6px);
}

.badge {
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

/* ===============================
   SELECT2 = EXACT FORM-CONTROL
================================ */

.select2-container {
    width: 100% !important;
}

/* Champ Select2 */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    min-height: 38px;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.75rem;
    background-color: #fff;
    display: flex;
    align-items: center;
}

/* Texte */
.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    padding: 0;
    margin: 0;
    line-height: 1.5;
    color: #212529;
}

/* Flèche */
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 100%;
    right: 8px;
}

/* Focus identique Bootstrap */
.select2-container--default.select2-container--focus
    .select2-selection--single {
    border-color: var(--tks-blue);
    box-shadow: 0 0 0 0.2rem rgba(11, 79, 125, 0.25);
}

/* Corrige le décalage vertical */
.select2-container--default {
    vertical-align: middle;
}
.select2-container--default .select2-selection--single {
    font-size: 1rem;
}

/* ================= ORGANISATEUR PUBLIC ================= */

.organisateur-banner {
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.organisateur-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05);
}

.organisateur-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
}

.organisateur-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    background: #fff;
}

.policy-content {
    line-height: 1.8;
    font-size: 1rem;
}
