/* ==========================================================================
   SPMC Menuiserie — Gabarit des pages villes (préfixe .vl-)
   Créé le 15/10/2026. Chargé APRÈS styles.css, uniquement par les pages
   menuisier-*.html. Mobile-first. Réutilise les variables de styles.css et
   ne redéfinit aucune classe globale : les seules retouches de composants
   partagés (.breadcrumb, .form-*, .reviews-grid) sont limitées à un parent .vl-.

   Sections, dans l'ordre de la page :
     .vl-hero      haut de page : texte + formulaire (à droite au bureau, dessous sur mobile)
     .vl-facts     fiche pratique (4 lignes)
     .vl-work      réalisations : cartes photo .vl-card + chantiers sans photo .vl-jobs
     .vl-rules     spécificités locales (urbanisme, secteur protégé) + .vl-note + .vl-sources
     .vl-data      chiffres INSEE : .vl-stats / .vl-stat
     .vl-services  cartes de liens vers /services/
     .vl-reviews   avis Google (réutilise .reviews-grid / .review-card)
     (process)     .section--dark + .process-steps (composant global)
     .vl-towns     communes desservies + temps de trajet, puis .vl-links (pages voisines)
     (faq)         .faq-list (composant global)
     (cta)         .cta-banner (composant global)
   ========================================================================== */

/* --- Outils communs ------------------------------------------------------ */
.vl-section-intro {
  max-width: 720px;
  margin: -1rem auto 1.75rem;
  text-align: center;
  font-size: .95rem;
}

/* ==========================================================================
   1. HAUT DE PAGE
   ========================================================================== */
.vl-hero {
  padding: calc(var(--header-height) + 1rem) 0 2.25rem;
  background: linear-gradient(180deg, #FAFAFA 0%, #F1EFEC 100%);
  border-bottom: 1px solid var(--color-gray-light);
}
.vl-hero .breadcrumb { justify-content: flex-start; margin-bottom: .9rem; }
.vl-hero .breadcrumb a,
.vl-hero .breadcrumb span { color: var(--color-text-light); }
.vl-hero .breadcrumb a { text-decoration: underline; text-underline-offset: 2px; }
.vl-hero .breadcrumb a:hover { color: var(--color-accent-hover); }

.vl-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.vl-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .75rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.vl-hero__eyebrow svg { width: 14px; height: 14px; fill: currentColor; }

.vl-hero h1 {
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -.01em;
  font-weight: 800;
  margin-bottom: .8rem;
}
.vl-hero h1 .vl-accent { color: var(--color-accent); }

.vl-hero__lead {
  font-size: .95rem;
  line-height: 1.55;
  max-width: 580px;
  margin-bottom: 1rem;
}
.vl-hero__lead strong { color: var(--color-anthracite); }

.vl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .25rem;
}
.vl-hero__actions .btn { min-height: 48px; flex: 1 1 200px; }
.vl-hero__actions .btn svg { width: 18px; height: 18px; fill: currentColor; }

/* La ligne de preuves (.sp-trust, composant global) : un peu plus d'air ici */
.vl-hero .sp-trust { margin-top: 1.1rem; }

/* --- Carte formulaire ---------------------------------------------------- */
.vl-hero__form {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(31, 35, 40, .08);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 16px 40px rgba(31, 35, 40, .12), 0 2px 6px rgba(31, 35, 40, .05);
  padding: 1.2rem 1.1rem 1.1rem;
}
.vl-hero__form-head {
  padding-bottom: .75rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--color-gray-light);
}
.vl-hero__form-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-anthracite);
}
.vl-hero__form-title span { color: var(--color-accent); }
.vl-hero__form-sub {
  display: block;
  margin-top: .2rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-accent-hover);
}

/* champ piège anti-robot : jamais affiché (même principe que contact.html) */
.vl-hero__form-honeypot { display: none !important; }

.vl-hero__form .form-group { margin-bottom: .85rem; }
.vl-hero__form .form-group label { margin-bottom: .3rem; }
.vl-hero__form .form-input,
.vl-hero__form .form-select,
.vl-hero__form .form-textarea {
  padding: .7rem .85rem;
  font-size: 1rem;            /* 16 px : pas de zoom automatique sur iPhone */
}
.vl-hero__form .form-textarea { min-height: 96px; }
.vl-hero__form .vl-optional-hint { font-weight: 400; color: var(--color-text-light); }
.vl-hero__form .form-submit {
  width: 100%;
  min-height: 50px;
  white-space: normal;        /* jamais de débordement à 360 px */
}
.vl-hero__form .form-trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-align: center;
  font-weight: 600;
  color: var(--color-anthracite);
}
.vl-hero__form .form-trust-note svg { width: 15px; height: 15px; fill: var(--color-accent); flex-shrink: 0; }
.vl-hero__form .form-success { text-align: left; }

