/* Style commun à toutes les pages de Semence */
@font-face { font-family: "Montserrat ExtraBold"; src: url("/api/police/Montserrat-ExtraBold.ttf"); }
@font-face { font-family: "Montserrat Black"; src: url("/api/police/Montserrat-Black.ttf"); }

:root {
  --fond: #f4f2ec; --fond-2: #ebe8df; --carte: #ffffff; --carte-2: #faf9f5;
  --texte: #16201b; --doux: #66706a; --ligne: #e2dfd5;
  --accent: #1f8f57; --accent-2: #5fcf8a; --accent-fond: #e3f4EA; --accent-texte: #ffffff;
  --degrade: linear-gradient(135deg, #1f8f57 0%, #3fbf7a 100%);
  --alerte: #b3261e; --alerte-fond: #fbe9e7; --attente: #8a6d1d; --attente-fond: #fbf3dc;
  --rayon: 18px; --rayon-s: 12px;
  --ombre: 0 1px 2px rgba(20,30,25,.05), 0 8px 28px rgba(20,30,25,.06);
  --halo: radial-gradient(900px 420px at 12% -10%, rgba(63,191,122,.16), transparent 60%),
          radial-gradient(700px 380px at 95% 0%, rgba(80,140,255,.10), transparent 60%);
  --titre: "Montserrat ExtraBold", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0d1210; --fond-2: #131a17; --carte: #151c19; --carte-2: #19211d;
    --texte: #eaf0ec; --doux: #93a09a; --ligne: #26302b;
    --accent: #3fd17f; --accent-2: #8af0b4; --accent-fond: rgba(63,209,127,.12); --accent-texte: #06150d;
    --degrade: linear-gradient(135deg, #2fbf70 0%, #7ceaa6 100%);
    --alerte: #ff8d82; --alerte-fond: rgba(255,120,108,.12); --attente: #e8c872; --attente-fond: rgba(232,200,114,.12);
    --ombre: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 40px rgba(0,0,0,.35);
    --halo: radial-gradient(900px 420px at 12% -10%, rgba(63,209,127,.14), transparent 60%),
            radial-gradient(700px 380px at 95% 0%, rgba(90,140,255,.12), transparent 60%);
  }
}
* { box-sizing: border-box; }
html { background: var(--fond); }
body { margin: 0; color: var(--texte); background: var(--halo), var(--fond); background-repeat: no-repeat; min-height: 100vh;
       font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--accent-texte); }

/* ----- En-tête ----- */
header { max-width: 1020px; margin: 0 auto; padding: 36px 20px 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
header h1 { margin: 0; font: 26px/1 var(--titre); letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
header h1::before { content: ""; width: 40px; height: 40px; border-radius: 11px; background: url(/statique/marque/icone-couleur.svg) center/cover;
                    box-shadow: 0 6px 18px rgba(47,191,112,.35); flex: none; }
header p { margin: 0; color: var(--doux); flex-basis: 100%; font-size: 15px; }
main { max-width: 1020px; margin: 0 auto; padding: 8px 20px 64px; display: grid; gap: 22px; }

.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 26px; box-shadow: var(--ombre); }
h2 { margin: 0 0 8px; font: 20px/1.2 var(--titre); letter-spacing: -.01em; }

/* ----- Formulaire ----- */
.partie { padding: 22px 0 6px; border-top: 1px solid var(--ligne); margin-top: 20px; }
.partie:first-of-type { border-top: 0; margin-top: 4px; padding-top: 8px; }
.partie h3 { margin: 0 0 14px; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.numero { width: 28px; height: 28px; border-radius: 9px; background: var(--degrade); color: var(--accent-texte);
          display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; box-shadow: 0 4px 12px rgba(47,191,112,.3); }
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
input[type=text], input[type=url], input[type=number], select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ligne); border-radius: var(--rayon-s);
  background: var(--carte-2); color: var(--texte); font: inherit; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--ligne)); }
