/* Outil vidéo — charte Pianovivo (crème, ardoise, orange ; Baskervville + Plus Jakarta Sans) */
:root {
  --blanc: #FFFFFF;
  --ardoise: #3A3F51;
  --orange: #D18238;
  --creme: #FBF8F3;
  --peche: #F8BC84;
  --bleu-gris: #7781A5;
  --creme-fonce: #F2ECE2;
  --nuit: #1E2230;
  --orange-texte: #8A5625;
  --gris-texte: #5A6079;
  --peche-pale: #FBEBDD;
  --bleu-pale: #ECEEF4;
  --filet: rgba(58, 63, 81, 0.12);
  --rayon: 6px;
  --serif: Baskervville, Baskerville, Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--ardoise); font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ardoise); }
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -0.01em; }
a { color: var(--orange-texte); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ardoise); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--nuit); outline-offset: 3px; }
.muted { color: var(--gris-texte); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* Eyebrow + filet orange */
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-texte); margin: 0 0 20px; }
.eyebrow::after { content: ""; display: block; width: 40px; height: 2px; background: var(--orange); margin-top: 14px; }
.eyebrow.center::after { margin-inline: auto; }

/* Boutons pilule */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--orange); color: var(--blanc); font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.btn:hover { background: var(--ardoise); color: var(--blanc); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-big { padding: 15px 30px; font-size: 1.0625rem; }
.btn-outline { background: transparent; color: var(--ardoise); box-shadow: inset 0 0 0 1.5px var(--ardoise); }
.btn-outline:hover { background: var(--ardoise); color: var(--blanc); }
.btn-link { background: none; border: 0; padding: 8px 4px; color: var(--gris-texte); font: 600 .9375rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-link:hover { color: var(--ardoise); }
.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #E04848; flex: none; }
.btn .rec-dot { background: var(--blanc); }

/* Champs */
label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid rgba(58, 63, 81, .25); border-radius: var(--rayon); background: var(--blanc); color: var(--ardoise); font: 400 1rem/1.5 var(--sans); }
input:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; }

/* Cartes */
.card { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 24px; }

/* Messages */
.notice { padding: 12px 16px; border-radius: var(--rayon); margin: 0 0 20px; font-weight: 600; }
.notice[hidden] { display: none; }
.notice-ok { background: #E3F3E9; color: #1F6B40; }
.notice-err { background: #FBE4E1; color: #9B2C1F; }
.notice-info { background: var(--bleu-pale); color: var(--ardoise); font-weight: 400; }

/* ───────── Admin ───────── */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); background: var(--creme); border-bottom: 1px solid var(--filet); position: sticky; top: 0; z-index: 10; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--ardoise); text-decoration: none; }
.logo span { color: var(--orange); }
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar nav a { color: var(--ardoise); font-weight: 600; text-decoration: none; padding: 8px 0; }
.topbar nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.topbar nav a.muted { color: var(--gris-texte); }
.wrap { max-width: 960px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 40px) 80px; }
.page-title { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--orange); color: var(--blanc); font-weight: 700; }
.sub { margin: -12px 0 20px; }
.back { margin: 0 0 12px; font-size: .9375rem; }
.empty { text-align: center; padding: 48px 24px; }
.big { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; margin: 0 0 6px; }

