/* Clipper — le site, toujours en version claire. Direction : blanc net, encre presque noire, gris doux, ciel bleu clair,
   et le bleu du logo Clipen (#1C3CF0) pour les touches de couleur.
   Grandes cartes arrondies, colonne centrale bordée de fines lignes, boutons en pilule.
   Polices : Geist et Geist Mono (licence OFL, fichiers dans statique/polices). */

@font-face { font-family: "Geist"; src: url("polices/Geist-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("polices/GeistMono-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --papier: #FFFFFF; --surface: #FFFFFF; --sourdine: #F5F5F5; --sourdine-2: #FAFAFA;
  --encre: #0B0C0E; --gris: #5E626A; --trait: #E7E7E9; --ligne: rgba(10, 10, 12, .07);
  --repere: #1A33C9; --repere-vif: #1C3CF0; --repere-doux: rgba(28, 60, 240, .09);
  --valide: #147234; --valide-doux: rgba(21, 128, 61, .10); --rejete: #C2352D; --rejete-doux: rgba(194, 53, 45, .09);
  --onde: #D4D6DA;
  --bouton: #0B0C0E; --sur-bouton: #FAFAFA; --bouton-survol: #2A2C30;
  --verre: rgba(255, 255, 255, .66); --verre-bord: rgba(255, 255, 255, .85);
  --ciel: linear-gradient(180deg, #A9D8F7 0%, #CBE8FB 38%, #E9F5FD 72%, #F7FBFE 100%);
  --nuage: rgba(255, 255, 255, .75);
  --ombre: 0 1px 2px rgba(10, 10, 12, .04), 0 12px 32px -12px rgba(10, 10, 12, .14);
  --police-titre: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-texte: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-chiffres: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --rayon: 10px; --rayon-carte: 16px; --rayon-ciel: 32px; --large: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Le site reste toujours clair, même si Windows ou le téléphone est en mode sombre. */
html { -webkit-text-size-adjust: 100%; color-scheme: light !important; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 17px/1.6 var(--police-texte);
  -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--repere-vif); outline-offset: 2px; }
.tc { font-variant-numeric: tabular-nums; }
.conteneur { max-width: var(--large); margin: 0 auto; padding: 0 24px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

h1, h2, h3 { font-family: var(--police-titre); font-weight: 500; line-height: 1.1; letter-spacing: -.022em; margin: 0; }
h1 { font-size: clamp(38px, 5.6vw, 62px); }
h2 { font-size: clamp(30px, 4vw, 50px); }
h3 { font-size: 21px; letter-spacing: -.012em; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }

/* --- boutons : pilules --- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  padding: 10px 20px; min-height: 42px; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  line-height: 1.2; background: var(--surface); color: var(--encre); border: 1px solid var(--trait);
  transition: background .15s, border-color .15s, transform .15s; }
.bouton:hover { background: var(--sourdine); }
.bouton:active { transform: translateY(1px); }
.bouton.principal, .bouton.sombre { background: var(--bouton); color: var(--sur-bouton); border-color: var(--bouton); }
.bouton.principal:hover, .bouton.sombre:hover { background: var(--bouton-survol); border-color: var(--bouton-survol); }
.bouton.danger { color: var(--rejete); }
.bouton.danger:hover { border-color: var(--rejete); background: var(--rejete-doux); }
.bouton.petit { padding: 6px 14px; min-height: 34px; font-size: 14px; }
.bouton[disabled], .bouton[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.lien { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: inherit; }

/* --- en-tête --- */
.site-entete .conteneur { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.haut:not(.ciel) .site-entete { border-bottom: 1px solid var(--ligne); background: color-mix(in srgb, var(--papier) 88%, transparent);
  position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--police-titre);
  font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.marque img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: var(--gris); padding: 6px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--encre); }
.nav a[aria-current="page"] { color: var(--encre); background: var(--sourdine); }
.nav a.bouton { color: var(--sur-bouton); margin-left: 8px; padding: 6px 16px; }
.nav a.bouton:hover { background: var(--bouton-survol); }
.nav form { margin: 0; }
.nav .lien { color: var(--gris); text-decoration: none; padding: 6px 12px; }
.nav .lien:hover { color: var(--encre); }

.simulation { background: var(--repere-doux); border-bottom: 1px solid var(--ligne); font-size: 13.5px; }
.simulation .conteneur { padding-top: 7px; padding-bottom: 7px; }

.flash { margin: 20px 0 0; padding: 12px 16px; border-radius: var(--rayon); background: var(--valide-doux);
  border: 1px solid color-mix(in srgb, var(--valide) 35%, transparent); }
.flash.erreur { background: var(--rejete-doux); border-color: color-mix(in srgb, var(--rejete) 35%, transparent); }

/* --- le ciel : grande carte arrondie (haut de l'accueil, appel final) --- */
.ciel { position: relative; isolation: isolate; overflow: hidden; margin: 12px 12px 0; border-radius: var(--rayon-ciel);
  background: var(--ciel); }
.ciel::before { /* nuages : quelques halos blancs flous, dessinés en CSS */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 22% at 12% 30%, var(--nuage), transparent 70%),
    radial-gradient(30% 18% at 30% 22%, var(--nuage), transparent 70%),
    radial-gradient(34% 20% at 82% 18%, var(--nuage), transparent 70%),
    radial-gradient(26% 16% at 66% 34%, var(--nuage), transparent 72%),
    radial-gradient(46% 26% at 50% 62%, var(--nuage), transparent 70%); }
.ciel .site-entete { background: transparent; }
.ciel .nav a { color: color-mix(in srgb, var(--encre) 72%, transparent); }
.ciel .nav a:hover, .ciel .nav a[aria-current="page"] { color: var(--encre); background: var(--verre); }
.ciel .nav a.bouton { color: var(--sur-bouton); background: var(--bouton); }

/* --- accueil : la une --- */
.une { padding: 56px 0 0; text-align: center; }
.badge-une { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 4px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--encre) 14%, transparent); background: var(--verre); font-size: 13.5px;
  color: color-mix(in srgb, var(--encre) 80%, transparent); }
.badge-une::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--repere-vif); }
.une h1 { max-width: 24ch; margin: 0 auto; font-size: clamp(34px, 4.6vw, 54px); }
.une .chapeau { font-size: 18px; color: color-mix(in srgb, var(--encre) 70%, transparent); max-width: 54ch; margin: 22px auto 30px; }
.une .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.une .actions .bouton:not(.principal) { background: var(--verre); border-color: var(--verre-bord); }
.une .precision { font-size: 13.5px; color: color-mix(in srgb, var(--encre) 60%, transparent); margin: 14px auto 0; }

