/* ============================================================
   COURROIES CVS — Systèmes de vulcanisation à froid
   Main Stylesheet  v1.4.18  (PATCH — correction typo « Vulcanisation » → « vulcanisation » conformité FR-CA OQLF raison sociale — directive F. fil 2026-05-16 #5 event #201)
   Mobile-first, fully responsive, accessible
   ============================================================

   PALETTE CVS :
   • charcoal (--color-primary)    — chrome foncé, pied, titres
   • graphite (--color-secondary)  — liens, boutons, SVG fills
   • or      (--color-accent)      — soulignement du menu actif, rehauts
   • tan     (--color-tan)         — h3 de sections produits (optionnel)
   ============================================================ */

/* ============================================================
   0. FONT FACES — Plus Jakarta Sans (auto-hébergée en WOFF2)
   ============================================================ */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2');
}

/* ============================================================
   1. DESIGN TOKENS (CSS CUSTOM PROPERTIES)
   ============================================================ */
:root {
  /* ── Type Scale (fluid, clamp-based) ── */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);  /* 12–14px */
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);      /* 14–16px */
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);  /* 16–18px */
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);    /* 18–24px */
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);   /* 24–36px */
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);    /* 32–56px */
  --text-hero: clamp(2.25rem,  1rem    + 4vw,    4.5rem);    /* 36–72px */

  /* ── 4px Spacing System ── */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* ── Colors — CVS Palette (charcoal + graphite + gold) ── */
  --color-bg:          #FFFFFF;   /* Page background (required: white)   */
  --color-surface:     #F7F7F7;   /* Neutral light surface               */
  --color-surface-2:   #EDEDED;   /* Slightly deeper surface             */
  --color-border:      #D8D8D8;   /* Border / divider                    */

  --color-text:        #1A1A1A;   /* Primary text — charcoal             */
  --color-text-muted:  #5A5A5A;   /* Secondary text                      */
  --color-text-faint:  #9A9A9A;   /* Tertiary / placeholder              */
  --color-text-inv:    #FFFFFF;   /* Text on dark backgrounds            */

  --color-primary:     #1A1A1A;   /* Charcoal — header, footer, headings */
  --color-secondary:   #4A4A4A;   /* Graphite — liens, boutons, SVG      */
  --color-secondary-h: #2A2A2A;   /* Hover state — plus foncé            */
  --color-accent:      #C9A843;   /* Or — accent d'identité CVS          */
  --color-accent-h:    #B8962E;   /* Hover state de l'or                 */
  --color-tan:         #8B6F4A;   /* Terre/tan — h3 de cartes Produits   */
  --color-success:     #2E7D32;   /* Form success                        */

  /* ── Header / Footer ── */
  --header-top-space: var(--space-4); /* 16px */
  --header-height: 96px; /* 80px + 16px */
  --header-bg:     #FFFFFF;
  --footer-bg:     #1A1A1A;
  --footer-text:   #FFFFFF;

  /* ── Border Radius ── */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px  rgba(26, 26, 26, 0.07);
  --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.10);
  --shadow-lg: 0 12px 36px rgba(26, 26, 26, 0.14);

  /* ── Transition ── */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Typography ── */
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  --font-body:    'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;

  /* ── Layout ── */
  --content-wide: 1240px;
  --content-default: 960px;
  --content-narrow:  680px;

  /* ── Logo inset (optical alignment compensation pour logo carré) ── */
  /* v1.4.8 — Standards Apple/Stripe/Linear : symbole carré nécessite +0.25-0.5x sa hauteur d'inset visuel
     vs un wordmark horizontal qui a un side-bearing typographique naturel. Mobile base 16px. */
  --logo-inset: var(--space-4);   /* 16px mobile */
}
@media (min-width: 1024px) {
  :root {
    --logo-inset: var(--space-6);  /* 24px desktop — meilleure respiration sur écran wide */
  }
}

/* ============================================================
   2. BASE RESET & GLOBAL STYLES
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'], ol[role='list'] { list-style: none; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.18;
  font-family: var(--font-display);
  font-weight: 700;
}

p, li { text-wrap: pretty; }

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-secondary-h); }
a:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 3px; border-radius: var(--radius-sm); }

button { cursor: pointer; background: none; border: none; }

::selection {
  background: rgba(201, 168, 67, 0.28);  /* or CVS translucide */
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 640px)  { .container { padding-inline: var(--space-6); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-8); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   4. SITE HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: calc(var(--header-height) - var(--header-top-space));
  padding-top: var(--header-top-space);
}

