/*
 * Page publique de resolu.ch (console de flotte). Indépendante de Tailwind (app.css).
 *
 * Une suite d'affiches plein écran, posées l'une sur l'autre comme des feuilles. Chaque affiche : la question du visiteur,
 * tapée à la machine ; la réponse, en très grand ; puis un objet à manipuler. Les petits carrés du logo servent
 * partout de matière : chaque carré est un élément de la mémoire.
 *
 * Couleurs : la page repose sur l'encre, le papier et la pierre ; le violet du logo n'est qu'un accent (logo, boutons,
 * chiffres, carrés), jamais un fond.
 *
 * Polices locales : Big Shoulders Display (affiches), IBM Plex Mono (voix du visiteur), Plus Jakarta Sans (texte).
 */
:root {
    --violet: #4f45c4;
    --violet-light: #b3aaff;
    --night: #16152b;
    --indigo: #1d1a3d;
    --ink: #1e1e24;
    --paper: #f7f5ef;
    --stone: #ebe8e0;
    --mint: #1d8f6d;
    --mint-bright: #7fd8b8;
    --clay: #e0694f;

    --font-poster: 'Big Shoulders Display Variable', 'Arial Narrow', sans-serif;
    --font-typed: 'IBM Plex Mono', ui-monospace, monospace;
    --font-text: 'Plus Jakarta Sans Variable', 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--night); color: var(--ink); font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent, var(--violet)); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.wrap { position: relative; z-index: 1; width: min(100% - 40px, 1240px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Affiches : chacune règle ses couleurs, toutes partagent la même construction. */
.poster {
    position: relative;
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: center;
    padding: 72px 0 110px;
    background: var(--bg);
    color: var(--fg);
}
/* Chaque affiche mord sur la précédente par son bord arrondi, comme une feuille posée dessus. Le défilement reste
   celui du navigateur : rien ne s'arrête, rien ne se fige. */
.poster + .poster { margin-top: -30px; border-radius: 30px 30px 0 0; box-shadow: 0 -18px 44px -24px rgba(10, 6, 40, 0.5); }
.poster--violet { --bg: var(--indigo); --fg: #fff; --soft: #d6d2ee; --accent: var(--violet-light); --rule: rgba(255, 255, 255, 0.18); --tint: rgba(255, 255, 255, 0.1); }
.poster--night { --bg: var(--night); --fg: #fff; --soft: #cfcbe6; --accent: var(--violet-light); --rule: rgba(255, 255, 255, 0.2); --tint: rgba(255, 255, 255, 0.1); }
.poster--paper { --bg: var(--paper); --fg: var(--ink); --soft: #55555f; --accent: var(--violet); --rule: #e0dbcf; --tint: #ebe8f7; }
.poster--lilac { --bg: var(--stone); --fg: var(--ink); --soft: #514f5c; --accent: var(--violet); --rule: #d5d0c3; --tint: #fff; }

/* La question du visiteur, tapée à la machine. */
.ask { display: flex; align-items: baseline; gap: 12px; color: var(--accent); font-family: var(--font-typed); font-size: clamp(1rem, 0.86rem + 0.7vw, 1.4rem); line-height: 1.35; }
.ask-who { flex: 0 0 auto; padding: 2px 9px; border-radius: 6px; background: var(--accent); color: var(--bg); font-family: var(--font-text); font-size: 0.7em; font-weight: 800; }
.ask-text:not(:has(.typed-done))::after, .ask-text .typed-done::after { display: inline-block; width: 0.55em; height: 1.05em; margin-left: 0.14em; background: currentColor; content: ''; vertical-align: -0.16em; animation: caret 1.05s steps(1) infinite; }
.typed-rest { visibility: hidden; }
@keyframes caret { 50% { opacity: 0; } }

/* La réponse, en très grand. */
.shout { margin-top: 0.16em; font-family: var(--font-poster); font-size: clamp(3.5rem, 15.5vw, 9.5rem); font-weight: 900; line-height: 0.93; letter-spacing: -0.005em; text-transform: uppercase; text-wrap: balance; }
.hero .shout { font-size: clamp(4.2rem, 19vw, 11.5rem); }
.shout--lines span { display: block; }
.lede { max-width: 38rem; color: var(--soft); font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); }
.shout + .lede { margin-top: 28px; }
.label { margin-bottom: 12px; color: var(--accent); font-family: var(--font-typed); font-size: 0.86rem; }
.rule { max-width: 38rem; margin-top: 18px; color: var(--soft); }
.rule strong { color: var(--fg); }
.split { display: grid; gap: 40px; margin-top: 36px; }

/* Marque : le logo sert de masque, il prend la couleur du texte qui l'entoure. */
.brand { display: inline-flex; align-items: center; gap: 4px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.04em; }
.brand-mark { display: inline-block; width: 40px; height: 40px; flex: 0 0 auto; background: currentColor; -webkit-mask: url("../images/logo-k4G-xef.svg") center / 100% no-repeat; mask: url("../images/logo-k4G-xef.svg") center / 100% no-repeat; }

/* Boutons */
.button { position: relative; display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 26px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.2; cursor: pointer; transition: transform 0.15s ease; }
.button:hover { transform: translateY(-2px); }
.button--light { background: #fff; color: var(--ink); }
.cta-note { max-width: 30rem; margin-top: 12px; color: var(--soft); font-size: 0.92rem; }
.link { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 16px; border: 1.5px solid var(--rule); border-radius: 999px; background: transparent; color: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.chips--big .chip { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.float-cta.is-away { opacity: 0; pointer-events: none; transform: translateY(12px); }
.float-cta { display: inline-flex; align-items: center; transition: opacity 0.2s ease, transform 0.2s ease; position: fixed; z-index: 60; right: 16px; bottom: 16px; min-height: 48px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-size: 0.92rem; font-weight: 700; box-shadow: 0 12px 30px -10px rgba(10, 6, 40, 0.6); cursor: pointer; }

/* Curseur : le temps qui passe, le nombre de personnes. */
.range { --filled: 100%; width: 100%; height: 34px; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(to right, var(--violet) var(--filled), var(--rule) var(--filled)); }
.range::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -11px; border: 4px solid #fff; border-radius: 8px; background: var(--violet); box-shadow: 0 2px 8px rgba(27, 22, 56, 0.4); -webkit-appearance: none; }
.range::-moz-range-track { height: 8px; border-radius: 8px; background: var(--rule); }
.range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--violet); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 4px solid #fff; border-radius: 8px; background: var(--violet); }

/* Première affiche : une question, la réponse, et les carrés qui se rangent (field_controller.js). */
.hero { justify-content: flex-start; padding-top: 0; overflow: hidden; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.topline { display: flex; min-height: 68px; align-items: center; justify-content: space-between; margin-bottom: clamp(20px, 5vh, 56px); }
.nav-login { padding: 8px 12px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; }
.nav-login:hover { background: var(--tint); }
.hero-grid { display: grid; gap: 32px; margin-top: 28px; }
.hero-lead { color: var(--soft); font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); }
.hero-pitch .button { width: 100%; margin-top: 22px; }
.reply-who { color: var(--soft); font-family: var(--font-typed); font-size: 0.86rem; }
.reply-who span { padding: 2px 9px; border-radius: 6px; background: var(--violet-light); color: var(--indigo); font-family: var(--font-text); font-weight: 800; }
.reply-scenarios { display: grid; margin-top: 12px; }
.reply-scenario { display: grid; grid-area: 1 / 1; align-content: start; gap: 12px; visibility: hidden; }
.reply-scenario.is-active { visibility: visible; }
.reply-consult { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--soft); font-size: 0.86rem; font-weight: 600; }
.reply-consult .brand-mark { width: 26px; height: 26px; margin: -4px -2px -4px -4px; }
.reply-source { padding: 2px 9px; border-radius: 8px; background: var(--tint); white-space: nowrap; }
.reply-text { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); font-weight: 600; line-height: 1.35; }
.reply-memory { color: var(--mint-bright); font-family: var(--font-typed); font-size: 0.88rem; }
.reply-memory::before { content: '+ '; }
.pickers { display: grid; gap: 18px; }
.picker-label { margin-bottom: 8px; color: var(--soft); font-family: var(--font-typed); font-size: 0.82rem; }
.picker-note { color: var(--soft); font-size: 0.92rem; }
/* Sans JavaScript, tout est lisible. Avec, les répliques arrivent une à une (demo_controller.js). */
.demo--live .demo-step { opacity: 0; transform: translateY(8px); }
.demo--live .demo-step.is-shown { opacity: 1; transform: none; transition: opacity 0.35s ease, transform 0.35s ease; }

/* Une journée : l'heure, la demande, ce qu'on obtient. */
.day { margin-top: 40px; }
.hour { display: grid; gap: 6px; padding: 26px 0; border-top: 1px solid var(--rule); }
.hour-time { color: var(--accent); font-family: var(--font-poster); font-size: clamp(3.4rem, 2.4rem + 4vw, 5.5rem); font-weight: 900; line-height: 0.85; font-variant-numeric: tabular-nums; }
.hour-when { color: var(--soft); font-family: var(--font-typed); font-size: 0.86rem; }
.hour-quote { margin-top: 4px; font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.hour-result { max-width: 34rem; color: var(--soft); }

/* Vos accès : le coffre de Résolu, et ce que l'assistant peut faire ou non. */
.vault { font-family: var(--font-typed); font-size: 0.92rem; }
.vault li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--rule); }
.vault-dots { flex: 0 0 auto; color: var(--accent); letter-spacing: 0.12em; }
.lede + .label { margin-top: 32px; }
.verdict { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem); font-weight: 600; line-height: 1.25; }
.verdict-stamp { flex: 0 0 auto; padding: 2px 10px 0; border: 2.5px solid currentColor; border-radius: 6px; font-family: var(--font-poster); font-size: 1.15rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; transform: rotate(-4deg); white-space: nowrap; }
.verdict--yes .verdict-stamp { color: var(--mint-bright); }
.verdict--ask .verdict-stamp { color: #ffd166; }
.verdict--never .verdict-stamp { color: var(--clay); }
.verdict--never .verdict-action { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--clay); text-decoration-thickness: 2px; }
.verdict-note { margin-top: 18px; color: var(--soft); font-size: 0.95rem; }

/* Le journal : chaque action de l'assistant, et le bouton qui la défait (undo_controller.js). */
.log { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: start; gap: 8px 12px; padding: 14px 0; border-top: 1px solid var(--rule); line-height: 1.45; }
.log-when { padding-top: 3px; color: var(--soft); font-family: var(--font-typed); font-size: 0.82rem; }
.log-what strong { font-size: 1.05rem; }
.log-detail, .log-after { color: var(--soft); font-size: 0.95rem; }
.log-after { display: none; color: var(--mint); font-weight: 700; }
.log-undo, .log-safe { grid-column: 2; justify-self: start; min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; }
.log-undo { border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.log-undo:hover:enabled { background: var(--ink); color: #fff; }
.log-undo:disabled { border-color: var(--mint); color: var(--mint); cursor: default; }
.log-safe { display: inline-flex; align-items: center; background: var(--tint); color: var(--violet); }
.log.is-undone .log-what strong, .log.is-undone .log-detail { color: var(--soft); text-decoration: line-through; }
.log.is-undone .log-after { display: block; }

/* La mémoire : chaque carré est un élément du dossier (growth_controller.js). */
.scrub { margin-top: 28px; }
.scrub-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 6px; }
.scrub-head strong { font-family: var(--font-poster); font-size: 2.3rem; font-weight: 900; line-height: 1; text-transform: uppercase; }
.scrub-head > span { color: var(--soft); font-family: var(--font-typed); font-size: 0.86rem; }
.scrub-stops { display: flex; justify-content: space-between; }
.scrub-stops button { min-height: 40px; padding: 0 2px; border: 0; background: none; color: var(--soft); font-family: var(--font-typed); font-size: 0.82rem; cursor: pointer; }
.scrub-stops button:hover { color: var(--accent); }
.grains { display: grid; grid-template-columns: repeat(34, 1fr); gap: 2px; margin-top: 18px; }
.grain { aspect-ratio: 1; border-radius: 1.5px; background: var(--violet); transform: scale(0); transition: transform 0.28s cubic-bezier(0.3, 1.5, 0.5, 1); }
.grain--assistant { background: var(--mint); }
.grain.is-on { transform: scale(1); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--soft); font-family: var(--font-typed); font-size: 0.8rem; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.legend-key { width: 10px; height: 10px; border-radius: 2px; background: var(--violet); }
.legend-key--assistant { background: var(--mint); }
.entry { display: grid; grid-template-columns: 12px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); color: var(--soft); line-height: 1.35; }
.entry strong { color: var(--fg); }
.entry-mark { width: 10px; height: 10px; border-radius: 2px; background: var(--violet); }
.entry--assistant .entry-mark { background: var(--mint); }
.entries + .label { margin-top: 28px; }
.askables li { font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.askables li + li { margin-top: 6px; }
[data-view="1"] [data-from="2"],
[data-view="1"] [data-from="3"],
[data-view="2"] [data-from="3"],
[data-view="1"] [data-only]:not([data-only="1"]),
[data-view="2"] [data-only]:not([data-only="2"]),
[data-view="3"] [data-only]:not([data-only="3"]),
.sharing:not([data-view]) [data-only]:not([data-only="1"]) { display: none; }
.memory[data-view] .entry, .memory[data-view] .askables li { animation: entry-in 0.3s ease both; }
@keyframes entry-in { from { opacity: 0; transform: translateY(8px); } }

/* Le partage : ce qu'une personne ne voit pas est caviardé (view_controller.js règle data-view). */
.shares { margin-top: 20px; }
.share { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--rule); line-height: 1.5; }
.share strong { font-size: 1.08rem; }
.share p > span { color: var(--soft); font-size: 0.95rem; }
.redact { border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color 0.25s ease, color 0.25s ease; }
.share-scope { justify-self: start; padding: 2px 9px; border-radius: 6px; background: var(--tint); color: var(--violet); font-family: var(--font-typed); font-size: 0.78rem; white-space: nowrap; }
.share[data-owner] .share-scope { background: var(--ink); color: #fff; }
.sharing[data-view="1"] .share[data-owner]:not([data-owner="1"]) .redact,
.sharing[data-view="2"] .share[data-owner]:not([data-owner="2"]) .redact,
.sharing[data-view="3"] .share[data-owner]:not([data-owner="3"]) .redact { background: var(--ink); color: transparent; user-select: none; }
.sharing-roles { min-height: 5em; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--soft); }

/* Indépendance : le nom de l'assistant change, la mémoire reste (rotator_controller.js). */
.plug { margin-top: 20px; font-family: var(--font-poster); font-size: clamp(2.2rem, 8vw, 4.6rem); font-weight: 900; line-height: 1; text-transform: uppercase; }
.plug-word { display: inline-block; padding: 0.06em 0.22em 0; border-radius: 0.14em; background: var(--violet-light); color: var(--indigo); transition: opacity 0.22s ease, transform 0.22s ease; }
.plug-word.is-leaving { opacity: 0; transform: translateY(-0.3em); }
.links > div { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--rule); }
.links dt { font-size: 1.15rem; font-weight: 800; }
.links dd { color: var(--soft); }

/* Tarifs : un carré par personne (pricing_controller.js). */
.periods { margin-top: 22px; }
.shout--price { font-size: clamp(5.5rem, 27vw, 15rem); font-variant-numeric: tabular-nums; }
.shout--price small { display: block; margin-top: 0.3em; color: var(--soft); font-family: var(--font-typed); font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem); font-weight: 400; letter-spacing: 0; text-transform: none; }
.pricing .split { margin-top: 22px; }
.price-detail { min-height: 3.2em; color: var(--soft); }
.people { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; max-width: 26rem; margin-top: 14px; }
.person { aspect-ratio: 1; border: 2px dashed var(--rule); border-radius: 6px; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1); }
.person.is-on { border: 0; background: var(--night); transform: scale(1); }
.person.is-on:first-child { background: var(--violet); }
.counter { display: flex; max-width: 26rem; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.counter-step { position: relative; display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border: 2px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer; }
.counter-step:hover { background: var(--violet); color: #fff; }
.counter-step--less.action-tooltip::after { right: auto; left: 0; }
.counter-count { font-family: var(--font-poster); font-size: 2.3rem; font-weight: 900; line-height: 1; text-transform: uppercase; }
.pricing .range { max-width: 26rem; margin-top: 10px; }
.pricing .lede { color: var(--fg); font-weight: 600; }
.pricing .button { margin-top: 26px; }
.closing .cta-note { margin-top: 14px; }

/* Mise en route */
.steps { display: grid; gap: 34px; margin-top: 44px; }
.step-number { display: block; color: var(--accent); font-family: var(--font-poster); font-size: clamp(6rem, 4rem + 8vw, 10rem); font-weight: 900; line-height: 0.8; }
.step h3 { margin-top: 16px; font-size: 1.3rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; }
.step p { max-width: 26rem; margin-top: 8px; color: var(--soft); }

/* Questions */
.faq-list { max-width: 52rem; margin-top: 40px; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { flex: 0 0 auto; color: var(--accent); content: '+'; font-family: var(--font-typed); font-size: 1.7rem; line-height: 1; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { max-width: 42rem; padding-bottom: 24px; color: var(--soft); }

/* Dernière affiche */
.closing { justify-content: flex-end; padding-bottom: 0; }
.closing .lede { margin: 28px 0 26px; }
.footer { display: grid; gap: 10px; margin-top: 72px; padding: 22px 0 96px; border-top: 1px solid var(--rule); color: var(--soft); font-size: 0.9rem; }
.footer .brand { color: #fff; font-size: 1.1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 600; }
.footer-links a:hover { color: #fff; }

/* Infobulle des boutons qui n'ont qu'une icône */
.action-tooltip::after { position: absolute; z-index: 10; top: calc(100% + 9px); right: 0; width: max-content; max-width: 230px; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: #fff; content: attr(data-tooltip); font-family: var(--font-text); font-size: 0.75rem; font-weight: 600; line-height: 1.35; opacity: 0; pointer-events: none; transition: opacity 0.16s ease; }
.action-tooltip:focus-visible::after { opacity: 1; }
@media (hover: hover) { .action-tooltip:hover::after { opacity: 1; } }

/* Demande de présentation (presentation_dialog_controller.js, thème landing/_presentation_form_theme.html.twig) */
.presentation-dialog { width: min(92vw, 640px); max-width: calc(100vw - 24px); max-height: min(90dvh, 780px); margin: auto; padding: 0; overflow-x: hidden; overflow-y: auto; border: 0; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 40px 100px rgba(10, 6, 40, 0.5); --accent: var(--violet); }
.presentation-dialog::backdrop { background: rgba(27, 22, 56, 0.7); }
.presentation-shell { position: relative; min-width: 0; padding: 30px 22px 24px; }
.presentation-close { position: absolute; z-index: 2; top: 16px; right: 16px; display: grid; width: 44px; height: 44px; place-items: center; border: 1.5px solid #e1dccd; border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.presentation-close:hover { background: var(--stone); }
.presentation-heading { padding-right: 48px; }
.presentation-dialog h2 { font-family: var(--font-poster); font-size: clamp(2.2rem, 1.6rem + 3vw, 3.2rem); font-weight: 900; line-height: 0.95; text-transform: uppercase; }
/* Le titre reçoit le focus à l'ouverture (lecteurs d'écran), sans contour. */
.presentation-dialog h2:focus { outline: none; }
.presentation-heading p { margin-top: 12px; color: #55555f; font-size: 0.98rem; }
.presentation-form { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.presentation-field { display: grid; min-width: 0; gap: 6px; }
.presentation-field label { font-size: 0.88rem; font-weight: 700; }
.presentation-input { width: 100%; min-width: 0; min-height: 50px; padding: 11px 14px; border: 1.5px solid #e1dccd; border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; outline: none; transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.presentation-input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.18); }
textarea.presentation-input { min-height: 112px; resize: vertical; }
.presentation-errors { padding: 10px 14px; border-radius: 12px; background: #fdf0ec; color: #8f3521; font-size: 0.86rem; font-weight: 700; }
.presentation-errors ul { display: grid; gap: 4px; }
.presentation-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.presentation-submit { display: flex; min-width: 0; flex-direction: column-reverse; gap: 14px; margin-top: 2px; }
.presentation-submit p { color: #55555f; font-size: 0.8rem; }
.presentation-submit .button { width: 100%; }
.presentation-received { display: grid; min-height: 360px; place-items: center; padding: 42px 8px 20px; text-align: center; }
.presentation-received[hidden], [data-presentation-dialog-target="formContent"][hidden] { display: none !important; }
.presentation-received-inner { width: min(100%, 430px); }
.presentation-received-mark { display: grid; width: 84px; height: 84px; margin: 0 auto 26px; place-items: center; border-radius: 20px; background: #e2f5ee; color: #075f46; }
.presentation-received-mark .icon { width: 40px; height: 40px; }
.presentation-received p { margin-top: 16px; color: #55555f; }
.presentation-received small { display: block; margin-top: 12px; color: #075f46; font-size: 0.8rem; font-weight: 700; }
.presentation-close-progress { height: 4px; margin-top: 30px; overflow: hidden; border-radius: 100px; background: #e2f5ee; }
.presentation-close-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; border-radius: inherit; background: var(--mint); animation: presentation-close-progress 4.5s linear forwards; }
@keyframes presentation-close-progress { to { transform: scaleX(1); } }

@media (min-width: 640px) {
    .wrap { width: min(100% - 64px, 1240px); }
    .poster { padding: 96px 0 134px; }
    .hero { padding-top: 0; }
    .hero-pitch .button { width: auto; }
    .hour { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 6px 28px; }
    .hour-result { grid-column: 2; }
    .share { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
    .log { grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; }
    .log-undo, .log-safe { grid-column: auto; justify-self: end; }
    .share-scope { justify-self: end; }
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
    .footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 40px; }
    .float-cta { right: 24px; bottom: 24px; }
    .presentation-shell { padding: 38px; }
    .presentation-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
    .presentation-field--wide, .presentation-errors, .presentation-submit { grid-column: 1 / -1; }
    .presentation-submit { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; }
    .presentation-submit p { max-width: 320px; }
    .presentation-submit .button { width: auto; flex: 0 0 auto; white-space: nowrap; }
    .presentation-received { min-height: 430px; padding: 50px 28px; }
}

@media (min-width: 1020px) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; margin-top: 48px; }
    .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 80px; margin-top: 36px; }
    .hero-pitch { grid-column: 2; grid-row: 1 / span 2; }
    .reply { grid-column: 1; grid-row: 1; }
    .pickers { grid-column: 1; grid-row: 2; }
    .hour { grid-template-columns: 13rem minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 30px 0; }
    .hour-result { grid-column: auto; }
    .pricing .split { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .presentation-close-progress span { transform: scaleX(1); }
}