/* fenêtre « verre dépoli » qui montre l'appli */
.fenetre { margin: 52px auto 0; max-width: 1000px; background: var(--verre); border: 1px solid var(--verre-bord);
  border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: var(--ombre); text-align: left;
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.fenetre-barre { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--ligne); }
.fenetre-barre .points { display: flex; gap: 6px; }
.fenetre-barre .points i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--encre) 16%, transparent); }
.fenetre-barre .adresse { flex: 1; text-align: center; font-size: 12.5px; color: var(--gris); background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: 8px; padding: 4px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 460px; margin: 0 auto; }
.fenetre-corps { padding: 22px 24px 26px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.legende { display: flex; justify-content: space-between; gap: 6px 12px; font-size: 13.5px; color: var(--gris);
  margin-bottom: 12px; flex-wrap: wrap; }
.legende strong { color: var(--encre); font-weight: 600; }
.frise-une { width: 100%; height: auto; }
.frise-une .onde { fill: var(--onde); }
.frise-une .passage { fill: var(--repere-vif); }
.frise-une .passage-fond { fill: var(--repere-doux); }
.frise-une .note { font: 500 13px var(--police-chiffres); fill: var(--encre); }
.frise-une .graduation { font: 15px var(--police-chiffres); fill: var(--gris); }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.clip-exemple { background: var(--surface); border: 1px solid var(--trait); border-radius: 12px; padding: 8px 8px 12px; }
.clip-exemple .vignette { aspect-ratio: 16 / 9; border-radius: 8px; position: relative; overflow: hidden; }
.clip-exemple .vignette span { position: absolute; right: 6px; bottom: 6px; font: 500 11.5px var(--police-chiffres);
  background: rgba(0, 0, 0, .72); color: #fff; padding: 1px 6px; border-radius: 5px; }
.teinte-a { background: radial-gradient(60% 80% at 30% 40%, #FDE68A, transparent 70%), linear-gradient(135deg, #F59E0B, #B45309); }
.teinte-b { background: radial-gradient(60% 80% at 70% 40%, #BAE6FD, transparent 70%), linear-gradient(135deg, #0EA5E9, #1E3A8A); }
.teinte-c { background: radial-gradient(60% 80% at 40% 50%, #FBCFE8, transparent 70%), linear-gradient(135deg, #A855F7, #4C1D95); }
.clip-exemple p { margin: 10px 4px 6px; font-weight: 500; font-size: 14.5px; line-height: 1.35; }
.clip-exemple .meta { display: flex; align-items: center; gap: 8px; margin: 0 4px; font-size: 12.5px; color: var(--gris); flex-wrap: wrap; }
.clip-exemple .pastille { font-size: 12px; padding: 1px 8px; }

/* --- colonne centrale bordée de lignes --- */
.cadre { max-width: var(--large); margin: 0 auto; border-left: 1px solid var(--ligne); border-right: 1px solid var(--ligne); }
.bloc-section { padding: 96px 56px; border-bottom: 1px solid var(--ligne); }
.bloc-section.premier { padding-top: 72px; }
.bloc-section:last-child { border-bottom: 0; }
.tete-section { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.etiquette-section { margin: 0 0 14px; font-size: 16px; color: var(--repere); font-weight: 500; }
.tete-section h1 { font-size: clamp(32px, 4.4vw, 48px); }
.tete-section h2, .tete-section h1 { margin: 0 auto; max-width: 22ch; }
.tete-section .intro { color: var(--gris); font-size: 19px; margin: 16px auto 0; }

/* cartes : visuel gris en haut, texte en dessous */
.cartes { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.cartes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.carte { display: flex; flex-direction: column; }
.carte .visuel { background: var(--sourdine); border-radius: 14px; height: 220px; display: flex; align-items: center;
  justify-content: center; padding: 20px; overflow: hidden; }
.carte .texte { padding: 18px 6px 0; }
.carte h3 { font-size: 20px; margin-bottom: 8px; }
.carte p { color: var(--gris); margin: 0; font-size: 16.5px; }
.visuel-chiffre span { font: 500 clamp(34px, 3.4vw, 44px)/1 var(--police-titre); letter-spacing: -.03em; }
.cartes-3 .carte:nth-child(3n+2) .visuel-chiffre span { color: var(--repere); }

/* petites illustrations des étapes (HTML pur, pas d'image) */
.illu-envoi { width: 100%; max-width: 260px; background: var(--surface); border-radius: 12px; padding: 14px; box-shadow: var(--ombre); }
.illu-fichier { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.illu-fichier b { display: block; font-weight: 500; }
.illu-fichier small { color: var(--gris); font-size: 12px; }
.illu-icone { width: 34px; height: 34px; border-radius: 9px; background: var(--repere-doux); position: relative; flex: none; }
.illu-icone::after { content: ""; position: absolute; left: 13px; top: 11px; width: 0; height: 0;
  border-left: 10px solid var(--repere-vif); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.illu-jauge { height: 6px; border-radius: 3px; background: var(--sourdine); margin: 14px 0 6px; overflow: hidden; }
.illu-jauge span { display: block; height: 100%; width: 68%; background: var(--repere-vif); border-radius: 3px; }
.illu-legende { font-size: 12px; color: var(--gris); }
.illu-pile, .illu-agenda { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 280px; display: grid; gap: 8px; }
.illu-pile li, .illu-agenda li { background: var(--surface); border-radius: 10px; padding: 9px 12px; font-size: 13px; box-shadow: var(--ombre);
  display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.illu-pile .pastille { font-size: 11.5px; padding: 1px 8px; flex: none; }
.illu-pile li:last-child { opacity: .55; text-decoration: line-through; text-decoration-color: var(--gris); }
.illu-agenda span { font: 500 11.5px var(--police-chiffres); color: var(--gris); flex: none; width: 66px; }
.illu-agenda i { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--valide); flex: none; padding-left: 6px; }
.illu-agenda li:last-child i { color: var(--repere); }

@media (max-width: 900px) { .cartes-3 { grid-template-columns: 1fr; } .carte .visuel { height: 200px; } }

/* --- tarifs --- */
.formules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.formule { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 28px 26px;
  display: flex; flex-direction: column; position: relative; }
.formule.recommandee { background: var(--sourdine-2); border-color: color-mix(in srgb, var(--repere-vif) 55%, transparent);
  box-shadow: 0 0 0 3px var(--repere-doux), var(--ombre); }
.formule .etiquette { position: static; background: var(--repere-doux); color: var(--repere);
  font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.formule h3 { font-size: 22px; }
.tete-formule { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Sélecteur Mensuel / Annuel en haut des formules payantes : une pilule à deux moitiés égales,
   la pastille blanche glisse de l'une à l'autre. « 2 mois offerts » est posé à côté, hors de la pilule. */
.periode-ligne { position: relative; margin: 0 0 22px; }
.periode { border: 0; margin: 0; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; position: relative;
  background: var(--sourdine); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--trait); }
.periode-vide { height: 44px; margin: 0 0 22px; }
.periode::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--surface); border-radius: 999px; box-shadow: 0 1px 2px rgb(11 12 14 / .12), 0 2px 8px rgb(11 12 14 / .06);
  transition: transform .25s cubic-bezier(.3, .7, .2, 1); }
.periode:has(input[value="annuel"]:checked)::before { transform: translateX(100%); }
.periode label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  min-width: 0; padding: 8px 10px; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--gris);
  border-radius: 999px; white-space: nowrap; transition: color .2s; }
.periode input { position: absolute; opacity: 0; pointer-events: none; }
.periode label:has(input:checked) { color: var(--encre); }
.periode label:has(input:focus-visible) { outline: 2px solid var(--repere-vif); outline-offset: 1px; }
/* « 2 mois offerts » : petite étiquette posée sur le coin de la moitié « Annuel » */
.mois-offerts { position: absolute; top: -11px; right: 10px; z-index: 2; font-weight: 600; font-size: 11.5px; line-height: 1;
  color: #fff; background: var(--repere-vif); border-radius: 999px; padding: 5px 9px; white-space: nowrap;
  box-shadow: 0 0 0 3px var(--surface); pointer-events: none; }
.formule.recommandee .mois-offerts { box-shadow: 0 0 0 3px var(--sourdine-2); }
.formule .prix-annuel { display: none; }
.formule:has(.periode input[value="annuel"]:checked) .prix-annuel { display: block; }
.formule:has(.periode input[value="annuel"]:checked) .prix-mensuel { display: none; }
.formule .prix, .pack .prix { margin: 0; }
.prix-note { color: var(--gris); font-size: 14px; margin: 10px 0 0; min-height: 1.5em; }

/* Packs de vidéos en plus */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pack { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 24px;
  display: flex; flex-direction: column; gap: 4px; position: relative; }
.pack.meilleur { border-color: color-mix(in srgb, var(--repere-vif) 55%, transparent); box-shadow: 0 0 0 3px var(--repere-doux); }
.pack .etiquette { position: absolute; top: 20px; right: 20px; background: var(--repere-doux); color: var(--repere);
  border-radius: 999px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; }
.pack h3 { font-size: 19px; }
.pack .prix { font: 500 38px/1 var(--police-titre); letter-spacing: -.03em; margin-top: 10px; }
.pack .prix small { font: 400 14px var(--police-texte); letter-spacing: 0; color: var(--gris); margin-left: 6px; }
.pack form, .pack > .bouton { margin-top: 18px; }
.pack .bouton { width: 100%; }
.pack .case { font-size: 13px; color: var(--gris); }
.note-packs { text-align: center; color: var(--gris); margin: 22px 0 0; font-size: 15.5px; }
.note-packs a { color: var(--encre); }
p.centre { text-align: center; margin: 0 0 22px; }
@media (max-width: 900px) { .packs { grid-template-columns: 1fr; } }
.formule .pour { color: var(--gris); margin: 6px 0 20px; min-height: 2.9em; font-size: 16px; }
.formule .prix { font: 500 48px/1 var(--police-titre); letter-spacing: -.03em; }
.formule .prix small { font: 400 15px var(--police-texte); letter-spacing: 0; color: var(--gris); margin-left: 6px; }
.formule ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; font-size: 16.5px; }
.formule li { padding-left: 26px; position: relative; }
.formule li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--repere-doux); }
.formule li::after { content: ""; position: absolute; left: 5px; top: calc(.2em + 4px); width: 6px; height: 3.5px;
  border-left: 1.6px solid var(--repere); border-bottom: 1.6px solid var(--repere); transform: rotate(-45deg); }
.formule .bouton { margin-top: auto; width: 100%; }
.formule form { margin-top: auto; }
.formule.actuelle { border-style: dashed; }
@media (max-width: 900px) { .formules { grid-template-columns: 1fr; } .formule .pour { min-height: 0; } }

/* --- questions fréquentes --- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 19px; list-style: none; padding: 20px 40px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px;
  font-weight: 300; color: var(--gris); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--gris); margin: -6px 0 20px; font-size: 17px; }
.faq h2 { font-size: 28px; margin-bottom: 8px; }

/* --- appel final --- */
.appel { margin: 0 12px; padding: 96px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.appel h2 { max-width: 22ch; }

/* --- pied de page --- */
.pied { border-top: 1px solid var(--ligne); margin-top: 96px; padding: 56px 0 40px; color: var(--gris); font-size: 14.5px; }
.appel + .pied, .pied.colle { margin-top: 12px; border-top: 0; }
.pied .conteneur { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.pied .marque { color: var(--encre); font-size: 17px; }
.pied .marque img { height: 26px; }
.pied-marque p { margin: 12px 0 0; max-width: 34ch; }
.pied nav { display: flex; flex-direction: column; gap: 8px; }
.pied nav h2 { font: 500 14px var(--police-texte); letter-spacing: 0; color: var(--encre); margin-bottom: 4px; }
.pied nav a { text-decoration: none; }
.pied nav a:hover { color: var(--encre); }
.pied-bas { max-width: none; grid-column: 1 / -1; border-top: 1px solid var(--ligne); padding-top: 20px; margin: 16px 0 0; font-size: 13.5px; }
@media (max-width: 760px) { .pied .conteneur { grid-template-columns: 1fr 1fr; } .pied-marque { grid-column: 1 / -1; } }

/* --- formulaires et pages de compte --- */
.carte-formulaire { max-width: 420px; margin: 72px auto 0; background: var(--surface); border: 1px solid var(--trait);
  border-radius: 20px; padding: 36px 32px; box-shadow: var(--ombre); }
.carte-formulaire h1 { font-size: 30px; margin-bottom: 8px; }
.carte-formulaire .sous-titre { color: var(--gris); margin-bottom: 26px; }
.champ { display: block; margin-bottom: 16px; }
.champ > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.champ small { display: block; color: var(--gris); font-size: 13px; margin-top: 6px; }
input[type="email"], input[type="password"], input[type="text"], input[type="url"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--repere-vif); box-shadow: 0 0 0 4px var(--repere-doux); }
.case { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; font-size: 14.5px; }
.case input { margin-top: 3px; accent-color: var(--bouton); width: 17px; height: 17px; flex: none; }
.erreur-formulaire { background: var(--rejete-doux); border: 1px solid color-mix(in srgb, var(--rejete) 35%, transparent);
  border-radius: var(--rayon); padding: 10px 14px; margin-bottom: 18px; }
.sous-lien { margin-top: 20px; font-size: 14.5px; color: var(--gris); }
.sous-lien a { color: var(--encre); }
.carte-formulaire .bouton { width: 100%; }

/* --- espace utilisateur --- */
.page-app { padding-top: 44px; }
.titre-page { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
.titre-page h1 { font-size: clamp(30px, 3.6vw, 40px); }
.compteur { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 18px 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; align-items: center; margin-bottom: 28px; }
.compteur .jauge { grid-column: 1 / -1; height: 6px; background: var(--sourdine); border-radius: 3px; overflow: hidden; }
.compteur .jauge span { display: block; height: 100%; background: var(--repere-vif); border-radius: 3px; }
.compteur .detail { color: var(--gris); font-size: 14px; }
.alerte { background: var(--repere-doux); border: 1px solid color-mix(in srgb, var(--repere-vif) 35%, transparent);
  border-radius: var(--rayon-carte); padding: 14px 18px; margin-bottom: 24px; display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; }
.alerte p { margin: 0; }
.alerte form { margin: 0 0 0 auto; }

.liste-videos { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.liste-videos li { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-carte); transition: border-color .15s, box-shadow .15s; }
.liste-videos li:hover { border-color: color-mix(in srgb, var(--encre) 18%, transparent); box-shadow: var(--ombre); }
.liste-videos a.ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 18px 22px;
  text-decoration: none; align-items: center; }
.liste-videos .t { font-weight: 500; font-size: 17px; overflow-wrap: anywhere; }
.liste-videos .m { color: var(--gris); font-size: 14px; }
.liste-videos .etat { grid-row: 1 / 3; grid-column: 2; text-align: right; font-size: 15px; }
.pastille { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13.5px; background: var(--sourdine); color: var(--gris); }
.pastille.prete { background: var(--repere-doux); color: var(--repere); font-weight: 500; }
.pastille.ok { background: var(--valide-doux); color: var(--valide); }
.pastille.echec { background: var(--rejete-doux); color: var(--rejete); }
.pastille.cours::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px;
  background: var(--repere-vif); animation: pulse 1.4s ease-in-out infinite; vertical-align: 1px; }
@keyframes pulse { 50% { opacity: .3; } }
.vide { text-align: center; padding: 64px 20px; background: var(--sourdine-2); border: 1px dashed var(--trait); border-radius: var(--rayon-carte); }
.vide p { margin: 0 auto 20px; color: var(--gris); }

/* envoi */
.depot { display: block; border: 1.5px dashed color-mix(in srgb, var(--encre) 18%, transparent); border-radius: 20px;
  background: var(--sourdine-2); padding: 56px 24px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.depot:hover, .depot.survol { border-color: var(--repere-vif); background: var(--repere-doux); }
.depot strong { display: block; font: 500 24px var(--police-titre); letter-spacing: -.02em; margin-bottom: 6px; }
.depot span { color: var(--gris); }
.depot input { display: none; }
.envoi-grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.envoi-grille aside { background: var(--sourdine-2); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 22px 24px; font-size: 15px; }
.envoi-grille aside h3 { font-size: 18px; margin-bottom: 10px; }
.envoi-grille aside ul { padding-left: 18px; margin: 0; color: var(--gris); display: grid; gap: 6px; }
@media (max-width: 860px) { .envoi-grille { grid-template-columns: 1fr; } }
.fichier-choisi { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 18px 22px; margin-top: 18px; }
.fichier-choisi .nom { font-weight: 500; overflow-wrap: anywhere; }
.progression { height: 8px; background: var(--sourdine); border-radius: 4px; overflow: hidden; margin: 14px 0 8px; }
.progression span { display: block; height: 100%; width: 0; background: var(--repere-vif); border-radius: 4px; transition: width .3s; }
.progression-texte { display: flex; justify-content: space-between; font-size: 14px; color: var(--gris); gap: 12px; flex-wrap: wrap; }

/* compte */
.blocs { display: grid; gap: 20px; }
.bloc { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 28px 30px; scroll-margin-top: 90px; }
.bloc > h2 { font-size: 24px; margin-bottom: 6px; }
.bloc > .aide { color: var(--gris); margin-bottom: 20px; }
.bloc.danger { border-color: color-mix(in srgb, var(--rejete) 40%, transparent); }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
@media (max-width: 760px) { .grille-2 { grid-template-columns: 1fr; } .bloc { padding: 22px 18px; } }
.jours { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.jours label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--trait); border-radius: 999px;
  padding: 5px 12px; cursor: pointer; font-size: 14.5px; }
.jours label:has(input:checked) { background: var(--sourdine); border-color: color-mix(in srgb, var(--encre) 22%, transparent); }
.jours input { accent-color: var(--bouton); }
.chaine { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.chaine .nom { font-weight: 500; font-size: 18px; }
.ligne-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ligne-actions form { margin: 0; }
.formules.compactes .formule { padding: 22px; }
.formules.compactes .prix { font-size: 38px; }
.formules.compactes .pour { min-height: 0; }

/* tableaux (publication, statistiques) */
.tableau { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--trait);
  border-radius: var(--rayon-carte); overflow: hidden; }
.tableau th, .tableau td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau th { font-size: 13px; color: var(--gris); font-weight: 500; background: var(--sourdine-2); }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .sec { color: var(--gris); font-size: 14px; }
@media (max-width: 760px) { .tableau thead { display: none; } .tableau td { display: block; border: 0; padding: 4px 16px; }
  .tableau tr { display: block; border-bottom: 1px solid var(--trait); padding: 10px 0; } .tableau tr:last-child { border-bottom: 0; } }

/* revue intégrée au site : la page de revue reprend les couleurs du site */
/* revue.css redéfinit ses propres couleurs ensuite : on les remplace ici, sur body (plus précis que :root). */
body.revue-site {
  --fond: #FFFFFF; --surface: #FFFFFF; --trait: #E7E7E9; --texte: #0B0C0E; --discret: #5E626A;
  --repere: #1A33C9; --repere-doux: rgba(28, 60, 240, .09);
  --valide: #147234; --valide-doux: rgba(21, 128, 61, .10); --sur-valide: #FFFFFF;
  --rejete: #C2352D; --rejete-doux: rgba(194, 53, 45, .09); --rayon: 14px;
  font: 15px/1.5 var(--police-texte); background: var(--fond); color: var(--texte);
}
body.revue-site .simulation { background: rgba(28, 60, 240, .09); }
.revue-site .pas, .revue-site .lien-btn, .revue-site .actions button { border-radius: 999px; }
.revue-site .pas { padding: 2px 10px; }
.revue-site .lien-btn { padding: 5px 14px; }
.revue-site .actions button { padding: 8px 20px; }
.revue-site input[type="text"], .revue-site textarea { border-radius: 10px; }
.revue-site .lecteur, .revue-site .mini-img { border-radius: 10px; }
.revue-site .barre { position: static; }

/* pages légales et messages */
.texte-long { max-width: 720px; }
.texte-long h1 { font-size: 40px; margin-bottom: 20px; }
.texte-long h2 { font-size: 24px; margin: 40px 0 10px; }
.texte-long p, .texte-long li { color: var(--encre); }
.texte-long .a-completer { background: var(--repere-doux); padding: 0 4px; border-radius: 4px; }
.avertissement { background: var(--repere-doux); border-left: 3px solid var(--repere-vif); border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: 12px 16px; margin: 0 0 28px; }
.espace-haut { margin-top: 18px; }
fieldset.champ { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.champ legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.detail { color: var(--gris); font-size: 14px; }
.texte-courriel { white-space: pre-wrap; font: 14px/1.5 var(--police-texte); background: var(--sourdine); padding: 12px; border-radius: var(--rayon); }

/* statistiques */
.chiffres-suivi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.chiffres-suivi > div { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px; }
.chiffres-suivi .valeur { font: 500 32px/1.1 var(--police-titre); letter-spacing: -.03em; }
.chiffres-suivi .libelle { color: var(--gris); font-size: 14px; }
.carte-suivi { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 22px 24px; margin-bottom: 20px; }
.carte-suivi h2 { font-size: 20px; letter-spacing: -.015em; margin: 0 0 4px; }
.carte-suivi .detail { color: var(--gris); font-size: 14px; margin: 0 0 16px; }
.barres { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.barres li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 70px; gap: 14px; align-items: center; }
.barres .barre { height: 10px; background: var(--sourdine); border-radius: 5px; overflow: hidden; }
.barres .barre span { display: block; height: 100%; background: var(--repere-vif); border-radius: 5px; }
.barres .valeur { text-align: right; font-weight: 500; }
.barres .sec, .tableau.suivi .sec { color: var(--gris); font-size: 14px; }
.tableau.suivi .nb { text-align: right; white-space: nowrap; }
.tableau.suivi .etiquette { display: none; }

/* --- petits écrans --- */
@media (max-width: 760px) {
  .conteneur { padding: 0 18px; }
  .ciel { margin: 8px 8px 0; border-radius: 24px; }
  .une { padding-top: 32px; }
  .une .chapeau { font-size: 16.5px; }
  .fenetre { margin-top: 36px; border-radius: 14px 14px 0 0; }
  .fenetre-corps { padding: 16px 14px 18px; }
  .fenetre-barre .adresse { font-size: 11.5px; }
  .clips { grid-template-columns: 1fr; }
  .clips .clip-exemple:nth-child(n+2) { display: none; }
  .cadre { border: 0; }
  .bloc-section { padding: 64px 18px; }
  .tete-section { margin-bottom: 32px; }
  .appel { margin: 0 8px; padding: 64px 20px; border-radius: 24px; }
  .chiffres-suivi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres-suivi .valeur { font-size: 26px; }
  .barres li { grid-template-columns: 1fr 60px; }
  .barres .barre { grid-column: 1 / -1; grid-row: 2; }
  .tableau.suivi .nb { text-align: left; white-space: normal; }
  .tableau.suivi .etiquette { display: inline; color: var(--gris); }
  .site-entete .conteneur { gap: 8px 16px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .nav { margin-left: 0; font-size: 14.5px; }
  .nav a { padding: 5px 10px; }
}

/* ===== accueil, version « maquette » : une en deux colonnes, preuves, avant/avec, etc. ===== */
.une { text-align: center; padding: 64px 0 0; }
.une-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; justify-items: center; max-width: 1240px; }
.une-texte { max-width: 860px; }
.une-texte h1 { margin: 0 auto; font-size: clamp(40px, 5.8vw, 70px); line-height: 1.04; }
.ciel .site-entete .conteneur { max-width: 1240px; }
.une-texte .chapeau { margin: 24px auto 32px; max-width: 52ch; font-size: 20px; }
.une-texte .actions { justify-content: center; }
.une-texte .precision { margin: 16px auto 0; font-size: 14.5px; }
.une .fenetre { margin: 0; width: 100%; max-width: 1080px; border-bottom: 1px solid var(--verre-bord); border-radius: 22px; text-align: left; }
.une .fenetre-corps { border-radius: 0 0 22px 22px; padding: 28px 32px 30px; }
.une .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }

.preuves { list-style: none; display: flex; justify-content: center; gap: 10px 14px; flex-wrap: wrap; margin: 48px auto 0;
  padding-bottom: 40px; max-width: 1240px; }
.preuves li { background: var(--verre); border: 1px solid var(--verre-bord); border-radius: 999px; padding: 10px 20px;
  font-size: 16px; color: color-mix(in srgb, var(--encre) 75%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.preuves b { color: var(--encre); font-weight: 600; }

/* avant / avec */
.avant-apres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 0 auto; }
.avant-apres .colonne { border-radius: 18px; padding: 28px 28px 24px; }
.avant-apres h3 { font-size: 21px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.avant-apres ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.avant-apres li { position: relative; padding-left: 32px; font-size: 17px; }
.avant-apres li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; }
.avant { background: var(--sourdine); color: var(--gris); }
.avant h3 { color: var(--encre); }
.avant li::before { background: var(--rejete-doux); }
.avant li::after { content: "×"; position: absolute; left: 0; top: .15em; width: 20px; line-height: 20px; text-align: center;
  color: var(--rejete); font-weight: 600; font-size: 15px; }
.apres { background: var(--surface); border: 1px solid color-mix(in srgb, var(--repere-vif) 30%, transparent);
  box-shadow: 0 0 0 4px var(--repere-doux), var(--ombre); }
.apres h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--repere-vif); }
.apres li::before { background: var(--repere-vif); }
.apres li::after { content: ""; position: absolute; left: 6.5px; top: calc(.15em + 6px); width: 7px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* ce que ça change */
.avantages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.avantage { background: var(--sourdine-2); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 24px 22px; }
.avantage svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--repere-doux); margin-bottom: 18px;
  fill: none; stroke: var(--repere-vif); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.avantage h3 { font-size: 19.5px; margin-bottom: 8px; }
.avantage p { color: var(--gris); font-size: 16.5px; margin: 0; }

/* comment ça marche (4 étapes numérotées) et tout ce que tu reçois */
.cartes-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cartes-4 .visuel { height: 200px; padding: 16px; }
.etapes-numerotees { counter-reset: etape; }
.etapes-numerotees .carte { counter-increment: etape; }
.etapes-numerotees h3::before { content: counter(etape); display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--bouton); color: var(--sur-bouton); font: 600 12px var(--police-chiffres);
  margin-right: 8px; vertical-align: 2px; }
.illu-onde { width: 100%; height: auto; overflow: visible; }
.illu-onde .onde { fill: var(--onde); }
.illu-onde .passage-fond { fill: var(--repere-doux); }
.illu-onde .note { font: 600 44px var(--police-chiffres); fill: var(--repere); }
.illu-clip { width: 100%; max-width: 230px; }
.illu-clip .vignette { aspect-ratio: 16 / 9; border-radius: 10px; position: relative; box-shadow: var(--ombre); }
.illu-clip .vignette span { position: absolute; right: 6px; bottom: 6px; font: 500 11px var(--police-chiffres);
  background: rgba(0, 0, 0, .72); color: #fff; padding: 1px 6px; border-radius: 5px; }
.puces { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.puces span { background: var(--surface); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; box-shadow: var(--ombre); }
.illu-titres { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; width: 100%; }
.illu-titres li { background: var(--surface); border-radius: 9px; padding: 7px 10px 7px 28px; font-size: 12px; line-height: 1.3;
  position: relative; box-shadow: var(--ombre); }
.illu-titres li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; border: 1.5px solid var(--onde); }
.illu-titres .choisi { outline: 1.5px solid var(--repere-vif); }
.illu-titres .choisi::before { border-color: var(--repere-vif); background: radial-gradient(circle, var(--repere-vif) 45%, transparent 50%); }
.illu-miniature { width: 100%; max-width: 230px; aspect-ratio: 16 / 9; border-radius: 10px; box-shadow: var(--ombre);
  display: flex; align-items: flex-end; padding: 10px 12px; }
.illu-miniature span { font: 800 19px/1.05 var(--police-titre); color: #fff; text-transform: uppercase; letter-spacing: -.01em;
  max-width: 8ch; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.illu-suivi i { color: var(--repere) !important; }
/* cartes étroites (4 colonnes) : le statut devient une pastille de couleur */
.cartes-4 .illu-agenda i { font-size: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--valide); padding: 0; }
.cartes-4 .illu-agenda li:last-child i, .cartes-4 .illu-suivi i { background: var(--repere-vif); }
.cartes-4 .illu-agenda span { width: auto; margin-right: 4px; }

/* appel final */
.appel-logo { height: 44px; width: auto; }
.appel .precision { font-size: 13.5px; color: color-mix(in srgb, var(--encre) 60%, transparent); margin: -12px 0 0; }

@media (max-width: 1000px) {
  .une-grille { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .une-texte { text-align: center; }
  .une-texte h1, .une-texte .chapeau { margin-left: auto; margin-right: auto; }
  .une-texte .actions { justify-content: center; }
  .cartes-4, .avantages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .avant-apres, .cartes-4, .avantages { grid-template-columns: minmax(0, 1fr); }
  .une .clips { grid-template-columns: 1fr; }
  .une .clips .clip-exemple:nth-child(n+2) { display: none; }
  .preuves { padding: 0 18px 32px; margin-top: 32px; }
}

/* fenêtre d'exemple : la note sur 100 expliquée */
.etape-ex { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; font-weight: 500; max-width: none; }
.etape-ex .num { width: 26px; height: 26px; border-radius: 50%; background: var(--bouton); color: var(--sur-bouton);
  display: inline-flex; align-items: center; justify-content: center; font: 600 13px var(--police-chiffres); flex: none; }
.frise-une + .etape-ex { margin-top: 26px; }
.frise-une .passage-fond.niveau-haut { fill: rgba(28, 60, 240, .16); }
.frise-une .passage-fond.niveau-moyen { fill: rgba(28, 60, 240, .08); }
.frise-une .passage-fond.niveau-bas { fill: rgba(10, 10, 12, .05); }
.frise-une .passage.niveau-haut, .frise-une .pastille-note.niveau-haut { fill: var(--repere-vif); }
.frise-une .passage.niveau-moyen, .frise-une .pastille-note.niveau-moyen { fill: #8C9CF8; }
.frise-une .passage.niveau-bas, .frise-une .pastille-note.niveau-bas { fill: #B9BCC4; }
.frise-une .note { font: 600 17px var(--police-chiffres); fill: #fff; }
.frise-une .note.niveau-moyen, .frise-une .note.niveau-bas { fill: var(--encre); }  /* lisible sur les pastilles claires */
.classement { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.classement li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; padding: 10px 18px 10px 10px; }
.classement .score { border-radius: 11px; padding: 9px 0; text-align: center; font-size: 13.5px; color: var(--gris); background: var(--sourdine); }
.classement .score b { display: block; font: 600 32px/1.05 var(--police-chiffres); color: var(--encre); }
.classement .niveau-haut .score { background: var(--repere-vif); color: rgba(255, 255, 255, .8); }
.classement .niveau-haut .score b { color: #fff; }
.classement .niveau-moyen .score { background: rgba(28, 60, 240, .12); }
.classement .niveau-moyen .score b { color: var(--repere); }
.classement .t { font-size: 18px; font-weight: 500; line-height: 1.3; }
.classement .t small { display: block; font-size: 14.5px; color: var(--gris); font-weight: 400; margin-top: 2px; }
.classement .verdict { font-size: 14.5px; border-radius: 999px; padding: 4px 12px; white-space: nowrap; background: var(--sourdine); color: var(--gris); }
.classement .niveau-haut .verdict { background: var(--repere-doux); color: var(--repere); font-weight: 500; }
.classement .niveau-bas { opacity: .8; }
.classement .ellipse { display: block; text-align: center; border: 0; background: none; padding: 0; color: var(--gris); line-height: .6; }
.explication { margin: 16px 2px 0; font-size: 16px; color: var(--gris); max-width: none; }
@media (max-width: 760px) { .classement li { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; } .classement .score b { font-size: 24px; }
  .classement .t { font-size: 15.5px; } .classement .verdict { display: none; } .etape-ex { font-size: 16px; }
  .une .fenetre-corps { padding: 18px 14px 20px; } .une-texte .chapeau { font-size: 17.5px; } }

/* Mon bureau : chaque vidéo (le fichier envoyé) avec, en dessous, la rangée de ses clips */
.titre-page .plus { font-size: 20px; line-height: 0; margin-right: 2px; font-weight: 400; }
.liste-bureau { display: grid; gap: 22px; }
.bloc-video { background: var(--sourdine-2); border: 1px solid var(--trait); border-radius: 22px; padding: 20px 22px 14px; min-width: 0; }
.fichier-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; }
.icone-fichier { width: 46px; height: 46px; border-radius: 12px; background: var(--bouton); position: relative; flex: none; }
.icone-fichier::after { content: ""; position: absolute; left: 19px; top: 15px; border-left: 12px solid var(--repere-vif);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.fichier-infos h2 { font-size: 19px; letter-spacing: -.01em; overflow-wrap: anywhere; line-height: 1.25; }
.fichier-infos h2 a { color: inherit; text-decoration: none; }
.fichier-infos h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fichier-infos .detail { margin: 3px 0 0; color: var(--gris); font-size: 14px; overflow-wrap: anywhere; }
.fichier-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bloc-message { margin: 16px 0 6px; color: var(--gris); font-size: 15px; }
@media (max-width: 760px) {
  .bloc-video { padding: 16px 14px 10px; border-radius: 18px; }
  .fichier-ligne { grid-template-columns: auto minmax(0, 1fr); }
  .fichier-etat, .fichier-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* La rangée de clips : défile de gauche à droite, avec une barre de défilement visible */
.rangee-clips { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: 16px 2px 14px; margin-top: 4px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--encre) 28%, transparent) transparent; }
.rangee-clips::-webkit-scrollbar { height: 8px; }
.rangee-clips::-webkit-scrollbar-track { background: var(--sourdine); border-radius: 4px; }
.rangee-clips::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--encre) 25%, transparent); border-radius: 4px; }
.tuile-clip { flex: 0 0 236px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; color: inherit;
  text-decoration: none; background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; padding: 8px 8px 12px;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.tuile-clip:hover { border-color: color-mix(in srgb, var(--encre) 18%, transparent); box-shadow: var(--ombre); transform: translateY(-2px); }
.tuile-clip:focus-visible { outline: 2px solid var(--repere-vif); outline-offset: 2px; }
.tuile-clip .vignette { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #1a2140, #0b0c0e); }
.tuile-clip .vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tuile-clip .score-clip { top: 6px; left: 6px; padding: 3px 8px; font-size: 11.5px; border-radius: 8px; }
.tuile-clip .score-clip b { font-size: 16px; }
.duree-clip { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 12px;
  border-radius: 6px; padding: 2px 6px; }
.jouer { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3); opacity: 0; transform: scale(.9); transition: opacity .15s, transform .15s; }
.jouer::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 13px solid var(--encre);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.tuile-clip:hover .jouer, .tuile-clip:focus-visible .jouer { opacity: 1; transform: none; }
.titre-tuile { font-size: 14.5px; font-weight: 500; line-height: 1.3; padding: 2px 4px 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.etat-tuile { padding: 0 4px; }
.etat-tuile .pastille { font-size: 12px; }
/* Vidéo en préparation : tuiles fantômes qui « respirent » */
.rangee-clips.en-attente { overflow: hidden; padding-top: 10px; }
.tuile-clip.fantome { pointer-events: none; }
.tuile-clip.fantome .vignette, .tuile-clip.fantome span { background: var(--sourdine); animation: respire 1.6s ease-in-out infinite; }
.tuile-clip.fantome span { display: block; height: 10px; border-radius: 5px; margin: 6px 4px 0; }
.tuile-clip.fantome span:last-child { width: 55%; }
@keyframes respire { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .tuile-clip.fantome .vignette, .tuile-clip.fantome span { animation: none; } }
.attente-texte { margin: 16px 0 0; font-size: 15px; color: var(--gris); display: flex; align-items: center; gap: 10px; }
.point-actif { width: 8px; height: 8px; border-radius: 50%; background: var(--repere-vif); flex: none; animation: respire 1.2s ease-in-out infinite; }
@media (max-width: 760px) { .compteur { grid-template-columns: 1fr; } }

/* Fenêtres : « Nouvelle vidéo » et lecteur de clip */
dialog.modale { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 22px; padding: 22px 24px 20px;
  background: var(--surface); color: var(--encre); box-shadow: 0 30px 80px rgba(11, 12, 14, .28); overflow: auto; }
dialog.modale::backdrop { background: rgba(11, 12, 14, .45); backdrop-filter: blur(3px); }
dialog.modale[open] { animation: apparait .18s ease-out; }
@keyframes apparait { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modale-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modale-tete h2 { font-size: 24px; overflow-wrap: anywhere; }
.fermer { border: 0; background: var(--sourdine); color: var(--encre); width: 36px; height: 36px; border-radius: 50%; flex: none;
  font-size: 22px; line-height: 1; cursor: pointer; }
.fermer:hover { background: var(--trait); }
.modale .depot { padding: 40px 20px; }
.depot-icone { display: block; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; background: var(--bouton); position: relative; }
.depot-icone::before { content: ""; position: absolute; left: 24px; top: 13px; width: 4px; height: 20px; background: #fff; border-radius: 2px; }
.depot-icone::after { content: ""; position: absolute; left: 18px; top: 12px; width: 12px; height: 12px; border-left: 4px solid #fff;
  border-top: 4px solid #fff; transform: rotate(45deg); border-radius: 2px; }
.modale .fichier-choisi { margin-top: 18px; }
.modale-pied { margin: 16px 0 0; color: var(--gris); font-size: 14px; }
.modale .alerte { margin-bottom: 16px; }
/* « Nouvelle vidéo » une fois le fichier choisi : aperçu à gauche, réglages à droite */
dialog.modale.large { width: min(980px, calc(100vw - 32px)); }
.modale.large .depot { padding: 18px 20px; }
.modale.large .depot .depot-icone, .modale.large .depot span { display: none; }
.modale.large .depot strong { font-size: 17px; margin: 0; }
.modale.large .depot strong::after { content: " (changer de fichier)"; color: var(--gris); font-weight: 400; }
.reglages-envoi { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.reglages-envoi[hidden], .champ[hidden] { display: none; }
.modale .reglages-envoi { border: 0; padding: 0; }
.apercu-envoi { position: sticky; top: 0; }
.apercu-envoi .nom { margin: 12px 0 0; font-size: 14px; }
.apercu-envoi .detail { margin: 2px 0 0; font-size: 13px; color: var(--gris); }
.cadre-apercu { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0B0C0E; border-radius: 14px;
  overflow: hidden; margin: 0 auto; transition: aspect-ratio .2s ease, width .2s ease; }
.cadre-apercu.vertical { aspect-ratio: 9 / 16; width: min(100%, 230px); }
.cadre-apercu video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cadre-apercu.illisible::before { content: "Aperçu impossible dans le navigateur : le fichier sera quand même traité.";
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: #fff; font-size: 13px; }
.apercu-sous-titre, .apercu-hook { position: absolute; left: 8%; right: 8%; margin: 0; text-align: center;
  font-weight: 800; line-height: 1.2; pointer-events: none; }
.apercu-sous-titre { bottom: 8%; color: #fff; font-size: 13px;
  text-shadow: 0 0 2px #000, 0 0 2px #000, 0 1px 3px #000; }
.cadre-apercu.vertical .apercu-sous-titre { bottom: 29%; font-size: 15px; }
.apercu-hook { top: 15%; left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: 84%;
  background: #fff; color: var(--encre); padding: 4px 8px; font-size: 13px; }
.apercu-hook[hidden] { display: none; }
.apercu-legende { margin: 10px 0 0; font-size: 12.5px; color: var(--gris); text-align: center; }
.choix-format { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.carte-choix { position: relative; display: block; border: 1.5px solid var(--trait); border-radius: 14px; padding: 12px 14px 12px 50px;
  cursor: pointer; transition: border-color .15s, background .15s; }
.carte-choix:hover { border-color: color-mix(in srgb, var(--repere-vif) 45%, var(--trait)); }
.carte-choix:has(input:checked) { border-color: var(--repere-vif); background: var(--repere-doux); }
.carte-choix input { position: absolute; opacity: 0; pointer-events: none; }
.carte-choix:has(input:focus-visible) { outline: 2px solid var(--repere-vif); outline-offset: 2px; }
.carte-choix strong { display: block; font-size: 16px; }
.carte-choix small { display: block; color: var(--gris); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.icone-format { position: absolute; left: 14px; top: 14px; border: 2px solid currentColor; border-radius: 4px; color: var(--gris); }
.icone-format.horizontal { width: 24px; height: 15px; top: 17px; }
.icone-format.vertical { width: 15px; height: 24px; left: 18px; }
.carte-choix:has(input:checked) .icone-format { color: var(--repere-vif); }
.choix-durees { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-duree { cursor: pointer; }
.choix-duree input { position: absolute; opacity: 0; pointer-events: none; }
.choix-duree span { display: inline-block; border: 1.5px solid var(--trait); border-radius: 999px; padding: 6px 14px; font-size: 14.5px; }
.choix-duree:hover span { border-color: color-mix(in srgb, var(--encre) 30%, transparent); }
.choix-duree input:checked + span { background: var(--bouton); border-color: var(--bouton); color: var(--sur-bouton); }
.choix-duree input:focus-visible + span { outline: 2px solid var(--repere-vif); outline-offset: 2px; }
.lib-champ { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.compteur-clips { display: inline-flex; align-items: center; gap: 12px; }
.compteur-clips output { min-width: 2ch; text-align: center; font-size: 22px; font-weight: 600; }
.bouton.rond { width: 38px; height: 38px; padding: 0; border-radius: 50%; justify-content: center; font-size: 20px; line-height: 1; }
.bouton.rond:disabled { opacity: .35; cursor: default; }
@media (max-width: 760px) {
  .reglages-envoi { grid-template-columns: 1fr; gap: 18px; }
  .apercu-envoi { position: static; }
  .cadre-apercu { width: min(100%, 360px); }
  .cadre-apercu.vertical { width: min(60%, 200px); }
  .choix-format { grid-template-columns: 1fr; }
}
dialog.modale-lecteur { width: min(900px, calc(100vw - 32px)); }
.modale-lecteur video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; display: block; }
.modale-lecteur .ligne-actions { margin-top: 14px; align-items: center; }
.modale-lecteur .score-clip { position: static; margin-right: auto; box-shadow: none; background: var(--sourdine); }
.score-clip { position: absolute; top: 10px; left: 10px; border-radius: 10px; padding: 4px 10px; font-size: 13px;
  background: rgba(255, 255, 255, .92); color: var(--gris); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); pointer-events: none; }
.score-clip b { font: 600 20px/1 var(--police-chiffres); color: var(--encre); margin-right: 1px; }
.niveau-haut .score-clip { background: var(--repere-vif); color: rgba(255, 255, 255, .85); }
.niveau-haut .score-clip b { color: #fff; }
.niveau-moyen .score-clip b { color: var(--repere); }
/* revue : le clip monté sous les boutons */
.clip-monte:not(:empty) { margin: 14px 0 10px; }
.clip-monte .lib { font-size: 13.5px; font-weight: 500; margin: 0 0 6px; }
.clip-monte video { width: 100%; max-width: 520px; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; display: block; }

/* accueil : la miniature façon « détourée » */
.illu-miniature { position: relative; overflow: hidden; background: radial-gradient(60% 90% at 75% 45%, #4A63F5, var(--repere-vif)); }
.illu-miniature span { position: relative; z-index: 1; align-self: center; font-size: 21px; text-shadow: none;
  -webkit-text-stroke: 1px #0B0C0E; paint-order: stroke fill; max-width: 7ch; }
.illu-miniature em { font-style: normal; color: #FFD233; }
.illu-miniature .silhouette { position: absolute; right: 8%; bottom: 0; width: 36%; height: 88%; }
.illu-miniature .silhouette::before { content: ""; position: absolute; left: 50%; top: 4%; width: 46%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: #E9B48F; box-shadow: 0 0 0 3px #fff; }
.illu-miniature .silhouette::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; height: 52%;
  border-radius: 46% 46% 0 0; background: #0B0C0E; box-shadow: 0 0 0 3px #fff; }

/* espace connecté : accueil du premier passage */
.bienvenue { text-align: center; background: var(--ciel); border-radius: 28px; padding: 48px 28px 40px; position: relative; overflow: hidden; }
.bienvenue-logo { height: 34px; width: auto; margin: 0 auto 18px; }
.bienvenue h2 { font-size: clamp(28px, 3.4vw, 40px); }
.bienvenue .intro { color: color-mix(in srgb, var(--encre) 70%, transparent); font-size: 18px; margin: 12px auto 28px; }
.bienvenue-etapes { list-style: none; padding: 0; margin: 0 auto 30px; max-width: 980px; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: etape; text-align: left; }
.bienvenue-etapes li { counter-increment: etape; background: var(--verre); border: 1px solid var(--verre-bord); border-radius: 16px;
  padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.bienvenue-etapes li::before { content: counter(etape); width: 26px; height: 26px; border-radius: 50%; background: var(--bouton);
  color: var(--sur-bouton); display: inline-flex; align-items: center; justify-content: center; font: 600 13px var(--police-chiffres); margin-bottom: 6px; }
.bienvenue-etapes b { font-weight: 600; font-size: 16.5px; }
.bienvenue-etapes span { color: var(--gris); font-size: 15px; }
.bienvenue .precision { font-size: 14px; color: var(--gris); margin: 14px auto 0; }
@media (max-width: 860px) { .bienvenue-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bienvenue-etapes { grid-template-columns: 1fr; } .bienvenue { padding: 32px 16px; } }

/* Menu du compte : trois barres, liste qui s'ouvre en dessous */
.menu-compte { position: relative; }
.menu-compte summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--trait); background: var(--surface); transition: background .15s, border-color .15s; }
.menu-compte summary::-webkit-details-marker { display: none; }
.menu-compte summary:hover, .menu-compte[open] summary { background: var(--sourdine); }
.menu-compte summary:focus-visible { outline: 2px solid var(--repere-vif); outline-offset: 2px; }
.trois-barres { display: grid; gap: 4px; width: 18px; }
.trois-barres i { display: block; height: 2px; border-radius: 1px; background: var(--encre); transition: transform .2s, opacity .2s; }
.menu-compte[open] .trois-barres i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-compte[open] .trois-barres i:nth-child(2) { opacity: 0; }
.menu-compte[open] .trois-barres i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-liste { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 230px; background: var(--surface);
  border: 1px solid var(--trait); border-radius: 16px; box-shadow: 0 18px 50px rgba(11, 12, 14, .16); padding: 8px;
  display: grid; animation: apparait .14s ease-out; }
.menu-liste .menu-email { margin: 4px 10px 8px; font-size: 13px; color: var(--gris); overflow-wrap: anywhere; }
.menu-liste a, .menu-liste button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0;
  background: none; color: var(--encre); font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; }
.menu-liste a:hover, .menu-liste button:hover { background: var(--sourdine); }
.menu-liste a[aria-current="page"] { background: var(--sourdine); font-weight: 500; }
.menu-liste hr { border: 0; border-top: 1px solid var(--trait); margin: 6px 4px; }
.menu-liste form { margin: 0; }
.menu-liste button { color: #B42318; }

/* Paramètres */
.page-etroite { max-width: 860px; }
.infos-compte { margin: 0; display: grid; gap: 0; }
.infos-compte div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--trait); }
.infos-compte div:first-child { border-top: 0; padding-top: 4px; }
.infos-compte dt { color: var(--gris); }
.infos-compte dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .infos-compte div { grid-template-columns: 1fr; gap: 2px; } }
.formulaire-signature textarea { font: inherit; font-size: 15px; line-height: 1.5; }
.apercu-description { background: var(--sourdine-2); border: 1px solid var(--trait); border-radius: 14px; padding: 14px 16px; margin: 4px 0 18px; font-size: 14.5px; }
.apercu-description .lib { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; }
.apercu-ia { margin: 0 0 10px; color: var(--encre); }
.apercu-ia em { color: var(--gris); font-style: normal; font-size: 13px; }
.apercu-signature { margin: 0; white-space: pre-line; color: var(--repere); border-left: 3px solid var(--repere-vif); padding-left: 10px; }
.apercu-signature.vide { color: var(--gris); border-left-color: var(--trait); font-style: italic; }
.menu-compte { margin-left: 6px; }
.menu-compte summary::marker { content: ""; }

/* Mon bureau : la signature de clip, en haut */
.carte-signature { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 16px 20px; margin-bottom: 14px; }
.icone-signature { width: 40px; height: 40px; border-radius: 12px; background: var(--repere-doux); position: relative; flex: none; }
.icone-signature::before { content: ""; position: absolute; left: 11px; top: 21px; width: 18px; height: 2px; background: var(--repere-vif); border-radius: 1px; }
.icone-signature::after { content: ""; position: absolute; left: 16px; top: 9px; width: 6px; height: 13px; border: 2px solid var(--repere-vif);
  border-radius: 1px 1px 3px 3px; transform: rotate(35deg); }
.signature-texte h2 { font-size: 17px; }
.signature-texte h2 span { font-weight: 400; color: var(--gris); font-size: 15px; }
.signature-texte .detail { margin: 3px 0 0; color: var(--gris); font-size: 14px; }
.signature-actuelle { margin: 8px 0 0; font-size: 14px; color: var(--repere); white-space: pre-line; border-left: 3px solid var(--repere-vif);
  padding-left: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .carte-signature { grid-template-columns: auto minmax(0, 1fr); }
  .carte-signature > .bouton { grid-column: 1 / -1; justify-self: start; } }
.modale .aide { color: var(--gris); font-size: 15px; margin: 0 0 16px; }

/* Clipen Studio : l'offre « on fait tout pour toi », en cartes sombres au-dessus des formules solo */
.studio { background: var(--encre); color: #fff; border-radius: 28px; padding: 34px 30px 26px; margin-bottom: 44px;
  position: relative; overflow: hidden; }
.studio::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(28, 60, 240, .45), transparent); }
.studio > * { position: relative; }
.studio-tete { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.studio-badge { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #fff;
  background: var(--repere-vif); border-radius: 999px; padding: 5px 12px; }
.studio-titre { font-size: clamp(26px, 3.2vw, 36px); color: #fff; margin: 14px 0 10px; }
.studio-intro { color: rgba(255, 255, 255, .72); font-size: 17px; margin: 0 auto; }
.studio-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.studio-carte { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--rayon-carte);
  padding: 24px 22px; display: flex; flex-direction: column; position: relative; }
.studio-carte.recommandee { background: rgba(28, 60, 240, .16); border-color: rgba(90, 120, 255, .7);
  box-shadow: 0 0 0 3px rgba(28, 60, 240, .25), 0 20px 50px rgba(28, 60, 240, .25); }
.studio-carte .etiquette { position: absolute; top: 18px; right: 18px; background: var(--repere-vif); color: #fff; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; padding: 4px 10px; }
.studio-carte h3, .studio-carte h4 { font: 500 21px/1.2 var(--police-titre); color: #fff; margin: 0; }
.studio-carte .pour { color: rgba(255, 255, 255, .65); margin: 6px 0 18px; font-size: 15px; min-height: 2.8em; }
.studio-carte .prix { font: 500 44px/1 var(--police-titre); letter-spacing: -.03em; margin: 0; color: #fff; }
.studio-carte .prix small { font: 400 15px var(--police-texte); letter-spacing: 0; color: rgba(255, 255, 255, .6); margin-left: 6px; }
.studio-carte ul { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 10px; font-size: 15.5px; color: rgba(255, 255, 255, .88); }
.studio-carte li { padding-left: 24px; position: relative; }
.studio-carte li::before { content: ""; position: absolute; left: 0; top: .25em; width: 15px; height: 15px; border-radius: 50%; background: var(--repere-vif); }
.studio-carte li::after { content: ""; position: absolute; left: 5px; top: calc(.25em + 4px); width: 5px; height: 3px;
  border-left: 1.8px solid #fff; border-bottom: 1.8px solid #fff; transform: rotate(-45deg); }
.studio-carte li b { color: #fff; font-weight: 600; }
.studio-carte .bouton { margin-top: auto; width: 100%; }
.studio .bouton:not(.principal) { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.studio .bouton:not(.principal):hover { background: rgba(255, 255, 255, .18); }
.studio .bouton.principal { background: #fff; color: var(--encre); }
.studio .bouton.principal:hover { background: #E8ECFF; }
.studio-devis { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap;
  border: 1px dashed rgba(255, 255, 255, .25); border-radius: 18px; padding: 16px 20px; }
.studio-devis strong { display: block; font-size: 17px; }
.studio-devis span { color: rgba(255, 255, 255, .7); font-size: 14.5px; }
@media (max-width: 900px) { .studio-grille { grid-template-columns: 1fr; } .studio { padding: 26px 16px 18px; border-radius: 22px; }
  .studio-carte .pour { min-height: 0; } }
/* Les formules solo, plus petites, sous Studio */
.solo-tete { text-align: center; margin: 0 auto 20px; max-width: 560px; }
.solo-tete h2, .solo-tete h3 { font-size: 24px; }
.solo-tete p { color: var(--gris); margin: 6px auto 0; }
.formules.compactes .formule ul { font-size: 15px; gap: 8px; margin: 18px 0 22px; }
.formules.compactes .formule h3 { font-size: 19px; }
.formules.compactes .prix-note { font-size: 13px; }
/* Page Studio */
.studio-etapes { list-style: none; counter-reset: etape; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.studio-etapes li { counter-increment: etape; background: var(--sourdine-2); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 18px 20px; }
.studio-etapes li::before { content: counter(etape); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--encre); color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.studio-etapes b { display: block; font-size: 17px; margin-bottom: 4px; }
.studio-etapes span { color: var(--gris); font-size: 15px; }
@media (max-width: 760px) { .studio-etapes { grid-template-columns: 1fr; } }
.formulaire-studio { max-width: 760px; margin: 0 auto; }
.formulaire-studio select { width: 100%; }
.studio-merci { max-width: 560px; text-align: center; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Page Abonnement : la formule actuelle sous le titre */
.titre-abonnement { flex-direction: column; align-items: flex-start; gap: 8px; }
.formule-actuelle { margin: 0; color: var(--gris); font-size: 16px; }
.formule-actuelle strong { color: var(--encre); }

/* Fenêtre de résiliation : la date de fin bien visible */
.modale-resiliation p { margin: 0 0 14px; }
.encadre-fin { background: var(--sourdine-2); border: 1px solid var(--trait); border-radius: 16px; padding: 16px 18px; margin: 4px 0 16px; }
.encadre-fin .lib { margin: 0; color: var(--gris); font-size: 14px; }
.encadre-fin .date-fin { margin: 4px 0 8px; font: 500 24px/1.2 var(--police-titre); color: var(--encre); }
.encadre-fin .detail { margin: 0; font-size: 14.5px; color: var(--gris); }
.modale-resiliation > .detail { font-size: 14.5px; color: var(--gris); }
.modale-resiliation .ligne-actions form { margin: 0; }

.etiquette-format { display: inline-block; background: var(--repere-doux); color: var(--repere); border-radius: 999px;
  padding: 0 9px; font-size: 13px; font-weight: 500; }

/* --- Planning : semaine du lundi au dimanche, de 8 h à 19 h par demi-heure --- */
.page-planning { --case-h: 34px; --contour-case: #C9CCD2; --hachure: #E4E6EA; --bleu-fonce: color-mix(in srgb, var(--repere) 72%, #000); padding-bottom: 56px; }
.planning-tete { display: flex; gap: 16px 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.planning-tete h1 { font-size: clamp(30px, 3.6vw, 40px); margin: 0; }
.planning-sous-titre { color: var(--gris); margin: 6px 0 0; font-size: 16px; max-width: 560px; }
.planning-semaines { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.planning-pilule { display: inline-flex; align-items: center; gap: 4px; background: var(--sourdine); padding: 5px; border-radius: 999px; }
.planning-fleche { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--surface);
  text-decoration: none; color: var(--encre); font-size: 20px; line-height: 1; box-shadow: 0 1px 2px rgba(10, 10, 12, .08); transition: transform .15s; }
.planning-fleche:hover { transform: scale(1.08); }
.planning-periode { font-weight: 600; font-size: 15px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.planning-aujourdhui { font-size: 14px; color: var(--sur-bouton); text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--repere); font-weight: 600; }

/* Comptes YouTube / TikTok */
.planning-comptes { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 22px; scroll-margin-top: 90px; }
.compte-reseau { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 16px; border-radius: 22px;
  background: var(--sourdine-2); border: 1px solid var(--trait); }
.compte-reseau.connecte { background: var(--surface); box-shadow: var(--ombre); border-color: transparent; }
.pastille-reseau { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #fff; font-size: 16px; }
.pastille-reseau img { display: block; width: 100%; height: 100%; object-fit: contain; }
.reseau-youtube { background: none; }
.reseau-tiktok { background: #000; overflow: hidden; }
.compte-texte { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.compte-texte strong { font-size: 16px; }
.compte-texte span { font-size: 14px; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-reseau.connecte .compte-texte span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--valide); margin-right: 6px; vertical-align: 1px; }
.compte-alerte { color: var(--rejete) !important; }
.compte-reseau form { margin: 0; }
.bouton-connecter { border: 0; border-radius: 999px; padding: 9px 18px; font: 600 14px/1 var(--police-texte); cursor: pointer;
  background: var(--repere); color: #fff; transition: transform .15s, background .15s; }
.bouton-connecter:hover:not(:disabled) { transform: translateY(-1px); background: var(--repere-vif); }
.bouton-connecter:disabled { opacity: .45; cursor: default; }
.bouton-doux { border: 0; border-radius: 999px; padding: 8px 14px; font: 500 13.5px/1 var(--police-texte); cursor: pointer; background: var(--sourdine); color: var(--encre); }
.bouton-doux:hover { background: var(--trait); }
.compte-visibilite { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--trait); }
.compte-visibilite label { font-size: 14px; color: var(--gris); }
.compte-visibilite select { border: 1px solid var(--trait); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 14px; background: var(--surface); color: var(--encre); }
.compte-visibilite select.a-choisir { border-color: var(--repere); box-shadow: 0 0 0 3px var(--repere-doux); }

/* Grille */
.planning-cadre { overflow-x: auto; border-radius: 28px; background: var(--sourdine-2); border: 1px solid var(--trait); padding: 10px 12px 12px 4px; }
.planning { width: 100%; min-width: 780px; border-collapse: separate; border-spacing: 5px 4px; table-layout: fixed; }
.planning th, .planning td { padding: 0; }
.planning thead th { padding: 2px 0 6px; text-align: center; font-weight: 600; }
.planning-coin, .planning-heure { width: 58px; }
.planning-jour { display: inline-flex; flex-direction: column; align-items: center; padding: 6px 14px; border-radius: 16px; line-height: 1.25; }
.planning-jour.actuel { background: var(--repere); color: #fff; box-shadow: 0 6px 16px -6px var(--repere); }
.planning-nom-jour { font-size: 14px; }
.planning-date { font-size: 12.5px; color: var(--gris); font-weight: 400; }
.planning-jour.actuel .planning-date { color: rgba(255, 255, 255, .85); }
.planning-heure { text-align: right; padding-right: 6px !important; }
.planning-heure span { font: 600 12px/1 var(--police-chiffres); color: var(--encre); }
.demi-heure .planning-heure span { color: var(--gris); font-weight: 400; font-size: 11.5px; }
.heure-pleine:not(:first-child) td, .heure-pleine:not(:first-child) th { padding-top: 6px; }

.planning-case { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: var(--case-h);
  border: 0; border-radius: 11px; padding: 0 8px; font: inherit; cursor: pointer; overflow: hidden;
  transition: transform .14s ease, background .14s, box-shadow .14s; }
.planning-case.libre { background: var(--surface); box-shadow: inset 0 0 0 1px var(--contour-case); }
.planning-case.libre::after { content: "+"; font-size: 19px; font-weight: 300; line-height: 1; color: var(--repere); opacity: 0; transform: scale(.6); transition: opacity .14s, transform .14s; }
.planning-case.libre:hover, .planning-case.libre:focus-visible { background: var(--repere-doux); box-shadow: inset 0 0 0 1.5px var(--repere); transform: scale(1.04); }
.planning-case.libre:hover::after, .planning-case.libre:focus-visible::after { opacity: 1; transform: scale(1); }
.planning-case.passee { cursor: default; background: repeating-linear-gradient(135deg, var(--hachure) 0 5px, var(--surface) 5px 10px);
  box-shadow: inset 0 0 0 1px var(--contour-case); }
span.planning-case.passee { pointer-events: none; }
.planning-case.pleine { justify-content: flex-start; background: linear-gradient(135deg, var(--repere), var(--repere-vif)); color: #fff;
  box-shadow: 0 6px 14px -8px var(--repere); }
.planning-case.pleine:hover { transform: scale(1.04); }
.planning-case.pleine.passee { background: repeating-linear-gradient(135deg, var(--hachure) 0 5px, var(--surface) 5px 10px); color: var(--encre);
  box-shadow: inset 0 0 0 1px var(--contour-case); justify-content: center; cursor: pointer; }
.planning-case.etat-erreur { background: var(--rejete-doux) !important; color: var(--rejete); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rejete) 35%, transparent); }
.case-titre { min-width: 0; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-reseaux { display: inline-flex; gap: 3px; flex: none; }
.case-reseaux i { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .9)); }
.case-poste { font-size: 13px; font-weight: 700; color: var(--bleu-fonce); letter-spacing: .01em; }
.case-echec { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
/* Logos officiels fournis par l'utilisateur (statique/reseaux/) */
.point-youtube, .point-tiktok { display: inline-block; flex: none; background: center / contain no-repeat; }
.point-youtube { width: 16px; height: 11px; background-image: url("reseaux/youtube.png"); }
.point-tiktok { width: 13px; height: 13px; border-radius: 3px; background-image: url("reseaux/tiktok.png"); }

.planning-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 14px 4px 0; font-size: 13.5px; color: var(--gris); }
.planning-legende li { display: inline-flex; align-items: center; gap: 7px; }
.leg { display: inline-block; width: 18px; height: 12px; border-radius: 4px; }
.leg-libre { background: var(--surface); box-shadow: inset 0 0 0 1px #C9CCD2; }
.leg-prog { background: var(--repere); }
.leg-prog-reseaux { display: inline-flex; align-items: center; gap: 3px; padding: 0 5px; height: 14px; border-radius: 4px; background: var(--repere); }
.leg-prog-reseaux { height: 18px; padding: 0 6px; }
.leg-passee { background: repeating-linear-gradient(135deg, #E4E6EA 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 1px #C9CCD2; }

/* Fenêtres : choisir un clip, détail d'une case */
.fenetre-planning { width: min(760px, calc(100vw - 24px)); max-height: min(86vh, 820px); border: 0; border-radius: 28px; padding: 0;
  background: var(--surface); color: var(--encre); box-shadow: 0 30px 80px -20px rgba(10, 10, 12, .45); overflow: hidden; }
.fenetre-planning[open] { display: flex; flex-direction: column; animation: fenetre-entree .2s ease-out; }
.fenetre-planning::backdrop { background: rgba(10, 12, 30, .38); backdrop-filter: blur(3px); }
@keyframes fenetre-entree { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.fenetre-petite { width: min(460px, calc(100vw - 24px)); }
.fenetre-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 10px; }
.fenetre-tete h2 { font-size: 22px; margin: 0; line-height: 1.25; }
.fenetre-sur-titre { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--repere); text-transform: uppercase; letter-spacing: .04em; }
.fenetre-fermer { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sourdine); font-size: 22px; line-height: 1; cursor: pointer; color: var(--encre); }
.fenetre-fermer:hover { background: var(--trait); }
.fenetre-reseaux { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 4px 24px 6px; font-size: 14px; color: var(--gris); }
.puce-reseau { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer;
  font: 600 14px/1 var(--police-texte); background: var(--sourdine); color: var(--encre); box-shadow: inset 0 0 0 1.5px transparent; transition: background .14s, box-shadow .14s; }
.puce-reseau[aria-pressed="true"] { background: var(--repere-doux); box-shadow: inset 0 0 0 1.5px var(--repere); color: var(--repere); }
.puce-reseau:disabled { opacity: .45; cursor: not-allowed; }
.fenetre-aide { margin: 0; padding: 4px 24px 10px; font-size: 14px; color: var(--gris); }
.fenetre-corps { overflow-y: auto; padding: 4px 24px 12px; flex: 1 1 auto; min-height: 120px; }
.fenetre-vide { color: var(--gris); text-align: center; padding: 30px 10px; text-wrap: balance; }
.fenetre-vide a { color: var(--repere); white-space: nowrap; }  /* « Mon bureau » jamais coupé en deux lignes */
.video-planning { margin-bottom: 18px; }
.video-planning-tete { display: flex; align-items: baseline; gap: 10px; margin: 6px 2px 10px; }
.video-planning-tete strong { font-size: 15.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-planning-tete small { flex: none; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--sourdine); color: var(--gris); }
.grille-clips-planning { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.clip-choix { display: flex; flex-direction: column; gap: 6px; text-align: left; border: 0; padding: 6px; border-radius: 18px; cursor: pointer;
  background: var(--sourdine-2); box-shadow: inset 0 0 0 1px var(--trait); font: inherit; color: var(--encre); transition: transform .14s, box-shadow .14s, background .14s; user-select: none; }
.clip-choix:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--repere), 0 10px 20px -14px var(--repere); }
.clip-choix[aria-pressed="true"] { background: var(--repere-doux); box-shadow: inset 0 0 0 2px var(--repere); }
.clip-choix .vignette-choix { aspect-ratio: 16 / 10; border-radius: 13px; background: var(--trait) center / cover no-repeat; position: relative; overflow: hidden; }
.clip-choix .vignette-choix img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-choix .duree-choix { position: absolute; right: 6px; bottom: 6px; font: 600 11px/1 var(--police-chiffres); color: #fff; background: rgba(0, 0, 0, .6); padding: 3px 6px; border-radius: 999px; }
.clip-choix .deja-choix { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 600; color: #fff; background: var(--repere); padding: 3px 7px; border-radius: 999px; }
.clip-choix .titre-choix { font-size: 13px; font-weight: 600; line-height: 1.3; margin: 0 4px 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fenetre-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px 20px; border-top: 1px solid var(--trait); }
.fenetre-message { margin: 0; font-size: 14px; color: var(--gris); min-height: 1em; }
.fenetre-message.erreur { color: var(--rejete); }
.detail-video { margin: 0; padding: 0 24px 8px; color: var(--gris); font-size: 14.5px; }
.detail-reseaux { list-style: none; margin: 0; padding: 4px 24px 16px; display: grid; gap: 8px; }
.detail-reseaux li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--sourdine-2); font-size: 14.5px; }
.detail-reseaux li i { margin-top: 6px; flex: none; }
.detail-reseaux small { display: block; color: var(--gris); font-size: 13px; }
.detail-reseaux .detail-erreur small { color: var(--rejete); }
.bouton-retirer { border: 0; border-radius: 999px; padding: 9px 16px; font: 600 14px/1 var(--police-texte); cursor: pointer; background: var(--rejete-doux); color: var(--rejete); }
.bouton-retirer:hover { background: color-mix(in srgb, var(--rejete) 18%, transparent); }
@media (max-width: 560px) {
  .fenetre-tete, .fenetre-reseaux, .fenetre-aide, .fenetre-corps, .fenetre-pied { padding-left: 16px; padding-right: 16px; }
  .grille-clips-planning { grid-template-columns: repeat(2, 1fr); }
  .fenetre-pied { flex-direction: column; align-items: stretch; }
}

/* Fenêtre du planning en étapes : réseau → clip → réglages TikTok */
.etape { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.etape[hidden] { display: none; }
.choix-reseaux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 6px 24px 22px; }
.carte-reseau { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px 22px; border: 0; border-radius: 22px;
  cursor: pointer; font: inherit; color: var(--encre); background: var(--sourdine-2); box-shadow: inset 0 0 0 1.5px var(--trait);
  transition: transform .15s, box-shadow .15s, background .15s; }
.carte-reseau img { height: 46px; width: auto; margin-bottom: 6px; }
.carte-reseau img.logo-tiktok { border-radius: 12px; }
.carte-reseau strong { font-size: 18px; }
.carte-reseau span { font-size: 13.5px; color: var(--gris); }
.carte-reseau:hover:not(:disabled) { transform: translateY(-3px); background: var(--repere-doux); box-shadow: inset 0 0 0 2px var(--repere), 0 14px 26px -16px var(--repere); }
.carte-reseau:disabled { cursor: not-allowed; opacity: .55; }
.carte-reseau-alerte { font-size: 12.5px; color: var(--rejete); text-align: center; }
.etape-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 24px 4px; }
.lien-retour { border: 0; background: none; padding: 6px 0; font: 600 14px/1 var(--police-texte); color: var(--repere); cursor: pointer; }
.lien-retour:hover { text-decoration: underline; }
.etape-reseau { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--sourdine); }
.video-planning-tete small { font-weight: 400; background: none; padding: 0; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grille-clips-planning.verticale { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.grille-clips-planning.verticale .vignette-choix { aspect-ratio: 9 / 14; }

.reglages-tiktok { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.tt-apercu { position: sticky; top: 0; }
.tt-apercu video { width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; display: block; object-fit: cover; }
.tt-champs { display: grid; gap: 16px; min-width: 0; }
.tt-champ { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tt-lib { font-size: 14px; font-weight: 600; padding: 0; }
.tt-champ textarea, .tt-champ select { width: 100%; box-sizing: border-box; border: 1px solid var(--contour-case, #C9CCD2); border-radius: 14px;
  padding: 10px 12px; font: inherit; font-size: 14.5px; background: var(--surface); color: var(--encre); resize: vertical; }
.tt-champ select { border-radius: 999px; }
.tt-champ textarea:focus, .tt-champ select:focus { outline: 2px solid var(--repere-vif); outline-offset: 1px; }
.tt-compteur { justify-self: end; font-size: 12px; color: var(--gris); }
.tt-interactions { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 18px; }
.tt-interactions legend { grid-column: 1 / -1; margin-bottom: 6px; }
.tt-case { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; cursor: pointer; }
.tt-case input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--repere); flex: none; }
.tt-case small, .tt-interrupteur small { display: block; color: var(--gris); font-size: 12.5px; font-weight: 400; }
.tt-note { margin: 0; font-size: 12.5px; color: var(--gris); }
.tt-interactions .tt-note { grid-column: 1 / -1; }
.tt-commercial { padding: 12px 14px; border-radius: 16px; background: var(--sourdine-2); box-shadow: inset 0 0 0 1px var(--trait); }
.tt-interrupteur { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14.5px; }
.tt-interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tt-glissiere { flex: none; position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--trait); transition: background .15s; margin-top: 1px; }
.tt-glissiere::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.tt-interrupteur input:checked + .tt-glissiere { background: var(--repere); }
.tt-interrupteur input:checked + .tt-glissiere::after { transform: translateX(16px); }
.tt-interrupteur input:focus-visible + .tt-glissiere { outline: 2px solid var(--repere-vif); outline-offset: 2px; }
.tt-commercial-choix { display: grid; gap: 10px; margin: 12px 0 0 50px; }
.tt-commercial-choix[hidden] { display: none; }
.tt-consentement { margin: 0; padding: 8px 24px 0; font-size: 13px; color: var(--gris); }
.tt-consentement a { color: var(--repere); }
.tt-traitement { padding: 2px 24px 4px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) {
  .choix-reseaux { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .etape-tete, .tt-consentement, .tt-traitement { padding-left: 16px; padding-right: 16px; }
  .reglages-tiktok { grid-template-columns: 1fr; }
  .tt-apercu { position: static; max-width: 180px; margin: 0 auto; }
  .tt-interactions { grid-template-columns: 1fr; }
}
/* Réglages TikTok : toute l'étape défile (sur téléphone, l'aperçu puis les champs) ; étape 1 sans pied vide */
.etape[data-etape="tiktok"] { overflow-y: auto; }
.etape[data-etape="tiktok"] .fenetre-corps { overflow: visible; flex: none; }
.fenetre-planning.sans-pied .fenetre-pied { display: none; }
@media (max-width: 560px) { .tt-apercu { max-width: 140px; } }

/* Planning réservé aux formules payantes : invitation à changer de formule */
.planning-verrou { position: relative; overflow: hidden; text-align: center; max-width: 720px; margin: 10px auto 60px; padding: 44px 28px 0;
  border-radius: 32px; background: linear-gradient(180deg, var(--repere-doux), var(--sourdine-2) 60%); border: 1px solid var(--trait); }
.verrou-logos { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 18px; }
.verrou-logos img { height: 44px; width: auto; }
.verrou-logos img.logo-tiktok { border-radius: 12px; }
.planning-verrou h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; }
.planning-verrou p { color: var(--gris); margin: 0 auto 12px; max-width: 520px; }
.planning-verrou .verrou-formules { color: var(--encre); }
.planning-verrou .bouton { margin: 8px 0 30px; }
.verrou-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 0 -8px; padding: 0 8px 18px;
  mask-image: linear-gradient(180deg, #000 10%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 95%); }
.verrou-grille span { height: 30px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px #C9CCD2; }
.verrou-grille span.pleine { background: var(--repere); box-shadow: none; }

/* Bandeau des cookies : carte arrondie en bas à gauche (en bas sur téléphone) */
.bandeau-cookies { position: fixed; left: 20px; bottom: 20px; z-index: 50; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 40px);
  overflow-y: auto; box-sizing: border-box; padding: 22px 22px 18px; border-radius: 24px; background: var(--surface); color: var(--encre);
  box-shadow: 0 24px 60px -18px rgba(10, 12, 30, .4), 0 0 0 1px var(--trait); animation: cookies-entree .25s ease-out; }
.bandeau-cookies[hidden] { display: none; }
@keyframes cookies-entree { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bandeau-cookies h2 { font-size: 18px; margin: 0 0 8px; }
.bandeau-cookies p { font-size: 14.5px; line-height: 1.5; color: var(--gris); margin: 0 0 16px; }
.bandeau-cookies p a { color: var(--repere); }
.cookies-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookies-bouton { border: 0; border-radius: 999px; padding: 12px 14px; font: 600 14.5px/1.1 var(--police-texte); cursor: pointer;
  background: var(--bouton); color: var(--sur-bouton); transition: background .15s, transform .15s; }
.cookies-bouton:hover { background: var(--bouton-survol); transform: translateY(-1px); }
.cookies-lien { display: block; margin: 12px auto 0; border: 0; background: none; padding: 4px; font: 600 14px/1 var(--police-texte);
  color: var(--repere); cursor: pointer; }
.cookies-lien:hover { text-decoration: underline; }
.cookies-categories { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.cookies-categories li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 14px;
  border-radius: 16px; background: var(--sourdine-2); box-shadow: inset 0 0 0 1px var(--trait); }
.cookies-categories strong { font-size: 14.5px; }
.cookies-categories small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--gris); margin-top: 3px; }
.cookies-toujours { flex: none; font-size: 12px; font-weight: 600; color: var(--valide); padding-top: 2px; }
.cookies-interrupteur { flex: none; position: relative; cursor: pointer; }
.cookies-interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookies-interrupteur span[aria-hidden] { display: block; width: 40px; height: 23px; border-radius: 999px; background: #C9CCD2; position: relative; transition: background .15s; }
.cookies-interrupteur span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.cookies-interrupteur input:checked + span { background: var(--repere); }
.cookies-interrupteur input:checked + span::after { transform: translateX(17px); }
.cookies-interrupteur input:focus-visible + span { outline: 2px solid var(--repere-vif); outline-offset: 2px; }
.pied-lien { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; align-self: flex-start; }
.pied-lien:hover { color: var(--encre); }
.tableau-cookies { overflow-x: auto; margin: 0 0 16px; }
.tableau-cookies table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau-cookies th, .tableau-cookies td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau-cookies th { font-size: 13.5px; color: var(--gris); font-weight: 600; }
@media (max-width: 560px) {
  .bandeau-cookies { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 16px 14px; }
}
