/* static/style.css */

/* --- 0. VARIABLES & RESET --- */
:root {
    /* Palette de couleurs */
    --primary-dark: #0f131a;      
    --primary-light: #ffffff;
    --gold-main: #f0c63e;         
    --gold-light: #f3e5ab;        
    --text-dark: #1a1a2e;
    --text-grey: #64748b;
    
    /* Polices */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #fcfcfc;
    overflow-x: hidden; 
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 1. HEADER & NAVIGATION --- */
header {
    background:var(--primary-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold-main);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--gold-main); }

.nav-links .nav-btn {
    border: 1px solid var(--gold-main);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--gold-main);
}
.nav-links .nav-btn:hover {
    background: var(--gold-main);
    color: var(--primary-dark);
}

/* --- 2. HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-dark);
    padding: 100px 20px 20px 20px; 
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #1e293b 0%, #0f131a 80%);
    z-index: 0;
}

.stars {
    position: absolute;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px; height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 4px white; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    font-weight: 400;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--gold-main);
    font-style: italic;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #cbd5e1;
    margin-bottom: 3rem;
    font-weight: 300;
    padding: 0 1rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; 
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.primary {
    background: var(--gold-main);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.cta-button.primary:hover {
    background: white;
    transform: translateY(-3px);
}

.cta-button.secondary {
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.cta-button.secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* --- 3. FEATURES & SERVICES --- */
.features {
    background-color: #f8fafc;
    padding: 5rem 5% 2rem 5%; 
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.subtitle {
    display: block;
    color: var(--gold-main);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-dark);
    margin-bottom: 3rem;
    font-weight: 400;
}

.section-title-white {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-light);
    margin-bottom: 3rem;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold-main);
    transition: transform 0.3s ease; 
    /* Permet aux SVG personnalisés d'hériter de la taille et couleur */
    display: flex;
    justify-content: center;
}

.feature-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* --- 4. GALLERY --- */
.gallery {
    background-color: #f8fafc; 
    color: var(--text-dark); 
    text-align: center;
    padding: 0 5% 5rem 5%; 
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery .section-title {
    color: var(--primary-dark);
}

.swiper {
    width: 100%;
    max-width: 850px;
    height: 450px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); 
    background-color: #000; 
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    text-align: left;
}

.slide-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold-main);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--gold-main) !important;
}
.swiper-pagination-bullet-active {
    background-color: var(--gold-main) !important;
}

/* --- 5. A PROPOS --- */
.about {
    background: url('images/background.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-glass-card {
    background: rgba(15, 19, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.subtitle-gold {
    display: block;
    color: var(--gold-main);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.divider {
    width: 60px; height: 2px;
    background: var(--gold-main);
    margin: 1.5rem auto;
}

/* --- 6. CONTACT FORM --- */
.contact-section {
    background: #fcfcfc;
    padding: 6rem 5%;
}
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

/* Grid System pour le formulaire */
.form-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile : 1 colonne par défaut */
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.span-full { grid-column: 1 / -1; }
.span-2 { grid-column: 1 / -1; } /* Mobile: prend tout */

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold-main);
    background: white;
}

/* Correction des Boutons Radio */
.radio-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.radio-inline, .radio-inline-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto; /* Distribution équitable de l'espace */
    background: #f8fafc;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    text-align: center;
}

.radio-inline:hover, .radio-inline-2:hover {
    border-color: var(--gold-main);
    background: white;
}

.radio-inline input, .radio-inline-2 input {
    width: auto;
    margin-right: 10px;
    margin-top: 0;
}

.submit-button {
    background: var(--primary-dark);
    color: white;
    width: 100%;
    padding: 1.2rem;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}
.submit-button:hover { background: var(--gold-main); color: var(--primary-dark); }

/* --- 6. FOOTER --- */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    margin-bottom: 2rem; /* Espace sous le logo */
}

