/* =========================================================================
   Vigila Distribution — système de design
   Charte v1.0 du 27/10/2026.

   Règle : aucune couleur en dur dans le reste du thème. Tout passe par un
   jeton. Un jeton employé mais jamais défini rend la déclaration invalide et
   retombe silencieusement sur la valeur initiale — un défaut invisible à
   l'œil. L'audit des jetons morts doit rendre zéro.

   Pas de mode sombre : la charte définit une identité claire (70 % blanc).
   N'en ajouter un qu'avec une décision D, sinon chaque couleur figée devient
   un piège d'illisibilité.
   ====================================================================== */

:root {
  /* --- Palette de marque ------------------------------------------------ */
  --vig-bleu: #062652;
  --vig-orange: #ff511f;
  --vig-blanc: #ffffff;
  --vig-gris-fond: #edf1f5;

  /* Orange d'action : l'orange de charte sur blanc plafonne à 3,2:1, sous le
     seuil AA de 4,5:1 exigé par le CDC pour du texte courant. Cette variante
     atteint 5:1 et sert UNIQUEMENT quand du texte de taille normale repose
     sur de l'orange. L'orange de charte reste la couleur des aplats, des
     filets et des grands titres. Arbitrage à confirmer avec la direction. */
  --vig-orange-action: #c93c0c;

  /* --- Déclinaisons ----------------------------------------------------- */
  --vig-bleu-85: #1b3a63;
  --vig-bleu-70: #35527a;
  --vig-texte: #1f2b3d;
  --vig-texte-doux: #5b6b80;
  --vig-filet: #d7dfe9;

  /* --- Typographie ------------------------------------------------------
     DejaVu Sans est la police de la charte. Les fichiers woff2 ne sont pas
     encore fournis : la pile de repli reste proche en dessin et en chasse.
     À remplacer par un @font-face dès réception des fichiers et de leur
     licence. */
  --vig-police: "DejaVu Sans", Verdana, Geneva, sans-serif;

  --vig-t-xs: 0.8125rem;   /* 13px */
  --vig-t-s: 0.9375rem;    /* 15px */
  --vig-t-m: 1rem;         /* 16px */
  --vig-t-l: 1.125rem;     /* 18px */
  --vig-t-xl: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  --vig-t-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --vig-t-3xl: clamp(2.125rem, 1.5rem + 3vw, 3.25rem);

  --vig-graisse-normale: 400;
  --vig-graisse-forte: 700;
  --vig-interligne: 1.6;
  --vig-interligne-titre: 1.15;

  /* --- Échelle d'espacement, base 8 ------------------------------------- */
  --vig-e-1: 0.5rem;   /* 8  */
  --vig-e-2: 1rem;     /* 16 */
  --vig-e-3: 1.5rem;   /* 24 */
  --vig-e-4: 2rem;     /* 32 */
  --vig-e-5: 3rem;     /* 48 */
  --vig-e-6: 4rem;     /* 64 */
  --vig-e-7: 6rem;     /* 96 */

  /* --- Formes ----------------------------------------------------------- */
  --vig-rayon-s: 2px;
  --vig-rayon-m: 4px;
  --vig-rayon-l: 8px;

  /* --- Mise en page ----------------------------------------------------- */
  --vig-largeur: 1200px;
  --vig-gouttiere: var(--vig-e-2);

  /* --- Mouvement -------------------------------------------------------- */
  --vig-transition: 160ms ease;
}

/* =========================================================================
   Réinitialisation mesurée
   ====================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--vig-blanc);
  color: var(--vig-texte);
  font-family: var(--vig-police);
  font-size: var(--vig-t-m);
  line-height: var(--vig-interligne);
}

h1, h2, h3, h4 {
  margin: 0 0 var(--vig-e-2);
  color: var(--vig-bleu);
  font-weight: var(--vig-graisse-forte);
  line-height: var(--vig-interligne-titre);
}

h1 { font-size: var(--vig-t-3xl); }
h2 { font-size: var(--vig-t-2xl); }
h3 { font-size: var(--vig-t-xl); }
h4 { font-size: var(--vig-t-l); }

p { margin: 0 0 var(--vig-e-2); }

a { color: var(--vig-bleu); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--vig-orange-action); }

img, svg { max-width: 100%; height: auto; }

/* Focus visible — exigence WCAG, ne jamais retirer. */
:focus-visible {
  outline: 3px solid var(--vig-orange);
  outline-offset: 2px;
}

