/* Styles de base */
:root {
    --primary-color: #111;
    --accent-color: #59011e; /* Rouge bordeaux pour le bouton */
    --bg-light: #fdfdfd;
    --text-grey: #555;
}
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}
@font-face {
    font-family: 'The Youngest Script';
    src: url('./public/the-youngest-script/the-youngest-script.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 400; }
.script-font { font-family: 'The Youngest Script', cursive; font-size: 6rem; margin: 0; }
a { text-decoration: none; color: inherit; font-weight: bold; font-size: 1rem;}

/* Navigation */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 20px 50px;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(5px);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
header a {
    font-size: inherit;
}

/* Bouton RSVP */
.btn-rsvp {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 35px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
}
.btn-rsvp:hover { background-color: #5a0915; }

/* Section Hero */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('./public/unnamed (3).jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}
.hero h2 { letter-spacing: 5px; font-size: 1.5rem; margin-top: 0; }
.hero .date { font-family: 'Montserrat', sans-serif; letter-spacing: 3px; margin: 20px 0 40px; }

/* Sections communes */
.section-hero { padding: 80px 20px; text-align: center; max-width: 100%; margin: 0 auto; }
.full-width { width: 100% !important}
section { padding: 80px 20px; text-align: center; max-width: 900px; margin: 0 auto; }
.section-title { font-size: 2rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 30px; }

/* Bienvenue & Citation */
.quote { font-style: italic; font-size: 1.2rem; color: var(--text-grey); margin: 30px 0; line-height: 1.6; }
.reference { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Compte à rebours */
.countdown { display: flex; justify-content: center; gap: 30px; margin-top: 40px; font-family: 'Playfair Display', serif; }
.cd-item { display: flex; flex-direction: column; }
.cd-number { font-size: 2.5rem; }
.cd-label { font-family: 'Montserrat', sans-serif; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; }

/* Notre Amour */
.story-content { text-align: left; line-height: 1.8; color: var(--text-grey); margin-bottom: 40px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0px; margin-top: 40px; }
.photo-grid img { width: 100%; height: 300px; object-fit: cover; filter: grayscale(100%); }

/* Détails */
.details-box { background: #f4f4f4; padding: 40px; border-radius: 5px; margin-top: 30px; }

/* ==========================================================
   Responsive Design & Ajustement des Textes 
========================================================== */

/* Tablettes et mobiles (max 768px) */
@media screen and (max-width: 768px) {
    /* Typographie */
    .script-font { font-size: 4rem; }
    .hero h2 { font-size: 1.2rem; letter-spacing: 3px; }
    .section-title { font-size: 1.5rem; letter-spacing: 2px; }
    .quote { font-size: 1.05rem; }
    .story-content { font-size: 0.95rem; line-height: 1.6; }
    
    /* Navigation */
    header {
        padding: 15px 10px;
        gap: 15px;
        flex-wrap: wrap;
        font-size: 0.7rem;
    }
    
    /* Sections et espacements */
    section, .section-hero {
        padding: 60px 15px;
    }
    
    /* Compte à rebours */
    .countdown { gap: 15px; margin-top: 25px; }
    .cd-number { font-size: 1.8rem; }
    .cd-label { font-size: 0.6rem; }
    
    /* Grille de photos (1 colonne) */
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .photo-grid img {
        height: auto;
        max-height: 400px;
    }
    
    /* Détails */
    .details-box {
        padding: 25px 20px;
    }
}

/* Petits mobiles (max 480px) */
@media screen and (max-width: 480px) {
    /* Navigation très resserrée */
    header {
        gap: 10px;
        font-size: 0.6rem;
    }
    
    /* Tailles de texte très réduites */
    .script-font { font-size: 3.5rem; }
    .hero h2 { font-size: 1rem; }
    .btn-rsvp { font-size: 0.8rem; padding: 10px 25px; }
    
    /* Compte à rebours miniature */
    .countdown { gap: 10px; }
    .cd-number { font-size: 1.4rem; }
    .cd-label { font-size: 0.5rem; }
}
