/* ==========================================================================
   PLINK — composants (s'appuie sur tokens.css)
   Charte v1.0 : surfaces sobres, Inter, bleu #0057FF dosé (~5 %),
   un seul bouton principal par étape, animations 150/200/240 ms.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/26px var(--font); overflow-x: hidden; transition: background-color var(--t-state) var(--ease), color var(--t-state) var(--ease); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
h1, h2, h3 { margin: 0; color: var(--text); text-wrap: balance; }
h1 { font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 24px; line-height: 32px; font-weight: 600; }
p { margin: 0; }
small, .small { font-size: 14px; line-height: 20px; }
.muted { color: var(--text-2); }
.accent { color: var(--plink-blue); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 639px) {
  h1 { font-size: 36px; line-height: 40px; }
  h2 { font-size: 28px; line-height: 36px; }
  h3 { font-size: 22px; line-height: 30px; }
}

.wrap { width: 100%; max-width: calc(var(--container) + 48px); margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 639px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: 80px; }
.section-surface { background: var(--surface); }
@media (max-width: 639px) { .section { padding-block: 48px; } }
.head { display: grid; gap: 12px; max-width: 46rem; margin: 0 auto 48px; text-align: center; justify-items: center; }
.head.left { text-align: left; justify-items: start; margin-left: 0; }
.head p { color: var(--text-2); max-width: 65ch; }
.kicker { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent-text); }

/* ---------- Bandeau d'aperçu ---------- */
.demo-bar { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 14px; line-height: 20px; }
.demo-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; text-align: center; padding-block: 6px; }
.demo-bar svg { width: 16px; height: 16px; flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-ctrl);
  border: 1px solid transparent; background: transparent; color: var(--text);
  font: 600 14px/20px var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--plink-blue); color: #fff; }
.btn-primary:hover { background: var(--plink-blue-hover); }
.btn-primary:active { background: var(--plink-blue-press); }
.btn-secondary { border-color: var(--field); color: var(--text); }
.btn-secondary:hover { background: var(--surface); }
.btn-secondary:active { background: var(--select); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { min-height: 56px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--disabled-bg); color: var(--disabled-fg); border-color: transparent; cursor: not-allowed; transform: none; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r-ctrl); border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: background-color var(--t-hover) var(--ease); }
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--select); color: var(--accent-text); font-size: 12px; line-height: 16px; font-weight: 600; }
.badge.neutral { background: var(--surface); color: var(--text-2); }
.badge.solid { background: var(--plink-blue); color: #fff; }
.fmt { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--select); color: var(--accent-text); font-size: 12px; line-height: 18px; font-weight: 700; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--logo-link); padding: 8px 0; }
.brand .logo-svg { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 4px; }
.nav a { white-space: nowrap; padding: 10px 12px; border-radius: var(--r-ctrl); color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; transition: color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .moon { display: block; } }
.menu-btn { display: none; }
.mobile-nav { display: none; }
@media (max-width: 1199px) {
  .header-row { height: 64px; gap: 12px; }
  .nav, .header-actions .hide-md { display: none; }
  .menu-btn { display: inline-grid; }
  .mobile-nav:not([hidden]) { display: grid; gap: 4px; padding-bottom: 16px; }
  .mobile-nav a:not(.btn) { padding: 12px 4px; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 12px; }
}

/* ---------- Premier écran ---------- */
.hero { padding-block: 64px 80px; }
.hero-head { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto 32px; }
.hero-head p { color: var(--text-2); font-size: 18px; line-height: 28px; max-width: 34rem; }
.hero-stage { position: relative; max-width: var(--convert-max); margin-inline: auto; }
.hero-stage > .mascot { position: absolute; width: 170px; right: -190px; top: 40px; }
.hero-stage > .bubble-tip { position: absolute; right: -230px; top: -8px; }
@media (max-width: 1150px) { .hero-stage > .mascot, .hero-stage > .bubble-tip { display: none; } }
@media (max-width: 639px) { .hero { padding-block: 40px 48px; } .hero-head p { font-size: 16px; line-height: 26px; } }
.bubble-tip { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--text); white-space: nowrap; }