/* =========================================================================
   Utilitaires
   ====================================================================== */

.vig-conteneur {
  width: min(100% - (var(--vig-gouttiere) * 2), var(--vig-largeur));
  margin-inline: auto;
}

.vig-saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--vig-bleu);
  color: var(--vig-blanc);
  padding: var(--vig-e-1) var(--vig-e-2);
  z-index: 100;
}
.vig-saut-contenu:focus { left: var(--vig-e-1); top: var(--vig-e-1); }

/* Réceptacle d'image non fournie : muet, sans texte, sans libellé. */
.vig-image-absente {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--vig-gris-fond);
  border-radius: var(--vig-rayon-m);
}

/* =========================================================================
   Boutons
   ====================================================================== */

.vig-bouton {
  display: inline-flex;
  align-items: center;
  gap: var(--vig-e-1);
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--vig-rayon-m);
  font-size: var(--vig-t-m);
  font-weight: var(--vig-graisse-forte);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--vig-transition), color var(--vig-transition),
              border-color var(--vig-transition);
}

.vig-bouton--principal {
  background: var(--vig-orange-action);
  color: var(--vig-blanc);
}
.vig-bouton--principal:hover { background: var(--vig-bleu); color: var(--vig-blanc); }

.vig-bouton--secondaire {
  background: transparent;
  color: var(--vig-bleu);
  border-color: var(--vig-bleu);
}
.vig-bouton--secondaire:hover { background: var(--vig-bleu); color: var(--vig-blanc); }

/* Sur fond bleu, le contour passe en blanc. */
.vig-sur-bleu .vig-bouton--secondaire { color: var(--vig-blanc); border-color: var(--vig-blanc); }
.vig-sur-bleu .vig-bouton--secondaire:hover { background: var(--vig-blanc); color: var(--vig-bleu); }

/* =========================================================================
   En-tête
   ====================================================================== */

.vig-entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--vig-blanc);
  border-bottom: 1px solid var(--vig-filet);
}

.vig-entete__bandeau {
  background: var(--vig-bleu);
  color: var(--vig-blanc);
  font-size: var(--vig-t-xs);
}
.vig-entete__bandeau .vig-conteneur {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--vig-e-2);
  min-height: 34px;
}
.vig-entete__bandeau a { color: var(--vig-blanc); }

.vig-entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--vig-e-3);
  padding-block: var(--vig-e-2);
}

.vig-logo { display: inline-flex; align-items: center; }
.vig-logo img, .vig-logo svg { height: 48px; width: auto; }

.vig-nav ul {
  display: flex;
  align-items: center;
  gap: var(--vig-e-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.vig-nav a {
  color: var(--vig-bleu);
  font-weight: var(--vig-graisse-forte);
  font-size: var(--vig-t-s);
  text-decoration: none;
}
.vig-nav a:hover { color: var(--vig-orange-action); }
.vig-nav li { position: relative; }

/* Chevron sur les seules entrées qui ont un sous-menu. La classe est calculée
   côté PHP : WordPress ne pose aucune classe disant « cette entrée a des
   enfants », et le chevron se dessinerait partout. */
.vig-nav .vig-a-sous-menu > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  vertical-align: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.vig-nav .sub-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  margin: 0;
  padding: var(--vig-e-1) 0;
  background: var(--vig-blanc);
  border: 1px solid var(--vig-filet);
  border-radius: var(--vig-rayon-m);
  box-shadow: 0 8px 24px rgba(6, 38, 82, 0.12);
  z-index: 60;
}
.vig-nav .sub-menu li { display: block; }
.vig-nav .sub-menu a {
  display: block;
  padding: 0.5rem var(--vig-e-2);
  font-weight: var(--vig-graisse-normale);
}

/* Ouverture au survol ET au focus : `:focus-within` suffit au clavier, sans
   JavaScript ni gestion manuelle de l'ordre de tabulation. Le sous-menu est
   replié par `visibility`, pas par `display: none` : une boîte masquée par
   display reste inatteignable au clavier dans certains moteurs. */
@media (min-width: 1280px) {
  .vig-nav .sub-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--vig-transition), transform var(--vig-transition), visibility var(--vig-transition);
  }
  .vig-nav li:hover > .sub-menu,
  .vig-nav li:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
}

