:root {
  --bg: #0c0b0a;
  --bg-2: #15130f;
  --line: rgba(243, 237, 228, 0.12);
  --ink: #f3ede4;
  --muted: rgba(243, 237, 228, 0.6);
  --accent: #d9b38c;
  --accent-ink: #1a140d;
  --radius: 18px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
.pack .price .quote { font-size: 1.5rem; color: var(--accent); }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95em 1.6em; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: .95rem;
  transition: transform .4s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(243,237,228,.08); }
.btn-small { padding: .6em 1.1em; font-size: .85rem; }
.btn-wa { background: #25d366; color: #062b14; }
.btn-wa:hover { background: #3ee07c; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(12,11,10,.7); backdrop-filter: blur(14px); border-color: var(--line); }
.logo { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .04em; }
.nav-links { display: flex; gap: 2rem; font-size: .9rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem clamp(1rem, 6vw, 5rem) 0;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
/* image d'accueil affichée dès le 1er instant (avant la vidéo) : l'écran n'est jamais vide, même avec une connexion lente */
.hero-bg { background: #0c0b0a url("assets/hero-frames/shot1-studio-dark.webp") 85% center / cover no-repeat; }
.hero-bg.vid-on { background-image: none; }
@media (max-width: 700px) { .hero-bg:not(.vid-on) { background-image: url("assets/hero-frames/hero-mobile-1-studio.webp"); background-position: center; } }
.hero-bg video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; object-position: 85% center; }
.hero-bg video.on { opacity: .9; }
/* avec vidéo : on garde le texte lisible (ombre à gauche + en bas) */
.hero-bg.has-video::before { background: linear-gradient(90deg, rgba(12,11,10,.85) 0%, rgba(12,11,10,.35) 55%, transparent 100%); filter: none; animation: none; inset: 0; z-index: 1; }
.hero-bg.has-video::after { z-index: 1; }
/* vidéos HD : grain cinéma léger + vignette */
.hero-bg video { filter: contrast(1.06) saturate(1.05); }
.hero-film {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 65% 45%, transparent 45%, rgba(12,11,10,.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: .16;
  animation: film 1s steps(4) infinite;
}
@keyframes film { 25% { background-position: 0 0, 40px -30px; } 50% { background-position: 0 0, -30px 20px; } 75% { background-position: 0 0, 20px 40px; } }
.hero-bg::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(217,179,140,.28), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(160,90,70,.25), transparent 70%),
    radial-gradient(45% 50% at 60% 80%, rgba(90,70,140,.22), transparent 70%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg));
}
@keyframes drift { to { transform: translate(4%, -3%) rotate(8deg) scale(1.1); } }

.hero-inner { max-width: 1100px; }
.eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 7rem); line-height: .98; letter-spacing: -.02em;
}
.hero-title em { font-style: italic; color: var(--muted); font-weight: 300; }
.rotator {
  display: inline-grid; color: var(--accent);
  padding-bottom: .16em; margin-bottom: -.16em;
  clip-path: inset(0 -.3em 0 -.3em);
  transition: width .6s var(--ease);
}
.rotator span {
  grid-area: 1 / 1; white-space: nowrap;
  transform: translateY(110%); opacity: 0;
  transition: transform .7s var(--ease), opacity .5s;
}
.rotator span.on { transform: none; opacity: 1; }
/* téléphone : le mot qui change passe sur sa propre ligne (sinon il sort du cadre) */
@media (max-width: 640px) {
  .rotator { display: grid; width: auto !important; margin-bottom: 0; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero-bg.has-video::before { background: linear-gradient(180deg, rgba(12,11,10,.35) 0%, rgba(12,11,10,.6) 45%, rgba(12,11,10,.4) 100%); }
  .hero-bg video { object-position: center; }
  .nav { padding-inline: .9rem; gap: .5rem; }
  .logo { font-size: 1.1rem; }
  .nav-right { gap: .45rem; }
  .nav-right .btn-small { padding: .55em .85em; font-size: .78rem; }
}
.rotator span.off { transform: translateY(-110%); opacity: 0; }

.hero-sub { max-width: 560px; margin: 2rem 0 2.4rem; color: var(--muted); font-size: 1.08rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

.marquee { margin-top: 5rem; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: scroll 50s linear infinite; padding-bottom: 3rem; }
.marquee-track .ph { width: 180px; aspect-ratio: 3/4; border-radius: 14px; flex: none; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee-track .mq-item {
  position: relative; margin: 0; overflow: hidden; background: #121010;
  border: 1px solid rgba(243,237,228,.08);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
}
.marquee-track .mq-item img { transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9) brightness(.92); }
.marquee-track .mq-item:hover img { transform: scale(1.07); filter: none; }
.marquee-track .mq-item:nth-child(even) { transform: translateY(18px); }
.mq-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .8rem .7rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,237,228,.85);
  background: linear-gradient(transparent, rgba(12,11,10,.75));
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- PLACEHOLDER (quand pas d'image) ---------- */
.ph {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, hsl(var(--h,30) 30% 22%), hsl(calc(var(--h,30) + 30) 25% 10%));
  display: flex; align-items: flex-end;
}
.ph-label {
  position: absolute; inset: auto 0 0 0; padding: .8rem;
  font-size: .75rem; color: rgba(243,237,228,.75);
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.ph-mono {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 3.2rem; font-style: italic; color: rgba(243,237,228,.18);
}

/* ---------- SECTIONS ---------- */
.section { padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 6vw, 5rem); max-width: 1400px; margin: 0 auto; }
.section-head { margin-bottom: 3rem; max-width: 720px; }
.section-head h2, .order h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.015em; }
.lead { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* equation */
.equation { text-align: center; }
.eq { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1rem; font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 2.2rem); }
.eq-op { color: var(--accent); }
.eq-strike { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); font-style: italic; }
.eq-answer { margin-top: 1.4rem; font-size: clamp(1.6rem, 4vw, 3rem); font-family: var(--serif); }
.eq-answer em { color: var(--accent); }