input:focus, select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.onglets { display: flex; gap: 4px; background: var(--fond-2); padding: 4px; border-radius: 14px; width: fit-content; margin-bottom: 16px; }
.onglets button { border: 0; background: transparent; color: var(--doux); padding: 9px 18px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; transition: .15s; }
.onglets button:hover { color: var(--texte); }
.onglets button.actif { background: var(--carte); color: var(--texte); box-shadow: var(--ombre); }
.depot { border: 2px dashed var(--ligne); border-radius: var(--rayon); padding: 34px 16px; text-align: center; color: var(--doux); cursor: pointer;
         transition: .18s; background: var(--carte-2); }
.depot.survol, .depot:hover { border-color: var(--accent); background: var(--accent-fond); color: var(--texte); transform: translateY(-1px); }
.depot strong { color: var(--texte); }
.depot.occupe { cursor: progress; border-color: var(--accent); background: var(--accent-fond); }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.choix { display: flex; flex-wrap: wrap; gap: 7px; }
.choix button { border: 1px solid var(--ligne); background: var(--carte-2); color: var(--texte); padding: 8px 15px;
                border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; }
.choix button:hover { border-color: var(--accent); }
.choix button.actif { background: var(--degrade); border-color: transparent; color: var(--accent-texte); box-shadow: 0 4px 12px rgba(47,191,112,.28); }
.choix input[type=number] { width: 88px; padding: 7px 12px; border-radius: 99px; }
.interrupteur { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-weight: 600; font-size: 14px; cursor: pointer; margin: 0; }
.interrupteur input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.interrupteur.petit { font-weight: 500; }
details { margin-top: 14px; }
summary { cursor: pointer; color: var(--doux); font-size: 14px; font-weight: 600; }
summary:hover { color: var(--texte); }
.aide { color: var(--doux); font-size: 13px; margin: 6px 0 0; }

/* ----- Boutons ----- */
.bouton { border: 0; background: var(--degrade); color: var(--accent-texte); padding: 14px 26px; border-radius: 13px; font: inherit; font-weight: 700;
          cursor: pointer; transition: transform .15s, box-shadow .15s, filter .15s; box-shadow: 0 8px 22px rgba(47,191,112,.28); }
