:root {
    --gold: #D4AF37;
    --gold-light: #f3e5ab;
    --dark: #1a252f;
    --white: #ffffff;
    --bg: #fdfbf7;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0; padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: var(--dark);
    padding-top: 70px; /* Espace pour le menu fixe */
}

/* --- NAVIGATION (BURGER) --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    height: 60px; background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; z-index: 1000;
}

.nav-logo { font-family: 'Playfair Display', serif; font-weight: bold; font-size: 1.2rem; color: var(--dark); text-decoration: none; }
.nav-logo span { color: var(--gold); }

.burger-icon { font-size: 1.8rem; cursor: pointer; color: var(--dark); }

.nav-overlay {
    position: fixed; top: 60px; left: 0; width: 100%; height: 0;
    background: var(--dark); overflow: hidden; transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 999;
}
.nav-overlay.open { height: calc(100vh - 60px); }
.nav-overlay a {
    color: var(--white); text-decoration: none; font-size: 1.5rem;
    margin: 20px 0; font-family: 'Playfair Display', serif; text-transform: uppercase;
    opacity: 0; transform: translateY(20px); transition: 0.3s;
}
.nav-overlay.open a { opacity: 1; transform: translateY(0); }

/* --- GLOBAL LAYOUT --- */
h1 { font-family: 'Playfair Display', serif; text-align: center; margin: 20px 0 5px; color: var(--dark); font-size: 2rem; }
.subtitle { text-align: center; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; font-weight: 600; margin-bottom: 30px; }

/* --- FORMULAIRE MOBILE --- */
.input-section {
    background: var(--white); margin: 15px; padding: 25px;
    border-radius: 20px; box-shadow: var(--shadow);
    border: 1px solid var(--gold-light);
}

input[type="text"], textarea {
    width: 100%; padding: 15px; margin-bottom: 15px;
    border: 2px solid #eee; border-radius: 12px;
    font-size: 1rem; font-family: 'Montserrat', sans-serif;
    background: #fcfcfc;
}
input:focus, textarea:focus { border-color: var(--gold); outline: none; }

/* Boutons Médias : Gros et Faciles à taper */
.media-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.media-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 15px 5px; background: #fff; border: 2px solid #eee; border-radius: 15px;
    color: var(--dark); font-size: 0.75rem; font-weight: 700; cursor: pointer;
    transition: 0.2s;
}
.media-btn span { font-size: 1.8rem; margin-bottom: 5px; }
.media-btn.active { border-color: var(--gold); background: rgba(212,175,55,0.1); color: var(--gold); transform: scale(0.98); }

.submit-btn {
    width: 100%; padding: 18px; background: var(--dark); color: white;
    border: none; border-radius: 50px; font-size: 1.1rem; font-weight: bold;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
    box-shadow: 0 5px 15px rgba(44,62,80,0.3);
}
.submit-btn:active { transform: scale(0.98); }

/* Ajoute ou vérifie ceci dans style.css */
.submit-btn {
    width: 100%; 
    padding: 18px; 
    background: var(--dark); 
    color: white;
    border: none; 
    border-radius: 50px; 
    font-size: 1.1rem; 
    font-weight: bold;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(44,62,80,0.3);
    margin-top: 10px;
}
.submit-btn:active { transform: scale(0.98); }

/* --- MUR DE MESSAGES (FEED) --- */
.guestbook-wall {
    padding: 15px; display: grid; gap: 20px;
    /* Mobile : 1 colonne, Tablette : 2, PC : 3 */
    grid-template-columns: 1fr; 
}
@media(min-width: 768px) { .guestbook-wall { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }

.entry-card {
    background: var(--white); border-radius: 15px; overflow: hidden;
    box-shadow: var(--shadow);
}
.entry-media { width: 100%; max-height: 400px; object-fit: cover; background: #000; display: block; }
.entry-content { padding: 20px; }
.entry-msg { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-style: italic; color: #444; margin-bottom: 10px; line-height: 1.5; }
.entry-author { text-align: right; color: var(--gold); font-weight: bold; font-size: 0.85rem; text-transform: uppercase; }

/* --- LOADER --- */
#loader { display: none; text-align: center; margin-top: 15px; color: var(--gold); font-weight: bold; font-size: 0.9rem; }
.spinner { width: 30px; height: 30px; border: 4px solid rgba(212,175,55,0.2); border-top: 4px solid var(--gold); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- DIAPORAMA STYLE --- */
.diaporama-body { background: #0e0e0e; overflow: hidden; height: 100vh; padding: 0; display: flex; align-items: center; justify-content: center; }
.slide-container { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.slide-content { max-width: 95%; max-height: 80vh; border: 2px solid var(--gold); box-shadow: 0 0 40px rgba(0,0,0,0.8); }
.slide-caption {
    position: absolute; bottom: 40px; left: 0; width: 100%; text-align: center;
    color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.9); z-index: 10;
}
.slide-msg { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 10px; padding: 0 20px; }
.slide-author { color: var(--gold); font-weight: bold; text-transform: uppercase; letter-spacing: 2px; }
.close-btn {
    position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
    background: rgba(255,255,255,0.1); border-radius: 50%; color: white;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    font-size: 1.5rem; z-index: 100; backdrop-filter: blur(5px);
}