/* Ajoute ce style pour contrôler la taille de l'image */
.footer-logo img {
    height: 60px; /* Ajuste cette valeur selon la taille désirée (souvent un peu plus gros que le header) */
    width: auto;  /* Garde les proportions */
    display: block;
    margin: 0 auto; /* Centre l'image si elle ne l'est pas déjà */
}

.footer-links p {
    margin: 0.8rem 0;
    color: #94a3b8;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold-main);
}

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #64748b;
}

/* L'input en erreur (bordure rouge) */
.input-error {
    border-color: #ef4444 !important; /* Rouge vif */
    background-color: #fff5f5 !important; /* Fond très légèrement rouge */
    animation: shake 0.4s ease-in-out; /* Petite vibration */
}

/* Le texte du message d'erreur sous l'input */
.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 5px;
    font-weight: 500;
    display: block;
}

/* Animation de vibration pour attirer l'attention */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Ajustement pour les messages flash de succès (déjà présents mais améliorés) */


.flash-message {
    opacity: 1 !important;
    transform: none !important;
    background-color: rgba(0, 0, 0, 0.8) !important; /* couleur par défaut */
}


.flash-success {
    background-color: #16a34a !important;
}

.flash-error {
    background-color: #dc2626 !important;
}
.flash-messages {
    position: fixed;
    top: 100px; 
    right: 20px; 
    z-index: 2000;
    width: auto;
    max-width: 500px;
}

.flash-message button {
    background: none;
    border: none;
    color: white;
    margin-left: 12px;
    font-size: 1.1rem;
    cursor: pointer;
}
.flash-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    margin-bottom: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex; 
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Desktop & Tablette : Formulaire en 2 colonnes */
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .span-2 {
        grid-column: span 2; /* S'étend sur 2 colonnes */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .logo img { height: 35px; }
    .hero-content { padding: 0; }
    
    .swiper {
        height: 300px;
        max-width: 100%;
        border-radius: 0;
    }
    .swiper-button-next, .swiper-button-prev { display: none; }

    .about { background-attachment: scroll; }
    .about-glass-card { padding: 2rem 1.5rem; }

    .contact-form { padding: 1.5rem; }
    
    /* Sur très petit écran, on empile les radios pour éviter qu'ils soient illisibles */
    @media (max-width: 450px) {
        .radio-options { flex-direction: column; }
    }
}

.burger {
    display: none;
    cursor: pointer;
}



.burger div {
    width: 20px;        /* Largeur : 25px -> 22px (plus étroit) */
    height: 3px;        /* Épaisseur : 3px -> 2px (plus fin) */
    margin: 4px;        /* Espacement : 5px -> 4px */
    background-color: var(--gold-main);
    transition: all 0.3s ease;
}

/* Version Mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* Empêche le scroll horizontal */
    }

    /* On affiche le burger */
    .burger {
        display: block;
        z-index: 2001; /* Au dessus du menu */
    }

    /* On transforme la liste en panneau latéral */
    .nav-links {
        display: flex; /* On réactive le display */
        position: fixed;
        right: 0px;
        top: 0px;
        height: 100vh;
        background-color: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Centre les liens verticalement */
        width: 100%; /* Prend tout l'écran ou 80% selon préférence */
        transform: translateX(100%); /* Caché par défaut vers la droite */
        transition: transform 0.5s ease-in;
        z-index: 2000;
        padding-top: 60px;
    }

    .nav-links li {
        opacity: 0; /* Pour l'animation d'apparition */
        margin: 20px 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;  /* Taille : 1.5rem -> 1.1rem (environ 18px) */
        letter-spacing: 1px; /* Plus gros pour le tactile */
    }

    /* Classe active ajoutée par JS */
    .nav-active {
        transform: translateX(0%);
    }

    /* Animation des liens */
    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0px); }
    }

    /* Transformation du Burger en Croix (X) */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--gold-main);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: var(--gold-main);
    }
}