/* Le bouton de menu ne commande rien sans JavaScript : il n'apparaît donc
   qu'avec `vig-js`, posée en tête de document. */
.vig-burger { display: none; }

.vig-burger__barres,
.vig-burger__barres::before,
.vig-burger__barres::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}
.vig-burger__barres { position: relative; }
.vig-burger__barres::before { position: absolute; top: -7px; }
.vig-burger__barres::after { position: absolute; top: 7px; }

/* Sous 1280px la nav horizontale ne tient plus : le seuil tient à la longueur
   des libellés, pas à une taille d'appareil. */
@media (max-width: 1279px) {
  /* Le menu déplié passe à la ligne : sans `flex-wrap`, son `flex-basis: 100%`
     écrase le logo et le bouton au lieu de les repousser. */
  .vig-entete__barre { flex-wrap: wrap; }

  .vig-nav {
    order: 10;
    flex-basis: 100%;
    border-top: 1px solid var(--vig-filet);
    padding-top: var(--vig-e-2);
  }
  .vig-nav ul,
  .vig-nav .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .vig-nav li > a {
    display: block;
    padding: 0.625rem 0;
    font-size: var(--vig-t-m);
  }
  .vig-nav .sub-menu a { padding-left: var(--vig-e-2); }

  /* Le chevron ne commande rien ici : tous les sous-menus sont dépliés. */
  .vig-nav .vig-a-sous-menu > a::after { display: none; }

  .vig-js .vig-burger {
    display: inline-flex;
    align-items: center;
    gap: var(--vig-e-1);
    padding: 0.5rem var(--vig-e-2);
    background: var(--vig-blanc);
    color: var(--vig-bleu);
    border: 1px solid var(--vig-filet);
    border-radius: var(--vig-rayon-m);
    font-family: inherit;
    font-size: var(--vig-t-s);
    font-weight: var(--vig-graisse-forte);
    cursor: pointer;
  }
  .vig-js .vig-nav { display: none; }
  .vig-js.vig-menu-ouvert .vig-nav { display: block; }
}

/* =========================================================================
   Sections
   ====================================================================== */

.vig-section { padding-block: var(--vig-e-6); }
.vig-section--gris { background: var(--vig-gris-fond); }
.vig-section--bleu { background: var(--vig-bleu); color: var(--vig-blanc); }
.vig-section--bleu h1,
.vig-section--bleu h2,
.vig-section--bleu h3 { color: var(--vig-blanc); }

.vig-hero { padding-block: var(--vig-e-7); }
.vig-hero__accroche { max-width: 46rem; }
.vig-hero__soustitre {
  font-size: var(--vig-t-l);
  color: var(--vig-blanc);
  opacity: 0.92;
  margin-bottom: var(--vig-e-4);
}
.vig-hero__filet {
  width: 72px;
  height: 4px;
  background: var(--vig-orange);
  border: 0;
  margin: 0 0 var(--vig-e-3);
}
.vig-hero__actions { display: flex; flex-wrap: wrap; gap: var(--vig-e-2); }

/* =========================================================================
   Grille de familles
   ====================================================================== */

.vig-familles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--vig-e-3);
}

.vig-famille {
  display: flex;
  flex-direction: column;
  gap: var(--vig-e-1);
  padding: var(--vig-e-3);
  background: var(--vig-blanc);
  border: 1px solid var(--vig-filet);
  border-radius: var(--vig-rayon-l);
}
.vig-famille__titre { font-size: var(--vig-t-l); margin: 0; }
.vig-famille__texte { color: var(--vig-texte-doux); font-size: var(--vig-t-s); margin: 0; }
.vig-famille__icone { color: var(--vig-orange); width: 32px; height: 32px; }

/* =========================================================================
   Pied de page
   ====================================================================== */

.vig-pied {
  background: var(--vig-bleu);
  color: var(--vig-blanc);
  padding-block: var(--vig-e-5) var(--vig-e-3);
}
.vig-pied a { color: var(--vig-blanc); }
.vig-pied a:hover { color: var(--vig-orange); }