/* ---------- Carte de conversion ---------- */
.convert-card { position: relative; display: grid; gap: 24px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-raised); box-shadow: var(--shadow); }
@media (max-width: 639px) { .convert-card { padding: 20px; gap: 20px; } }
.field-label { display: block; font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: 8px; }
.url-row { display: flex; gap: 8px; }
.url-input { position: relative; flex: 1; min-width: 0; }
.url-input input { width: 100%; height: 56px; padding: 0 16px 0 48px; border: 1px solid var(--field); border-radius: var(--r-ctrl); background: var(--bg); color: var(--text); font: 400 16px var(--font); transition: border-color var(--t-hover) var(--ease); }
.url-input input::placeholder { color: var(--text-2); }
.url-input input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.url-input input[aria-invalid="true"] { border-color: var(--err); }
.url-input .lead { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--text-2); display: grid; place-items: center; }
.url-input .lead svg { width: 20px; height: 20px; }
.url-row .btn { min-height: 56px; }
.field-msg { margin-top: 8px; font-size: 14px; line-height: 20px; display: flex; gap: 6px; align-items: flex-start; }
.field-msg svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.field-msg.err { color: var(--err); }
.field-msg.info { color: var(--text-2); }
.detected { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.detected svg { width: 18px; height: 18px; color: var(--text); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-ctrl); background: var(--surface); border: 1px solid var(--line); }
.seg [role="radio"] { min-height: 48px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: 600 14px/20px var(--font); cursor: pointer; display: grid; gap: 0; place-items: center; transition: background-color var(--t-state) var(--ease), color var(--t-state) var(--ease); }
.seg [role="radio"] span { font-weight: 400; font-size: 12px; line-height: 16px; color: var(--text-2); transition: color var(--t-state) var(--ease); }
.seg [role="radio"][aria-checked="true"] { background: var(--plink-blue); color: #fff; }
.seg [role="radio"][aria-checked="true"] span { color: #dce6ff; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 639px) { .row-2 { grid-template-columns: minmax(0, 1fr); } .url-row { flex-direction: column; } .url-row .btn { width: 100%; } }
.select { position: relative; }
.select select { width: 100%; height: 56px; appearance: none; -webkit-appearance: none; padding: 0 44px 0 16px; border: 1px solid var(--field); border-radius: var(--r-ctrl); background: var(--bg); color: var(--text); font: 400 16px var(--font); cursor: pointer; }
.select svg { position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; pointer-events: none; color: var(--text-2); }
.card-foot { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; line-height: 20px; }
.card-foot svg { width: 16px; height: 16px; flex: none; }

/* États de la carte */
.status { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-ctrl); background: var(--surface); font-weight: 600; }
.spinner { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--plink-blue); animation: spin .9s linear infinite; }
.indeterminate { position: relative; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.indeterminate::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 999px; background: var(--plink-blue); animation: slide 1.2s var(--ease) infinite; }
.result { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); animation: appear var(--t-in) var(--ease); }
.result .thumb { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: var(--r-ctrl); overflow: hidden; background: var(--surface); }
.result .thumb img { width: 100%; height: 100%; object-fit: cover; }
.result .thumb .dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(17, 19, 24, .82); color: #fff; font-size: 12px; line-height: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.result .meta { display: grid; gap: 4px; min-width: 0; }
.result .src { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.result .src svg { width: 16px; height: 16px; color: var(--text); }
.result h3 { font-size: 18px; line-height: 26px; font-weight: 600; overflow-wrap: anywhere; }
.result .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; line-height: 20px; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 479px) { .result { grid-template-columns: minmax(0, 1fr); } }
.ready { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-radius: var(--r-card); background: var(--ok-bg); border: 1px solid var(--line); animation: appear var(--t-in) var(--ease); }
.ready .mascot { width: 96px; }
.ready strong { display: flex; align-items: center; gap: 8px; color: var(--ok); font-size: 18px; line-height: 26px; }
.ready strong svg { width: 22px; height: 22px; }
.ready p { color: var(--text-2); font-size: 14px; line-height: 20px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-ctrl); font-size: 14px; line-height: 20px; }
.alert svg { width: 20px; height: 20px; flex: none; }
.alert.err { background: var(--err-bg); color: var(--err); border: 1px solid var(--line); }
.alert.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--line); }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Plateformes ---------- */
.platform { display: grid; justify-items: center; gap: 8px; padding: 16px 6px 12px; border-radius: var(--r-ctrl); color: var(--text); font-size: 13px; line-height: 18px; font-weight: 600; text-align: center; transition: background-color var(--t-hover) var(--ease); }
.platform:hover { background: var(--surface); }
.platform svg { width: 32px; height: 32px; fill: currentColor; }
.platforms-note { margin-top: 16px; text-align: center; color: var(--text-2); font-size: 14px; line-height: 20px; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 32px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line); }
.step .mascot { width: 112px; height: 112px; margin-bottom: 4px; }
.step-n { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--accent-text); }
.step p { color: var(--text-2); }
@media (max-width: 1023px) { .steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } .step { grid-template-columns: 96px minmax(0, 1fr); column-gap: 20px; } .step .mascot { width: 96px; height: 96px; grid-row: span 3; } }
@media (max-width: 639px) { .step { padding: 20px; } }

/* ---------- Usages (photos) ---------- */
.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.use { display: grid; gap: 12px; align-content: start; min-width: 0; }
.use .ph { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.use .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-in) var(--ease); }
.use:hover .ph img { transform: scale(1.03); }
.use h3 { font-size: 18px; line-height: 26px; }
.use p { color: var(--text-2); font-size: 14px; line-height: 20px; }
@media (max-width: 1023px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .uses { grid-template-columns: minmax(0, 1fr); } .use .ph { aspect-ratio: 16 / 10; } }

