/* =========================
   VARIABLES COULEURS
========================= */
:root {
    --blue-dark: #0A1D37;
    --gold: #F4C430;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --text-dark: #222;
}

/* =========================
   RESET & GLOBAL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    background-color: var(--blue-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gold);
}

.navbar-brand:hover {
    color: var(--white);
}

.nav-link {
    margin-left: 20px;
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

/* =========================
   NAVBAR – ALIGNEMENT HORIZONTAL
========================= */
.navbar .container {
    display: flex;
    align-items: center;
}

.navbar .ms-auto {
    display: flex;
    align-items: center;
}

.navbar .nav-link {
    margin-left: 25px;
    padding: 8px 0;
    white-space: nowrap;
}

/* =========================
   SECTIONS GENERALES
========================= */
.section {
    padding: 80px 0;
}

.section h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 20px;
}

.section p {
    font-size: 1.05rem;
    color: #555;
}

/* =========================
   HERO (ACCUEIL)
========================= */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right,
            rgba(10, 29, 55, 0.95),
            rgba(10, 29, 55, 0.85));
    color: var(--white);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
}

.hero p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #f1f1f1;
}

/* =========================
   BOUTONS
========================= */
.btn-main {
    background-color: var(--gold);
    color: var(--blue-dark);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-main:hover {
    background-color: #d9ab1f;
    transform: translateY(-2px);
}

/* =========================
   CARTES (PROGRAMME)
========================= */
.card-custom {
    background-color: var(--white);
    padding: 30px 25px;
    border-radius: 22px;
    text-align: center;
    height: 100%;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
}

.card-custom h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 15px;
}

.card-custom p {
    font-size: 1rem;
    line-height: 1.6;
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* =========================
   IMAGE CANDIDATE
========================= */
.candidate-img {
    width: 100%;
    max-width: 360px;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.candidate-name {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
}

/* =========================
   GALERIE – FIX iPhone & Android
========================= */

.gallery-box {
    width: 100%;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Images jamais coupées */
.gallery-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.gallery-box img:hover {
    transform: scale(1.03);
}

/* Vidéos pareil */
.gallery-box video {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   FORMULAIRE CONTACT
========================= */
.contact-form {
    background-color: var(--white);
    padding: 35px 30px;
    border-radius: 22px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 0.15rem rgba(244, 196, 48, 0.3);
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: var(--blue-dark);
    color: var(--white);
    text-align: center;
    padding: 18px 0;
    font-size: 0.95rem;
    margin-top: 40px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section h1 {
        font-size: 2rem;
    }

    .nav-link {
        margin-left: 12px;
    }

    .navbar .ms-auto {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

    .navbar .nav-link {
        margin-left: 0;
    }
}