.vig-pied__haut {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--vig-e-4);
  padding-bottom: var(--vig-e-4);
}
.vig-pied__signature {
  border-top: 1px solid rgb(255 255 255 / 0.18);
  padding-top: var(--vig-e-2);
  font-size: var(--vig-t-xs);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--vig-e-2);
}
.vig-pied__bandeau-marque {
  display: flex;
  align-items: center;
  gap: var(--vig-e-2);
  font-size: var(--vig-t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.vig-pied__bandeau-marque svg,
.vig-pied__bandeau-marque img { height: 36px; width: auto; }

/* =========================================================================
   Catalogue : filtres
   ====================================================================== */

.vig-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vig-e-2);
  align-items: flex-end;
  padding: var(--vig-e-3);
  margin-bottom: var(--vig-e-4);
  background: var(--vig-gris-fond);
  border-radius: var(--vig-rayon-l);
}

.vig-filtres__champ {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  flex: 1 1 180px;
}
.vig-filtres__champ label {
  font-size: var(--vig-t-xs);
  font-weight: var(--vig-graisse-forte);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vig-texte-doux);
}
.vig-filtres__champ input,
.vig-filtres__champ select {
  /* 16 px minimum : en dessous, iOS zoome tout seul sur le champ. */
  font-size: var(--vig-t-m);
  font-family: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--vig-filet);
  border-radius: var(--vig-rayon-m);
  background: var(--vig-blanc);
  color: var(--vig-texte);
}
.vig-filtres__actions {
  display: flex;
  align-items: center;
  gap: var(--vig-e-2);
  margin: 0;
  flex: 0 0 auto;
}

/* =========================================================================
   Catalogue : mode de vente et fiche
   ====================================================================== */

.vig-mode {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--vig-rayon-m);
  font-size: var(--vig-t-s);
  font-weight: var(--vig-graisse-forte);
}
.vig-mode--devis {
  background: var(--vig-gris-fond);
  color: var(--vig-bleu);
}
.vig-mode--indisponible {
  background: var(--vig-gris-fond);
  color: var(--vig-texte-doux);
}

.vig-fiche__marque {
  font-size: var(--vig-t-xs);
  font-weight: var(--vig-graisse-forte);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vig-orange-action);
  margin-bottom: var(--vig-e-1);
}
.vig-fiche__besoin {
  font-size: var(--vig-t-l);
  color: var(--vig-texte-doux);
}

.vig-fiche-details { margin-top: var(--vig-e-5); }
.vig-fiche-details h2 {
  font-size: var(--vig-t-xl);
  margin-top: var(--vig-e-4);
}

.vig-caracs { margin: 0; }
.vig-carac {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: var(--vig-e-2);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--vig-filet);
}
.vig-carac dt { color: var(--vig-texte-doux); margin: 0; }
.vig-carac dd { margin: 0; font-weight: var(--vig-graisse-forte); }

@media (max-width: 599px) {
  .vig-carac { grid-template-columns: 1fr; gap: 2px; }
}

.vig-liste { margin: 0; padding-left: 1.25rem; }
.vig-liste li { margin-bottom: 0.35rem; }

/* =========================================================================
   Sélecteur de langue
   ====================================================================== */

.vig-entete__droite {
  display: flex;
  align-items: center;
  gap: var(--vig-e-2);
}

.vig-langues ul {
  display: flex;
  align-items: center;
  gap: var(--vig-e-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.vig-langues a {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--vig-rayon-s);
  font-weight: var(--vig-graisse-forte);
  text-decoration: none;
  opacity: 0.72;
}
.vig-langues a:hover { opacity: 1; }
.vig-langues__actif {
  background: var(--vig-orange);
  color: var(--vig-blanc);
  opacity: 1;
}

/* =========================================================================
   Demande de devis
   ====================================================================== */

.vig-devis-ajout {
  display: flex;
  gap: var(--vig-e-1);
  align-items: center;
  margin-top: var(--vig-e-2);
}
.vig-devis-ajout__qte {
  width: 5rem;
  font-size: var(--vig-t-m);
  font-family: inherit;
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--vig-filet);
  border-radius: var(--vig-rayon-m);
}

.vig-tableau {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--vig-e-3);
}
.vig-tableau th,
.vig-tableau td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--vig-filet);
  vertical-align: top;
}
.vig-tableau th {
  font-size: var(--vig-t-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vig-texte-doux);
}
.vig-tableau input[type="number"] {
  width: 5rem;
  font-size: var(--vig-t-m);
  font-family: inherit;
  padding: 0.5rem;
  border: 1px solid var(--vig-filet);
  border-radius: var(--vig-rayon-m);
}