/* ── Logo ── */
.site-logo {
  flex-shrink: 0;
  line-height: 0;
  display: flex;
  align-items: center;
}
/* v1.4.7 — Dimensions logo carré 1:1 (logo-cvs.webp 112×112). Ratio respecté tous breakpoints. Anciennes valeurs 220/280/311 retirées (héritage logo horizontal obsolète). Max ≤ header-height (96px) - header-top-space (16px) = 80px disponible. */
.site-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .site-logo img { width: 64px; height: 64px; }
}
@media (min-width: 1024px) {
  .site-logo img { width: 70px; height: 70px; }
}

/* ── Nav wrapper ── */
.nav-wrapper {
  display: none;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}
@media (min-width: 1024px) {
  .nav-wrapper { display: flex; }
}

/* ── Desktop navigation ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}
.main-nav a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  background: transparent;
}
.main-nav a.active {
  font-weight: 700;
  border-bottom: 2px solid var(--color-accent);
}

/* ── Language Switcher ── */
.lang-switcher {
  flex-shrink: 0;
  margin-left: var(--space-4);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.lang-btn:hover {
  background: var(--color-primary);
  color: var(--color-text-inv);
  text-decoration: none;
}

/* ── Mobile: right-side cluster ── */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
}
@media (min-width: 1024px) {
  .header-controls { display: none; }
}

/* ── Hamburger button ── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   5. MOBILE NAVIGATION
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0;
  background: var(--color-bg);
  z-index: 850;
  overflow-y: auto;
  padding-bottom: var(--space-8);
}
.mobile-nav.open { display: block; }

@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav ul {
  list-style: none;
  border-top: 1px solid var(--color-border);
}
.mobile-nav ul li a {
  display: block;
  padding: var(--space-4) var(--space-6);
  color: var(--color-primary);
  font-size: var(--text-base);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), padding-left var(--transition);
}
.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  background: var(--color-surface);
  padding-left: var(--space-8);
  color: var(--color-secondary);
  text-decoration: none;
}
.mobile-lang-wrap {
  padding: var(--space-5) var(--space-6);
  border-top: 2px solid var(--color-border);
}

/* ============================================================
   6. HERO SECTION (Homepage only)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 280px;
  max-height: 800px;
  overflow: hidden;
  background: var(--color-primary);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(26, 26, 26, 0.15) 0%,
    rgba(26, 26, 26, 0.30) 60%,
    rgba(26, 26, 26, 0.50) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  color: var(--color-text-inv);
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.02em;
  max-width: 900px;
}

/* ============================================================
   7. PAGE HEADER BAR (Interior pages — no hero)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.page-header h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text-inv);
  letter-spacing: -0.02em;
}
/* Gold accent line under page title */
.page-header h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin-top: var(--space-4);
  border-radius: var(--radius-full);
}

/* ============================================================
   8. MAIN CONTENT
   ============================================================ */
.main-content {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.content-section { width: 100%; }

/* Content title (homepage only — below hero) */
.content-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

/* Content image */
.content-image {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-lg);
}
.content-image img {
  width: 100%;
  height: clamp(220px, 40vw, 500px);
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.content-image:hover img { transform: scale(1.02); }

/* Bandeau image native — image dont la source ne doit pas être agrandie (ex. montage 770x250). */
.content-image--banner { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; margin-top: var(--space-10); }
.content-image--banner img { width: auto; height: auto; max-width: 100%; }

/* Content text */
.content-text p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: 85ch;
}
.content-text p:last-child { margin-bottom: 0; }

/* ── 6. Lead / intro paragraph ── */
.content-text .lead,
.content-text > p:first-of-type {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);  /* ~17–19px / ~0.67–0.75 in */
  font-weight: 500;
  color: var(--color-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-8);              /* 32px / ~1.25 in */
}

/* Promesse de service — présentée en titre, au-dessus des cartes (Accueil).
   Sélecteur .lead.lead--promise (0,3,0) : doit dominer .content-text > p:first-of-type (0,2,1). */
.content-text .lead.lead--promise {
  font-size: var(--text-xl);                  /* 24–36 px — échelle des titres */
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 34ch;
  margin-inline: auto;
}
.content-text .lead.lead--promise::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  margin: var(--space-5) auto 0;
}

/* ── 7. Content enrichments ── */

