/* ================================================================
   STYLE.CSS — Page d'invitation
   Design éditorial / typographique
================================================================ */



@font-face {
   font-family: "SuisseWorks";
   src: url("/fonts/SuisseWorks-Regular.woff2") format("woff2");
   font-display: swap;
   font-weight: 400;
}
 
@font-face {
   font-family: "SuisseWorks";
   src: url("/fonts/SuisseWorks-Bold.woff2") format("woff2");
   font-display: swap;
   font-weight: 900;
}
  
@font-face {
   font-family: "SuisseIntl";
   src: url("/fonts/SuisseIntl-Regular.woff2") format("woff2");
   font-display: swap;
   font-weight: 400;
}
   
   
@font-face {
   font-family: "SuisseIntl";
   src: url("/fonts/SuisseIntl-Medium.woff2") format("woff2");
   font-display: swap;
   font-weight: 600;
 }
 
@font-face {
   font-family: "SuisseIntl";
   src: url("/fonts/SuisseIntl-Bold.woff2") format("woff2");
   font-display: swap;
   font-weight: 900;
}





/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "SuisseIntl" !important;
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-text); text-decoration: underline; }
a:hover { opacity: .65; }









.hidden { display: none !important; }

/* ── Conteneurs ───────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
.container-wide {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ── Boutons ──────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-ghost, .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 4px 8px;
    border: 1.5px solid transparent;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 100px;
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-text-on-primary);
    border-color: var(--color-text);
}
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); opacity: 1; }

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-text);
}
.btn-secondary:hover { background: var(--color-text); color: var(--color-text-on-primary); opacity: 1; text-decoration: none; }

.btn-ghost {
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border-color: var(--color-border-light);
}
.btn-ghost:hover { background: var(--color-surface-alt); opacity: 1; text-decoration: none; }

.btn-danger {
    background: var(--color-error);
    color: var(--color-text-on-primary);
    border-color: var(--color-error);
}
.btn-danger:hover { opacity: .8; text-decoration: none; }

.btn-sm { padding: 6px var(--space-md); font-size: 10px; }

/* ── Modal d'entrée nom ───────────────────────────────────────── */
html.has-guest #name-modal { display: none; }
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(24, 37, 36, 0.88);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    padding: var(--space-lg);
    animation: fadeIn .25s ease;
}

.modal-box {
    background: var(--color-surface);
    padding: var(--space-3xl) var(--space-2xl);
    max-width: 440px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--color-border);
    animation: slideUp .35s ease;
}

.modal-deco {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    letter-spacing: .4em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.modal-box h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -.02em;
    margin-bottom: var(--space-sm);
}

.modal-box p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    font-size: var(--text-base);
}

/* Inscription (principal) + connexion (secondaire) */
.auth-block { text-align: left; }
.auth-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}
.modal-box p.auth-hint {
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}
.auth-login {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}
.modal-box p.auth-login-label {
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}
.auth-login-form { display: flex; gap: var(--space-sm); }
.auth-login-form input { flex: 1; min-width: 0; padding: 8px var(--space-md); font-size: var(--text-sm); }
.auth-login-form button { flex-shrink: 0; }
.modal-box p.auth-login-error {
    font-size: var(--text-sm);
    color: var(--color-error);
    margin: var(--space-sm) 0 0;
}

/* ── Formulaires ──────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-md); }

input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px var(--space-md);
    border: 1.5px solid var(--color-border-light);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition);
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--color-text);
}

.form-row {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}
.form-row input { flex: 1; min-width: 120px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
    min-height: var(--hero-min-height);
    background-color: var(--hero-bg-color);
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--hero-overlay);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: var(--space-3xl) var(--space-2xl);
    width: 100%;
    max-width: var(--max-width-wide);
    margin: 0 auto;
    animation: fadeInUp .9s ease both;
}

.hero-deco {
    font-size: var(--text-xs);
    letter-spacing: .35em;
    text-transform: uppercase;
    color: rgba(249,255,235,.5);
    margin-bottom: var(--space-xl);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(calc(var(--text-4xl) * 1.6), 11.2vw, calc(var(--text-5xl) * 1.6));
    color: var(--hero-text-color);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.03em;
    margin: 0 auto var(--space-xl);
    max-width: 820px;
    text-align: center;
}

.hero-line {
    width: 32px;
    height: 1px;
    background: rgba(249,255,235,.4);
    margin: 0 0 var(--space-xl);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    color: rgba(249,255,235,.65);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}
.hero-meta-sep { color: rgba(249,255,235,.3); }
.hero-meta[hidden], .hero-description[hidden] { display: none; }

.hero-description {
    color: rgba(249,255,235,.72);
    font-size: var(--text-base);
    max-width: 520px;
    margin: 0 auto var(--space-lg);
    text-align: left;
    line-height: 1.7;
}


/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: var(--space-3xl) 0; }
.section-alt { background: var(--color-surface-alt); }

.section-header {
    margin-bottom: var(--space-xl);
    padding-bottom: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    text-align: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.section-title {
    font-family: var(--font-heading);
    font-size: calc(var(--text-3xl) * 1.6);
    font-weight: 900;
    color: var(--color-text);
    letter-spacing:;
}

/* Pas de soulignement centré */
.section-title::after { display: none; }

