:root {
    --ivory: #f6f1e6;
    --paper: #fffdf8;
    --navy: #1b2a45;
    --navy-2: #243656;
    --gold: #a8843c;
    --gold-2: #c6a15a;
    --ink: #241f1a;
    --muted: #6d655b;
    --line: rgba(27, 42, 69, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(1200px 500px at 50% -10%, rgba(198, 161, 90, 0.18), transparent 60%),
        var(--ivory);
    color: var(--ink);
    font-family: Outfit, "Segoe UI", sans-serif;
    font-weight: 400;
    line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
}
h1 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin: 0.1rem 0; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 0 0 0.6rem; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 4vw;
    position: sticky;
    top: 0;
    background: rgba(246, 241, 230, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 5;
}
.brand { text-decoration: none; font-weight: 600; letter-spacing: 0.04em; }
.brand span { color: var(--gold); font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; }
.topbar nav { display: flex; gap: 1.1rem; align-items: center; }
.topbar nav a { text-decoration: none; font-size: 0.95rem; }
.topbar button, .text-danger {
    background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit;
}
.hero { text-align: center; padding: 0.35rem 4vw 1.6rem; }
.hero p { margin: 0.2rem 0; }
.logo { width: min(380px, 62vw); height: auto; display: block; margin: 0 auto; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.75rem;
    color: var(--gold);
    margin: 0;
}
.place { color: var(--muted); font-size: 1.15rem; }
.countdown { color: var(--navy); font-weight: 500; margin-bottom: 0; }
.section-head { text-align: center; margin: 0.4rem 0 0.9rem; }
.diamond {
    display: block; width: 8px; height: 8px; margin: 0 auto 0.7rem;
    background: var(--gold); transform: rotate(45deg);
    box-shadow: 14px 0 0 var(--gold), -14px 0 0 var(--gold);
}
.frame {
    position: relative;
    background:
        linear-gradient(var(--paper), var(--paper)) padding-box,
        linear-gradient(135deg, var(--gold-2), #efe6d2 40%, var(--navy)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 10px 30px rgba(27, 42, 69, 0.05);
    padding: 1.35rem 1.3rem 1.2rem;
}
.frame::before, .frame::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    border: 1px solid var(--gold);
}
.frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.frame::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0 0 1rem;
}
.days article { text-align: left; padding: 0.85rem 0.9rem 1rem; display: flex; flex-direction: column; }
.day-ornament {
    padding-top: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
}
.slot-gap {
    flex: 1 1 auto;
    min-height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
}
.slot-gap::before,
.slot-gap::after {
    content: "";
    width: 2.4rem;
    height: 1px;
    background: var(--gold);
    opacity: 0.45;
}
.slot-gap span {
    width: 5px;
    height: 5px;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: 0.8;
}
.slot-gap span:nth-child(2) { width: 7px; height: 7px; opacity: 1; }
.day-ornament span {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: 0.85;
}
.day-ornament span:nth-child(2) { width: 8px; height: 8px; opacity: 1; }
.day-head { text-align: center; margin-bottom: 0.3rem; }
.days span, .days em, .days small { display: block; color: var(--muted); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; }
.slot { margin-top: 0.85rem; }
.slot h3 {
    margin: 0 0 0.2rem;
    font-family: Outfit, "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}
.slot p { margin: 0 0 0.35rem; font-size: 0.92rem; line-height: 1.45; }
.slot p.meal { font-weight: 700; color: var(--navy); }
.days strong {
    font-family: "Cormorant Garamond", serif;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
    font-size: 2.6rem; color: var(--navy); font-weight: 600; line-height: 0.9;
    display: block; margin: 0.2rem 0;
}
.days small { color: var(--gold); margin-top: 0.35rem; }
.prose { margin-top: 0.2rem; }
.prose h3, .place-card h3 { margin: 0 0 0.7rem; font-size: 2rem; color: var(--navy); text-align: center; }
.mark {
    margin: 0; text-align: center;
    color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 1.05rem; letter-spacing: 0.14em;
}
.subtitle {
    margin: -0.35rem 0 0.75rem;
    text-align: center;
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    font-style: italic;
}
.place-pair { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; }
.extra-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.extra-pair article { display: flex; flex-direction: column; }
.extra-pair .day-ornament { margin-top: auto; }
.band-logo { display: block; width: 148px; height: auto; margin: 0.15rem auto 0.35rem; }
.shirt-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; margin: 0.2rem 0 0.8rem; }
.shirt-photos img { width: 100%; height: 260px; object-fit: contain; background: #f7f4ee; border: 1px solid var(--line); }
.place-card .notice { font-weight: 700; color: var(--navy); }
.school { width: min(1080px, 92vw); margin: 0 auto 2.2rem; padding: 0 18px 18px 0; box-sizing: border-box; }
.school img {
    width: 100%; height: auto; display: block;
    border: 3px solid var(--navy);
    border-radius: 5.5rem 0.6rem 5.5rem 0.6rem;
    box-shadow: 16px 16px 0 var(--gold-2);
}
.school figcaption { margin: 0.55rem 0 0; text-align: center; color: var(--gold); font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.25rem; }
.lieu-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; margin-top: 0.9rem; }
.lieu-photos img { width: 100%; height: 150px; object-fit: cover; border: 1px solid var(--line); }
body.home .site-footer {
    min-height: 540px;
    margin-top: 0.4rem;
    padding: 16rem 1.2rem 2.8rem;
    border-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.35rem;
    background:
        linear-gradient(to bottom, var(--ivory) 0%, rgba(246, 241, 230, 0.2) 14%, rgba(18, 46, 30, 0.05) 36%, rgba(14, 40, 26, 0.62) 100%),
        url("/assets/img/lieu/vignes-vertes.jpg") center 78% / cover no-repeat;
}
body.home .site-footer p { color: #f6f3ea; text-shadow: 0 1px 10px rgba(8, 24, 16, 0.45); }
.place-card p { margin: 0 0 0.7rem; color: #3c372f; }
.lodging { background: linear-gradient(180deg, #fffdf8, #f3ecdc); }
.lodging .notice { font-weight: 700; color: var(--navy); }
.section { width: min(1080px, 92vw); margin: 0 auto 2rem; scroll-margin-top: 4.2rem; }
.lead { color: var(--muted); max-width: 42rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card, .panel {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 1.25rem 1.3rem;
}
.card h3 { margin: 0 0 0.6rem; font-size: 1.7rem; color: var(--navy); }
.card p { margin: 0 0 0.7rem; color: #3c372f; }
.access { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; align-items: stretch; }
.access-copy h2 { margin-top: 0.3rem; }
.private-notes { margin: 2.2rem 0 1.4rem; }
.audience { margin: 0 0 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; color: var(--gold); }
.map { display: block; width: 100%; min-height: 420px; height: 100%; border: 1px solid var(--line); }
.access-list { padding-left: 1.1rem; color: #3c372f; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; cursor: pointer; text-decoration: none;
    padding: 0.7rem 1.1rem; font: inherit;
}
.btn-navy { background: var(--navy); color: #f6f1e6; }
.btn-gold { background: var(--gold); color: white; }
.btn-line { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.narrow { width: min(640px, 92vw); margin: 3rem auto 4rem; }
.wide { width: min(980px, 92vw); margin: 1.5rem auto 3rem; }
.panel label, .stack label, fieldset label { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; font-size: 0.92rem; }
.ride-search, .ride-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-items: end; margin: 1.2rem 0 1.4rem; }
.stop-list { grid-column: 1 / -1; display: grid; gap: 0.55rem; margin-bottom: 0.9rem; }
.stop-row { display: grid; grid-template-columns: 1fr 8.5rem auto; gap: 0.5rem; align-items: center; }
.ride ol { margin: 0.2rem 0 0.6rem; padding-left: 1.1rem; }
.passengers { font-weight: 600; color: var(--navy); }
.join { display: flex; gap: 0.5rem; align-items: end; margin-top: 0.4rem; }
.join label { margin: 0; }
.pending { margin-top: 0.6rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.ride-date { margin: 0 0 0.35rem; font-weight: 700; color: var(--navy); }
.ride-search button, .ride-form button { margin-bottom: 0.9rem; }
.ride-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.6rem; }
.ride h2 { margin: 0.2rem 0 0.4rem; font-size: 1.8rem; }
.ride p { margin: 0 0 0.45rem; }
.hint { color: var(--muted); font-size: 0.8rem; }
input[type="checkbox"] { width: 1rem; height: 1rem; padding: 0; }
.checkline, .recipients label { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.35rem; }
.recipients { margin: 0.4rem 0 1rem; }
.mail-body { white-space: pre-wrap; font: inherit; margin: 0.6rem 0; }
details.panel summary { cursor: pointer; font-weight: 600; }
input, textarea, select {
    font: inherit; padding: 0.65rem 0.7rem; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.stay dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1rem; margin: 0 0 1rem; }
.stay dt { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stay dd { margin: 0; }
.lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.lines li, .line-row { display: flex; justify-content: space-between; gap: 0.7rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.balance { display: flex; justify-content: space-between; align-items: baseline; background: var(--navy); color: #f6f1e6; padding: 1rem 1.1rem; }
.balance strong { font-family: "Cormorant Garamond", serif; font-size: 2.2rem; }
.balance.settled { background: #2f5d45; }
.gallery { columns: 3 240px; column-gap: 0.8rem; margin-top: 1.5rem; }
.gallery figure { break-inside: avoid; margin: 0 0 0.8rem; background: var(--paper); border: 1px solid var(--line); }
.gallery img, .gallery video { width: 100%; display: block; }
.gallery figcaption { padding: 0.6rem 0.7rem; font-size: 0.88rem; display: grid; gap: 0.2rem; }
.drop { border: 1px dashed var(--gold-2); padding: 1rem; text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.people { width: 100%; border-collapse: collapse; background: var(--paper); }
.people th, .people td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--line); }
.split-head, .flash { width: min(980px, 92vw); margin: 1rem auto; display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.flash { padding: 0.8rem 1rem; background: #e7f0e4; }
.flash-error { background: #f8e6e1; }
.site-footer { text-align: center; color: var(--muted); padding: 2rem 1rem 3rem; border-top: 1px solid var(--line); }
.empty { color: var(--muted); }
.text-danger { color: #8d3b32; margin-top: 1rem; }
@media (max-width: 800px) {
    .access, .grid-2, .stay dl, .days, .place-pair, .extra-pair, .ride-search, .ride-form, .ride-list, .stop-row { grid-template-columns: 1fr; }
    .lieu-photos { grid-template-columns: 1fr 1fr; }
    .lieu-photos img { height: 120px; }
    .topbar { flex-wrap: wrap; align-items: flex-start; }
    .topbar nav { flex: 1 0 100%; flex-wrap: wrap; row-gap: 0.35rem; column-gap: 0.85rem; }
    .topbar nav a, .topbar nav button { white-space: nowrap; }
    .map { min-height: 280px; }
    .section { scroll-margin-top: 8rem; }
    .split-head { flex-direction: column; align-items: start; }
    .people { display: block; overflow-x: auto; }
}