/* Blockquote / pull quote */
.content-text blockquote {
  border-left: 4px solid var(--color-accent); /* 4px / ~0.16 in */
  padding: var(--space-4) var(--space-6);     /* 16px 24px / ~0.63 in 0.94 in */
  font-style: italic;
  color: var(--color-secondary);
  background: var(--color-surface);
  margin: var(--space-8) 0;                   /* 32px / ~1.25 in */
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 85ch;
}
.content-text blockquote p {
  font-size: var(--text-base);
  margin-bottom: 0;
  color: var(--color-secondary);
}

/* Ordered / unordered lists within content */
.content-text ul,
.content-text ol {
  margin: 0 0 var(--space-6) var(--space-6);
  max-width: 80ch;
}
.content-text ul { list-style: disc; }
.content-text ol { list-style: decimal; }
.content-text li {
  line-height: 1.75;
  margin-bottom: var(--space-2);              /* 8px */
  color: var(--color-text);
}

/* Highlight / info box */
.info-box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);     /* 24px 32px / ~0.94 in 1.25 in */
  margin: var(--space-8) 0;                   /* 32px / ~1.25 in */
  border-left: 4px solid var(--color-secondary);
  max-width: 85ch;
}
.info-box p { margin-bottom: 0; color: var(--color-text); }

/* Inline CTA button */
.btn-inline {
  display: inline-block;
  padding: 0.6rem 1.5rem;                     /* 10px 24px / ~0.4 in 0.94 in */
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: var(--space-4);
  cursor: pointer;
}
.btn-inline:hover {
  background: var(--color-accent-h);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.btn-inline:active { transform: translateY(0); }

/* ── 9. Image caption support ── */
.content-figure {
  margin: var(--space-10) 0;                  /* 40px / ~1.57 in */
}
.content-figure img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: block;
}
.content-figure figcaption {
  font-size: var(--text-xs);                  /* ~12–14px / ~0.47–0.55 in */
  color: var(--color-text-muted);
  margin-top: var(--space-3);                 /* 12px / ~0.47 in */
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   8a. LAYOUT A — Full-width image top, stacked text (Page 1)
       This is the default .content-image + .content-text pattern,
       no extra CSS needed. Included here for documentation.
   ============================================================ */

/* ============================================================
   8b. LAYOUT B — Image Left / Text Right (Page 2)
   ============================================================ */
.layout-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);                       /* 40px / ~1.57 in */
  align-items: start;
}
@media (min-width: 768px) {
  .layout-split {
    grid-template-columns: 1fr 1fr;           /* 50 / 50 */
    gap: var(--space-12);                     /* 48px / ~1.89 in */
    align-items: center;
  }
}

.layout-split__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 280px;                          /* 280px / ~11 in */
}
@media (min-width: 768px) {
  .layout-split__image {
    min-height: 420px;                        /* 420px / ~16.5 in */
  }
}
.layout-split__image img {
  width: 100%;
  height: 100%;
  min-height: 280px;                          /* 280px / ~11 in */
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
@media (min-width: 768px) {
  .layout-split__image img {
    min-height: 420px;                        /* 420px / ~16.5 in */
  }
}
.layout-split__image:hover img { transform: scale(1.02); }

.layout-split__text { }

/* Layout C — Text Left / Image Right: reverse column order on desktop */
.layout-split--reverse .layout-split__image { order: 0; }
.layout-split--reverse .layout-split__text  { order: 0; }
@media (min-width: 768px) {
  .layout-split--reverse .layout-split__image { order: 2; }
  .layout-split--reverse .layout-split__text  { order: 1; }
}

/* ============================================================
   8c. LAYOUT D — Feature Cards (Page 4)
   ============================================================ */
.layout-cards { }

.layout-cards__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);  /* ~17–19px */
  font-weight: 500;
  color: var(--color-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-10);             /* 40px / ~1.57 in */
  max-width: 75ch;
}

.layout-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);                        /* 24px / ~0.94 in */
}
@media (min-width: 640px) {
  .layout-cards__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .layout-cards__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);                      /* 32px / ~1.26 in */
  }
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);                    /* 32px / ~1.26 in */
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 64px;                                /* 64px / ~2.52 in */
  height: 64px;                               /* 64px / ~2.52 in */
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Placeholder: replace content with your SVG icon */
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
}
.feature-card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-secondary);
}

.feature-card__heading {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}

.feature-card__text {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-muted);
  flex: 1;
}

/* ============================================================
   9. CONTACT PAGE
   ============================================================ */
