/* ==========================================================================
   Vitrine : accueil, prestations, ressources techniciens, pages légales.
   Classes préfixées vt- ; composants de base dans style.css.
   ========================================================================== */

.vt-centre { text-align: center; margin-top: 40px; }
.vt-sous-titre { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 24px; }

/* ---------- Hero ---------- */
.vt-hero {
  position: relative; isolation: isolate; color: var(--blanc); background: var(--noir);
  min-height: calc(100vh - var(--entete-h)); min-height: calc(100svh - var(--entete-h));
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
body.edition-active .vt-hero { min-height: calc(100svh - var(--entete-h) - 44px); }
.vt-hero__slides { position: absolute; inset: 0; z-index: -2; }
.vt-hero__slide {
  position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; pointer-events: none;
  transform: scale(1.06); transition: opacity 1.2s ease, transform 7s ease-out;
}
.vt-hero__slide.actif { opacity: 1; pointer-events: auto; transform: scale(1); }
/* edition.css met position: relative sur tout [data-edit-bg] : les slides restent superposées. */
body.mode-edition .vt-hero .vt-hero__slide { position: absolute; }
/* Voile porté par chaque slide : le bouton « Changer l'image de fond » (z-index 5) reste au-dessus. */
.vt-hero__slide::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.2) 100%),
              linear-gradient(0deg, rgba(0,0,0,.6) 0%, transparent 35%);
}
.vt-hero__contenu { width: 100%; padding-top: 80px; padding-bottom: 120px; }
.vt-hero__contenu > * { max-width: 700px; }
.vt-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 24px; }
.vt-hero .surtitre { color: var(--jaune); }
.vt-hero__texte { font-size: clamp(1rem, 1.4vw, 1.15rem); color: #e2e2e2; margin-bottom: 34px; }
.vt-hero .btn { padding: 15px 26px; }
.vt-hero__pied {
  position: absolute; left: 0; right: 0; bottom: 32px; display: flex; align-items: center; gap: 20px;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #bbb;
}
.vt-hero__points { display: flex; gap: 8px; }
.vt-hero__points button { width: 34px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.35); border-radius: 2px; }
.vt-hero__points button[aria-selected="true"] { background: var(--rouge); }
.vt-hero__legendes { position: relative; flex: 1; min-height: 1.4em; }
.vt-hero__legende { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .6s; }
.vt-hero__legende.actif { opacity: 1; }
body.mode-edition .vt-hero__legende:not(.actif) { display: none; }