.vig-lien-bouton {
  background: none;
  border: 0;
  padding: 0;
  color: var(--vig-orange-action);
  font: inherit;
  font-weight: var(--vig-graisse-forte);
  cursor: pointer;
  text-decoration: underline;
}

.vig-champ {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 32rem;
}
.vig-champ label {
  font-size: var(--vig-t-s);
  font-weight: var(--vig-graisse-forte);
  color: var(--vig-texte-doux);
}
.vig-champ input,
.vig-champ textarea {
  /* 16 px minimum : en dessous, iOS zoome tout seul sur le champ. */
  font-size: var(--vig-t-m);
  font-family: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--vig-filet);
  border-radius: var(--vig-rayon-m);
  background: var(--vig-blanc);
  color: var(--vig-texte);
}

.vig-aide {
  font-size: var(--vig-t-s);
  color: var(--vig-texte-doux);
  max-width: 32rem;
}

.vig-erreur {
  padding: var(--vig-e-2);
  border-left: 4px solid var(--vig-orange-action);
  background: var(--vig-gris-fond);
  font-weight: var(--vig-graisse-forte);
}

/* Le leurre antispam : hors écran, mais pas display:none — certains robots
   ignorent les champs masqués ainsi. */
.vig-leurre {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.vig-confirmation {
  padding: var(--vig-e-4);
  background: var(--vig-gris-fond);
  border-radius: var(--vig-rayon-l);
}
.vig-confirmation__numero {
  font-size: var(--vig-t-2xl);
  font-weight: var(--vig-graisse-forte);
  color: var(--vig-bleu);
  letter-spacing: 0.04em;
}

/* =========================================================================
   Parcours professionnel et fabricant
   ====================================================================== */

.vig-parcours fieldset {
  border: 1px solid var(--vig-filet);
  border-radius: var(--vig-rayon-m);
  padding: var(--vig-e-2);
  margin: 0 0 var(--vig-e-2);
  max-width: 32rem;
}
.vig-parcours legend {
  font-size: var(--vig-t-s);
  font-weight: var(--vig-graisse-forte);
  color: var(--vig-texte-doux);
  padding-inline: 6px;
}
.vig-case {
  display: flex;
  align-items: center;
  gap: var(--vig-e-1);
  padding: 4px 0;
  font-size: var(--vig-t-s);
}
.vig-parcours input[type="file"] {
  font-size: var(--vig-t-s);
  padding: 0.5rem 0;
}

.vig-whatsapp a {
  display: inline-flex;
  align-items: center;
  gap: var(--vig-e-1);
  font-weight: var(--vig-graisse-forte);
  font-size: var(--vig-t-s);
}

.vig-sav {
  margin-top: var(--vig-e-4);
  padding: var(--vig-e-3);
  background: var(--vig-gris-fond);
  border-radius: var(--vig-rayon-l);
}
.vig-sav h2 { font-size: var(--vig-t-l); margin-bottom: var(--vig-e-1); }
.vig-sav p { margin-bottom: var(--vig-e-1); }

.vig-non-livrable {
  padding: var(--vig-e-2);
  border-left: 4px solid var(--vig-orange);
  background: var(--vig-gris-fond);
}

.vig-retrait-precisions { color: var(--vig-texte-doux); }

/* =========================================================================
   Accès permanents et WhatsApp
   ====================================================================== */

.vig-acces {
  display: flex;
  align-items: center;
  gap: var(--vig-e-2);
  margin-left: auto;
}
.vig-acces__lien {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vig-bleu);
  font-weight: var(--vig-graisse-forte);
  font-size: var(--vig-t-s);
  text-decoration: none;
  white-space: nowrap;
}
.vig-acces__lien:hover { color: var(--vig-orange-action); }

/* La réinitialisation pose `svg { max-width: 100%; height: auto }`. Dans un
   conteneur flex sans base de largeur, l'icône se réduit alors à zéro : le
   panier disparaissait complètement sur mobile, où le libellé est masqué. */
.vig-acces__lien svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.vig-acces__compte {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  background: var(--vig-orange-action);
  color: var(--vig-blanc);
  border-radius: 10px;
  font-size: var(--vig-t-xs);
}

