/* ==========================================================================
   B2B TECHNO - Feuille de style unique (site statique, sans framework)
   Refonte one-page alignee sur le rendu de reference b2btechno.biz (Wix)
   Sommaire :
     1. Variables
     2. Reset
     3. Typography
     4. Layout / Container / Section
     5. Header
     6. Hero (pleine largeur, image + zoom hover)
     7. Section headers (titres + sous-titres centres)
     8. Cartes Services (sans bordure/ombre, icone carree)
     9. Features / Expertise (grille 2 colonnes, icones rondes)
    10. Produits phares (cartes image en haut)
    11. Secteurs d'activite (cartes avec icone ronde)
    12. Temoignage / quote
    13. CTA final
    14. Boutons
    15. Formulaires
    16. Processus en 3 etapes (page contact)
    17. FAQ
    18. Footer
    19. Utilities
    20. Responsive
   ========================================================================== */

/* ---------- 1. VARIABLES ---------- */
:root {
  --color-primary: #c2410c;        /* accent orange : boutons, liens */
  --color-primary-dark: #9a3412;   /* orange fonce : hover */
  --color-primary-soft: #fde5d0;   /* orange tres pale : fonds d'icones */
  --color-text: #431407;           /* texte titres / corps */
  --color-text-primary: #2a1006;   /* titres, plus sombre */
  --color-text-soft: rgba(67, 20, 7, 0.75);
  --color-text-muted: #6b6560;     /* gris moyen : descriptions cartes */
  --color-bg: #ffffff;
  --color-bg-alt: #fef7ed;         /* fond clair alterne des sections */
  --color-bg-cream: #fef7ed;       /* fond creme plein largeur (hero) */
  --color-beige-strong: #fed7aa;   /* beige/orange clair : badges */
  --color-green: #16a34a;          /* vert : checkmarks expertise */
  --color-footer-bg: #7c2d12;
  --color-footer-text: #fff7ed;
  --color-border: #fed7aa;
  --font-heading: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 8px rgba(67, 20, 7, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(67, 20, 7, 0.14);
  --shadow-product: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-product-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
  --shadow-sector: 0 2px 12px rgba(0, 0, 0, 0.06);
  --transition: 0.2s ease;
  --section-padding: 32px 0;
}

._future {
  display: none !important;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}
h1 { font-size: clamp(2.5rem, 5vw, 2.75rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--color-text-primary); font-weight: 700; }
p { margin: 0 0 1rem 0; color: var(--color-text-soft); }
.lead { font-size: 1.25rem; line-height: 1.7; max-width: 42rem; color: var(--color-text-soft); }

/* ---------- 4. LAYOUT / CONTAINER / SECTION ---------- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-padding); }
.section--alt { background-color: var(--color-bg-alt); }
.grid { display: grid; gap: 2rem; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
.flex { display: flex; align-items: center; gap: 1rem; }
.flex--between { justify-content: space-between; }
.flex--wrap { flex-wrap: wrap; }

/* Titres de section : centres, largeur limitee */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.5rem); text-align: center; margin-bottom: 1rem; }
.section-header .lead { margin: 0 auto; text-align: center; color: var(--color-text-muted); }

/* ---------- 5. HEADER ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; min-height: 110px; }
.site-header__logo img { height: 80px; width: auto; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 1.75rem; align-items: center; }
.site-nav a { font-weight: 600; font-size: 0.95rem; transition: color var(--transition); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; background: transparent; color: var(--color-text); }
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.header-cta { display: none; }

/* Menu mobile (deplie sans JS, empile sous le header) */
@media (max-width: 1023px) {
  .site-nav.is-open { display: block; position: absolute; top: 110px; left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 1rem 0; }
  .site-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 24px; }
  .site-nav.is-open li { width: 100%; padding: 0.75rem 0; border-bottom: 1px solid var(--color-bg-alt); }
}

