/* ==========================================================================
   Pignon — interface du logiciel
   Principe : peu de texte, de grandes zones cliquables, des exemples visuels.
   Couleurs et tailles centralisées dans les variables ci-dessous.
   ========================================================================== */
:root {
  --fond: #f4f2ee;
  --surface: #ffffff;
  --bord: #e7e3dc;
  --texte: #1c1d22;
  --texte-doux: #6a675f;
  --accent: #b4532a;
  --accent-fonce: #8f3f1d;
  --accent-clair: #f6e9e1;
  --succes: #16a34a;
  --rayon: 18px;
  --ombre: 0 1px 2px rgba(23, 24, 28, .05), 0 8px 28px rgba(23, 24, 28, .07);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texte);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--fond); display: flex; flex-direction: column; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 3px; }

/* --- Barre du haut ------------------------------------------------------- */
.barre { display: flex; align-items: center; justify-content: space-between; padding: 16px 40px; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; background: none; border: 0; cursor: pointer; padding: 0; }
.marque-logo { width: 30px; height: 30px; display: block; }
.version { font-size: 12px; color: var(--texte-doux); }

main { flex: 1; overflow-y: auto; padding: 8px 40px 60px; outline: none; }
.page { max-width: 1240px; margin: 0 auto; }

/* --- Boutons ------------------------------------------------------------- */
.btn { font-weight: 600; border-radius: 999px; padding: 13px 24px; cursor: pointer; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 10px; transition: transform .12s, background .12s; }
.btn:active { transform: scale(.98); }
.btn-principal { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(180, 83, 42, .3); }
.btn-principal:hover { background: var(--accent-fonce); }
.btn-secondaire { background: var(--surface); border-color: var(--bord); }
.btn-secondaire:hover { border-color: #cfc9be; }
.btn-grand { font-size: 18px; padding: 17px 32px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-lien { background: none; border: 0; color: var(--texte-doux); padding: 0; cursor: pointer; font-weight: 500; }
.btn-lien:hover { color: var(--texte); }

/* --- Accueil ------------------------------------------------------------- */
.accueil-hero { background: var(--surface); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; box-shadow: var(--ombre); margin-bottom: 44px; overflow: hidden; }
.accueil-hero h1 { font-size: 44px; line-height: 1.08; margin-bottom: 16px; }
.accueil-hero p { font-size: 18px; color: var(--texte-doux); margin-bottom: 30px; max-width: 460px; }
.accueil-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
/* Éventail de 3 exemples de sites à droite */
.eventail { position: relative; height: 330px; }
.eventail .vignette { position: absolute; width: 62%; top: 30px; }
.eventail .vignette:nth-child(1) { left: 0; transform: rotate(-6deg); }
.eventail .vignette:nth-child(2) { left: 19%; top: 0; z-index: 2; }
.eventail .vignette:nth-child(3) { right: 0; transform: rotate(6deg); }

.titre-section { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.titre-section h2 { font-size: 24px; }
.grille-projets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.carte-projet { background: var(--surface); border: 0; border-radius: var(--rayon); padding: 12px 12px 18px; text-align: left; cursor: pointer; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 6px; transition: transform .15s, box-shadow .15s; }
.carte-projet:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(23, 24, 28, .12); }
.carte-projet .vignette { margin-bottom: 10px; }
.carte-projet h3 { font-size: 18px; padding: 0 6px; }
.carte-projet .prochaine { font-size: 14px; color: var(--texte-doux); padding: 0 6px; }
.carte-projet .prochaine b { color: var(--accent); font-weight: 600; }

/* Vignette = petite fenêtre de navigateur contenant une maquette */
.vignette { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(23, 24, 28, .15); }
.vignette .echelle { aspect-ratio: 16 / 10; }
.chrome { height: 22px; background: #eceae5; display: flex; align-items: center; gap: 5px; padding: 0 9px; }
.chrome i { width: 7px; height: 7px; border-radius: 50%; background: #d3cfc7; }

/* --- Assistant "Nouveau site" en plein écran ------------------------------ */
.assistant { position: fixed; inset: 0; z-index: 10; background: #121318; color: #f4f2ee; display: flex; flex-direction: column; animation: apparition .25s ease-out; }
.assistant[hidden] { display: none; }
@keyframes apparition { from { opacity: 0; transform: scale(.99); } }
.assistant-haut { display: flex; align-items: center; justify-content: space-between; padding: 22px 36px 0; }
.assistant-haut .etape-num { color: #a3a2ab; font-size: 14px; font-weight: 500; }
.assistant-haut h1 { font-size: 30px; margin-top: 4px; }
.fermer { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 20px; cursor: pointer; }
.fermer:hover { background: rgba(255,255,255,.16); }

/* Onglets des 5 types */
.onglets-types { display: flex; gap: 10px; padding: 22px 36px 18px; overflow-x: auto; }
.onglet-type { flex: 1; min-width: 170px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #d8d6de; cursor: pointer; text-align: left; transition: background .15s, border-color .15s; }
.onglet-type:hover { background: rgba(255,255,255,.08); }
.onglet-type .icone { font-size: 24px; }
.onglet-type b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.onglet-type[aria-selected="true"] { background: #fff; color: var(--texte); border-color: #fff; }

/* Zone principale : grand exemple + panneau d'infos */
.choix-corps { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 0 36px 30px; }
.scene { position: relative; min-height: 0; display: flex; }
.fenetre { flex: 1; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.fenetre .chrome { height: 34px; padding: 0 14px; gap: 7px; }
.fenetre .chrome i { width: 11px; height: 11px; }
.fenetre .chrome span { margin-left: 16px; background: #fff; border-radius: 6px; padding: 3px 14px; font-size: 12px; color: #77736b; min-width: 240px; }
.fenetre .echelle { flex: 1; }
.fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--texte); font-size: 22px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); z-index: 2; }
.fleche.gauche { left: -18px; }
.fleche.droite { right: -18px; }
.fleche:hover { transform: translateY(-50%) scale(1.06); }

.infos-type { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.infos-type .grosse-icone { font-size: 46px; }
.infos-type h2 { font-size: 30px; line-height: 1.1; }
.infos-type .pour-qui { color: #b9b7c2; font-size: 16px; line-height: 1.5; }
.infos-type h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: #8e8c98; margin-bottom: 10px; }
.infos-type ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.infos-type li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.infos-type li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: rgba(34, 197, 94, .18); color: #4ade80; font-size: 12px; font-weight: 700; }
.infos-type .btn { justify-content: center; margin-top: auto; }
.astuce { font-size: 13px; color: #8e8c98; text-align: center; }
.astuce kbd { background: rgba(255,255,255,.1); border-radius: 4px; padding: 1px 6px; font-family: inherit; }

/* Écran "nom du commerce" */
.nom-corps { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 0 80px 60px; max-width: 1300px; margin: 0 auto; width: 100%; }
.nom-corps label { display: block; font-size: 15px; color: #b9b7c2; margin-bottom: 12px; }
.nom-corps input { width: 100%; font: inherit; font-size: 34px; font-weight: 600; padding: 18px 22px; border-radius: 16px; border: 2px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: #fff; outline: none; }
.nom-corps input:focus { border-color: #8b84ff; }
.nom-corps .aide { color: #8e8c98; margin: 14px 0 34px; }
.nom-corps .boutons { display: flex; gap: 16px; align-items: center; }
.nom-corps .btn-lien { color: #b9b7c2; }
.nom-corps .vignette { box-shadow: 0 30px 80px rgba(0,0,0,.5); }

/* --- Page d'un projet ---------------------------------------------------- */
.retour { margin-bottom: 18px; display: inline-block; }
.projet-tete { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; margin-bottom: 36px; }
.projet-tete h1 { font-size: 40px; margin: 8px 0 6px; }
.projet-tete .type { color: var(--texte-doux); font-size: 17px; }

/* Les 6 étapes, sous forme de frise */
.frise { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.frise li { position: relative; text-align: center; font-size: 13px; color: var(--texte-doux); padding-top: 38px; }
.frise li::before { content: attr(data-n); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: #e6e2da; display: grid; place-items: center; font-weight: 700; z-index: 1; color: var(--texte-doux); }
.frise li::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: #e6e2da; }
.frise li:first-child::after { display: none; }
.frise li.faite::before { content: "✓"; background: var(--succes); color: #fff; }
.frise li.faite::after, .frise li.courante::after { background: var(--succes); }
.frise li.courante { color: var(--texte); font-weight: 600; }
.frise li.courante::before { background: var(--accent); color: #fff; box-shadow: 0 0 0 5px var(--accent-clair); }

.prochaine-etape { background: linear-gradient(120deg, var(--accent), #7c3aed); color: #fff; border-radius: 24px; padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.prochaine-etape small { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; opacity: .8; font-weight: 600; }
.prochaine-etape h2 { font-size: 28px; margin: 6px 0 8px; }
.prochaine-etape p { opacity: .85; max-width: 560px; }
.prochaine-etape .btn { background: #fff; color: var(--accent); flex-shrink: 0; }
.prochaine-etape .btn[disabled] { opacity: .75; }

/* Réponses du client, sous forme de cartes */
.fiches { columns: 2 400px; column-gap: 22px; }
.fiche { break-inside: avoid; background: var(--surface); border-radius: var(--rayon); padding: 26px 28px; box-shadow: var(--ombre); margin-bottom: 22px; }
.fiche h3 { font-size: 18px; margin-bottom: 16px; }
.fiche dl { margin: 0; display: grid; gap: 14px; }
.fiche dt { font-size: 13px; color: var(--texte-doux); margin-bottom: 3px; }
.fiche dd { margin: 0; font-size: 15px; line-height: 1.5; }
.identite { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.identite img { width: 72px; height: 72px; border-radius: 16px; object-fit: contain; background: #f4f2ee; }
.identite h4 { margin: 0; font-size: 22px; }
.identite p { color: var(--texte-doux); }
.photos-apercu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos-apercu img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.couleur { display: inline-flex; align-items: center; gap: 8px; margin-right: 14px; }
.couleur i { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.horaires { border-collapse: collapse; width: 100%; }
.horaires td { padding: 4px 0; border-bottom: 1px solid #f0ede7; }
.horaires td + td { text-align: right; }
.horaires .ferme { color: var(--texte-doux); }
.sous-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.sous-liste > li > strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 4px; }
.sous-liste .sous-liste { gap: 4px; }
.sous-liste .sous-liste > li { display: flex; justify-content: space-between; gap: 14px; }
.sous-liste .detail { color: var(--texte-doux); font-size: 13px; }
.prix { white-space: nowrap; font-weight: 600; }
.manquants { font-size: 14px; color: var(--texte-doux); margin: -4px 0 20px; }

/* --- Étape 2 : questionnaire, import, édition des réponses --------------- */
.prochaine-etape { flex-wrap: wrap; }
.prochaine-etape b { font-weight: 700; }
.etape-boutons { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-blanc { background: #fff; color: var(--accent); }
.btn-blanc:hover:not([disabled]) { background: #f3f2ff; }
.btn-lien-clair { color: rgba(255,255,255,.85); text-decoration: underline; }
.btn-lien-clair:hover { color: #fff; }

.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: -16px 0 40px; }
.tuile { background: var(--surface); border: 2px solid transparent; border-radius: var(--rayon); padding: 26px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--ombre); transition: border-color .15s, transform .15s; }
.tuile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tuile-depot { border: 2px dashed #cfc9be; box-shadow: none; background: transparent; }
.tuile-icone { font-size: 30px; margin-bottom: 6px; }
.tuile b { font-size: 18px; }
.tuile span:last-child { color: var(--texte-doux); font-size: 15px; line-height: 1.45; }

.notice { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-radius: var(--rayon); padding: 18px 24px; margin-bottom: 26px; border: 1px solid; }
.notice p { margin-top: 4px; }
.notice ul { margin: 8px 0 0; padding-left: 20px; font-size: 14px; display: grid; gap: 3px; }
.notice-succes { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.notice-attention { background: #fff7ed; border-color: #fed7aa; color: #7c2d12; }
.notice-erreur { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.notice-actions { display: flex; gap: 10px; flex-shrink: 0; }
.titre-section .btn { padding: 9px 16px; font-size: 14px; }

.image-apercu { max-width: 120px; max-height: 90px; border-radius: 10px; object-fit: contain; background: #f4f2ee; }
.mini-image { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.sous-liste .sous-liste > li { align-items: center; }
.sous-liste-texte { flex: 1; }

/* Voile de glisser-déposer */
.voile-depot { position: fixed; inset: 0; z-index: 20; display: none; place-items: center; background: rgba(180, 83, 42, .12); backdrop-filter: blur(3px); pointer-events: none; }
.voile-depot > div { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 54px; background: #fff; border: 3px dashed var(--accent); border-radius: 28px; padding: 46px 70px; box-shadow: var(--ombre); }
.voile-depot b { font-size: 22px; }
.voile-depot span { font-size: 15px; color: var(--texte-doux); }
body.depot-actif .voile-depot { display: grid; }

/* Édition des réponses dans le logiciel */
.edition { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; padding-bottom: 90px; }
.edition-nav { position: sticky; top: 0; display: grid; gap: 4px; }
.edition-nav h1 { font-size: 24px; margin-top: 18px; }
.edition-nav > p { color: var(--texte-doux); margin-bottom: 18px; }
.edition-nav nav { display: grid; gap: 2px; }
.edition-nav a { display: flex; justify-content: space-between; align-items: center; color: var(--texte); text-decoration: none; padding: 9px 12px; border-radius: 10px; font-size: 15px; }
.edition-nav a:hover { background: #ebe8e2; }
.pastille-erreur { background: #ea580c; color: #fff; font-size: 12px; font-weight: 700; border-radius: 99px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; }
.edition-formulaire { display: grid; gap: 22px; }
.edition-formulaire .mf-section { background: var(--surface); border-radius: 22px; padding: 34px 38px; box-shadow: var(--ombre); scroll-margin-top: 20px; }
.edition-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 40px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--bord); }
.edition-barre span { margin-right: auto; color: var(--texte-doux); font-size: 14px; }

/* Fenêtre de confirmation */
dialog.confirmation { border: 0; border-radius: 20px; padding: 28px; width: min(440px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.confirmation::backdrop { background: rgba(23, 24, 28, .45); }
dialog.confirmation h2 { font-size: 21px; margin-bottom: 8px; }
dialog.confirmation p { color: var(--texte-doux); margin-bottom: 22px; }
dialog.confirmation .actions { display: flex; justify-content: flex-end; gap: 10px; }
.pastille-erreur[hidden] { display: none; }

/* --- Studio : choix du design, aperçu, export (plein écran) ---------------- */
.studio { z-index: 11; }
.onglet-design small { display: block; font-size: 12.5px; opacity: .65; margin-top: 2px; }
.pastille-design { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; font-size: 18px; background: rgba(255,255,255,.1); }
.pastille-elegant { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.pastille-moderne { font-weight: 800; letter-spacing: -.04em; }
.onglet-design[aria-selected="true"] .pastille-design { background: var(--accent-clair); color: var(--accent); }
.echantillon { display: inline-block; width: 18px; height: 18px; border-radius: 50%; margin-left: 6px; vertical-align: -4px; border: 2px solid rgba(255,255,255,.7); }

.fenetre-site .chrome span { flex: 0 1 auto; }
.cadre { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.cadre iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
.chargement { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #77736b; font-size: 15px; text-align: center; z-index: 1; background: #fff; }
.roue { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #e7e3dc; border-top-color: var(--accent); animation: tourner .8s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }

.apercu-haut { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 18px 28px 10px; }
.apercu-actions { display: flex; gap: 14px; justify-content: flex-end; align-items: center; }
.btn-lien-clair { color: #c9c7d2; }
.btn-lien-clair:hover { color: #fff; }
.appareils { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.08); }
.appareils button { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: #c9c7d2; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.appareils button[aria-checked="true"] { background: #fff; color: var(--texte); }
.apercu-titre { text-align: center; color: #8e8c98; font-size: 13px; padding-bottom: 14px; }
.apercu-titre b { color: #d8d6de; }
.apercu-corps { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 0 28px 26px; }
.apercu-ordi .fenetre { max-width: 1500px; }
.appareil { display: flex; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 2px #2c2d33; }
.appareil .cadre { border-radius: 18px; }
.appareil-tablette { width: min(100%, 820px + 28px); padding: 14px; border-radius: 34px; }
.appareil-tel { width: 390px; padding: 12px; border-radius: 48px; max-height: 860px; }
.appareil-tel .cadre { border-radius: 36px; }

.dialogue-export { max-width: 520px; }
.dialogue-export label { display: block; font-weight: 600; margin: 18px 0 8px; }
.dialogue-export label span { font-weight: 400; color: var(--texte-doux); }
.dialogue-export input { width: 100%; font: inherit; font-size: 17px; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--bord); }
.dialogue-export input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-clair); }
.dialogue-export .aide { font-size: 14px; color: var(--texte-doux); margin-top: 8px; line-height: 1.45; }

.export-corps { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; max-width: 1200px; width: 100%; margin: 0 auto; padding: 20px 60px 60px; }
.export-fichiers { display: grid; gap: 14px; }
.fichier-exporte { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.fichier-icone { font-size: 34px; }
.fichier-exporte b { display: block; font-size: 18px; word-break: break-all; }
.fichier-exporte small { color: #a3a2ab; font-size: 14px; }
.export-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.export-boutons .btn-secondaire { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.15); }
.export-suite { list-style: none; counter-reset: suite; margin: 0; padding: 0; display: grid; gap: 22px; }
.export-suite li { counter-increment: suite; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; }
.export-suite li::before { content: counter(suite); grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); font-weight: 700; }
.export-suite b { font-size: 17px; }
.export-suite span { color: #b9b7c2; line-height: 1.5; }
.prochaine-etape-finie { background: linear-gradient(135deg, #15803d, #16a34a); }
.prochaine-etape-finie .btn { color: #15803d; }

/* ---- V2 : mise en page à la souris ---------------------------------------- */
.btn-edition { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-edition:hover { background: rgba(255,255,255,.18); }
.btn-edition-actif { background: #fff; color: var(--texte); }
.barre-edition { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 28px 12px; padding: 10px 16px; border-radius: 12px; background: rgba(180, 83, 42, .18); border: 1px solid rgba(180, 83, 42, .5); color: #e8e6ee; font-size: 13px; }
.barre-edition-aide b { color: #fff; margin-right: 8px; }
.barre-edition-actions { display: flex; gap: 14px; flex-shrink: 0; }
.barre-edition button:disabled { opacity: .4; cursor: default; }
.pastille-audacieux { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; border-radius: 2px; background: #000; color: #fff; }
.pastille-doux { font-weight: 400; border-radius: 50%; background: rgba(255, 214, 214, .2); }
.apercu-actions .btn { white-space: nowrap; }

/* ---- V3 : panneau de mise en page ------------------------------------------ */
.apercu-scene { flex: 1; min-width: 0; display: flex; justify-content: center; min-height: 0; }
.apercu-scene > .fenetre { flex: 1; }
.avec-panneau { gap: 18px; }
.panneau-edition { width: 310px; flex-shrink: 0; background: #1d1e24; border: 1px solid #2f3038; border-radius: 16px; color: #e8e6ee; font-size: 13px; display: flex; flex-direction: column; overflow: hidden; }
.panneau-haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.panneau-haut small { display: block; color: #8e8c98; font-size: 12px; }
.btn-ajout-photo { margin: 0 14px 10px; justify-content: center; padding: 10px 16px; }
.panneau-corps { overflow-y: auto; padding: 4px 14px 18px; display: grid; gap: 10px; align-content: start; }
.panneau-corps h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #a9a7b4; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid #2f3038; }
.panneau-corps h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; color: #7d7b88; margin-left: 4px; }
.panneau-aide { color: #c9c7d2; line-height: 1.55; display: grid; gap: 10px; }
.panneau-aide b { color: #fff; }
.panneau-aide ul { padding-left: 18px; margin: 0; display: grid; gap: 4px; }
.panneau-note { color: #8e8c98; font-size: 12px; }
.panneau-element { display: flex; justify-content: space-between; gap: 10px; background: rgba(180, 83, 42, .16); border: 1px solid rgba(180, 83, 42, .5); border-radius: 10px; padding: 10px 12px; }
.panneau-element small { display: block; color: #b9b7c3; margin-top: 2px; word-break: break-word; }
.panneau-valeur { color: #c9c7d2; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reglage { display: grid; gap: 6px; }
.reglage label { display: flex; justify-content: space-between; color: #c9c7d2; }
.reglage label small { color: #7d7b88; }
.reglage output { color: #fff; font-variant-numeric: tabular-nums; }
.reglage-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reglage-ligne input[type="range"] { flex: 1; accent-color: #b4532a; }
.couleur-choix { display: inline-flex !important; align-items: center; gap: 8px; }
.couleur-choix input { width: 34px; height: 26px; border: 1px solid #3a3b44; border-radius: 6px; background: none; padding: 0; cursor: pointer; }
.groupe-boutons { display: inline-flex; gap: 4px; margin-left: auto; }
.mini { background: #2a2b32; color: #e8e6ee; border: 1px solid #3a3b44; border-radius: 7px; padding: 5px 9px; font-size: 12px; cursor: pointer; line-height: 1.1; }
.mini:hover:not(:disabled) { background: #34353d; }
.mini:disabled { opacity: .4; cursor: default; }
.mini.est-choisi { background: #b4532a; border-color: #b4532a; color: #fff; }
.boutons-panneau { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-panneau { background: #2a2b32; color: #e8e6ee; border: 1px solid #3a3b44; border-radius: 9px; padding: 9px 12px; cursor: pointer; font-weight: 600; text-align: left; }
.btn-panneau:hover { background: #34353d; }
.btn-danger { color: #ff9b85; }
.champ-panneau { font: inherit; color: #fff; background: #15161b; border: 1px solid #3a3b44; border-radius: 8px; padding: 8px 10px; width: 100%; resize: vertical; }
.interrupteur { display: flex; align-items: center; gap: 8px; color: #c9c7d2; cursor: pointer; margin-top: 4px; }
.formes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.forme-choix { display: grid; justify-items: center; gap: 4px; background: #2a2b32; border: 1px solid #3a3b44; border-radius: 9px; padding: 8px 4px 6px; color: #c9c7d2; cursor: pointer; font-size: 11px; }
.forme-choix.est-choisi { border-color: #b4532a; background: rgba(180, 83, 42, .2); color: #fff; }
.apercu-forme { display: block; width: 30px; height: 30px; background: linear-gradient(135deg, #e7a07a, #b4532a); }
.apercu-forme.pe-forme-rectangle { border-radius: 2px; height: 22px; width: 32px; }
.apercu-forme.pe-forme-arrondi { border-radius: 8px; height: 24px; width: 32px; }
.apercu-forme.pe-forme-cercle { border-radius: 50%; }
.apercu-forme.pe-forme-ovale { border-radius: 50%; width: 24px; }
.apercu-forme.pe-forme-arche { border-radius: 99px 99px 4px 4px; width: 24px; }
.apercu-forme.pe-forme-goutte { border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; }
.apercu-forme.pe-forme-losange { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.apercu-forme.pe-forme-hexagone { clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.apercu-forme.pe-forme-etoile { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.panneau-haut { flex-wrap: wrap; }
.panneau-haut small { display: inline; margin-left: 6px; }