/* univers */
.univers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.u-card {
  position: relative; padding: 2.2rem; min-height: 340px; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem;
  transition: transform .6s var(--ease), border-color .4s;
}
.u-card { isolation: isolate; min-height: 460px; perspective: 900px; }
.u-card::before { /* halo doré derrière l'objet */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(55% 45% at 50% 38%, rgba(217,179,140,.22), transparent 70%), var(--bg-2);
  transition: opacity .6s;
}
.u-card::after { /* ombre au sol sous l'objet */
  content: ""; position: absolute; left: 30%; right: 30%; top: 64%; height: 18px; z-index: -1;
  background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); filter: blur(6px);
  animation: u-shadow 6s ease-in-out infinite;
}
/* l'objet 3D qui flotte et suit la souris */
.u-obj {
  position: absolute; left: 50%; top: 7%; z-index: 0; pointer-events: none;
  width: auto; height: 50%; max-width: 72%; object-fit: contain;
  transform: translateX(-50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)) drop-shadow(0 0 22px rgba(217,179,140,.18));
  animation: u-float 6s ease-in-out infinite;
  transition: transform .4s var(--ease);
}
.u-card:nth-child(2) .u-obj, .u-card:nth-child(2)::after { animation-delay: -1.5s; }
.u-card:nth-child(3) .u-obj, .u-card:nth-child(3)::after { animation-delay: -3s; }
.u-card:nth-child(4) .u-obj, .u-card:nth-child(4)::after { animation-delay: -4.5s; }
@keyframes u-float { 50% { translate: 0 -14px; } }
@keyframes u-shadow { 50% { transform: scale(.82); opacity: .6; } }
.u-card:hover { transform: translateY(-6px); border-color: rgba(217,179,140,.4); }
.u-card:hover .u-obj { filter: drop-shadow(0 30px 34px rgba(0,0,0,.6)) drop-shadow(0 0 34px rgba(217,179,140,.35)); }
.u-num { position: absolute; top: 1.6rem; left: 2.2rem; font-size: .8rem; color: var(--muted); }
.u-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.3rem); line-height: 1.1; overflow-wrap: anywhere; }
.u-card p { color: var(--muted); max-width: 32ch; }
.u-arrow { position: absolute; top: 1.4rem; right: 2rem; font-size: 1.4rem; transition: transform .4s var(--ease); }
.u-card:hover .u-arrow { transform: translateX(6px); }