/* ---------- 6. HERO (pleine largeur, image + zoom hover) ---------- */
.hero { background: var(--color-bg-cream); padding: 80px 0; }
.hero .container { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.hero__content h1 { color: var(--color-text-primary); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Colonne image : conteneur qui masque le depassement du zoom */
.hero-image, .hero__image {
  overflow: hidden;
  _border-radius: var(--radius-md);
  -box-shadow: 0 8px 30px rgba(67, 20, 7, 0.12);
  padding: 15px;
}
.hero-image img, .hero__image img {
  width: 100%;
  _aspect-ratio: 16 / 9;
  object-fit: cover;
  _border-radius: var(--radius-md);

  /* Etat "de base" = ancienne taille zoomee : le cadre reste toujours a cette taille */
  transform: scale(1.05);
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.hero-image:hover img, .hero__image:hover img {
  /* Au survol on zoome le contenu a l'interieur du cadre stable */
  transform: scale(1.12);
}

/* Page hero (contact) : bandeau simple centre */
.page-hero { padding: 72px 0; background: var(--color-bg-alt); text-align: center; }
.page-hero .container { max-width: 800px; }
.page-hero .lead { margin: 0 auto; }

/* ---------- 7. QUOTE / TEMOIGNAGE ---------- */
.quote-block { background: var(--color-bg-alt); border-left: 4px solid var(--color-primary); border-radius: var(--radius-sm); padding: 2rem; margin-top: 2rem; }
.quote-block p { font-style: italic; font-size: 1.1rem; color: var(--color-text); }
.quote-block cite { display: block; margin-top: 1rem; font-weight: 600; font-style: normal; color: var(--color-primary); }

/* ---------- 8.a SERVICE BLOCK ---------- */
._service-block { background: var(--color-bg-alt); border-left: 4px solid var(--color-primary); border-radius: var(--radius-sm); padding: 2rem; margin-top: 2rem; }
._service-block {
    background: var(--color-bg-alt);
    border-left: none;                     /* remplace l'ancien border 4px */
    border-radius: var(--radius-sm);
    padding: 2rem 2rem 2rem 2.75rem;       /* place pour les chevrons */
    margin-top: 2rem;

    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 100' preserveAspectRatio='none'>\
  <g fill='none' stroke='%23b3541e' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter' vector-effect='non-scaling-stroke'>\
    <polyline points='3,2 9,50 3,98'/>\
    <polyline points='11,2 17,50 11,98'/>\
  </g>\
</svg>");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 100%;
    background-color: var(--color-bg-alt);
}
.service-block { 
	background: var(--color-bg-alt); 	
	border-radius: var(--radius-sm); 
	_border-left: 4px solid var(--color-primary); 
	_padding: 2rem; 
	_margin-top: 2rem; 
}
.service-block p { _font-style: italic; font-size: 1.1rem; color: var(--color-text); }

/* ---------- 8. CARTES SERVICES (sans bordure / ombre) ---------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.service-card { background: none; border: none; box-shadow: none; padding: 0; }
.service-card__icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg-cream);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}
.service-card__icon img { width: 32px; height: 32px; }
.service-card h3 { color: var(--color-text-primary); font-weight: 700; }
.service-card p { color: var(--color-text-muted); line-height: 1.6; }
.service-card .btn { margin-top: 0.5rem; }

/* ---------- 9. FEATURES / EXPERTISE (grille 2 colonnes) ---------- */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.feature-item { display: flex; align-items: flex-start; gap: 1rem; }
.feature-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-cream);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  font-weight: 700;
}
.feature-item__icon--green { color: var(--color-green); }
.feature-item h3 { margin-bottom: 0.35rem; font-size: 1.1rem; }
.feature-item p { margin-bottom: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- 10. PRODUITS PHARES (cartes avec image en haut) ---------- */
.products-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-product);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-product-hover);
}
.product-card__image { aspect-ratio: 16 / 10; overflow: hidden; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 1.5rem; background-color: var(--color-bg-alt);}
.product-card .badge { margin-bottom: 0.75rem; }
.product-card h3 { margin-bottom: 0.5rem; }
.product-card p { color: var(--color-text); }

