/* ═════════════════════════════════════════════════════════════════════════════
   « Vos couleurs » — le showroom en 3D (vos-couleurs.html). Écrite à la main, après styles.css (variables, en-tête,
   boutons) ; après un changement, monter son ?v= dans vos-couleurs.html.
   ═════════════════════════════════════════════════════════════════════════════ */
.vc-page { height: 100vh; height: 100dvh; overflow: hidden; }
#showroom { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; z-index: 0; touch-action: none; cursor: grab; }
#showroom.is-glisse { cursor: grabbing; }
.vc-page .chargement span { max-width: 80vw; text-align: center; line-height: 1.4; }
.vc-retour { font: 600 .82rem/1 var(--sans); color: var(--doux); text-decoration: none; padding: .5rem .7rem; border-radius: 99px; }
.vc-retour:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* ─── Le panneau : le logo, l'emplacement ─── */
.vc { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.vc__panneau {
  position: absolute; left: var(--pad); top: calc(var(--entete) + .6rem); width: min(25rem, calc(100vw - 2 * var(--pad)));
  max-height: calc(100% - var(--entete) - 7.5rem); overflow: auto; overscroll-behavior: contain;
  padding: 1.3rem 1.3rem 1.2rem; border-radius: var(--r);
  background: linear-gradient(160deg, rgba(20, 24, 31, .86), rgba(9, 11, 15, .9));
  border: 1px solid var(--ligne); box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}
.vc__replier { display: none; }
.vc .surtitre { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; font: 700 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--jaune); }
.vc .titre { margin: 0; font: italic 900 clamp(2rem, 3.4vw, 2.9rem)/.94 var(--titre); text-transform: uppercase; }
.vc .titre em { color: var(--jaune); font-style: italic; }
.vc__intro { margin: .8rem 0 1rem; color: var(--doux); font-size: .95rem; }

.vc__depot {
  position: relative; display: grid; gap: .3rem; padding: 1rem 1rem .9rem; border-radius: calc(var(--r) * .8); cursor: pointer;
  border: 1.5px dashed rgba(232, 240, 28, .55); background: rgba(232, 240, 28, .06); transition: background .25s, border-color .25s;
}
.vc__depot:hover, .vc__depot.is-survol { background: rgba(232, 240, 28, .13); border-color: var(--jaune); }
.vc__depot:focus-within { outline: 2px solid var(--jaune); outline-offset: 3px; }
.vc__depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.vc__depot-titre { font: italic 900 1.05rem/1 var(--titre); text-transform: uppercase; color: var(--jaune); }
.vc__depot-aide { font-size: .78rem; color: var(--doux); }
.vc__depot.is-charge .vc__depot-titre::after { content: " ✓"; }