/* Le libellé « Panier » cède la place à la seule icône quand la barre devient
   étroite : le compteur, lui, ne disparaît jamais — c'est l'information. */
@media (max-width: 479px) {
  .vig-acces { gap: var(--vig-e-1); }
  .vig-acces__libelle { display: none; }
}

.vig-wa {
  position: fixed;
  right: var(--vig-e-2);
  bottom: var(--vig-e-2);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: var(--vig-e-1);
  padding: 0.625rem var(--vig-e-2);
  background: var(--vig-bleu);
  color: var(--vig-blanc);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(6, 38, 82, 0.25);
  font-weight: var(--vig-graisse-forte);
  font-size: var(--vig-t-s);
  text-decoration: none;
}
.vig-wa:hover { background: var(--vig-bleu-85); color: var(--vig-blanc); }
.vig-wa svg { flex: none; width: 22px; height: 22px; }

/* « Visible sur mobile sans masquer le contenu » : deux mesures, pas une.
   Le bouton se réduit à son icône sous 480px, pour couvrir le moins de texte
   possible ; et la page réserve sa hauteur en bas, sans quoi il recouvre la
   dernière ligne du pied — souvent le numéro de téléphone. */
@media (max-width: 767px) {
  body { padding-bottom: 72px; }
}

@media (max-width: 479px) {
  .vig-wa {
    padding: 0.75rem;
    gap: 0;
  }
  .vig-wa__texte {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* =========================================================================
   Accueil : premier écran et blocs éditoriaux
   ====================================================================== */

.vig-hero__grille {
  display: grid;
  gap: var(--vig-e-5);
  align-items: center;
}
@media (min-width: 900px) {
  .vig-hero__grille { grid-template-columns: 1.15fr 1fr; }
}
.vig-hero__image { border-radius: var(--vig-rayon-l); }
.vig-hero__lien {
  align-self: center;
  color: var(--vig-blanc);
  font-weight: var(--vig-graisse-forte);
  font-size: var(--vig-t-s);
}

.vig-figure { margin: 0; }
.vig-figure img {
  display: block;
  border-radius: var(--vig-rayon-l);
}
.vig-figure__legende {
  margin-top: var(--vig-e-1);
  font-size: var(--vig-t-xs);
  color: var(--vig-texte-doux);
}
.vig-sur-bleu .vig-figure__legende { color: var(--vig-blanc); opacity: 0.85; }

.vig-section__chapeau {
  max-width: 44rem;
  margin-top: calc(var(--vig-e-2) * -1);
  margin-bottom: var(--vig-e-4);
  color: var(--vig-texte-doux);
  font-size: var(--vig-t-l);
}
.vig-sur-bleu .vig-section__chapeau { color: var(--vig-blanc); opacity: 0.9; }
.vig-section__suite { margin-top: var(--vig-e-4); }

.vig-profils,
.vig-atouts,
.vig-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--vig-e-3);
}

.vig-profil,
.vig-atout,
.vig-carte {
  padding: var(--vig-e-3);
  background: var(--vig-blanc);
  border: 1px solid var(--vig-filet);
  border-radius: var(--vig-rayon-l);
}
.vig-profil__titre,
.vig-atout h3,
.vig-carte h2 { font-size: var(--vig-t-l); margin-top: 0; }
.vig-carte h2 a { text-decoration: none; }
.vig-profil__question {
  color: var(--vig-texte-doux);
  font-style: italic;
}
.vig-profil p:last-child,
.vig-carte p:last-child { margin-bottom: 0; }

.vig-atout { border-left: 4px solid var(--vig-orange); }

/* Compteurs : la valeur, son libellé, et ce qu'elle ne compte pas. */
.vig-compteurs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--vig-e-3);
  margin: var(--vig-e-4) 0 0;
}
.vig-compteur { margin: 0; }
.vig-compteur__valeur {
  font-size: var(--vig-t-2xl);
  font-weight: var(--vig-graisse-forte);
  color: var(--vig-bleu);
  line-height: var(--vig-interligne-titre);
}
.vig-compteur__libelle {
  margin: 0;
  font-weight: var(--vig-graisse-forte);
}
.vig-compteur__defaut {
  margin: var(--vig-e-1) 0 0;
  font-size: var(--vig-t-xs);
  color: var(--vig-texte-doux);
}