/* Retours à la ligne saisis dans l'admin */
.hero-title, .section-title, .choice-section h3 { white-space: pre-line; }

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.rsvp-deadline-notice {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
}
.rsvp-deadline-notice.past {
    color: var(--color-error);
    font-style: italic;
}

/* ── Cartes d'info ─────────────────────────────────────────────── */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--color-border-light);
    border: 1px solid var(--color-border-light);
}

.info-card {
    background: var(--color-surface);
    padding: var(--space-2xl) var(--space-xl);
    text-align: left;
}
.info-card:hover { background: var(--color-surface-alt); }

.info-card-icon {
    width: 28px;
    height: 28px;
    margin-bottom: var(--space-md);
    color: var(--color-text);
    display: flex;
    align-items: center;
}
.info-card-icon .icon { width: 20px; height: 20px; }

.info-card h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: var(--space-md);
}

.info-card p {
    color: var(--color-text);
    font-size: var(--text-lg);
    font-weight: 500;
    line-height: 1.4;
}

.info-link {
    display: inline-block;
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text);
    text-decoration: underline;
}

/* ── RSVP ──────────────────────────────────────────────────────── */
.rsvp-container { text-align: center; }

.rsvp-current {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border-light);
    padding: var(--space-lg) var(--space-xl);
    display: inline-flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.rsvp-status-badge {
    display: inline-block;
    padding: 4px var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.status-yes   { background: #d4edda; color: #1e5c32; }
.status-no    { background: #f8d7da; color: #9e1c1c; }
.status-maybe { background: #fff3cd; color: #92550d; }

.rsvp-buttons {
    display: flex;
    gap: 1px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: var(--space-xl);
    background: var(--color-border-light);
    display: inline-flex;
}

.rsvp-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-2xl);
    border: none;
    background: var(--color-surface);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-text);
    min-width: 120px;
}
.rsvp-btn:hover { background: var(--color-surface-alt); }
.rsvp-btn.active { background: var(--color-text); color: var(--color-text-on-primary); }
.rsvp-btn.active .rsvp-icon { filter: invert(1); }

.rsvp-btn .rsvp-icon { font-size: 1.6rem; }

/* +1 */
.plus-ones-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.plus-ones-section h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}
.plus-one-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
}
.plus-one-item:last-of-type { border-bottom: none; }
.plus-one-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }

/* ── « Je remplis pour plusieurs personnes » (foyer / famille) ── */
.household-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.household-section h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}
.household-item {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
}
.household-item:last-of-type { border-bottom: none; }
.household-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.household-item-name { font-weight: 600; }
.household-item-controls {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}
.household-item-controls select,
.household-rsvp-select { flex: 0 0 auto; }
.household-item-controls input { flex: 1; min-width: 140px; }

/* ── Texte libre / Infos (Markdown) ───────────────────────────── */
.text-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--color-text);
}
.text-content > *:first-child { margin-top: 0; }
.gallery-text { margin-bottom: var(--space-xl); }
.text-content > *:last-child  { margin-bottom: 0; }

.text-content h1,
.text-content h2,
.text-content h3,
.text-content h4 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
    color: var(--color-text);
    text-align: center;
    margin: var(--space-xl) 0 var(--space-md);
}
.text-content h1 { font-size: calc(var(--text-2xl) * 1.6); }
.text-content h2 { font-size: calc(var(--text-xl) * 1.6); }
.text-content h3 { font-size: var(--text-lg); }
.text-content h4 { font-size: var(--text-base); text-transform: uppercase; letter-spacing: .08em; }

.text-content p { margin: 0 0 var(--space-md); }

.text-content ul,
.text-content ol { margin: 0 0 var(--space-md); padding-left: var(--space-xl); }
.text-content li { margin-bottom: var(--space-xs); }

.text-content a { text-decoration: underline; }

.text-content strong { font-weight: 900; }
.text-content em { font-style: italic; }

