/* Questionnaire de charte graphique : couleurs et polices de l'agence, pensé d'abord pour le téléphone. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-latin-1.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-latin-ext-0.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/space-grotesk-latin-1.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/space-grotesk-latin-ext-0.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/oswald-latin-1.woff2) format("woff2"); }

:root {
  --navy: #0c1c34;
  --navy-2: #13284a;
  --ink: #0c0c23;
  --text: #2f3a4d;
  --muted: #697383;
  --cyan: #049abb;
  --cyan-text: #037a94;
  --cyan-soft: #e3f5fa;
  --pink: #eb237e;
  --pink-btn: #c8186e;
  --pink-btn-2: #a8135b;
  --pink-soft: #fde8f2;
  --line: #e2e7ef;
  --line-2: #cfd6e2;
  --paper: #f5f7fa;
  --card: #ffffff;
  --field: #fbfcfe;
  --ok: #12805c;
  --ok-soft: #e6f6ef;
  --warn: #9a5b00;
  --warn-soft: #fff5e1;
  --info-soft: #eaf3fb;
  --danger: #c0283a;
  --radius: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(12, 28, 52, .05), 0 10px 30px -12px rgba(12, 28, 52, .16);
  --ring: 0 0 0 4px rgba(4, 154, 187, .2);
  --head: "Space Grotesk", "Manrope", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(4, 154, 187, .10), transparent 60%),
    radial-gradient(700px 380px at -10% 10%, rgba(235, 35, 126, .07), transparent 60%),
    var(--paper);
  background-attachment: fixed;
}
a { color: var(--cyan-text); }
h1, h2, h3 { color: var(--ink); font-family: var(--head); line-height: 1.15; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.boot { padding: 4rem 1rem; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.mt { margin: 1.1rem 0 0; }
.break { word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .6rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--card); color: var(--navy);
  font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { border-color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--pink-btn), var(--pink-btn-2)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgba(200, 24, 110, .8); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.primary:disabled { background: #c9cfd9; box-shadow: none; cursor: not-allowed; filter: none; color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--navy); }
.btn.ghost:hover { background: rgba(12, 28, 52, .06); }
.btn.sm { min-height: 36px; padding: .35rem .85rem; font-size: .85rem; }
.btn.lg { min-height: 54px; padding: .8rem 1.6rem; font-size: 1.02rem; }
.btn.block { width: 100%; }
.btn.danger { color: var(--danger); }
.btn.on-dark { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.btn.on-dark:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: rgba(12, 28, 52, .07); color: var(--navy); }
.icon-btn.danger:hover { background: #fdecee; color: var(--danger); }
.linklike { border: 0; background: none; padding: 0; color: var(--cyan-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Mise en page du questionnaire ---------- */
.shell { display: block; }
.side { display: none; }
.main-col { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(12, 28, 52, .07); }
.top-in { max-width: 920px; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; gap: .8rem; }
.top-logo { height: 28px; width: auto; }
.top .pct { margin-left: auto; font-weight: 800; font-size: .85rem; color: var(--navy); background: var(--cyan-soft); border-radius: 999px; padding: .15rem .6rem; }
.top-save { color: var(--navy); }
.bar { height: 4px; background: rgba(12, 28, 52, .07); }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); border-radius: 0 4px 4px 0; transition: width .5s cubic-bezier(.2, .8, .2, 1); }

.steps { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .8rem 1rem 0; max-width: 920px; margin: 0 auto; }
.steps::-webkit-scrollbar { display: none; }

.stage { max-width: 920px; margin: 0 auto; padding: 1.4rem 1rem 8rem; outline: none; container-type: inline-size; }
.step-body { animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.step-head { display: flex; gap: 1rem; align-items: flex-start; margin: .3rem 0 1.4rem; }
.step-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--cyan), var(--navy-2)); box-shadow: 0 10px 24px -12px rgba(4, 154, 187, .9); }
.step-ic .ic { width: 26px; height: 26px; }
.eyebrow { margin: 0 0 .2rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-text); }
.step-title { margin: 0; font-size: clamp(1.55rem, 4.5vw, 2.1rem); }
.lead { margin: .45rem 0 0; color: var(--muted); font-size: 1.02rem; }

/* ---------- Cartes et champs ---------- */
.card { background: var(--card); border: 1px solid rgba(12, 28, 52, .06); border-radius: var(--radius); padding: 1.35rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.card-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: 1.12rem; }
.ct-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--cyan-soft); color: var(--cyan-text); flex: none; }
.ct-ic .ic { width: 19px; height: 19px; }