.vig-cooperation {
  display: grid;
  gap: var(--vig-e-4);
}
@media (min-width: 900px) {
  .vig-cooperation { grid-template-columns: 1.4fr 1fr; }
}
.vig-methode {
  margin: var(--vig-e-2) 0 0;
  padding-left: var(--vig-e-3);
}
.vig-methode li { margin-bottom: var(--vig-e-1); }
.vig-cooperation__actions .vig-bouton { width: 100%; justify-content: center; }
.vig-kit { display: grid; gap: var(--vig-e-1); }
.vig-kit .vig-bouton { justify-content: center; }

/* =========================================================================
   Preuves : des coquilles, affichées seulement si remplies et autorisées
   ====================================================================== */

.vig-preuves h3 { font-size: var(--vig-t-xl); }

.vig-logos,
.vig-equipe,
.vig-ressources {
  list-style: none;
  margin: 0 0 var(--vig-e-4);
  padding: 0;
}
.vig-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vig-e-3);
  align-items: center;
}
.vig-logos img { max-height: 48px; width: auto; }
.vig-logos__nom { font-weight: var(--vig-graisse-forte); }

.vig-equipe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--vig-e-3);
}
.vig-equipe li { display: grid; gap: 2px; }
.vig-equipe img { border-radius: var(--vig-rayon-l); }
.vig-equipe__nom { font-weight: var(--vig-graisse-forte); }
.vig-equipe__role { color: var(--vig-texte-doux); font-size: var(--vig-t-s); }

.vig-politique {
  padding: var(--vig-e-3);
  background: var(--vig-gris-fond);
  border-left: 4px solid var(--vig-bleu);
  border-radius: var(--vig-rayon-m);
}
.vig-politique p:last-child { margin-bottom: 0; }

.vig-temoignage {
  margin: 0 0 var(--vig-e-3);
  padding: var(--vig-e-3);
  background: var(--vig-blanc);
  border-left: 4px solid var(--vig-orange);
  border-radius: var(--vig-rayon-m);
}
.vig-temoignage blockquote { margin: 0; }
.vig-temoignage figcaption {
  margin-top: var(--vig-e-1);
  font-size: var(--vig-t-s);
  color: var(--vig-texte-doux);
}

.vig-ressources li {
  padding: var(--vig-e-2) 0;
  border-bottom: 1px solid var(--vig-filet);
}
.vig-ressources a { font-weight: var(--vig-graisse-forte); }
.vig-ressources__extrait {
  display: block;
  margin-top: 2px;
  font-size: var(--vig-t-s);
  color: var(--vig-texte-doux);
}

/* =========================================================================
   Pages éditoriales
   ====================================================================== */

.vig-page__entete { padding-block: var(--vig-e-5); }
.vig-page__rubrique { font-size: var(--vig-t-s); margin-bottom: var(--vig-e-1); }
.vig-page__rubrique a { color: var(--vig-blanc); opacity: 0.85; }

.vig-prose { max-width: 48rem; }
.vig-prose h2 { margin-top: var(--vig-e-5); }
.vig-prose h3 { margin-top: var(--vig-e-4); font-size: var(--vig-t-l); }
.vig-prose ul,
.vig-prose ol { padding-left: var(--vig-e-3); }
.vig-prose li { margin-bottom: var(--vig-e-1); }
.vig-prose .vig-familles,
.vig-prose .vig-cartes,
.vig-prose .vig-profils { max-width: none; }

/* Une page éditoriale qui pose une grille a besoin de la pleine largeur : la
   colonne de lecture s'applique au texte, pas aux blocs structurés. */
.vig-prose > .vig-familles,
.vig-prose > .vig-cartes { width: min(100%, var(--vig-largeur)); }

.vig-contact {
  display: grid;
  gap: var(--vig-e-5);
}
@media (min-width: 900px) {
  .vig-contact { grid-template-columns: 1.3fr 1fr; }
}

.vig-coordonnees { margin: 0; }

.vig-pied__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--vig-t-s);
}
.vig-pied__liste li { margin-bottom: 4px; }

.vig-pied__legal {
  margin-top: var(--vig-e-3);
  padding-top: var(--vig-e-2);
  border-top: 1px solid var(--vig-bleu-70);
  font-size: var(--vig-t-xs);
}
.vig-pied__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vig-e-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =========================================================================
   Maillage interne
   ====================================================================== */

