/* =========================================================
   STYLE.CSS — Site du mariage

   Organisation :
   1. Styles généraux
   2. PAGE D'ACCUEIL — index.php
   3. PAGE CONNEXION — login.php
   4. PAGE PRÉSENTATION — presentation.php
   5. MENU
   6. MESSAGES
   7. PAGE RSVP — rsvp.php
   8. FOOTER COMMUN
   9. INVITÉS SUPPLÉMENTAIRES
   10. RESPONSIVE MOBILE
   ========================================================= */


/* =========================================================
   1. STYLES GÉNÉRAUX
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Cinzel", serif;
    background: #f5eee3;
}


/* =========================================================
   2. PAGE D'ACCUEIL — index.php
   ========================================================= */

.page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.accueil {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8vh;

    background-image: url("assets/fond-rubans-web.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.accueil h1 {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #252525;
}

.enter-button {
    width: 100px;
    height: 100px;
    margin-top: 220px;

    border: 1px solid #C6A15B;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.70);

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Cinzel", serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #252525;
    text-decoration: none;
    cursor: pointer;
}


/* =========================================================
   3. PAGE CONNEXION — login.php
   ========================================================= */

.login-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px;

    background-image: url("assets/fond-champagne.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-container {
    width: 100%;
    max-width: 520px;

    position: relative;
    top: -50px;

    padding: 60px 65px;
    text-align: center;

    background: rgba(255, 250, 242, 0.78);
    border: 1px solid rgba(198, 161, 91, 0.65);
    border-radius: 4px;

    box-shadow: 0 20px 60px rgba(80, 55, 25, 0.12);
}

.login-container h1 {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #252525;
}

.gold-line {
    width: 70px;
    height: 1px;
    margin: 22px auto 20px;
    background: #C6A15B;
}

.login-subtitle {
    margin: 0;
    font-size: 10px;
    letter-spacing: 4px;
    color: #777;
}

.login-form {
    width: 100%;
    margin-top: 45px;
    text-align: left;
}

.login-form .field {
    margin-bottom: 28px;
}

.login-form .field label {
    display: block;
    margin-bottom: 9px;

    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #555;
}

.login-form .field input {
    width: 100%;
    height: 52px;
    padding: 0 16px;

    border: none;
    border-bottom: 1px solid rgba(198, 161, 91, 0.8);
    border-radius: 0;

    background: rgba(255, 255, 255, 0.45);

    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    color: #333;
    outline: none;
}

.login-form .field input::placeholder {
    color: #aaa;
}

.login-form .field input:focus {
    background: rgba(255, 255, 255, 0.7);
    border-bottom-color: #C6A15B;
}

.login-button {
    width: 100%;
    height: 50px;
    margin-top: 15px;

    border: 1px solid #C6A15B;
    border-radius: 4px;
    background: #C6A15B;

    color: #fff;
    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;

    cursor: pointer;
}

.login-button:hover {
    opacity: 0.85;
}


/* =========================================================
   4. PAGE PRÉSENTATION — presentation.php
   ========================================================= */

.presentation-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 8vh 20px 5vh;

    background-image: url("assets/fond-champagne.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.presentation-content {
    width: 100%;
    text-align: center;
}

.presentation-content h1 {
    margin: 0;

    font-family: "Cinzel", serif;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #252525;
}

.presentation-description {
    max-width: 650px;
    margin: 30px auto 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    line-height: 1.5;
    color: #252525;
}


/* Zone des événements */

.presentation-scroll {
    width: 100%;
}

.events-container {
    width: 100%;
    max-width: 760px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;

    margin: 35px auto 0;
    text-align: center;
}

.event-column {
    padding: 20px 25px;

    border: 1px solid rgba(198, 161, 91, 0.35);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.18);
}

.event-column h2 {
    margin: 0 0 18px;

    font-family: "Cinzel", serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C6A15B;
}