/* ---------- Assistant (présentation) ---------- */
.helper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.helper h2 { font-size: 48px; line-height: 52px; }
.helper .text { display: grid; gap: 20px; justify-items: start; }
.helper .text p { color: var(--text-2); max-width: 32rem; }
.mascot-states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mascot-states figure { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 20px 8px 16px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: 14px; line-height: 20px; }
.mascot-states .mascot { width: 100%; max-width: 130px; }
@media (max-width: 1023px) { .helper { grid-template-columns: minmax(0, 1fr); } .helper h2 { font-size: 36px; line-height: 44px; } }
@media (max-width: 639px) { .helper h2 { font-size: 28px; line-height: 36px; } }

/* ---------- Abonnements ---------- */
.billing-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
.billing { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-ctrl); background: var(--surface); border: 1px solid var(--line); }
.billing [role="radio"] { min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: 600 14px/20px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; justify-content: center; transition: background-color var(--t-state) var(--ease), color var(--t-state) var(--ease); }
.billing [role="radio"][aria-checked="true"] { background: var(--bg); box-shadow: 0 1px 3px rgba(17, 19, 24, .12); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: grid; gap: 20px; grid-template-rows: auto auto auto auto auto 1fr; align-content: start; min-width: 0; padding: 32px 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg); transition: border-color var(--t-hover) var(--ease); }
.plan:hover { border-color: var(--field); }
.plan.featured { border: 2px solid var(--plink-blue); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -13px; left: 24px; }
.plan-name { font-size: 20px; line-height: 28px; font-weight: 700; }
.plan-for { color: var(--text-2); font-size: 14px; line-height: 20px; min-height: 40px; }
.price { display: grid; gap: 4px; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-amount { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-unit, .price-note { color: var(--text-2); font-size: 14px; line-height: 20px; }
.price-old { color: var(--text-2); text-decoration: line-through; font-size: 14px; }
.plan .btn { width: 100%; }
.trial-note { margin-top: -12px; text-align: center; color: var(--text-2); font-size: 12px; line-height: 16px; }
.feats { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; font-size: 14px; line-height: 20px; }
.feats li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.feats svg { width: 18px; height: 18px; margin-top: 1px; color: var(--plink-blue); }
.feats li.off { color: var(--text-2); }
.feats li.off svg { color: var(--field); }
.includes { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; color: var(--text-2); font-size: 14px; line-height: 20px; }
.includes span { display: inline-flex; align-items: center; gap: 6px; }
.includes svg { width: 16px; height: 16px; color: var(--ok); }
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-weight: 700; background: var(--surface); }
.compare thead th.hl { color: var(--accent-text); }
.compare .grp td { font-weight: 700; background: var(--surface); color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 600; }
.no { color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative; font-weight: 600; font-size: 18px; line-height: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform var(--t-state) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; color: var(--text-2); max-width: 65ch; }

/* ---------- Appel à l'essai ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 48px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.cta .text { display: grid; gap: 12px; }
.cta .text p { color: var(--text-2); }
.cta .side { display: flex; align-items: center; gap: 24px; }
.cta .mascot { width: 130px; }
@media (max-width: 1023px) { .cta { grid-template-columns: minmax(0, 1fr); padding: 32px; } }
@media (max-width: 639px) { .cta { padding: 20px; } .cta .side { flex-direction: column; align-items: stretch; } .cta .mascot { display: none; } }

/* ---------- Pages internes ---------- */
.page-head { padding-block: 64px 32px; }
.page-head .wrap { display: grid; gap: 16px; justify-items: center; text-align: center; }
.page-head p { color: var(--text-2); font-size: 18px; line-height: 28px; max-width: 40rem; }
@media (max-width: 639px) { .page-head { padding-block: 40px 24px; } .page-head p { font-size: 16px; line-height: 26px; } }
.convert-page { display: grid; gap: 32px; max-width: var(--convert-max); margin-inline: auto; }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.help-grid > div { padding: 20px; border-radius: var(--r-card); background: var(--surface); display: grid; gap: 6px; }
.help-grid strong { font-size: 14px; line-height: 20px; }
.help-grid p { color: var(--text-2); font-size: 14px; line-height: 20px; }
@media (max-width: 639px) { .help-grid { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split .text { display: grid; gap: 16px; min-width: 0; }
.split .text p { color: var(--text-2); max-width: 65ch; }
.photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.value { padding: 32px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.value svg { width: 28px; height: 28px; color: var(--plink-blue); }
.value p { color: var(--text-2); font-size: 14px; line-height: 20px; }
@media (max-width: 1023px) { .split { grid-template-columns: minmax(0, 1fr); } .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .values { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) { .value { padding: 20px; } }

.card { padding: 32px; border-radius: var(--r-card); background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 20px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 639px) { .card { padding: 20px; } }
.trial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 1023px) { .trial { grid-template-columns: minmax(0, 1fr); } }
.plan-pick { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.plan-pick legend { font-weight: 600; font-size: 14px; line-height: 20px; margin-bottom: 8px; padding: 0; }
.plan-pick label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--field); border-radius: var(--r-ctrl); cursor: pointer; transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease); }
.plan-pick label:hover { background: var(--surface); }
.plan-pick input { width: 18px; height: 18px; accent-color: var(--plink-blue); }
.plan-pick label:has(input:checked) { border-color: var(--plink-blue); background: var(--select); }
.plan-pick .p-name { font-weight: 600; }
.plan-pick .p-desc { display: block; font-size: 13px; line-height: 18px; color: var(--text-2); font-weight: 400; }
.plan-pick .p-price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.form { display: grid; gap: 16px; }
.form .field { display: grid; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.form input[type="email"], .form input[type="password"], .form input[type="text"] { height: 56px; padding: 0 16px; border: 1px solid var(--field); border-radius: var(--r-ctrl); background: var(--bg); color: var(--text); font: 400 16px var(--font); }
.check { display: block; font-size: 14px; line-height: 20px; color: var(--text-2); }
.check input { margin: 0 8px 0 0; vertical-align: -3px; width: 18px; height: 18px; accent-color: var(--plink-blue); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.days li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; border-radius: var(--r-card); background: var(--surface); }
.days .d { width: 56px; height: 56px; border-radius: var(--r-ctrl); background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; font-size: 11px; line-height: 13px; font-weight: 600; color: var(--text-2); }
.days .d b { display: block; font-size: 22px; line-height: 24px; color: var(--text); }
.days h3 { font-size: 16px; line-height: 24px; }
.days p { color: var(--text-2); font-size: 14px; line-height: 20px; }
.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-ctrl); background: var(--surface); border: 1px solid var(--line); }
.seg-tabs [role="tab"] { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: 600 14px/20px var(--font); cursor: pointer; }
.seg-tabs [role="tab"][aria-selected="true"] { background: var(--bg); box-shadow: 0 1px 3px rgba(17, 19, 24, .12); }
.auth { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 260px); gap: 48px; align-items: center; justify-content: center; }
.auth .mascot { width: 100%; max-width: 240px; }
.trial .mascot { width: 160px; }
.stack-state { display: grid; gap: 16px; }
.stack-state:empty { display: none; }
@media (max-width: 1023px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth .mascot { display: none; } }

