/* ==========================================================================
   Vis & Volt — site d'exemple (dépannage et petits travaux) créé par Sitarti
   Entreprise fictive. Formule montrée : Pack Essentiel (une seule page).
   Police : Archivo (largeur variable : condensée pour les titres).
   ========================================================================== */

@font-face {
  font-family: "Archivo VV";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --blanc: #FFFFFF;
  --fond: #F2F3F5;
  --noir: #111111;
  --gris: #565B63;
  --trait: #111111;
  --rouge: #E3261B;
  --rouge-f: #B81D14;
  --vert: #12773F;
  --ombre: 5px 5px 0 var(--noir);
  --ombre-p: 3px 3px 0 var(--noir);
  --police: "Archivo VV", "Arial Narrow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  --gut: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font: 400 17px/1.55 var(--police);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
.vv-noir :focus-visible, .vv-pied :focus-visible { outline-color: #fff; }
section[id] { scroll-margin-top: 12px; }

.evitement {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 16px; background: var(--noir); color: #fff; font-weight: 700; text-decoration: none;
}
.evitement:focus { top: 56px; }

.vv-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* Titres condensés */
.cond {
  font-weight: 800;
  font-stretch: 66%;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
}
.rouge { color: var(--rouge); }

/* ---------- En-tête ---------- */
.vv-tete { border-bottom: 2px solid var(--trait); background: var(--blanc); }
.vv-tete .vv-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.vv-logo { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.vv-logo svg { flex: none; width: 42px; height: 42px; }
.vv-logo-txt { display: flex; flex-direction: column; min-width: 0; }
.vv-logo-nom {
  overflow: hidden;
  max-width: 52vw;
  font-weight: 800;
  font-stretch: 72%;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.vv-logo-nom em { font-style: normal; color: var(--rouge); }
.vv-logo-sous { margin-top: 3px; color: var(--gris); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.vv-nav { display: flex; gap: 22px; margin-left: auto; }
.vv-nav a { padding: 8px 0; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
.vv-nav a:hover { border-color: var(--rouge); }
.vv-tel {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 16px;
  background: var(--rouge); color: #fff;
  border: 2px solid var(--trait); box-shadow: var(--ombre-p);
  font-weight: 800; font-stretch: 80%; font-size: 19px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vv-tel svg { width: 20px; height: 20px; }
.vv-tel:hover { transform: translate(-2px, -2px); box-shadow: var(--ombre); }

/* ---------- Haut de page ---------- */
/* overflow-x: clip : pendant son animation d'arrivée, le tampon « Devis gratuit » grossit et dépasserait
   du bord de l'écran (le téléphone élargirait alors toute la page) ; au repos, rien n'est coupé */
.vv-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); background: var(--blanc); overflow-x: clip; }
.vv-hero-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.vv-statut {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 20px; padding: 7px 12px 7px 10px;
  border: 2px solid var(--trait);
  font-weight: 700; font-size: 14px; line-height: 1.2;
}
.vv-statut .point { width: 10px; height: 10px; border-radius: 50%; background: #9AA0A8; flex: none; }
.vv-statut.ouvert .point { background: #1FB25A; box-shadow: 0 0 0 0 rgba(31, 178, 90, .6); }
.vv-statut.ouvert .txt b { color: var(--vert); }
.vv-hero h1 { font-size: clamp(54px, 8.4vw, 112px); margin-bottom: 22px; }
.vv-intro { max-width: 32em; margin-bottom: 28px; color: var(--gris); font-size: clamp(17px, 1.4vw, 19px); }
.vv-intro strong { color: var(--noir); font-weight: 700; }

/* Le gros bouton d'appel */
.vv-appel {
  display: flex; align-items: stretch;
  width: 100%; max-width: 460px;
  border: 3px solid var(--trait);
  background: var(--rouge); color: #fff;
  box-shadow: 7px 7px 0 var(--noir);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.vv-appel:hover { background: var(--rouge-f); transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--noir); }
.vv-appel:active { transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--noir); }
.vv-appel .ic { display: grid; place-items: center; flex: none; width: 78px; background: var(--noir); }
.vv-appel .ic svg { width: 34px; height: 34px; }
.vv-appel-txt { display: flex; flex-direction: column; justify-content: center; padding: 12px 18px; }
.vv-appel-txt small { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.vv-appel-txt b { font-weight: 800; font-stretch: 72%; font-size: clamp(32px, 4vw, 42px); line-height: 1; letter-spacing: .01em; }
.vv-rappel {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 8px 0;
  font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--noir);
}
.vv-rappel:hover { color: var(--rouge); border-color: var(--rouge); }
.vv-plus { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.vv-plus li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; }
.vv-plus svg { flex: none; width: 20px; height: 20px; color: var(--rouge); }

.vv-hero-photo { position: relative; }
.vv-hero-photo .cadre { border: 3px solid var(--trait); box-shadow: 10px 10px 0 var(--noir); overflow: hidden; background: var(--fond); }
.vv-hero-photo img { width: 100%; aspect-ratio: 3 / 2.15; object-fit: cover; }
.vv-sticker {
  position: absolute; top: -26px; right: -14px;
  display: grid; place-items: center;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--rouge); color: #fff;
  border: 3px solid var(--trait);
  font-weight: 800; font-stretch: 70%; font-size: 23px; line-height: .95; text-align: center; text-transform: uppercase;
  transform: rotate(-12deg);
}
.vv-legende { margin-top: 18px; color: var(--gris); font-size: 14.5px; font-weight: 600; }

/* ---------- Sections ---------- */
.vv-sec { padding: clamp(56px, 8vw, 104px) 0; border-top: 2px solid var(--trait); }
.vv-gris { background: var(--fond); }
.vv-titre-sec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.vv-num {
  grid-row: span 2; align-self: start;
  display: grid; place-items: center;
  width: 54px; height: 54px; background: var(--rouge); color: #fff;
  border: 2px solid var(--trait);
  font-weight: 800; font-stretch: 70%; font-size: 26px;
}
.vv-titre-sec h2 { font-size: clamp(40px, 5.6vw, 72px); }
.vv-titre-sec p { max-width: 40em; color: var(--gris); font-size: 16.5px; }

/* Interventions */
.vv-tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vv-tuile {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  height: 100%; padding: 20px 18px 46px;
  background: var(--blanc);
  border: 2px solid var(--trait);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.vv-tuile svg { width: 38px; height: 38px; margin-bottom: 10px; color: var(--rouge); }
.vv-tuile b { font-weight: 800; font-stretch: 75%; font-size: 24px; line-height: 1; text-transform: uppercase; }
.vv-tuile span { color: var(--gris); font-size: 15px; line-height: 1.45; }
.vv-tuile::after {
  content: "Demander →";
  position: absolute; left: 18px; bottom: 14px;
  font-weight: 700; font-size: 13.5px; color: var(--rouge-f);
}
.vv-tuile:hover { transform: translate(-3px, -3px); box-shadow: var(--ombre); }
.vv-tuile:active { transform: none; box-shadow: none; }
.vv-autre { margin-top: 22px; font-weight: 600; }
.vv-autre a { color: var(--rouge-f); font-weight: 800; }

/* Sur le terrain */
.vv-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vv-photos figure { border: 2px solid var(--trait); background: var(--blanc); }
.vv-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid var(--trait); }
.vv-photos figcaption { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 700; }
.vv-photos figcaption::before { content: ""; width: 10px; height: 10px; background: var(--rouge); flex: none; }

/* Comment ça se passe */
.vv-noir { background: var(--noir); color: #fff; border-top-color: var(--noir); }
.vv-noir .vv-titre-sec p { color: #C9CDD3; }
.vv-noir .vv-num { border-color: #fff; }
.vv-etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: etape; }
.vv-etapes li { padding: 26px 22px 28px; border: 2px solid #fff; counter-increment: etape; }
.vv-etapes li::before {
  content: counter(etape);
  display: block; margin-bottom: 14px;
  color: var(--rouge); font-weight: 800; font-stretch: 66%; font-size: 76px; line-height: .8;
}
.vv-etapes h3 { margin-bottom: 8px; font-weight: 800; font-stretch: 75%; font-size: 26px; line-height: 1; text-transform: uppercase; }
.vv-etapes p { color: #C9CDD3; font-size: 16px; }
.vv-noir .vv-appel { margin-top: 36px; border-color: #fff; box-shadow: 7px 7px 0 #fff; }
.vv-noir .vv-appel .ic { background: #fff; color: var(--noir); }
.vv-noir .vv-appel:hover { box-shadow: 9px 9px 0 #fff; }

/* Zone et horaires */
.vv-zh { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.vv-zh h3 { margin-bottom: 16px; font-size: clamp(30px, 3.4vw, 42px); }
.vv-zh > div > p { color: var(--gris); margin-bottom: 22px; max-width: 34em; }
.vv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vv-chips li { padding: 8px 12px; border: 2px solid var(--trait); background: var(--blanc); font-weight: 600; font-size: 15px; }
.vv-chips li:first-child { background: var(--noir); color: #fff; }
.vv-heures { width: 100%; border-collapse: collapse; border: 2px solid var(--trait); background: var(--blanc); }
.vv-heures th, .vv-heures td { padding: 12px 16px; border-bottom: 1px solid #D5D8DD; text-align: left; font-size: 16px; }
.vv-heures th { font-weight: 600; }
.vv-heures td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.vv-heures tr:last-child th, .vv-heures tr:last-child td { border-bottom: 0; }
.vv-heures .ferme td { color: var(--gris); font-weight: 600; }
.vv-heures .aujourdhui th, .vv-heures .aujourdhui td { background: #FFF1F0; }
.vv-heures .aujourdhui th { box-shadow: inset 5px 0 0 var(--rouge); }
.vv-heures .aujourdhui th::after { content: " · aujourd’hui"; color: var(--rouge-f); font-weight: 700; font-size: 13.5px; }
.vv-note { margin-top: 14px; color: var(--gris); font-size: 15px; }

/* Formulaire de rappel */
.vv-form-grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.vv-form-grille h2 { margin-bottom: 18px; font-size: clamp(40px, 5.6vw, 72px); }
.vv-form-grille > div > p { color: var(--gris); margin-bottom: 26px; max-width: 30em; }
.vv-form { padding: clamp(20px, 3vw, 32px); border: 3px solid var(--trait); box-shadow: 10px 10px 0 var(--noir); background: var(--blanc); }
.vv-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vv-plein { grid-column: 1 / -1; }
.vv-champ label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.vv-champ .req { color: var(--rouge-f); }
.vv-champ .fac { color: var(--gris); font-weight: 500; }
.vv-champ input, .vv-champ select, .vv-champ textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px;
  border: 2px solid var(--trait); border-radius: 0; background: var(--blanc);
  font-size: 16px; -webkit-appearance: none; appearance: none;
}
.vv-champ select {
  padding-right: 42px;
  background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23111' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.vv-champ textarea { min-height: 96px; resize: vertical; }
.vv-champ input:focus, .vv-champ select:focus, .vv-champ textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--rouge); }
.vv-erreur { display: none; margin-top: 6px; color: var(--rouge-f); font-weight: 700; font-size: 14px; }
.a-erreur .vv-erreur { display: block; }
.a-erreur input, .a-erreur select { border-color: var(--rouge); }
.vv-envoyer {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; margin-top: 20px;
  background: var(--noir); color: #fff; border: 2px solid var(--noir);
  font-weight: 800; font-stretch: 80%; font-size: 21px; text-transform: uppercase; letter-spacing: .02em;
  cursor: pointer; transition: background-color .15s ease;
}
.vv-envoyer:hover { background: var(--rouge); border-color: var(--rouge); }
.vv-demo {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 14px 16px;
  border: 2px solid var(--trait); background: #FFF1F0;
  font-weight: 700;
}
.vv-demo[hidden] { display: none; }
.vv-demo:focus { outline: none; }
.vv-demo svg { flex: none; width: 22px; height: 22px; color: var(--rouge-f); }

/* ---------- Pied de page ---------- */
.vv-pied { padding: 44px 0 34px; background: var(--noir); color: #D3D6DB; font-size: 15px; }
.vv-pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.vv-pied .vv-logo-nom { color: #fff; }
.vv-pied .vv-logo-sous { color: #B4B9C1; }
.vv-pied h2 { margin-bottom: 10px; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vv-pied a { color: #fff; font-weight: 700; }
.vv-pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #33373D; font-size: 13.5px; color: #B4B9C1; }

/* ---------- Barre d'appel fixe (téléphone) ---------- */
.vv-barre {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px;
  background: var(--rouge); color: #fff;
  border: 3px solid var(--noir); box-shadow: 5px 5px 0 var(--noir);
  font-weight: 800; font-stretch: 78%; font-size: 22px; text-transform: uppercase; text-decoration: none;
  /* le texte ne dépasse jamais de la barre : sinon, avant le chargement de la police,
     le téléphone élargit toute la page de quelques pixels (débordement horizontal) */
  overflow: hidden;
  transition: transform .3s ease, opacity .3s ease;
}
.vv-barre svg { flex: none; width: 24px; height: 24px; }
.vv-barre.cachee { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- Apparitions discrètes ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .rv.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .vv-statut.ouvert .point { animation: vv-pouls 2.2s ease-out infinite; }
  .vv-sticker { animation: vv-tampon .6s cubic-bezier(.2, 1.4, .4, 1) .5s both; }
}
@keyframes vv-pouls { 0% { box-shadow: 0 0 0 0 rgba(31, 178, 90, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(31, 178, 90, 0); } }
@keyframes vv-tampon { from { opacity: 0; transform: rotate(-12deg) scale(1.5); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ==========================================================================
   Adaptation aux écrans
   ========================================================================== */
@media (max-width: 1023px) {
  .vv-tuiles { grid-template-columns: repeat(2, 1fr); }
  .vv-hero-grille, .vv-zh, .vv-form-grille { grid-template-columns: 1fr; }
  .vv-hero-photo { max-width: 620px; }
}
@media (max-width: 899px) {
  .vv-nav { display: none; }
  .vv-tel { margin-left: auto; }
  .vv-barre { display: flex; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 759px) {
  body { font-size: 16.5px; }
  .vv-tete .vv-in { min-height: 64px; gap: 12px; }
  .vv-logo svg { width: 36px; height: 36px; }
  .vv-logo-nom { font-size: 22px; }
  .vv-logo-sous { font-size: 11.5px; }
  .vv-tel { width: 48px; min-height: 48px; padding: 0; justify-content: center; }
  .vv-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vv-hero h1 { font-size: clamp(52px, 15vw, 72px); }
  .vv-appel { max-width: none; }
  .vv-appel .ic { width: 66px; }
  .vv-appel-txt b { font-size: clamp(30px, 9vw, 38px); }
  .vv-plus { flex-direction: column; gap: 10px; }
  .vv-hero-photo { margin-top: 10px; margin-right: 10px; }
  .vv-sticker { width: 96px; height: 96px; font-size: 19px; top: -22px; right: -8px; }
  .vv-titre-sec { grid-template-columns: 1fr; }
  .vv-num { grid-row: auto; width: 46px; height: 46px; font-size: 22px; }
  .vv-titre-sec h2 { font-size: clamp(40px, 12vw, 56px); }
  .vv-tuiles { gap: 10px; }
  .vv-tuile { padding: 16px 14px 40px; }
  .vv-tuile svg { width: 32px; height: 32px; margin-bottom: 6px; }
  .vv-tuile b { font-size: 21px; }
  .vv-tuile span { font-size: 14px; }
  .vv-tuile::after { left: 14px; bottom: 12px; font-size: 13px; }
  .vv-photos { grid-template-columns: 1fr; gap: 12px; }
  .vv-etapes { grid-template-columns: 1fr; gap: 12px; }
  .vv-etapes li { display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; padding: 20px 18px; }
  .vv-etapes li::before { grid-row: span 2; margin: 0; font-size: 64px; }
  .vv-champs { grid-template-columns: 1fr; }
  .vv-form { box-shadow: 6px 6px 0 var(--noir); }
  .vv-pied-grille { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 359px) {
  .vv-tuiles { grid-template-columns: 1fr; }
}

/* Petits compléments */
.sd-invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vv-zh .vv-statut { margin-bottom: 14px; }
.vv-form-grille .vv-titre-sec { margin-bottom: 18px; }
.vv-form-grille .vv-titre-sec h2 { margin: 0; }

/* ---------- Corrections après relecture ---------- */
/* 1. Titre du haut : « On intervient » tient sur une ligne, photo plus présente */
@media (min-width: 1024px) {
  .vv-hero-grille { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
  .vv-hero h1 { font-size: clamp(54px, 6.6vw, 96px); }
}
@media (min-width: 1024px) { .vv-hero-photo img { aspect-ratio: 1 / 1; } }
/* 3. Photos « Sur le terrain » moins hautes sur téléphone */
@media (max-width: 759px) { .vv-photos img { aspect-ratio: 16 / 10; } }
/* 4. Bon à savoir sous la zone */
.vv-savoir { margin-top: 26px; padding: 18px 20px; border: 2px solid var(--trait); background: var(--blanc); }
.vv-savoir h4 { margin: 0 0 10px; font-weight: 800; font-stretch: 75%; font-size: 20px; text-transform: uppercase; }
.vv-savoir ul { display: grid; gap: 8px; }
.vv-savoir li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 15.5px; }
.vv-savoir svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--rouge); }
/* 5. Pied de page : le numéro bien visible */
.vv-pied-tel {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 10px 14px; background: var(--rouge); border: 2px solid #fff;
  font-weight: 800; font-stretch: 78%; font-size: 22px; text-decoration: none;
}
.vv-pied-tel svg { width: 20px; height: 20px; }
