:root {
    --paper: #efe6d8;
    --paper-card: rgba(255, 250, 243, 0.86);
    --ink: #2a211b;
    --ink-soft: #65594e;
    --garnet: #8c3a36;
    --garnet-deep: #6f2c29;
    --gold: #a68445;
    --line: rgba(42, 33, 27, 0.12);
    --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
    --sans: "Outfit", "Segoe UI", sans-serif;
    --shadow: 0 24px 60px rgba(62, 40, 24, 0.08);
}

* { box-sizing: border-box; }

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

body {
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.5;
}

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

::selection { background: #ead3ae; }

:focus-visible {
    outline: 2px solid var(--garnet);
    outline-offset: 3px;
}

.page-paper {
    min-height: 100vh;
    background: var(--paper);
}

.atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 8% -10%, rgba(176, 92, 74, 0.18), transparent 60%),
        radial-gradient(700px 480px at 110% 10%, rgba(196, 156, 84, 0.2), transparent 55%),
        radial-gradient(800px 500px at 50% 120%, rgba(140, 58, 54, 0.08), transparent 50%);
}

.topbar {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 740px;
    margin: 0 auto;
    padding: 1.4rem 1.25rem 0;
}

.mark {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 620;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.sheet, .gate {
    position: relative;
    z-index: 1;
    width: min(740px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.2rem 0 4rem;
}

.gate {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 560;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.for {
    margin: 0.7rem 0 0;
    font-family: var(--serif);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-style: italic;
    font-weight: 500;
}

.lede {
    max-width: 38rem;
    margin: 1.1rem 0 0;
    color: var(--ink-soft);
    font-size: 1.12rem;
}

.received {
    margin: 1.1rem 0 0;
    color: var(--ink);
    font-size: 0.95rem;
}

.card {
    margin-top: 1.6rem;
    padding: 1.3rem;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.field { margin-bottom: 1.15rem; }

.field label, .label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.field label span {
    color: var(--ink-soft);
    font-weight: 400;
}

input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], select, textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    background: #fffdf9;
    border: 1px solid rgba(42, 33, 27, 0.16);
    border-radius: 14px;
    font-size: 1rem;
}

textarea { resize: vertical; min-height: 6.2rem; }

input::placeholder, textarea::placeholder { color: #9a8d80; }

.hint {
    margin: 0.45rem 0 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.hint-error { color: var(--garnet-deep); }

.password-row { display: flex; gap: 0.6rem; align-items: center; }

.password-row input { flex: 1; }

.dropzone {
    position: relative;
    display: grid;
    place-items: center;
    gap: 0.2rem;
    min-height: 160px;
    padding: 1.4rem;
    text-align: center;
    background:
        linear-gradient(#fffdf9, #fffdf9) padding-box,
        repeating-linear-gradient(90deg, rgba(166, 132, 69, 0.7) 0 10px, transparent 10px 18px) border-box;
    border: 1.5px dashed rgba(166, 132, 69, 0.55);
    border-radius: 18px;
    cursor: pointer;
}

.dropzone.is-over {
    background: #fff7ea;
    border-color: var(--garnet);
}

.dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.drop-title {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 560;
}

.drop-sub { color: var(--ink-soft); }

.previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 0.7rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.previews:empty { display: none; }

.preview {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #e7dccb;
    aspect-ratio: 1;
}

.preview img { width: 100%; height: 100%; object-fit: cover; }

.preview button {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(42, 33, 27, 0.78);
    color: white;
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 0.3rem;
    padding: 0.85rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--garnet);
    color: #fffaf3;
    font-weight: 600;
    cursor: pointer;
}

.button:hover { background: var(--garnet-deep); }

.button:disabled { opacity: 0.65; cursor: progress; }

.text-button {
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    white-space: nowrap;
}

.text-button.light { color: rgba(255, 246, 236, 0.72); }

a.text-button { text-decoration: none; }

.curtain-links { margin: 1.3rem 0 0; }

.banner {
    margin-top: 1.3rem;
    padding: 0.95rem 1rem;
    background: #fffaf3;
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--garnet);
    border-radius: 14px;
}

.banner p, .banner ul { margin: 0; }

.banner ul { padding-inline-start: 1.1rem; }

.banner-error { border-inline-start-color: #8c3a36; }

.privacy {
    margin: 1.1rem 0 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.page-cinema {
    min-height: 100vh;
    background: #100e0c;
    color: #fff6ec;
}

.page-cinema :focus-visible { outline-color: #e6c98a; }

.curtain {
    width: min(760px, calc(100% - 2.4rem));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-cinema h1 { color: #fff6ec; }

.page-cinema .lede { color: rgba(255, 246, 236, 0.74); }

.share {
    margin: 1rem 0 0;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(255, 246, 236, 0.06);
    color: #f3e2c4;
    word-break: break-all;
}

.shuffle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.4rem;
    cursor: pointer;
}

.shuffle input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--garnet);
}

.page-cinema .button { width: auto; margin-top: 1.2rem; padding-inline: 1.6rem; }

.keys {
    margin: 0.9rem 0 0;
    color: rgba(255, 246, 236, 0.55);
    font-size: 0.92rem;
}

.curtain form { margin-top: 1.4rem; }

.show {
    position: fixed;
    inset: 0;
    background: #090807;
    display: flex;
    flex-direction: column;
}

.show[hidden] { display: none; }

.progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 6;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
}

.progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: #e0c083;
    transform: scaleX(0);
    transform-origin: left center;
}

.stage {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 700ms ease;
}

.layer.is-on { opacity: 1; z-index: 1; }

.layer .bg {
    position: absolute;
    inset: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    object-fit: cover;
    filter: blur(32px) brightness(0.42) saturate(0.85);
}

.layer .fg {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1500px);
    max-height: calc(100vh - 8.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.layer.is-on.drift .fg { animation: drift 14s ease-out forwards; }

@keyframes drift {
    from { transform: scale(1); }
    to { transform: scale(1.045); }
}

.bottom-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.2rem;
    padding: 4.5rem 4vw 1.3rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.caption { min-width: 0; max-width: 42rem; }

.counter {
    margin: 0 0 0.25rem;
    color: #e0c083;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.who {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 560;
    letter-spacing: -0.03em;
}

.note {
    margin: 0.35rem 0 0;
    max-width: 38rem;
    color: rgba(255, 246, 236, 0.84);
    font-family: var(--serif);
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 500;
}

.hud {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    transition: opacity 0.35s ease;
}

.show.is-idle .hud { opacity: 0; }

.ctrl {
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 246, 236, 0.22);
    border-radius: 999px;
    background: rgba(16, 14, 12, 0.45);
    color: #fff6ec;
    cursor: pointer;
}

.ctrl:hover { background: rgba(255, 246, 236, 0.12); }

@media (max-width: 720px) {
    .bottom-bar { flex-direction: column; align-items: stretch; padding-top: 3rem; }
    .hud { justify-content: flex-start; }
    .layer .fg { max-height: calc(100vh - 13rem); }
}

@media (prefers-reduced-motion: reduce) {
    .layer, .hud { transition: none; }
    .layer.is-on .fg { animation: none; }
}

.board-top { max-width: 1080px; }

.board-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.board-nav a { color: var(--ink-soft); text-decoration: none; }

.board {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
}

.board h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }

.order-status {
    min-height: 1.4rem;
    margin: 0.8rem 0 0;
    color: var(--gold);
    font-size: 0.92rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.photo-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.photo-card.is-dragging { opacity: 0.4; }

.photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e7dccb;
}

.photo-meta { padding: 0.9rem 0.95rem 1rem; }

.photo-index {
    margin: 0;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.who-small {
    margin: 0.25rem 0 0;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 560;
}

.note-small {
    margin: 0.25rem 0 0;
    color: var(--ink-soft);
    font-family: var(--serif);
    font-style: italic;
}

.photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.photo-actions form { margin: 0; }

.chip {
    min-height: 36px;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffdf9;
    cursor: pointer;
    font-size: 0.88rem;
}

.chip:disabled { opacity: 0.4; cursor: default; }

.handle { cursor: grab; }

.chip.danger { color: var(--garnet-deep); }

/* ---- Plateforme multi-événements ---- */

h2 {
    margin: 0 0 0.6rem;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 560;
    letter-spacing: -0.02em;
}

.card-title { font-size: 1.35rem; }

a.button { text-decoration: none; }

.button-ghost {
    background: transparent;
    color: var(--garnet);
    border: 1px solid var(--garnet);
}

.button-ghost:hover { background: rgba(140, 58, 54, 0.08); color: var(--garnet-deep); }

.button-paypal { background: #1f3a6d; }

.button-paypal:hover { background: #172c54; }

.banner-gold { border-inline-start-color: var(--gold); }

.perks {
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.perks li {
    padding-inline-start: 1.6rem;
    position: relative;
    color: var(--ink-soft);
}

.perks li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: var(--garnet);
    font-weight: 600;
}

.perks strong { color: var(--ink); }

.perks.small { margin: 0 0 1rem; font-size: 0.95rem; }

.how { margin-top: 2.4rem; }

.how ol { margin: 0; padding-inline-start: 1.2rem; color: var(--ink-soft); display: grid; gap: 0.4rem; }

.panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
}

.panel { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.35rem; }

.panel .button { margin-top: auto; }

.board-section { margin-top: 2.4rem; }

.meter-label { margin: 0; font-size: 1.05rem; }

.meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(42, 33, 27, 0.08);
    overflow: hidden;
}

.meter span { display: block; height: 100%; background: var(--garnet); border-radius: inherit; }

.locked { margin: 0; font-weight: 600; }

.copy-row { display: flex; gap: 0.5rem; align-items: center; margin: 0.4rem 0; }

.copy-row input { flex: 1; min-width: 0; font-size: 0.92rem; }

.paywall { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }

.paywall p { margin: 0; flex: 1 1 18rem; }

.paywall .button { width: auto; flex: 0 0 auto; padding-inline: 1.6rem; }

.share-box {
    margin: 0;
    padding: 0.85rem 0.95rem;
    background: #fffdf9;
    border: 1px dashed rgba(42, 33, 27, 0.25);
    border-radius: 14px;
    overflow-wrap: anywhere;
}

.share-box.recovery code { font-size: 1.15rem; letter-spacing: 0.08em; font-weight: 600; }

.lock-note { text-align: center; }

.stack + .stack { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

.stepper { display: flex; gap: 0.5rem; align-items: center; max-width: 14rem; }

.stepper input { text-align: center; }

.pay-buttons { display: grid; gap: 0.6rem; }

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    font-size: 0.94rem;
    display: block;
    overflow-x: auto;
}

.table th, .table td { padding: 0.7rem 0.9rem; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }

.table th { color: var(--ink-soft); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }

.stat-label { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

.stat-value { margin: 0.2rem 0 0; font-family: var(--serif); font-size: 2rem; }

.toggle { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 1rem; font-weight: 600; cursor: pointer; }

.toggle.small { margin: 0.5rem 0 0; font-weight: 400; font-size: 0.9rem; }

.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 1rem; }

.test-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.board-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.sheet h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }

.search-row { display: flex; gap: 0.6rem; align-items: center; margin-top: 1.4rem; flex-wrap: wrap; }

.search-row input { flex: 1 1 16rem; }

.event-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.8rem; }

.event-row { margin-top: 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; }

.event-info { flex: 1 1 20rem; min-width: 0; }

.event-info p { margin: 0; }

.danger-zone { flex: 0 1 26rem; }

.danger-zone summary { list-style: none; display: inline-block; cursor: pointer; }

.danger-zone summary::-webkit-details-marker { display: none; }

.danger-zone form { margin-top: 0.8rem; }

.danger-zone label { display: block; font-size: 0.88rem; margin-bottom: 0.4rem; }

.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }

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

