/* Page vitrine publique et page « devis » (lot WEB-01).
 * Direction « signalétique de chantier » : blanc, encre quasi noire, gris
 * acier, un seul accent orange (la couleur des tourniquets du client).
 * Coins droits, traits de 1 px, ni ombre, ni dégradé, ni flou ; aucune
 * animation au défilement. Polices et couleurs communes dans commun.css
 * (lot WEB-02) ; indépendante de style.css. */

:root {
  /* Couleurs et polices communes : commun.css (lot WEB-02). */
  --bande-texte: #F2F2F0;
  --bande-discret: #B4BAC0;

  --corps: 1.0625rem;          /* 17 px */
  --gouttiere: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.vitrine {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: var(--corps);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

.vitrine img, .vitrine svg { display: block; max-width: 100%; height: auto; }

.vitrine h1, .vitrine h2, .vitrine h3 {
  font-family: var(--titres);
  font-stretch: 87.5%;
  letter-spacing: -0.02em;
  word-spacing: 0.08em;
  margin: 0;
  text-wrap: balance;
}
.vitrine h1 span { display: block; }
.vitrine h1 {
  font-size: clamp(3rem, 2.1rem + 3.6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
}
.vitrine h2 {
  font-size: clamp(2rem, 1.55rem + 1.8vw, 2.875rem);
  font-weight: 800;
  line-height: 1.1;
}
.vitrine h3 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}
.vitrine p { margin: 0 0 1em; }

.v-largeur {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

/* Grille de 12 colonnes (au-delà de 900 px). */
@media (min-width: 900px) {
  .v-ouverture, .v-portique, .v-presents, .v-bande-grille, .v-heures, .v-serieux {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gouttiere);
  }
}

.v-mono, .v-etiquette, .v-num, .vitrine figcaption, .v-nomenclature, .v-tableau caption,
.v-tableau thead th, .v-faits dt, .v-bande-points dt {
  font-family: var(--mono);
  font-weight: 500;
}

.v-etiquette {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acier);
  margin: 0 0 20px;
}

/* --- Liens et boutons ----------------------------------------------------- */
.vitrine a { color: inherit; }
.v-lien {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 150ms ease, color 150ms ease;
}
.v-lien:hover { text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

.v-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--encre);
  border-radius: 0;
  font-family: var(--texte);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.v-principal { background: var(--orange); color: var(--encre); }
.v-principal:hover { background: var(--encre); color: var(--fond); }
.v-secondaire { background: var(--fond); color: var(--encre); }
.v-secondaire:hover { background: var(--encre); color: var(--fond); }
.v-grand { min-height: 52px; padding: 0 26px; font-size: 1.0625rem; }

.vitrine a:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
  box-shadow: none;
}
.v-bande a:focus-visible { outline-color: var(--orange); }

.evitement {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--encre);
  color: var(--fond) !important;
  z-index: 2;
}
.evitement:focus { top: 8px; }

/* --- En-tête -------------------------------------------------------------- */
.v-entete { border-bottom: 1px solid var(--encre); }
.v-entete-ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.v-marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--titres);
  font-stretch: 87.5%;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.picto { width: 30px; height: 30px; flex: none; }
.v-actions { display: flex; gap: 12px; }

/* --- Dessin (classes du SVG) ---------------------------------------------- */
.d-orange { fill: var(--orange); stroke: var(--encre); stroke-width: 1.1; }
.d-blanc { fill: var(--fond); stroke: var(--encre); stroke-width: 1.1; }
.d-encre { fill: var(--encre); }
.d-trait { fill: none; stroke: var(--encre); stroke-width: 1.1; }
.d-fin { fill: none; stroke: var(--encre); stroke-width: 0.7; }
.d-cache { fill: none; stroke: var(--encre); stroke-width: 1; stroke-dasharray: 4 3; }
.d-axe { fill: none; stroke: var(--acier); stroke-width: 0.7; stroke-dasharray: 16 4 2 4; }
.d-repere {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 17px;
  text-anchor: middle;
  fill: var(--encre);
}
.d-trait-picto { fill: none; stroke: var(--encre); stroke-width: 1.5; }
.v-marque .d-orange { stroke-width: 1; }

/* --- 2. Ouverture --------------------------------------------------------- */
.v-ouverture { padding-top: 56px; padding-bottom: 72px; }
.v-ouverture-texte { grid-column: 1 / 8; align-self: center; }
.v-ouverture h1 { margin-bottom: 28px; }
.v-chapeau {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 32em;
}
.v-appels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px !important;
}
.v-ouverture-dessin { grid-column: 8 / 13; margin: 0; }
.v-ouverture-dessin .dessin { width: 100%; max-width: 520px; }
.v-nomenclature {
  width: 100%;
  max-width: 520px;
  margin-top: 16px;
  border-collapse: collapse;
  border: 1px solid var(--encre);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.v-nomenclature caption {
  caption-side: top;
  text-align: left;
  padding: 7px 10px;
  border: 1px solid var(--encre);
  border-bottom: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.v-nomenclature th, .v-nomenclature td {
  padding: 6px 10px;
  border-top: 1px solid var(--encre);
  text-align: left;
  font-weight: 500;
}
.v-nomenclature th { width: 2.5em; border-right: 1px solid var(--encre); }
.v-nomenclature td { font-family: var(--texte); font-weight: 400; }

/* --- 3. Ce que fait le portique : liste 01-04 ------------------------------ */
/* Filet de séparation, aligné sur le contenu (élément de la grille). */
.v-filet::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  height: 1px;
  background: var(--encre);
  margin-bottom: var(--avant, 64px);
}
.v-portique { padding-bottom: 96px; }
.v-portique-tete { grid-column: 1 / 5; }
.v-portique-tete h2 { margin-bottom: 20px; }
.v-portique-tete p { color: var(--acier); max-width: 26em; }
.v-points { grid-column: 6 / 13; list-style: none; margin: 0; padding: 0; }
.v-points li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 16px;
  padding: 22px 0 18px;
  border-top: 1px solid var(--encre);
}
.v-points li:last-child { border-bottom: 1px solid var(--encre); }
.v-num {
  grid-row: 1 / 3;
  font-size: 0.9375rem;
  padding-top: 3px;
  letter-spacing: 0.04em;
}
.v-num::before {
  content: "";
  display: block;
  width: 24px;
  height: 4px;
  margin-bottom: 8px;
  background: var(--orange);
}
.v-points h3 { margin-bottom: 8px; }
.v-points p { margin: 0; max-width: 36em; }