/* filters */
.filters { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .55em 1.2em; border-radius: 999px; border: 1px solid var(--line);
  font-size: .9rem; color: var(--muted); transition: all .3s;
}
.chip:hover { color: var(--ink); border-color: rgba(243,237,228,.3); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips-sm .chip { font-size: .8rem; padding: .4em .95em; }
.chip small { margin-left: .45em; font-size: .72em; opacity: .55; }
.chip:disabled { opacity: .25; cursor: not-allowed; }
.ruler-label { align-self: center; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-right: .4rem; }

/* ---------- MANNEQUIN 3D (planche de vues) ---------- */
.spin {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: end center; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 75%, rgba(217,179,140,.16), transparent 70%), #121010;
  perspective: 900px; cursor: ew-resize; touch-action: pan-y;
}
.spin::after { /* ombre au sol */
  content: ""; position: absolute; bottom: 4%; left: 25%; right: 25%; height: 5%;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(4px);
}
.spin-img {
  height: 100%; aspect-ratio: var(--ar, .5); max-width: 100%;
  background-repeat: no-repeat; background-position: 0 0;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease), background-position 0s;
  position: relative; z-index: 1;
  /* étalonnage commun : même rendu pour tous les shootings */
  filter: saturate(.88) contrast(1.05) sepia(.06) drop-shadow(0 18px 18px rgba(0,0,0,.55));
}
/* visage en médaillon : le client voit le vrai visage de près */
.card .media { position: relative; }
.card .media > img.face {
  position: absolute; right: .6rem; bottom: .6rem; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(243,237,228,.85); box-shadow: 0 6px 16px rgba(0,0,0,.5);
  transition: transform .4s var(--ease), width .4s var(--ease), height .4s var(--ease);
}
.card:hover .media > img.face { width: 78px; height: 78px; transform: none; }
.spin-hint {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  font-size: .68rem; letter-spacing: .08em; padding: .25em .6em; border-radius: 999px;
  background: rgba(12,11,10,.55); border: 1px solid var(--line); color: var(--muted);
  transition: opacity .3s;
}
.spin.active .spin-hint { opacity: 0; }
.spin-vid { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .4s; }
.spin.vid .spin-vid { opacity: 1; }
.card:hover .media > .spin { transform: none; }
.marquee .spin-hint { display: none; }
/* bande du hero : mannequins "en l'air", sans carte ni cadre */
.marquee-track > .spin.ph {
  background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
  width: 150px; aspect-ratio: 9 / 20; cursor: ew-resize;
}
.marquee-track > .spin.ph::after { display: none; }
.marquee-track > .spin .spin-img { filter: drop-shadow(0 24px 22px rgba(0,0,0,.6)); }
.marquee-track { gap: 1.6rem; align-items: flex-end; }
.marquee-track > .spin:nth-child(even) { transform: translateY(18px); }

/* rangée qu'on fait glisser (casting) */
.row-wrap { position: relative; }
.row {
  display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: .3rem .1rem 1rem;
}
.row::-webkit-scrollbar { display: none; }
.row > .card { flex: 0 0 clamp(170px, 19vw, 220px); scroll-snap-align: start; }
/* deux rangées (locations) */
.row.row2 {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto);
  grid-auto-columns: clamp(220px, 26vw, 290px);
}
.row.row2 > .card { scroll-snap-align: start; }
.row > .empty { flex: 1; }
.row-nav {
  position: absolute; top: 42%; z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
  background: rgba(21,19,15,.85); border: 1px solid var(--line); color: var(--ink);
  backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s, background .3s;
}
.row-nav:hover { background: var(--accent); color: var(--accent-ink); }
.row-nav.prev { inset-inline-start: -.6rem; }
.row-nav.next { inset-inline-end: -.6rem; }
[dir="rtl"] .row-nav { transform: scaleX(-1); }
.row-wrap.can-prev .row-nav.prev, .row-wrap.can-next .row-nav.next { opacity: 1; pointer-events: auto; }
.row-wrap::after { /* fondu sur le bord : on devine qu'il y a la suite */
  content: ""; position: absolute; top: 0; bottom: 1rem; inset-inline-end: 0; width: 60px; pointer-events: none;
  background: linear-gradient(to left, var(--bg), transparent); opacity: 0; transition: opacity .3s;
}
[dir="rtl"] .row-wrap::after { background: linear-gradient(to right, var(--bg), transparent); }
.row-wrap.can-next::after { opacity: 1; }
.row-hint { margin-top: .4rem; font-size: .8rem; color: var(--muted); }
@media (hover: hover) { .row-hint { display: none; } }

