/* =========================================================
   ERYX — composants : boutons, barre (orbes, pilule), pièces
   emboîtées, appareils, citations, overlay « Commencer ».
   ========================================================= */

/* ---------- BOUTONS ----------
   Rouge brillant et noir à liseré métal, repris de la homepage.
   Taille par variables (unités de maquette) : --bw largeur, --bt hauteur, --bf police, --bgap écart, --aw/--ah flèche. */
.btn { position: relative; cursor: pointer; transition: transform .3s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn .shine { position: absolute; top: 0; left: -50%; width: 34%; height: 100%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 235, 238, 0.3), rgba(255, 255, 255, 0)); transform: skewX(-20deg); pointer-events: none; }
.btn:hover .shine { left: 125%; transition: left .9s cubic-bezier(.2, .8, .2, 1); }
.btn > .lbl, .btn > svg { position: relative; flex: none; }
.btn__gloss { position: absolute; border-radius: 999px; pointer-events: none; }

.btn-red, .btn-metal {
  display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap;
  width: calc(var(--bw, 236) * var(--u)); height: calc(var(--bt, 54) * var(--u)); gap: calc(var(--bgap, 16) * var(--u));
  border-radius: 999px; font-size: calc(var(--bf, 16) * var(--u)); font-weight: 400; padding: 0;
}
.btn-red svg, .btn-metal svg { width: calc(var(--aw, 18) * var(--u)); height: calc(var(--ah, 12) * var(--u)); }
.btn--pad { width: auto; padding: 0 calc(22 * var(--u)); }
.btn-red {
  border: 1.5px solid transparent; color: #FBF1F1;
  background: radial-gradient(70% 90% at 50% 120%, rgba(214, 58, 78, 0.55) 0%, rgba(214, 58, 78, 0) 70%) padding-box,
              linear-gradient(180deg, #8E2C3B 0%, #6A1F2A 30%, #3A0D14 64%, #1E0709 100%) padding-box,
              linear-gradient(180deg, #F4C3C8 0%, #D98892 30%, #A63A48 65%, #5A1219 100%) border-box;
  box-shadow: 0 0 26px rgba(205, 48, 70, 0.45), 0 10px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 225, 228, 0.55), inset 0 -8px 16px rgba(200, 50, 70, 0.3);
}
.btn-red .btn__gloss { left: 6%; right: 6%; top: 2px; height: 46%; background: linear-gradient(180deg, rgba(255, 232, 235, 0.22) 0%, rgba(255, 232, 235, 0) 100%); }
.btn-metal {
  display: inline-flex; gap: calc(var(--bgap, 12) * var(--u));
  border: 1px solid transparent; color: #ECE8E8;
  background: linear-gradient(180deg, #353232 0%, #1F1D1D 45%, #0E0D0D 100%) padding-box,
              linear-gradient(180deg, #A8A2A2 0%, #5E5A5A 45%, #3A3737 70%, #6E6A6A 100%) border-box;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-metal .btn__gloss { left: 7%; right: 7%; top: 2px; height: 45%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%); }

/* variantes « héros » de la homepage ordinateur (maquette Homepage) */
.btn-red--hero {
  --bw: 405; --bt: 70; --bf: 19.5; --bgap: 24; --aw: 20; --ah: 14;
  letter-spacing: 0.01em; text-shadow: 0 1px 8px rgba(255, 170, 180, 0.25);
  box-shadow: 0 0 34px rgba(205, 48, 70, 0.55), 0 0 10px rgba(235, 110, 125, 0.35), 0 14px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 225, 228, 0.55), inset 0 -10px 20px rgba(200, 50, 70, 0.3);
}
.btn-metal--hero {
  --bw: 292; --bt: 58; --bf: 16; --bgap: 20; --aw: 18; --ah: 12;
  background: radial-gradient(70% 90% at 50% 120%, rgba(160, 150, 150, 0.18) 0%, rgba(160, 150, 150, 0) 70%) padding-box,
              linear-gradient(180deg, #353232 0%, #1F1D1D 45%, #0E0D0D 100%) padding-box,
              linear-gradient(180deg, #A8A2A2 0%, #5E5A5A 45%, #3A3737 70%, #6E6A6A 100%) border-box;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(200, 190, 190, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
@media (max-width: 699px) {
  .btn-red--hero { --bw: 350; --bt: 58; --bf: 17; --bgap: 16; --aw: 18; --ah: 12; letter-spacing: 0; text-shadow: none;
    box-shadow: 0 0 26px rgba(205, 48, 70, 0.45), 0 10px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 225, 228, 0.55), inset 0 -8px 16px rgba(200, 50, 70, 0.3); }
  .btn-metal--hero { --bw: 270; --bt: 50; --bf: 15; --bgap: 12; --aw: 16; --ah: 11;
    background: linear-gradient(180deg, #353232 0%, #1F1D1D 45%, #0E0D0D 100%) padding-box, linear-gradient(180deg, #A8A2A2 0%, #5E5A5A 45%, #3A3737 70%, #6E6A6A 100%) border-box;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
}

/* lien texte « Fermer ✕ » (onglet Projets) */
.lnk-close { display: flex; align-items: center; gap: calc(10 * var(--u)); font-size: calc(14 * var(--u)); color: #ECE8E8; background: none; border: 0; padding: 0; cursor: pointer; }
.lnk-close svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }

/* ---------- BARRE : orbes, pilule « Commencer », pastille ---------- */
.orb {
  position: absolute; top: 0; width: calc(72 * var(--u)); height: calc(72 * var(--u)); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 28%, #2C2727 0%, #121010 52%, #060505 100%);
  box-shadow: 0 0 0 2.5px #040303, 0 0 0 3.5px rgba(150, 40, 52, 0.55), 0 0 18px rgba(170, 35, 52, 0.28), 0 14px 26px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.28), inset 0 0 0 1.5px rgba(255, 255, 255, 0.05), inset 0 -10px 18px rgba(170, 30, 48, 0.2);
}
.orb svg { position: relative; width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
.gloss { position: absolute; left: 14%; right: 14%; top: 3px; height: 42%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 100%); pointer-events: none; }
.pill {
  position: absolute; top: 0; width: calc(264 * var(--u)); height: calc(72 * var(--u)); overflow: hidden;
  border-radius: 999px; border: 1.5px solid #C2303F; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; gap: calc(22 * var(--u));
  font-size: calc(22 * var(--u)); font-weight: 400; letter-spacing: 0.01em; color: #F6EEE8;
  background: radial-gradient(60% 120% at 22% 0%, rgba(190, 40, 60, 0.32) 0%, rgba(190, 40, 60, 0) 70%), linear-gradient(180deg, #2A0B10 0%, #14060A 50%, #0A0405 100%);
  box-shadow: 0 0 0 2.5px #050202, 0 0 26px rgba(200, 42, 62, 0.45), 0 14px 28px rgba(0, 0, 0, 0.7), inset 0 0 0 4px #0A0405, inset 0 0 0 5px rgba(205, 60, 78, 0.35), inset 0 1px 0 rgba(255, 210, 215, 0.3);
}
.pill .gloss { left: 6%; right: 6%; }
.pill svg { position: relative; width: calc(22 * var(--u)); height: calc(15 * var(--u)); color: #D63A4D; }
.pill .lbl { position: relative; }
.badge {
  position: absolute; right: -3px; top: -3px; width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: 50%;
  border: calc(3 * var(--u)) solid #070303;
  background: radial-gradient(circle at 40% 35%, #F0596A 0%, #C4253A 50%, #7E0F1D 100%); box-shadow: 0 0 10px rgba(220, 50, 70, 0.75);
}
@media (max-width: 699px) {
  .orb { width: calc(52 * var(--u)); height: calc(52 * var(--u));
    box-shadow: 0 0 0 2px #040303, 0 0 0 3px rgba(150, 40, 52, 0.55), 0 0 14px rgba(170, 35, 52, 0.28), 0 10px 20px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.28); }
  .orb .gloss, .pill .gloss { display: none; }
  .orb svg { width: calc(21 * var(--u)); height: calc(21 * var(--u)); }
  .pill { width: calc(222 * var(--u)); height: calc(52 * var(--u)); gap: calc(12 * var(--u)); font-size: calc(19 * var(--u)); letter-spacing: 0;
    background: radial-gradient(60% 120% at 22% 0%, rgba(190, 40, 60, 0.32) 0%, rgba(190, 40, 60, 0) 70%), linear-gradient(180deg, #2A0B10 0%, #160507 100%);
    box-shadow: 0 0 22px rgba(194, 48, 63, 0.35), inset 0 1px 0 rgba(255, 210, 215, 0.3); }
  .pill svg { width: calc(18 * var(--u)); height: calc(13 * var(--u)); }
  .badge { right: -2px; top: -2px; width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-width: calc(2.5 * var(--u)); box-shadow: 0 0 8px rgba(220, 50, 70, 0.75); }
}

/* ---------- PIÈCES EMBOÎTÉES (tracés de generateurs/emb.py et geom.py) ---------- */
.pc { position: absolute; }
.pc-svg { position: absolute; left: 0; top: 0; overflow: visible; display: block; }
.pc > :not(svg) { position: absolute; }

/* ---------- APPAREILS (MacBook / iPhone) ---------- */
.combo { position: absolute; }
.dev { position: absolute; }
.mac-lid { position: absolute; top: 0; background: linear-gradient(180deg, #2A2A2C, #121213); }
.dev-win { position: absolute; overflow: hidden; background: #000; }
.dev-scr { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mac-cam { position: absolute; left: 50%; top: 0; transform: translateX(-50%); background: #0C0C0D; }
.mac-base { position: absolute; left: 0; background: linear-gradient(180deg, #A3A3A8 0%, #6E6E73 40%, #38383B 100%); }
.mac-base span { position: absolute; left: 50%; top: 0; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #4A4A4E; }
.phone { background: linear-gradient(160deg, #55555A, #1A1A1C 40%, #2E2E31); }
.phone-island { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 99px; background: #000; z-index: 9; }

/* ---------- VISUELS repris des maquettes (rendus à leur taille, mis à l'échelle de l'écran) ---------- */
.vis { position: absolute; overflow: visible; }
.vis__in { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--k)); }
.vis .lbl { font-size: 12.5px; font-weight: 400; letter-spacing: 0.24em; color: #A6A1A0; text-transform: uppercase; }
.vis .h { margin: 0; font-weight: 300; color: #FBF8F6; letter-spacing: -0.01em; white-space: nowrap; }
.vis .red { color: #B3213A; }
.vis .rim { position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.vis p { margin: 0; }

/* =========================================================
   OVERLAY « COMMENCER » (maquettes Commencer / M-Commencer)
   ========================================================= */
.ov { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.ov.is-open { visibility: visible; }
.ov__veil { position: absolute; inset: 0; background: rgba(12, 9, 9, 0.38); -webkit-backdrop-filter: saturate(0.55); backdrop-filter: saturate(0.55); opacity: 0; transition: opacity .35s ease; }
.ov.is-open .ov__veil { opacity: 1; }
.ov-card {
  position: absolute; left: 50%; top: 50%;
  width: calc(518 * var(--u)); height: calc(726 * var(--u));
  padding: calc(40 * var(--u)) calc(42 * var(--u)) calc(30 * var(--u));
  border-radius: calc(24 * var(--u));
  background: radial-gradient(120% 80% at 20% 0%, #F6F1EA 0%, #EBE4DA 60%, #E2DACF 100%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 0 28px rgba(255, 240, 230, 0.12);
  transform: translate(-50%, -50%) scale(.97); opacity: 0;
  transition: transform var(--tab-dur) var(--ease), opacity .35s ease;
  color: #1E1714;
}
.ov.is-open .ov-card { transform: translate(-50%, -50%); opacity: 1; }
.ov-card__grain { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; opacity: 0.5; pointer-events: none; }
.ov-card__handle { display: none; }
.ov-close {
  position: absolute; right: calc(30 * var(--u)); top: calc(28 * var(--u)); z-index: 2;
  width: calc(32 * var(--u)); height: calc(32 * var(--u)); display: flex; align-items: center; justify-content: center;
  border: 0; padding: 0; background: none; cursor: pointer;
}
.ov-close svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.ov-form { position: relative; margin-top: calc(4 * var(--u)); }
.fld { position: relative; display: block; height: calc(96 * var(--u)); border-bottom: 1px solid #C9C0B4; padding-top: calc(18 * var(--u)); }
.fld--area { height: calc(130 * var(--u)); }
.fld__l { display: block; font-size: calc(15 * var(--u)); font-weight: 500; color: #1E1714; line-height: normal; }
.fld__i {
  display: block; width: 100%; margin-top: calc(10 * var(--u)); padding: 0; border: 0; background: transparent; outline: none;
  font-family: Mulish, sans-serif; font-size: calc(21 * var(--u)); font-weight: 400; line-height: normal; color: #1E1714;
}
textarea.fld__i { resize: none; height: calc(62 * var(--u)); line-height: 1.3; }
.fld__i::placeholder { color: #8B847D; opacity: 1; }
.fld:focus-within { border-bottom-color: #8E1F2E; }
.fld__err { position: absolute; right: 0; top: calc(20 * var(--u)); font-size: calc(12 * var(--u)); color: #8E1F2E; }
.fld.is-bad { border-bottom-color: #8E1F2E; }
.btn-send {
  position: relative; margin-top: calc(26 * var(--u)); width: 100%;
  display: flex; align-items: center; justify-content: center; height: calc(70 * var(--u));
  border-radius: 999px; border: 1.5px solid #8E1F2E; cursor: pointer; padding: 0;
  background: linear-gradient(90deg, #0E0C0D 0%, #171112 55%, #3A0E15 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(60, 10, 18, 0.35), 0 0 16px rgba(178, 33, 58, 0.25);
  font-family: Mulish, sans-serif; font-size: calc(25 * var(--u)); font-weight: 500; color: #FBF8F6;
}
/* consentement + piège anti-robot + erreur d'envoi */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { position: relative; display: flex; align-items: flex-start; gap: calc(12 * var(--u)); margin-top: calc(18 * var(--u)); cursor: pointer;
  font-size: calc(12.5 * var(--u)); line-height: 1.45; color: #6B615B; min-height: 24px; }
.consent input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.consent__box { flex: none; width: calc(18 * var(--u)); height: calc(18 * var(--u)); min-width: 16px; min-height: 16px; margin-top: 1px; border-radius: 5px;
  border: 1.5px solid rgba(142, 31, 46, 0.55); background: rgba(255, 255, 255, 0.5); transition: background .2s, border-color .2s; }
.consent input:checked + .consent__box { background: #8E1F2E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7' fill='none' stroke='%23FBF8F6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; border-color: #8E1F2E; }
.consent input:focus-visible + .consent__box { outline: 2px solid #8E1F2E; outline-offset: 2px; }
.consent.is-bad .consent__box { border-color: #B3213A; box-shadow: 0 0 0 3px rgba(179, 33, 58, 0.15); }
.consent a { color: #8E1F2E; text-decoration: underline; text-underline-offset: 2px; }
.ov-err { margin: calc(8 * var(--u)) 0 0; min-height: 1em; font-size: calc(12.5 * var(--u)); color: #8E1F2E; }
.ov-err:empty { display: none; }
.btn-send[disabled] { opacity: .6; cursor: progress; }
.ov-done { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 0 calc(42 * var(--u)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.ov-done[hidden] { display: none; }
.ov-done svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
.ov-done p { margin-top: calc(28 * var(--u)); font-size: calc(30 * var(--u)); line-height: calc(38 * var(--u)); font-weight: 300; letter-spacing: -0.02em; color: #1D1A18; }

@media (max-width: 699px) {
  .ov__veil { background: rgba(8, 6, 6, 0.55); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ov-card {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; height: calc(100dvh - 150 * var(--u)); max-height: calc(694 * var(--u));
    padding: calc(30 * var(--u)) calc(26 * var(--u)) calc(20 * var(--u) + env(safe-area-inset-bottom, 0px));
    border-radius: calc(28 * var(--u)) calc(28 * var(--u)) 0 0; overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(100%); opacity: 1;
  }
  .ov.is-open .ov-card { transform: translateY(0); }
  .ov-card__grain { display: none; }
  .ov-card__handle { display: block; position: absolute; left: 50%; top: calc(10 * var(--u)); width: calc(44 * var(--u)); height: 4px; margin-left: calc(-22 * var(--u)); border-radius: 4px; background: rgba(30, 23, 20, 0.2); }
  .ov-close { right: calc(22 * var(--u)); top: calc(22 * var(--u)); width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
  .ov-close svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
  .ov-form { margin-top: 0; }
  .fld { height: calc(76 * var(--u)); padding-top: calc(14 * var(--u)); }
  .fld--area { height: calc(100 * var(--u)); }
  .fld__l { font-size: calc(13 * var(--u)); }
  .fld__i { margin-top: calc(8 * var(--u)); font-size: calc(17 * var(--u)); }
  textarea.fld__i { height: calc(52 * var(--u)); }
  .fld__err { top: calc(15 * var(--u)); font-size: calc(11 * var(--u)); }
  .consent { font-size: calc(12 * var(--u)); margin-top: calc(14 * var(--u)); }
  .btn-send { margin-top: calc(18 * var(--u)); height: calc(60 * var(--u)); font-size: calc(20 * var(--u)); font-weight: 400;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 16px rgba(178, 33, 58, 0.25); }
  .ov-done p { font-size: calc(24 * var(--u)); line-height: calc(30 * var(--u)); }
}
@media (prefers-reduced-motion: reduce) { .ov-card, .ov__veil { transition: none; } }

/* =========================================================
   OVERLAY « RÉSERVER UNE VISIO » (maquettes Contact-Visio / M-Contact-Visio)
   ========================================================= */
.ov-card--visio { height: calc(760 * var(--u)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.vz { position: relative; }
.vz-head { display: flex; align-items: center; gap: calc(16 * var(--u)); padding-right: calc(30 * var(--u)); }
.vz-ico { flex: none; display: flex; align-items: center; justify-content: center; width: calc(52 * var(--u)); height: calc(52 * var(--u)); border-radius: 50%;
  border: 2px solid #C93A4B; background: radial-gradient(circle at 38% 28%, #A0293A 0%, #6E1622 45%, #3A070E 100%);
  box-shadow: 0 0 22px rgba(200, 45, 65, 0.4), 0 10px 20px rgba(0, 0, 0, 0.25), inset 0 2px 1px rgba(255, 190, 198, 0.35); }
.vz-ico svg { width: calc(21 * var(--u)); height: calc(21 * var(--u)); }
.vz-t { margin: 0; font-size: calc(26 * var(--u)); line-height: calc(31 * var(--u)); font-weight: 300; color: #1E1714; letter-spacing: -0.01em; }
.vz-s { margin: calc(4 * var(--u)) 0 0; font-size: calc(13 * var(--u)); color: #6B615B; }
.vz-mhead { margin-top: calc(24 * var(--u)); display: flex; align-items: center; justify-content: space-between; }
.vz-month { margin: 0; font-size: calc(15 * var(--u)); font-weight: 500; letter-spacing: 0.02em; color: #1E1714; }
.vz-navs { display: flex; gap: calc(6 * var(--u)); }
.vz-nav { position: relative; width: calc(30 * var(--u)); height: calc(30 * var(--u)); min-width: 28px; min-height: 28px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: none; box-shadow: inset 0 0 0 1px #C9C0B4; display: flex; align-items: center; justify-content: center; }
.vz-nav::after { content: ""; position: absolute; inset: -8px; }
.vz-nav svg { width: calc(12 * var(--u)); height: calc(9 * var(--u)); fill: none; stroke: #1E1714; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.vz-nav:disabled { opacity: .3; cursor: default; }
.vz-grid { margin-top: calc(14 * var(--u)); display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(4 * var(--u)) calc(6 * var(--u)); }
.vz-wd { display: flex; align-items: center; justify-content: center; height: calc(22 * var(--u)); font-size: calc(11 * var(--u)); letter-spacing: 0.1em; color: #8B847D; }
.vz-d { display: flex; align-items: center; justify-content: center; height: calc(36 * var(--u)); min-height: 32px; border-radius: 50%; border: 0; padding: 0; background: none;
  font-family: Mulish, sans-serif; font-size: calc(14 * var(--u)); color: #C2B9AE; cursor: default; }
.vz-d.is-av { color: #1E1714; box-shadow: inset 0 0 0 1px rgba(30, 23, 20, 0.1); cursor: pointer; transition: box-shadow .2s, background .2s; }
.vz-d.is-av:hover { box-shadow: inset 0 0 0 1px rgba(142, 31, 46, 0.5); }
.vz-d.is-sel { background: linear-gradient(160deg, #A0293A, #5E121D); color: #FBF8F6; box-shadow: 0 0 14px rgba(178, 33, 58, 0.4); }
.vz-slots { margin-top: calc(20 * var(--u)); padding-top: calc(18 * var(--u)); border-top: 1px solid #C9C0B4; }
.vz-dl { margin: 0; min-height: 1.3em; font-size: calc(13 * var(--u)); font-weight: 500; letter-spacing: 0.02em; color: #1E1714; }
.vz-sg { margin-top: calc(12 * var(--u)); display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(8 * var(--u)); }
.vz-sl { display: flex; align-items: center; justify-content: center; height: calc(40 * var(--u)); min-height: 40px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: none; font-family: Mulish, sans-serif; font-size: calc(14 * var(--u)); color: #1E1714; box-shadow: inset 0 0 0 1px #C9C0B4; font-variant-numeric: tabular-nums; transition: box-shadow .2s; }
.vz-sl:hover { box-shadow: inset 0 0 0 1px #8E1F2E; }
.vz-sl.is-sel { background: #17120F; color: #FBF8F6; box-shadow: 0 0 0 1.5px #8E1F2E; }
.vz-d:focus-visible, .vz-sl:focus-visible, .vz-nav:focus-visible { outline: 2px solid #8E1F2E; outline-offset: 2px; }
.vz-go { margin-top: calc(22 * var(--u)); height: calc(58 * var(--u)); font-size: calc(18 * var(--u)); }
.vz-go:disabled { opacity: .55; cursor: default; }
.vz-step[hidden] { display: none; }
.vz-step--2 { margin-top: calc(18 * var(--u)); }
.vz-recap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12 * var(--u)) calc(16 * var(--u)); border-radius: 999px;
  background: rgba(142, 31, 46, 0.08); box-shadow: inset 0 0 0 1px rgba(142, 31, 46, 0.25); font-size: calc(13.5 * var(--u)); color: #1E1714; }
.vz-edit { border: 0; background: none; padding: 6px 2px; color: #8E1F2E; font-family: Mulish, sans-serif; font-size: calc(13 * var(--u)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.vz-fld { height: calc(72 * var(--u)); padding-top: calc(12 * var(--u)); }
.vz-fld .fld__i { margin-top: calc(6 * var(--u)); font-size: calc(18 * var(--u)); }
.vz-fld .fld__l em { font-style: normal; color: #8B847D; font-weight: 400; }
.vz-fld .fld__err { top: calc(14 * var(--u)); }
.vz-done[hidden] { display: none; }
.vz-done { position: static; transform: none; padding: calc(120 * var(--u)) 0 0; }
.vz-done__s { display: block; margin-top: calc(14 * var(--u)); font-size: calc(15 * var(--u)); line-height: 1.5; color: #6B615B; max-width: 34ch; }

@media (max-width: 699px) {
  .ov-card--visio { height: calc(100dvh - 96 * var(--u)); max-height: none; padding: calc(34 * var(--u)) calc(22 * var(--u)) calc(24 * var(--u) + env(safe-area-inset-bottom, 0px)); }
  .ov-card--visio .ov-close { right: calc(16 * var(--u)); top: calc(20 * var(--u)); width: 32px; height: 32px; }
  .vz-t { font-size: calc(22 * var(--u)); line-height: calc(26 * var(--u)); }
  .vz-d { height: calc(34 * var(--u)); }
  .vz-go { height: calc(56 * var(--u)); font-size: calc(17 * var(--u)); }
  .vz-fld .fld__i { font-size: calc(17 * var(--u)); }
  .vz-done { padding-top: calc(80 * var(--u)); }
}

/* ---------- listes des gabarits ---------- */
.pj-list { list-style: none; margin: 0; padding: 0; }
.vis-inline { display: block; line-height: normal; }
.tab h2, .tab h3, .tab p, .tab blockquote, .tab figure { margin: 0; }


/* ---------- AVANT / APRÈS AGRANDI (js/zoom.js) ---------- */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 2px solid #E2788A; outline-offset: 6px; border-radius: 18px; }
html.is-zoom, html.is-zoom body { overflow: hidden; }
.zoom { position: fixed; inset: 0; z-index: 90; cursor: zoom-out; }
.zoom__veil { position: absolute; inset: 0; background: rgba(6, 5, 5, 0.86); opacity: 0; transition: opacity .45s ease; }
.zoom.is-on .zoom__veil { opacity: 1; }
.zoom__piece { position: fixed !important; z-index: 2; margin: 0; display: block !important; transform-origin: 0 0; transition: transform .55s cubic-bezier(.22, .9, .24, 1); --u: calc(var(--k) * 1px); will-change: transform; }
.zoom__close {
  position: absolute; right: calc(18px + env(safe-area-inset-right, 0px)); top: calc(18px + env(safe-area-inset-top, 0px)); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(236, 232, 232, 0.35); background: rgba(20, 16, 16, 0.6);
  display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .3s ease .2s;
}
.zoom.is-on .zoom__close { opacity: 1; }
.zoom__close svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .zoom__piece, .zoom__veil, .zoom__close { transition: none; } }

/* tout ce qui s'agrandit au clic (les images seulement, voir js/zoom.js) */
.dev, .tile, .zm, .vis:not(:has(.tile)), .sec .pc:has(.vis-inline) { cursor: zoom-in; }
.sec .pc a, .sec .pc button { cursor: pointer; }

.zoom__piece .dev { cursor: zoom-in; }
.pj-list .dev, .pj-list .pc { cursor: default; }


/* ---------- appareils réalistes : MacBook Air (minuit) et iPhone (titane) ---------- */
.mac-lid { background: #07080B; }
.mac-cam { z-index: 2; background: #000; display: flex; align-items: center; justify-content: center; }
.mac-cam i { display: block; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3A4A6A 0%, #0D1220 70%); }
.mac-base { background: linear-gradient(180deg, #4A5162 0%, #2C3240 35%, #1A1E28 75%, #10131A 100%); }
.mac-base span { background: linear-gradient(180deg, #1A1E28, #3B4252); }
.phone { background: linear-gradient(135deg, #D2D2D7 0%, #8E8E94 22%, #4A4A4F 48%, #A9A9AF 74%, #6C6C72 100%); }
.phone-btn { position: absolute; display: block; width: 1.6%; border-radius: 2px; background: linear-gradient(90deg, #6C6C72, #B9B9BF); }
.phone-btn--a { right: -1.2%; top: 26%; height: 13%; }
.phone-btn--b { left: -1.2%; top: 21%; height: 7%; }
.phone-btn--c { left: -1.2%; top: 30%; height: 7%; }
