/* Un élément marqué « hidden » ne s'affiche jamais, même si une règle lui donne un affichage (display: grid…) : le bloc
   des précisions, vide et caché, restait visible comme une case lavande (test du 12/10/2026). */
[hidden] { display: none !important; }

@font-face { font-family: "Unbounded"; src: url("/polices/unbounded-latin.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
:root {
  --fond: #fdf6f1;
  --carte: #ffffff;
  --texte: #16133a;
  --muet: #6b6893;
  /* Couleurs du logo (docs/marque/logo-winavideo.png) : violet des lettres, magenta de leur fin (à peine foncé : texte
     blanc lisible), orange de la planète ; doré de l'anneau et corail pour le décor, jamais sous un texte blanc.
     Gilles, 14/10/2026 : « va plus vers les orange sur les boutons et fond ». Les dégradés vont du violet à l'orange
     (milieu lisible en blanc : contraste 6,2), les boutons du magenta à l'orange (milieu : 4,5). */
  --accent: #5212fd;
  --magenta: #c205ec;
  --accent-2: #f0531c;
  --or: #fed424;
  --corail: #fe433b;
  --ligne: #e6e3f3;
  --ok: #059669;
  --erreur: #dc2626;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--fond); color: var(--texte); line-height: 1.45; }
header { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; background: #fff; border-bottom: 1px solid var(--ligne); }
header .logo { display: inline-flex; align-items: center; gap: 8px; flex: none; text-decoration: none; color: var(--texte); }
header .logo img { display: block; height: 36px; width: auto; }
header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
header nav a { color: var(--muet); text-decoration: none; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { header { padding: 14px 16px; gap: 12px; } header .logo img { height: 30px; } }
main { max-width: 920px; margin: 0 auto; padding: 28px 20px 80px; }
h1 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 6px; }
.sous { color: var(--muet); margin: 0 0 26px; }
.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; padding: 22px 24px; margin-bottom: 18px; }
.carte h2 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.carte h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.carte p.aide { margin: 0 0 14px; color: var(--muet); font-size: 14px; }
.grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; }
.grille .large { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muet); margin-bottom: 4px; }
input[type="text"], input[type="url"], textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 10px; font: inherit; background: #fff; }
textarea { min-height: 72px; resize: vertical; }
input[type="color"] { width: 48px; height: 36px; border: 1px solid var(--ligne); border-radius: 8px; padding: 2px; background: #fff; }
.couleurs { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.couleurs div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label { cursor: pointer; padding: 8px 14px; border: 1px solid var(--ligne); border-radius: 999px; background: #fff; font-weight: 600; color: var(--texte); margin: 0; }
.choix input { display: none; }
.choix input:checked + span { color: var(--accent); }
.choix label:has(input:checked) { border-color: var(--accent); background: #f3eefe; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ligne); }
.depot { border: 2px dashed var(--ligne); border-radius: 12px; padding: 18px; text-align: center; color: var(--muet); cursor: pointer; }
.depot:hover { border-color: var(--accent); color: var(--accent); }
button, .bouton { display: inline-block; padding: 12px 22px; border: 0; border-radius: 12px; background: linear-gradient(90deg, var(--magenta), var(--accent-2)); color: #fff; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
button.second, .bouton.second { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
button:disabled { opacity: 0.5; cursor: wait; }
.barre { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.erreur { color: var(--erreur); font-weight: 600; }
.etapes { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.etape { padding: 6px 12px; border-radius: 999px; background: #eeebf8; color: var(--muet); font-size: 13px; font-weight: 600; }
.etape.en-cours { background: var(--accent); color: #fff; }
.etape.faite { background: #d1fae5; color: var(--ok); }
.progression { height: 10px; background: #eeebf8; border-radius: 6px; overflow: hidden; }
.progression div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width 0.4s; }
.rendus { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.rendu video { width: 100%; border-radius: 12px; background: #000; }
.rendu .liens a { margin-right: 12px; font-size: 13px; }
.scene { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; padding: 12px 0; border-top: 1px solid var(--ligne); align-items: start; }
.scene .type { font-weight: 800; color: var(--accent); text-transform: capitalize; padding-top: 8px; }
.scene input, .scene textarea { margin-bottom: 6px; width: 100%; display: block; padding: 8px 10px; border: 1px solid var(--ligne); border-radius: 8px; font: inherit; }
.scene .champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.scene .champs textarea { grid-column: 1 / -1; }
.scene textarea { min-height: 54px; }
.note { font-size: 28px; font-weight: 900; }
.liste a { display: block; padding: 12px 0; border-top: 1px solid var(--ligne); color: var(--texte); text-decoration: none; }
.liste a span { color: var(--muet); font-size: 13px; margin-left: 10px; }
small.muet { color: var(--muet); }
@media (max-width: 640px) { .grille { grid-template-columns: 1fr; } .scene { grid-template-columns: 1fr; } }

.voix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.voix-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 12px; background: #fff; cursor: pointer; margin: 0; font-weight: 600; color: var(--texte); }
.voix-item:has(input:checked) { border-color: var(--accent); background: #f3eefe; }
.voix-item input { accent-color: var(--accent); }
.voix-item .nom { flex: 1; font-size: 14px; }
.voix-item .ecouter { flex: none; width: 36px; height: 36px; border-radius: 50%; padding: 0; font-size: 14px; }
@media (max-width: 640px) { .voix { grid-template-columns: 1fr; } }

.choix.styles label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; max-width: 100%; }
.choix label.bientot { opacity: 0.55; cursor: not-allowed; }
.choix label.bientot em { font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: #9a8fb8; border-radius: 999px; padding: 2px 7px; }

/* Suppléments de prix à côté des options */
.sup { color: var(--accent); font-weight: 700; font-size: 12px; }
/* Le texte d'une case est un seul bloc (<span>) : en mise en page flexible, chaque morceau de texte, lien ou <small>
   devenait sinon une colonne à part (« conditions générales de vente » isolé, test du 12/10/2026) */
label.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--texte); font-size: 14px; cursor: pointer; line-height: 1.45; }
label.case > span { flex: 1; min-width: 0; }
label.case > input { flex: none; margin-top: 1px; }
label.case input { width: 18px; height: 18px; accent-color: var(--accent); }
#bloc-idee { margin-top: 10px; }
#bloc-idee textarea { min-height: 110px; }

/* Cartes de style avec démo */
.styles-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.style-carte { display: flex; flex-direction: column; margin: 0; border: 2px solid var(--ligne); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; color: var(--texte); font-weight: 400; }
.style-carte input { display: none; }
/* Vidéos rangées pour l'entreprise choisie : un titre de groupe sur toute la largeur */
.styles-groupe { grid-column: 1 / -1; margin: 10px 0 0; font-size: 17px; }
.styles-groupe.autres { margin-top: 22px; }
.styles-groupe.en-attente { font-weight: 600; color: var(--muet); font-size: 14px; }

/* Lecture seule par l'éditeur : un bandeau qui ne se quitte pas des yeux */
.bande-lecture { position: sticky; top: 0; z-index: 50; padding: 10px 16px; background: #16133a; color: #fff; font-weight: 700; text-align: center; font-size: 14px; }
.categorie-pastille { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: #ede4fd; color: var(--accent); font-size: 12px; font-weight: 700; }
#f-categorie { max-width: 100%; }
.style-carte:has(> input[name=gabarit]:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px #ede4fd; }
.style-carte .apercu { aspect-ratio: 4 / 5; background: #eeebf8; display: flex; align-items: center; justify-content: center; color: var(--muet); font-size: 13px; font-weight: 600; }
.style-carte .apercu img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-carte .corps { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
/* Toutes les cartes de style à la même hauteur : description sur trois lignes au plus (toujours trois de haut), zone
   du bouton de démo toujours présente, en bas */
.style-carte .corps > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.4em * 3); }
.style-carte .actions-carte { margin-top: auto; min-height: 30px; display: flex; align-items: flex-end; }
.voir-demo-variante { padding: 6px 12px; font-size: 13px; border-radius: 999px; background: #f3eefe; color: var(--accent); border: 1px solid #ddd0fb; }
/* Étape 2 : ce que le style choisi demande */
.details-style { display: inline-block; margin: 0 0 6px; padding: 4px 12px; border-radius: 999px; background: #ede4fd; color: var(--accent); font-size: 13px; font-weight: 800; }
[data-details] { display: flex; flex-direction: column; gap: 12px; }
[data-details][hidden] { display: none; }
/* Style à animations au choix (logo animé) : la carte prend toute la largeur ; ses animations sur une seule ligne qui
   défile (carrousel, public/carrousel.mjs : rail), chaque carte s'aligne */
.style-carte.avec-variantes { grid-column: 1 / -1; display: flex; flex-direction: column; }
.style-carte.avec-variantes.une-colonne { grid-column: auto; }
/* Carte à une colonne (cartoon) : même gabarit que les autres cartes ; le carrousel tient la place de l'aperçu 4:5,
   le nom du style de dessin affiché est posé sur l'image */
.style-carte.une-colonne .variantes-tuiles { gap: 0; padding: 0; scroll-padding-inline: 0; background: #eeebf8; }
.style-carte.une-colonne .variante-tuile { flex: 0 0 100%; padding: 0; border: 0; border-radius: 0; gap: 0; }
.style-carte.une-colonne .variante-tuile > b, .style-carte.une-colonne .variante-tuile > small { display: none; }
.style-carte.une-colonne .variante-tuile:has(input:checked) { box-shadow: none; }
.style-carte.une-colonne .vt-image { border-radius: 0; }
.vt-nom { position: absolute; left: 8px; top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(14, 10, 30, 0.74); color: #fff; font-size: 13px; font-weight: 800; }
.vt-nom small { font-weight: 600; opacity: 0.75; font-size: 11px; color: #fff; }
.style-carte.une-colonne .rail-fleche { top: 50%; }
.rail { position: relative; min-width: 0; background: #f3f0fb; }
.variantes-tuiles { position: relative; display: flex; gap: 12px; padding: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 14px; overscroll-behavior-x: contain; scrollbar-width: none; background: #f3f0fb; }
.variantes-tuiles::-webkit-scrollbar { display: none; }
/* Versions choisies dans la carte du style (Typo cinétique) : deux boutons côte à côte */
.versions-choix { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
.version-choix { flex: 1 1 130px; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 2px solid var(--ligne); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.version-choix input { display: none; }
.version-choix:has(input:checked) { border-color: var(--accent); background: #f6f2ff; }
.version-choix b { font-size: 14px; }
.version-choix small { color: var(--muet); font-size: 12px; }
/* Variante plus chère (Typo cinétique avec vos photos) : son supplément ; sans démo ni aperçu, son accroche à la place de l'image */
.variante-tuile .vt-prix { color: var(--accent); font-size: 12px; font-weight: 800; white-space: nowrap; }
.vt-image .vt-vide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px; text-align: center; font-size: 13px; font-weight: 800; color: var(--accent); background: linear-gradient(135deg, #ede7fb, #ffe3d3); }
.variante-tuile { flex: 0 0 clamp(150px, 18%, 200px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 8px; border: 2px solid transparent; border-radius: 12px; background: #fff; text-align: center; cursor: pointer; }
.rail-fleche { position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: #fff; color: var(--accent); font: 800 28px/1 system-ui, sans-serif; display: flex; align-items: center; justify-content: center; padding-bottom: 3px; box-shadow: 0 6px 18px rgba(22, 19, 58, 0.25); cursor: pointer; transition: opacity 0.2s; }
.rail-prec { left: 6px; }
.rail-suiv { right: 6px; }
.rail-fleche:disabled { opacity: 0; pointer-events: none; }
.variante-tuile input { display: none; }
.variante-tuile:has(input:checked) { border-color: var(--accent); box-shadow: 0 6px 18px rgba(82, 18, 253, 0.18); }
.variante-tuile b { font-size: 15px; margin-top: 4px; }
.variante-tuile small { color: var(--muet); font-size: 12px; line-height: 1.3; }
.vt-image { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #eeebf8; }
.vt-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-lire { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 5px 12px; background: rgba(14, 10, 30, 0.72); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.style-carte.avec-variantes:not(.une-colonne) .corps { justify-content: center; padding: 16px 18px; }
@media (max-width: 720px) { .variantes-tuiles { gap: 8px; padding: 10px; scroll-padding-inline: 10px; } .variante-tuile { flex-basis: 42%; } .rail-fleche { width: 36px; height: 36px; margin-top: -18px; font-size: 23px; } .vt-lire { padding: 4px 9px; font-size: 11px; } }
/* Le prix sous le titre, dans toutes les cartes : un titre long (« Présentation de l'entreprise ») ne passe plus sur
   deux lignes à côté du prix, et toutes les cartes gardent la même hauteur */
.style-carte .ligne-titre { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.style-carte .ligne-titre b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.style-carte .ligne-titre b { font-size: 15px; }
.style-carte .prix-style { font-size: 12px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.style-carte p { margin: 0; font-size: 13px; color: var(--muet); line-height: 1.4; }
.style-carte p.fabrication { margin-top: 6px; font-weight: 700; color: var(--accent); }
.style-carte .voir-demo { align-self: flex-start; padding: 6px 12px; font-size: 13px; border-radius: 999px; background: #f3eefe; color: var(--accent); border: 1px solid #ddd0fb; }
/* Style à venir : ses démos restent éclatantes (jamais de voile qui les ternit, Gilles 12/10/2026) ; « Bientôt »
   se dit par une pastille, et le style ne se choisit pas encore */
.style-carte.bientot { cursor: default; }
.style-carte.bientot .prix-style { color: var(--accent); background: #efe7fe; padding: 0 9px; border-radius: 999px; font-weight: 800; }

/* Lecteur de démo */
dialog#demo { border: 0; border-radius: 16px; padding: 14px; width: min(920px, 94vw); max-height: 94vh; }
dialog#demo::backdrop { background: rgba(16, 12, 40, 0.7); }
.demo-tete { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; padding-right: 48px; }
.demo-tete b { flex: 1; min-width: 180px; }
.demo-tete .fermer { position: absolute; top: 0; right: 0; padding: 6px 12px; background: #eeebf8; color: var(--texte); border-radius: 10px; }
#demo-video { display: block; width: 100%; max-height: 74vh; border-radius: 12px; background: #000; }
/* Vidéo verticale : la plus grande possible sans jamais dépasser la fenêtre (ni en largeur, ni en hauteur) */
#demo-video.portrait, #demo-video.fil { width: auto; height: auto; max-width: 100%; max-height: 74vh; margin: 0 auto; }
dialog#demo { overflow-x: hidden; }
.demo-tete b { min-width: 0; overflow-wrap: anywhere; }
#demo-note { margin: 8px 0 0; }

/* Prix en direct */
.prix-barre { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; background: #fff; border: 1px solid var(--ligne); border-radius: 16px; padding: 12px 16px; box-shadow: 0 -6px 24px rgba(22, 19, 58, 0.08); }
.prix-resume { display: flex; flex-direction: column; gap: 2px; }
.prix-total { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; margin-right: 8px; }
.prix-sous { color: var(--muet); font-size: 14px; }
.prix-barre details summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 700; }
.prix-barre ul { list-style: none; margin: 6px 0 0; padding: 0; min-width: 280px; }
.prix-barre li { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; padding: 2px 0; }
.prix-barre li.plafond { border-top: 1px solid var(--ligne); margin-top: 4px; padding-top: 4px; font-weight: 700; }
.prix-barre .aide { font-size: 12px; margin: 6px 0 0; color: var(--muet); }

/* Téléphone : une colonne, barre de prix compacte */
@media (max-width: 640px) {
  .grille { grid-template-columns: minmax(0, 1fr); }
  .carte { padding: 18px 16px; }
  .prix-barre { flex-wrap: nowrap; padding: 10px 12px; gap: 10px; }
  .prix-total { font-size: 22px; }
  .prix-sous { display: none; }
  .prix-barre details ul { min-width: 0; }
  #envoyer { padding: 10px 14px; font-size: 14px; }
}
input[type="file"] { max-width: 100%; }

/* Comptes */
main.etroit { max-width: 480px; }
.champ { margin-bottom: 14px; }
.champ input { width: 100%; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 10px; font: inherit; }
.liens-compte { display: flex; flex-direction: column; gap: 6px; margin: 16px 0 0; font-size: 14px; }
.liens-compte a { color: var(--accent); font-weight: 600; text-decoration: none; }
/* Connexion avec Google : bouton blanc au « G » officiel (règles de présentation de Google) */
.google-bloc { margin-bottom: 6px; }
.bouton-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 11px 16px; border: 1px solid #747775; border-radius: 12px; background: #fff; color: #1f1f1f; font-weight: 600; font-size: 15px; text-decoration: none; }
.bouton-google:hover { background: #f8f9fa; }
.separateur-ou { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--muet); font-size: 13px; }
.separateur-ou::before, .separateur-ou::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.lien-coupon { margin: -4px 0 14px; font-size: 14px; }
.lien-coupon a { color: var(--accent); font-weight: 600; text-decoration: none; }
#f-coupon .barre input { flex: 1 1 180px; max-width: 320px; }
#f-coupon .barre input, input#coupon { text-transform: uppercase; }
#f-coupon .barre input::placeholder { text-transform: none; }
.ok { color: var(--ok); font-weight: 600; }
dialog#compte-dlg { border: 0; border-radius: 16px; padding: 22px; width: min(440px, 94vw); }
dialog#compte-dlg::backdrop { background: rgba(16, 12, 40, 0.6); }
dialog#compte-dlg h2 { margin: 0 0 4px; font-size: 20px; }

/* Pages légales et pied de page */
main.texte-legal { max-width: 760px; }
.texte-legal h2 { font-size: 18px; margin: 26px 0 8px; }
.texte-legal p, .texte-legal li { line-height: 1.6; color: var(--texte); }
.texte-legal ul { padding-left: 20px; }
.texte-legal a { color: var(--accent); }
/* Bande du bêta-test, tout en haut de chaque page (Gilles, 15/10/2026) : violet du logo, texte blanc lisible */
.bande-beta { background: var(--accent); color: #fff; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.4; padding: 8px 16px; }
.bande-beta a { color: #fff; text-decoration: underline; text-underline-offset: 2px; font-weight: 800; }
/* Du même éditeur (Gilles, 15/10/2026) : les applications de Site Web Réunion, logo et nom, au-dessus du pied */
.editeur { max-width: 1100px; margin: 40px auto 0; padding: 26px 16px 0; border-top: 1px solid var(--ligne); text-align: center; }
.editeur-titre { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muet); }
.editeur-applis { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 18px 40px; }
.editeur-applis a { display: grid; grid-template-rows: 60px auto; justify-items: center; align-items: center; gap: 8px; color: var(--texte); text-decoration: none; font-size: 14px; }
.editeur-applis a:hover span { color: var(--accent); }
.editeur-applis img { display: block; max-width: 170px; height: auto; }
@media (max-width: 480px) { .editeur-applis { gap: 16px 22px; } .editeur-applis img { max-width: 130px; } }
/* Bêta-test : l'onglet sur le bord droit de chaque page (jamais sur la barre du prix ni les boutons du bas), et le
   formulaire de remarque (public/support.mjs) */
button.support-onglet { position: fixed; right: 0; top: 50%; z-index: 20; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; padding: 14px 8px; border-radius: 0 10px 10px 0; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 4px 16px rgba(22, 19, 58, 0.25); }
button.support-onglet:hover { background: var(--magenta); }
@media (max-width: 480px) { button.support-onglet { padding: 10px 5px; font-size: 12px; } }
dialog.support-dlg { border: 0; border-radius: 16px; padding: 22px; width: min(560px, 94vw); max-height: 92vh; }
dialog.support-dlg::backdrop { background: rgba(16, 12, 40, 0.6); }
dialog.support-dlg h2 { margin: 0 0 6px; font-size: 20px; }
.support-types { border: 0; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.support-types legend { font-size: 13px; font-weight: 600; color: var(--muet); margin-bottom: 6px; padding: 0; }
.support-types label { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 15px; color: var(--texte); cursor: pointer; }
.support-label { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--muet); }
.support-captures { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.support-captures figure, .support-captures a { position: relative; margin: 0; display: block; }
.support-captures img { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--ligne); background: #fff; }
button.support-retirer { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: var(--texte); color: #fff; font-size: 12px; line-height: 26px; }
.support-page { margin: 12px 0 14px; overflow-wrap: anywhere; }
.retour-beta .retour-entete { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 8px; }
.retour-beta .retour-message { white-space: pre-wrap; margin: 0 0 10px; overflow-wrap: anywhere; }
.retour-beta .reponse-equipe { border-left: 3px solid var(--accent); background: #faf8ff; border-radius: 0 10px 10px 0; padding: 8px 12px; margin: 0 0 10px; }
.retour-beta .reponse-equipe p { margin: 0 0 4px; }
footer.pied { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding: 26px 16px 40px; font-size: 13px; }
footer.pied a { color: var(--muet); text-decoration: none; }
.case-cgv { flex-basis: 100%; font-size: 13px; font-weight: 500; }
.case-cgv a { color: var(--accent); }
.retour-espace { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14px; }

/* ── Carrousel des démos ── */
.carrousel { position: relative; cursor: pointer; overflow: hidden; }
.carrousel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-legende { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.car-legende b, .car-legende span { background: rgba(14, 10, 30, 0.62); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.car-legende span:empty { display: none; }
.car-fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; padding: 0; background: rgba(255, 255, 255, 0.86); color: #1b1640; font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.carrousel:hover .car-fleche, .carrousel:focus-within .car-fleche { opacity: 1; }
@media (hover: none) { .car-fleche { opacity: 0.9; } }
.car-prec { left: 10px; }
.car-suiv { right: 10px; }
.car-points { position: absolute; left: 0; right: 0; bottom: 44px; display: flex; justify-content: center; gap: 7px; }
.car-points i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); cursor: pointer; }
.car-points i.actif { background: #fff; transform: scale(1.25); }
.car-son { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgba(48, 22, 110, 0.3); }
.carrousel-images { position: relative; cursor: pointer; overflow: hidden; }
.carrousel-images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.carrousel-images img.visible { opacity: 1; }
.carrousel-images .car-badge { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(14, 10, 30, 0.7); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.carrousel-images .car-points { bottom: 40px; }

/* ── Lecteur des démos en grand ── */
dialog.lecteur-demos { border: 0; border-radius: 18px; padding: 14px 14px 12px; width: min(560px, 94vw); max-height: 96vh; overflow: hidden auto; }
dialog.lecteur-demos::backdrop { background: rgba(16, 12, 40, 0.78); }
.ld-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ld-titres { display: grid; gap: 2px; min-width: 0; }
.ld-titres b { font-size: 16px; }
.ld-titres span { font-size: 13px; color: var(--muet); overflow-wrap: anywhere; }
.ld-fermer { padding: 6px 12px; background: #eeebf8; color: var(--texte); border-radius: 10px; flex: none; }
.ld-scene { position: relative; }
.ld-video { display: block; width: 100%; max-height: 72vh; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 12px; background: #000; }
.ld-fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; padding: 0; background: rgba(255, 255, 255, 0.9); color: #1b1640; font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); z-index: 2; }
.ld-prec { left: 8px; }
.ld-suiv { right: 8px; }
.ld-fleche[hidden] { display: none; }
.ld-points { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.ld-points button { padding: 5px 11px; font-size: 12px; border-radius: 999px; background: #f3eefe; color: var(--accent); border: 1px solid #ddd0fb; }
.ld-points button.actif { background: var(--accent); color: #fff; border-color: var(--accent); }
.ld-note { margin: 8px 0 0; font-size: 12px; color: var(--muet); text-align: center; }

/* Crédits : packs et fenêtre d'achat */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 14px 10px; margin: 18px 0 14px; }
.pack { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 12px 14px; border-radius: 16px; background: #fff; color: var(--texte); border: 2px solid var(--ligne); font-weight: 600; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.pack:hover { border-color: var(--accent); transform: translateY(-2px); }
.pack.conseille { border-color: var(--accent); box-shadow: 0 8px 24px rgba(82, 18, 253, 0.18); }
.pack-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
.pack-badge.offert { background: #16a34a; }
.pack-credits { font-size: 22px; font-weight: 900; color: var(--accent); }
.pack-detail { font-size: 12px; color: var(--muet); }
.pack-prix { font-size: 16px; font-weight: 800; }
.pack-ttc { font-size: 12px; color: var(--muet); }
dialog.achat-credits { width: min(760px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: 22px 24px; box-shadow: 0 30px 80px rgba(20, 10, 50, 0.35); }
dialog.achat-credits::backdrop { background: rgba(20, 15, 40, 0.55); }
@media (max-width: 480px) { dialog.achat-credits { padding: 18px 16px; } .pack { padding: 16px 8px 12px; } }
.ac-tete { display: flex; justify-content: space-between; align-items: center; }
.ac-tete h2 { margin: 0; }
.ac-fermer { background: #f1eefb; color: var(--texte); width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.ac-note { margin-top: 4px; }
.solde-credits { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.carrousel-images img.entiere { object-fit: contain; background: #0d0b1f; }
/* Prix d'un style : « dès » la vidéo texte, puis avec voix off (cartes de l'accueil et de la commande) */
.tarifs-style { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; }
.tarifs-style b { font-size: 14px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.tarifs-style small { font-weight: 600; color: var(--muet); }
/* Fenêtre des crédits : la vidéo est déjà enregistrée ; un pack trop petit pour la lancer est grisé */
.ac-enregistree { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: #ecfdf5; color: #065f46; font-weight: 600; font-size: 14px; }
.pack.trop-petit { opacity: 0.45; cursor: not-allowed; }

/* Commande : l'entreprise choisie (fiche), ses trois idées, ses photos (public/assistant.js, 15/10/2026) */
.bloc-fiche { background: #fff; border: 1px solid var(--ligne); border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; }
.bloc-fiche select { width: 100%; max-width: 420px; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 10px; font: inherit; background: #fff; }
.bloc-fiche .aide { margin: 8px 0 0; }
.idees-fiche { background: #faf6ff; border: 1px solid var(--ligne); border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; }
.idees-tete { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.idees-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
#idees-etat.en-attente, #fiche-idees-etat.en-attente { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--texte, inherit); }
#idees-etat.en-attente::before, #fiche-idees-etat.en-attente::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 18%, transparent); border-top-color: var(--accent); animation: idees-tourne 0.8s linear infinite; }
@keyframes idees-tourne { to { transform: rotate(360deg); } }
/* Une roue qui tourne pendant une attente : lecture du site, recherche de photos (Gilles, 16/10/2026) */
.roue { display: flex; align-items: center; gap: 14px; }
.roue::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 18%, transparent); border-top-color: var(--accent); animation: idees-tourne 0.8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .roue::before { animation-duration: 2.4s; } }
@media (prefers-reduced-motion: reduce) { #idees-etat.en-attente::before, #fiche-idees-etat.en-attente::before { animation-duration: 2.4s; } }
.idee-carte { background: #fff; border: 2px solid var(--ligne); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.idee-carte p { margin: 0; }
.idee-carte button { margin-top: auto; align-self: flex-start; }
.idee-carte.choisie { border-color: var(--accent); }
.idee-carte > a.bouton { margin-top: auto; align-self: flex-start; }
.idees-tete h2 { margin: 0; font-size: 1.2rem; }
.idees-quota { margin: 4px 0 0; }
.idee-haut { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.idee-actions { display: flex; gap: 4px; flex: none; }
.idee-carte .idee-actions button { margin: 0; align-self: auto; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--ligne); background: #fff; color: var(--texte); font-size: 1rem; line-height: 1; cursor: pointer; }
.idee-carte .idee-fav.oui { color: #b7791f; border-color: #f2c94c; background: #fffbea; }
.idee-meta { font-size: .9rem; color: var(--muet); }
.idee-deroule { margin: 0; padding-left: 1.3em; font-size: .9rem; color: var(--muet); display: grid; gap: 2px; }
.idee-manque { font-size: .88rem; color: #9a3412; }
.idee-resume { background: #fff; border: 2px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.idee-resume h3 { margin: 0 0 6px; }
.idee-resume .idee-deroule { margin: 8px 0; }
.idee-reprise { display: grid; gap: 6px; margin: 10px 0; }
.idee-reprise div { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 10px; }
.idee-reprise dt { font-weight: 600; }
.idee-reprise dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .idee-reprise div { grid-template-columns: 1fr; gap: 2px; } }
.idee-suite { margin: 8px 0 0; font-weight: 600; }
.idee-avertis { margin: 8px 0 0; padding: 10px 12px 10px 14px; list-style: none; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; color: #9a3412; display: grid; gap: 4px; }
.idee-suite.a-completer { color: #9a3412; }
.idees-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.idees-fiche > h2 { margin: 0 0 10px; font-size: 1.2rem; }
.page-question p { margin: 0 0 10px; font-weight: 600; }
.page-champs { display: grid; gap: 4px; margin-bottom: 12px; }
.page-champs .case { margin-top: 4px; }
#idees-boutons { margin-bottom: 10px; }
.auto-cache { display: none !important; }
form.avec-idee ::placeholder { color: transparent; }
.auto-tete { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.photos-fiche { margin: 0 0 14px; }
.photos-fiche-liste { display: flex; flex-wrap: wrap; gap: 8px; }
button.photo-fiche { padding: 0; border: 2px solid var(--ligne); border-radius: 10px; background: none; overflow: hidden; }
button.photo-fiche img { display: block; width: 96px; height: 72px; object-fit: cover; }
button.photo-fiche.ajoutee { border-color: var(--accent); opacity: 0.6; }
.logo-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 10px 0 4px; }
.logo-actions label.case { margin: 0; }

/* Cadrage d'une photo dans un cercle (public/cadrage.mjs) : commande et fiche entreprise */
dialog.cadrage-dlg { border: 0; border-radius: 16px; padding: 20px; width: min(460px, 94vw); max-height: 94vh; overflow-y: auto; }
dialog.cadrage-dlg::backdrop { background: rgba(16, 12, 40, 0.7); }
dialog.cadrage-dlg h2 { margin: 0 0 6px; font-size: 20px; }
.cadrage-scene { position: relative; width: min(360px, 100%); aspect-ratio: 1; margin: 12px auto; overflow: hidden; border-radius: 12px; background: #1a1730; touch-action: none; cursor: grab; user-select: none; }
.cadrage-scene:active { cursor: grabbing; }
.cadrage-scene img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; pointer-events: none; }
.cadrage-masque { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(16, 12, 40, 0.6); outline: 2px solid rgba(255, 255, 255, 0.9); pointer-events: none; }
.cadrage-zoom { display: flex; align-items: center; gap: 10px; margin: 0 auto 12px; width: min(360px, 100%); }
.cadrage-zoom input { flex: 1; }
