/* ───── Reset & Base ───── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #faf8f5;
    --color-bg-alt: #f1ece4;
    --color-text: #3a3631;
    --color-muted: #7c756b;
    --color-accent: #b08d6e;
    --color-accent-light: #d4bfa6;
    --color-white: #ffffff;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ───── Nav ───── */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(176, 141, 110, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#navbar.hidden {
    transform: translateY(-100%);
}

#navbar ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0.8rem 1rem;
}

#navbar a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-muted);
    transition: color 0.25s;
    padding: 0.25rem 0;
    position: relative;
}

#navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.25s;
}

#navbar a:hover,
#navbar a.active {
    color: var(--color-accent);
}

#navbar a:hover::after,
#navbar a.active::after {
    width: 100%;
}

/* ───── Hero ───── */

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-bg-alt);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(250, 248, 245, 0) 0%,
        rgba(250, 248, 245, 0.4) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

#hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.15;
}

#hero h1 .amp {
    font-style: italic;
    color: var(--color-accent);
    margin: 0 0.15em;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.hero-date p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.hero-line {
    display: block;
    width: 3rem;
    height: 1px;
    background: var(--color-accent-light);
}

.hero-photo-placeholder {
    margin-top: 2.5rem;
}

.scroll-arrow {
    position: absolute;
    bottom: 2rem;
    font-size: 1.5rem;
    color: var(--color-accent);
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ───── Sections ───── */

.section {
    padding: 5rem 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.section-alt {
    max-width: 100%;
    background: var(--color-bg-alt);
}

.section-alt > .section-header,
.section-alt > .programme-venue,
.section-alt > .programme-timeline,
.section-alt > .infos-grid {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-number {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-accent-light);
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--color-text);
}

.section-divider {
    width: 3rem;
    height: 1px;
    background: var(--color-accent);
    margin: 1rem auto 0;
}

/* ───── Placeholders ───── */

.photo-placeholder, .map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border: 2px dashed var(--color-accent-light);
    border-radius: 8px;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.photo-placeholder.portrait {
    width: 220px;
    height: 300px;
    margin: 0 auto 1.2rem;
}

.photo-placeholder.landscape {
    width: 100%;
    height: 320px;
}

.map-placeholder {
    width: 100%;
    height: 260px;
    margin-top: 1rem;
}

.placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.section-alt .photo-placeholder,
.section-alt .map-placeholder {
    background: var(--color-white);
}

/* ───── Notre histoire ───── */

.histoire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.histoire-card {
    text-align: center;
}

.histoire-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.histoire-bio {
    color: var(--color-muted);
    font-size: 0.95rem;
    max-width: 320px;
    margin: 0 auto;
}

/* Notre histoire (sous-section) */

.notre-histoire {
    margin-top: 3rem;
    text-align: center;
}

.section-sub-header h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.histoire-rencontre {
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.histoire-rencontre .photo-placeholder,
.histoire-rencontre img {
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.histoire-texte {
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
}

/* ───── Programme ───── */

.programme-venue {
    margin-bottom: 2rem;
    padding: 0;
    text-align: center;
}

.venue-photo {
    width: 100%;
    max-height: 520px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: 0 6px 30px rgba(0,0,0,0.12);
}

.programme-date {
    font-family: var(--font-display);
    font-size: 1.8rem;
    text-align: center;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.programme-rebond {
    max-width: 500px;
    margin: 1rem auto 0;
    padding: 1.5rem 2rem;
    text-align: center;
    background: var(--color-accent-light);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
}

.programme-timeline {
    position: relative;
    padding: 0 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.programme-timeline::before {
    content: '';
    position: absolute;
    /* padding(2rem) + hour(60px) + gap(1.5rem) + half-dot(6px) */
    left: calc(2rem + 60px + 1.5rem + 6px);
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--color-accent-light);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-hour {
    flex: 0 0 60px;
    text-align: right;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-accent);
    padding-top: 0.1rem;
}

.timeline-dot {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    margin-top: 0.35rem;
    position: relative;
    z-index: 1;
}

.timeline-detail h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.timeline-detail .timeline-address {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-style: italic;
    margin-top: 0.1rem;
}

.timeline-detail .timeline-day {
    color: var(--color-accent);
    font-size: 0.82rem;
    font-style: italic;
    font-weight: 600;
    margin-top: 0.1rem;
    margin-bottom: 0.2rem;
}

.timeline-detail p {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* ───── RSVP ───── */

.rsvp-box {
    max-width: 560px;
    margin: 0 auto;
}

.rsvp-intro {
    text-align: center;
    color: var(--color-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.rsvp-welcome {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--color-accent-light);
    border-radius: 6px;
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--color-text);
}

.radio-label input[type="radio"] {
    accent-color: var(--color-accent);
    width: 1rem;
    height: 1rem;
}

.btn {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 6px;
    background: var(--color-accent);
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
    align-self: center;
    margin-top: 0.5rem;
}

.btn:hover {
    background: #9a7a5f;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.form-error {
    color: #c0392b;
    text-align: center;
    font-size: 0.9rem;
}

.form-success {
    color: #27ae60;
    text-align: center;
    font-size: 0.9rem;
}

/* ───── Infos ───── */

.infos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 0 2rem;
}

.info-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.info-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
}

.info-card p {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.info-list {
    list-style: none;
    text-align: left;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.info-list li::before {
    content: '•';
    color: var(--color-accent);
    margin-right: 0.5rem;
}

/* ───── Footer ───── */

footer {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--color-text);
    color: var(--color-bg);
}

footer p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
}

/* ───── Animations (scroll reveal) ───── */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ───── Responsive ───── */

@media (max-width: 768px) {
    #navbar ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    #navbar a {
        font-size: 0.7rem;
    }

    .histoire-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .infos-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3.5rem 1.2rem;
    }

    .programme-timeline::before {
        display: none;
    }

    .photo-placeholder.portrait {
        width: 180px;
        height: 250px;
    }

    .photo-placeholder.landscape {
        height: 220px;
    }
}

@media (max-width: 480px) {
    #navbar ul {
        gap: 0.6rem;
        padding: 0.6rem 0.5rem;
    }

    #navbar a {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }
}
