/* =========================================================
   VARIABLES
========================================================= */

:root {
    --ivory: #f7f1e5;
    --paper: #fbf7ef;
    --black: #171411;
    --brown: #004e82;
    --red: #9b241c;
    --red-dark: #6e1814;
    --gold: #b9975b;
    --gold-light: #d8bd83;

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Montserrat", Arial, sans-serif;
    
    --container: 1180px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ivory);
    color: var(--black);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   UTILS
========================================================= */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: auto;
}

.eyebrow {
    font-family: var(--sans);
    font-size: .7rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
}

.section-intro {
    max-width: 650px;
    margin: 25px auto 0;
    font-size: .95rem;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--gold);
    margin: 30px 0;
}

.ornament::before,
.ornament::after {
    content: "";
    width: 70px;
    height: 1px;
    background: var(--gold);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 30px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .68rem;
    cursor: pointer;
    transition: .3s ease;
}

.btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.btn-primary {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}


/* =========================================================
   NAVIGATION
========================================================= */

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    color: white;
    transition: .4s ease;
}

.site-header.scrolled {
    background: rgba(23, 20, 17, .96);
    padding: 12px 0;
    box-shadow: 0 5px 30px rgba(0,0,0,.15);
}

.nav {
    width: min(calc(100% - 48px), 1400px);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.brand small {
    display: block;
    font-family: var(--sans);
    font-size: .48rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: var(--gold-light);
    transition: .3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
}


/* =========================================================
   HERO / PARALLAX
========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    background: #251712;
}

.hero-bg {
    position: absolute;
    inset: -10%;
    background:
        linear-gradient(
            rgba(20, 10, 5, .00),
            rgba(20, 10, 5, .10)
        ),
        url("/images/IMG_3017.webp");

        background-position: center, 80% top;
        background-size: cover, cover;
        background-repeat: no-repeat;
    /* transform: translateY(var(--parallax, 0px)) scale(.7);
    will-change: transform; */
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            transparent 10%,
            rgba(0,0,0,.3) 100%
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(900px, calc(100% - 40px));
    text-align: center;
    background: rgba(20, 10, 5, .35);
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    padding: 15px 5px;
}

.hero-top {
    font-family: var(--sans);
    font-size: .68rem;
    letter-spacing: .4em;
    text-transform: uppercase;
}

.hero-title {
    margin: 25px 0;
    font-family: var(--serif);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 500;
    line-height: .78;
    text-shadow: 0 5px 30px rgba(0,0,0,.3);
}

.hero-title span {
    display: block;
    font-size: .42em;
    line-height: 1.5;
    font-style: italic;
    letter-spacing: .03em;
}

.hero-dates {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    letter-spacing: .06em;
}