.event-detail {
    margin-bottom: 18px;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-detail strong {
    font-family: "Cinzel", serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C6A15B;
}

.event-detail span {
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    color: #252525;
}

.event-info-button {
    width: 180px;
    height: 48px;
    margin: 5px auto 0;

    border: 1px solid #C6A15B;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.75);

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #252525;
    text-decoration: none;
}


/* Bouton Invitation */

.invitation-button {
    width: 50%;
    height: 50px;
    margin: 30px auto 0;

    border: 1px solid #C6A15B;
    border-radius: 4px;
    background: #C6A15B;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;

    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.invitation-button:hover {
    opacity: 0.85;
}


/* =========================================================
   5. MENU
   ========================================================= */

.menu-toggle {
    position: fixed;
    top: 15px;
    right: 30px;

    padding: 0;
    border: none;
    background: transparent;

    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    color: #C6A15B;

    cursor: pointer;
    z-index: 1100;
}

.menu {
    position: fixed;
    top: 65px;
    right: 30px;

    display: none;
    flex-direction: column;

    min-width: 190px;
    padding: 8px;

    border: 1px solid rgba(198, 161, 91, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);

    z-index: 1000;
}

.menu.open {
    display: flex;
}

.menu a {
    padding: 12px 18px;

    font-family: "Cinzel", serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #252525;
    text-decoration: none;
    border-radius: 6px;
}

.menu a.active {
    color: #C6A15B;
}


/* =========================================================
   6. MESSAGES
   ========================================================= */

.message {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);

    z-index: 2000;

    padding: 14px 30px;
    border-radius: 8px;

    font-family: "Cinzel", serif;
    font-size: 12px;
    letter-spacing: 1px;

    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.message.success {
    border: 2px solid #28A745;
    color: #28A745;
    background: rgba(40, 167, 69, 0.12);
    font-weight: bold;
}

.message.warning {
    border: 2px solid #FFB000;
    color: #FFB000;
    background: rgba(255, 176, 0, 0.12);
    font-weight: bold;
}

.message.error {
    border: 2px solid #FF3B30;
    color: #FF3B30;
    background: rgba(255, 59, 48, 0.12);
    font-weight: bold;
}

.message.orange {
    border: 2px solid #F57C00;
    color: #F57C00;
    background: rgba(245, 124, 0, 0.12);
    font-weight: bold;
}


/* =========================================================
   7. PAGE RSVP — rsvp.php
   ========================================================= */

.rsvp-page {
    width: 100%;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    overflow: hidden;
    padding: 8vh 20px 5vh;

    background-image: url("assets/fond-champagne.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rsvp-content {
    width: 100%;
    max-width: 600px;
    height: 100%;

    display: flex;
    flex-direction: column;
    text-align: center;
}

.rsvp-content h1 {
    margin: 0;

    font-family: "Cinzel", serif;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #252525;
}

.rsvp-description {
    margin: 35px auto 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    line-height: 1.5;
    color: #252525;
}

.rsvp-form {
    margin-top: 45px;
    height: 43vh;

    overflow-y: auto;

    padding-right: 10px;
    padding-bottom: 20px;
}

.rsvp-section {
    margin-bottom: 40px;
}

.rsvp-section h2,
.guest-block h2 {
    margin: 0 0 25px;

    font-family: "Cinzel", serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C6A15B;
}

.rsvp-form .field {
    margin-bottom: 25px;
    text-align: left;
}

.rsvp-form .field label {
    display: block;
    margin-bottom: 8px;

    font-family: "Cinzel", serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #252525;
}

.rsvp-form .field input[type="text"],
.rsvp-form .field input[type="email"] {
    width: 100%;
    padding: 10px 5px;

    border: none;
    border-bottom: 1px solid rgba(37, 37, 37, 0.5);
    background: transparent;

    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    color: #252525;
    outline: none;
}

/* Présence aux événements */

.event-presence {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 12px;
}

.presence-choice {
    display: flex;
    align-items: center;
    gap: 20px;
}

.presence-choice strong {
    min-width: 130px;

    font-family: "Cinzel", serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #252525;
}

.presence-choice label {
    display: flex !important;
    align-items: center;
    gap: 7px;

    margin: 0 !important;

    font-family: "Cormorant Garamond", serif !important;
    font-size: 17px !important;
    font-weight: 400;
    letter-spacing: 1.5px !important;
    text-transform: none !important;
    color: #252525 !important;

    cursor: pointer;
}

.presence-choice input[type="radio"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #C6A15B;
}

.number-choice {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.number-choice label {
    cursor: pointer;
}

.number-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.number-choice span {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #C6A15B;
    border-radius: 50%;

    font-family: "Cinzel", serif;
    font-size: 13px;
    color: #252525;

    background: rgba(255, 255, 255, 0.35);
}

.number-choice input:checked + span {
    color: #C6A15B;
    background: rgba(198, 161, 91, 0.15);
}

.rsvp-button {
    width: 220px;
    height: 55px;
    margin: 10px auto 0;

    border: 1px solid #C6A15B;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.75);

    font-family: "Cinzel", serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #252525;

    cursor: pointer;
}


/* =========================================================
   8. FOOTER COMMUN
   ========================================================= */

.site-names {
    position: fixed;
    bottom: 0;
    left: 0;

    width: 100%;

    text-align: center;

    font-family: "Allura", cursive;
    font-size: 125px;
    font-weight: 400;

    color: #C6A15B;
    z-index: 100;
}


/* =========================================================
   9. INVITÉS SUPPLÉMENTAIRES — RSVP
   ========================================================= */

#additional-guests {
    width: 100%;
}

.guest-block {
    display: none;
    margin-bottom: 40px;
}

.guest-block.visible {
    display: block;
}


/* =========================================================
   10. RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 600px) {

    /* -----------------------------------------------------
       Accueil
       ----------------------------------------------------- */

    .page {
        min-height: 100vh;
        padding: 10px;
    }

    .accueil {
        min-height: calc(100vh - 20px);
        padding-top: 8vh;

        background-image: url("assets/fond-rubans-mobile.svg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .accueil h1 {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .enter-button {
        width: 90px;
        height: 90px;
        margin-top: 240px;
    }


    /* -----------------------------------------------------
       Menu
       ----------------------------------------------------- */

    .menu-toggle {
        top: 20px;
        right: 40px;
    }

    .menu {
        top: 60px;
        right: 40px;
        z-index: 1000;
        background: #fffaf2;
    }


    /* -----------------------------------------------------
       Footer mobile
       ----------------------------------------------------- */

    .site-names {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;

        font-size: 60px;
        line-height: 0.72;
    }

    .footer-ampersand {
        font-size: 28px;
        line-height: 1;
    }


    /* -----------------------------------------------------
       Connexion
       ----------------------------------------------------- */

    .login-page {
        height: 100vh;
        min-height: 100vh;

        padding: 15px;
        overflow: hidden;

        background-image: url("assets/fond-champagne-mobile.svg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .login-container {
        max-width: 420px;
        padding: 30px 25px;
        top: -70px;
    }

    .login-container h1 {
        max-width: 220px;
        margin: 0 auto;

        font-size: 26px;
        line-height: 1.15;
        letter-spacing: 3px;
    }

    .gold-line {
        margin: 15px auto 14px;
    }

    .login-subtitle {
        font-size: 8px;
        letter-spacing: 2.5px;
    }

    .login-form {
        margin-top: 25px;
    }

    .login-form .field {
        margin-bottom: 18px;
    }

    .login-form .field label {
        margin-bottom: 5px;
        font-size: 9px;
    }

    .login-form .field input {
        height: 42px;
        padding: 0 12px;
        font-size: 16px;
    }

    .login-button {
        height: 45px;
        margin-top: 8px;
    }


    /* -----------------------------------------------------
       Présentation mobile

       STRUCTURE :
       - titre fixe
       - phrase d'introduction fixe
       - événements seuls dans la zone scrollable
       - texte d'information fixe
       - bouton Invitation fixe
       - footer fixe
       ----------------------------------------------------- */

    .presentation-page {
        position: relative;

        width: 100%;
        height: 100vh;
        min-height: 100vh;

        padding: 65px 15px 100px;

        overflow: hidden;

        background-image: url("assets/fond-champagne-mobile.svg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .presentation-content {
        width: 100%;
        height: 100%;

        display: flex;
        flex-direction: column;

        text-align: center;
    }

    .presentation-content h1 {
        flex: 0 0 auto;

        font-size: 28px;
        letter-spacing: 3px;
    }

    .presentation-description {
        flex: 0 0 auto;

        max-width: 100%;
        margin: 18px auto 0;

        font-size: 17px;
        line-height: 1.35;
    }


    /* SEULE zone scrollable */

    .presentation-scroll {
        flex: 0 1 auto;
        min-height: 0;

        width: 100%;
        margin-top: 18px;

        overflow-y: auto;
        overflow-x: hidden;

        padding: 0 5px 15px;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .events-container {
        width: 100%;
        max-width: none;

        display: flex;
        flex-direction: column;
        gap: 20px;

        margin: 0 auto;
    }

    .event-column {
        width: 70%;
        margin-left: auto;
        margin-right: auto;
        padding: 22px 18px;
        flex: 0 0 auto;
    }

    .event-column h2 {
        margin-bottom: 16px;
        font-size: 16px;
    }

    .event-detail {
        margin-bottom: 16px;
    }

    .event-info-button {
        width: 180px;
        height: 48px;
    }


    /* Bouton hors scroll */

    .invitation-button {
        flex: 0 0 auto;

        width: 60%;
        height: 45px;

        margin: 25px auto 0;

        position: static;
        transform: none;

        z-index: 150;
    }


    /* -----------------------------------------------------
       RSVP mobile
       ----------------------------------------------------- */

    .rsvp-page {
        height: 100vh;
        min-height: 100vh;

        padding: 65px 15px 120px;
        overflow: hidden;

        background-image: url("assets/fond-champagne-mobile.svg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .rsvp-content {
        width: 70%;
        max-width: 600px;
        height: 100%;
    }

    .rsvp-content h1 {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .rsvp-description {
        margin-top: 20px;
        font-size: 18px;
    }

    .rsvp-form {
        flex: 0 0 auto;
        min-height: 0;

        margin-top: 25px;
        height: 57vh;

        overflow-y: auto;

        padding: 0 5px 100px;

        -webkit-overflow-scrolling: touch;
    }

    .rsvp-section {
        margin-bottom: 20px;
    }

    .rsvp-section h2,
    .guest-block h2 {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .rsvp-form .field {
        margin-bottom: 20px;
    }

    .rsvp-form .field label {
        font-size: 10px;
    }

    .rsvp-form .field input[type="text"],
    .rsvp-form .field input[type="email"] {
        font-size: 18px;
    }

    /* Présence aux événements */

    .event-presence {
        gap: 8px;
        margin-top: 6px;
    }

    .presence-choice {
        gap: 12px;
    }

    .presence-choice strong {
        min-width: 105px;
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .presence-choice label {
        gap: 5px;
        font-size: 15px !important;
        letter-spacing: 1px !important;
    }

    .presence-choice input[type="radio"] {
        width: 15px;
        height: 15px;
    }

    .number-choice {
        gap: 10px;
    }

    .number-choice span {
        width: 42px;
        height: 42px;
    }

    .rsvp-button {
        width: 200px;
        height: 50px;
    }
}