/* --- 4. Présents : captures ----------------------------------------------- */
.v-presents { --avant: 80px; padding-bottom: 112px; }
.v-presents-tete { grid-column: 1 / 9; margin-bottom: 48px; }
.v-presents-tete h2 { margin-bottom: 20px; max-width: 16ch; }
.v-presents-tete p { max-width: 38em; }
.v-capture { margin: 0; }
.v-capture img { border: 1px solid var(--encre); width: 100%; }
.v-capture figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.v-capture figcaption span { color: var(--acier); }
.v-capture-pc { grid-column: 1 / 9; align-self: start; }
.v-capture-tel { grid-column: 10 / 13; margin-top: 96px; max-width: 300px; }

/* --- 5. Bande foncée : évacuation ----------------------------------------- */
.v-bande {
  background: var(--encre);
  color: var(--bande-texte);
  border-top: 6px solid var(--orange);
  padding: 80px 0 72px;
}
.v-bande .v-etiquette { color: var(--orange); }
.v-bande-tete { grid-column: 1 / 6; }
.v-bande h2 { color: #FFFFFF; max-width: 13ch; }
.v-bande-points { grid-column: 7 / 13; margin: 0; }
.v-bande-points div { padding: 20px 0; border-top: 1px solid #4A4F55; }
.v-bande-points div:first-child { border-top-color: var(--orange); }
.v-bande-points dt {
  color: var(--orange);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.v-bande-points dd { margin: 0; max-width: 34em; }
.v-bande-note {
  grid-column: 7 / 13;
  margin: 24px 0 0 !important;
  font-size: 0.9375rem;
  color: var(--bande-discret);
}

/* --- 6. Heures ------------------------------------------------------------- */
.v-heures { padding-top: 96px; padding-bottom: 88px; }
.v-heures-texte { grid-column: 1 / 6; }
.v-heures-texte h2 { margin-bottom: 24px; }
.v-heures-texte p { max-width: 30em; }
.v-heures-tableau { grid-column: 7 / 13; align-self: center; overflow-x: auto; }
.v-tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.v-tableau caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 10px;
  font-size: 0.8125rem;
  color: var(--acier);
}
.v-tableau th, .v-tableau td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--trait-clair);
  text-align: left;
  font-weight: 400;
}
.v-tableau thead th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--encre);
  padding-top: 0;
}
.v-tableau tbody th { font-weight: 500; }
.v-tableau tfoot th, .v-tableau tfoot td {
  font-weight: 500;
  border-top: 1px solid var(--encre);
  border-bottom: 0;
}
.v-tableau .v-n { text-align: right; font-variant-numeric: tabular-nums; }
.v-tableau th:first-child, .v-tableau td:first-child { padding-left: 0; }
.v-tableau th:last-child, .v-tableau td:last-child { padding-right: 0; }

/* --- 7. Sérieux ------------------------------------------------------------ */
.v-serieux { padding-bottom: 96px; }
.v-serieux h2 { grid-column: 1 / 5; margin-bottom: 32px; }
.v-faits { grid-column: 6 / 13; margin: 0; }
.v-faits div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  column-gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--trait-clair);
}
.v-faits div:first-child { border-top-color: var(--encre); }
.v-faits dt {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 3px;
}
.v-faits dd { margin: 0; }

/* --- Page devis ----------------------------------------------------------- */
.v-devis { padding-top: 72px; padding-bottom: 120px; }
.v-devis h1 { font-size: clamp(3rem, 2.4rem + 2.4vw, 3.75rem); margin-bottom: 20px; }

/* --- Pied de page --------------------------------------------------------- */
.v-pied { border-top: 1px solid var(--encre); }
.v-pied-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 28px;
  padding-bottom: 36px;
}
.v-pied .v-marque { font-size: 1.125rem; }
.v-annee { margin-left: auto; font-size: 0.8125rem; color: var(--acier); }

/* --- Téléphone ------------------------------------------------------------ */
@media (max-width: 899px) {
  .v-ouverture-dessin { margin-top: 48px; }
  .v-portique-tete, .v-presents-tete, .v-heures-texte, .v-bande-tete { margin-bottom: 32px; }
  .v-capture-tel { margin: 40px 0 0; max-width: 260px; }
  .v-bande-note { margin-top: 24px !important; }
}
@media (max-width: 560px) {
  :root { --corps: 1rem; --gouttiere: 16px; }
  .v-devis-entete { display: none; }
  .v-entete-ligne { min-height: 64px; }
  .v-ouverture { padding-top: 36px; padding-bottom: 56px; }
  .v-chapeau { font-size: 1.125rem; }
  .v-points li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; }
  .v-faits div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .v-portique, .v-presents, .v-serieux { --avant: 48px; padding-bottom: 64px; }
  .v-heures { padding-top: 48px; padding-bottom: 64px; }
  .v-bande { padding: 56px 0; }
  .v-annee { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vitrine *, .vitrine *::before, .vitrine *::after { transition: none !important; }
}