.tasks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.task { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; }
.task-name { margin: 0; font-weight: 700; font-size: 1.0625rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.task-meta { margin: 2px 0 0; color: var(--gris-texte); font-size: .875rem; word-break: break-all; }
.task-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.task-actions form { margin: 0; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill-ready { background: var(--peche-pale); color: var(--orange-texte); }
.pill-off { background: var(--creme-fonce); color: var(--gris-texte); }

details.add { padding: 0; }
details.add summary { padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none; }
details.add summary::after { content: " +"; color: var(--orange-texte); }
details.add[open] summary::after { content: " –"; }
.add-form { padding: 0 22px 22px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.add-form label { margin: 0; }
.ignored { margin-top: 24px; color: var(--gris-texte); font-size: .9375rem; }
.ignored summary { cursor: pointer; }
.ignored ul { padding-left: 18px; }
form.inline { display: inline; }

/* Login */
body.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login { width: 100%; max-width: 400px; padding: 36px; }
.login h1 { margin-bottom: 24px; font-size: 1.75rem; }
.login .btn { width: 100%; }

/* Enregistrement */
.recorder { max-width: 720px; }
.stage { position: relative; aspect-ratio: 4 / 5; width: min(100%, 440px, calc(68vh * 0.8)); margin: 0 auto; background: var(--nuit); border-radius: var(--rayon); overflow: hidden; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--nuit); }
.stage video[hidden] { display: none; }
#live { object-fit: cover; object-position: 50% 30%; }
#live.mirror { transform: scaleX(-1); }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 20px; color: var(--creme); }
.placeholder[hidden] { display: none; }
.placeholder .muted { color: #C9CCD8; }
.placeholder .btn-link { color: var(--peche); padding: 0; font-size: 1rem; }
.timer { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(30, 34, 48, .75); color: var(--blanc); font-weight: 700; font-variant-numeric: tabular-nums; }
.timer[hidden], .countdown[hidden] { display: none; }
.timer .rec-dot { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.countdown { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 6rem; color: var(--blanc); background: rgba(30, 34, 48, .35); }
.controls { margin: 18px auto 0; width: min(100%, 440px); }
.controls > div { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.controls > div[hidden] { display: none; }
.btn-rec { background: #D2453F; }
.btn-stop { background: var(--ardoise); }
#ctl-upload { display: block; }
#ctl-upload[hidden] { display: none; }
#ctl-upload p { margin: 0 0 8px; font-weight: 600; }
.progress { height: 10px; border-radius: 999px; background: var(--creme-fonce); overflow: hidden; }
#up-bar { height: 100%; width: 0; background: var(--orange); transition: width .3s ease; }
@media (max-width: 600px) {
  .controls .btn { flex: 1 1 100%; }
}

/* Envoi */
.send-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.field-static { margin: 0 0 16px; }
.mail-preview { padding: 16px; background: var(--creme); border-radius: var(--rayon); margin-bottom: 20px; }
.mail-preview img { display: block; width: 100%; max-width: 240px; height: auto; border-radius: 8px; }
.mail-preview p { margin: 8px 0 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.side video { display: block; width: min(100%, 320px); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; margin: 0 auto; border-radius: var(--rayon); background: var(--nuit); }
.side p { margin: 10px 0 0; }
@media (max-width: 800px) { .send-grid { grid-template-columns: 1fr; } .add-form { grid-template-columns: 1fr; } }

/* Historique */
.stats { display: flex; gap: 24px; flex-wrap: wrap; margin: 0 0 20px; color: var(--gris-texte); }
.stats strong { color: var(--ardoise); font-size: 1.25rem; }
.table-wrap { padding: 0; overflow-x: auto; }
table.history { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.history th { text-align: left; padding: 14px 18px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-texte); border-bottom: 1px solid var(--filet); }
.history td { padding: 14px 18px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.history tr:last-child td { border-bottom: 0; }

/* ───────── Page publique ───────── */
body.watch { min-height: 100vh; }
.watch-main { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 44px) clamp(16px, 4vw, 32px) 56px; text-align: center; }
.watch-title { font-size: clamp(1.375rem, 3.2vw, 1.75rem); margin-bottom: 18px; }
.reply { margin-top: 28px; }
.reply-label { margin: 0 0 12px; font-weight: 600; }
.reply-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-wa { background: transparent; color: var(--ardoise); box-shadow: inset 0 0 0 1.5px var(--ardoise); }
.btn-wa svg { color: #25D366; }
.btn-wa:hover { background: var(--ardoise); color: var(--blanc); }
@media (max-width: 600px) { .reply-btns .btn { flex: 1 1 100%; } }
.watch-card { text-align: center; padding: 40px 28px; }
.watch-card h1 { margin-bottom: 14px; }
.watch-card p { max-width: 48ch; margin-inline: auto; }

/* Lecteur maison */
.pl { position: relative; width: min(100%, 380px, calc(62vh * 0.8)); aspect-ratio: 4 / 5; margin: 0 auto; border-radius: 24px; overflow: hidden; background: var(--nuit); isolation: isolate; -webkit-tap-highlight-color: transparent; }
.pl video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; cursor: pointer; background: var(--nuit); }
.pl-big { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D18238' d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E") 57% 50% / 44px no-repeat;
  box-shadow: 0 4px 18px rgba(30, 34, 48, .3); transition: transform .15s ease, opacity .2s ease; animation: pl-breathe 2.4s ease-in-out infinite; }
.pl-big::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #fff; animation: pl-ring 2.4s ease-out infinite; pointer-events: none; }
.pl-big:hover { transform: scale(1.08); animation-play-state: paused; }
@keyframes pl-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes pl-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.pl.is-started .pl-big { animation: none; }
.pl.is-started .pl-big::before { display: none; }
@media (prefers-reduced-motion: reduce) { .pl-big, .pl-big::before { animation: none; } }
.pl.is-playing .pl-big { opacity: 0; pointer-events: none; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 34px 16px 14px;
  background: linear-gradient(transparent, rgba(30, 34, 48, .7)); opacity: 0; transition: opacity .25s ease; }
.pl.is-started .pl-bar { opacity: 0; }
.pl.is-started.is-awake .pl-bar, .pl.is-started:not(.is-playing) .pl-bar { opacity: 1; }
.pl-progress { --p: 0%; flex: 1; min-width: 0; height: 20px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.pl-progress::-webkit-slider-runnable-track { height: 5px; border-radius: 999px; background: linear-gradient(to right, var(--orange) var(--p), rgba(255, 255, 255, .35) var(--p)); }
.pl-progress::-moz-range-track { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .35); }
.pl-progress::-moz-range-progress { height: 5px; border-radius: 999px; background: var(--orange); }
.pl-progress::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5.5px; border: 0; border-radius: 50%; background: #fff; }
.pl-progress::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.pl-full { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M5 5h5v2H7v3H5zm9 0h5v5h-2V7h-3zM5 14h2v3h3v2H5zm12 0h2v5h-5v-2h3z'/%3E%3C/svg%3E") center / 24px no-repeat; }
.pl-full:hover { background-color: rgba(255, 255, 255, .15); }
.pl:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.pl:fullscreen video { object-fit: contain; }
.pl:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; }
@media (hover: none) { .pl.is-started .pl-bar { opacity: 1; } }
@media (max-width: 600px) { .pl { border-radius: 20px; } }

@media (max-width: 600px) {
  .history thead { display: none; }
  .history tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 16px 18px; border-bottom: 1px solid var(--filet); }
  .history tr:last-child { border-bottom: 0; }
  .history td { padding: 0; border: 0; }
  .history td:first-child { grid-column: 1 / -1; }
}
.bg-status { flex-basis: 100%; margin: 4px 0 0; }

/* Choix du script + script par-dessus la caméra */
.script-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: min(100%, 440px); margin: 0 auto 14px; }
.script-pick label { margin: 0; }
.script-pick select { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid rgba(58, 63, 81, .25); border-radius: var(--rayon); background: var(--blanc); color: var(--ardoise); font: 600 1rem var(--sans); }
.prompter { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; background: rgba(30, 34, 48, .8); color: #fff; }
.prompter[hidden], .prompter-show[hidden] { display: none; }
.prompter-text { flex: 1; overflow-y: auto; padding: 22px 22px 8px; font-weight: 600; line-height: 1.45; white-space: pre-wrap; text-align: left; -webkit-overflow-scrolling: touch; }
.prompter-tools { display: flex; gap: 6px; justify-content: flex-end; padding: 8px 12px 14px; }
.prompter-tools button, .prompter-show { min-height: 32px; padding: 4px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: 700 .8125rem var(--sans); cursor: pointer; }
.prompter-tools button:hover, .prompter-show:hover { background: rgba(255, 255, 255, .3); }
.prompter-show { position: absolute; top: 12px; right: 12px; z-index: 3; }
.recording .timer { z-index: 4; }
.stage { border-radius: 20px; }
.stage .timer { top: auto; bottom: 14px; }
.hint { display: block; font-weight: 400; font-size: .875rem; color: var(--gris-texte); margin-top: 2px; }
.script-form { max-width: 720px; }
.script-form .eyebrow { margin-top: 8px; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
label.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.script-excerpt { margin: 6px 0 0; font-size: .9375rem; }
.page-title .btn { margin-left: auto; }
code { background: var(--creme-fonce); padding: 1px 6px; border-radius: 4px; font-size: .875em; }

/* Page d'enregistrement sans menu */
body.bare .wrap { padding-top: 20px; }
.stage .timer { z-index: 4; } .countdown { z-index: 5; }

/* Historique : onglets, pastilles, stats */
.tabs, .period { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: -6px 0 20px; }
.tabs a, .period a { padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .9375rem; color: var(--ardoise); text-decoration: none; background: var(--creme-fonce); }
.tabs a[aria-current], .period a[aria-current] { background: var(--ardoise); color: var(--blanc); }
.period a { padding: 6px 14px; font-size: .875rem; background: transparent; box-shadow: inset 0 0 0 1px var(--filet); }
.period .sync { margin-left: auto; }
.setup { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; border-color: var(--peche); background: var(--peche-pale); }
.setup p { margin: 0; }
.steps .pill { margin: 0 4px 4px 0; }
.pill-ok { background: #E3F3E9; color: #1F6B40; }
.pill-bad { background: #FBE4E1; color: #9B2C1F; }
.legend { margin-top: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; }
.kpi-n { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.1; }
.kpi-l { margin: 4px 0 0; color: var(--gris-texte); font-size: .875rem; }
.funnel { margin-bottom: 16px; }
.f-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 90px; gap: 14px; align-items: center; padding: 7px 0; }
.f-label { font-weight: 600; font-size: .9375rem; }
.f-bar { height: 12px; border-radius: 999px; background: var(--creme-fonce); overflow: hidden; }
.f-bar span { display: block; height: 100%; border-radius: 999px; background: var(--orange); }
.f-val { text-align: right; font-size: .9375rem; white-space: nowrap; }
.f-note { margin: 12px 0 0; padding: 8px 12px; border-radius: var(--rayon); }
.by-script td, .by-script th { white-space: nowrap; }
@media (max-width: 700px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-row { grid-template-columns: 1fr 80px; }
  .f-bar { grid-column: 1 / -1; grid-row: 2; }
  .by-script tr { display: table-row; }
  .by-script thead { display: table-header-group; }
  .by-script td { display: table-cell; padding: 10px 12px; border-bottom: 1px solid var(--filet); }
}

/* Chargement de la vidéo */
.pl-spin { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .3); border-top-color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.pl.is-loading .pl-spin { opacity: 1; animation: pl-rot .8s linear infinite; }
.pl.is-loading .pl-big { opacity: 0; pointer-events: none; }
@keyframes pl-rot { to { transform: rotate(360deg); } }

/* En-tête sans logo : menu aligné sur le contenu */
.topbar { justify-content: center; }
.topbar nav { width: 100%; max-width: 880px; gap: 22px; }
.topbar nav .out { margin-left: auto; }

/* Notifications */
.toast { position: fixed; top: 16px; left: 50%; z-index: 50; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: min(92vw, 520px); padding: 14px 14px 14px 16px; border-radius: 12px; background: var(--blanc); border: 1px solid var(--filet); border-left: 4px solid #2E9E5B; box-shadow: 0 10px 30px rgba(30, 34, 48, .14); animation: toast-in .25s ease; transition: opacity .25s ease, transform .25s ease; }
.toast p { margin: 0; flex: 1; font-weight: 600; font-size: .9375rem; }
.toast-err { border-left-color: #C0392B; }
.toast-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #E3F3E9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231F6B40' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.toast-err .toast-ico { background: #FBE4E1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239B2C1F' d='M11 7h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.toast-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--gris-texte); font-size: 1.375rem; line-height: 1; cursor: pointer; }
.toast-x:hover { background: var(--creme-fonce); color: var(--ardoise); }
.toast.is-out { opacity: 0; transform: translate(-50%, -10px); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } }

/* Fenêtre de confirmation */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(30, 34, 48, .45); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-box { width: min(100%, 420px); padding: 28px; border-radius: 16px; background: var(--blanc); box-shadow: 0 20px 50px rgba(30, 34, 48, .25); transform: translateY(8px); transition: transform .2s ease; }
.modal.is-open .modal-box { transform: none; }
.modal-text { margin: 0 0 22px; font-family: var(--serif); font-weight: 600; font-size: 1.375rem; line-height: 1.3; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