.text-content blockquote {
    margin: var(--space-lg) 0;
    padding: var(--space-sm) var(--space-lg);
    border-left: 3px solid var(--color-border);
    color: var(--color-text-secondary);
    font-style: italic;
}

.text-content hr {
    border: 0;
    border-top: 1px solid var(--color-border-light);
    margin: var(--space-xl) 0;
}

.text-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .9em;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    padding: 1px 5px;
}
.text-content pre {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    padding: var(--space-md);
    overflow-x: auto;
    margin: 0 0 var(--space-md);
}
.text-content pre code { background: none; border: 0; padding: 0; }

.text-content img { border-radius: 6px; margin: var(--space-md) 0; }

/* ── Cartes de formulaire (questions, repas, foyer) ───────────── */
.note-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.note-section h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}
.note-hint {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}
.note-section textarea { resize: vertical; width: 100%; }
.note-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}
.note-saved {
    font-size: var(--text-xs);
    font-weight: 600;
    color: #28a745;
}

/* ── Liste des invités ────────────────────────────────────────── */
.guests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--color-border-light);
    max-width: var(--max-width);
    margin: 0 auto;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.guest-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-surface);
    animation: fadeInUp .2s ease both;
}

.guest-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.guest-dot--yes   { background: #28a745; }
.guest-dot--no    { background: #dc3545; }
.guest-dot--maybe { background: #f59e0b; }

.guest-row-name {
    font-size: var(--text-sm);
    font-weight: 600;
}
.guest-plus-count {
    font-weight: 400;
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
}

/* ── Liens utiles ─────────────────────────────────────────────── */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--color-border-light);
    max-width: var(--max-width);
    margin: 0 auto;
}

.link-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-md) var(--space-lg);
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition);
}
.link-card:last-child { border-bottom: none; }
.link-card:hover { background: var(--color-surface-alt); opacity: 1; text-decoration: none; }
.link-card-icon { display: flex; align-items: center; color: var(--color-text-secondary); }
.link-card-icon .icon { width: 16px; height: 16px; }

/* ── Galerie ──────────────────────────────────────────────────── */
.gallery-header-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    animation: fadeIn .3s ease both;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.04); }

.gallery-video-badge {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: var(--color-text-on-primary);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.gallery-video-badge .icon { width: 22px; height: 22px; margin-left: 3px; }

.gallery-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 55%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-name {
    color: var(--color-text-on-primary);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.gallery-download-btn {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: rgba(0,0,0,.6);
    color: var(--color-text-on-primary);
    border: none;
    padding: 2px 4px;
    font-size: var(--text-xs);
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition);
    text-decoration: none;
}
.gallery-item:hover .gallery-download-btn { opacity: 1; }

.gallery-placeholder {
    aspect-ratio: 4/3;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border-light);
}

.gallery-placeholder-text {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}
.gallery-placeholder-text a { color: var(--color-primary-dark); font-weight: 600; }

/* ── Lightbox ──────────────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(24,37,36,.97);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    animation: fadeIn .2s ease;
}

.lightbox img,
.lightbox video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-bar {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    color: rgba(249,255,235,.6);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    flex-wrap: wrap;
    justify-content: center;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: fixed;
    background: transparent;
    border: 1px solid rgba(249,255,235,.2);
    color: rgba(249,255,235,.7);
    cursor: pointer;
    width: 44px; height: 44px;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    z-index: 2001;
}
.lightbox-close { top: var(--space-lg); right: var(--space-lg); }
.lightbox-prev  { left: var(--space-lg); top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: var(--space-lg); top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(249,255,235,.12);
    color: var(--color-text-on-primary);
    border-color: rgba(249,255,235,.4);
}

/* ── États vides / chargement ─────────────────────────────────── */
.loading-state, .empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    letter-spacing: .04em;
}

.spinner {
    display: inline-block;
    width: 24px; height: 24px;
    border: 2px solid var(--color-border-light);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin-bottom: var(--space-md);
}

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + var(--space-xl) + 20px));
    background: var(--color-text);
    color: var(--color-text-on-primary);
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    transition: transform .25s ease;
    white-space: nowrap;
    border-radius: 0;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--color-success); }
.toast.error   { background: var(--color-error); }

/* ── Icônes Lucide ─────────────────────────────────────────────── */
.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ── Carte carte ─────────────────────────────────────────────── */
.info-card.map-card {
    padding: 0;
    overflow: hidden;
    min-height: 260px;
    cursor: default;
}
/* Supprimer le hover sur la carte */
.info-card.map-card:hover { background: transparent; }

.map-container {
    display: block;
    width: 100%;
    height: 260px;
}

