 /* --- PALETTE DE COULEURS --- */
        :root {
            --marron-fonce: #3b2313;
            --orange-brule: #c05a12;
            --fond-clair: #fcfaf8;
            --fond-carte: #ffffff;
            --texte-gris: #555555;
        }

        /* --- STYLES DE BASE --- */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Montserrat', sans-serif;
            background-color: var(--fond-clair);
            color: var(--marron-fonce);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
        }
        h1, h2, h3, .font-serif {
            font-family: 'Playfair Display', serif;
            font-weight: 400;
        }

        /* --- CONTENEUR GLOBAL RESPONSIVE --- */
        .container {
            width: 100%; /* Prend toute la largeur peu importe l'écran */
            margin: 0 auto;
            background-color: var(--fond-clair);
        }

        /* --- SECTION HERO (Haut de page) --- */
        .hero {
            height: 100vh;
            width: 100%;
            background-image: linear-gradient(to bottom, rgba(59, 35, 19, 0.4), rgba(59, 35, 19, 0.9)), url('../image/file_000000004c9c72439ee9a4f2840735c8.png');
            background-size: cover;
            background-position: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: white;
            position: relative;
        }
        .hero-top { 
            font-size: clamp(0.7rem, 2vw, 0.9rem); 
            letter-spacing: 2px; 
            text-transform: uppercase; 
            margin-bottom: 20px;
        }
        /* Le titre s'adapte automatiquement à la taille de l'écran grace à clamp() */
        .hero-title { 
            font-size: clamp(3.5rem, 8vw, 6rem); 
            font-style: italic; 
            margin-bottom: 20px;
        }
        .scroll-down { 
            position: absolute; 
            bottom: 30px; 
            font-size: 0.8rem; 
            letter-spacing: 2px; 
            text-transform: uppercase; 
            opacity: 0.8;
            animation: bounce 2s infinite; /* Petite animation sympa */
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        /* --- CONTENU PRINCIPAL --- */
        .content { 
            max-width: 900px; /* Évite que le texte soit trop large sur un écran PC */
            margin: 0 auto; 
            padding: 60px 20px; 
            text-align: center; 
        }
        .intro-title { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 10px; color: var(--marron-fonce); }
        .intro-text { font-size: clamp(0.9rem, 2vw, 1.1rem); color: var(--texte-gris); margin-bottom: 40px; }

        /* --- STYLE DES CARTES D'INFORMATION (Nouveau) --- */
        .info-card {
            background-color: var(--fond-carte);
            border-radius: 15px;
            padding: 25px 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(192, 90, 18, 0.15); /* Bordure orange très douce */
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        /* Effet de soulèvement au survol de la souris */
        .info-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(192, 90, 18, 0.15);
        }

        /* --- GRILLES RESPONSIVES --- */
        .details-grid { 
            display: grid; 
            grid-template-columns: repeat(2, 1fr); /* Toujours 2 colonnes pour Date/Heure */
            gap: 20px; 
            margin-bottom: 20px; 
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .locations-grid {
            display: grid;
            grid-template-columns: 1fr; /* 1 colonne sur mobile */
            gap: 20px;
            margin-bottom: 50px;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Dès qu'on passe sur une tablette ou un PC */
        @media (min-width: 600px) {
            .locations-grid { grid-template-columns: repeat(3, 1fr); } /* 3 colonnes */
        }

        .detail-item { text-align: center; }
        .detail-icon { color: var(--orange-brule); font-size: 2rem; margin-bottom: 10px; }
        .detail-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--texte-gris); margin-bottom: 5px; }
        .detail-value { font-weight: 600; font-size: 1.1rem; }

        /* Dès qu'on passe sur une tablette ou un PC */
        @media (min-width: 600px) {
            .details-grid { grid-template-columns: 1fr 1fr; } /* 2 colonnes */
            .locations-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; } /* 3 colonnes */
        }

        .detail-item { text-align: center; padding: 15px; }
        .detail-icon { color: var(--orange-brule); font-size: 2rem; margin-bottom: 10px; }
        .detail-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--texte-gris); margin-bottom: 5px; }
        .detail-value { font-weight: 600; font-size: 1.1rem; }

        /* --- ÉLÉMENTS CENTRÉS SUR GRAND ÉCRAN --- */
        /* On limite la largeur de ces boites pour garder l'aspect "carte d'invitation" sur un ordinateur */
        .countdown-box, .rsvp-card, .ticket-card, .guestbook {
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* --- COMPTE A REBOURS --- */
        .countdown-box {
            background-color: var(--orange-brule);
            color: white;
            border-radius: 15px;
            padding: 30px 20px;
            margin-bottom: 50px;
            box-shadow: 0 10px 20px rgba(192, 90, 18, 0.2);
        }
        .countdown-title { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.5rem; margin-bottom: 20px; }
        .timer-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
        .timer-item { display: flex; flex-direction: column; min-width: 60px;}
        .timer-val { font-size: clamp(2rem, 5vw, 2.5rem); font-weight: 500; }
        .timer-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }

        /* --- FORMULAIRE RSVP --- */
        .rsvp-card {
            background-color: var(--fond-carte);
            border: 1px solid rgba(59, 35, 19, 0.1);
            border-radius: 20px;
            padding: 40px 30px;
            margin-bottom: 50px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        }
        .rsvp-card h3 { font-size: 1.8rem; margin-bottom: 25px; }
        .input-field {
            width: 100%; padding: 15px 20px;
            border: 1px solid var(--marron-fonce);
            border-radius: 30px;
            font-family: inherit; font-size: 1rem;
            margin-bottom: 20px; outline: none;
            text-align: center;
            color: var(--marron-fonce);
            transition: all 0.3s;
        }
        .input-field:focus {
            border-color: var(--orange-brule);
            box-shadow: 0 0 10px rgba(192, 90, 18, 0.1);
        }
        .btn-group { display: flex; gap: 15px; flex-wrap: wrap; }
        .btn {
            flex: 1; min-width: 120px; padding: 15px; border-radius: 30px;
            font-family: inherit; font-size: 1rem; font-weight: 600;
            cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
            transition: all 0.3s ease;
            border: none;
        }
        .btn-primary { background-color: var(--orange-brule); color: white; }
        .btn-outline { background-color: transparent; border: 1px solid var(--marron-fonce); color: var(--marron-fonce); }
        .btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(192, 90, 18, 0.2); }
        
        #confirmation-msg { display: none; margin-top: 20px; color: var(--orange-brule); font-weight: 500; font-size: 1.1rem; }
        #ticket-section { display: none; }

        /* --- MOTS DOUX (Livre d'or) --- */
        .guestbook { margin-bottom: 50px; }
        .guestbook h3 { font-size: 2rem; margin-bottom: 25px; }
        textarea.input-field { border-radius: 15px; resize: none; text-align: left; }
        .message-list { margin-top: 30px; text-align: left; }
        .message-item { 
            background: var(--fond-carte); padding: 20px; border-radius: 15px;
            margin-bottom: 15px; border: 1px solid rgba(59, 35, 19, 0.05);
        }
        .msg-text { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.2rem; }
        .msg-author { font-size: 0.8rem; text-transform: uppercase; color: var(--texte-gris); margin-top: 10px; font-weight: bold;}

        /* --- BILLET / QR CODE --- */
        .ticket-card {
            background-color: var(--fond-carte);
            border: 2px dashed rgba(192, 90, 18, 0.3);
            border-radius: 20px; padding: 40px 20px; margin-bottom: 50px;
        }
        .qr-placeholder {
            width: 180px; height: 180px; margin: 0 auto 20px auto;
            background-image: repeating-linear-gradient(45deg, var(--orange-brule) 25%, transparent 25%, transparent 75%, var(--orange-brule) 75%, var(--orange-brule)), repeating-linear-gradient(45deg, var(--orange-brule) 25%, var(--fond-carte) 25%, var(--fond-carte) 75%, var(--orange-brule) 75%, var(--orange-brule));
            background-position: 0 0, 10px 10px;
            background-size: 20px 20px;
            opacity: 0.3; border-radius: 10px;
        }

        /* --- ANIMATIONS DOUCES AU DÉFILEMENT (Scroll Reveal) --- */
        .animate-element {
            opacity: 0; 
            transform: translateY(30px); /* L'élément commence 30px plus bas */
            /* C'est ici qu'on gère la "douceur" : 1.2 secondes avec un effet de freinage (ease-out) */
            transition: opacity 1.2s ease-out, transform 1.2s ease-out; 
            will-change: opacity, transform;
        }

        /* Quand le JavaScript ajoute cette classe, l'élément glisse doucement vers sa place */
        .animate-element.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Ajout d'un petit délai pour les éléments de la grille (lieux) pour qu'ils apparaissent un par un */
        .locations-grid .location:nth-child(1) { transition-delay: 0.1s; }
        .locations-grid .location:nth-child(2) { transition-delay: 0.3s; }
        .locations-grid .location:nth-child(3) { transition-delay: 0.5s; }

        /* --- FOOTER --- */
        footer { padding: 40px 20px; text-align: center; background-color: var(--marron-fonce); color: white; width: 100%; }
        .footer-text { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1.2rem, 3vw, 1.8rem); }