/* ---------- Atouts ---------- */
.vt-atout {
  text-align: center; padding: 34px 24px 30px; border: 1px solid var(--gris-bord); border-radius: var(--rayon);
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: border-color .2s, transform .2s;
}
.vt-atout:hover { border-color: var(--rouge); transform: translateY(-3px); }
.vt-atout__icone { width: 58px; height: 58px; color: var(--rouge); margin-bottom: 14px; }
.vt-atout__icone svg { width: 100%; height: 100%; stroke-width: 1.6; }
.vt-atout h3 { text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.vt-atout p { color: var(--gris-texte); font-size: .95rem; flex: 1; }

/* ---------- Mosaïque des prestations ---------- */
.vt-mosaique {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 4px;
  background: var(--noir); padding: 4px;
}
.vt-tuile { position: relative; overflow: hidden; background: var(--noir-3); color: var(--blanc); text-decoration: none; }
.vt-tuile--grand { grid-column: span 2; grid-row: span 2; }
.vt-tuile--large { grid-column: span 2; }
.vt-tuile--haut { grid-row: span 2; }
.vt-tuile > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s; }
a.vt-tuile:hover > img { transform: scale(1.06); filter: brightness(.7); }
.vt-tuile__voile {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px;
  background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
}
.vt-tuile__titre { font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.vt-tuile--grand .vt-tuile__titre { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.vt-tuile__plus {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rouge); max-height: 0; opacity: 0; transition: max-height .3s, opacity .3s;
}
.vt-tuile__plus svg { width: 14px; height: 14px; }
a.vt-tuile:hover .vt-tuile__plus, a.vt-tuile:focus-visible .vt-tuile__plus { max-height: 20px; opacity: 1; }
.vt-tuile--rouge, .vt-tuile--texte { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 26px; }
.vt-tuile--rouge { background: var(--rouge); }
.vt-tuile--rouge h3 { font-size: 1.35rem; margin: 0; }
.vt-tuile--rouge p { font-size: .9rem; margin: 0 0 6px; color: rgba(255,255,255,.9); }
.vt-tuile--rouge .btn { align-self: flex-start; }
.vt-tuile--texte { background: var(--blanc); color: var(--texte); }
.vt-tuile--texte h3 { font-size: 1.3rem; margin: 0; }
.vt-tuile--texte p { font-size: .9rem; color: var(--gris-texte); margin: 0; }
.vt-tuile--texte .surtitre { margin: 0; }
.vt-tuile--texte:hover h3 { color: var(--rouge); }
@media (hover: none) { .vt-tuile__plus { max-height: 20px; opacity: 1; } }
@media (max-width: 900px) {
  .vt-mosaique { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
}
@media (max-width: 480px) {
  .vt-mosaique { grid-auto-rows: 150px; }
  .vt-tuile__voile { padding: 14px; }
  .vt-tuile__titre { font-size: 1rem; }
  .vt-tuile--rouge, .vt-tuile--texte { padding: 16px; }
  .vt-tuile--rouge h3, .vt-tuile--texte h3 { font-size: 1.05rem; }
  .vt-tuile--rouge p, .vt-tuile--texte p { display: none; }
}

/* ---------- Location / occasion ---------- */
.vt-materiels { gap: 24px; }
.vt-materiel { display: flex; flex-direction: column; align-items: flex-start; padding: 40px; border-radius: var(--rayon); }
.vt-materiel h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.vt-materiel > p { max-width: 520px; }
.vt-materiel .btn { margin-top: auto; }
.vt-materiel--location { background: var(--jaune); color: var(--noir); }
.vt-materiel--location .surtitre { color: var(--noir); }
.vt-materiel--occasion { background: var(--noir); color: var(--blanc); }
.vt-materiel--occasion > p { color: #ccc; }
.vt-produits { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.vt-produit {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 10px; border-radius: var(--rayon);
  background: var(--blanc); color: var(--texte); text-decoration: none; font-size: .85rem; transition: transform .2s;
}
.vt-produit:hover { transform: translateY(-2px); }
.vt-materiel--occasion .vt-produit { background: var(--noir-3); color: var(--blanc); }
.vt-produit__image { aspect-ratio: 4 / 3; background: var(--gris-clair); border-radius: 2px; overflow: hidden; }
.vt-materiel--occasion .vt-produit__image { background: #2a2a2a; }
.vt-produit__image img { width: 100%; height: 100%; object-fit: contain; }
.vt-produit__nom { font-weight: 500; line-height: 1.3; }
.vt-produit__prix { margin-top: auto; font-weight: 700; font-size: .8rem; }
.vt-materiel--occasion .vt-produit__prix { color: var(--jaune); }
.vt-produits__vide { opacity: .7; font-style: italic; margin: 8px 0 28px; }
@media (max-width: 620px) {
  .vt-materiel { padding: 28px 20px; }
  .vt-produits { grid-template-columns: 1fr; }
  .vt-produit { flex-direction: row; align-items: center; }
  .vt-produit__image { width: 72px; flex-shrink: 0; }
  .vt-produit__prix { margin: 0 0 0 auto; text-align: right; }
}

/* ---------- Chiffres clés ---------- */
.vt-chiffres { border-top: 4px solid var(--rouge); }
.vt-chiffres .surtitre { display: block; text-align: center; margin-bottom: 24px; }
.vt-chiffre { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.vt-chiffre strong { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.vt-chiffre span { color: #aaa; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 620px) { .vt-chiffres .grille-4 { grid-template-columns: 1fr 1fr; } }

/* ---------- En-tête de liste (réalisations / actualités) ---------- */
.vt-entete-liste { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.vt-entete-liste h2 { margin: 0; }

/* ---------- Appel final ---------- */
.vt-appel { background: var(--noir); color: var(--blanc); padding: 70px 0; border-top: 1px solid #222; }
.vt-appel__contenu { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.vt-appel h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 12px; }
.vt-appel p { color: #bbb; max-width: 620px; margin: 0; }
.vt-appel__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.vt-appel__tel { color: var(--blanc); text-decoration: none; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; letter-spacing: .02em; }
.vt-appel__tel:hover { color: var(--jaune); }

/* ---------- Prestations ---------- */
.vt-carte-presta .carte__media { aspect-ratio: 16 / 10; }
.vt-carte-presta__num {
  position: absolute; top: 12px; right: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  color: var(--blanc); background: var(--rouge); padding: 3px 8px; border-radius: 2px;
}
.vt-carte-presta .btn--lien { padding: 0; font-size: .72rem; }
.vt-etapes { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.vt-etape { position: relative; padding: 28px 24px; background: var(--noir-2); border-top: 3px solid var(--rouge); border-radius: var(--rayon); }
.vt-etape__num { display: block; font-size: 2.6rem; font-weight: 500; line-height: 1; color: var(--rouge); margin-bottom: 14px; }
.vt-etape h3 { font-size: 1.1rem; }
.vt-etape p { color: #aaa; font-size: .93rem; margin: 0; }

.vt-bandeau-presta { padding: 110px 0 70px; }
.vt-bandeau-presta .surtitre { color: var(--rouge); }
.vt-bandeau-presta .btn { margin-top: 8px; }
.vt-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.vt-points li { display: flex; gap: 10px; align-items: flex-start; }
.vt-points svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--rouge); margin-top: 2px; }
@media (max-width: 620px) { .vt-points { grid-template-columns: 1fr; } }
.vt-fiche-cote { display: grid; gap: 20px; position: sticky; top: calc(var(--entete-h) + 20px); }
@media (max-width: 900px) { .vt-fiche-cote { position: static; } }
.vt-encart { padding: 28px; background: var(--noir); color: var(--blanc); border-radius: var(--rayon); }
.vt-encart--clair { background: var(--gris-clair); color: var(--texte); }
.vt-encart__titre { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.vt-encart:not(.vt-encart--clair) .vt-encart__titre { color: var(--jaune); }
.vt-materiel-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.vt-materiel-liste li { padding: 9px 0; border-bottom: 1px solid #262626; font-size: .95rem; }
.vt-materiel-liste li:last-child { border-bottom: 0; }
.vt-cas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vt-cas li { padding: 6px 12px; border-radius: 20px; background: var(--blanc); border: 1px solid var(--gris-bord); font-size: .85rem; }
.vt-galerie { display: grid; gap: 12px; grid-template-columns: repeat(var(--n, 2), 1fr); }
.vt-galerie--1 { --n: 1; } .vt-galerie--2 { --n: 2; } .vt-galerie--3 { --n: 3; }
.vt-galerie img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rayon); }
@media (max-width: 620px) { .vt-galerie { grid-template-columns: 1fr; } }
.vt-mini-presta { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--rayon); color: var(--blanc); text-decoration: none; background: var(--noir); }
.vt-mini-presta img { width: 100%; height: 100%; object-fit: cover; opacity: .65; transition: transform .5s, opacity .3s; }
.vt-mini-presta:hover img { transform: scale(1.05); opacity: .45; }
.vt-mini-presta span { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; font-size: 1.05rem; border-bottom: 3px solid var(--rouge); }
@media (max-width: 620px) { .vt-mini-presta { aspect-ratio: 16 / 7; } }

/* ---------- Ressources techniciens ---------- */
.vt-bandeau-ressources { border-bottom: 6px solid var(--jaune); padding: 70px 0 44px; }
.vt-bandeau-ressources .surtitre { color: var(--jaune); }
.vt-ressources { max-width: 960px; }
.vt-acces { max-width: 420px; margin: 0 auto; text-align: center; padding: 40px 32px; border: 1px solid var(--gris-bord); border-radius: 6px; box-shadow: var(--ombre); }
.vt-acces__icone { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--noir); color: var(--jaune); border-radius: 50%; }
.vt-acces__icone svg { width: 26px; height: 26px; }
.vt-acces p { color: var(--gris-texte); }
.vt-acces .formulaire { text-align: left; margin-top: 20px; }
.vt-ressources__barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.vt-ressources__barre p { margin: 0; color: var(--gris-texte); font-size: .9rem; }
.vt-ressources__groupe + .vt-ressources__groupe { margin-top: 36px; }
.vt-ressources__categorie { font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rouge); padding-bottom: 10px; border-bottom: 2px solid var(--noir); margin-bottom: 0; }
.vt-ressources__liste { list-style: none; margin: 0; padding: 0; }
.vt-ressource { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--gris-bord); }
.vt-ressource h3 { font-size: 1.08rem; margin: 0 0 6px; }
.vt-ressource__infos { min-width: 0; flex: 1; }
.vt-ressource__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--gris-texte); }
.vt-ressource__note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 8px 12px;
  background: #fffbe0; border-left: 3px solid var(--jaune); font-size: .88rem; border-radius: 2px;
}
.vt-ressource__note span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vt-ressource__note .btn svg { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .vt-ressource { flex-direction: column; align-items: stretch; }
  .vt-ressource > .btn { width: 100%; }
}

/* ---------- Pages légales ---------- */
.vt-bandeau-legal { padding: 70px 0 44px; }
.vt-legal { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.vt-legal aside { position: sticky; top: calc(var(--entete-h) + 20px); }
.vt-legal__sommaire { padding: 22px; background: var(--gris-clair); border-radius: var(--rayon); font-size: .9rem; }
.vt-legal__sommaire strong { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.vt-legal__sommaire ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.vt-legal__sommaire a { text-decoration: none; }
.vt-legal__sommaire a:hover { color: var(--rouge); }
.vt-legal__autre { margin-top: 16px; font-size: .88rem; }
.vt-legal__autre a { color: var(--rouge); text-decoration: none; font-weight: 700; }
.vt-legal__texte { max-width: 780px; line-height: 1.75; }
.vt-legal__avertissement { padding: 14px 18px; margin-bottom: 36px; background: #fffbe0; border-left: 4px solid var(--jaune); font-size: .92rem; border-radius: 2px; }
.vt-legal__avertissement p { margin: 0; }
.vt-legal__partie { scroll-margin-top: calc(var(--entete-h) + 60px); }
.vt-legal__partie + .vt-legal__partie { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--gris-bord); }
.vt-legal__partie > h2 { font-size: 1.6rem; }
.vt-legal__section { margin-bottom: 30px; scroll-margin-top: calc(var(--entete-h) + 60px); }
.vt-legal__section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.vt-legal__section > div { color: #333; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .vt-legal { grid-template-columns: 1fr; gap: 28px; }
  .vt-legal aside { position: static; }
}

/* Ajustements petits écrans */
.vt-produit__prix { white-space: nowrap; }
.vt-tuile--rouge .btn { white-space: normal; text-align: left; }
.prose + .vt-sous-titre { margin-top: 36px; }
