:root {
    --gold: #cba76a;
    --gold-dim: rgba(203, 167, 106, 0.7);
    --blue-night: #0a0e17;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--white); 
    background-color: #1a120b;
    line-height: 1.6;
}

/* --- HEADER RÉPARÉ --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; /* Légèrement réduit pour plus de finesse */
    
    /* L'effet de transparence et de flou */
    background: rgba(26, 18, 11, 0.75); /* Couleur de fond semi-transparente */
    backdrop-filter: blur(12px); /* Floute ce qui passe en dessous */
    -webkit-backdrop-filter: blur(12px); /* Compatibilité Safari */
    
    /* Optionnel : une fine bordure en bas pour délimiter proprement */
    border-bottom: 1px solid rgba(203, 167, 106, 0.1); 
    
    transition: all 0.3s ease;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-header {
    height: 40px; /* Taille du logo blanc dans le header */
    width: auto;
}

.site-header nav {
    display: flex;
    gap: 25px; /* Espace entre Ecoles, Bals, Cours */
}

.site-header nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.site-header nav a:hover {
    color: var(--gold);
}

/* --- LOGO COULEUR (HERO) --- */
.hero-logo {
    width: 250px; /* Taille du logo couleur au-dessus du titre */
    margin-bottom: 20px;
}

/* --- SCROLLING FLUIDE --- */
html {
    scroll-behavior: smooth; /* Active le défilement doux pour toute la page */
}


.site-header.scrolled {
    background: rgba(10, 14, 23, 0.95); /* Fond sombre semi-opaque */
    backdrop-filter: blur(10px); /* Effet de flou moderne */
    border-bottom: 1px solid rgba(203, 167, 106, 0.2);
}

/* --- HERO & CENTRAGE (RÉPARÉ) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10%;
	padding-top: 80px; /* Compense la hauteur du header pour que le contenu ne soit pas masqué au chargement */
}


/* --- HERO & CENTRAGE (RÉPARÉ) --- */
.hero.small {
    height: auto; /* Changez 50vh en auto pour éviter l'écrasement sur petit écran */
    min-height: 400px;
    padding-top: 140px; /* Dégagement de base pour le header */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- AJUSTEMENT MOBILE SPÉCIFIQUE --- */
@media (max-width: 768px) {
    .hero.small {
        padding-top: 180px; /* On augmente l'espace pour que le logo ne touche plus le header */
        min-height: 350px;
    }
    
    .hero-logo {
        width: 200px; /* On réduit légèrement la taille du logo sur mobile pour gagner de la place */
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: 2.2rem; /* On adapte le titre pour éviter qu'il ne pousse tout vers le haut */
    }
}


.hero-content {
    max-width: 900px;
    margin-top: -50px; /* Réduit l'espace au-dessus du titre */
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--gold);
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* --- BOUTONS --- */
.btn {
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.btn.primary { background: var(--gold); color: black; border: 1px solid var(--gold); }
.btn.secondary { border: 1px solid var(--gold); color: var(--gold); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); opacity: 0.9; }

/* --- FILTRES (STYLISÉS) --- */
.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--gold-dim);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gold);
    color: black;
    border-color: var(--gold);
}

/* --- SECTIONS & CARTES --- */
.section { padding: 80px 10%; max-width: 1200px; margin: 0 auto; }
.card-fullwidth {
    background: rgba(255, 255, 255, 0.04);
    padding: 35px;
    border-radius: 16px;
    margin-bottom: 20px;
    border-left: 4px solid var(--gold);
    text-align: left;
}

.card-links a {
    color: var(--gold);
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
}
.card-links a:hover { border-bottom-color: var(--gold); }

.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrage horizontal */
    text-align: center;
    padding: 80px 20px;
    gap: 20px;
}

ul {
  list-style-type: none;
}

/* --- PREMIUM FORM COMPLETE VISUAL --- */
.premium-form {
    width: 100%;
    max-width: 700px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-intro { color: rgba(255,255,255,0.8); margin-bottom: 10px;}

.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group { flex: 1; }

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-group .required { color: #ff6b6b; margin-left: 2px; }

.premium-form input:not([type="checkbox"]),
.premium-form textarea,
.premium-form select {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

/* Effet au survol */
.premium-form input:hover, .premium-form textarea:hover, .premium-form select:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(203, 167, 106, 0.3);
}

/* Effet Halo doré au focus (comme demandé) */
.premium-form input:focus, .premium-form textarea:focus, .premium-form select:focus {
    outline: none;
    background: rgba(26, 18, 11, 0.8);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(203, 167, 106, 0.3);
}

/* Style spécifique pour le select (flèche dorée) */
.premium-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cba76a' d='M6 8.825L1.175 4 2.575 2.6l3.425 3.425L9.425 2.6 10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Ciblage spécifique du champ message par son ID */
#message {
    min-height: 150px; /* Définit une hauteur minimale de base */
    padding-top: 12px; /* Ajuste l'espacement intérieur pour le texte */
    resize: vertical;  /* Permet à l'utilisateur d'agrandir la zone, mais uniquement en hauteur */
}

/* Consentement checkbox */
.consent-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.consent-group input[type="checkbox"] {
    width: 18px; height: 18px;
    cursor: pointer;
    accent-color: var(--gold);
}
.consent-group label { margin-bottom: 0; color: rgba(255,255,255,0.7); cursor: pointer;}

/* Gestion des erreurs */
.form-group.has-error input, .form-group.has-error textarea {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}
.error-msg {
    color: #ff6b6b;
    font-size: 0.75rem;
    margin-top: 5px;
    min-height: 1em;
}

/* Zone de statut globale */
.form-status {
    width: 100%; max-width: 700px;
    padding: 15px; border-radius: 8px;
    margin-bottom: 20px; text-align: center;
    display: none; /* Caché par défaut */
}
.form-status.success { display: block; background: rgba(107, 255, 131, 0.1); border: 1px solid #6bff83; color: #6bff83; }
.form-status.error { display: block; background: rgba(255, 107, 107, 0.1); border: 1px solid #ff6b6b; color: #ff6b6b; }

.cf-turnstile {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center; /* Pour le centrer si ton formulaire est centré */
}

/* Bouton d'envoi avec loader */
.btn-submit {
    align-self: center; min-width: 200px;
    position: relative;
    display: flex; justify-content: center; align-items: center;
}
.btn-submit.loading span { opacity: 0; }
.btn-submit.loading .loader { display: block; }

.loader {
    display: none; width: 20px; height: 20px;
    border: 3px solid rgba(0,0,0,0.1); border-top-color: black;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile adaptation */
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}


footer {
    padding: 60px 20px;
    text-align: center; /* Centre le texte */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

footer a:hover {
    color: var(--gold-bright);
    text-decoration: underline;
}

/* --- PARTICULES --- */
#particles-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.particle {
    position: absolute;
    top: 0; /* Important : on part de 0 pour que translate3d gère tout */
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    /* On dit au navigateur de préparer la carte graphique */
    will-change: transform, opacity;
    /* Empêche les micro-saccades sur Chrome mobile */
    backface-visibility: hidden;
}