:root {
    --fond: #f9faf5;
    --dore: #cdaa42;
    --jaune: #F0E018;
    --dore-clair: #e6c875;
    --rouge: #E8413F;
    --rouge: #E8413F;
    --texte: #6A7D8A;
    --texte-clair: #555;
    --blanc: #ffffff;
    --noir: #000000;
    --gris-clair: #f5f5f5;
    --gris: #cdcdcc;
    --transition: all 0.3s ease;
    --ombre: 0 5px 15px rgba(0, 0, 0, 0.08);
    --ombre-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --brown: #594a42;
    --vert: #48AE90;
    --bleu: #125275;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--texte);
    background-color: var(--fond);
    scroll-behavior: smooth;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 1.1em;
}

.strong {
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
    font-weight: 600;
}

/* Solution principale pour l'overlap du menu fixe */
html {
    scroll-padding-top: 60px;
    /* Pour le scroll smooth */
}

section[id] {
    scroll-margin-top: 60px;
    /* Espace pour le menu fixe */
}

/* === NAVIGATION FIXE === */
nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 40px;
    box-shadow: var(--ombre);
    z-index: 1000;
    transition: var(--transition);
}

.double-line-height {
    line-height: 2em;
}

.justify-text {
    text-align: justify;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container img {
    height: 92px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--bleu);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--bleu);
}

/* .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dore);
    transition: var(--transition);
} */

.nav-links a:hover::after {
    width: 100%;
}

a.cta-nav {
    background-color: var(--bleu);
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 8px;
    font-weight: normal;
    transition: var(--transition);
}

a.cta-nav:hover {
    background-color: var(--bleu);
    transform: translateY(-2px);
}

a.cta-nav::after {
    display: none;
}

/* === BOUTON HAMBURGER === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.hamburger div {
    height: 3px;
    background-color: var(--rouge);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: var(--transition);
}

.mobile-menu a {
    color: var(--texte);
    text-decoration: none;
    font-weight: 500;
    margin: 0;
    padding: 8px 0;
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--dore);
}

.mobile-menu .cta-nav {
    margin-top: 15px;
}

/* === HEADER === */
header {
    /* height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 50px 20px 10px; */
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 0px 20px 10px;
}

.header-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    padding-top: 10px;
}

header h1 {
    padding-top: 100px;
    font-size: 2.6em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 5px 5px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    letter-spacing: 2px;
}

header p {
    font-size: 1.4em;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.cta-button {
    display: inline-block;
    background-color: var(--bleu);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    /*transition: var(--transition);
            box-shadow: 0 5px 15px rgba(205, 170, 66, 0.3);*/
    margin-top: 20px;
}

.cta-button:hover {
    background-color: var(--bleu);
    /*transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(205, 170, 66, 0.4);*/
}

/* === COMPTE À REBOURS === */
#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.time-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.time-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.time-box span {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 5px;
}

.time-box .label {
    font-size: 0.9em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === SECTIONS === */
section {
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 60px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    color: var(--bleu);
    font-weight: 600;
    margin-bottom: 50px;
    font-size: 2.2em;
    text-align: center;
    position: relative;
}

section h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--bleu);
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--vert);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.bg-1 {
    background-color: var(--fond);
}

.bg-2 {
    background: linear-gradient(180deg, var(--fond), #faf9f5);
}

.bg-3 {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/banner-2.jpg') center/cover fixed no-repeat;
    color: white;
}

.bg-3 h2 {
    color: white;
}

.bg-3 h2::after {
    background: var(--bleu);
}

.bg-4 {
    background: linear-gradient(135deg, var(--vert) 0%, var(--vert) 100%);
    color: white;
}

.bg-4 h2 {
    color: white;
}

.bg-4 h2::after {
    background: white;
}

.bg-5 {
    background-color: var(--gris-clair);
}

.bg-6 {
    background-color: #ffffff;
}

/* === CARTES === */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--ombre);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--ombre-hover);
}

.card-icon {
    background: var(--rouge);
    color: white;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    color: var(--rouge);
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
}

.card p {
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--texte);
}

.card-link {
    color: var(--dore);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    margin-top: auto;
}

.card-link:hover {
    color: var(--rouge);
    gap: 10px;
}

/* === LISTES === */
.objectifs ul,
.programme ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.objectifs li {
    margin-bottom: 20px;
    padding-left: 35px;
    padding-right: 35px;
    position: relative;
    font-size: 1.1em;
    color: var(--texte);
}

.programme li {
    margin-bottom: 20px;
    padding-left: 35px;
    padding-right: 35px;
    position: relative;
    font-size: 1.1em;
}

.objectifs li::before,
.programme li::before {
    content: "✓";
    color: var(--vert);
    position: absolute;
    left: 0;
    font-size: 1.5em;
    font-weight: bold;
    top: -7px;
}

.programme li::before {
    content: "●";
    top: -10px;
}

/* === CONTACT === */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--ombre);
    transition: var(--transition);
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombre-hover);
}