/* Charte */
.brand-block { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 40px; padding-block: 48px; border-top: 1px solid var(--line); }
.brand-block > header { display: grid; gap: 8px; align-content: start; }
.brand-block > header p { color: var(--text-2); font-size: 14px; line-height: 20px; }
.brand-body { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1023px) { .brand-block { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 639px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.logo-tile { margin: 0; min-height: 180px; display: grid; place-items: center; gap: 12px; padding: 32px; border-radius: var(--r-card); border: 1px solid var(--line); }
.logo-tile .logo-svg { width: min(260px, 100%); height: auto; }
.logo-tile .icon-svg { width: 96px; height: auto; }
.logo-tile figcaption { font-size: 12px; line-height: 16px; }
.lt-light { background: #FFFFFF; color: #111318; }
.lt-dark { background: #111318; color: #FFFFFF; border-color: #111318; }
.lt-surface { background: #F5F7FB; color: #111318; }
.tile { padding: 20px; border-radius: var(--r-card); background: var(--surface); display: grid; gap: 6px; }
.tile strong { font-size: 14px; line-height: 20px; }
.tile p { color: var(--text-2); font-size: 14px; line-height: 20px; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.swatch { display: grid; padding: 0; overflow: hidden; border-radius: var(--r-ctrl); border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--t-hover) var(--ease); }
.swatch:hover { border-color: var(--field); }
.swatch .chip { height: 72px; border-bottom: 1px solid var(--line); }
.swatch .sw { padding: 10px 12px; display: grid; gap: 2px; font-size: 13px; line-height: 18px; }
.swatch .sw span { color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 479px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.type-row .label { font-size: 12px; line-height: 16px; color: var(--text-2); }
.type-row .sample { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 639px) { .type-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.board { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 24px; border-radius: var(--r-card); border: 1px solid var(--line); }
.prose { max-width: 720px; margin-inline: auto; display: grid; gap: 16px; }
.prose h2 { font-size: 24px; line-height: 32px; margin-top: 16px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.todo { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 600; border: 1px solid var(--line); }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 80px; padding-block: 48px 32px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-about .brand .logo-svg { height: 28px; }
.footer-about p { color: var(--text-2); font-size: 14px; line-height: 20px; margin-top: 12px; max-width: 22rem; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--text-2); font-size: 13px; line-height: 18px; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: span 2; } }
@media (max-width: 479px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } .footer-about { grid-column: auto; } }

/* ---------- Assistant PLINK ---------- */
.chat-fab { position: fixed; z-index: 70; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--plink-blue); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 87, 255, .35); transition: background-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease); animation: appear var(--t-in) var(--ease) .4s both; }
.chat-fab:hover { background: var(--plink-blue-hover); }
.chat-fab:active { background: var(--plink-blue-press); transform: scale(.96); }
.chat-fab .m-fab { width: 38px; height: 38px; margin-left: 4px; }
.chat-panel { position: fixed; z-index: 71; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(100px + env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 140px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface-raised); box-shadow: 0 24px 60px rgba(17, 19, 24, .18); overflow: hidden; animation: appear var(--t-in) var(--ease); }
@media (max-width: 479px) { .chat-panel { right: 16px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } .chat-fab { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.chat-top .m-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--select); padding: 6px; flex: none; }
.chat-top strong { display: block; font-size: 18px; line-height: 24px; }
.chat-top span { color: var(--text-2); font-size: 14px; line-height: 20px; }
.chat-top .tools { margin-left: auto; display: flex; gap: 4px; }
.chat-top .tools button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.chat-top .tools button:hover { background: var(--surface); }
.chat-top .tools svg { width: 20px; height: 20px; }
.chat-log { overflow-y: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.msg-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; animation: appear var(--t-in) var(--ease); }
.msg-row .m-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--select); padding: 4px; }
.msg { justify-self: start; max-width: 100%; padding: 10px 14px; border-radius: 16px; background: var(--surface); color: var(--text); font-size: 15px; line-height: 22px; }
.msg a { color: var(--accent-text); font-weight: 600; }
.msg.me { justify-self: end; max-width: 85%; background: var(--plink-blue); color: #fff; animation: appear var(--t-in) var(--ease); }
.quick { display: grid; gap: 8px; justify-items: start; padding-left: 46px; }
.quick button { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--plink-blue); border-radius: var(--r-ctrl); background: transparent; color: var(--accent-text); font: 600 14px/20px var(--font); cursor: pointer; text-align: left; transition: background-color var(--t-hover) var(--ease); }
:root[data-theme="dark"] .quick button { border-color: #82AAFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quick button { border-color: #82AAFF; } }
.quick button:hover { background: var(--select); }
.typing { display: inline-flex; gap: 4px; padding: 14px; border-radius: 16px; background: var(--surface); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.chat-form { display: flex; gap: 8px; padding: 12px 16px 6px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: var(--r-ctrl); background: var(--bg); color: var(--text); font: 400 15px var(--font); }
.chat-form button { width: 48px; height: 48px; flex: none; border: 0; border-radius: var(--r-ctrl); background: var(--plink-blue); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color var(--t-hover) var(--ease); }
.chat-form button:hover { background: var(--plink-blue-hover); }
.chat-form button svg { width: 20px; height: 20px; }
.chat-note { padding: 0 16px 12px; color: var(--text-2); font-size: 12px; line-height: 16px; }

/* ---------- Mascotte ---------- */
.mascot { display: block; height: auto; }
.mascot .m-wave { transform-box: view-box; transform-origin: 150px 112px; }
.mascot.waving .m-wave { animation: wave .6s var(--ease) 2; }
.mascot .m-check { transform-box: fill-box; transform-origin: center; animation: appear var(--t-in) var(--ease); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; transform: translateX(-50%); max-width: min(92vw, 460px); padding: 12px 16px; border-radius: var(--r-ctrl); background: var(--plink-black); color: #fff; font-size: 14px; line-height: 20px; box-shadow: var(--shadow); animation: appear var(--t-in) var(--ease); }
:root[data-theme="dark"] .toast { background: #F5F7FA; color: #111318; }

/* ---------- Apparition (éléments visibles par défaut) ---------- */
.reveal.in { animation: appear var(--t-in) var(--ease) both; }

@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-16deg); } }
@keyframes dot { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

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

/* Espacements du formulaire de conversion */
.convert-card form { display: grid; gap: 20px; }
.help-grid > div { align-content: start; }

/* ---------- Abonnements : détails des cartes ---------- */
.badge svg { width: 14px; height: 14px; flex: none; }
.plan-clips { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-ctrl); background: var(--select); }
.plan-clips p { font-size: 13px; line-height: 18px; color: var(--text-2); }
.plan-clips b { display: block; color: var(--text); font-size: 14px; line-height: 20px; }
.plan-clips a { font-weight: 600; }
.mini-clips { display: flex; gap: 4px; }
.mini-clips i { width: 16px; height: 28px; border-radius: 4px; background: var(--plink-blue); position: relative; }
.mini-clips i::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 5px; height: 3px; border-radius: 2px; background: #fff; }
.feats li.hl { font-weight: 600; color: var(--text); }
.feats li.hl svg { color: var(--plink-blue); }
.includes a { font-weight: 600; }

/* ---------- Clips IA ---------- */
.clips-teaser { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.clips-teaser .text { display: grid; gap: 20px; justify-items: start; }
.clips-teaser .text p { color: var(--text-2); max-width: 34rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.ticks svg { width: 22px; height: 22px; color: var(--plink-blue); }
@media (max-width: 1023px) { .clips-teaser { grid-template-columns: minmax(0, 1fr); } }

.clips-visual { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); box-shadow: var(--shadow); min-width: 0; }
.timeline { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-ctrl); background: var(--surface); }
.tl-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 600; }
.tl-head span:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tl-head svg { width: 18px; height: 18px; flex: none; }
.tl-head span:last-child { color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.tl-bar { position: relative; height: 36px; border-radius: 8px; overflow: hidden; background: repeating-linear-gradient(90deg, var(--line) 0 3px, transparent 3px 7px); }
.tl-bar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--plink-blue); }
.tl-legend { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.tl-legend span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.tl-legend .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--plink-blue); display: inline-block; }
.clips-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.clip { position: relative; margin: 0; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 16px; overflow: hidden; background: var(--surface); }
.clip img { width: 100%; height: 100%; object-fit: cover; }
.clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, transparent 25%, transparent 50%, rgba(0, 0, 0, .55) 100%); }
.clip-dur { position: absolute; z-index: 1; left: 8px; top: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(17, 19, 24, .78); color: #fff; font-size: 12px; line-height: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.opts { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.opts legend { padding: 0; margin-bottom: 8px; }
.clip-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; animation: appear var(--t-in) var(--ease); }
.clip-item { display: grid; gap: 8px; align-content: start; min-width: 0; }
.clip-item .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.clip-item .btn { min-height: 44px; padding: 0 12px; font-size: 13px; }
.clip-item .btn svg { width: 18px; height: 18px; }
.clip.no-subs figcaption { display: none; }
.clip.no-crop img { object-fit: contain; background: #111318; }
.help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 639px) { .help-grid { grid-template-columns: minmax(0, 1fr); } .clips-visual { padding: 14px; } }
@media (max-width: 639px) { .actions-row { width: 100%; } .actions-row .btn { width: 100%; white-space: normal; text-align: center; } }