/* ---- Création directe depuis l'accueil ---- */

.creator { margin-top: 1.8rem; padding: 1.6rem; }

.step { display: flex; align-items: center; gap: 0.6rem; font-size: 1rem; }

.step-number {
    display: inline-grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: var(--garnet);
    color: #fffaf3;
    font-size: 0.85rem;
    font-weight: 600;
    flex: 0 0 auto;
}

input.input-hero {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 3.4vw, 1.7rem);
    padding: 1rem 1.1rem;
}

.button-hero { min-height: 60px; font-size: 1.1rem; }

.pricing-note { margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.9rem; text-align: center; }

.draft-banner { border-color: rgba(166, 132, 69, 0.45); background: #fff7e8; }

.preview-cta {
    display: inline-block;
    margin-top: 1.2rem;
    color: var(--garnet);
    font-weight: 600;
    text-decoration: none;
}

.preview-cta:hover { text-decoration: underline; }

.field label.dropzone { display: grid; margin-bottom: 0; }

.field label .drop-title { color: var(--ink); font-weight: 560; }

.field label.step { display: flex; }

.field label .step-number { color: #fffaf3; font-weight: 600; }

/* ---- Facturation ---- */

.billing { margin: 0 0 1.2rem; padding: 0; border: 0; }

.billing legend { padding: 0; margin-bottom: 0.7rem; font-family: var(--serif); font-size: 1.2rem; }

.billing-more summary { cursor: pointer; color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.8rem; }

.countdown { margin: 0 0 0.4rem; font-family: var(--serif); font-size: 1.5rem; color: var(--garnet); }

.status-pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.8rem; background: rgba(42, 33, 27, 0.07); }

.status-pill.warn { background: #fdecea; color: var(--garnet-deep); }

.table a { color: var(--garnet); }

.inline-field { display: flex; align-items: center; gap: 0.4rem; font-size: 0.92rem; color: var(--ink-soft); }

input[type="date"] { padding: 0.55rem 0.7rem; background: #fffdf9; border: 1px solid rgba(42, 33, 27, 0.16); border-radius: 12px; font: inherit; color: inherit; }

.board-nav { flex-wrap: wrap; justify-content: flex-end; }

/* ---- Comptes ---- */

.tabs { display: flex; gap: 0.4rem; margin-top: 1.6rem; padding: 0.3rem; background: rgba(42, 33, 27, 0.06); border-radius: 999px; }

.tab { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font-weight: 600; cursor: pointer; }

.tab[aria-selected="true"] { background: #fffaf3; color: var(--ink); box-shadow: 0 2px 8px rgba(62, 40, 24, 0.08); }

.tabs + .card { margin-top: 0.8rem; }

form[hidden] { display: none; }

.account-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.8rem; }

.account-list .card { margin-top: 0; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

.account-list .card .button { width: auto; padding-inline: 1.4rem; margin-top: 0; }

.topbar nav { display: flex; gap: 1rem; align-items: center; }

.topbar nav a { color: var(--ink-soft); text-decoration: none; }

/* ---- Pages publiques (SEO) ---- */

.sheet h2 { margin-top: 0; }

.sheet > section { margin-top: 3rem; }

.steps { list-style: none; counter-reset: step; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.9rem; }

.steps li { counter-increment: step; position: relative; padding-inline-start: 2.6rem; }

.steps li::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: 0;
    top: 0.1rem;
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: var(--garnet);
    color: #fffaf3;
    font-weight: 600;
    font-size: 0.9rem;
}

.steps h3, .benefit-grid h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }

.steps p, .benefit-grid p { margin: 0; color: var(--ink-soft); }

.benefit-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.benefit-grid .card { margin-top: 0; }

.occasion-links { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.occasion-links a { margin-top: 0; display: flex; flex-direction: column; gap: 0.2rem; height: 100%; color: inherit; text-decoration: none; }

.occasion-links a span { color: var(--ink-soft); font-size: 0.9rem; }

.occasion-links a:hover strong { color: var(--garnet); }

.pricing-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.price-card { margin-top: 1rem; }

.price-card.featured { border-color: var(--garnet); }

.price-name { margin: 0; color: var(--gold); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.price-amount { margin: 0.3rem 0 0.6rem; font-family: var(--serif); font-size: 2rem; }

.price-amount span { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); }

.price-card ul { margin: 0; padding-inline-start: 1.1rem; color: var(--ink-soft); display: grid; gap: 0.3rem; }

.center { text-align: center; }

.faq-item { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }

.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after { content: "+"; color: var(--garnet); font-size: 1.3rem; line-height: 1; }

.faq-item[open] summary::after { content: "−"; }

.faq-item h3 { margin: 0; font-size: 1.02rem; font-weight: 600; font-family: var(--sans); }

.faq-item p { margin: 0.6rem 0 0; color: var(--ink-soft); }

.final-cta { text-align: center; }

.final-cta .button { width: auto; padding-inline: 2rem; text-decoration: none; }

.breadcrumb { margin-bottom: 1rem; font-size: 0.85rem; color: var(--ink-soft); }

.breadcrumb a { color: var(--ink-soft); }

.site-footer {
    position: relative;
    z-index: 1;
    width: min(740px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--line);
}

.footer-title { margin: 0 0 0.6rem; font-weight: 600; }

.site-footer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

.site-footer a { color: var(--ink-soft); }

/* ---- QR code et direct ---- */

.qr-share { display: flex; gap: 1rem; align-items: center; margin-top: 0.6rem; flex-wrap: wrap; }

.qr-share img { flex: 0 0 auto; border-radius: 10px; background: #fff; padding: 4px; border: 1px solid var(--line); }

.qr-share > div { flex: 1 1 12rem; }

.qr-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0; }

.qr-actions .chip { display: inline-flex; align-items: center; }

.live-qr {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.9rem 0.7rem 0.7rem;
    background: rgba(16, 14, 12, 0.72);
    border: 1px solid rgba(255, 246, 236, 0.14);
    border-radius: 16px;
    color: #fff6ec;
    backdrop-filter: blur(6px);
}

.live-qr img { width: clamp(88px, 11vw, 150px); height: auto; border-radius: 8px; background: #fff; padding: 4px; }

.live-qr p { margin: 0; max-width: 9rem; font-size: 0.95rem; line-height: 1.3; }

.live-qr strong { display: block; font-family: var(--serif); font-size: 1.15rem; }

.live-qr[hidden] { display: none; }

.live-toast {
    position: absolute;
    left: 50%;
    top: 1.4rem;
    z-index: 4;
    transform: translate(-50%, -200%);
    opacity: 0;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: #fff6ec;
    color: #2a211b;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 400ms ease, opacity 400ms ease;
    pointer-events: none;
}

.live-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

.fresh-badge { display: inline-block; margin-inline-start: 0.5rem; padding: 0.05rem 0.55rem; border-radius: 999px; background: var(--garnet); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; }

.live-dot { display: inline-flex; align-items: center; gap: 0.4rem; color: rgba(255, 246, 236, 0.74); font-size: 0.9rem; }

.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #e0574f; animation: pulse 1.6s ease-in-out infinite; }

@keyframes pulse { 50% { opacity: 0.3; } }

@media (prefers-reduced-motion: reduce) {
    .live-toast { transition: none; }
    .live-dot::before { animation: none; }
}

@media (max-width: 720px) {
    .live-qr p { display: none; }
}

/* ---- Ambiance : polaroïds dans les marges ---- */

.ambiance { display: none; }

.ambiance-strip {
    position: absolute;
    z-index: 2;
    top: 0.9rem;
    left: 50%;
    display: flex;
    transform: translateX(-50%);
    pointer-events: none;
}

.ambiance-strip img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border: 4px solid #fffdf9;
    border-bottom-width: 8px;
    border-radius: 3px;
    box-shadow: 0 6px 16px rgba(62, 40, 24, 0.16);
    filter: saturate(0.88) sepia(0.12);
}

.ambiance-strip img:nth-child(1) { transform: rotate(-7deg); }
.ambiance-strip img:nth-child(2) { transform: rotate(4deg) translateY(-4px); margin-left: -10px; z-index: 1; }
.ambiance-strip img:nth-child(3) { transform: rotate(-2deg); margin-left: -10px; }

@media (min-width: 1200px) {
    .ambiance-strip { display: none; }

    .ambiance {
        display: block;
        position: absolute;
        inset: 0 0 auto 0;
        height: 1500px;
        overflow: hidden;
        pointer-events: none;
        z-index: 0;
    }

    .polaroid {
        position: absolute;
        width: clamp(170px, calc((100vw - 760px) / 2 - 90px), 230px);
        margin: 0;
        padding: 10px 10px 0;
        background: #fffdf9;
        border-radius: 3px;
        box-shadow: 0 18px 40px rgba(62, 40, 24, 0.14), 0 2px 6px rgba(62, 40, 24, 0.08);
    }

    .polaroid img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: cover;
        filter: saturate(0.9) sepia(0.1) contrast(0.97);
    }

    .polaroid figcaption {
        padding: 0.55rem 0.2rem 0.75rem;
        color: var(--ink-soft);
        font-family: var(--serif);
        font-size: 0.92rem;
        font-style: italic;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Colonne de gauche */
    .polaroid-1 { top: 120px; right: calc(50% + 420px); transform: rotate(-6deg); }
    .polaroid-3 { top: 520px; right: calc(50% + 450px); transform: rotate(4deg); }
    .polaroid-5 { top: 920px; right: calc(50% + 425px); transform: rotate(-3deg); }

    /* Colonne de droite */
    .polaroid-2 { top: 200px; left: calc(50% + 420px); transform: rotate(5deg); }
    .polaroid-4 { top: 600px; left: calc(50% + 445px); transform: rotate(-5deg); }
    .polaroid-6 { top: 1000px; left: calc(50% + 425px); transform: rotate(3deg); }
}

@media (min-width: 1200px) and (max-height: 760px) {
    .polaroid-5, .polaroid-6 { display: none; }
}

@media print {
    .ambiance, .ambiance-strip { display: none !important; }
}

/* ---- Sélecteur de langue (drapeau en haut à droite) ---- */

.lang-switch {
    position: absolute;
    z-index: 30;
    top: 1.2rem;
    inset-inline-end: 1rem;
    font-size: 0.82rem;
}

.lang-switch summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-card);
    color: var(--ink-soft);
    font-weight: 600;
    letter-spacing: 0.04em;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: "▾"; font-size: 0.7rem; opacity: 0.7; }
.lang-switch[open] summary { color: var(--ink); background: #fffaf3; }

.flag {
    display: block;
    flex: none;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(42, 33, 27, 0.14);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    inset-inline-end: 0;
    min-width: 11.5rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: 0 18px 40px rgba(62, 40, 24, 0.16);
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.95rem;
    text-decoration: none;
}

.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(140, 58, 54, 0.08); }
.lang-menu a[aria-current] { font-weight: 600; background: rgba(140, 58, 54, 0.06); }

/* La barre du haut laisse la place au sélecteur quand l'écran est étroit. */
@media (max-width: 960px) {
    .topbar { padding-inline-end: 6rem; }
}

@media (max-width: 1240px) {
    .board-top { padding-inline-end: 6rem; }
}

/* Mobile : le drapeau passe dans une fine bande au-dessus de la barre, pour
   laisser les polaroïds entre le logo et le lien du compte. */
@media (max-width: 720px) {
    .lang-switch { top: 0.4rem; inset-inline-end: 0.6rem; font-size: 0.72rem; }
    .lang-switch summary { padding: 0.18rem 0.5rem; gap: 0.3rem; }
    .topbar, .board-top { padding-top: 2.5rem; padding-inline-end: 1.25rem; }
    .ambiance-strip { top: 2rem; }
}

@media print {
    .lang-switch { display: none; }
}

/* ---- Continuer avec Google ---- */

.button-google {
    gap: 0.7rem;
    border: 1px solid rgba(42, 33, 27, 0.18);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(62, 40, 24, 0.06);
}

.button-google:hover { background: #fbf8f4; }

.or-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.1rem 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.or-divider::before, .or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
