@charset "UTF-8";
/* Invitation de mariage — à la DA du site : violet #6258cf, encre #1e1b4b, 'QRC Texte', blocs lilas,
   bouton pastille à rond blanc, sombre prune #10003f. Tailles en em pour suivre le centre d'accessibilité.
   Tout est préfixé im- (l'outil) ou inv (l'invitation) pour ne rien croiser avec 01blog.css. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/1assets/fonts/atelier/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/1assets/fonts/atelier/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/1assets/fonts/atelier/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url("/1assets/fonts/atelier/great-vibes-latin-400-normal.woff2") format("woff2"); }

html.im-root, html.im-root body { padding-top: 0; }
body.im-page {
    --im-page: #e9e3f8;
    --im-surface: #f7f4fe;
    --im-field: #fff;
    --im-stage: #d9d0f3;
    --im-ink: #1e1b4b;
    --im-soft: #454168;
    --im-mute: #5f5b80;
    --im-violet: #6258cf;
    --im-violet-h: #5145b6;
    --im-link: #5145b6;
    --im-line: rgba(82, 70, 190, .22);
    --im-chip: #e6e0f8;
    --im-chip-on: #fff;
    --im-shadow: 0 24px 50px -30px rgba(50, 30, 130, .45);
    background: var(--im-page);
}
html[data-theme="dark"] body.im-page {
    --im-page: #10003f;
    --im-surface: #1d0f4b;
    --im-field: #2a1b60;
    --im-stage: #170744;
    --im-ink: #f5f1ff;
    --im-soft: #d3cbee;
    --im-mute: #b6acd9;
    --im-violet: #735dcf;
    --im-violet-h: #846cdd;
    --im-link: #c9bfff;
    --im-line: rgba(225, 215, 255, .18);
    --im-chip: #2a1b60;
    --im-chip-on: #735dcf;
    --im-shadow: 0 24px 60px -30px rgba(0, 0, 0, .75);
}
html[data-theme="dark"] .im { color-scheme: dark; }

.im-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.im, .im *, .im *::before, .im *::after { box-sizing: border-box; }
.im { color: var(--im-ink); font-family: 'QRC Texte', Arial, sans-serif; line-height: 1.5; }
:where(.im) { letter-spacing: .015em; }
body.im-page main.im { background: var(--im-page); }
.im [hidden] { display: none !important; }
.im svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.im :where(button, input, textarea) { font: inherit; color: inherit; }
.im :where(button) { cursor: pointer; }
.im button:disabled { cursor: wait; opacity: .6; }
.im :where(a) { color: inherit; text-decoration: none; }
.im :focus-visible { outline: 2px solid var(--im-violet); outline-offset: 2px; }

/* ---------- En-tête de page : le même violet que le footer ---------- */
.im-hero {
    --im-hero-pad: 86px;
    padding: var(--im-hero-pad) 20px 62px;
    color: #fff;
    text-align: center;
    background: radial-gradient(880px circle at 10% 0%, rgba(236, 143, 252, .37) 0%, transparent 62%), radial-gradient(760px circle at 92% 12%, rgba(150, 132, 255, .5) 0%, transparent 60%), #5046bd;
}
html[data-theme="dark"] .im-hero { background: radial-gradient(880px circle at 10% 0%, rgba(160, 90, 240, .35) 0%, transparent 62%), radial-gradient(760px circle at 92% 12%, rgba(98, 88, 207, .45) 0%, transparent 60%), #10003f; }
.im-hero__in { max-width: 900px; margin: 0 auto; }
.im-hero__kicker { display: none; }
.im-hero h1 { margin: 0; color: inherit; font-family: inherit; font-size: clamp(1.45em, 2.4vw, 1.9em); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.im-hero__lead { margin: .25em auto 0; font-size: .95em; line-height: 1.4; opacity: .92; }

/* ---------- La grille de l'outil : à l'ordinateur, un écran et pas un de plus ---------- */
.im-tool { position: relative; padding: 0 20px 14px; }
.im-layout { --im-top: 164px; display: grid; grid-template-columns: minmax(420px, 42%) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 20px; max-width: 1400px; height: calc(100vh - var(--im-top) - 14px); height: calc(100dvh - var(--im-top) - 14px); min-height: 420px; margin: -46px auto 0; }
.im-panel { display: flex; flex-direction: column; min-height: 0; padding: 14px 20px 10px; border-radius: 26px; background: var(--im-surface); box-shadow: var(--im-shadow); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#im-form { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* Les étapes */
.im-steps { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: var(--im-chip); margin-bottom: clamp(8px, 1.6vh, 16px); }
.im-step { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 4px; border: 0; border-radius: 999px; background: transparent; color: var(--im-mute); font-size: .92em; white-space: nowrap; transition: background .15s, color .15s; }
.im-step i { display: grid; place-items: center; width: 1.5em; height: 1.5em; flex: none; border-radius: 50%; font-size: .82em; font-style: normal; background: rgba(98, 88, 207, .14); color: var(--im-link); }
.im-step:hover { color: var(--im-ink); }
.im-step.is-on { background: var(--im-chip-on); color: var(--im-ink); box-shadow: 0 6px 16px -10px rgba(50, 30, 130, .6); }
.im-step.is-on i { background: var(--im-violet); color: #fff; }
html[data-theme="dark"] .im-step i { background: rgba(225, 215, 255, .14); }
html[data-theme="dark"] .im-step.is-on { color: #fff; }
html[data-theme="dark"] .im-step.is-on i { background: #fff; color: #6258cf; }

/* Les champs */
.im-pane { flex: 1; display: flex; flex-direction: column; gap: clamp(7px, 1.35vh, 13px); }
.im-pane__title { margin: 2px 0 -2px; color: var(--im-ink); font-family: inherit; font-size: 1em; font-weight: 600; line-height: 1.25; }
.im-pane__title small { margin-left: .35em; color: var(--im-mute); font-size: .8em; font-weight: 400; }
.im-pane__help { margin: 0; color: var(--im-soft); font-size: .88em; line-height: 1.35; }
.im-row { display: flex; align-items: flex-end; gap: 12px; }
.im-row--top { align-items: flex-start; }
.im-row > .im-field { flex: 1 1 0; min-width: 0; }
.im-row > .im-grow { flex: 1.7 1 0; }
.im-and { padding-bottom: .16em; color: var(--im-link); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6em; font-weight: 500; line-height: 1; }
.im-field { display: block; color: var(--im-soft); font-size: .88em; line-height: 1.3; }
.im-field small { color: var(--im-mute); font-size: .88em; }
.im-field input, .im-field textarea { display: block; width: 100%; min-width: 0; min-height: clamp(38px, 5.4vh, 44px); margin-top: 4px; padding: 7px 12px; border: 1px solid var(--im-line); border-radius: 13px; background: var(--im-field); color: var(--im-ink); font-size: 16px; line-height: 1.35; transition: border-color .15s, box-shadow .15s; }
.im-field textarea { resize: none; }
/* Les champs de date et d'heure : même allure que les autres, ils ouvrent nos fenêtres. */
.im-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-width: 0; min-height: clamp(38px, 5.4vh, 44px); margin-top: 4px; padding: 7px 11px 7px 12px; border: 1px solid var(--im-line); border-radius: 13px; background: var(--im-field); color: var(--im-ink); font-size: 16px; line-height: 1.35; text-align: left; transition: border-color .15s, box-shadow .15s; }
.im-pick__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.im-pick svg { color: var(--im-link); }
.im-pick.is-empty .im-pick__text { color: var(--im-mute); opacity: .75; }
.im-pick:hover { border-color: var(--im-violet); }
.im-pick.is-open, .im-pick:focus-visible { border-color: var(--im-violet); box-shadow: 0 0 0 3px rgba(98, 88, 207, .18); outline: 0; }
.im-field .im-seg { display: grid; margin-top: 4px; }
.im-field input::placeholder, .im-field textarea::placeholder { color: var(--im-mute); opacity: .65; }
.im-field input:focus, .im-field textarea:focus { border-color: var(--im-violet); box-shadow: 0 0 0 3px rgba(98, 88, 207, .18); outline: 0; }
.im-note { display: flex; gap: 6px; margin: 0; color: var(--im-mute); font-size: .8em; line-height: 1.3; }
.im-note svg { margin-top: .1em; }

/* Les textes de l'aperçu mènent à leur champ */
html:not(.im-guest) .inv [data-edit] { cursor: pointer; border-radius: .25em; transition: background .15s, box-shadow .15s; }
@media (hover: hover) {
    html:not(.im-guest) .inv [data-edit]:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: 0 0 0 .18em color-mix(in srgb, var(--accent) 14%, transparent); }
}
.is-called { animation: im-called 1s ease-out; border-radius: 12px; }
@keyframes im-called { 0%, 55% { box-shadow: 0 0 0 3px rgba(98, 88, 207, .45); } 100% { box-shadow: 0 0 0 3px rgba(98, 88, 207, 0); } }

/* Le bouton de la marque : pastille violette et rond blanc */
.im-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; padding: 7px 8px 7px 22px; border: 1px solid transparent; border-radius: 999px; background: var(--im-violet); color: #fff !important; font-size: 1em; font-weight: 600; line-height: 1.2; box-shadow: 0 10px 25px -16px #5142ac; transition: background .18s ease; }
.im-btn:hover { background: var(--im-violet-h); }
.im-btn i { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #fff; color: #6258cf; font-style: normal; transition: transform .2s ease; }
.im-btn:hover i { transform: translateX(2px); }
.im-btn--soft { background: var(--im-chip); color: var(--im-ink) !important; box-shadow: none; }
.im-btn--soft:hover { background: var(--im-line); }
html[data-theme="dark"] .im-btn--soft:hover { background: #38267a; }
.im-pane > .im-btn { align-self: flex-end; margin-top: auto; }
.im-textbtn { display: inline; padding: 0; border: 0; background: none; color: var(--im-link) !important; font-size: .95em; text-decoration: underline; text-underline-offset: 3px; }
.im-textbtn:hover { color: var(--im-ink) !important; }
.im-iconbtn { display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--im-link); }
.im-iconbtn:hover { background: var(--im-chip); }
.im-draft { flex: none; display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--im-mute); font-size: .76em; }

/* Le choix de l'ambiance */
.im-looks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.im-look { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 4px 3px 6px; border: 1.5px solid transparent; border-radius: 14px; background: transparent; color: var(--im-soft); font-size: .78em; white-space: nowrap; transition: border-color .15s; }
.im-look:hover { border-color: var(--im-line); }
.im-look[aria-pressed="true"] { border-color: var(--im-violet); color: var(--im-ink); }
.im-look__art { display: grid; place-items: center; height: clamp(30px, 6vh, 62px); border-radius: 11px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--im-line); }
.im-look__art b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7em; font-weight: 600; color: var(--accent); }

.im-ornaments { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.im-orn { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 4px 3px 5px; border: 1.5px solid transparent; border-radius: 14px; background: transparent; color: var(--im-soft); font-size: .76em; white-space: nowrap; transition: border-color .15s; }
.im-orn:hover { border-color: var(--im-line); }
.im-orn[aria-pressed="true"] { border-color: var(--im-violet); color: var(--im-ink); }
.im-orn__art { display: grid; place-items: center; width: 100%; height: clamp(22px, 4.4vh, 40px); padding: 3px 5px; border-radius: 10px; background: var(--im-field); color: var(--im-link); box-shadow: inset 0 0 0 1px var(--im-line); }
.im-orn__art svg { display: block; width: 100%; height: 100%; }
.im-orn__none { position: relative; display: block; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; opacity: .55; }
.im-orn__none::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.5px; height: 100%; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }

.im-fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.im-font { display: flex; flex-direction: column; align-items: center; gap: 0; padding: clamp(1px, .5vh, 7px) 4px; border: 1.5px solid var(--im-line); border-radius: 14px; background: var(--im-field); color: var(--im-soft); font-size: .84em; transition: border-color .15s; }
.im-font b { display: flex; align-items: center; min-height: 1.6em; color: var(--im-ink); font-size: 1.5em; font-weight: 400; line-height: 1.1; }
.im-font .im-f-elegant { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
.im-font .im-f-calli { font-family: "Great Vibes", Georgia, serif; font-size: 1.75em; }
.im-font .im-f-moderne { font-family: 'QRC Texte', Arial, sans-serif; font-size: 1.3em; }
:where(.im-font .im-f-moderne) { letter-spacing: .015em; }
.im-font[aria-pressed="true"] { border-color: var(--im-violet); color: var(--im-ink); }

.im-upload { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; padding: clamp(5px, 1vh, 12px) 12px; border: 1.5px dashed var(--im-line); border-radius: 16px; background: var(--im-field); color: var(--im-link); text-align: center; cursor: pointer; transition: border-color .15s; }
.im-upload:hover, .im-upload:focus-within { border-color: var(--im-violet); }
.im-upload svg { width: 1.6em; height: 1.6em; }
.im-upload small { color: var(--im-mute); font-size: .82em; }
.im-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.im-upload.has-photo { background: linear-gradient(rgba(16, 0, 63, .55), rgba(16, 0, 63, .55)), var(--im-photo) center / cover; color: #fff; }
.im-upload.has-photo small { color: #eee9ff; }
#remove-photo { align-self: flex-start; margin-top: -6px; }

.im-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 4px; border-radius: 999px; background: var(--im-chip); }
.im-seg button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--im-mute); font-size: .95em; white-space: nowrap; }
.im-seg button:hover { color: var(--im-ink); }
.im-seg button[aria-pressed="true"] { background: var(--im-chip-on); color: var(--im-ink); box-shadow: 0 6px 16px -10px rgba(50, 30, 130, .6); }
html[data-theme="dark"] .im-seg button[aria-pressed="true"] { color: #fff; }

.im-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.im-switch { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: clamp(2px, .6vh, 6px) 0; cursor: pointer; }
.im-switch__ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--im-chip); color: var(--im-link); }
.im-switch__txt { flex: 1; min-width: 0; }
.im-switch__txt strong { display: block; font-size: .86em; font-weight: 500; line-height: 1.2; }
.im-switch__txt small { display: block; color: var(--im-mute); font-size: .74em; line-height: 1.25; }
.im-switch input { position: absolute; right: 0; width: 34px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.im-switch__ui { position: relative; width: 34px; height: 20px; flex: none; border-radius: 99px; background: var(--im-line); pointer-events: none; transition: background .18s; }
.im-switch__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .18s; }
.im-switch input:checked + .im-switch__ui { background: var(--im-violet); }
.im-switch input:checked + .im-switch__ui::after { transform: translateX(14px); }
.im-switch input:focus-visible + .im-switch__ui { outline: 2px solid var(--im-violet); outline-offset: 3px; }

/* L'envoi */
#send-ready { display: flex; flex-direction: column; gap: clamp(7px, 1.3vh, 12px); }
.im-link { display: flex; align-items: center; gap: 4px; padding: 3px 3px 3px 14px; border: 1px solid var(--im-line); border-radius: 14px; background: var(--im-field); }
.im-link input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; color: var(--im-soft); font-size: 16px; text-overflow: ellipsis; outline: 0; }
.im-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.im-actions--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.im-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--im-chip); color: var(--im-ink); font-size: .95em; }
.im-alert p { margin: 0; }
.im-alert--soft { display: block; color: var(--im-soft); font-size: .9em; line-height: 1.45; }
.im-reset { align-self: flex-start; margin-top: 4px; color: var(--im-mute) !important; font-size: .85em; }