.dash-list {
  list-style: none;
  padding-left: 1.25rem;   /* retrait global de la liste */
  margin: .25rem 0 0;      /* colle la liste à la phrase d'intro */
}
.dash-list li {
  position: relative;
  padding-left: 1rem;      /* place pour le tiret + espace */
  margin: .15rem 0;
}
.dash-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
}

/* ---------- 11. SECTEURS D'ACTIVITE ---------- */
.sectors-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.sector-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sector);
}
.sector-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-bg-cream);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem auto;
  overflow: hidden;
}
.sector-card__icon img { width: 36px; height: 36px; object-fit: contain; }
.sector-card h3 { font-size: 1.1rem; }
.sector-card p { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 0; }

/* ---------- 12. STATS (page interne, conserve pour compat) ---------- */
.stats { display: grid; gap: 2rem; text-align: center; }
.stat__number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--color-primary); }
.stat__label { color: var(--color-text-soft); font-weight: 600; }

/* ---------- 13. CTA FINAL ---------- */
.section--cta { background: var(--color-primary); }
.cta-band { text-align: center; padding: 0; }
.section--cta .cta-band h2 { color: #fff; }
.section--cta .cta-band .lead { color: rgba(255, 255, 255, 0.9); margin: 0 auto 2rem auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Variante creme (utilisee sur pages internes) */
.cta-band--cream { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 3rem 2rem; }
.cta-band--cream h2 { color: var(--color-text-primary); }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 2rem 0 3rem 0; }
.filter-tabs .btn { cursor: default; }

/* ---------- CARDS (generique, conserve pour pages internes / redirects) ---------- */
.card { background: var(--color-bg); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-card); transition: box-shadow var(--transition), transform var(--transition); }
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card__icon { width: 48px; height: 48px; margin-bottom: 1rem; }
.card__icon--lg { width: 64px; height: 64px; }
.card ul { margin-top: 1rem; }
.card li { position: relative; padding-left: 1.25rem; margin-bottom: 0.4rem; color: var(--color-text-soft); font-size: 0.95rem; }
.card li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; }
.card--image img { border-radius: var(--radius-sm); margin-bottom: 1.25rem; aspect-ratio: 16 / 9; object-fit: cover; }
.badge { display: inline-block; background: var(--color-beige-strong); color: var(--color-primary-dark); font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }
.team-card { text-align: center; }
.team-card img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem auto; object-fit: cover; }

/* ---------- 14. BOUTONS ---------- */
/* border-radius: 999px; */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.75rem; border-radius: 4px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; transition: all var(--transition); white-space: nowrap; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--light { background: #fff; color: var(--color-primary); }
.btn--light:hover { background: var(--color-bg-alt); }
.btn--outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--color-primary); }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; position: relative;
  bottom: auto;
  top: 6px;}

