/* Définition des couleurs personnalisées */
:root {
    --bleu-turquoise: #40e0d0;
    --or: #ffd700;
    --rose-raquette: #ff69b4;
    --fond-clair: #ffffff;
    --texte-sombre: #333333;
}

/* Importation des polices Google Fonts et de la police Fiolex Girls */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@400;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/fiolex-girls');

/* Styles généraux du corps de la page */
body {
    font-family: 'Lato', sans-serif;
    color: var(--texte-sombre);
    margin: 0;
    line-height: 1.6;
    text-align: center;
    background-color: var(--fond-clair);
}

/* Styles pour la barre de navigation */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo-container {
    padding-left: 20px;
}

.logo {
    width: 80px;
}

nav {
    padding-right: 20px;
}

nav .nav-button {
    text-decoration: none;
    color: var(--texte-sombre);
    font-weight: bold;
    margin-left: 20px;
    padding: 10px 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

nav .nav-button:hover {
    border-color: var(--bleu-turquoise);
    color: var(--bleu-turquoise);
}

/* Styles pour le diaporama (carrousel) */
#slideshow-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding-top: 80px;
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: -1;
}

.slideshow-image.active {
    opacity: 1;
}

.slideshow-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--or);
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5em; /* Un peu plus grand pour l'élégance */
    margin-bottom: 10px;
}
h2 {
    font-family: 'Playfair Display', serif;
    color: var(--texte-sombre);
    font-size: 1.5em;
    background-color: var(--bleu-turquoise);
    padding: 15px 30px;
    border-radius: 10px;
    display: inline-block;
    color: var(--fond-clair);
}

/* Styles pour la section des photos */
#photos {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
    padding: 10px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid var(--bleu-turquoise);
    border-radius: 10px;
}

/* Styles pour diversifier la taille des photos */
.photo-item-large {
    grid-row: span 2;
    grid-column: span 2;
}

.photo-item-wide {
    grid-column: span 2;
}

.photo-item-tall {
    grid-row: span 2;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.05);
}

/* Styles pour le formulaire RSVP */
#rsvp-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.rsvp-content {
    background-color: var(--rose-raquette);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    position: relative;
    height: 80vh;
}

.rsvp-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

/* Style de la section Plan */
#plan {
    padding: 60px 20px;
    background-color: var(--fond-clair);
    text-align: center;
}

/* Conteneur pour rendre la carte "Responsive" (16:9) */
.map-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio pour garder la carte proportionnelle */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 30px auto;
    border: 5px solid var(--bleu-turquoise); /* Rappel de votre couleur de thème */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Bouton pour ouvrir Maps directement */
.map-actions {
    margin-top: 25px;
}

.map-actions .nav-button {
    background-color: var(--or);
    color: var(--texte-sombre);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.map-actions .nav-button:hover {
    transform: scale(1.05);
    background-color: var(--bleu-turquoise);
    color: white;
}
/* --- MODIFICATIONS DU FOOTER ICI --- */

/* --- SECTION FOOTER : L'HORLOGE ET LE DÉCOMPTE --- */

footer {
    background-color: var(--fond-clair);
    padding: 60px 20px;
    border-top: 1px solid #eee;
}

/* Le conteneur qui aligne l'image et le texte */
footer div:first-of-type {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; 
    flex-wrap: nowrap; /* Garde l'alignement côte à côte sur ordinateur */
    max-width: 1100px;
    margin: 0 auto;
}

.footer-icon {
    width: 250px !important;  /* On impose une belle taille */
    height: 250px !important; /* On force la hauteur pour garder le cercle parfait */
    flex-shrink: 0;           /* EMPÊCHE L'ÉCRASEMENT : C'est la ligne magique ! */
    object-fit: contain;      
    display: block;
}

#countdown-timer {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;         
    color: var(--or);
    font-weight: bold;
    margin: 0;
    text-align: left;
    line-height: 1.1;
    min-width: 350px;         /* Donne assez de place au texte */
}

/* --- ADAPTATION POUR LES TÉLÉPHONES --- */
@media (max-width: 850px) {
    footer div:first-of-type {
        flex-direction: column; /* L'horloge passe au-dessus sur mobile */
        gap: 20px;
    }

    .footer-icon {
        width: 180px !important;
        height: 180px !important;
    }

    #countdown-timer {
        font-size: 2.2em;
        text-align: center;
        min-width: auto;
    }
}/* --- FIN DES MODIFICATIONS DU FOOTER --- */

/* Styles pour la modale des images */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0.1)} 
    to {transform: scale(1)}
}

.close-modal-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-modal-button:hover,
.close-modal-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}s