/* ── Page d'upload — changement d'identité ─────────────────────── */
.identity-hint {
    margin-top: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    letter-spacing: .04em;
}
.identity-hint button {
    background: none;
    border: none;
    color: var(--color-text);
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes spin      { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
    /* plus d'air autour des textes */
    .container, .container-wide { padding: 0 var(--space-xl); }
    .section-header { margin-bottom: var(--space-2xl); }
    .section-title { font-size: calc(var(--text-3xl) * 1.1); }
    .hero-inner { padding: var(--space-2xl) var(--space-lg); }
    .hero-title { font-size: calc(var(--text-3xl) * 1.6); }
    .rsvp-buttons { flex-wrap: wrap; }
    .rsvp-btn { min-width: 100px; padding: var(--space-lg); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .lightbox-prev { left: var(--space-sm); }
    .lightbox-next { right: var(--space-sm); }
    .info-cards { grid-template-columns: 1fr; }
    .guests-grid { grid-template-columns: 1fr; }
}

/* ── Régime alimentaire (version Repas) ───────────────────────── */
.diet-select { width: auto; max-width: 100%; }
#diet-select-wrap .diet-select { width: 100%; }
#plus-one-diet-wrap:empty,
#household-diet-wrap:empty { display: none; }
.plus-one-item { gap: var(--space-sm); flex-wrap: wrap; }
.plus-one-item > span:first-child { flex: 1; }
.plus-one-item .diet-select { font-size: var(--text-sm); padding: 4px 8px; }

/* ── Sélecteur de langue ────────────────────────────────────────── */
.lang-switch {
    display: flex;
    gap: 2px;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    letter-spacing: .06em;
}
.lang-switch button {
    background: none;
    border: 0;
    padding: 4px 6px;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    opacity: .45;
    transition: opacity .15s ease;
}
.lang-switch button:hover { opacity: .8; }
.lang-switch button.active { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* Modal d'identification : sélecteur mis en avant, en tête de la fenêtre */
.lang-picker {
    margin: calc(-1 * var(--space-xl)) 0 var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}
.modal-box p.lang-picker-label {
    font-size: var(--text-xs);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}
.lang-switch--modal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    font-size: var(--text-base);
    letter-spacing: 0;
    color: var(--color-text);
}
.lang-switch--modal button {
    padding: 12px 8px;
    opacity: 1;
    transition: background .15s ease, color .15s ease;
}
.lang-switch--modal button + button { border-left: 1px solid var(--color-border); }
.lang-switch--modal button:hover { background: var(--color-primary-light); opacity: 1; }
.lang-switch--modal button.active {
    background: var(--color-text);
    color: var(--color-text-on-primary);
    text-decoration: none;
}

/* Bouton « Aa » : fait défiler les trois typos de titre (js/font-switch.js) */
.font-switch {
    background: none;
    border: 0;
    padding: 4px 6px;
    color: inherit;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    cursor: pointer;
    opacity: .8;
    white-space: nowrap;
}
.font-switch:hover { opacity: 1; }
.font-switch--modal {
    display: block;
    margin: var(--space-sm) auto 0;
    font-size: var(--text-sm);
    color: var(--color-text);
}

/* Page invitation : discret, en haut à droite du hero */
#main-content { position: relative; }
.page-top-actions {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--hero-text-color, var(--color-text));
}

/* Inscrire quelqu'un d'autre */
.register-other-btn--top {
    background: none;
    border: 0;
    padding: 4px 6px;
    color: inherit;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    letter-spacing: .06em;
    cursor: pointer;
    opacity: .6;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity .15s ease;
}
.register-other-btn--top:hover { opacity: 1; }
.register-other-section { text-align: center; }
.register-other-section .note-hint { margin-bottom: var(--space-md); }

/* ── Choix (questions définies dans l'admin) ───────────────────── */
.choice-text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    white-space: pre-line;
    margin-bottom: var(--space-md);
}
.choices-container .note-section:first-child { margin-top: 0; }
.choice-options { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.choice-btn {
    flex: 1 1 0;
    min-width: 120px;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.choice-btn:hover:not(:disabled) { background: var(--color-surface-alt); }
.choice-btn.active { background: var(--color-text); color: var(--color-text-on-primary); border-color: var(--color-text); }
.choice-btn:disabled { cursor: default; opacity: .7; }
.choice-btn.active:disabled { opacity: 1; }


/* ── Zone à motif d'images (js/pattern.js) ─────────────────────── */
/* Les sections laissent voir le fond crème et les danseurs ; les cartes gardent leur fond. */
#pattern-zone .section-alt { background: transparent; }