.hero-location {
    margin-top: 8px;
    font-size: 1.1rem;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: .55rem;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.hero-scroll::after {
    content: "";
    display: block;
    margin: 12px auto 0;
    width: 1px;
    height: 45px;
    background: rgba(255,255,255,.7);
}


/* =========================================================
   INVITATION
========================================================= */

.invitation {
    padding: 120px 0;
    text-align: center;
    background: var(--paper);
}

.invitation-text {
    max-width: 850px;
    margin: auto;
}

.invitation-quote {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    line-height: 1.05;
    font-style: italic;
    font-weight: 500;
}

.invitation-names {
    margin-top: 35px;
    font-family: var(--serif);
    font-size: 1.5rem;
    letter-spacing: .12em;
}


/* =========================================================
   INFOS
========================================================= */

.info-section {
    padding: 110px 0;
}

.info-section.dark {
    background: var(--brown);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: var(--paper);
    padding: 45px 35px;
    border: 1px solid rgba(185,151,91,.35);
    transition: .3s ease;
}

.dark .card {
    background: rgba(255,255,255,.05);
    border-color: rgba(216,189,131,.3);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.card-number {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--gold);
}

.card h3 {
    margin: 15px 0;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
}

.card p {
    font-size: .85rem;
}

.card ul {
    margin: 20px 0 0 18px;
    font-size: .8rem;
}

.card li {
    margin: 8px 0;
}


/* =========================================================
   PROGRAMME
========================================================= */

.programme {
    background: var(--red);
    color: white;
    padding: 120px 0;
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 60px;
}

.day {
    padding: 30px 40px;
    border-left: 1px solid rgba(255,255,255,.3);
}

.day:first-child {
    border-left: 0;
}

.day-date {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1;
    margin-bottom: 25px;
    
}

.day h3 {
    margin: 12px 0 25px;
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.event {
    margin-bottom: 25px;
}

.event-time {
    font-size: .65rem;
    letter-spacing: .15em;
    opacity: .7;
}

.event-name {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-style: italic;
}


/* =========================================================
   FORMULAIRE
========================================================= */

.registration {
    padding: 120px 0;
    background:
        linear-gradient(
            rgba(247,241,229,.96),
            rgba(247,241,229,.96)
        ),
        url("/images/marche-uzes.webp");
     background-size: cover;
    background-position: center;
}

.form-wrapper {
    max-width: 850px;
    margin: auto;
    background: var(--paper);
    border: 1px solid var(--gold);
    padding: clamp(30px, 6vw, 70px);
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    margin-bottom: 8px;
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #b9ae9d;
    background: transparent;
    padding: 13px 5px;
    outline: none;
    color: var(--black);
    transition: .25s;
}

.field textarea {
    resize: vertical;
    min-height: 100px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--red);
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .75rem;
}

.checkbox input {
    margin-top: 5px;
}

.form-submit {
    margin-top: 35px;
    text-align: center;
}

.form-message {
    display: none;
    margin-top: 25px;
    padding: 15px;
    text-align: center;
    background: #e8efe3;
    color: #34502f;
    font-size: .8rem;
}

 /* Choix Oui / Non */

.rsvp {
    border: 0;
    margin-bottom: 40px;
    text-align: center;
}

.rsvp legend {
    width: 100%;
    font-family: var(--serif);
    margin-bottom: 18px;
    font-size: 1.65rem;
    /* letter-spacing: .15em; */
    /* text-transform: uppercase; */
}

.rsvp-choice {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.rsvp-choice label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 150px;
    min-height: 52px;
    padding: 0 30px;
    border: 2px solid var(--gold);
    color: var(--black);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .68rem;
    cursor: pointer;
    transition: .3s ease;
}

.rsvp-choice label:hover {
    border-color: var(--red);
    color: var(--red);
}

.rsvp-choice input:checked + label {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.rsvp-choice input:focus-visible + label {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: var(--black);
    color: white;
    text-align: center;
    padding: 70px 20px;
}

footer .footer-title {
    font-family: var(--serif);
    font-size: 3rem;
}

footer p {
    margin-top: 15px;
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #aaa;
}


/* =========================================================
   FLÈCHES ENTRE SECTIONS
========================================================= */

.section-arrow {
    position: relative;
    height: 0;
    z-index: 10;
}

.section-arrow a {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--gold);
    color: var(--gold);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transition: background .3s ease, color .3s ease, border-color .3s ease;
    animation: arrowBounce 2.2s ease-in-out infinite;
}

.section-arrow a:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.section-arrow svg {
    width: 20px;
    height: 20px;
}

@keyframes arrowBounce {
    0%, 100% { transform: translate(-50%, -50%); }
    50%      { transform: translate(-50%, -35%); }
}

@media (prefers-reduced-motion: reduce) {
    .section-arrow a { animation: none; }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(23,20,17,.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        transform: translateX(100%);
        transition: .4s ease;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: .8rem;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .cards,
    .programme-grid {
        grid-template-columns: 1fr;
    }

    .day,
    .day:first-child {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.3);
        padding: 35px 10px;
    }

    .day:first-child {
        border-top: 0;
    }
}

@media (max-width: 600px) {

    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .hero {
        height: 100svh;
        min-height: 700px;
    }

    .hero-bg {
        background-image: url("/images/IMG_3010.webp");
        /* background-position: center, center;
        background-size: contain, contain; */
        opacity: .8;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        background: unset;
        box-shadow: unset;
    }

    .invitation-quote {
        margin-top: auto;
        font-size: clamp(2rem, 20vw, 2rem);
        /* font-size: 2.5rem; */
    }

    .hero-content .ornament {
        margin-bottom: 100px;
    }

    .hero-title {
        font-size: clamp(3rem, 20vw, 4rem);
        margin: 12px 0;
    }

    .hero-top {
        letter-spacing: .25em;
    }

    .hero-dates {
        font-size: 1.35rem;
    }

    .invitation,
    .info-section,
    .programme,
    .registration {
        padding: 80px 0;
    }

    .cards {
        gap: 15px;
    }

    .card {
        padding: 35px 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .form-wrapper {
        padding: 35px 22px;
    }

    .section-arrow a {
        width: 44px;
        height: 44px;
    }
}


/* =========================================================
   FORMULAIRE : ÉTATS (envoi, erreurs, anti-spam)
========================================================= */

.form-message.is-visible {
    display: block;
}

.form-message.is-error {
    background: #f6e4e1;
    color: var(--red-dark);
}

.field.has-error input,
.field.has-error textarea {
    border-color: var(--red);
}

.field-error {
    margin-top: 6px;
    color: var(--red);
    font-size: .72rem;
}

.rsvp .field-error {
    margin-top: 15px;
}

.btn:disabled {
    opacity: .6;
    cursor: wait;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* =========================================================
   CHANGEMENT DE LANGUE
========================================================= */

.nav-links .lang-switch {
    padding-left: 30px;
    border-left: 1px solid var(--gold);
}

.nav-links .lang-switch a {
    color: var(--gold-light);
}

/* Mobile : lien de langue à gauche du menu hamburger, hors du menu */

.nav-mobile {
    display: none;
}

.lang-switch-mobile {
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold-light);
}

@media (max-width: 900px) {

    .nav-mobile {
        display: flex;
        align-items: center;
        gap: 22px;
    }

    .nav-links .lang-switch {
        display: none;
    }

}