/* Contact grid: form + map side by side on md+ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: 80px;     /* v1.4.1 — normalisation espace au-dessus formulaire (consigne F. msg #12) cadence v1.1.8 */
  margin-bottom: var(--space-12);
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* Contact form wrapper */
.contact-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.contact-form-wrap h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

/* Form rows: two columns on sm+ */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--space-4);
}
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* Form groups */
.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.req { color: #C0392B; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.18);
}
.form-group textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

/* Submit button */
.btn-submit {
  display: block;
  width: 100%;
  padding: 0.9rem var(--space-8);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-text-inv);
  font-size: var(--text-base);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  margin-top: var(--space-2);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit.success {
  background: linear-gradient(135deg, #1B5E20 0%, var(--color-success) 100%);
}

/* Map placeholder */
.map-section { height: 100%; min-height: 320px; }
.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 2px dashed var(--color-secondary);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-8);
  text-align: center;
}
.map-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.map-placeholder-text strong {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.map-placeholder-text p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  max-width: 40ch;
}
.map-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--text-xs);
  background: rgba(74, 74, 74, 0.08);
  color: var(--color-secondary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  word-break: break-all;
  border: 1px solid rgba(74, 74, 74, 0.15);
  display: block;
  max-width: 100%;
}

/* Separator between contact form/map and content image */
.contact-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-12);
}

/* ── Per-field error message ── */
.field-error {
  display: block;
  margin-top: var(--space-1);      /* 4px */
  font-size: var(--text-xs);       /* 12–14px */
  color: #C0392B;
  font-weight: 500;
}

/* Invalid field border highlight */
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.10);
}

/* ── Form-level status banner ── */
.form-status {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
}
.form-status--success {
  background: #EAF4EB;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
}
.form-status--error {
  background: #FDEDED;
  color: #7B1F1F;
  border: 1px solid #F5C2C2;
}

/* ── Honeypot field ── */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
  aria-hidden: true;
}

/* ── Button loading/disabled state ── */
.btn-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   10. SITE FOOTER — 3-column layout
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-block: var(--space-16) var(--space-8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);                       /* 40px / ~1.57 in */
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* Column 1: Brand */
.footer-brand { }
/* v1.4.7 — Dimensions footer-logo carré 1:1 (logo-cvs.webp 96×96 attribut HTML). Ratio respecté. */
.footer-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.92;
}
.footer-tagline {
  font-size: var(--text-sm);
  font-style: italic;
  color: rgba(255, 255, 255, 0.70);
  margin-top: var(--space-4);
  max-width: 300px;
  line-height: 1.6;
}

/* v1.4.1 — Footer .content-text couleur cohérente (consigne F. msg #13 — texte « Nous joindre » trop foncé heritage charcoal) */
.site-footer .content-text p {
  color: rgba(255, 255, 255, 0.85);
}
.site-footer .content-text a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
.site-footer .content-text a:hover,
.site-footer .content-text a:focus-visible {
  color: #FFFFFF;
}

/* Column 2: Quick links */
.footer-nav-col h3,
.footer-social-col h3 {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);             /* 20px / ~0.79 in */
}
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);                       /* 12px / ~0.47 in */
}
.footer-nav-list a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-block;
}
.footer-nav-list a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Column 3: Social + legal */
.footer-social-col { }
.footer-social-icons {
  display: flex;
  gap: var(--space-4);                       /* 16px / ~0.63 in */
  flex-wrap: wrap;
  margin-bottom: var(--space-6);             /* 24px / ~0.94 in */
}
.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;                               /* 40px / ~1.57 in */
  height: 40px;                              /* 40px / ~1.57 in */
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.70);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer-social-icons a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(201,168,67,0.10);
}
.footer-social-icons svg {
  width: 18px;                               /* 18px / ~0.71 in */
  height: 18px;
  fill: currentColor;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);        /* 12px 20px */
}
.footer-legal-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal-links a:hover {
  color: rgba(255,255,255,0.75);
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-8);               /* 32px / ~1.26 in */
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
}

/* Footer-bottom — ligne unifiée : tout lien hérite de la taille et de la couleur du copyright (directive F. 2026-05-25) */
.footer-copyright a {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}
.footer-copyright a:hover {
  text-decoration: underline;
}

/* M4 — Crédit footer biffusion : héritage CSS strict défensif (MARQUE.md §M4) */
.footer-bottom a[href*="biffusion.com"],
.footer-copyright a[href*="biffusion.com"] {
  color: inherit !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
  background: transparent !important;
}
.footer-bottom a[href*="biffusion.com"]:hover,
.footer-copyright a[href*="biffusion.com"]:hover {
  color: inherit !important;
  text-decoration: underline !important;
}

