/* =========================================
   1. VARIABLES & RESET (BASE)
   ========================================= */
:root {
    --dark-blue: #1a202c; /* Bleu nuit profond */
    --gold: #D4AF37;      /* Or métallique */
    --gold-hover: #b5952f;
    --white: #ffffff;
    --overlay-color: rgba(20, 25, 40, 0.85); /* Filtre sombre */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Défilement fluide */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-blue);
    color: var(--white);
    line-height: 1.6;
}

/* =========================================
   2. HEADER / NAVIGATION
   ========================================= */
.main-header {
    background-color: rgba(26, 32, 44, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- NOUVEAU STYLE POUR LE LOGO DANS LE MENU --- */

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre l'image et le texte */
    text-decoration: none;
    color: var(--white);
}

.nav-logo {
    height: 75px; /* Taille contenue pour la barre de menu */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Ajustement pour que le texte soit beau à côté */
.logo-text {
    font-size: 1.2rem; /* Un peu plus petit que tout à l'heure */
    margin: 0;
}

.gold-text {
    color: var(--gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

.btn-login {
    border: 1px solid var(--gold);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--gold) !important;
}

.btn-login:hover {
    background-color: var(--gold);
    color: var(--dark-blue) !important;
}

/* =========================================
   3. HERO SECTION (GRANDE IMAGE)
   ========================================= */
.hero-section {
    height: 100vh; /* Prend tout l'écran */
    width: 100%;
    /* Image temporaire - À remplacer par votre image locale plus tard */
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    margin-top: 60px; /* Pour compenser le header fixe */
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 20rem;
    color: #e2e8f0;
    text-transform: uppercase;
}

/* =========================================
   4. BOUTONS GÉNÉRAUX
   ========================================= */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: inline-block;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--dark-blue);
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--gold);
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-blue);
}

/* =========================================
   5. SECTION FORMULAIRE (Votre ajout)
   ========================================= */
.inscription-section {
    background-color: #0f1218; /* Encore plus sombre pour le contraste */
    padding: 6rem 1rem;
    text-align: center;
    border-top: 1px solid #333;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #1a202c;
    padding: 3rem;
    border: 1px solid var(--gold);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); /* Ombre plus marquée */
    position: relative;
}

/* Petit effet décoratif doré en haut du formulaire */
.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #fff;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--gold);
    outline: none;
    background: #353f52;
}

/* =========================================
   6. ALERTS & MESSAGES
   ========================================= */
.alert-success {
    background-color: var(--gold);
    color: var(--dark-blue);
    padding: 1rem 2rem;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid #fff;
}
/* =========================================
    7. SECTION FORMATIONS
   ========================================= */
.formations-section {
    padding: 5rem 1rem;
    background-color: var(--dark-blue);
    position: relative;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #a0aec0;
    margin-bottom: 4rem;
    font-style: italic;
}

/* Grille Responsive */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style de la Carte */
.formation-card {
    background: #151922;
    border: 1px solid #2d3748;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.formation-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card-header {
    padding: 2rem;
    background: linear-gradient(to bottom, #1a202c, #151922);
    border-bottom: 1px solid #2d3748;
    text-align: center;
}

.card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-top: 1rem;
}

/* Badges (Niveaux) */
.badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 50px;
    letter-spacing: 1px;
    font-weight: bold;
}

.badge-gold {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.badge-silver {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid #718096;
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.specs-list {
    list-style: none;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #cbd5e0;
}

.specs-list li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2d3748;
}

.card-desc {
    font-size: 0.95rem;
    color: #a0aec0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Mots-clés / Modules */
.modules-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.modules-preview span {
    font-size: 0.75rem;
    background: #2d3748;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-card {
    margin-top: auto; /* Pousse le bouton vers le bas */
    text-align: center;
    padding: 12px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-card:hover {
    background: var(--gold);
    color: var(--dark-blue);
}

/* =========================================
    8. PIED DE PAGE (FOOTER)
   ========================================= */
.main-footer {
    background-color: #000;
    color: #a0aec0; /* Gris clair pour ne pas agresser l'œil */
    padding: 1.5rem 0;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between; /* Pousse les éléments aux extrémités */
    align-items: center;
    flex-wrap: wrap; /* Pour que ça passe bien sur mobile */
    gap: 1rem;
}

.footer-right {
    text-align: right;
    font-weight: 500;
    color: var(--gold); /* On met l'admin en doré ou blanc selon votre goût */
}

/* Sur mobile, on centre tout pour que ce soit plus joli */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-right {
        text-align: center;
    }
}