/* ---------- Publicités avant téléchargement (offre Gratuit) ---------- */
.ad-note { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); font-size: 14px; line-height: 20px; }
.ad-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ad-note a { font-weight: 600; }
.ad-gate { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: 0 24px 60px rgba(17, 19, 24, .22); overflow: auto; }
.ad-gate[open] { display: grid; gap: 16px; animation: appear var(--t-in) var(--ease); }
.ad-gate::backdrop { background: rgba(14, 17, 23, .6); }
.ad-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.ad-step { display: block; color: var(--accent-text); font-size: 14px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ad-top h2 { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; }
.ad-top .icon-btn svg { width: 20px; height: 20px; }
.ad-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ad-progress li { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ad-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--plink-blue); transition: width 1s linear; }
.ad-slot { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 40px 16px 16px; border: 1px dashed var(--field); border-radius: var(--r-ctrl); background: var(--surface); text-align: center; }
.ad-label { position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: 6px; background: var(--text); color: var(--bg); font-size: 12px; line-height: 18px; font-weight: 600; }
.ad-ph { display: grid; gap: 4px; justify-items: center; max-width: 22rem; color: var(--text-2); font-size: 14px; line-height: 20px; }
.ad-ph svg { width: 40px; height: 40px; margin-bottom: 4px; color: var(--field); }
.ad-ph strong { color: var(--text); font-size: 16px; line-height: 24px; }
.ad-gate .ad-done { display: none; }
.ad-gate.is-done .ad-done { display: grid; }
.ad-gate.is-done .ad-slot { display: none; }
@media (max-width: 479px) { .ad-gate { padding: 20px 16px; } .ad-slot { aspect-ratio: 4 / 3; } .ad-gate .ad-done { grid-template-columns: 72px minmax(0, 1fr); } .ad-gate .ad-done .mascot { width: 72px; } }
.feats li.ad { color: var(--text-2); }
.feats li.ad svg { color: var(--field); }