/* sélecteur de langue */
.nav-right { display: flex; align-items: center; gap: .8rem; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { padding: .35em .7em; border-radius: 999px; font-size: .78rem; color: var(--muted); }
.lang button.active { background: var(--ink); color: var(--bg); }
.lang button:hover:not(.active) { color: var(--ink); }

/* arabe : écriture de droite à gauche + polices arabes */
[lang="ar"] body { font-family: "Tajawal", var(--sans); }
[lang="ar"] .hero-title, [lang="ar"] .section-head h2, [lang="ar"] .order h2, [lang="ar"] .eq,
[lang="ar"] .eq-answer, [lang="ar"] .u-card h3, [lang="ar"] .f-card h3, [lang="ar"] .pack h3,
[lang="ar"] .custom-media strong, [lang="ar"] .steps span { font-family: "Amiri", var(--serif); }
[lang="ar"] * { letter-spacing: 0 !important; }
[lang="ar"] .eyebrow, [lang="ar"] .mq-item figcaption { text-transform: none; }
[lang="ar"] .hero-title { line-height: 1.25; }
[lang="ar"] .hero-title em { font-style: normal; }
[dir="rtl"] .hero-bg.has-video::before { background: linear-gradient(270deg, rgba(12,11,10,.85) 0%, rgba(12,11,10,.35) 55%, transparent 100%); }
[dir="rtl"] .u-arrow, [dir="rtl"] .pack li::before { transform: scaleX(-1); }
[dir="rtl"] .pack li::before { margin-right: 0; margin-left: .6rem; display: inline-block; }
[dir="rtl"] .card .check, [dir="rtl"] .card .media > img.face { right: auto; left: .6rem; }
[dir="rtl"] .card .check { left: .7rem; }
[dir="rtl"] .u-num { left: auto; right: 2.2rem; }
[dir="rtl"] .u-arrow { right: auto; left: 2rem; }
[dir="rtl"] .spin-hint { left: auto; right: .7rem; }
[dir="rtl"] .card, [dir="rtl"] .f-card { text-align: right; }
@media (max-width: 820px) { .lang button { padding: .3em .55em; } }

/* grids */
.grid { display: grid; gap: 1rem; }
.models { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.locs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.port { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); text-align: left;
  animation: card-in .6s var(--ease) both;
  transition: transform .5s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); }
.card .media { aspect-ratio: 3/4; overflow: hidden; }
.locs .card .media { aspect-ratio: 4/3; }
.port .card .media { aspect-ratio: 16/10; }
.card .media > * { height: 100%; transition: transform 1s var(--ease); }
.card:hover .media > * { transform: scale(1.06); }
.card .meta { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; font-size: .9rem; background: var(--bg-2); }
.card .meta small { color: var(--muted); }
/* portfolio : titre puis catégorie en dessous (les titres longs ne se collent plus à la catégorie) */
#portGrid .card .meta { flex-direction: column; align-items: flex-start; gap: .15rem; }
#portGrid .card .meta small { font-size: .78rem; }
.card .check {
  position: absolute; top: .7rem; right: .7rem; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
  color: transparent;
  background: rgba(12,11,10,.5); border: 1px solid rgba(243,237,228,.4); backdrop-filter: blur(6px);
  transition: all .3s;
}
.card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card.selected .check { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.empty { color: var(--muted); padding: 2rem 0; grid-column: 1 / -1; }

/* "Votre lieu" : le client propose son propre endroit */
.custom-loc { cursor: pointer; border-style: dashed; border-color: rgba(217,179,140,.45); }
.custom-media {
  display: flex; flex-direction: column; justify-content: center; gap: .45rem;
  padding: 1rem 1.1rem; text-align: left;
  background: radial-gradient(90% 80% at 0% 0%, rgba(217,179,140,.16), transparent 70%), var(--bg-2);
}
.custom-pin { font-size: 1.5rem; }
.custom-media strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.custom-media p { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.custom-media small { color: var(--accent); font-size: .72rem; }
.custom-media input {
  width: 100%; padding: .6em .8em; border-radius: 10px; font: inherit; font-size: .88rem;
  background: rgba(12,11,10,.6); color: var(--ink); border: 1px solid var(--line); outline: none;
}
.custom-media input:focus { border-color: var(--accent); }
.custom-loc:hover .media > * { transform: none; }
.card .media.custom-media > * { height: auto; flex: none; }

/* formats */
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.f-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); text-align: left; transition: all .4s var(--ease); }
.f-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; margin-bottom: .4rem; }
.f-card p { color: var(--muted); }
.f-card:hover { border-color: rgba(243,237,228,.3); }
.f-card.selected { background: var(--ink); color: var(--bg); }
.f-card.selected p { color: rgba(12,11,10,.7); }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; counter-reset: s; }
.steps li { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.steps span { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--accent); line-height: 1; }
.steps h4 { font-size: 1.1rem; margin: .6rem 0 .3rem; font-weight: 600; }
.steps p { color: var(--muted); font-size: .95rem; }