.f { display: block; margin-top: 1.15rem; min-width: 0; }
.f:first-child, .card-title + .f { margin-top: 0; }
.lab { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: .45rem; }
.lab .ic { color: var(--cyan-text); }
.req { color: var(--pink-btn); font-weight: 800; }
.opt { font-weight: 600; font-size: .74rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0 .5rem; }
.hint { display: flex; gap: .35rem; align-items: center; margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.hint.center { justify-content: center; text-align: center; }
.ok-txt { color: var(--ok); }
.err-msg { display: block; color: var(--danger); font-size: .85rem; font-weight: 600; margin-top: .35rem; min-height: 0; }
.err-msg:empty { display: none; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], textarea, select {
  width: 100%; min-height: 50px; padding: .7rem .95rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--field); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9aa3b2; }
input:hover, textarea:hover, select:hover { border-color: var(--line-2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: var(--ring); }
.f.bad input, .f.bad textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(192, 40, 58, .12); }
.input-ic { position: relative; }
.input-ic > .ic { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: #8a94a6; pointer-events: none; width: 20px; height: 20px; }
.input-ic > input { padding-left: 2.75rem; }

.row { display: grid; gap: 0 1rem; }
@container (min-width: 560px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row.r3 { grid-template-columns: 1fr 1fr 1fr; }
  .row > .f { margin-top: 1.15rem; }
  .card-title + .row > .f, .row:first-child > .f { margin-top: 0; }
}

/* Aide « Pourquoi ? » */
.why { margin: -.1rem 0 .55rem; font-size: .88rem; }
.why summary { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; color: var(--cyan-text); font-weight: 700; list-style: none; border-radius: 6px; }
.why summary::-webkit-details-marker { display: none; }
.why summary .ic { width: 17px; height: 17px; }
.why p { margin: .45rem 0 0; padding: .7rem .9rem; background: var(--cyan-soft); border-radius: var(--r-sm); color: var(--navy); }

/* Cartes de choix */
.cards { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@container (min-width: 520px) { .cards.c2, .cards.c3 { grid-template-columns: 1fr 1fr; } }
@container (min-width: 700px) {
  .cards.c3 { grid-template-columns: 1fr 1fr 1fr; }
  .cards.c3 .choice-card { flex-direction: column; gap: .7rem; }
}
.choice-card { position: relative; display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1rem 1rem .95rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--field); cursor: pointer; transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; }
.choice-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:focus-visible) { box-shadow: var(--ring); }
.choice-card:has(input:checked) { border-color: var(--cyan); background: #f2fbfd; box-shadow: 0 8px 22px -14px rgba(4, 154, 187, .9); }
.cc-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--navy); }
.choice-card:has(input:checked) .cc-ic { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.cc-txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding-right: 1.4rem; }
.cc-txt strong { color: var(--ink); font-size: .98rem; line-height: 1.3; }
.cc-txt small { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.cc-check { position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); color: transparent; background: #fff; transition: all .2s; }
.cc-check .ic { width: 14px; height: 14px; stroke-width: 3; }
.choice-card:has(input:checked) .cc-check { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.font-card .cc-txt strong { font-size: 1.15rem; }
.font-card .cc-txt small { font-size: 1.6rem; color: var(--navy); font-family: inherit; }
.font-card:nth-child(1) .cc-txt small { font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.font-card:nth-child(2) .cc-txt small { font-family: Georgia, "Times New Roman", serif; }
.font-card:nth-child(3) .cc-txt small { font-family: Oswald, Impact, sans-serif; font-weight: 600; letter-spacing: .02em; }
.mini { flex: none; display: grid; gap: 3px; width: 54px; height: 42px; padding: 6px; border-radius: 10px; border: 1px solid var(--line); }
.mini i { display: block; border-radius: 3px; }
.mini i:nth-child(1) { height: 5px; width: 60%; }
.mini i:nth-child(2) { height: 10px; }
.mini i:nth-child(3) { height: 5px; width: 80%; }
.mini.light { background: #fff; }
.mini.light i { background: #d7dde7; }
.mini.light i:nth-child(2) { background: var(--cyan); }
.mini.dark { background: #0f1420; border-color: #0f1420; }
.mini.dark i { background: #3a4459; }
.mini.dark i:nth-child(2) { background: var(--pink); }
.fixed-case { display: flex; align-items: center; gap: .9rem; }
.fixed-case small { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fixed-case strong { color: var(--ink); font-size: 1.05rem; }
.fixed-case .cc-ic { background: var(--cyan); color: #fff; border-color: var(--cyan); }

/* Pastilles */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--field); cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--navy); transition: all .2s; }
.chip:hover { border-color: var(--line-2); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip .ic { width: 18px; height: 18px; color: var(--muted); }
.chip:has(input:focus-visible) { box-shadow: var(--ring); }
.chip:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:has(input:checked) .ic { color: #7fd6ea; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .9rem; }
.suggest small { color: var(--muted); font-weight: 700; margin-right: .2rem; }
.chip-btn { border: 1px dashed var(--line-2); background: #fff; border-radius: 999px; padding: .3rem .75rem; font-size: .85rem; font-weight: 600; color: var(--navy); cursor: pointer; transition: all .2s; }
.chip-btn:hover { border-style: solid; border-color: var(--cyan); color: var(--cyan-text); background: var(--cyan-soft); }

/* Interrupteurs */
.toggle { display: flex; align-items: flex-start; gap: .85rem; cursor: pointer; padding: .2rem 0; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sw { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: #cfd6e2; transition: background .25s; margin-top: .1rem; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(12, 28, 52, .25); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.toggle input:checked + .sw { background: var(--cyan); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle input:focus-visible + .sw { box-shadow: var(--ring); }
.tg-txt { display: flex; flex-direction: column; gap: .1rem; }
.tg-txt strong { color: var(--ink); font-size: .96rem; line-height: 1.35; }
.tg-txt small { color: var(--muted); font-size: .85rem; }
.toggle + .f { margin-top: 1.15rem; }
.toggle.later { margin-top: .8rem; padding: .7rem .85rem; border-radius: var(--r-sm); background: var(--paper); border: 1px dashed var(--line-2); }
.toggle.later:has(input:checked) { background: var(--warn-soft); border-color: #f0c674; }

/* Couleurs */
.color-grid { display: grid; gap: 1.2rem; margin-top: 1.1rem; }
@container (min-width: 760px) { .color-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.slots { display: grid; gap: .65rem; }
.color-slot { display: grid; grid-template-columns: auto 1fr; gap: .4rem .85rem; align-items: center; padding: .75rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--field); }
.swatch-wrap { position: relative; grid-row: span 2; width: 56px; height: 56px; cursor: pointer; }
.swatch { display: block; width: 56px; height: 56px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .2s; }
.swatch.empty { background: repeating-linear-gradient(45deg, #eef1f6 0 6px, #fff 6px 12px) !important; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.swatch-wrap:hover .swatch { transform: scale(1.04); }
.swatch-wrap input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.swatch-wrap:has(input:focus-visible) .swatch { box-shadow: var(--ring); }
.cs-txt { display: flex; flex-direction: column; min-width: 0; }
.cs-txt strong { color: var(--ink); font-size: .95rem; }
.cs-txt small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.cs-hex { display: flex; align-items: center; gap: .3rem; }
.cs-hex .hex { min-height: 38px; width: 118px; padding: .3rem .6rem; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88rem; text-transform: uppercase; }
.cs-hex .icon-btn { width: 34px; height: 34px; }
.preview-wrap .lab { margin-bottom: .55rem; }
.preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.pv-bar { display: flex; gap: 5px; padding: 8px 10px; background: #eef1f6; }
.pv-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cfd6e2; }
.pv-page { transition: background .3s; }
.pv-nav { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.pv-mark { width: 26px; height: 26px; border-radius: 8px; }
.pv-logo { width: 70px; height: 26px; background: center left / contain no-repeat; }
.pv-links { display: flex; gap: 6px; margin-left: auto; }
.pv-links i { width: 26px; height: 6px; border-radius: 3px; background: currentColor; opacity: .25; }
.pv-btn { display: block; width: 90px; height: 22px; border-radius: 999px; }
.pv-btn.sm { width: 54px; height: 18px; }
.pv-hero { display: flex; flex-direction: column; gap: 8px; padding: 26px 16px; transition: background .3s; }
.pv-h1 { width: 75%; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .92); }
.pv-h2 { width: 55%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .6); margin-bottom: 6px; }
.pv-hero .pv-btn { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.pv-cards span { height: 38px; border-radius: 8px; background: rgba(255, 255, 255, .85); }

/* Fichiers */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center; padding: 1.4rem 1rem; border-radius: 16px; border: 2px dashed var(--line-2); background: linear-gradient(180deg, #fff, var(--field)); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.drop:hover, .drop.over { border-color: var(--cyan); background: #f2fbfd; }
.drop.over { transform: scale(1.01); }
.drop strong { color: var(--navy); font-size: .95rem; }
.drop small { color: var(--muted); font-size: .82rem; }
.drop-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan-text); margin-bottom: .2rem; }
.uploads { display: grid; gap: .4rem; }
.uploads:not(:empty) { margin-top: .6rem; }
.up-row { display: grid; grid-template-columns: 1fr 120px; gap: .7rem; align-items: center; font-size: .85rem; }
.up-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width .2s; }
.files { display: grid; gap: .55rem; }
.files:not(:empty) { margin-top: .7rem; }
.file { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; padding: .55rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; animation: rise .3s ease; }
.pic { width: 64px; height: 64px; border-radius: 10px; background: #eef1f6 center / cover no-repeat; display: grid; place-items: center; }
.pic.contain { background-size: contain; background-color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pic.dark { background-color: #0c1c34; }
.pic .ext { display: grid; justify-items: center; gap: 2px; font-size: .7rem; font-weight: 800; color: var(--navy); }
.meta { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.meta .name { font-weight: 700; color: var(--ink); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta .hint { margin: 0; font-size: .8rem; }
.meta .hint .ic { width: 15px; height: 15px; }
.meta input { min-height: 38px; padding: .35rem .7rem; font-size: .88rem; }
.repeat { display: grid; gap: .7rem; }
.rep { position: relative; padding: 1rem 3rem 1rem 1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--field); }
.rep .del { position: absolute; top: .5rem; right: .5rem; }
.rep .row > .f { margin-top: 0; }
.rep .row > .f + .f { margin-top: .8rem; }
@container (min-width: 560px) { .rep .row > .f + .f { margin-top: 0; } }
.add { justify-self: start; color: var(--cyan-text); }

/* Avis et conseils */
.notice { display: flex; gap: .7rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: 16px; margin-bottom: 1rem; font-size: .95rem; }
.notice > .ic { margin-top: .1rem; }
.notice p { margin: .3rem 0 0; }
.notice.ok { background: var(--ok-soft); color: #0b5a40; }
.notice.warn { background: var(--warn-soft); color: #6b4200; }
.notice.info { background: var(--info-soft); color: var(--navy); }
.notice .btn { margin-left: auto; }
.missing { margin: .4rem 0 0; padding-left: 1.1rem; }
.missing li { margin: .2rem 0; }
.tip { display: flex; gap: .85rem; align-items: flex-start; margin-top: 1.4rem; padding: 1rem 1.15rem; border-radius: 18px; background: linear-gradient(135deg, rgba(4, 154, 187, .09), rgba(235, 35, 126, .06)); border: 1px solid rgba(4, 154, 187, .18); }
.tip-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--pink-btn); box-shadow: 0 4px 12px -6px rgba(200, 24, 110, .6); }
.tip strong { color: var(--navy); font-size: .9rem; }
.tip p { margin: .15rem 0 0; font-size: .92rem; color: var(--text); }

/* Accueil */
.hero { padding: clamp(1.4rem, 4vw, 2.6rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(4, 154, 187, .16), transparent 65%); pointer-events: none; }
.hero > * { position: relative; }
.hero-logo { height: 40px; width: auto; margin-bottom: 1.6rem; }
.hero h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin: .2rem 0 .7rem; max-width: 22ch; }
.hero .lead { max-width: 60ch; }
.perks { display: grid; gap: .8rem; margin: 1.6rem 0; }
@container (min-width: 640px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perk { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.perk strong { color: var(--ink); font-size: .96rem; }
.perk small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.perk-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--cyan-text); box-shadow: 0 2px 8px -4px rgba(12, 28, 52, .3); margin-bottom: .45rem; }
.prepare { padding: 1rem 1.15rem; border-radius: 16px; background: var(--info-soft); color: var(--navy); font-size: .93rem; }
.prepare strong { display: flex; align-items: center; gap: .45rem; }
.prepare ul { margin: .4rem 0 0; padding-left: 1.2rem; columns: 2 240px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.resume { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
.resume p { margin: .1rem 0 0; }
.todo { padding: 1rem 1.15rem; border-radius: 16px; background: var(--warn-soft); color: #6b4200; }
.todo ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.todo li { margin: .25rem 0; }
.todo li .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: .3rem; }
.ring-bg { fill: none; stroke: rgba(12, 28, 52, .1); stroke-width: 3.2; }
.ring-fg { fill: none; stroke: var(--cyan); stroke-width: 3.2; stroke-linecap: round; transition: stroke-dasharray .5s ease; }
.ring-txt { font: 800 8.5px "Manrope", sans-serif; fill: var(--navy); }

/* Récapitulatif */
.sums { display: grid; gap: .8rem; margin-bottom: 1rem; }
@container (min-width: 640px) { .sums { grid-template-columns: 1fr 1fr; } }
.sum { background: var(--card); border: 1px solid rgba(12, 28, 52, .06); border-radius: 18px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.sum-head { display: flex; align-items: center; gap: .6rem; }
.sum-head strong { color: var(--ink); font-family: var(--head); }
.sum-head .btn { margin-left: auto; }
.sum dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; margin: .7rem 0 0; font-size: .9rem; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
.sum dl:empty::after { content: "Rien de renseigné pour le moment."; grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }
.send-card { display: grid; gap: 1rem; padding: 1.4rem; }

/* Navigation bas d'écran */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(12, 28, 52, .08); padding-bottom: env(safe-area-inset-bottom); }
.nav-in { max-width: 920px; margin: 0 auto; padding: .65rem 1rem; display: flex; justify-content: space-between; gap: .6rem; }
.nav .btn.primary { min-width: 150px; }
.at-welcome .nav { display: none; }

/* Enregistrement */
.save-state { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.save-state .ic { width: 17px; height: 17px; }
.save-state.ok .ic { color: var(--ok); }
.save-state.busy .ic { color: var(--cyan); animation: pulse 1s ease-in-out infinite; }
.save-state.err { color: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }

/* Grand écran : colonne des étapes */
@media (min-width: 980px) {
  .shell { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }
  .side { display: flex; flex-direction: column; gap: 1.4rem; position: sticky; top: 0; height: 100vh; padding: 1.6rem 1.2rem; background: linear-gradient(180deg, var(--navy), #0a1528); color: #dbe4f0; overflow-y: auto; }
  .side-logo { height: 34px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); opacity: .95; }
  .side-prog { display: flex; align-items: center; gap: .8rem; padding: .8rem; border-radius: 16px; background: rgba(255, 255, 255, .06); }
  .side-prog strong { display: block; color: #fff; font-size: .92rem; }
  .side-prog small { color: #9fb0c8; font-size: .8rem; }
  .side .ring-bg { stroke: rgba(255, 255, 255, .14); }
  .side .ring-fg { stroke: #2fd0ef; }
  .side .ring-txt { fill: #fff; }
  .side .steps { flex-direction: column; gap: .2rem; padding: 0; margin: 0; overflow: visible; }
  .side-foot { margin-top: auto; display: grid; gap: .7rem; justify-items: center; }
  .side .save-state { color: #9fb0c8; }
  .side .save-state.ok .ic { color: #5ee0a6; }
  .top { display: none; }
  .stage { padding: 2.4rem 2.2rem 8rem; max-width: 900px; }
  .nav { left: 300px; }
  .nav-in { max-width: 900px; padding: .75rem 2.2rem; }
}
.st { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; padding: .55rem .6rem; border-radius: 12px; border: 0; background: transparent; color: #b8c6da; cursor: pointer; transition: background .2s, color .2s; }
.st:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.st-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .07); }
.st-ic .ic { width: 18px; height: 18px; }
.st-txt { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; font-size: .92rem; }
.st-txt small { font-weight: 500; font-size: .74rem; color: #8193ad; }
.st.on { background: rgba(255, 255, 255, .1); color: #fff; }
.st.on .st-ic { background: linear-gradient(135deg, var(--pink), var(--pink-btn-2)); color: #fff; box-shadow: 0 6px 16px -8px rgba(235, 35, 126, .9); }
.st.done .st-ic { background: rgba(47, 208, 239, .16); color: #2fd0ef; }
.st.todo .st-ic { background: rgba(255, 196, 87, .16); color: #ffc457; }
.st-miss { margin-left: auto; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #ffc457; color: #3d2600; font-size: .72rem; font-weight: 800; }
/* Étapes en pastilles sur téléphone et tablette */
@media (max-width: 979px) {
  .main-col .steps { display: none; }
}

/* Fenêtre « Reprendre plus tard » */
.dlg { width: min(520px, calc(100vw - 2rem)); border: 0; border-radius: 24px; padding: 1.8rem 1.5rem 1.4rem; box-shadow: 0 30px 80px -20px rgba(12, 28, 52, .5); color: var(--text); }
.dlg::backdrop { background: rgba(12, 28, 52, .45); backdrop-filter: blur(4px); }
.dlg[open] { animation: rise .3s cubic-bezier(.2, .8, .2, 1); }
.dlg h3 { margin: .6rem 0 .4rem; font-size: 1.4rem; }
.dlg p { margin: 0 0 1rem; }
.dlg-x { position: absolute; top: .7rem; right: .7rem; }
.badge-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--cyan-soft); color: var(--cyan-text); }
.badge-ic .ic { width: 26px; height: 26px; }
.badge-ic.warn { background: var(--warn-soft); color: var(--warn); margin: 0 auto 1rem; }
.linkbox { display: flex; align-items: center; gap: .5rem; padding: .35rem .35rem .35rem .8rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--field); margin-bottom: 1rem; }
.linkbox > .ic { color: var(--muted); }
.linkbox input { border: 0; background: transparent; min-height: 38px; padding: 0; box-shadow: none !important; font-size: .85rem; color: var(--navy); }
.mailbox { margin-bottom: 1rem; }
.inline { display: flex; gap: .5rem; }
.inline input { min-height: 44px; }
.dlg .muted .ic { width: 15px; height: 15px; vertical-align: -2px; }

/* Messages */
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: .55rem; max-width: calc(100vw - 2rem); background: var(--navy); color: #fff; padding: .75rem 1.1rem; border-radius: 14px; font-size: .92rem; font-weight: 600; box-shadow: 0 16px 40px -14px rgba(12, 28, 52, .7); animation: rise .3s ease; }
.toast .ic { color: #5ee0a6; }
.toast.err { background: #8f1d2c; }
.toast.err .ic { color: #ffd0d6; }

/* Pages simples (lien invalide, envoyé, connexion) */
.solo { max-width: 620px; margin: 0 auto; padding: 8vh 1rem 3rem; }
.solo-logo { height: 34px; width: auto; margin: 0 auto 1.4rem; display: block; }
.card.center { text-align: center; }
.done-check { display: grid; place-items: center; width: 76px; height: 76px; margin: .4rem auto 1.1rem; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--cyan), #0bbf8c); box-shadow: 0 16px 34px -14px rgba(4, 154, 187, .9); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.done-check .ic { width: 38px; height: 38px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done-page h2 { margin: 0 0 .3rem; font-size: 1.6rem; }
.next-title { margin: 1.8rem 0 .9rem; font-size: 1.05rem; }
.timeline { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .6rem; text-align: left; }
.timeline li { display: flex; gap: .8rem; align-items: center; padding: .75rem .9rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.timeline li.on { background: var(--ok-soft); border-color: #bfe7d4; }
.timeline strong { display: block; color: var(--ink); font-size: .95rem; }
.timeline small { color: var(--muted); font-size: .85rem; }
.tl-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--cyan-text); box-shadow: 0 2px 8px -4px rgba(12, 28, 52, .3); }
.timeline li.on .tl-ic { background: var(--ok); color: #fff; }
.auth { max-width: 440px; margin: 0 auto; }
.auth h2 { text-align: center; margin: 0 0 1.2rem; }
.auth .btn { margin-top: .6rem; }

/* Page d'accueil neutre */
.home { max-width: 560px; margin: 18vh auto; padding: 2.2rem 1.6rem; text-align: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.home-logo { height: 40px; width: auto; margin-bottom: 1rem; }

/* ---------- Administration ---------- */
.top.admin .top-in { max-width: 1100px; }
.top.admin { display: block; }
.adm-title { font-family: var(--head); color: var(--navy); }
.top.admin .btn { margin-left: auto; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 1.4rem 1rem 3rem; container-type: inline-size; }
.scroll-x { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.adm-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.adm-table td { padding: .75rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table .hint { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.pill { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.prog-wrap { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; }
.prog { display: inline-block; width: 70px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.dump { white-space: pre-wrap; word-break: break-word; font-size: .8rem; background: var(--paper); border-radius: 12px; padding: 1rem; max-height: 60vh; overflow: auto; }
@media (max-width: 640px) { .hide-m { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