.contact-card i {
    font-size: 2.5em;
    color: var(--bleu);
    margin-bottom: 20px;
}

.contact-card h3 {
    color: var(--vert);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.contact-card p {
    color: var(--texte);
    margin-bottom: 10px;
}

.contact-card a {
    color: var(--texte);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--vert);
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 60px 20px;
    background: #222222;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 70px;
    filter: brightness(0) invert(1);
    margin: 0 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--vert);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--vert);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 30px;
}

/* === ANIMATIONS === */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* === FORMULAIRE D'INSCRIPTION === */
.form-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--fond) 0%, #f0f2f5 100%);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: var(--ombre);
    overflow: hidden;
}

.form-header {
    background: var(--rouge);
    color: white;
    padding: 30px;
    text-align: center;
}

.form-header h2 {
    color: white;
    margin-bottom: 10px;
}

.form-header h2::after {
    background: var(--dore);
}

.form-header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.form-body {
    padding: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--brown);
}

.form-group label.required::after {
    content: " *";
    color: var(--rouge);
}

.form-control {
    padding: 12px 15px;
    border: 1px solid var(--gris);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    border-color: var(--dore);
    outline: none;
    box-shadow: 0 0 0 3px rgba(205, 170, 66, 0.2);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

/* .radio-option {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .radio-option input {
            width: auto;
        } */

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background: var(--bleu);
    color: white;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 1.0em;
    cursor: pointer;
}

.btn-secondary {
    background: var(--gris);
    color: var(--texte);
    border: 2px solid var(--gris);
    padding: 6px 22px;
    border-radius: 8px;
    font-size: 1.0em;
    cursor: pointer;
    text-decoration: none;
}

.form-footer {
    text-align: center;
    padding: 20px;
    background: var(--gris-clair);
    color: var(--texte-clair);
    font-size: 0.9em;
}

/* === DRAPEAUX === */
.flags-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.flags-container img {
    height: 80px;
    width: auto;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.flags-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    header h1 {
        font-size: 2.2em;
    }

    header p {
        font-size: 1.2em;
    }

    .time-box {
        min-width: 80px;
        padding: 15px 10px;
    }

    .time-box span {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    header {
        background-position-x: -374px;
    }

    nav {
        padding: 12px 20px;
    }

    .logo-container img {
        height: 55px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 1.1em;
    }

    .time-box {
        min-width: 70px;
        padding: 12px 8px;
    }

    .time-box span {
        font-size: 1.8em;
    }

    section {
        padding: 10px 20px;
    }

    section h2 {
        font-size: 1.8em;
        margin-top: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-body {
        padding: 30px 20px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    #countdown {
        gap: 10px;
    }

    .time-box {
        min-width: 60px;
        padding: 10px 5px;
    }

    .time-box span {
        font-size: 1.5em;
    }

    .time-box .label {
        font-size: 0.8em;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .flags-container {
        gap: 20px;
    }

    .flags-container img {
        height: 60px;
    }
}


/* === SWITCHER DE LANGUE === */
.language-switcher {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 0 20px;
}

.language-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    color: var(--texte);
    font-weight: 600;
    font-size: 0.75em;
    background: var(--gris-clair);
}

.language-link:hover {
    border-color: var(--vert);
    background: rgba(205, 170, 66, 0.1);
    /*transform: translateY(-2px);*/
    text-decoration: none;
}

.language-link.active {
    border-color: var(--vert);
    background: var(--vert);
    color: white;
}

.language-link.active:hover {
    color: white;
}

/* Version mobile */
.language-switcher-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    width: 100%;
    padding: 0 20px;
}

.language-switcher-mobile .language-link {
    /*width: 100%;*/
    height: auto;
    border-radius: 8px;
    padding: 8px 20px;
    border: 1px solid var(--gris);
    justify-content: flex-start;
    text-decoration: none;
    color: var(--texte);
    font-weight: 500;
}

.language-switcher-mobile .language-link:hover {
    border-color: var(--vert);
    background-color: rgba(205, 170, 66, 0.1);
    /*transform: none;*/
}

.language-switcher-mobile .language-link.active {
    border-color: var(--vert);
    background-color: var(--vert);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .language-switcher {
        display: none;
    }

    .language-switcher-mobile {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .language-switcher-mobile {
        display: none;
    }
}

.banner-decoration {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 6px;
    opacity: 0.8;
    background: var(--dore);
}

.invalid-feedback {
    color: var(--rouge);
    margin-top: .25rem;
}

/* Version sobre */
.alert-success {
    background-color: #f8fff8;
    border: 1px solid #2e8b57;
    border-left: 4px solid #2e8b57;
    color: #155724;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 0 auto 25px;
    max-width: 800px;
}

.alert-success::before {
    content: '✓';
    margin-right: 10px;
    font-weight: bold;
    color: #2e8b57;
}

[dir="rtl"] .alert-success::before {
    margin-right: 0;
    margin-left: 10px;
}