/* packs */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.pack {
  position: relative; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem; background: var(--bg-2);
  transition: transform .5s var(--ease), border-color .3s;
}
.pack:hover { transform: translateY(-4px); }
.pack.featured { border-color: var(--accent); background: linear-gradient(170deg, rgba(217,179,140,.14), var(--bg-2) 60%); }
.pack .badge { position: absolute; top: -.7rem; right: 1.4rem; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; }
.pack h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; }
.pack .price { font-family: var(--serif); font-size: 2.4rem; }
.pack .price small { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.pack .price .from { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .15rem; }
.pack .desc { color: var(--muted); font-size: .92rem; }
.pack ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .92rem; flex: 1; }
.pack li::before { content: "✦"; color: var(--accent); margin-right: .6rem; font-size: .75rem; }
.pack .btn { justify-content: center; }
.pack.selected { box-shadow: 0 0 0 2px var(--accent); }

/* order */
.order {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end;
  padding: clamp(2rem, 5vw, 4rem); border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 100% 0%, rgba(217,179,140,.15), transparent 60%), var(--bg-2);
}
@media (max-width: 820px) { .order { grid-template-columns: 1fr; } }
.summary { list-style: none; margin-top: 1.6rem; display: flex; flex-direction: column; gap: .4rem; color: var(--muted); }
.summary b { color: var(--ink); font-weight: 500; }
.order-cta { display: flex; flex-direction: column; gap: .7rem; }
.order-cta .btn { justify-content: center; }

/* options de commande : égérie exclusive + aperçu gratuit */
.order-opts { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.opt { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .95rem; }
.opt input, .opt-dur input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; flex: none; }
.opt-dur { display: flex; gap: 1.2rem; padding-inline-start: 1.7rem; font-size: .9rem; color: var(--muted); }
.opt-dur[hidden] { display: none; }
.opt-dur label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.opt-note { font-size: .88rem; color: var(--accent); }
.zoom-exclu { font-size: .85rem; color: var(--accent); }

/* bandeau de confiance sous les boutons du haut */
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; font-size: .88rem; color: var(--ink); opacity: .85; }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust li::before { content: "✦"; color: var(--accent); font-size: .7rem; }

/* nos engagements */
.engage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 980px) { .engage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .engage { grid-template-columns: 1fr; } }
.e-card { position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.e-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); border: 1px solid rgba(217,179,140,.35); background: rgba(217,179,140,.08); }
.e-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.e-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; margin-top: .2rem; }
.e-card p { color: var(--muted); font-size: .95rem; }
.e-card .e-tags { color: var(--accent); font-size: .82rem; }
.e-card-cta { border-color: var(--accent); background: linear-gradient(170deg, rgba(217,179,140,.14), var(--bg-2) 60%); }
.e-card-cta .btn { align-self: flex-start; margin-top: auto; }

/* sous les packs : ce qui est inclus partout */
.packs-note { margin: 1.6rem auto 0; max-width: 760px; color: var(--muted); font-size: .92rem; text-align: center; }
.packs-note b { color: var(--ink); font-weight: 500; }
.packs-dz { margin: .7rem auto 0; text-align: center; color: var(--muted); font-size: .85rem; }
/* petite case « vidéo d'essai » sous les packs */
.packs-mini { margin: 1rem auto 0; max-width: 760px; }
.pack-mini {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.1rem 1.4rem;
  border: 1px dashed rgba(217,179,140,.45); border-radius: var(--radius); background: var(--bg-2);
}
.pack-mini.selected { box-shadow: 0 0 0 2px var(--accent); border-style: solid; }
.pack-mini .mini-tag { display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.pack-mini h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.pack-mini p { color: var(--muted); font-size: .88rem; margin-top: .25rem; max-width: 46ch; }
.pack-mini .mini-buy { display: flex; align-items: center; gap: .9rem; flex: none; }
.pack-mini .price { font-family: var(--serif); font-size: 1.7rem; white-space: nowrap; }
.pack-mini .price small { font-family: var(--sans); font-size: .78rem; color: var(--muted); }
@media (max-width: 640px) {
  .pack-mini { flex-direction: column; align-items: stretch; text-align: start; }
  .pack-mini .mini-buy { justify-content: space-between; }
}

/* footer */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2.5rem clamp(1rem, 6vw, 5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer [data-brand] { font-family: var(--serif); color: var(--ink); font-size: 1.1rem; }

/* pied de page : nom + réseaux + mentions */
.footer { align-items: center; }
.foot-brand { display: flex; flex-direction: column; gap: .2rem; }
.foot-owner { font-size: .85rem; color: var(--muted); }
.foot-social { display: flex; gap: .6rem; }
.foot-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink); transition: background .3s, color .3s, border-color .3s;
}
.foot-social a:hover, .foot-social a:focus-visible { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.foot-social svg { width: 18px; height: 18px; }
.foot-legal { display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; text-align: end; }
.foot-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; padding: 0; }
.order-terms { font-size: .8rem; color: var(--muted); text-align: center; }
@media (max-width: 700px) { .foot-legal { align-items: flex-start; text-align: start; } }