/* ============================================================
   11. HERO CONTENT POSITIONING (Supplement)
   ============================================================ */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-content-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

/* ============================================================
   12. ADDITIONAL RESPONSIVE & POLISH
   ============================================================ */
.main-content {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}
.content-image { overflow: hidden; }

/* Nav active indicator — v1.4.17 : bloc ::after retiré per directive F. fil 2026-05-16 #4.
   L'évocation courroie correspond au border-bottom: 2px solid pleine largeur du bloc .main-nav a.active conservé.
   Cas déclencheur + apprentissage doctrinal (fb) consignés CHANGELOG v1.4.16+v1.4.17 + SESSION-STATE event #196+#197.
   B.9.3 traçabilité : bloc original ci-dessous pour historique.
   
   .main-nav a.active::after {
     content: '';
     display: block;
     height: 2px;
     background: var(--color-accent);
     border-radius: var(--radius-full);
     margin-top: 2px;
   }
*/

/* Ensure hero h1 is accessible even when overlay covers it */
.hero-title {
  position: relative;
  z-index: 2;
}

/* Large desktop: bump hero title further */
@media (min-width: 1280px) {
  .hero-title { font-size: clamp(3rem, 5vw, 5rem); }
}

/* ============================================================
   v2.0.1 — Hero slider: 4 titres synchronisés avec slides
   (F. retour 2026-05-20 — fade synchrone titre+image)
   ============================================================ */
.hero-content-wrap .hero-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  text-align: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
  pointer-events: none;
}
.hero-content-wrap .hero-title.is-active {
  opacity: 1;
}
.hero-title__line2 {
  display: inline-block;
}
@media (prefers-reduced-motion: reduce) {
  .hero-content-wrap .hero-title {
    transition: none;
  }
}

/* Contact grid equal heights */
.contact-grid { align-items: stretch; }

/* Form: full-width single-column on very small screens */
@media (max-width: 479px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: var(--space-5); }
}

/* ============================================================
   13. BACK-TO-TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;                              /* 24px / ~0.94 in */
  right: 24px;                               /* 24px / ~0.94 in */
  z-index: 800;
  width: 48px;                               /* 48px / ~1.89 in */
  height: 48px;                              /* 48px / ~1.89 in */
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inv);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-secondary);
  box-shadow: var(--shadow-lg);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   14. 404 ERROR PAGE
   ============================================================ */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--header-height) - 320px);
  padding-block: var(--space-20);
  text-align: center;
}
.error-page__inner {
  max-width: 560px;
}
.error-page__code {
  font-size: clamp(6rem, 18vw, 10rem);
  font-weight: 800;
  color: var(--color-surface-2);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
}
.error-page__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.error-page__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  line-height: 1.7;
}
.error-page__divider {
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  margin: var(--space-6) auto;
}
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;                  /* 12px 28px / ~0.47 in 1.10 in */
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-text-inv);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  color: var(--color-text-inv);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inv);
  text-decoration: none;
}

/* ============================================================
   14B. CVS-SPECIFIC COMPONENTS
   ============================================================ */

/* Supplier logos — horizontal strip shown on Accueil + page Fournisseurs */
.suppliers-bar {
  /* v1.4.1 — fond blanc simple suite à bande grise about-block (consigne F. msg #9-10) ; retrait border-block + background */
  margin-block: var(--space-10);
  padding-block: var(--space-8);
}
.suppliers-bar__title {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-6);
  font-weight: 600;
}
.suppliers-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-8);
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin-inline: auto;
}
@media (min-width: 640px) {
  .suppliers-bar__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .suppliers-bar__grid { grid-template-columns: repeat(8, 1fr); }
}
.suppliers-bar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
}
.suppliers-bar__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* v1.4.1 — logos toujours couleur (consigne F. 2026-05-13 fil #1 msg #8) : retrait filter grayscale + transition + :hover/:focus-visible */
}

/* Product category sections (page1 Produits) — scroll-margin so anchor links land below the sticky header */
.product-section {
  scroll-margin-top: 80px;
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-border);
}
.product-section:first-of-type { border-top: 0; }
.product-section__header {
  margin-bottom: var(--space-8);
}
.product-section__eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.product-section h2 {
  color: var(--color-tan);
}