.bouton:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 28px rgba(47,191,112,.36); }
.bouton:active:not(:disabled) { transform: translateY(0); }
.bouton:disabled { opacity: .5; cursor: wait; box-shadow: none; }
.bouton.secondaire { background: var(--carte-2); color: var(--texte); border: 1px solid var(--ligne); font-weight: 600; padding: 9px 15px; box-shadow: none; }
.bouton.secondaire:hover:not(:disabled) { border-color: var(--accent); box-shadow: none; }
.bouton.danger { background: transparent; color: var(--alerte); border: 1px solid color-mix(in srgb, var(--alerte) 55%, transparent); font-weight: 600; padding: 9px 15px; box-shadow: none; }
.bouton.danger:hover:not(:disabled) { background: var(--alerte-fond); box-shadow: none; }
.bouton.discret { background: transparent; color: var(--doux); font-weight: 600; padding: 9px 11px; box-shadow: none; }
.bouton.discret:hover:not(:disabled) { color: var(--texte); background: var(--fond-2); box-shadow: none; transform: none; }
a.bouton { text-decoration: none; display: inline-block; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
#lancer { padding: 16px 34px; font-size: 16px; }

.message { padding: 12px 16px; border-radius: var(--rayon-s); font-size: 14px; margin-top: 12px; white-space: pre-line; background: var(--fond-2); }
.message.erreur { background: var(--alerte-fond); color: var(--alerte); }
.barre { height: 8px; background: var(--fond-2); border-radius: 99px; overflow: hidden; }
.barre > div { height: 100%; background: var(--degrade); border-radius: 99px; transition: width .6s cubic-bezier(.4,0,.2,1); }

/* ----- Logo ----- */
.logo-options { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.logo-apercu { width: 110px; height: 110px; border-radius: var(--rayon-s); display: grid; place-items: center; overflow: hidden; flex: none;
               background: repeating-conic-gradient(#d9d6ce 0% 25%, #f1efe9 0% 50%) 50% / 16px 16px; color: #6b716d; font-size: 13px; }
.logo-apercu img { max-width: 92%; max-height: 92%; }
.logo-reglages { display: grid; gap: 10px; min-width: 220px; flex: 1; }
.logo-reglages .bouton { justify-self: start; }

/* ----- Liste des projets ----- */
.entete-liste { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.projet { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px; margin-top: 14px; background: var(--carte-2); transition: border-color .2s, box-shadow .2s; }
.projet.en_cours { border-color: color-mix(in srgb, var(--accent) 55%, var(--ligne)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); background: var(--carte); }
.entete { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.entete h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.meta { color: var(--doux); font-size: 13px; margin-top: 3px; }
.pastille { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.pastille.en_cours { background: var(--accent-fond); color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.pastille.en_cours::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pouls 1.4s ease-in-out infinite; }
.pastille.termine { background: var(--degrade); color: var(--accent-texte); }
.pastille.erreur { background: var(--alerte-fond); color: var(--alerte); }
.pastille.interrompu, .pastille.incomplet { background: var(--attente-fond); color: var(--attente); }
.pastille.en_attente { background: var(--fond-2); color: var(--doux); border: 1px solid var(--ligne); }
@keyframes pouls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* ----- Suivi d'un traitement ----- */
.suivi { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; align-items: center; margin: 18px 0 6px; }
@media (max-width: 640px) { .suivi { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.anneau { position: relative; width: 132px; height: 132px; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau circle { fill: none; stroke-width: 9; }
.anneau .fond { stroke: var(--fond-2); }
.anneau .valeur { stroke: url(#degrade-anneau); stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1); }
.anneau .centre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.anneau .centre b { font: 30px/1 var(--titre); letter-spacing: -.02em; }
.anneau .centre small { color: var(--doux); font-size: 11px; margin-top: 3px; }
.suivi .etape-actuelle { font: 17px/1.3 var(--titre); letter-spacing: -.01em; margin: 0; }
.suivi .detail { font-size: 14px; margin: 4px 0 0; color: var(--doux); }
.chiffres { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
@media (max-width: 640px) { .chiffres { justify-content: center; } }
.chiffre { background: var(--fond-2); border-radius: 11px; padding: 8px 14px; min-width: 104px; }
.chiffre small { display: block; color: var(--doux); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.chiffre b { font-size: 16px; font-variant-numeric: tabular-nums; }
.chiffre.fort b { color: var(--accent); }

/* Étapes : une frise avec une pastille par étape */
.frise-etapes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 22px 0 6px; padding: 0; list-style: none; }
@media (max-width: 720px) { .frise-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; } }
.frise-etapes li { position: relative; text-align: center; font-size: 12px; color: var(--doux); padding: 0 4px; }
.frise-etapes li::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--ligne); z-index: 0; border-radius: 3px; }
.frise-etapes li:first-child::before { display: none; }
@media (max-width: 720px) { .frise-etapes li:nth-child(3n+1)::before { display: none; } }
.frise-etapes li.faite::before, .frise-etapes li.reutilisee::before, .frise-etapes li.en_cours::before { background: var(--accent); }
.frise-etapes .rond { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 7px; display: grid; place-items: center;
                      background: var(--carte); border: 2px solid var(--ligne); font-size: 16px; transition: .3s; }
.frise-etapes li.faite .rond, .frise-etapes li.reutilisee .rond { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); font-weight: 800; font-size: 15px; }
.frise-etapes li.en_cours .rond { border-color: var(--accent); background: var(--accent-fond); animation: halo 1.8s ease-out infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.frise-etapes li.en_cours { color: var(--texte); font-weight: 700; }
.frise-etapes li.faite, .frise-etapes li.reutilisee { color: var(--texte); }
.frise-etapes .libelle { display: block; line-height: 1.25; }
.frise-etapes .duree { display: block; font-size: 11px; color: var(--doux); margin-top: 2px; font-variant-numeric: tabular-nums; }

.fil { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--rayon-s); background: var(--fond-2); font: 12.5px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--doux); }
.fil div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil div:last-child { color: var(--texte); }
.fil span { opacity: .6; margin-right: 8px; }
.detail { font-size: 14px; margin: 8px 0 0; color: var(--doux); }
pre.journal { background: var(--fond-2); border-radius: var(--rayon-s); padding: 12px; font-size: 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.vide { color: var(--doux); text-align: center; padding: 26px; }
.cache { display: none !important; }

/* ----- Page des résultats ----- */
.retour { color: var(--doux); text-decoration: none; font-weight: 600; font-size: 14px; }
.retour:hover { color: var(--texte); }
.lien-admin { margin-left: auto; color: var(--doux); text-decoration: none; font-weight: 600; font-size: 14px;
              padding: 8px 14px; border: 1px solid var(--ligne); border-radius: 99px; background: var(--carte); transition: .15s; }
.lien-admin:hover { color: var(--texte); border-color: var(--accent); }
.bandeau { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.bandeau h2 { font-size: 24px; margin: 4px 0 2px; }
.grille-clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.clip { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre);
        overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.clip:hover { transform: translateY(-3px); }
.clip video { width: 100%; aspect-ratio: 9 / 16; background: #000; display: block; object-fit: contain; }
.clip .corps { padding: 16px 18px 18px; display: grid; gap: 11px; }
.clip .haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rang { font-weight: 800; color: var(--doux); font-size: 14px; }
.score { font-weight: 800; padding: 4px 12px; border-radius: 99px; background: var(--degrade); color: var(--accent-texte); font-size: 14px; }
.clip h4 { margin: 0; font-size: 16px; line-height: 1.35; }
.publication { background: var(--fond-2); border-radius: var(--rayon-s); padding: 11px 13px; font-size: 14px; white-space: pre-line; }
.hashtags { color: var(--accent); font-weight: 600; }
.copier { border: 1px solid var(--ligne); background: var(--carte-2); color: var(--texte); border-radius: 9px;
          padding: 7px 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.copier:hover { border-color: var(--accent); }
.copier.ok { border-color: var(--accent); color: var(--accent); background: var(--accent-fond); }
.alerte { background: var(--alerte-fond); color: var(--alerte); border-radius: var(--rayon-s); padding: 9px 13px; font-size: 13px; }
.notes { display: grid; gap: 6px; margin-top: 8px; }
.note { display: grid; grid-template-columns: 1fr 120px 30px; gap: 8px; align-items: center; font-size: 13px; }
.note .barre { height: 6px; }
.infos-clip { font-size: 13px; color: var(--doux); display: grid; gap: 4px; margin-top: 8px; }
.infos-clip b { color: var(--texte); font-weight: 600; }
.boutons-clip { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----- Éditeur ----- */
.editeur { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .editeur { grid-template-columns: 1fr; } }
.lecteur { position: relative; background: #000; border-radius: var(--rayon-s); overflow: hidden; }
.lecteur video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }
.apercu-st { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; pointer-events: none;
             font: 900 clamp(16px, 3.2vw, 28px)/1.2 "Montserrat ExtraBold", "Arial Black", system-ui, sans-serif;
             color: #fff; text-transform: uppercase; letter-spacing: .02em;
             text-shadow: 0 0 4px #000, 0 0 4px #000, 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }
.apercu-st .actif { color: #22ff22; }
.reglage-temps { display: grid; gap: 8px; }
.ligne-temps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ligne-temps .valeur { font: 700 18px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; min-width: 92px; }
.petit-bouton { border: 1px solid var(--ligne); background: var(--carte-2); color: var(--texte); border-radius: 9px;
                padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.petit-bouton:hover { border-color: var(--accent); }
.frise { position: relative; height: 38px; background: var(--fond-2); border-radius: 10px; cursor: pointer; overflow: hidden; }
.frise .zone { position: absolute; top: 0; bottom: 0; background: var(--accent-fond); border-left: 3px solid var(--accent); border-right: 3px solid var(--accent); }
.frise .tete { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--alerte); }
textarea { width: 100%; min-height: 200px; padding: 14px; border: 1px solid var(--ligne); border-radius: var(--rayon-s);
           background: var(--carte-2); color: var(--texte); font: 15px/1.6 system-ui, sans-serif; resize: vertical; }
textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea.court { min-height: 90px; }
.etat { padding: 11px 15px; border-radius: var(--rayon-s); font-size: 14px; background: var(--accent-fond); color: var(--accent); font-weight: 600; }
.etat.erreur { background: var(--alerte-fond); color: var(--alerte); }
.clip-actuel video { width: 100%; max-width: 240px; aspect-ratio: 9 / 16; background: #000; border-radius: var(--rayon-s); display: block; }

/* ----- Habillage ----- */
.habillage { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 26px; align-items: start; }
@media (max-width: 720px) { .habillage { grid-template-columns: 1fr; } .apercu-colonne { justify-self: center; } }
.ligne-modele { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.pastille-couleur { width: 30px; height: 30px; padding: 0 !important; border-radius: 50% !important; border: 2px solid var(--ligne) !important; }
.pastille-couleur.actif { outline: 3px solid var(--texte); outline-offset: 2px; }
input[type=color] { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--ligne); border-radius: 9px; background: var(--carte-2); cursor: pointer; }
.apercu-colonne { position: sticky; top: 16px; }
.apercu-cadre { position: relative; width: 210px; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; border: 5px solid #0b0f0d;
                background: radial-gradient(circle at 50% 30%, #6b7fb8 0, #34407a 35%, #151a33 100%); box-shadow: 0 18px 44px rgba(0,0,0,.28); }
.apercu-cadre::before { content: ""; position: absolute; left: 50%; top: 18%; width: 46%; aspect-ratio: 1; transform: translateX(-50%);
                        border-radius: 50%; background: rgba(255,255,255,.12); }
.apercu-cadre::after { content: ""; position: absolute; left: 50%; top: 40%; width: 80%; height: 55%; transform: translateX(-50%);
                       border-radius: 45% 45% 0 0; background: rgba(255,255,255,.10); }
.apercu-titre { position: absolute; z-index: 2; top: 6%; left: 50%; transform: translateX(-50%); max-width: 88%; white-space: nowrap;
                overflow: hidden; background: #fff; color: #000; text-align: center;
                font: 10px/1.25 "Montserrat ExtraBold", sans-serif; padding: 4px 5px; text-transform: uppercase; }
.apercu-mots { position: absolute; z-index: 2; left: 4%; right: 4%; text-align: center; line-height: 1.15; }
.apercu-mots span { display: inline-block; margin: 0 .12em; -webkit-text-stroke: 0; paint-order: stroke fill;
                    text-shadow: 0 0 2px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.apercu-logo { position: absolute; z-index: 1; left: 50%; transform: translateX(-50%); }
/* 8 positions en pointillés sur l'aperçu : on touche un point, il se remplit et l'aperçu suit */
.points-position { position: absolute; z-index: 3; top: 0; bottom: 0; width: 26px; }
.points-position.gauche { left: 4px; } .points-position.droite { right: 4px; }
.points-position .point { position: absolute; left: 3px; width: 20px; height: 20px; margin-top: -10px; padding: 0; border-radius: 50%; cursor: pointer;
                          border: 2px dashed rgba(255,255,255,.85); background: rgba(0,0,0,.25); transition: transform .15s, background .15s; }
.points-position .point:hover { transform: scale(1.18); }
.points-position.gauche .point.plein { border-style: solid; background: #ffffff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.points-position.droite .point.plein { border-style: solid; background: var(--accent-2); border-color: #fff; box-shadow: 0 0 0 3px rgba(95,207,138,.35); }
.legende-points { display: flex; justify-content: center; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--doux); }
.legende-points span { display: inline-flex; align-items: center; gap: 5px; }
.legende-points i { width: 10px; height: 10px; border-radius: 50%; }
.legende-points i.titre { background: #fff; border: 1px solid var(--ligne); } .legende-points i.st { background: var(--accent-2); }

/* ----- Accueil : atouts ----- */
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.atout { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 16px 18px; box-shadow: var(--ombre); }
.atout b { display: block; font-size: 14px; margin: 6px 0 2px; }
.atout span { font-size: 13px; color: var(--doux); line-height: 1.45; display: block; }
.atout i { font-style: normal; font-size: 20px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ----- Éditeur : passage à retranscrire, finitions, raccourcis ----- */
.frise .passage { position: absolute; top: 6px; bottom: 6px; background: rgba(255, 196, 0, .35); border: 2px solid #e0a800; border-radius: 6px; pointer-events: none; }
.sous-partie { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.sous-partie h3 { margin: 0 0 6px; font-size: 15px; }
.regen-partie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.raccourcis kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--ligne); border-bottom-width: 2px; border-radius: 5px; background: var(--carte-2); font: 12px/1.4 system-ui, sans-serif; }

/* ----- Compte connecté ----- */
.nav-compte .pastille-credits { text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 99px; min-height: 40px; }
.nav-compte .pastille-credits { background: var(--accent-fond); color: var(--accent); border-color: transparent; font-variant-numeric: tabular-nums; }
.nav-compte .pastille-credits.bas { background: var(--attente-fond); color: var(--attente); }
.bandeau-incarnation { position: sticky; top: 0; z-index: 50; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 10px 16px; background: var(--attente-fond); color: var(--attente); font-size: 14px; border-bottom: 1px solid color-mix(in srgb, var(--attente) 35%, transparent);
  backdrop-filter: blur(8px); }
.bandeau-incarnation button { font: inherit; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 99px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
input[type=email], input[type=password], input[type=tel], input[type=date], input[type=search], textarea.simple {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ligne); border-radius: var(--rayon-s); background: var(--carte-2); color: var(--texte); font: inherit; }
input[type=email]:focus, input[type=password]:focus, input[type=tel]:focus, input[type=date]:focus, input[type=search]:focus, textarea.simple:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--fond-2); color: var(--doux); white-space: nowrap; }
.badge.vert { background: var(--accent-fond); color: var(--accent); }
.badge.orange { background: var(--attente-fond); color: var(--attente); }
.badge.rouge { background: var(--alerte-fond); color: var(--alerte); }

.squelette { border-radius: var(--rayon); background: var(--fond-2); }

/* ----- Pages larges (atelier, fiche projet) : on profite de tout l'écran d'un ordinateur ----- */
.large header, .large main { max-width: 1480px; }
@media (min-width: 1180px) {
  .large header, .large main { padding-left: 32px; padding-right: 32px; }
  .atelier { grid-template-columns: minmax(0, 1.5fr) minmax(380px, 1fr); align-items: start; }
  .atelier .liste-projets { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
  .atelier .habillage { grid-template-columns: minmax(0, 1fr) 250px; }
  .atelier .apercu-cadre { width: 250px; }
}
@media (max-width: 560px) {
  header { padding: 20px 16px 8px; }
  main { padding: 6px 12px 48px; gap: 16px; }
  .carte { padding: 18px 16px; border-radius: 16px; }
  .choix button { min-height: 44px; padding: 8px 14px; }
  .onglets { width: 100%; } .onglets button { flex: 1; min-height: 44px; }
  .atelier .projet { padding: 16px; }
  .atelier .projet .actions .bouton { flex: 1 1 auto; text-align: center; min-height: 44px; }
}
/* Bouton « Créer les clips » toujours à portée de pouce sur téléphone */
@media (max-width: 760px) {
  .barre-lancer { position: sticky; bottom: 0; z-index: 20; margin: 18px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
                  background: color-mix(in srgb, var(--carte) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--ligne); }
  .barre-lancer #lancer { flex: 1; }
}

/* ----- Dispositions du titre et des sous-titres ----- */
.bloc-disposition { margin-top: 16px; }
.dispositions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 340px) { .dispositions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .apercu-colonne { order: -1; position: static; } .apercu-colonne .apercu-cadre { width: 180px; } .disposition { padding: 8px 4px; } .disposition small { display: none; } }
.disposition { display: grid; justify-items: center; gap: 2px; padding: 10px 6px 9px; border: 1.5px solid var(--ligne); border-radius: 14px;
               background: var(--carte-2); color: var(--texte); font: inherit; cursor: pointer; touch-action: manipulation; transition: border-color .15s, background .15s, transform .12s; }
.disposition:hover { border-color: var(--accent); }
.disposition:active { transform: scale(.97); }
.disposition.actif { border-color: var(--accent); background: var(--accent-fond); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.disposition b { font-size: 13px; margin-top: 6px; }
.disposition small { font-size: 11.5px; color: var(--doux); }
.mini-ecran { position: relative; width: 38px; aspect-ratio: 9 / 16; border-radius: 7px; background: linear-gradient(160deg, #3c4a7d, #151a33); overflow: hidden; }
.mini-titre { position: absolute; left: 18%; right: 18%; height: 4px; border-radius: 2px; background: #fff; }
.mini-st { position: absolute; left: 12%; right: 12%; height: 6px; border-radius: 2px; background: var(--accent-2); transform: translateY(50%); }
/* Textes de l'aperçu déplaçables */
#apercu-titre, #apercu-mots { cursor: grab; touch-action: none; }
#apercu-titre.glisse, #apercu-mots.glisse { cursor: grabbing; outline: 2px dashed rgba(255,255,255,.9); outline-offset: 3px; border-radius: 4px; }
.apercu-mots:hover, .apercu-titre:hover { outline: 1px dashed rgba(255,255,255,.6); outline-offset: 3px; }
.zone-cachee { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 14%; pointer-events: none;
               background: repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 6px, transparent 6px 12px); border-top: 1px dashed rgba(255,255,255,.35); }

/* Petite confirmation en bas de l'écran (copie, partage…) */
.notification-clip { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 100; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
                     background: var(--texte); color: var(--fond); padding: 12px 20px; border-radius: 99px; font-weight: 600; font-size: 14px; box-shadow: var(--ombre);
                     transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 32px); text-align: center; }
.notification-clip.visible { opacity: 1; transform: translate(-50%, 0); }

/* ----- Barre du compte (toutes les pages) ----- */
main > *, .fiche-entete > *, .fiche-titre > * { min-width: 0; }
.nav-compte { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.nav-compte a, .nav-compte > button { min-height: 40px; display: inline-flex; align-items: center; }
.nav-compte .pastille-credits b { color: inherit; margin-right: 4px; font-variant-numeric: tabular-nums; }
.menu-compte { position: relative; }
.bouton-compte { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px 4px 4px; border: 1px solid var(--ligne); border-radius: 99px;
                 background: var(--carte); color: var(--texte); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bouton-compte:hover, .bouton-compte[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.bouton-compte .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--degrade); color: var(--accent-texte);
                         font: 800 13px/1 system-ui, sans-serif; letter-spacing: .02em; }
.bouton-compte .nom-compte { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texte); font-size: 14px; margin: 0; }
.bouton-compte svg { color: var(--doux); }
.liste-compte { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 250px; padding: 8px; display: grid; gap: 2px;
                background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.18);
                animation: apparait .16s cubic-bezier(.2,.8,.2,1); }
@keyframes apparait { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.liste-compte .qui { padding: 10px 12px 12px; border-bottom: 1px solid var(--ligne); margin-bottom: 4px; display: grid; gap: 2px; }
.liste-compte .qui small { color: var(--doux); font-size: 12.5px; overflow-wrap: anywhere; }
.nav-compte .liste-compte a, .nav-compte .liste-compte button { display: flex; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent;
                 color: var(--texte); font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.nav-compte .liste-compte a:hover, .nav-compte .liste-compte button:hover { background: var(--fond-2); }
.nav-compte .liste-compte .danger { color: var(--alerte); }
.nav-compte .lien-espace { color: var(--doux); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border: 1px solid var(--ligne);
                           border-radius: 99px; background: var(--carte); transition: .15s; }
.nav-compte .lien-espace:hover { color: var(--texte); border-color: var(--accent); }
@media (max-width: 720px) {
  header { flex-wrap: nowrap; gap: 10px; }
  header h1 { font-size: 21px; } header h1::before { width: 34px; height: 34px; border-radius: 10px; }
  header > p { display: none; }
  .nav-compte { margin-left: auto; gap: 6px; }
  .bouton-compte { padding-right: 6px; } .bouton-compte .nom-compte { display: none; }
  .nav-compte .lien-espace { display: none; }
  .nav-compte .pastille-credits { padding: 8px 11px; font-size: 13px; }
}
.retour-page { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--doux); text-decoration: none; font-weight: 600; font-size: 14px; }
.retour-page:hover { color: var(--texte); }

/* ----- Atelier : bascule « Nouveau projet / Mes projets » (téléphone, tablette) ----- */
.bascule-atelier { display: none; }
@media (max-width: 1179px) {
  .bascule-atelier { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--fond-2); border-radius: 14px; position: sticky; top: 8px; z-index: 25;
                     box-shadow: 0 6px 20px rgba(20,30,25,.08); }
  .bascule-atelier button { min-height: 44px; border: 0; border-radius: 11px; background: transparent; color: var(--doux); font: inherit; font-weight: 700; font-size: 15px;
                            cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; touch-action: manipulation; }
  .bascule-atelier button.actif { background: var(--carte); color: var(--texte); box-shadow: var(--ombre); }
  .atelier[data-vue="creation"] .liste-projets, .atelier[data-vue="projets"] .creation { display: none; }
}
.compteur-projets { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--fond-2); color: var(--doux); }
.bascule-atelier .compteur-projets { background: var(--carte); }
.compteur-projets.actif { background: var(--accent-fond); color: var(--accent); }
.titre-projet { color: inherit; text-decoration: none; } .titre-projet:hover { color: var(--accent); }
.projet .entete h3 { overflow-wrap: anywhere; }

/* Case à cocher avec texte (CGV…) */
label.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; line-height: 1.5; cursor: pointer; margin: 4px 0 2px; }
label.case input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
label.case a { color: var(--accent); }
/* Bandeau : adresse e-mail à confirmer */
.bandeau-verification { display: flex; gap: 10px 14px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px 16px; font-size: 14px;
                        background: var(--attente-fond); color: var(--attente); border-bottom: 1px solid color-mix(in srgb, var(--attente) 30%, transparent); }
.bandeau-verification button { font: inherit; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 99px; border: 1px solid currentColor;
                               background: transparent; color: inherit; cursor: pointer; min-height: 36px; }
.bandeau-ok { background: var(--accent-fond); color: var(--accent); border-bottom-color: color-mix(in srgb, var(--accent) 30%, transparent); }

/* Choix de la langue (menu du compte, page de connexion) */
.choix-langue { display: flex; gap: 4px; justify-content: center; padding: 8px 4px 2px; }
.liste-compte .choix-langue { border-top: 1px solid var(--ligne); margin-top: 4px; }
.choix-langue button { border: 1px solid var(--ligne); background: transparent; color: var(--doux); font: inherit; font-size: 13px; font-weight: 700;
                       padding: 6px 12px; border-radius: 99px; cursor: pointer; min-height: 34px; }
.nav-compte .liste-compte .choix-langue button { width: auto; min-height: 34px; padding: 6px 12px; display: inline-flex; }
.choix-langue button.actif { background: var(--accent-fond); color: var(--accent); border-color: transparent; }