/* Zone facultative (Email, Ville, Message) repliée à toutes les largeurs.
   Sur mobile, styles.css s'en charge déjà ; on reproduit le même comportement
   au bureau pour garder un formulaire court à côté du titre. */
@media (min-width: 768px) {
  .vl-hero__form .form-optional-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 0 0 .75rem;
    padding: .55rem .7rem;
    border: 1px dashed rgba(184, 115, 51, .55);
    border-radius: 8px;
    background: rgba(184, 115, 51, .06);
    color: var(--color-accent-hover);
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
  }
  .vl-hero__form .form-optional-toggle:hover { background: rgba(184, 115, 51, .12); }
  .vl-hero__form .contact-form-optional { display: none; }
  .vl-hero__form #devis-form.is-expanded .contact-form-optional { display: block; }
}

@media (min-width: 768px) {
  .vl-hero h1 { font-size: 2.1rem; }
  .vl-hero__form { max-width: none; padding: 1.4rem 1.5rem 1.3rem; }
}

@media (min-width: 1024px) {
  .vl-hero { padding: calc(var(--header-height) + 1.5rem) 0 3rem; }
  .vl-hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 3rem;
    align-items: center;
  }
  .vl-hero h1 { font-size: 2.35rem; }
  .vl-hero__lead { font-size: 1.02rem; }
  .vl-hero__actions .btn { flex: 0 1 auto; }
  .vl-hero__form { max-width: none; }
}

/* ==========================================================================
   2. FICHE PRATIQUE
   ========================================================================== */
.vl-facts { padding: 2rem 0; background: var(--color-white); }
.vl-facts__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.vl-facts__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .7rem;
  margin: 0;
}
.vl-facts__item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .95rem 1rem;
  background: var(--color-white-warm);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-gray-light);
}
.vl-facts__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vl-facts__icon svg { width: 19px; height: 19px; fill: var(--color-accent); }
.vl-facts__item dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  margin-bottom: .15rem;
}
.vl-facts__item dd {
  margin: 0;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--color-anthracite);
}
.vl-facts__item dd small { display: block; font-size: .78rem; color: var(--color-text-light); margin-top: .15rem; }

@media (min-width: 768px) {
  .vl-facts { padding: 2.5rem 0; }
  .vl-facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
}
@media (min-width: 1100px) {
  .vl-facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   3. RÉALISATIONS ET CHANTIERS
   ========================================================================== */
.vl-work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 auto;
}
.vl-card {
  margin: 0;
  background: var(--color-white);
  border: 1px solid rgba(31, 35, 40, .08);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(31, 35, 40, .06);
}
.vl-card__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ECEAE7;
}
.vl-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.vl-card__body { padding: .6rem .75rem .75rem; }
.vl-card__type {
  display: block;
  font-weight: 700;
  font-size: .86rem;
  line-height: 1.3;
  color: var(--color-anthracite);
}
.vl-card__place {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: .2rem;
  font-size: .78rem;
  color: var(--color-text-light);
}
.vl-card__place svg { width: 13px; height: 13px; fill: var(--color-accent); flex-shrink: 0; }

/* chantiers réels sans photo publiée : cartes texte */
.vl-jobs-title {
  font-size: 1.05rem;
  margin: 2rem 0 .35rem;
}
.vl-jobs-intro { font-size: .88rem; margin-bottom: .9rem; }
.vl-jobs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .6rem;
}
.vl-job {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
}
.vl-job svg { width: 18px; height: 18px; fill: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.vl-job p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--color-anthracite); }
.vl-job__place { display: block; font-size: .78rem; color: var(--color-text-light); margin-top: .1rem; }

.vl-work__more { text-align: center; margin-top: 1.75rem; }
.vl-work__more p { font-size: .88rem; margin-bottom: .9rem; }

@media (min-width: 768px) {
  .vl-work__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; gap: 1rem; }
  .vl-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vl-jobs-wrap { max-width: 900px; margin: 0 auto; }
  .vl-card__type { font-size: .92rem; }
}

/* ==========================================================================
   4. SPÉCIFICITÉS LOCALES (urbanisme)
   ========================================================================== */
.vl-rules__intro { max-width: 760px; margin: 0 auto 1.5rem; }
.vl-rules__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .9rem;
}
.vl-rule {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius-lg);
  padding: 1.15rem 1.15rem 1rem;
}
.vl-rule--strict { border-top: 3px solid var(--color-anthracite); }
.vl-rule--framed { border-top: 3px solid var(--color-accent); }
.vl-rule--open { border-top: 3px solid var(--color-gray); }
.vl-rule__tag {
  display: inline-block;
  margin-bottom: .45rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--color-gray-dark);
}
.vl-rule h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.vl-rule p { font-size: .9rem; margin-bottom: .6rem; }
.vl-rule ul { margin: 0; }
.vl-rule li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: .4rem;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--color-text-light);
}
.vl-rule li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.vl-note {
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.15rem;
  background: var(--color-accent-light);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
}
.vl-note p { margin: 0 0 .5rem; font-size: .92rem; color: var(--color-anthracite); }
.vl-note p:last-child { margin-bottom: 0; }