/* ---------- Pages légales ---------- */
.prose h3 { margin-top: 8px; color: var(--text); font-size: 18px; line-height: 26px; font-weight: 600; }
.prose [id] { scroll-margin-top: 96px; }
.prose li strong { color: var(--text); }
.legal-toc { display: grid; gap: 8px; padding: 20px 24px; border-radius: var(--r-card); background: var(--surface); }
.legal-toc strong { font-size: 14px; line-height: 20px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; font-size: 14px; line-height: 20px; }
.legal-toc a { font-weight: 600; }
.legal-ids { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r-ctrl); overflow: hidden; }
.legal-ids > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.legal-ids > div:first-child { border-top: 0; }
.legal-ids dt { font-weight: 600; color: var(--text); }
.legal-ids dd { margin: 0; color: var(--text-2); }
@media (max-width: 639px) { .legal-toc ol { grid-template-columns: minmax(0, 1fr); } .legal-ids > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- Cartes d'offre : rangées alignées d'une carte à l'autre ---------- */
.plan { gap: 16px; }
.plan > * { min-width: 0; }
.plan .btn { white-space: normal; text-align: center; padding-inline: 14px; }
@media (min-width: 1200px) { .plan { padding-inline: 20px; } .plan .btn svg { display: none; } }
.plan .trial-note { margin-top: -8px; }
.plan-body { display: grid; gap: 20px; align-content: start; }
@supports (grid-template-rows: subgrid) {
  .plans { row-gap: 24px; }
  .plan { grid-row: span 6; grid-template-rows: subgrid; row-gap: 16px; }
}
@media (max-width: 1199px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Plateformes : défilement continu, sans pause ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 32s linear infinite; }
.marquee .platform { flex: none; width: 136px; padding: 16px 8px 12px; }
.marquee .platform:hover { background: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 639px) { .marquee .platform { width: 112px; } .marquee-track { animation-duration: 26s; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ---------- Bouton Google (logo officiel en couleurs) ---------- */
.btn-google { background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; }
.btn-google:hover { background: #F2F6FC; }
.btn-google .g-logo { width: 20px; height: 20px; }
:root[data-theme="dark"] .btn-google { background: #131314; color: #E3E3E3; border-color: #8E918F; }
:root[data-theme="dark"] .btn-google:hover { background: #1F2024; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-google { background: #131314; color: #E3E3E3; border-color: #8E918F; }
  :root:not([data-theme="light"]) .btn-google:hover { background: #1F2024; }
}

/* ---------- Instagram ---------- */
.social-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--text); font-size: 14px; line-height: 20px; text-decoration: none; }
.social-link svg { width: 22px; height: 22px; flex: none; }
.social-link b { color: var(--accent-text); }
.social-link:hover span:first-of-type { text-decoration: underline; }

/* ---------- Visuels de conversion ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.showcase .text { display: grid; gap: 20px; justify-items: start; }
.showcase .text p { color: var(--text-2); max-width: 34rem; }
.showcase-media { margin: 0; display: grid; gap: 8px; }
.showcase-media img { width: 100%; border-radius: var(--r-card); box-shadow: var(--shadow); }
.showcase-media figcaption { color: var(--text-2); font-size: 12px; line-height: 16px; text-align: right; }
@media (max-width: 1023px) { .showcase { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.result-preview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; margin-block: 16px 24px; }
.result-preview .text { display: grid; gap: 12px; }
.result-preview h2 { font-size: 24px; line-height: 32px; }
.result-preview p { color: var(--text-2); }
@media (max-width: 767px) { .result-preview { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ---------- Clips IA : visuels fournis et styles de sous-titres ---------- */
.clip-cell { display: grid; gap: 8px; min-width: 0; }
.clip-label { text-align: center; color: var(--text-2); font-size: 13px; line-height: 18px; font-weight: 600; }
.clip.clip-real { aspect-ratio: 2 / 3; }
.clip.clip-real::after { display: none; }
.styles { border: 0; margin: 0; padding: 0; min-width: 0; }
.styles legend { padding: 0; margin-bottom: 8px; }
.styles[disabled] { opacity: .5; }
.style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.style-card { position: relative; display: grid; gap: 4px; align-content: start; padding: 8px; border: 1px solid var(--field); border-radius: var(--r-ctrl); cursor: pointer; transition: border-color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.style-card:hover { background: var(--surface); }
.style-card input { position: absolute; opacity: 0; pointer-events: none; }
.style-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.style-name { font-size: 14px; line-height: 20px; font-weight: 600; }
.style-desc { color: var(--text-2); font-size: 12px; line-height: 16px; }
.style-card:has(input:checked) { border: 2px solid var(--plink-blue); padding: 7px; background: var(--select); }
.style-card:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 479px) { .style-desc { display: none; } .style-grid { gap: 8px; } }

/* Sous-titres d'exemple des résultats de la démo */
.clip .cap { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; padding: 14% 8%; text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.clip .cap b, .clip .cap i, .clip .cap span { display: inline; }
.clip .cap-mot-a-mot { font-weight: 800; font-size: clamp(13px, 1.5vw, 16px); line-height: 1.25; }
.clip .cap-mot-a-mot b { color: #FFC83D; text-shadow: 0 0 10px rgba(255, 200, 61, .65), 0 1px 3px rgba(0, 0, 0, .6); }
.clip .cap-encadre { justify-content: flex-start; padding-top: 16%; font-size: clamp(13px, 1.5vw, 16px); line-height: 1.2; }
.clip .cap-encadre i { font-weight: 400; font-style: italic; opacity: .9; }
.clip .cap-encadre b { display: inline-block; margin-top: 2px; padding: 2px 10px; font-weight: 800; font-size: 1.35em; border: 2px solid rgba(255, 255, 255, .9); border-radius: 50%; }
.clip .cap-titre { justify-content: space-between; padding: 12% 6% 16%; }
.clip .cap-titre b { color: #FFF1A8; font-weight: 800; font-size: clamp(18px, 2.3vw, 26px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.clip .cap-titre span { color: #FFE58A; font-size: clamp(11px, 1.2vw, 13px); font-weight: 600; }

/* ---------- Page 404 ---------- */
.not-found { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: center; max-width: 820px; margin-inline: auto; }
.not-found .mascot { width: 200px; }
.not-found .text { display: grid; gap: 16px; justify-items: start; }
.not-found p { color: var(--text-2); }
@media (max-width: 639px) { .not-found { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .not-found .mascot { width: 140px; } .not-found .text { justify-items: center; } }

/* ---------- Bouton de l'assistant sur mobile ---------- */
@media (max-width: 639px) {
  .chat-fab { width: 52px; height: 52px; }
  .chat-fab .m-fab { width: 32px; height: 32px; }
  .site-footer { padding-bottom: 88px; }
}

/* Barre de progression de la conversion (valeur réelle renvoyée par le serveur) */
.bar { position: relative; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--plink-blue); transition: width .6s var(--ease); }
.bar[hidden], .indeterminate[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }
/* Formulaire désactivé (Clips IA indisponible) */
.url-input input:disabled, .select select:disabled { cursor: not-allowed; opacity: .6; }
.opts[disabled] { opacity: .5; }

/* ---------- Aperçu du lien et temps estimé ---------- */
.link-preview { margin-top: 12px; }
.link-preview:empty { display: none; }
.link-preview .result { animation: appear var(--t-in) var(--ease); }
.status-sub { color: var(--text-2); font-size: 14px; line-height: 20px; }
.status-sub:empty { display: none; }

/* ---------- Profil dans l'en-tête ---------- */
.profil-menu { position: relative; }
.profil-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-raised); color: var(--text); font: 600 15px/20px var(--font); cursor: pointer; }
.profil-btn:hover { background: var(--surface); }
.profil-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.profil-btn svg { width: 16px; height: 16px; color: var(--text-2); }
.profil-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--plink-blue); color: #fff; font-weight: 700; font-size: 15px; }
.profil-nom { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 240px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-raised); box-shadow: var(--shadow); display: grid; gap: 2px; }
.profil-info { display: grid; gap: 4px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.profil-info span { color: var(--text-2); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.profil-info .badge { justify-self: start; }
.profil-pop a, .profil-pop button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 500 15px/20px var(--font); text-align: left; text-decoration: none; cursor: pointer; }
.profil-pop a:hover, .profil-pop button:hover { background: var(--surface); }
.profil-pop [data-sortir] { color: var(--err); }

/* ---------- Mon compte : profil ---------- */
.account-profil { display: grid; gap: 16px; padding-top: 20px; margin-top: 4px; border-top: 1px solid var(--line); }
.account-profil h2 { font-size: 20px; line-height: 28px; }
.account-profil .form { display: grid; gap: 12px; }
.account-profil .btn { justify-self: start; }
.code-form { display: grid; gap: 16px; }
.code-form #login-code { font-size: 24px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }

/* Porte des 3 publicités : bannière Adsterra ou encart PLINK */
.ad-frame { display: block; width: 300px; max-width: 100%; height: 250px; border: 0; margin: 0 auto; }
.ad-maison { display: grid; gap: 8px; justify-items: center; max-width: 24rem; text-align: center; }
.ad-maison .mascot { width: 72px; }
.ad-maison strong { font-size: 18px; line-height: 26px; color: var(--text); }
.ad-maison span { color: var(--text-2); font-size: 14px; line-height: 20px; }
.ad-maison .btn { margin-top: 4px; }

/* Bannière Adsterra 300 × 250 : la zone suit la bannière (pas de 16:9 qui élargit la fenêtre) */
.ad-gate { grid-template-columns: minmax(0, 1fr); }
.ad-slot:has(.ad-frame) { aspect-ratio: auto; padding: 40px 0 16px; overflow: hidden; }
.ad-frame { max-width: none; flex: none; }
@media (max-width: 359px) { .ad-frame { transform: scale(.84); margin: -20px -24px; } }

/* Publicités hors fenêtre de téléchargement (offre Gratuit, cookies acceptés) : assets/js/plink-pubs.js */
.pub-encart { position: relative; display: grid; justify-items: center; gap: 8px; margin: 0 auto; padding: 32px 0 12px; max-width: 100%; overflow: hidden; border: 1px dashed var(--field); border-radius: var(--r-ctrl); background: var(--surface); }
.pub-encart .ad-label { position: absolute; top: 8px; left: 12px; }
.convert-page { grid-template-columns: minmax(0, 1fr); }
.pub-bandeau { justify-self: center; margin: 0; width: max-content; max-width: none; padding-left: 12px; padding-right: 12px; }
.pub-native { width: 100%; padding: 32px 12px 12px; }
.pub-frame { display: block; max-width: none; border: 0; }
@media (max-width: 799px) { .pub-bandeau { justify-self: stretch; width: 100%; max-width: 100%; } }

/* Fenêtre « accepter la publicité ou s'abonner » (offre Gratuit sans accord pour les cookies publicitaires) */
.ad-gate.is-mur .ad-progress { visibility: hidden; }
.ad-gate.is-mur .ad-slot { aspect-ratio: auto; }
.ad-mur .link-btn { font-size: 13px; }
