/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Thèmes clair et sombre */
:root {
    --bg-color: #f5f5f7; /* Fond clair */
    --text-color: #333; /* Texte sombre */
    --link-color: #555; /* Couleur des liens */
    --section-bg: #ffffff; /* Fond des sections */
    --footer-bg: #333; /* Fond du footer */
    --button-bg: #555; /* Bouton */
    --button-text: #ffffff; /* Texte des boutons */
    --footer-text-color: #ffffff; /* Texte du footer */
    --countdown-color: #ffffff; /* Couleur du compte à rebours */
}

.dark-theme {
    --bg-color: #1c1c1e; /* Fond sombre */
    --text-color: #f5f5f7; /* Texte clair */
    --link-color: #f5f5f7; /* Liens clairs */
    --section-bg: #2c2c2e; /* Fond des sections sombre */
    --footer-bg: #1c1c1e; /* Fond du footer sombre */
    --button-bg: #f5f5f7; /* Bouton clair */
    --button-text: #333; /* Texte des boutons */
    --footer-text-color: #f5f5f7; /* Texte du footer */
    --countdown-color: #f5f5f7; /* Couleur du compte à rebours */
}

/* Correction pour le texte du footer et du compteur */
#countdown, footer {
    color: var(--countdown-color) !important;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: var(--bg-color);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo {
    font-size: 2rem;
    font-family: 'Great Vibes', cursive;
    font-weight: bold;
    color: var(--text-color);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin: 0 1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    background: none;
    border: none;
}

.hamburger {
    display: none; /* Caché par défaut */
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    background: none;
    border: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    background: url('images/hero-background.jpg') no-repeat center center/cover; /* Image de fond */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

/* Si WebP est supporté, on l'utilise à la place du JPG */
@supports (background-image: url('images/hero-background.webp')) {
    .hero {
        background-image: url('images/hero-background.webp');
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Assombrir l'arrière-plan */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Great Vibes', cursive;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-content .btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.hero-content .btn:hover {
    background-color: #777; /* Gris plus foncé au survol */
}

/* 💖 Bouton d'animation des cœurs */
#button-container {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement si nécessaire */
    margin-top: 20px; /* Ajuste cette valeur pour bien le placer */
    width: 100%; /* S'assurer qu'il prend toute la largeur */
    position: relative;
    z-index: 2;
}



#loveButton {
    padding: 12px 24px;
    font-size: 1.2rem;
    background-color: pink;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

#loveButton:hover {
    background-color: rgb(255, 105, 180);
    transform: scale(1.05);
}

/* ❤️ Animation des cœurs */
.heart {
    position: fixed;
    font-size: 2rem;
    color: red;
    animation: float 5s linear forwards;
}

@keyframes float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-500px) scale(1.5);
    }
}

/* Style PAR DÉFAUT (Mobile first - petit) */
#loveButton {
    padding: 0.5rem 1rem;   /* Taille par défaut (petit - mobile) */
    font-size: 0.9rem;
}

/* Style pour TABLETTE (entre 481px et 768px) */
@media screen and (min-width: 481px) {
    #loveButton {
        padding: 0.75rem 1.5rem;  /* Un peu plus grand */
        font-size: 1rem;
    }
}

/* Style pour PC (769px et +) */
@media screen and (min-width: 769px) {
    #loveButton {
        padding: 1rem 2rem;   /* Taille la plus grande (PC) */
        font-size: 1.2rem;
    }
}



/* Section */
.section {
    padding: 4rem 2rem;
    background-color: var(--section-bg);
    text-align: center;
}

.section h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.section p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

footer {
    background-color: var(--footer-bg);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-color);
    font-size: 0.9rem;
}

footer a {
    color: var(--button-text);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Afficher le bouton hamburger sur mobile */
    }

    nav {
        display: none; /* Cacher le menu par défaut sur mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    nav.active {
        display: flex; /* Afficher le menu quand il est actif */
    }

    nav a {
        margin: 1rem 0;
        padding: 1rem;
        text-align: center;
    }
}

/* Style par défaut pour les écrans mobiles */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 0 auto; /* Centrer sur les écrans mobiles */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Style pour les écrans de grande taille */
@media (min-width: 769px) {
    .map-container {
        width: 600px;
        height: 450px;
        padding-bottom: 0;
        margin: 50px auto; /* Centrer et ajouter un peu de marge en haut et en bas */
    }

    .map-container iframe {
        width: 100%;
        height: 100%;
    }
}

/* Styles pour le compteur de temps */
#countdown {
    font-size: 2rem; /* Ajustez cette valeur pour augmenter ou diminuer la taille du texte */
    color: var(--text-color); /* Utilisez la couleur de texte définie dans les variables CSS */
    text-align: center;
    margin-top: 1rem; /* Ajoutez un peu d'espace en haut */
    font-weight: bold; /* Rendre le texte en gras */
}

/* Alignement des horaires et textes dans la liste */
#event-details ul {
    list-style: none; /* Supprime les puces */
    padding: 0;
    text-align: left; /* Aligne le texte à gauche */
}

#event-details ul {
    list-style: none; /* Supprime les puces par défaut */
    padding: 0;
    text-align: center; /* Centre le bloc */
}

#event-details ul li {
    display: flex;
    align-items: center;
    justify-content: center; /* Centre horizontalement */
    gap: 8px; /* Espace entre la puce et le texte */
}

#event-details ul li::before {
    content: "•"; /* Ajoute une puce personnalisée */
    color: white; /* Adapte la couleur si besoin */
    font-size: 1.2rem;
}

/* Styles pour le compteur */
#countdown {
    font-size: 2rem;
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--countdown-color) !important;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-family: 'Great Vibes', cursive;
    font-weight: bold;
    color: var(--text-color);
}

.logo-img {
    height: 80px; /* Ajuste la hauteur selon tes besoins */
    width: auto;
    margin-right: 10px;
}

/* Styles pour le carrousel */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.carousel-caption h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .carousel-item img {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 0.8rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
}





