/* --- VARIABLES ET THÈME --- */
:root {
    --primary-color: #d4af37; /* Or festif */
    --primary-dark: #b8962d;  /* Or pour le survol */
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #fcfbf7;
    --white: #ffffff;
    --border-color: #eee;
}

/* --- BASES --- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- NAVIGATION DISCRÈTE --- */
#nav-discret {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    max-width: 100px;
    max-height: 45px;
    border: 1px solid var(--border-color);
}

#nav-discret:hover {
    max-width: 220px;
    max-height: 450px;
    border-radius: 15px;
    background: var(--white);
}

.menu-icon {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
}

.menu-icon i {
    font-size: 24px;
    margin-right: 8px;
}

.nav-content {
    opacity: 0;
    margin-top: 15px;
    transition: opacity 0.3s ease;
}

#nav-discret:hover .nav-content {
    opacity: 1;
}

.nav-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-content ul li {
    padding: 8px 0;
    border-top: 1px solid #f4f4f4;
}

.nav-content ul li a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.nav-content ul li a i {
    margin-right: 10px;
    color: var(--primary-color);
}

.nav-content ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* --- EN-TÊTE --- */
header {
    margin-top: 50px;
    margin-bottom: 40px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

hr {
    width: 50px;
    border: 1px solid var(--primary-color);
    margin: 20px auto;
}

.main-event {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 40px 0;
    font-style: italic;
}

/* Section Photos */
.photo-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.photo-frame img, .photo-empty {
    width: 180px;  
    height: 240px; 
    object-fit: cover;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.photo-empty {
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 5rem;
    color: var(--primary-color);
    border: 1px dashed var(--primary-color);
}

.photo-frame:hover {
    transform: rotate(-2deg) scale(1.05);
}

.photo-caption {
    margin-top: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- SECTIONS D'INFO --- */
.info-section {
    margin: 50px 0;
    text-align: left;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.info-section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    text-align: center;
}

h3 { 
    font-family: 'Playfair Display', serif; 
    color: var(--text-color); 
}

.details {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 30px 0;
    margin: 40px 0;
}

.date {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.location {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* --- GRILLE --- */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.info-box {
    flex: 1 1 300px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
}

.info-box i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- PROGRAMME --- */
.programme-list { list-style: none; padding: 0; }
.programme-list li { 
    margin-bottom: 15px; 
    border-bottom: 1px dashed #ddd; 
    padding-bottom: 8px; 
}
.time { 
    font-weight: bold; 
    color: var(--primary-color); 
    margin-right: 10px; 
}

/* --- FORMULAIRE --- */
.form-cromagnien {
    max-width: 600px;
    margin: 20px auto;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
}

.section-form {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.section-form h3 { 
    margin-top: 0; 
    color: var(--primary-color);
    border-bottom: 1px solid #f4ece1; 
    padding-bottom: 10px;
    font-size: 1.4rem;
}

.champ { margin-bottom: 20px; }

label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 8px; 
    font-size: 0.95rem;
}

input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
}

.instruction-form {
    font-size: 0.85rem; 
    color: #888; 
    font-style: italic;
    margin-bottom: 15px;
    display: block;
}

.radio-group { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    margin-top: 10px;
}

.radio-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    cursor: pointer;
}

.btn-envoyer {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-envoyer:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- FOOTER --- */
.footer {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 60px;
    opacity: 0.8;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    
    /* Correction : On donne une taille fixe sur mobile pour ne pas écraser le bloc vide "?" */
    .photo-frame img, .photo-empty { 
        width: 260px; 
        height: 340px; 
        margin: 0 auto;
    }
    
    .photo-gallery {
        flex-direction: column;
        gap: 20px;
    }

    .info-section { padding: 15px; }
}