/* Table of contents for Produits page anchors */
.product-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  margin-block: var(--space-8);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  list-style: none;
}
.product-toc li { margin: 0; padding: 0; }
.product-toc a {
  display: block;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.product-toc a:hover,
.product-toc a:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

/* Subhead variant with tan hue — used for Produits section h3 titles */
.cvs-h3-tan {
  color: var(--color-tan);
  font-size: var(--text-xl);
  margin-block: var(--space-6) var(--space-3);
  font-weight: 700;
}

/* Download list for technical PDFs (page1 Matériel section) */
.download-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-block: var(--space-6);
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .download-list { grid-template-columns: repeat(2, 1fr); }
}
.download-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.download-link:hover,
.download-link:focus-visible {
  border-color: var(--color-accent);
  background: var(--color-bg);
  text-decoration: none;
}
.download-link svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}
.download-link__meta {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Home feature-card link variant (clickable product-category banners that link to page1 anchors) */
a.feature-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.feature-card:hover,
a.feature-card:focus-visible {
  text-decoration: none;
}
a.feature-card:hover .feature-card__heading,
a.feature-card:focus-visible .feature-card__heading {
  color: var(--color-accent);
}
.feature-card__cta {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}
.feature-card__cta::after {
  content: " →";
  transition: transform var(--transition);
  display: inline-block;
}
a.feature-card:hover .feature-card__cta::after {
  transform: translateX(3px);
}

/* About block on Accueil — centered compact summary with CTA */
.about-block {
  /* v1.4.1 — bande grise pleine largeur (consigne F. msg #9) — container interne limite contenu */
  /* v1.4.1 — restauration bordure or 2px haut+bas + normalisation espace 80px géré par règle responsive (consigne F. msg #11) */
  background: var(--color-surface);
  border-block: 2px solid var(--color-accent);
  padding-block: var(--space-12);
  margin-block: 0;
  text-align: center;
}
.about-block .container > * {
  max-width: 820px;
  margin-inline: auto;
}
.about-block__eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.about-block h2 {
  margin-bottom: var(--space-6);
}
.about-block__cta {
  margin-top: var(--space-8);
}

/* ============================================================
   15. PRINT STYLES
   ============================================================ */
@media print {
  /* Hide non-essential elements */
  .site-header,
  .mobile-nav,
  .lang-switcher,
  .header-controls,
  .hamburger,
  .back-to-top,
  .site-footer,
  .btn-submit,
  .btn-inline,
  .map-section,
  .map-placeholder,
  .contact-form-wrap button {
    display: none !important;
  }

  /* Reset page layout */
  body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  /* Headings */
  h1, h2, h3, h4 { color: #000; page-break-after: avoid; }
  h1 { font-size: 18pt; }
  h2 { font-size: 14pt; }
  h3 { font-size: 12pt; }

  /* Page header bar */
  .page-header {
    background: #fff !important;
    padding-block: 12pt;
    border-bottom: 2pt solid #000;
  }
  .page-header h1 {
    color: #000 !important;
    font-size: 18pt;
  }
  .page-header h1::after { background: #888; }

  /* Content */
  .content-image,
  .content-image img,
  .layout-split__image,
  .layout-split__image img { display: none !important; }

  .content-text p,
  .layout-split__text p { max-width: 100%; font-size: 11pt; }

  /* Feature cards: collapse to simple list */
  .layout-cards__grid { display: block; }
  .feature-card {
    box-shadow: none;
    border: 1pt solid #ccc;
    margin-bottom: 12pt;
    page-break-inside: avoid;
  }
  .feature-card__icon { display: none; }

  /* Links */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
  a[href^="#"]::after,
  a[href^="javascript:"]::after { content: ""; }

  /* Page breaks */
  .main-content { padding-block: 12pt; }
  .container { max-width: 100%; padding: 0; }
}


/* ============================================================
   v1.1.0 — Hero slider + feature-card images + tone-dark variant
   (F. retour 2026-05-11 : reprise 4 blocs colores WP + slider hero)
   ============================================================ */

/* === Hero slider === */
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.hero-slide.is-active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* === Feature-card media (images au lieu d'icones SVG) === */
.feature-card__media {
  width: calc(100% + 48px);  /* +48px = 2 * 24px (.feature-card padding) — bleed full edge to edge */
  aspect-ratio: 16 / 9;
  margin: -24px -24px 16px -24px;  /* tight to card edges, all 4 sides */
  overflow: hidden;
  border-radius: 0;
  background: var(--color-bg-alt, #f5f5f5);
}
.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.feature-card:hover .feature-card__media img {
  transform: scale(1.05);
}
/* If parent feature-card already has padding, the negative margin pulls image to edges */
.feature-card {
  padding: 1.5rem;
  overflow: hidden;
}

/* === tone-dark variant — palette inversee pour presentation Mme Wall === */
body.tone-dark {
  --color-primary: #F2EAD3;        /* cream — chrome clair, headings */
  --color-secondary: #C9C4B4;      /* graphite clair — liens body, icones */
  --color-accent: #C9A843;         /* or conserve — accent invariant */
  --color-tan: #B89968;            /* terre tan clair — titres sections produits */
  --color-bg: #1A1A1A;             /* charcoal — fond body */
  --color-bg-alt: #2A2A2A;         /* gris fonce — sections alternees */
  --color-text: #E8E4D8;           /* cream pale — texte body */
  --color-text-muted: #A8A398;     /* gris cream — texte secondaire */
  --color-border: #3A3A3A;         /* gris fonce — bordures */
  --color-card-bg: #242422;        /* charcoal warm — fond cartes */
  color: var(--color-text);
  background: var(--color-bg);
}
body.tone-dark .header { background: var(--color-bg); border-bottom-color: var(--color-border); }
body.tone-dark .nav-link { color: var(--color-text); }
body.tone-dark .nav-link:hover, body.tone-dark .nav-link.active { color: var(--color-accent); }
body.tone-dark .mobile-nav { background: var(--color-bg-alt); }
body.tone-dark .feature-card {
  background: var(--color-card-bg);
  border-color: var(--color-border);
}
body.tone-dark .feature-card__heading { color: var(--color-text); }
body.tone-dark .feature-card__text { color: var(--color-text-muted); }
body.tone-dark .feature-card__cta { color: var(--color-accent); }
body.tone-dark .feature-card:hover { border-color: var(--color-accent); }
body.tone-dark .main-content { background: var(--color-bg); color: var(--color-text); }
body.tone-dark .content-title { color: var(--color-text); }
body.tone-dark .content-text, body.tone-dark .content-text p { color: var(--color-text-muted); }
body.tone-dark .content-text .lead { color: var(--color-text); }
body.tone-dark .about-block { background: var(--color-bg-alt); color: var(--color-text); }
body.tone-dark .about-block h2 { color: var(--color-text); }
body.tone-dark .about-block__eyebrow { color: var(--color-accent); }
body.tone-dark .about-block { background: var(--color-bg-alt); }
body.tone-dark .suppliers-bar { /* v1.4.1 — pas de fond, suit body.tone-dark */ }
body.tone-dark .suppliers-bar__title { color: var(--color-text-muted); }
body.tone-dark .suppliers-bar__logo img { filter: brightness(0) invert(0.85); }
body.tone-dark .layout-cards__lead { color: var(--color-text-muted); }
body.tone-dark .site-footer { background: #0F0F0F; color: var(--color-text-muted); }
body.tone-dark .hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}
body.tone-dark .btn-primary { background: var(--color-accent); color: #1A1A1A; }
body.tone-dark .btn-primary:hover { background: #D4B65A; }


/* ============================================================
   v1.1.1 PATCH — tone-dark header coherent (F. retour 2026-05-11 :
   « version dark le header est encore blanc »)
   Ciblage corrige : .site-header (pas .header) + remap --header-bg
   + main-nav + lang-btn + hamburger.
   ============================================================ */

body.tone-dark {
  --header-bg: var(--color-bg);
}
body.tone-dark .site-header {
  background: var(--color-bg);
  border-bottom-color: var(--color-border);
}
body.tone-dark .main-nav a {
  color: var(--color-text);
}
body.tone-dark .main-nav a:hover,
body.tone-dark .main-nav a.active {
  color: var(--color-accent);
}
body.tone-dark .main-nav a.active {
  border-bottom-color: var(--color-accent);
}
body.tone-dark .lang-btn {
  color: var(--color-text);
  border-color: var(--color-text);
  background: transparent;
}
body.tone-dark .lang-btn:hover {
  background: var(--color-accent);
  color: #1A1A1A;
  border-color: var(--color-accent);
}
body.tone-dark .hamburger span {
  background: var(--color-text);
}
body.tone-dark .site-logo img {
  /* Le logo CVS argente est visible sur fond charcoal — pas de filter applique pour preserver l'identite */
}


/* v1.1.7 — Hero hauteur entre-deux desktop (F. : 520 trop mince, mid-point entre 520 et 800) */
@media (min-width: 1024px) {
  .hero {
    aspect-ratio: 16 / 5.5;     /* 2.91:1 — entre 16/6 (2.67) et 16/5 (3.2) */
    max-height: 650px;          /* cap = 800px → 650px (-19% vs original) */
  }
}


/* v1.1.8 — Normalisation espaces sections accueil (F. retour 2026-05-11) */
/* Cible : 80px gap uniforme entre toutes les sections (cards, intro, about, suppliers) */
.main-content .container > section,
.main-content .container > aside,
.main-content > section,
.main-content > aside {
  margin-top: 0;
  margin-bottom: 0;
}
.main-content .container > section + section,
.main-content .container > section + aside,
.main-content .container > aside + section,
.main-content .container > aside + aside {
  margin-top: 80px;
}
.main-content > aside.suppliers-bar,
.main-content > section.about-block {
  /* v1.4.1 — about-block ajouté à la normalisation v1.1.8 (hors container racine depuis v1.4.1) */
  margin-top: 80px;
  /* padding interne géré par padding-block des blocs */
}
@media (max-width: 1023px) {
  /* Mobile: gaps reduits a 56px pour proportion */
  .main-content .container > section + section,
  .main-content .container > section + aside,
  .main-content .container > aside + section,
  .main-content .container > aside + aside,
  .main-content > aside.suppliers-bar,
  .main-content > section.about-block {
    margin-top: 56px;
  }
  /* v1.4.1 — contact-grid normalisation mobile (consigne F. msg #12 point 2) */
  .contact-grid {
    margin-top: 56px;
  }
}

/* v1.4.2 — Logos appuyés à gauche header + footer TOUS BREAKPOINTS mobile+tablette+desktop (consigne F. fil 2026-05-13 #2 msg #1 — extension v1.3.4/v1.4.1 mobile-only à mobile+tablette+desktop pour explicite cross-render apprentissage v fil #1) */
/* Universel — règles explicites tous breakpoints */
.header-inner {
  justify-content: flex-start;
}
.site-logo {
  margin-left: 0;
}
.footer-brand,
.footer-brand a,
.footer-logo {
  text-align: left;
}

/* Sub-desktop (mobile + tablette <1024px) — spécifiques au-dessous breakpoint nav desktop */
@media (max-width: 1023px) {
  /* Site-logo push controls à droite via margin-right:auto (hamburger reste à droite) */
  .site-logo {
    margin-right: auto;
  }
  /* Footer-grid colonnes alignées à gauche (1 colonne mobile / 2 colonnes tablette 640+) */
  .footer-grid > * {
    text-align: left;
  }
  .footer-tagline {
    margin-inline: 0;
  }
}

/* v1.4.6 — ROLLBACK TOTAL margin-left négatif logos (v1.4.3/v1.4.4/v1.4.5). Retour à v1.4.1 état connu propre. F. signale containers toujours brisés malgré containers intacts mesurés Chrome MCP → mon interprétation « bord viewport » erronée. Logos retournent à leur position v1.4.1 : .site-logo flex item premier dans .header-inner (à gauche du container) ; .footer-logo dans .footer-brand colonne 1 grid. Containers intacts max-width 1240px depuis v1.4.4. Bloc vide conservé comme repère doctrinal recovery N1.2. */

/* v1.4.8 — Optical alignment compensation logos carrés via variable --logo-inset partagée header+footer.
   Standards Apple/Stripe/Linear : symbole carré nécessite inset visuel supplémentaire vs wordmark horizontal
   qui a un side-bearing typographique naturel. Mobile 16px / desktop 24px (cf. :root + @media 1024+). */
.site-logo,
.footer-logo {
  margin-left: var(--logo-inset);
}

/* v1.4.9 — Back-to-top mobile/tablette remonté +88px (consigne F. fil 2026-05-13 #2 msg #9 point 1) */
@media (max-width: 1023px) {
  .back-to-top {
    bottom: calc(24px + 88px);
  }
}

/* v1.4.9 — Closing block contact rapide page4 fournisseurs (consigne F. fil 2026-05-13 #2 msg #9 point 2 — fermer page après bande grise about-block) */
.content-section--closing {
  padding-block: 0;
}
.closing-block {
  text-align: center;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-block: var(--space-12);
}
.closing-block__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.closing-block h2 {
  margin-bottom: var(--space-4);
}
.closing-block__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 60ch;
  margin-inline: auto;
}
.closing-block__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-12);
  justify-content: center;
  align-items: center;
}
.closing-block__link {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}
.closing-block__link:hover {
  color: var(--color-accent);
}