/* ---------- 15. FORMULAIRES ---------- */
.form-grid { display: grid; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { font-family: var(--font-body); font-size: 1rem; padding: 0.75rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; color: var(--color-text); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; }
.form-checkbox input { margin-top: 0.2rem; }
.form-checkbox label { font-weight: 400; font-size: 0.9rem; color: var(--color-text-soft); }
.checkbox-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-top: 1rem; font-weight: 600; display: none; }
.form-message--success { display: block; background: #dcfce7; color: #166534; }
.form-message--error { display: block; background: #fee2e2; color: #991b1b; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item h3 { margin-bottom: 0.25rem; }

/* ---------- 16. PROCESSUS EN 3 ETAPES (page contact) ---------- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin: 3rem 0;
  position: relative;
}
.process-step { text-align: center; position: relative; }
.process-step__number {
  width: 64px;
  height: 64px;
  border-radius: 10%;	/* 50 % */
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto 1.25rem auto;
}
.process-step h3 { text-align: center; }
.process-step p { text-align: center; color: var(--color-text-muted); margin-bottom: 0; }
/* Fleche discrete entre les etapes, desktop uniquement */
.process-step__arrow {
  display: none;
  position: absolute;
  top: 28px;
  right: -1.75rem;
  font-size: 1.5rem;
  color: var(--color-border);
}

/* ---------- 17. FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 1.5rem 0; }
.faq-item h3 { color: var(--color-primary-dark); }

/* ---------- 18. FOOTER ---------- */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 1.25rem; background: rgba(255,255,255,0.95); padding: 6px 10px; border-radius: 3px; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); }
.site-footer h3 { color: var(--color-footer-text); font-size: 1.1rem; margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contact li { margin-bottom: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom__links a:hover { color: #fff; }

/* ---------- 19. UTILITIES ---------- */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 20. RESPONSIVE ---------- */
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 96px 0; }
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { _grid-template-columns: repeat(3, 1fr); }
  .sectors-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-step__arrow { display: block; }
  .contact-grid { grid-template-columns: 2fr 1fr; gap: 3rem; }
}

/* ---------- MOBILE : image hero sous le texte ---------- */
@media (max-width: 1023px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image, .hero__image { order: 2; }
  .hero__content { order: 1; }
}

/* ---------- 21. CORRECTIFS & AMELIORATIONS ---------- */

/* Remplace les <p> qui contenaient des <ul> (HTML invalide) */
.product-copy { margin: 0; color: inherit; }
.product-copy > ul { margin: 0.35rem 0 0.6rem 0; }
.product-copy > ul ul { margin: 0.25rem 0 0.25rem 0; }

/* Lien d'evitement clavier */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--color-primary); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Focus visible homogene */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Selecteur de langue FR | EN */
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.15rem;
  border: 1px solid var(--color-border); border-radius: 999px;
  padding: 3px; background: var(--color-bg-cream); flex: 0 0 auto;
}
.lang-switch a {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em;
  color: var(--color-text-muted); text-decoration: none; line-height: 1.4;
  transition: background var(--transition), color var(--transition);
}
.lang-switch a:hover { color: var(--color-primary); }
.lang-switch a[aria-current="true"] { background: var(--color-primary); color: #fff; }

/* Groupe droit du header : langue + CTA + burger */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Retour en haut de page */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; opacity: 0; visibility: hidden;
  box-shadow: 0 6px 18px rgba(67, 20, 7, 0.28);
  transition: opacity var(--transition), visibility var(--transition), background var(--transition);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--color-primary-dark); }

/* Mobile : le CTA texte laisse la place au logo */
@media (max-width: 640px) {
  .site-header .container { min-height: 88px; padding: 12px 16px; gap: 0.5rem; }
  .site-header__logo img { height: 52px; }
  .header-actions { gap: 0.4rem; }
  .lang-switch a { padding: 4px 8px; font-size: 0.72rem; }
  .site-nav.is-open { top: 88px; }
}

/* Respect des preferences d'animation reduite */
@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;
  }
}

/* Impression */
@media print {
  .site-header, .site-footer, .to-top, .nav-toggle, .lang-switch, .cta-band { display: none !important; }
  body { color: #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ---------- 22. CORRECTIF HEADER MOBILE ----------
   .btn (ligne 330) etait declare APRES .header-cta (ligne 121) : a specificite
   egale, la derniere regle gagne, donc `display:inline-flex` ecrasait le
   `display:none` et le CTA restait affiche sur mobile, ecrasant le logo. */
.site-header .header-cta { display: none; }
@media (min-width: 1024px) {
  .site-header .header-cta { display: inline-flex; }
}
@media (max-width: 1023px) {
  .site-header__logo img { height: 60px; }
  .site-header .container { min-height: 84px; }
  .site-nav.is-open { top: 84px; }
}
@media (max-width: 400px) {
  .site-header__logo img { height: 48px; }
}

/* ==========================================================================
   23. PORTEFEUILLE PRODUITS (refonte de la presentation produit)
   Compositions variees : index -> flagship -> paire -> editorial -> large.
   Aucune dependance JS. Palette existante uniquement.
   ========================================================================== */

:root {
  --color-navy: #051c3b;
  --color-navy-soft: rgba(5, 28, 59, 0.62);
  --rule: 1px solid var(--color-border);
}

/* --- 23.1 Rythme de section --- */
.section--products {
  background: var(--color-bg);
  border-top: var(--rule);
  padding: 64px 0 72px;
}
.section--products + .section--alt { border-top: var(--rule); padding-top: 56px; }

/* --- 23.2 En-tete : titre a gauche, index a droite --- */
.products-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}
.products-head__intro { max-width: 46rem; }
.products-head h2 { text-align: left; margin-bottom: 0.75rem; }
.products-head .lead { margin: 0; text-align: left; color: var(--color-text-muted); }
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.6rem;
}

