:root {
    --bg: #f4eee6; /* beige */
    --paper: #f8f2ea; /* papier clair */
    --text: #2b2b2b;
    --muted: #6f6a63;
    --border: #e4dbd0;
    --bg2: #F2E5DA;
    --shadow: 0 14px 35px rgba(20, 16, 10, .10);
    --radius: 18px;
    --max: 980px;
}


* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}


.app {
    min-height: 100vh
}

.hero {
    position: relative;
    height: 44vh; /* ≈ 1/3 de l’écran */
    min-height: 220px; /* sécurité petits écrans */
    background-image: url("f&b.jpeg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* bas */
    justify-content: center;
}

/* overlay sombre pour lisibilité */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.55)
    );
}

.hero-content {
    position: relative;
    padding: 20px;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg);
}

.hero-content p {
    margin: 4px 0 0;
    color: var(--bg);
    font-size: 0.95rem;
}

.block {
    padding: 22px 16px;
}

.block--paper {
    background: var(--paper);
}

.block--beige {
    background: var(--bg2);
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}


.section {
    padding: 0;
}

.section-head {
    background: var(--bg2);
    padding: 18px 16px;
    text-align: center;

}

.lead {
    color: var(--muted);
    line-height: 1.6;
    margin: 10px auto 0;
    max-width: 52ch;
    font-size: 1rem;
}

.intro {
    padding: 22px 16px 26px;
    background: var(--paper);
    text-align: center;
}

.kicker {
    margin: 0;
    color: var(--muted);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: .8rem;
}

.quick {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.chip {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .6);
    text-decoration: none;
    color: var(--text);
}

.chip-strong {
    background: #2b2b2b;
    color: #fff;
    border-color: #2b2b2b;
}

/* --- FAQ / Détails --- */
.faq {
    background: var(--bg2);
    padding: 10px 16px 16px;
}

.faq-item {
    border-top: 1px solid var(--border);
    padding: 10px 0;
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    list-style: none; /* enlève la flèche par défaut */
    cursor: pointer;
    font-family: "Playfair Display", serif;
    font-weight: 600;
    color: #3b372f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}

/* flèche custom */
.faq-item summary::after {
    content: "▾";
    font-size: 1.1rem;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform .2s ease;
    color: #3b372f;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-content {
    padding: 8px 0 2px;
    animation: faqFade .18s ease;
}

.faq-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

@keyframes faqFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* accessibilité focus clavier */
.faq-item summary:focus {
    outline: 2px solid rgba(184, 134, 11, .35); /* darkgoldenrod adouci */
    outline-offset: 6px;
    border-radius: 8px;
}


.section-head2 {
    border-top: 2px solid darkgoldenrod;
    padding: 10px 16px;
    text-align: center;
    background: var(--bg2);
}

.section-head h2 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 2rem;
    color: #3b372f;
}

.section-head2 h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-weight: 300;
    font-size: 1rem;
    color: #3b372f;
    text-align: left;
}

/* Event cards */
.event {
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 0;
    background: var(--bg2);
    overflow: hidden;
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: stretch; /* mobile-first */
}

.event-media {
    background: var(--bg2);
    min-height: 160px;
    overflow: hidden;
}

.event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center;
}

.event-body {
    background: var(--bg2); /* IMPORTANT */
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    max-width: 100%;
}

.event-body h3 {
    margin: 4px 0 6px;
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #3b372f;
}

.event-time {
    font-weight: 500;
    color: #3b372f;
    margin-bottom: 6px;
    font-size: .95rem;
}

.event-place {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.btn-gift {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #2b2b2b;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: #2b2b2b;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}


.gift-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* --- PAGE RSVP --- */
.rsvp-header {
    padding: 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
}

.back-link {
    text-decoration: none;
    color: var(--text);
    font-size: .95rem;
}

.rsvp-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 28px 16px 40px;
    text-align: center;
}

.rsvp-container h1 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    margin-bottom: 6px;
}

.rsvp-form {
    margin-top: 18px;
    display: grid;
    gap: 14px;
    background: var(--bg2);
    padding: 18px;
}

.rsvp-form label {
    display: grid;
    gap: 6px;
    text-align: left;
    font-size: .95rem;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .7);
    font: inherit;
}

.field-group {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    font-size: .95rem;
    color: #3b372f;
}

input, textarea {
    font: inherit;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .75);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: darkgoldenrod;
}

.field-set {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

legend {
    padding: 0 6px;
    font-family: "Playfair Display", serif;
    font-weight: 600;
    color: #3b372f;
}

.radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio input {
    accent-color: darkgoldenrod;
}

.btn-submit {
    margin-top: 10px;
    padding: 12px;
    border-radius: 999px;
    border: none;
    background: #2b2b2b;
    color: #fff;
    font-weight: 600;
    font-family: "Playfair Display", serif;
}

.form-note {
    margin: 0;
    text-align: center;
    font-size: .9rem;
    color: var(--muted);
}


.link {
    display: inline-block;
    margin-top: 12px;
    color: #3b372f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.event--reverse .event-media {
    order: 2;
}

.event--reverse .event-body {
    order: 1;
}

@media (min-width: 1000px) {
    .section-head h2 {
        font-size: 5rem;
    }

    .section-head2 h3 {
        font-size: 4rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 3.5rem;
    }

    .event-time {
        font-size: 3rem;
    }

    .event-body h3 {
        font-size: 4rem;
    }

    .event-place {
        font-size: 3.2rem;
    }

    .kicker {
        font-size: 4rem;
    }

    .intro h2 {
        font-size: 4rem;
    }

    .lead {
        font-size: 3.7rem;
    }

    .quick {
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .chip {
        font-size: 3.6rem;
        padding: 30px 30px;
        margin: 15px;
    }

    .faq-item summary {
        font-size: 3.7rem;
    }

    .faq-content p {
        font-size: 3.5rem;
    }

    .btn-gift {
        padding: 30px 40px;
        font-size: 3.7rem;
    }

    .btn-primary {
        padding: 30px 40px;
        font-size: 3.7rem;
    }

    .gift-actions {
        margin-bottom: 50px;
        margin-top: 50px;

    }

    .back-link {
        font-size: 4rem;
    }

    .rsvp-container h1 {
        font-size: 8rem;
    }

    .rsvp-container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 28px 16px 40px;
        text-align: center;
    }

    .rsvp-container p {
        font-size: 5rem;
    }

    .rsvp-container .lead {
        margin-top: 70px;
        margin-bottom: 70px;
    }

    .rsvp-form {
        padding: 70px;
    }

    .field-group label {
        margin-bottom: 60px;
        font-size: 4rem;
    }

    .field-set legend {
        font-size: 4rem;
    }

    .field-group {
        margin-bottom: 60px;
    }

    .field-set label {
        margin-bottom: 60px;
    }

    .field-set {
        margin-bottom: 60px;
    }

    .radio span {
        font-size: 3.5rem;
    }

    .radio input {
        width: 40px;
        height: 40px;
    }

    .rsvp-form label {
        font-size: 4rem;

    }

    .btn-submit {
        margin-top: 60px;
        margin-bottom: 60px;
        padding: 30px 40px;
        font-size: 4rem;
    }
}