/* bouton loupe sur les cartes mannequin */
.zoom-btn {
  position: absolute; bottom: .6rem; inset-inline-start: .6rem; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem;
  background: rgba(12,11,10,.6); border: 1px solid rgba(243,237,228,.4); color: var(--ink); backdrop-filter: blur(6px);
  transition: background .3s, color .3s;
}
.zoom-btn:hover, .zoom-btn:focus-visible { background: var(--accent); color: var(--accent-ink); }
.card .media > .zoom-btn { height: 34px; transform: none !important; }

/* vue agrandie d'un mannequin */
.zoom {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: rgba(8,7,6,.86); backdrop-filter: blur(6px);
  padding: calc(1rem + env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) calc(1rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
}
.zoom-box { position: relative; width: min(980px, 100%); max-height: 100%; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; }
.zoom-body { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; }
.zoom-stage { height: min(78vh, 720px); }
.zoom-stage .spin { height: 100%; }
.zoom-stage .spin-hint { display: none; }
.zoom-stage > img, .zoom-stage > .ph { height: 100%; object-fit: contain; }
.zoom-side { padding: 2rem; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.zoom-face { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.zoom-side h3 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; }
.zoom-meta { color: var(--accent); letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.zoom-hint { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) {
  .zoom-body { grid-template-columns: 1fr; }
  .zoom-stage { height: 62vh; }
  .zoom-side { padding: 1.2rem 1.4rem 1.6rem; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .zoom-face { width: 56px; height: 56px; }
  .zoom-side h3 { font-size: 1.6rem; }
  .zoom-hint { width: 100%; order: 3; }
  .zoom-side .btn { order: 4; width: 100%; justify-content: center; }
}

/* portfolio : carte cliquable + mention "personnes fictives" */
.port .card { cursor: zoom-in; }
.port .card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.port-note { margin: 1.4rem auto 0; max-width: 72ch; text-align: center; color: var(--muted); font-size: .78rem; line-height: 1.6; opacity: .85; }
.port-note::before, .lb-note::before { content: "ⓘ "; color: var(--accent); }

/* portfolio en grand (lightbox) */
.lb {
  position: fixed; inset: 0; z-index: 160;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem;
  background: rgba(8,7,6,.95); backdrop-filter: blur(8px);
  padding: calc(.8rem + env(safe-area-inset-top, 0px)) max(.8rem, env(safe-area-inset-right, 0px)) calc(.8rem + env(safe-area-inset-bottom, 0px)) max(.8rem, env(safe-area-inset-left, 0px));
  animation: lb-in .25s ease both;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { margin: 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; }
.lb-stage { display: grid; place-items: center; width: 100%; min-height: 0; }
.lb-stage > img, .lb-stage > video {
  display: block; max-width: 100%; width: auto; height: auto;
  max-height: calc(100vh - 9.5rem); max-height: calc(100dvh - 9.5rem);
  object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
  animation: lb-in .3s ease both;
}
.lb-cap { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .3rem 1rem; text-align: center; }
.lb-title { font-family: var(--serif); font-size: 1.25rem; }
.lb-tag { color: var(--accent); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.lb-count { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.lb-note { color: var(--muted); font-size: .7rem; line-height: 1.5; max-width: 62ch; text-align: center; opacity: .8; }
.lb-nav, .lb-x {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(20,18,16,.75); color: var(--ink);
  font-size: 1.9rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.lb-nav:hover, .lb-x:hover, .lb-nav:focus-visible, .lb-x:focus-visible { background: var(--accent); color: var(--accent-ink); }
.lb-x { position: absolute; z-index: 2; top: calc(.8rem + env(safe-area-inset-top, 0px)); inset-inline-end: 1rem; width: 42px; height: 42px; font-size: 1.05rem; }
[dir="rtl"] .lb-nav { transform: scaleX(-1); }
[lang="ar"] .lb-title { font-family: "Amiri", var(--serif); }
@media (max-width: 700px) {
  .lb { grid-template-columns: minmax(0, 1fr); padding-inline: .5rem; }
  .lb-fig { padding-bottom: 4.2rem; gap: .5rem; }
  .lb-stage > img, .lb-stage > video { max-height: calc(100vh - 16rem); max-height: calc(100dvh - 16rem); border-radius: 8px; }
  .lb-title { font-size: 1.1rem; }
  .lb-note { font-size: .64rem; padding-inline: .5rem; }
  .lb-nav { position: absolute; z-index: 2; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; }
  .lb-prev { inset-inline-start: 1rem; }
  .lb-next { inset-inline-end: 1rem; }
}

/* fenêtre des conditions générales */
html.terms-open { overflow: hidden; }
.terms {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: rgba(8,7,6,.78); backdrop-filter: blur(6px);
  padding: calc(1rem + env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) calc(1rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
}
.terms-box {
  position: relative; width: min(760px, 100%); max-height: 100%; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.6rem);
}
.terms-box h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .3rem; padding-inline-end: 2.5rem; }
.terms-box h3 { font-size: 1rem; margin: 1.3rem 0 .35rem; color: var(--accent); }
.terms-box p { color: var(--muted); font-size: .95rem; line-height: 1.7; max-width: 65ch; }
.terms-date { font-size: .8rem !important; margin-bottom: 1rem; }
.terms-accept { margin-top: 1.6rem; color: var(--ink) !important; font-weight: 600; }
.terms-x { position: absolute; top: 1rem; inset-inline-end: 1rem; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
[lang="ar"] .terms-box h2 { font-family: "Amiri", var(--serif); }

/* tray */
.tray {
  position: fixed; bottom: 1.2rem; left: 50%; z-index: 60;
  display: flex; align-items: center; gap: 1.2rem;
  padding: .5rem .5rem .5rem 1.3rem; border-radius: 999px;
  background: rgba(21,19,15,.85); backdrop-filter: blur(14px); border: 1px solid var(--line);
  font-size: .9rem;
  transform: translate(-50%, 160%); transition: transform .6s var(--ease);
}
.tray.show { transform: translate(-50%, 0); }

/* reveal on scroll : le contenu reste visible (aperçus, captures), seule la montée s'anime */
:root { color-scheme: dark; }
.reveal { opacity: .35; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- TÉLÉPHONE : tout ce qui se répète devient une rangée qu'on fait glisser ---------- */
@media (max-width: 700px) {
  .univers, .formats, .port, .packs, .steps {
    display: flex !important; gap: .8rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -1rem; padding: .3rem 1rem 1rem; scroll-padding-inline: 1rem;
  }
  .univers::-webkit-scrollbar, .formats::-webkit-scrollbar, .port::-webkit-scrollbar,
  .packs::-webkit-scrollbar, .steps::-webkit-scrollbar { display: none; }
  .univers > *, .formats > *, .port > *, .packs > *, .steps > * { flex: 0 0 78%; scroll-snap-align: start; }
  .steps > * { flex-basis: 62%; }
  .packs { padding-top: 1rem; } /* place pour le badge "Populaire" */

  /* sections plus compactes */
  .section { padding: 3.2rem 1rem; }
  .section-head { margin-bottom: 1.4rem; }
  .section-head h2, .order h2 { font-size: 2rem; }
  .lead { font-size: .95rem; margin-top: .6rem; }
  .equation { padding-block: 2.4rem; }
  .eq { font-size: 1.15rem; }
  .eq-answer { font-size: 1.5rem; }
  .u-card { min-height: 360px; padding: 1.5rem; }
  .u-card p { font-size: .9rem; }
  /* domaines : l'objet a sa propre place au-dessus du texte → il ne chevauche plus le titre,
     quelle que soit la taille de l'écran ou du texte (pas d'inclinaison 3D au doigt) */
  .u-card { justify-content: flex-start; padding-top: 3rem; }
  .u-obj { position: relative; left: auto; top: auto; display: block; height: 180px; width: auto; max-width: 86%;
    margin: 0 auto 1.1rem; transform: none; transition: none; }
  .u-card::after { top: calc(3rem + 168px); }
  .u-card h3 { margin-top: auto; }
  .f-card { padding: 1.4rem; }
  .pack { padding: 1.5rem; gap: .7rem; }
  .steps li { padding-top: 1rem; }
  .hero { padding-top: 6.5rem; min-height: 92svh; }
  .hero-sub { margin: 1.2rem 0 1.6rem; font-size: 1rem; }
  .hero-cta .btn { padding: .85em 1.3em; }
  .marquee { margin-top: 2.5rem; }
  .order { padding: 1.6rem; gap: 1.4rem; }
  .row-hint { display: block; }
}
@media (max-width: 700px) and (hover: hover) { .row-hint { display: none; } }

/* ---------- LETTRE DE CONTRÔLE (admin, visible seulement pour la propriétaire) ---------- */
#adminBtn {
  position: fixed; z-index: 90;
  left: max(1rem, env(safe-area-inset-left, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  padding: .7em 1.1em; border-radius: 999px; font: 600 .9rem "Tajawal", var(--sans);
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
html.admin-open { overflow: hidden; }
#adminPanel {
  position: fixed; inset: 0; z-index: 200; overflow-y: auto;
  background: #100e0c; color: var(--ink); font-family: "Tajawal", var(--sans); font-size: 15px;
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
}
#adminPanel * { letter-spacing: 0 !important; }
.a-top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: calc(.8rem + env(safe-area-inset-top, 0px)) 0 .8rem; background: #100e0c; border-bottom: 1px solid var(--line);
}
.a-top strong { font-size: 1.15rem; }
.a-status { flex: 1; color: var(--muted); font-size: .85rem; min-width: 8rem; }
.a-save { padding: .6em 1.1em; border-radius: 999px; background: #25d366; color: #062b14; font-weight: 700; }
.a-save:disabled { background: var(--line); color: var(--muted); }
.a-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
.a-close.armed { width: auto; padding: 0 .9em; border-radius: 999px; color: #ffb4a8; border-color: #ffb4a8; }
.a-tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .8rem 0; scrollbar-width: none; }
.a-tabs button { flex: none; padding: .55em 1em; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.a-tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.a-body { display: flex; flex-direction: column; gap: 1rem; max-width: 900px; margin: 0 auto; }
.a-add { border: 1px dashed rgba(217,179,140,.45); border-radius: 14px; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.a-add h3 { font-size: 1.05rem; }
.a-add p { color: var(--muted); font-size: .88rem; }
.a-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; }
.a-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; color: var(--muted); }
#adminPanel input:not([type=radio]), #adminPanel select {
  width: 100%; min-width: 0; padding: .55em .7em; border-radius: 10px; font: inherit; font-size: .92rem;
  background: #1a1714; color: var(--ink); border: 1px solid var(--line);
}
#adminPanel input:focus, #adminPanel select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.a-primary { align-self: flex-start; padding: .65em 1.2em; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.a-views { display: flex; flex-wrap: wrap; gap: .5rem; }
.a-radio { display: flex; align-items: center; gap: .4rem; padding: .5em .9em; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; }
.a-group { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.a-group summary { cursor: pointer; padding: .8rem 1rem; font-weight: 700; background: #17140f; }
.a-group summary small { color: var(--muted); font-weight: 400; margin-inline-start: .4rem; }
.a-row { display: grid; grid-template-columns: 56px 1fr; gap: .4rem .7rem; align-items: center; padding: .7rem 1rem; border-top: 1px solid var(--line); }
.a-row.is-hidden { opacity: .45; }
.a-thumb { width: 56px; height: 72px; border-radius: 8px; object-fit: cover; background: #1f1b16; display: block; grid-row: span 2; }
.a-empty { display: grid; place-items: center; color: var(--muted); }
.a-fields { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .4rem; align-items: center; min-width: 0; }
.a-chip { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.a-acts { display: flex; gap: .3rem; flex-wrap: wrap; }
.a-acts button { padding: .35em .6em; border-radius: 8px; border: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.a-acts button.on { color: #ffd28a; border-color: #ffd28a; }
.a-acts button.danger { color: #ffb4a8; }
@media (max-width: 640px) { .a-fields { grid-template-columns: 1fr 1fr; } .a-fields input:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