/* Index produit : liens textuels numerotes */
.portfolio-index { border-top: var(--rule); }
.portfolio-index ol { counter-reset: pidx; }
.portfolio-index li { counter-increment: pidx; border-bottom: var(--rule); }
.portfolio-index a {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  min-height: 44px;
  padding: 0.7rem 0.25rem 0.7rem 0;
  color: var(--color-navy);
  transition: color var(--transition), padding-left var(--transition);
}
.portfolio-index a::before {
  content: counter(pidx, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  flex: 0 0 1.6rem;
  font-variant-numeric: tabular-nums;
}
.portfolio-index__name { font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; }
.portfolio-index__tag {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: right;
}
@media (hover: hover) and (pointer: fine) {
  .portfolio-index a:hover { color: var(--color-primary); padding-left: 0.35rem; }
  .portfolio-index a:hover .portfolio-index__tag { color: var(--color-text); }
}

/* --- 23.3 Article produit : socle commun --- */
.product-stack { display: grid; gap: 1.5rem; }
.product {
  background: var(--color-bg);
  border: var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  scroll-margin-top: 120px;
}
.product__figure {
  background: var(--color-bg-cream);
  border-bottom: var(--rule);
  padding: 20px;
  display: grid;
  place-items: center;
}
.product__figure img {
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: normal;
}
.product__body { padding: 28px 24px 30px; }
.product__kicker {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
.product__kicker span { color: var(--color-navy-soft); letter-spacing: 0.1em; }
.product h3 { font-size: 1.35rem; color: var(--color-navy); margin-bottom: 0.6rem; }
.product__promise {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 1.25rem;
  max-width: 44rem;
}

/* Capacites : liste compacte a tirets */
.caps { margin: 0 0 1.25rem; }
.caps li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}
.caps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.6rem;
  height: 1px;
  background: var(--color-primary);
}
.caps--two-col { column-gap: 2.5rem; }

/* Metadonnees : petits faits textuels */
.product__meta {
  margin: 0 0 1.25rem;
  padding-top: 1rem;
  border-top: var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}
.product__meta .fact { min-width: 0; }
.product__meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}
.product__meta dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy);
}

/* Divulgation progressive */
.product__disclosure { border-top: var(--rule); }
.product__disclosure summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.65rem 0;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy);
}
.product__disclosure summary::-webkit-details-marker { display: none; }
.product__disclosure summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-primary);
}
.product__disclosure[open] summary::after { content: "\2013"; }
.product__disclosure summary:hover { color: var(--color-primary); }
.product__disclosure > div { padding: 0 0 1rem; }
.product__disclosure .caps { margin-bottom: 0.5rem; }
.product__disclosure p { font-size: 0.92rem; margin-bottom: 0.5rem; }
.product__disclosure h4 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0.75rem 0 0.4rem;
}

/* CTA produit */
.product__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  border-bottom: 1px solid transparent;
}
.product__cta::after { content: "\2192"; transition: transform var(--transition); }
@media (hover: hover) and (pointer: fine) {
  .product__cta:hover { border-bottom-color: var(--color-primary); }
  .product__cta:hover::after { transform: translateX(3px); }
}

/* --- 23.4 Variante phare (split pleine largeur) --- */
.product--flagship .product__body { padding: 32px 24px 34px; }
.product--flagship h3 { font-size: 1.6rem; }
.product--flagship .product__promise { font-size: 1.12rem; }

