/* Animation « Créer son exposition en trois gestes » (js/tuto.js) : un faux écran de navigateur, trois scènes. */
.tuto { max-width: 980px; margin: 0 auto; --or: var(--accent, #c49a4a); }
.t-fenetre-nav { border: 1px solid var(--line, rgba(196, 154, 74, .35)); border-radius: 14px; overflow: hidden; background: #1c1612; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.t-barre { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #2a2017; }
.t-barre span { width: 10px; height: 10px; border-radius: 50%; background: #6a5a44; }
.t-barre span:nth-child(1) { background: #c0584a; } .t-barre span:nth-child(2) { background: #c9a24a; } .t-barre span:nth-child(3) { background: #5a9a5a; }
.t-barre em { flex: 1; margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: #14100c; color: #a89a82; font: 400 12px Inter, system-ui, sans-serif; text-align: center; }
.t-ecran { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #14100c; font: 400 clamp(10px, 1.5vw, 15px) / 1.35 Inter, system-ui, sans-serif; color: #efe6d6; }
.sc { position: absolute; inset: 0; animation: t-entree .5s ease; }
@keyframes t-entree { from { opacity: 0; } to { opacity: 1; } }

/* champs, pastilles, boutons */
.t-champ { display: block; min-height: 2.3em; margin-top: .3em; padding: .5em .8em; border: 1px solid #5a4a34; border-radius: .5em; background: #1f1812; color: #efe6d6; }
.t-champ.petit { display: inline-block; min-width: 9em; margin: 0 0 0 1em; }
.t-champ.tape::after { content: "|"; color: var(--or); animation: t-curseur .6s steps(1) infinite; }
@keyframes t-curseur { 50% { opacity: 0; } }
.t-pastilles { display: inline-flex; gap: .5em; margin-left: 1em; vertical-align: middle; }
.t-pastilles i { font-style: normal; padding: .25em .9em; border: 1px solid #5a4a34; border-radius: 999px; transition: background .25s, color .25s, transform .25s; }
.t-pastilles i.sel { background: var(--or); border-color: var(--or); color: #1a120a; transform: scale(1.08); }
.t-ligne { margin-top: .8em; display: flex; align-items: center; flex-wrap: wrap; color: #c9bba3; }
.t-bouton { margin-top: 1em; padding: .6em 1.6em; border: 0; border-radius: 999px; background: var(--or); color: #1a120a; font: 600 1em Inter, sans-serif; transition: transform .2s; }
.t-bouton.clic { animation: t-clic .5s; }
@keyframes t-clic { 40% { transform: scale(.92); box-shadow: 0 0 0 .6em rgba(196, 154, 74, .35); } }

/* scène 1 */
.t-form { position: absolute; left: 4%; top: 5%; width: 60%; }
.t-form label { display: block; position: relative; color: #c9bba3; margin-bottom: .7em; }
.t-sugg { position: absolute; left: 0; right: 0; top: 100%; z-index: 3; margin-top: -.2em; padding: .6em .8em; border: 1px solid var(--or); border-radius: .5em; background: #2a2017; color: #efe6d6; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
.t-sugg.on { opacity: 1; transform: none; }
.t-decors { display: flex; gap: .6em; margin-left: 1em; }
.t-decors figure { margin: 0; width: 8.5em; border: 2px solid transparent; border-radius: .5em; overflow: hidden; background: #1f1812; transition: border-color .3s, transform .3s; }
.t-decors figure.sel { border-color: var(--or); transform: scale(1.06); }
.t-decors img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; display: block; }
.t-decors figcaption { padding: .2em .4em; font-size: .72em; text-align: center; }
.t-toast { position: absolute; right: 4%; top: 28%; width: 28%; padding: 1em 1.1em; border: 1px solid var(--or); border-radius: .8em; background: #2a2017; opacity: 0; transform: translateY(1em) scale(.95); transition: opacity .5s, transform .5s; }
.t-toast.on { opacity: 1; transform: none; }
.t-toast b { display: block; color: #8fc49a; font-size: 1.15em; margin-bottom: .3em; }
.t-toast span { font-size: .8em; color: #c9bba3; word-break: break-all; } .t-toast u { text-decoration: none; color: var(--or); }

/* scènes 2 et 3 : la salle et son panneau */
.t-salle { position: absolute; left: 0; top: 0; bottom: 0; width: 66%; overflow: hidden; }
.t-fond { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-teinte { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: 0; transition: opacity .6s, background .6s; }
.t-teinte.on { opacity: .55; }
.t-meuble { position: absolute; font-size: 3.4em; opacity: 0; transform: translateY(-2.5em) scale(.6); filter: drop-shadow(0 .3em .3em rgba(0, 0, 0, .5)); }
.t-meuble.pose { animation: t-pose .7s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes t-pose { from { opacity: 0; transform: translateY(-2.5em) scale(.6); } to { opacity: 1; transform: none; } }
.t-panneau { position: absolute; right: 0; top: 0; bottom: 0; width: 34%; padding: 5% 4%; background: #1c1612; border-left: 1px solid #3a2d1f; }
.t-panneau h4, .t-fenetre h4 { margin: 0 0 .6em; font: 600 1.15em "Cormorant Garamond", Georgia, serif; color: var(--or); }
.t-teintes { display: flex; gap: .5em; margin-bottom: 1.2em; }
.t-teintes i { width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--c); border: 2px solid transparent; transition: transform .25s, border-color .25s; }
.t-teintes i.sel { border-color: #fff; transform: scale(1.2); }
.t-icones { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.t-icones i { font-style: normal; text-align: center; padding: .5em 0; font-size: 1.7em; border: 1px solid #4a3a28; border-radius: .5em; transition: background .25s, transform .25s; }
.t-icones i.sel { background: #4a3a24; border-color: var(--or); transform: scale(1.1); }
.t-note { margin: 1.2em 0 0; color: #c9bba3; font-size: .95em; } .t-note b { color: var(--or); }

.t-emplacement { position: absolute; left: 41%; top: 26%; width: 17%; height: 34%; display: grid; place-items: center; border: 2px dashed var(--or); border-radius: .3em; color: var(--or); font: 600 1.6em Inter, sans-serif; animation: t-respire 1.6s ease-in-out infinite; }
@keyframes t-respire { 50% { background: rgba(196, 154, 74, .18); } }
.t-emplacement.clic { background: rgba(196, 154, 74, .35); } .t-emplacement.vide { display: none; }
.t-toile { position: absolute; left: 41%; top: 26%; width: 17%; height: 34%; opacity: 0; transform: translate(60%, -20%) scale(1.5); }
.t-toile img { width: 100%; height: 100%; object-fit: cover; display: block; border: .35em solid #c9a24a; box-shadow: 0 .6em 1.2em rgba(0, 0, 0, .55); box-sizing: border-box; }
.t-toile.pose { animation: t-vole .8s cubic-bezier(.3, 1, .4, 1) forwards; }
@keyframes t-vole { to { opacity: 1; transform: none; } }
.t-cartel { position: absolute; left: 41%; top: 63%; padding: .3em .7em; background: rgba(20, 16, 12, .9); border: 1px solid var(--or); border-radius: .3em; font-size: .85em; opacity: 0; transition: opacity .5s; } .t-cartel.on { opacity: 1; }
.t-cartel small { display: block; color: #c9bba3; font-size: .8em; }
.t-fenetre { position: absolute; right: 4%; top: 7%; width: 48%; padding: 1em 1.2em 1.2em; border: 1px solid var(--or); border-radius: .8em; background: #1c1612; box-shadow: 0 1em 2.5em rgba(0, 0, 0, .6); opacity: 0; transform: translateY(1em); transition: opacity .4s, transform .4s; }
.t-fenetre.on { opacity: 1; transform: none; }
.t-photo { position: relative; height: 9.5em; overflow: hidden; border-radius: .4em; background: #000; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.t-photo.or img { box-shadow: inset 0 0 0 .4em #c9a24a; }
.t-recadre { position: absolute; inset: 14% 10% 8% 16%; border: 2px solid var(--or); transform: skewY(5deg) rotate(-3deg); transition: all 1s ease; }
.t-recadre.net { inset: 4% 4%; transform: none; }
.t-recadre i { position: absolute; width: .8em; height: .8em; background: var(--or); border-radius: 50%; }
.t-recadre i:nth-child(1) { left: -.4em; top: -.4em; } .t-recadre i:nth-child(2) { right: -.4em; top: -.4em; } .t-recadre i:nth-child(3) { left: -.4em; bottom: -.4em; } .t-recadre i:nth-child(4) { right: -.4em; bottom: -.4em; }

/* légende : étapes, texte, pause */
.t-legende { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; }
.t-etapes { display: flex; gap: 8px; }
.t-etapes button { position: relative; overflow: hidden; padding: 8px 16px; border: 1px solid var(--line, #5a4a34); border-radius: 999px; background: transparent; color: var(--ink-soft, #c9bba3); font: 500 .95rem Inter, system-ui, sans-serif; cursor: pointer; }
.t-etapes button.on { border-color: var(--or); color: var(--ink, #efe6d6); }
.t-etapes b { color: var(--or); }
.t-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--or); }
.t-legende p { flex: 1 1 260px; margin: 0; color: var(--ink-soft, #c9bba3); }
.t-pause { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line, #5a4a34); background: transparent; color: var(--ink, #efe6d6); cursor: pointer; font-size: .8rem; }
@media (max-width: 640px) {
  .t-ecran { aspect-ratio: 4 / 3; }
  .t-form { width: 92%; } .t-toast { right: 4%; top: auto; bottom: 4%; width: 60%; }
  .t-decors figure { width: 6.2em; }
  .t-salle { width: 100%; } .t-panneau { top: auto; height: 38%; width: 100%; border-left: 0; border-top: 1px solid #3a2d1f; }
  .t-fenetre { width: 70%; right: 15%; }
}
@media (prefers-reduced-motion: reduce) { .sc, .t-emplacement { animation: none; } }

/* page d'aide : sommaire, étapes, champs, astuces */
.doc .vedette { padding-bottom: 8px; }
.doc .sommaire { margin: 32px 0 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); position: sticky; top: 8px; z-index: 5; backdrop-filter: blur(6px); }
.doc .sommaire strong { display: block; margin-bottom: 6px; font: 600 1.1rem var(--serif); }
.doc .sommaire ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.doc .sommaire a { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; text-decoration: none; color: var(--ink-soft); }
.doc .sommaire a:hover, .doc .sommaire a:focus-visible { border-color: var(--accent); color: var(--ink); }
.doc .bloc { scroll-margin-top: 120px; }
.doc .bloc > .kicker { margin: 0 0 6px; }
.doc h3 { margin: 22px 0 8px; font: 600 1.25rem/1.25 var(--serif); }
.doc .pas { counter-reset: pas; list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 10px; }
.doc .pas li { counter-increment: pas; position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--ink-soft); }
.doc .pas li::before { content: counter(pas); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #1a120a; font: 600 1rem var(--serif); }
.doc .pas b, .doc .liste b, .doc .champs b { color: var(--ink); font-weight: 500; }
.doc .liste { margin: 8px 0 14px; padding-left: 1.2em; color: var(--ink-soft); display: grid; gap: 7px; }
.doc .champs { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 0; margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc .champs dt, .doc .champs dd { margin: 0; padding: 11px 14px; border-top: 1px solid var(--line); }
.doc .champs dt:first-of-type, .doc .champs dt:first-of-type + dd { border-top: 0; }
.doc .champs dt { background: var(--bg-2); font-weight: 500; color: var(--ink); }
.doc .champs dd { color: var(--ink-soft); }
.doc .astuce { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: rgba(196, 154, 74, .08); color: var(--ink-soft); }
.doc .astuce b { margin-right: 6px; color: var(--accent); text-transform: uppercase; font-size: .75rem; letter-spacing: .14em; font-weight: 600; }
.doc .badge { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--ink); }
.doc .deux ul { margin-top: 4px; }
@media (max-width: 640px) {
  .doc .champs { grid-template-columns: 1fr; }
  .doc .champs dt { border-top: 1px solid var(--line); } .doc .champs dt:first-of-type { border-top: 0; }
  .doc .champs dd { border-top: 0; padding-top: 0; }
  .doc .sommaire { position: static; }
}

/* page d'aide à l'aménagement : démonstrations filmées, rubriques, touches */
.video-aide { margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.video-aide video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-aide figcaption { padding: 10px 16px; background: var(--bg-2); color: var(--ink-soft); font-size: .92rem; }
.rubriques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.rubriques div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.rubriques h3 { margin: 0 0 4px; font-size: 1.1rem; }
.rubriques p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.45; }
@media (max-width: 760px) { .rubriques { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .rubriques { grid-template-columns: 1fr; } }
.doc kbd { display: inline-block; min-width: 1.6em; padding: 0 .45em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: #1f1812; color: var(--ink); font: 500 .85em Inter, system-ui, sans-serif; text-align: center; }

/* inventaire du mobilier : une fiche par meuble, ses réglages, ses variantes en vignettes */
.recherche-meuble { display: grid; gap: 4px; max-width: 520px; margin: 22px 0 0; color: var(--ink-soft); font-size: .9rem; }
.recherche-meuble input { font: inherit; font-size: 1rem; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); }
.recherche-meuble input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.note-meuble { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }
.meuble { margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.meuble[hidden], section.bloc[hidden] { display: none; }
.meuble > header { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.meuble > header img { width: 150px; height: 150px; border-radius: 12px; object-fit: cover; background: #cfc8bb; }
.meuble h3 { margin: 0 0 4px; font: 600 1.5rem/1.2 var(--serif); }
.meuble > header p { margin: 0; color: var(--ink-soft); }
.reglage { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.reglage h4 { margin: 0 0 10px; font: 600 1rem Inter, system-ui, sans-serif; color: var(--accent); letter-spacing: .02em; }
.reglage h4 span { margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: rgba(196, 154, 74, .15); color: var(--ink-soft); font-weight: 500; font-size: .78rem; }
.variantes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.variantes li { text-align: center; font-size: .8rem; color: var(--ink-soft); line-height: 1.25; border: 2px solid transparent; border-radius: 10px; padding: 3px 3px 6px; transition: border-color .2s, background .2s; }
.variantes li img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; margin-bottom: 4px; background: #cfc8bb; object-fit: cover; }
.variantes li.trouve { border-color: var(--accent); background: rgba(196, 154, 74, .12); color: var(--ink); }
@media (max-width: 560px) { .meuble > header { grid-template-columns: 96px 1fr; gap: 12px; } .meuble > header img { width: 96px; height: 96px; } .variantes { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); } }

/* animation SVG (images/aide/accrocher-2d.svg) dans le cadre des vidéos d'aide */
.anim-aide img { display: block; width: 100%; height: auto; background: #14100c; }