/* ---------- L'aperçu ---------- */
.im-preview { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 10px 12px 12px; border-radius: 26px; background: var(--im-stage); box-shadow: var(--im-shadow); }
.im-preview__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.im-preview__bar .im-iconbtn { width: 36px; height: 36px; }
.im-stage { flex: 1; display: flex; min-height: 0; overflow: auto; scrollbar-width: none; }
.im-stage::-webkit-scrollbar { display: none; }
.im-card { display: block; margin: auto; width: auto; max-width: 100%; height: auto; max-height: 100%; border-radius: 6px; box-shadow: 0 24px 40px -24px rgba(30, 10, 90, .55); }
/* Pendant le jeu, le « Non » reste dans le cadre de l'aperçu et le doigt ne fait pas défiler la page. */
html.im-game .im-preview { clip-path: inset(0 round 26px); touch-action: none; overscroll-behavior: none; }
html.im-game.im-guest .im-preview { clip-path: none; }
.im-fx { position: fixed; inset: 0; z-index: 958; overflow: hidden; pointer-events: none; color: var(--soft); }
.im-preview > .im-fx { position: fixed; }

/* ---------- L'invitation ---------- */
.inv, .im-look__art, .im-fx { --paper: #f8f3fc; --ink: #3d2c58; --soft: #6a5885; --accent: #9d74c7; --btn: #8558b4; --btn-ink: #fff; }
[data-look="champagne"], [data-look-art="champagne"] { --paper: #fbf7ee; --ink: #40382a; --soft: #6f634a; --accent: #b3904f; --btn: #86672e; --btn-ink: #ffffff; }
[data-look="poudre"], [data-look-art="poudre"] { --paper: #fdf5f4; --ink: #5a3a42; --soft: #85606a; --accent: #c88796; --btn: #a4596c; --btn-ink: #ffffff; }
[data-look="terracotta"], [data-look-art="terracotta"] { --paper: #fbf3ec; --ink: #56301f; --soft: #85574a; --accent: #c46b47; --btn: #a95434; --btn-ink: #ffffff; }
[data-look="sauge"], [data-look-art="sauge"] { --paper: #fbfcf6; --ink: #2f4a3e; --soft: #5a6e60; --accent: #6d8c60; --btn: #476a51; --btn-ink: #ffffff; }
[data-look="nuit"], [data-look-art="nuit"] { --paper: #14193a; --ink: #f6f0e2; --soft: #cfc6b0; --accent: #d6b56d; --btn: #d6b56d; --btn-ink: #15193a; }

.inv { position: relative; width: 100%; max-width: 30em; height: max-content; margin: auto; padding: 1.7em 1.75em .85em; border-radius: 6px; background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 24px 40px -24px rgba(30, 10, 90, .55); }
.inv::before { content: ""; position: absolute; inset: .62em; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 3px; pointer-events: none; }
.inv > * { position: relative; }
.inv__kicker { display: block; color: var(--soft); font-size: .74em; letter-spacing: .2em; line-height: 1.6; text-transform: uppercase; overflow-wrap: anywhere; }
.inv__emblem { width: 7em; height: 2.8em; margin: .55em auto .15em; color: var(--accent); }
.inv__emblem svg { display: block; width: 100%; height: 100%; overflow: visible; }
.orn-stem { fill: none !important; stroke: currentColor !important; stroke-width: 1.1 !important; stroke-linecap: round; }
.orn-fill { fill: currentColor !important; stroke: none !important; }
.inv__names { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 .22em; margin: .1em 0 .22em; color: var(--ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 3.1em; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.inv__names[data-size="m"] { font-size: 2.5em; }
.inv__names[data-size="s"] { font-size: 2em; }
.inv__names em { color: var(--accent); font-family: "Cormorant Garamond", Georgia, serif; font-size: .62em; font-style: normal; font-weight: 500; line-height: 1; }
.inv[data-font="calli"] .inv__names em { font-family: "Great Vibes", Georgia, serif; font-size: .7em; font-weight: 400; }
.inv[data-font="moderne"] .inv__names em { font-family: 'QRC Texte', Arial, sans-serif; font-size: .62em; font-weight: 400; }
:where(.inv[data-font="moderne"] .inv__names em) { letter-spacing: .015em; }
.inv[data-font="calli"] .inv__names { font-family: "Great Vibes", Georgia, serif; font-weight: 400; font-size: 3.4em; }
.inv[data-font="calli"] .inv__names[data-size="m"] { font-size: 2.8em; }
.inv[data-font="calli"] .inv__names[data-size="s"] { font-size: 2.2em; }
.inv[data-font="moderne"] .inv__names { font-family: 'QRC Texte', Arial, sans-serif; font-weight: 400; font-size: 2.5em; letter-spacing: -.01em; }
.inv[data-font="moderne"] .inv__names[data-size="m"] { font-size: 2.05em; }
.inv[data-font="moderne"] .inv__names[data-size="s"] { font-size: 1.7em; }
.inv__divider { display: flex; align-items: center; justify-content: center; gap: .6em; margin-bottom: .75em; }
.inv__divider span { width: 2.4em; height: 1px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.inv__divider small { color: var(--soft); font-size: .72em; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.inv p { margin: 0; color: inherit; }
.inv__date { font-size: 1.04em; }
.inv__venue { display: flex; align-items: center; justify-content: center; gap: .3em; margin-top: .2em !important; color: var(--soft) !important; font-size: .95em; line-height: 1.35; overflow-wrap: anywhere; }
.inv__address { margin-top: .1em !important; color: var(--soft) !important; font-size: .85em; line-height: 1.35; overflow-wrap: anywhere; }
.inv__message { max-width: 22em; margin: .7em auto 0 !important; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.2em; font-style: italic; font-weight: 500; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; }
.inv__infos { max-width: 25em; margin: .6em auto 0 !important; color: var(--soft) !important; font-size: .86em; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.inv__rsvp { margin-top: .8em; }
.inv__rsvp h3 { margin: 0 0 .4em; color: var(--ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.75em; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
/* Oui et Non côte à côte : au repos, rien ne laisse deviner ce qui va se passer. */
.inv__arena { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 3.4em; margin-bottom: .55em; }
.inv__yes { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em; flex: none; min-height: max(44px, 3.1em); padding: .6em 1.4em; border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-weight: 600; white-space: nowrap; transform: translateX(var(--yes-x, 0px)) scale(var(--yes-s, 1)); box-shadow: 0 10px 22px -14px rgba(30, 10, 90, .7); touch-action: manipulation; z-index: 2; transition: transform .42s cubic-bezier(.34, 1.56, .64, 1), filter .15s; }
.inv__yes:hover { filter: brightness(1.1); }
.inv__yes.is-pulse { animation: nf-yes-pulse 1.05s ease-in-out infinite; }
@keyframes nf-yes-pulse { 50% { filter: brightness(1.16); box-shadow: 0 0 0 .55em color-mix(in srgb, var(--btn) 22%, transparent); } }
.inv__noslot { position: relative; display: block; flex: none; width: 4.8em; height: max(40px, 2.7em); border-radius: 999px; transition: opacity .3s; }
.inv__noslot.is-empty { outline: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: -1px; }
.inv__noslot.is-gone { outline-color: transparent; }
.inv__no { position: relative; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--soft); font-size: 1em; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; z-index: 3; }
.inv__no.is-running { position: fixed; left: 0; top: 0; z-index: 960; will-change: transform; }
.inv__no.is-clone { pointer-events: auto; cursor: pointer; }
.inv__no.is-leaving { pointer-events: none; }
.inv__caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.inv__skip { padding: 2px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: none; color: var(--soft); font-size: .8em; }
.inv__skip:hover { color: var(--ink); }
.inv__sound { position: absolute !important; top: .9em; right: .9em; display: grid; place-items: center; width: 2em; height: 2em; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--soft); opacity: .55; z-index: 4; transition: opacity .15s; }
.inv__sound:hover { opacity: 1; }
.inv__sound svg { width: 1.05em !important; height: 1.05em !important; }

/* ---------- Le personnage ---------- */
.nc { position: absolute; inset: 0; display: block; --a: 0deg; --b: 0deg; --dir: 1; --px: 0em; --py: 0em; }
.nc i, .nc b { display: block; font-style: normal; }
.nc__pill { position: absolute; inset: 0; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; background: var(--paper); transition: border-color .15s; }
.inv__no:hover .nc__pill { border-color: var(--accent); }
.nc__label { color: var(--soft); font-weight: 500; line-height: 1; }
.is-running .nc__pill { border-color: var(--accent); box-shadow: 0 .55em .9em -.55em rgba(30, 10, 90, .6); }
.is-running .nc__label { color: var(--ink); font-weight: 600; }
/* Les yeux, posés sur le bord haut du bouton */
.nc__eyes { position: absolute; left: 50%; top: 0; display: flex; gap: .1em; transform: translate(-50%, -58%) scale(0); transform-origin: 50% 100%; transition: transform .2s cubic-bezier(.3, 2, .5, 1); z-index: 2; }
.is-alive .nc__eyes { transform: translate(-50%, -58%) scale(1); }
.nc__eye { position: relative; width: 1.12em; height: 1.12em; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; overflow: hidden; }
.nc__eye b { position: absolute; left: 50%; top: 50%; width: .5em; height: .5em; margin: -.25em 0 0 -.25em; border-radius: 50%; background: #10003f; transform: translate(var(--px), var(--py)); }
.nc__eye::after { content: ""; position: absolute; inset: 0 0 auto; height: 0; background: var(--paper); border-bottom: 1.5px solid var(--ink); animation: nf-blink 3.4s infinite; }
@keyframes nf-blink { 0%, 95%, 100% { height: 0; } 97.5% { height: 100%; } }
.is-bang .nc__eye { transform: scale(1.32); transition: transform .12s; }
/* Les jambes */
.nc__legs { position: absolute; left: 50%; top: 92%; display: flex; gap: .62em; transform: translateX(-50%) scaleY(0); transform-origin: 50% 0; transition: transform .14s cubic-bezier(.3, 2, .5, 1); }
.is-alive .nc__legs { transform: translateX(-50%) scaleY(1); }
.nc__leg { position: relative; width: .16em; height: .82em; border-radius: .1em; background: var(--ink); transform-origin: 50% 0; transform: rotate(var(--a)); }
.nc__leg + .nc__leg { transform: rotate(calc(var(--a) * -1)); }
.nc__leg b { position: absolute; left: -.13em; bottom: -.1em; width: .46em; height: .22em; border-radius: .2em .24em .08em .08em; background: var(--accent); transform: scaleX(var(--dir)); }
/* Les bras */
.nc__arm { position: absolute; top: 38%; width: .78em; height: .15em; border-radius: .1em; background: var(--ink); transition: opacity .1s; opacity: 0; }
.is-alive .nc__arm { opacity: 1; }
.nc__arm--l { right: 98%; transform-origin: 100% 50%; transform: rotate(calc(32deg + var(--b))); }
.nc__arm--r { left: 98%; transform-origin: 0 50%; transform: rotate(calc(-32deg + var(--b))); }
/* La surprise */
.nc__bang { position: absolute; left: 50%; bottom: 135%; color: var(--accent); font-size: 1.7em; font-weight: 800; line-height: 1; opacity: 0; transform: translateX(-50%); pointer-events: none; }
.is-bang .nc__bang { animation: nf-bang .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes nf-bang { 0% { opacity: 0; transform: translateX(-50%) translateY(.5em) scale(.3); } 25% { opacity: 1; transform: translateX(-50%) scale(1.25); } 75% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) translateY(-.2em) scale(1); } }
/* La bulle */
.nc__bubble { position: absolute; left: 50%; bottom: calc(100% + 1.25em); width: max-content; max-width: min(15em, 70vw); padding: .36em .75em; border-radius: 1em; background: var(--ink); color: var(--paper); font-size: .92em; font-weight: 600; line-height: 1.2; text-align: center; opacity: 0; pointer-events: none; transform: translateX(calc(-50% + var(--bx, 0px))) scale(.5); transform-origin: 50% 100%; transition: transform .16s cubic-bezier(.3, 1.8, .5, 1), opacity .1s; z-index: 5; }
.nc__bubble.is-on { opacity: 1; transform: translateX(calc(-50% + var(--bx, 0px))) scale(1); }
.nc__bubble.is-below { top: calc(100% + 1.4em); bottom: auto; transform-origin: 50% 0; }
/* À demi caché au bord de l'écran : ni jambes ni bras */
.is-peeking .nc__legs, .is-peeking .nc__arm { display: none; }
/* Le déguisement */
.nc__mask { position: absolute !important; left: 50%; top: -1.02em; width: 2.9em !important; height: 1.6em !important; fill: none !important; stroke: var(--ink) !important; stroke-width: 3 !important; transform: translateX(-50%) scale(0); transform-origin: 50% 40%; transition: transform .2s cubic-bezier(.3, 2, .5, 1); overflow: visible; z-index: 3; }
.nc__mask .nc__nose { fill: #f0b9a4; }
.nc__mask .nc__stache { fill: var(--ink); }
.is-disguised .nc__mask { transform: translateX(-50%) scale(1); }
.is-disguised .nc__eyes, .is-disguised .nc__legs, .is-disguised .nc__arm { display: none; }
.is-disguised .nc__pill { border-color: transparent; background: var(--btn); }
.is-disguised .nc__label { padding-top: .5em; color: var(--btn-ink); }
/* L'épuisement */
.nc__sweat, .nc__tears { position: absolute; inset: 0; display: none; pointer-events: none; }
.is-tired .nc__sweat { display: block; }
.nc__sweat i { position: absolute; top: -.35em; width: .3em; height: .42em; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: #7fc4f5; animation: nf-sweat .62s ease-in infinite; }
.nc__sweat i:first-child { left: 8%; --dx: -.8em; }
.nc__sweat i:last-child { right: 8%; --dx: .8em; animation-delay: .3s; }
@keyframes nf-sweat { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), .9em) scale(1); } }
.is-tired .nc__eye::after { height: 45%; animation: none; }
.is-tired .nc__label { opacity: .78; }
/* Le drapeau blanc */
.nc__flag { position: absolute !important; left: 88%; bottom: 40%; width: 1.5em !important; height: 2.3em !important; fill: none !important; stroke: var(--ink) !important; stroke-width: 2.4 !important; opacity: 0; transform-origin: 15% 100%; pointer-events: none; }
.nc__cloth { fill: #fff; animation: nf-flag .5s ease-in-out infinite alternate; transform-origin: 15% 30%; }
@keyframes nf-flag { to { transform: skewY(-7deg) scaleX(.94); } }
.is-flag .nc__flag, .is-leaving.is-crying .nc__flag { opacity: 1; animation: nf-wave .7s ease-in-out infinite alternate; }
@keyframes nf-wave { from { transform: rotate(-8deg); } to { transform: rotate(14deg); } }
.is-flag .nc__legs { transform: translateX(-50%) scaleY(.32); }
.is-flag .nc__arm--r { transform: rotate(-58deg); }
.is-flag .nc__arm--l { transform: rotate(38deg); }
.is-flag .nc__eye::after { height: 38%; animation: none; }
.is-flag.is-running { cursor: pointer; }
/* Les larmes */
.is-crying .nc__tears { display: block; }
.nc__tears i { position: absolute; top: .15em; width: .24em; height: .4em; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: #7fc4f5; animation: nf-tear .85s ease-in infinite; }
.nc__tears i:first-child { left: calc(50% - .72em); }
.nc__tears i:last-child { left: calc(50% + .5em); animation-delay: .42s; }
@keyframes nf-tear { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(1.5em) scale(1); } }
.is-crying .nc__eye b { width: .68em; height: .68em; margin: -.34em 0 0 -.34em; }
.is-crying .nc__eye::after { height: 18%; animation: none; }
/* Poussière et petits mots */
.nf-puff { position: fixed; display: block; width: 1.05em; height: 1.05em; border-radius: 50%; background: color-mix(in srgb, var(--soft) 42%, #fff); pointer-events: none; }
.nf-float { position: fixed; display: block; padding: .3em .7em; border-radius: 1em; background: var(--ink); color: var(--paper); font-size: .92em; font-weight: 600; white-space: nowrap; pointer-events: none; }
.inv__by { margin-top: .35em !important; color: var(--soft) !important; font-size: .84em; }
.inv__sign { margin-top: .7em; padding-top: .55em; border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); color: var(--soft); font-size: .76em; }
.inv__sign a { color: inherit !important; text-decoration: none; }
.inv__sign a:hover { text-decoration: underline; }
/* Mention anti-arnaque, vue invité seulement : le contenu d'une invitation vient de son lien (audit du 20/11/2026) */
.inv__notice { display: none; margin: .55em auto 0; max-width: 34em; color: var(--soft); font-size: .68em; line-height: 1.45; opacity: .85; }
html.im-guest .inv__notice { display: block; }
.inv__notice a { color: inherit !important; text-decoration: underline; }

/* Après la réponse */
.inv__result { padding-top: .5em; }
.inv__tries { margin: -.35em auto .7em !important; color: var(--btn) !important; font-size: .86em; font-weight: 600; line-height: 1.3; }
.inv__art { display: block; margin-bottom: .1em; color: var(--accent); font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.8em; line-height: 1; }
.inv__result h2 { margin: .2em 0 .25em; color: var(--ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.05em; font-weight: 600; line-height: 1.12; }
.inv__after { max-width: 22em; margin: 0 auto .6em !important; color: var(--soft) !important; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.16em; font-style: italic; font-weight: 500; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; }
.inv__reply { margin-top: .2em; padding: .65em .75em; border-radius: 1em; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.inv__replyfields { display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap; gap: .5em .8em; text-align: left; }
.inv__replyname { display: flex; flex: 1 1 130px; flex-direction: column; gap: 4px; color: var(--soft); font-size: .85em; }
.inv__replyname input { width: 100%; min-height: max(38px, 2.4em); padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 16px; }
.inv__count { display: flex; flex-direction: column; gap: 4px; color: var(--soft); font-size: .85em; }
.inv__stepper { display: flex; align-items: center; height: max(38px, 2.4em); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 10px; background: var(--paper); color: var(--ink); }
.inv__stepper button { width: 2.3em; height: 100%; padding: 0; border: 0; background: none; color: inherit; font-size: 1.2em; }
.inv__stepper output { min-width: 20px; color: var(--ink); font-size: 1.1em; text-align: center; }
.inv__replyhint { margin: .5em 0 .35em !important; color: var(--soft) !important; font-size: .85em; }
.inv__sends { display: flex; flex-wrap: wrap; justify-content: center; gap: .45em; }
.inv__send { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: .4em; min-height: max(42px, 2.7em); padding: .4em .8em; border-radius: 999px; background: var(--btn); color: var(--btn-ink) !important; font-weight: 600; white-space: nowrap; transition: filter .15s; }
.inv__send:hover { filter: brightness(1.1); }
.inv__nocontact { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--soft) !important; font-size: .86em; line-height: 1.4; }
.inv__extras { display: flex; flex-wrap: wrap; justify-content: center; gap: .2em 1em; margin-top: .5em; }
.inv__extra { display: inline-flex; align-items: center; gap: 6px; padding: 4px; border: 0; background: none; color: var(--ink) !important; font-size: .9em; }
.inv__extra:hover { text-decoration: underline; }
.inv__change { display: block; margin: .45em auto 0; padding: 2px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: none; color: var(--soft); font-size: .84em; }
.inv__keepsake { display: block; margin-top: .6em; padding-top: .55em; border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); color: var(--soft) !important; font-size: .86em; line-height: 1.4; }
.inv__keepsake span { display: block; color: var(--btn); }
.inv__keepsake:hover span { text-decoration: underline; }
.inv__result.is-loading .inv__art { animation: im-thinking 1.1s ease-in-out infinite; font-size: 2.6em; }
/* Quand la place manque vraiment, on garde l'essentiel. */
.inv.is-tight { padding-top: 1.25em; }
.inv.is-tight .inv__emblem, .inv.is-tight .inv__art, .inv.is-tight .inv__keepsake { display: none; }
.inv__result.is-loading .inv__extras, .inv__result.is-loading .inv__change, .inv__result.is-loading .inv__keepsake { display: none; }
@keyframes im-thinking { 50% { transform: rotate(20deg) scale(.95); } }

/* Confettis et message */
.im-confetti { position: fixed; inset: 0; z-index: 900; overflow: hidden; pointer-events: none; }
.im-confetti__piece { position: absolute; width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: im-confetti 2.7s cubic-bezier(.12, .6, .4, 1) var(--delay) forwards; }
.im-confetti__piece.is-heart { width: 15px; height: 14px; border-radius: 0; clip-path: path("M7.5 14 1 7.2C-1.4 4.4.4 0 4 0c1.6 0 2.8.9 3.5 2C8.2.9 9.4 0 11 0c3.6 0 5.4 4.4 3 7.2Z"); }
@keyframes im-confetti { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 4% { opacity: 1; } 32% { transform: translate(calc(var(--x) * .75), var(--up)) rotate(calc(var(--r) * .4)); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
.im-toast { position: fixed; bottom: 26px; left: 50%; z-index: 950; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: #1e1b4b; color: #f5f1ff; font-size: .95em; line-height: 1.4; text-align: center; transform: translateX(-50%); box-shadow: 0 14px 34px -14px rgba(16, 0, 63, .7); }
.im-dock { display: none; }

/* ---------- FAQ ---------- */
/* site-faq.css impose un fond blanc avec un sélecteur très fort : ici, la FAQ prend la couleur de la page. */
body.im-page .im-faq[data-site-faq] { margin-bottom: 64px; background: var(--im-page) !important; }
body.im-page .im-faq > h2 { margin: 0 0 12px; font-size: 1.5em; }
body.im-page .im-faq details { border-bottom: 1px solid var(--im-line); }
body.im-page .im-faq summary { padding: 14px 0; color: var(--im-ink); cursor: pointer; font-weight: 500; }
body.im-page .im-faq p { margin: 0 0 16px; color: var(--im-soft); }

/* ---------- Le tableau de suivi, à l'étape Envoyer ---------- */
.im-track { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--im-line); border-radius: 14px; background: var(--im-field); }
.im-track.is-on { border-color: var(--im-violet); }
.im-track__txt { flex: 1; min-width: 0; }
.im-track__txt strong { display: block; font-size: .92em; font-weight: 600; line-height: 1.2; }
.im-track__txt small { display: block; color: var(--im-mute); font-size: .78em; line-height: 1.25; }
.im-track__btn { display: inline-flex; align-items: center; flex: none; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--im-violet); color: #fff !important; font-size: .9em; font-weight: 600; transition: background .15s; }
.im-track__btn:hover { background: var(--im-violet-h); }
.im-track .im-iconbtn { width: 34px; height: 34px; }

/* ---------- La réponse d'un invité vers le tableau ---------- */
.inv__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inv__replynote { display: block; margin-top: .5em; color: var(--soft); font-size: .85em; text-align: left; }
.inv__replynote small { opacity: .8; }
.inv__replynote input { display: block; width: 100%; min-height: max(38px, 2.4em); margin-top: 4px; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 16px; }
.inv__send--main { width: 100%; margin-top: .6em; border: 0; cursor: pointer; }
.inv__replyprivacy { margin: .45em 0 0 !important; color: var(--soft) !important; font-size: .74em; line-height: 1.3; }
.inv__replysaved { margin: .1em 0 .2em !important; color: var(--btn) !important; font-weight: 600; line-height: 1.3; }
body.im-show-preview .inv__replynote input { min-height: 2.4em; font-size: 1em; }

/* ---------- La page des mariés : leur tableau ---------- */
html.im-board-on, html.im-board-on body { height: auto; min-height: 100%; overflow: auto; }
html.im-board-on .im { height: auto; min-height: 100vh; min-height: 100dvh; background: var(--im-page); }
html.im-board-on .im-tool { display: none; }
html.im-board-on body.im-page { background: var(--im-page); }
.imb { padding: clamp(14px, 4vh, 44px) clamp(12px, 3vw, 28px) 48px; }
.imb__in { max-width: 980px; margin: 0 auto; }
.imb__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.imb__kicker { margin: 0 0 .3em; color: var(--im-link); font-size: .8em; letter-spacing: .14em; text-transform: uppercase; }
.imb h1 { margin: 0; color: var(--im-ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2em, 5vw, 3em); font-weight: 600; line-height: 1.08; }
.imb__date { margin: .3em 0 0; color: var(--im-soft); }
.is-spinning svg { animation: imb-spin .5s linear; }
@keyframes imb-spin { to { transform: rotate(-360deg); } }
.imb__stats { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.imb__stat { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 16px; border-radius: 18px; background: var(--im-surface); box-shadow: var(--im-shadow); }
.imb__stat b { color: var(--im-ink); font-size: 1.9em; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.imb__stat span { color: var(--im-mute); font-size: .85em; }
.imb__stat--main { background: var(--im-violet); }
.imb__stat--main b, .imb__stat--main span { color: #fff; }
.imb__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.imb__empty, .imb__none { padding: 36px 20px; border-radius: 18px; background: var(--im-surface); color: var(--im-soft); text-align: center; }
.imb__empty strong { display: block; margin-bottom: .3em; color: var(--im-ink); font-size: 1.1em; }
.imb__empty p { margin: 0; }
.imb__none { margin: 0; }
.imb__table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 18px; background: var(--im-surface); box-shadow: var(--im-shadow); }
.imb__table[hidden] { display: none !important; }
.imb__table th { padding: 11px 14px; border-bottom: 1px solid var(--im-line); color: var(--im-mute); font-size: .78em; font-weight: 500; text-align: left; white-space: nowrap; }
.imb__table td { padding: 11px 14px; border-bottom: 1px solid var(--im-line); color: var(--im-soft); vertical-align: middle; }
.imb__table tr:last-child td { border-bottom: 0; }
.imb-name { color: var(--im-ink) !important; font-weight: 600; overflow-wrap: anywhere; }
.imb-note { min-width: 12em; font-size: .92em; overflow-wrap: anywhere; }
.imb-num { font-variant-numeric: tabular-nums; }
.imb-date { font-size: .88em; white-space: nowrap; }
.imb-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85em; font-weight: 600; }
.imb-badge--yes { background: var(--im-violet); color: #fff; }
.imb-badge--no { background: var(--im-chip); color: var(--im-soft); }
.imb-action { width: 1%; text-align: right; white-space: nowrap; }
.imb-remove { min-width: 30px; height: 30px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: var(--im-mute); font-size: 1.1em; line-height: 1; transition: background .15s, color .15s; }
.imb-remove:hover { background: var(--im-chip); color: var(--im-ink); }
.imb-remove.is-armed { background: var(--im-chip); color: var(--im-ink); font-size: .8em; }
.imb__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 18px; color: var(--im-mute); font-size: .84em; }
.imb__foot p { display: flex; gap: 6px; margin: 0; flex: 1 1 22em; line-height: 1.35; }
.imb__foot .im-textbtn { color: var(--im-mute) !important; font-size: 1em; }
.imb__message { max-width: 34em; padding-top: 16vh; color: var(--im-soft); text-align: center; }
.imb__message p { margin: 0 0 1.2em; }
@media (max-width: 720px) {
    .imb__stats { grid-template-columns: repeat(3, 1fr); }
    .imb__stat { padding: 10px 12px; border-radius: 14px; }
    .imb__stat b { font-size: 1.5em; }
    .imb__stat span { font-size: .78em; }
    .imb__stat--main { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; }
    .imb__table, .imb__table tbody { display: block; background: none; box-shadow: none; overflow: visible; }
    .imb__table thead { display: none; }
    .imb__table tr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-bottom: 8px; padding: 12px 14px; border-radius: 16px; background: var(--im-surface); box-shadow: var(--im-shadow); }
    .imb__table td { display: block; padding: 0; border: 0; font-size: .92em; }
    .imb__table td[data-label]::before { content: attr(data-label); display: block; color: var(--im-mute); font-size: .78em; }
    .imb-name { grid-column: 1 / -1; padding-right: 72px !important; font-size: 1.05em !important; }
    .imb__table .imb-name::before { display: none !important; }
    .imb-note { grid-column: 1 / -1; min-width: 0; }
    .imb-action { position: absolute; top: 6px; right: 8px; width: auto; }
}

/* ---------- Les fenêtres de date et d'heure ---------- */
.imp { --imp-cell: 38px; position: fixed; z-index: 1900; box-sizing: border-box; width: calc(var(--imp-cell) * 7 + 2px * 6 + 28px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 12px 14px 12px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--im-line); border-radius: 20px; background: var(--im-surface); color: var(--im-ink); font-family: 'QRC Texte', Arial, sans-serif; font-size: 15px; line-height: 1.3; box-shadow: 0 24px 54px -22px rgba(30, 10, 90, .55); animation: imp-in .14s ease-out; }
:where(.imp) { letter-spacing: .015em; }
.imp, .imp * { box-sizing: border-box; }
.imp :where(button) { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.imp svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes imp-in { from { opacity: 0; transform: translateY(-4px); } }
.imp-backdrop { position: fixed; inset: 0; z-index: 1890; background: rgba(30, 27, 58, .32); touch-action: none; }
.imp__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.imp__titles { min-width: 0; }
.imp__titles strong { display: block; font-size: 1em; font-weight: 600; }
.imp__titles span { display: block; color: var(--im-mute); font-size: .84em; }
.imp__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--im-link); transition: background .15s; }
.imp__icon:hover:not(:disabled) { background: var(--im-chip); }
.imp__icon:disabled { cursor: default; opacity: .28; }
.imp__head .imp__icon { margin: -6px -6px 0 0; color: var(--im-mute); }
.imp__nav { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 4px; }
.imp__month { flex: 1; min-height: 34px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; text-align: center; transition: background .15s; }
.imp__month:hover { background: var(--im-chip); }
.imp__year { flex: 1; font-weight: 600; text-align: center; }
.imp__week, .imp__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.imp__week span { color: var(--im-mute); font-size: .78em; line-height: 24px; text-align: center; }
.imp__days { grid-auto-rows: var(--imp-cell); min-height: calc(var(--imp-cell) * 6 + 2px * 5); }
.imp__days button { position: relative; padding: 0; border: 0; border-radius: 50%; background: transparent; font-variant-numeric: tabular-nums; transition: background .12s; }
.imp__days button:hover:not(:disabled) { background: var(--im-chip); }
.imp__days button:disabled { color: var(--im-mute); cursor: default; opacity: .35; }
.imp__days .is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--im-violet); }
.imp__days .is-picked, .imp__days .is-picked:hover:not(:disabled) { background: var(--im-violet); color: #fff; font-weight: 600; }
.imp__days .is-picked::after { background: #fff; }
.imp__months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.imp__months .imp__chip { min-height: 46px; }
.imp__label { margin: 8px 0 4px; color: var(--im-mute); font-size: .82em; }
.imp__head + .imp__label { margin-top: 0; }
.imp__chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.imp__chip { min-height: 34px; padding: 0; border: 0; border-radius: 10px; background: var(--im-chip); font-size: .92em; font-variant-numeric: tabular-nums; transition: background .12s; }
.imp__chip:hover:not(:disabled) { background: var(--im-line); }
.imp__chip:disabled { cursor: default; opacity: .4; }
.imp__chip.is-picked, .imp__chip.is-picked:hover:not(:disabled) { background: var(--im-violet); color: #fff; font-weight: 600; }
.imp__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.imp__link { padding: 4px 2px; border: 0; background: none; color: var(--im-mute); font-size: .88em; text-decoration: underline; text-underline-offset: 3px; }
.imp__link:hover { color: var(--im-ink); }
.imp__done { min-height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--im-violet); color: #fff !important; font-weight: 600; transition: background .15s; }
.imp__done:hover { background: var(--im-violet-h); }
.imp :focus-visible { outline: 2px solid var(--im-violet); outline-offset: 1px; }
html[data-theme="dark"] .imp { box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85); }
html[data-theme="dark"] .imp-backdrop { background: rgba(0, 0, 0, .45); }
/* Téléphone : une feuille posée sur le bas de l'écran, avec de vraies cibles pour le doigt. */
.imp.is-sheet { --imp-cell: 42px; left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: none; max-height: 88dvh; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 22px 22px 0 0; box-shadow: 0 -18px 44px -18px rgba(30, 10, 90, .55); font-size: 16px; animation: imp-sheet .2s ease-out; }
@keyframes imp-sheet { from { transform: translateY(40px); opacity: .4; } }
.imp.is-sheet .imp__days button { justify-self: center; width: var(--imp-cell); }
.imp.is-sheet .imp__chip { min-height: 42px; }
.imp.is-sheet .imp__done { min-height: 44px; }
.imp.is-sheet .imp__icon { width: 40px; height: 40px; }
/* En mode Aperçu, l'invitation reste visible et change en direct : pas de voile, une feuille plus basse. */
body.im-show-preview .imp-backdrop { background: transparent; }
body.im-show-preview .imp.is-sheet { --imp-cell: 36px; padding-top: 10px; }
body.im-show-preview .imp.is-sheet .imp__head { margin-bottom: 2px; }
body.im-show-preview .imp.is-sheet .imp__chip { min-height: 36px; }
/* Écran très bas (téléphone à l'horizontale) */
@media (max-height: 480px) {
    .imp { --imp-cell: 27px; padding: 8px 12px; font-size: 13px; }
    .imp__head { margin-bottom: 2px; }
    .imp__icon { width: 28px; height: 28px; }
    .imp__month { min-height: 28px; }
    .imp__week span { line-height: 18px; }
    .imp__chip { min-height: 26px; }
    .imp[data-kind="time"] { width: 340px; }
}

/* ---------- Le lien d'un invité : l'invitation seule, sans le menu du site ---------- */
html.im-guest { --side-bar-w: 0px !important; }
html.im-guest body > :not(#im):not(script) { display: none !important; }
html.im-guest body { padding: 0 !important; }
html.im-guest body::before { display: none !important; }
html.im-guest .im-hero, html.im-guest .im-panel, html.im-guest .im-preview__bar, html.im-guest .im-dock { display: none !important; }
html.im-guest, html.im-guest body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.im-guest .im { height: 100vh; height: 100dvh; }
html.im-guest[data-im-look="lilas"] .im { background: #e9def5; }
html.im-guest[data-im-look="champagne"] .im { background: #efe6d3; }
html.im-guest[data-im-look="poudre"] .im { background: #f5e1e0; }
html.im-guest[data-im-look="terracotta"] .im { background: #efdccd; }
html.im-guest[data-im-look="sauge"] .im { background: #e1eadf; }
html.im-guest[data-im-look="nuit"] .im { background: #0b0f26; }
html.im-guest .im-tool { height: 100%; margin: 0; padding: 0; }
html.im-guest .im-layout { display: block; height: 100%; max-width: none; min-height: 0; margin: 0; }
html.im-guest .im-preview { height: 100%; padding: clamp(6px, 2.4vh, 26px) clamp(8px, 2vw, 26px); border-radius: 0; background: none; box-shadow: none; }
.im-missing { max-width: 34em; margin: 0 auto; padding: 18vh 20px; text-align: center; }
.im-missing h1 { margin: 0 0 .4em; color: var(--im-ink); font-family: inherit; font-size: 2em; font-weight: 600; }
.im-missing p { margin: 0 0 1.4em; color: var(--im-soft); }

/* Écrans d'ordinateur peu hauts : on retire d'abord ce qui n'est pas indispensable. */
@media (min-width: 981px) and (max-height: 780px) {
    .im-hero { --im-hero-pad: 80px; padding-bottom: 58px; }
    .im-hero__lead { display: none; }
    .im-layout { --im-top: 134px; }
    .im-draft { display: none; }
}
@media (min-width: 981px) and (max-height: 680px) {
    #send-ready { gap: 5px; }
    #send-ready .im-pane__help, #track-note, .im-track__txt small { display: none; }
    #send-ready .im-btn { min-height: 38px; padding-top: 3px; padding-bottom: 3px; }
    #send-ready .im-btn i { width: 30px; height: 30px; }
    .im-track { padding: 3px 8px; }
    #send-ready .im-reset { margin-top: 0; }
    #panel-style { gap: 5px; }
    #panel-style .im-pane__title small { display: none; }
    .im-font b { min-height: 1.3em; font-size: 1.3em; }
    .im-look { gap: 2px; padding: 2px 3px 3px; }
    .im-orn { gap: 1px; padding: 2px 3px 3px; }
    .im-switch__txt small { display: none; }
    .im-note { display: none; }
    .im-field textarea { min-height: 54px; }
    .im-preview { padding: 8px 10px 10px; }
    .im-upload small { display: none; }
    .im-font span { font-size: .85em; }
}
@media (min-width: 981px) and (max-height: 620px) {
    #panel-reponses .im-pane__title, #panel-style .im-pane__title, #panel-envoyer .im-pane__title { display: none; }
    #panel-reponses { gap: 5px; }
    .im-switch { padding: 0; }
}
/* Sous 1200 px, le site passe au menu mobile, posé au-dessus de la page et non plus flottant. */
@media (min-width: 981px) and (max-width: 1200px) {
    .im-hero { --im-hero-pad: 14px; padding-bottom: 56px; }
    .im-hero__lead { display: none; }
    .im-layout { --im-top: 130px; }
    .im-switch__txt small, .im-note, .im-draft { display: none; }
    .im-look { font-size: .64em; }
    .im-orn { font-size: .68em; }
}
/* ---------- Téléphone et petite tablette ---------- */
@media (max-width: 980px) {
    .im-hero { padding: 14px 16px 74px; }
    .im-hero__lead { margin-top: .3em; font-size: .9em; }
    .im-tool { margin-top: -60px; padding: 0 10px 28px; }
    .im-layout { display: block; height: auto; min-height: 0; margin-top: 0; }
    .im-panel { padding: 10px 12px 12px; border-radius: 22px; overflow: visible; overscroll-behavior: auto; }
    .im-preview { display: none; padding: 8px 8px 10px; border-radius: 22px; }
    .im-pane { gap: 11px; }
    .im-field input, .im-field textarea, .im-pick { min-height: 44px; }
    .im-looks, .im-ornaments { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .im-orn { font-size: .86em; }
    .im-orn__art { height: 42px; }
    .im-look { font-size: .88em; }
    .im-pane > .im-btn { margin-top: 6px; }
    .im-look__art { height: 62px; }
    .im-font { padding: 7px 4px; }
    .im-upload { padding: 12px; }
    .im-card { width: auto; }
    .im-toast { bottom: 24px; }
    html.im-guest .im-preview { display: flex; height: 100%; min-height: 0; padding: 6px; }
    html.im-guest .inv { padding-left: 1.2em; padding-right: 1.2em; }

    /* Modifier / Aperçu : entre le titre et les étapes. */
    .im-dock { display: flex; gap: 4px; width: max-content; margin: 0 auto 8px; padding: 4px; border-radius: 999px; background: var(--im-surface); box-shadow: 0 14px 30px -18px rgba(16, 0, 63, .7); }
    .im-dock button { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 112px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--im-mute); font-size: .95em; }
    .im-dock button[aria-pressed="true"] { background: var(--im-violet); color: #fff; }

    /* Le mode Aperçu : un écran exactement, sans cadre flottant. La bande violette en haut, l'invitation
       sur toute la largeur, et les réglages en feuille posée sur le bas de l'écran.
       Le menu n'est plus collant : il remonte avec le titre, et revient si l'on insiste au défilement. */
    body.im-show-preview:not(.menu-open) #mobile-header-main { position: relative; }
    body.im-show-preview .im-tool { display: flex; flex-direction: column; height: 100vh; height: var(--im-vh, 100dvh); padding: 0; }
    body.im-show-preview .im-dock { flex: none; margin: 7px 0 6px 8px; }
    body.im-show-preview .im-dock button { min-width: 0; min-height: 32px; padding: 0 12px; font-size: .86em; }
    body.im-show-preview .im-dock svg { display: none; }
    body.im-show-preview .im-layout { flex: 1; display: flex; flex-direction: column; gap: 0; width: 100%; max-width: none; min-height: 0; }
    body.im-show-preview .im-preview { position: static; order: 1; display: flex; flex: 1 1 60%; min-height: 0; padding: 8px 8px 16px; border-radius: 0; box-shadow: none; }
    /* Rien ne défile dans l'aperçu : l'invitation s'ajuste à la place disponible. */
    body.im-show-preview .im-stage { overflow: hidden; }
    body.im-show-preview .im-preview__bar { position: absolute; top: 7px; right: 8px; margin: 0; gap: 2px; }
    body.im-show-preview .im-preview__bar .im-seg { padding: 3px; }
    body.im-show-preview .im-preview__bar .im-seg button { min-height: 28px; padding: 0 9px; font-size: .84em; }
    body.im-show-preview .im-preview__bar .im-iconbtn { width: 32px; height: 34px; color: #fff; }
    body.im-show-preview .im-panel { position: relative; z-index: 1; order: 2; display: flex; flex-direction: column; flex: 1 1 40%; min-height: 0; margin-top: -8px; padding: 8px 10px 0; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 26px -18px rgba(30, 10, 90, .55); overflow: hidden; }
    body.im-show-preview .im-steps { margin-bottom: 8px; }
    body.im-show-preview .im-step { min-height: 32px; }
    /* Les réglages défilent dans leur feuille et n'entraînent pas la page en arrivant en butée. */
    body.im-show-preview #im-form { flex: 1; display: block; min-height: 0; padding-bottom: 12px; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
    body.im-show-preview.im-free #im-form { overscroll-behavior: auto; }
    body.im-show-preview #im-form::-webkit-scrollbar { display: none; }
    body.im-show-preview .im-pane { flex: none; gap: 9px; }
    body.im-show-preview .im-pane > .im-btn, body.im-show-preview .im-draft { display: none; }
    body.im-show-preview .im-look__art { height: 44px; }
    /* Une carte miniature n'a pas besoin des tailles minimales du tactile. */
    body.im-show-preview .inv { max-width: 36em; padding-left: 1.2em; padding-right: 1.2em; }
    body.im-show-preview .inv__yes { min-height: 3.1em; }
    body.im-show-preview .inv__noslot { height: 2.7em; }
    body.im-show-preview .inv__send { min-height: 2.7em; }
    body.im-show-preview .inv__arena { font-size: 1em; }
    body.im-show-preview .inv__replyname input { min-height: 2.4em; font-size: 1em; }
    body.im-show-preview .inv__stepper { height: 2.4em; }
    html.im-game body.im-show-preview .im-preview { clip-path: inset(-60px 0 0 0); }
}
/* Téléphone à l'horizontale, en mode Aperçu : l'invitation à gauche, les réglages à droite. */
@media (max-width: 980px) and (max-height: 560px) and (orientation: landscape) {
    body.im-show-preview .im-layout { flex-direction: row; }
    body.im-show-preview .im-preview, body.im-show-preview .im-panel { flex: 1 1 50%; }
}
@media (max-width: 560px) {
    .im-row:not(.im-row--names):not(.im-row--keep) { flex-wrap: wrap; }
    .im-row:not(.im-row--names):not(.im-row--keep) > .im-field { flex: 1 1 100%; }
    .im-switches { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .im-switch__txt strong { font-size: .95em; }
    .im-switch__txt small { font-size: .82em; }
    .im-switch__ui { margin-left: auto; }
    .im-switch { padding: 6px 0; }
}
@media (max-width: 560px) {
    .inv__arena { font-size: min(1em, 4.4vw); }
}
@media (max-width: 420px) {
    .im-step { gap: 4px; font-size: .86em; }
    .im-step i { display: none; }
    .im-step.is-on i { display: grid; }
    .im-actions .im-btn { width: 100%; }
    .inv__arena { gap: 8px; }
    .inv__yes { padding-left: 1em; padding-right: 1em; }
    .inv__noslot { width: 4.2em; }
}
/* Téléphone à l'horizontale : les informations à gauche, la réponse à droite. */
@media (max-height: 480px) and (orientation: landscape) and (max-width: 980px) {
    html.im-guest .inv { max-width: min(92vw, 56em); }
    html.im-guest .inv__body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.6em; align-items: center; }
    html.im-guest .inv__body > * { grid-column: 1; }
    html.im-guest .inv__body > .inv__rsvp { grid-column: 2; grid-row: 1 / span 9; margin: 0; }
    html.im-guest .inv__emblem { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .im *, .im *::before, .im *::after { animation: none !important; transition: none !important; }
    .im-confetti__piece { display: none; }
}