/* --- 23.5 Paire complementaire --- */
.product-pair { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.product--compact h3 { font-size: 1.2rem; }
.product--compact .product__promise { font-size: 1rem; }

/* --- 23.6 Variante editoriale (ShipX) --- */
.product--editorial { background: var(--color-bg-alt); }
.product--editorial .product__figure { background: var(--color-bg); }
.product--editorial h3 { font-size: 1.6rem; }
.product__proof {
  border-top: var(--rule);
  padding: 20px 24px 22px;
  background: var(--color-bg);
}
.product__proof-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.9rem;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1.1rem 1.75rem;
}
.proof-grid > div {
  position: relative;
  padding-top: 0.85rem;
}
.proof-grid > div::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 2.5rem;
  height: 1px;
  background: var(--color-primary-soft);
}
.proof-grid dt {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
}
.proof-grid dd { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.4; }

/* --- 23.7 Variante large (myB2B) --- */
.product--wide h3 { font-size: 1.35rem; }
.product--all h3 { font-size: 1.35rem; }

/* --- 23.8 Bas de section --- */
.products-foot {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.products-foot p { margin: 0; color: var(--color-text-muted); max-width: 34rem; font-size: 0.95rem; }

/* --- 23.9 Responsive --- */
@media (min-width: 768px) {
  .product__body { padding: 32px 32px 34px; }
  .product--flagship .product__body { padding: 40px 40px 42px; }
  .product__figure { padding: 28px; }
  .product__proof { padding: 24px 32px 26px; }
  .caps--two-col { columns: 2; }
}

@media (min-width: 1024px) {
  .section--products { padding: 88px 0 96px; }
  .products-head { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 4rem; }
  .product-stack { gap: 2rem; }
  .product-pair { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  .product--flagship { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .product--flagship .product__figure { border-bottom: 0; border-left: var(--rule); order: 2; padding: 40px; }
  .product--flagship .product__body { order: 1; }

  .product--editorial {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-areas: "figure body" "proof proof";
  }
  .product--editorial .product__figure { grid-area: figure; border-bottom: 0; border-right: var(--rule); padding: 40px; }
  .product--editorial .product__body { grid-area: body; padding: 40px 40px 42px; }
  .product--editorial .product__proof { grid-area: proof; }

  .product--wide { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .product--wide .product__figure { border-bottom: 0; border-right: var(--rule); }

  .product--all { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.2fr); }
  .product--all .product__figure { border-bottom: 0; border-right: var(--rule); }

}

/* Apparition douce : uniquement au survol pointeur, aucune animation au scroll
   (pas de JS, pas de contenu masque avant apparition). */
@media (hover: hover) and (pointer: fine) {
  .product { transition: border-color var(--transition), box-shadow var(--transition); }
  .product:hover { border-color: rgba(194, 65, 12, 0.35); box-shadow: 0 6px 22px rgba(67, 20, 7, 0.07); }
}

/* ==========================================================================
   24. FIGURES SVG PRODUIT (diagrammes localises FR/EN)
   Les diagrammes sont des SVG (viewBox 380 de large) contenant des <text>
   editables ; aucune police externe, aucun raster embarque, aucun JS.
   ========================================================================== */

/* Le SVG occupe la largeur utile de la figure sans jamais etre recadre.
   Le plafond evite un agrandissement excessif en colonne unique (768-1023px). */
.product__figure img[src$=".svg"] {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
}

/* ShipX : le bandeau de preuve reste sur toute la largeur de la carte
   dans la composition uniforme .product--all (figure + corps sur 2 colonnes). */
@media (min-width: 1024px) {
  .product--all .product__proof { grid-column: 1 / -1; }
  .product--all .product__figure { align-content: start; padding: 32px 24px; }
  /* La colonne figure est legerement elargie (par rapport a 0.6fr) pour que les
     libelles des diagrammes restent au-dessus du plancher de 12px. */
  .product--all { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
}