.vig-maillage {
  margin-top: var(--vig-e-4);
  padding-top: var(--vig-e-3);
  border-top: 1px solid var(--vig-filet);
}
.vig-maillage__titre {
  font-size: var(--vig-t-m);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vig-texte-doux);
  margin: 0 0 var(--vig-e-1);
}
.vig-maillage ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vig-e-1) var(--vig-e-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.vig-maillage a { font-weight: var(--vig-graisse-forte); }

/* =========================================================================
   Consentement à la mesure d'audience
   ====================================================================== */

/* Non modal : il ne piège pas le focus et ne bloque pas la lecture. Posé au
   bas de la fenêtre, au-dessus du bouton WhatsApp, et la page réserve sa
   hauteur pour qu'il ne masque jamais la dernière ligne. */
.vig-consentement {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 80;
  background: var(--vig-bleu);
  color: var(--vig-blanc);
  border-top: 4px solid var(--vig-orange);
}
.vig-consentement__corps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--vig-e-2);
  padding-block: var(--vig-e-2);
}
.vig-consentement p { margin: 0; font-size: var(--vig-t-s); max-width: 62ch; }
.vig-consentement__actions {
  display: flex;
  gap: var(--vig-e-1);
  flex: none;
}
.vig-consentement .vig-bouton--secondaire {
  background: transparent;
  color: var(--vig-blanc);
  border-color: var(--vig-blanc);
}

/* =========================================================================
   Gouvernance des donnees et consentement commercial (P9)
   ====================================================================== */

/*
 * Ces deux blocs n'existent que s'ils ont un contenu : une rubrique de
 * confidentialite vide ne s'affiche pas, et la case d'inscription n'apparait
 * que si un envoi existe reellement. Le style n'a donc jamais a prevoir
 * l'etat vide.
 */

.vig-gouvernance {
  margin: var(--vig-e-5) 0;
  display: grid;
  gap: var(--vig-e-4);
}

.vig-gouvernance__ligne {
  padding-left: var(--vig-e-4);
  border-left: 3px solid var(--vig-orange);
}

.vig-gouvernance dt {
  font-weight: var(--vig-graisse-forte);
  color: var(--vig-bleu);
  margin-bottom: var(--vig-e-1);
}

.vig-gouvernance dd {
  margin: 0;
  color: var(--vig-texte);
}

.vig-gouvernance dd p:last-child {
  margin-bottom: 0;
}

/*
 * L'inscription commerciale est posee DANS SON PROPRE BLOC, detachee des
 * champs de commande : passer commande n'est pas s'abonner, et une case
 * collee au bouton « Payer » se lit comme une condition de la commande.
 */
.vig-infolettre {
  margin: var(--vig-e-5) 0 0;
  padding: var(--vig-e-4);
  background: var(--vig-gris-fond);
  border-radius: var(--vig-rayon-m);
}

.vig-infolettre .vig-infolettre__libelle {
  display: flex;
  gap: var(--vig-e-3);
  align-items: flex-start;
  font-size: var(--vig-t-s);
  line-height: var(--vig-interligne);
  cursor: pointer;
}

.vig-infolettre input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

/* =========================================================================
   Accessibilité du mouvement
   ====================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   Vente fermee : les deux canaux de commande
   ====================================================================== */

/*
 * Depuis le 30/10/2026, chaque reference est sur devis ou traitee sur
 * WhatsApp. Les deux actions sont de meme rang : ni l'une ni l'autre n'est un
 * lien secondaire.
 */
.vig-bouton--whatsapp {
  background: #1f7a3d;
  color: var(--vig-blanc);
  border-color: #1f7a3d;
}

.vig-bouton--whatsapp:hover,
.vig-bouton--whatsapp:focus-visible {
  background: #18622f;
  border-color: #18622f;
  color: var(--vig-blanc);
}

.vig-whatsapp--action {
  margin: var(--vig-e-4) 0 0;
  display: grid;
  gap: var(--vig-e-2);
}

.vig-whatsapp__note {
  font-size: var(--vig-t-xs);
  color: var(--vig-texte-doux);
  line-height: var(--vig-interligne);
}

.vig-liste__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vig-e-2);
  margin-top: var(--vig-e-3);
}