.vl-sources {
  max-width: 760px;
  margin: 1.25rem auto 0;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--color-text-light);
}
.vl-sources p { font-size: inherit; color: inherit; margin-bottom: .35rem; }
/* plus spécifique que la règle globale « .section p a:not(.btn) » : liens de sources discrets */
.section .vl-sources p a:not(.btn) { color: var(--color-text-light); font-weight: 400; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .vl-rules__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
}

/* ==========================================================================
   5. CHIFFRES (INSEE)
   ========================================================================== */
.vl-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
  max-width: 900px;
  margin: 0 auto;
}
.vl-stat {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.1rem;
}
.vl-stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-accent);
}
.vl-stat__label { display: block; margin-top: .3rem; font-size: .88rem; line-height: 1.4; color: var(--color-text-light); }
.vl-data__text { max-width: 760px; margin: 1.5rem auto 0; }
.vl-data__text p { font-size: .95rem; }

@media (min-width: 640px) {
  .vl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

/* ==========================================================================
   6. SERVICES (liens vers /services/)
   ========================================================================== */
.vl-services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
}
.vl-service {
  display: block;
  padding: 1.05rem 1.15rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.vl-service:hover,
.vl-service:focus-visible {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.vl-service__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-anthracite);
  margin-bottom: .3rem;
}
.vl-service__title svg { width: 18px; height: 18px; fill: var(--color-accent); flex-shrink: 0; }
.vl-service__text { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--color-text-light); }

@media (min-width: 640px) {
  .vl-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .vl-services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

/* ==========================================================================
   7. AVIS GOOGLE
   ========================================================================== */
.vl-reviews__score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem .75rem;
  margin: -1rem auto 1.5rem;
  text-align: center;
}
.vl-reviews__value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-anthracite);
}
.vl-reviews__stars { display: inline-flex; gap: 2px; }
.vl-reviews__stars svg { width: 18px; height: 18px; fill: #F59E0B; }
.vl-reviews__meta { font-size: .85rem; color: var(--color-text-light); }
.vl-reviews .review-card__location { color: var(--color-gray-dark); }
.vl-reviews__more { text-align: center; margin-top: 1.5rem; }

/* ==========================================================================
   8. COMMUNES DESSERVIES + LIENS VOISINS
   ========================================================================== */
.vl-towns__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
  max-width: 900px;
  margin: 0 auto;
}
.vl-towns__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  padding: .55rem .7rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: 8px;
  font-size: .86rem;
  line-height: 1.3;
}
.vl-towns__item--home { border-color: var(--color-accent); background: #FFFBF7; }
.vl-towns__name { min-width: 0; overflow-wrap: anywhere; color: var(--color-anthracite); font-weight: 500; }
.vl-towns__time { flex-shrink: 0; white-space: nowrap; font-size: .8rem; font-weight: 600; color: var(--color-accent-hover); }
.vl-towns__note { max-width: 760px; margin: 1rem auto 0; font-size: .88rem; text-align: center; }

.vl-links-title { font-size: 1.05rem; text-align: center; margin: 2.25rem 0 .9rem; }
.vl-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  max-width: 900px;
  margin: 0 auto;
}
.vl-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .95rem;
  border: 1px solid var(--color-gray-light);
  border-radius: 999px;
  background: var(--color-white);
  font-size: .86rem;
  font-weight: 600;
  color: var(--color-anthracite);
  transition: border-color var(--transition), color var(--transition);
}
.vl-links a:hover,
.vl-links a:focus-visible { border-color: var(--color-accent); color: var(--color-accent-hover); }
.vl-links a.vl-links__city { border-color: rgba(184, 115, 51, .45); }

@media (min-width: 640px) {
  .vl-towns__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .vl-towns__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
}

/* ==========================================================================
   9. FAQ / CTA : composants globaux, seuls ajustements
   ========================================================================== */
.vl-faq .faq-answer a { color: var(--color-accent-hover); text-decoration: underline; text-underline-offset: 2px; }
.vl-cta h2 { max-width: 860px; margin-left: auto; margin-right: auto; }
.vl-cta .cta-banner__actions .btn { min-height: 48px; }

/* galerie : la dernière rangée incomplète est centrée (plus de trou à droite) */
.vl-work__grid { display: flex; flex-wrap: wrap; justify-content: center; }
.vl-work__grid > .vl-card { flex: 0 0 calc(50% - .375rem); }
@media (min-width: 768px) { .vl-work__grid > .vl-card { flex: 0 0 calc((100% - 2rem) / 3); } }
/* lien « 41 avis » du haut de page : vraie zone cliquable, visiblement un lien */
.vl-hero .sp-trust__item a { display: inline-block; padding: .3rem 0; text-decoration: underline; text-underline-offset: 2px; }