.vc__reglages { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.vc__champ { display: grid; gap: .35rem; font: 600 .72rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.vc__champ--large, .vc__champ:first-child { grid-column: 1 / -1; }
.vc__champ:has(input[type="range"]) { align-self: end; padding-bottom: .55rem; }
.vc__champ select {
  appearance: none; -webkit-appearance: none; width: 100%; padding: .6rem 2rem .6rem .7rem; border-radius: .5rem;
  background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e8f01c' stroke-width='2'/%3E%3C/svg%3E") right .7rem center / .7rem no-repeat;
  border: 1px solid var(--ligne); color: var(--texte); font: 600 .9rem/1.2 var(--sans); text-transform: none; letter-spacing: 0;
}
.vc__champ select option, .vc__champ select optgroup { background: #14171d; color: var(--texte); }
.vc__champ input[type="range"] { width: 100%; accent-color: var(--jaune); }

.vc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin-top: 1.1rem; }
.vc__actions .lien { margin: 0; font-size: .86rem; }
.vc__contact { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--ligne); display: grid; gap: .25rem; }
.vc__contact p { margin: 0 0 .2rem; font: italic 900 1rem/1 var(--titre); text-transform: uppercase; }
.vc__contact a { color: var(--texte); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.vc__contact a:hover { color: var(--jaune); }

/* ─── Les supports, en bas ─── */
.vc__items {
  position: absolute; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); translate: -50% 0;
  display: flex; gap: .35rem; padding: .35rem; border-radius: 1rem; max-width: calc(100vw - 1.2rem); overflow-x: auto;
  background: rgba(10, 12, 16, .72); border: 1px solid var(--ligne); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: auto; scrollbar-width: none;
}
.vc__items button {
  flex: none; display: grid; justify-items: center; gap: .3rem; min-width: 5.6rem; padding: .55rem .7rem .5rem; border-radius: .75rem;
  border: 0; background: transparent; color: var(--doux); cursor: pointer; font: 600 .74rem/1.1 var(--sans);
  transition: background .25s, color .25s;
}
.vc__items svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vc__items button[aria-pressed="true"] { background: var(--bleu); color: #fff; }
.vc__items button[aria-pressed="true"] svg { stroke: var(--jaune); }
@media (hover: hover) { .vc__items button:hover { color: #fff; background: rgba(255, 255, 255, .08); } .vc__items button[aria-pressed="true"]:hover { background: var(--bleu); } }
.vc__aide {
  position: absolute; left: 50%; bottom: calc(5.9rem + env(safe-area-inset-bottom)); translate: -50% 0; margin: 0; padding: .35rem .8rem;
  border-radius: 99px; background: rgba(10, 12, 16, .5); color: var(--doux); font-size: .74rem; white-space: nowrap; transition: opacity .6s;
}
.vc__aide.is-cache { opacity: 0; }
.vc__sans { position: fixed; inset: auto 1rem 1rem; z-index: 30; padding: 1rem; border-radius: var(--r); background: var(--fond-2); }
html.vc-sans-3d .vc__aide { display: none; }
.vc__erreur { position: fixed; left: 50%; top: 45%; translate: -50% -50%; z-index: 5; max-width: 26rem; padding: 1.2rem; text-align: center; color: var(--doux); }

/* ─── « Tout voir » sur un écran étroit : la grille des quatre supports ─── */
.vc__grille {
  position: absolute; left: .6rem; right: .6rem; top: calc(var(--entete) + .4rem); bottom: calc(9.6rem + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: .5rem; pointer-events: auto;
}
.vc__grille[hidden] { display: none; }
.vc__grille button {
  position: relative; display: block; min-height: 0; padding: 0; overflow: hidden; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--ligne); background: var(--fond-2); color: #fff;
}
.vc__grille img { width: 100%; height: 100%; object-fit: cover; }
.vc__grille span {
  position: absolute; left: .5rem; bottom: .45rem; padding: .3rem .55rem .25rem; border-radius: .4rem;
  background: rgba(10, 12, 16, .78); font: italic 900 .78rem/1 var(--titre); text-transform: uppercase;
}
.vc__grille button:focus-visible { outline: 2px solid var(--jaune); outline-offset: 2px; }
/* ─── Écrans étroits : le panneau devient un tiroir en bas ─── */
@media (max-width: 860px) {
  .vc__panneau {
    left: .6rem; right: .6rem; top: auto; bottom: calc(5.4rem + env(safe-area-inset-bottom)); width: auto;
    max-height: min(58vh, 34rem); padding: .2rem 1rem .9rem;
  }
  .vc__replier {
    display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .7rem 0 .6rem; border: 0; background: none; cursor: pointer;
    color: var(--jaune); font: italic 900 .95rem/1 var(--titre); text-transform: uppercase;
  }
  .vc__replier::after { content: ""; width: .6rem; height: .6rem; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -.15rem; transition: rotate .3s; }
  .vc__replier[aria-expanded="false"]::after { rotate: -135deg; translate: 0 .15rem; }
  .vc__panneau.is-replie .vc__corps { display: none; }
  .vc .surtitre { display: none; }
  .vc .titre { font-size: 1.8rem; }
  .vc__intro { font-size: .88rem; margin: .5rem 0 .8rem; }
  .vc__aide { display: none; }
  .vc__items { left: .6rem; right: .6rem; translate: none; max-width: none; bottom: calc(.6rem + env(safe-area-inset-bottom)); }
  .vc__items button { flex: 1 1 0; min-width: 0; padding: .45rem .15rem; font-size: .62rem; text-align: center; }
  .vc__items svg { width: 1.35rem; height: 1.35rem; }
  .vc-retour { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vc__aide { transition: none; } }

/* ═══ 6 novembre 2026 (suite) : la LMP3 à côté de la F4, la version du logo ═══ */
.vc__version-aide { grid-column: 1 / -1; margin: -.15rem 0 0; font-size: .78rem; line-height: 1.35; color: var(--jaune); }
.vc__version-aide[hidden] { display: none; }
.vc__items span b { font: inherit; }
.vc__items span i { display: none; font-style: normal; }
.vc__lmp3-charge {
  position: absolute; left: calc(50% + min(13rem, 18vw)); top: calc(var(--entete) + 1rem); translate: -50% 0; margin: 0; padding: .5rem .9rem;
  border-radius: 99px; background: rgba(10, 12, 16, .72); border: 1px solid var(--ligne); color: var(--doux); font-size: .8rem; white-space: nowrap; pointer-events: none;
}
.vc__lmp3-charge[hidden] { display: none; }
/* la grille du téléphone : chaque voiture sur toute la largeur (elles sont longues), les trois autres supports dessous */
.vc__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr 1fr 1.15fr; grid-auto-rows: auto; }
.vc__grille button:nth-child(-n + 2) { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .vc__items span b { display: none; }
  .vc__items span i { display: inline; }
  .vc__items button { font-size: .66rem; }
  .vc__lmp3-charge { left: 50%; }
}
