/* ==========================================================================
   TUBFLEX TUNISIE — Feuille de style principale
   Identité industrielle premium : marine profond, rouge industriel,
   bleus fonctionnels, généreux espaces verticaux.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables & base
   -------------------------------------------------------------------------- */
:root {
  --navy: #0b2e59;
  --navy-deep: #082344;
  --red: #c8102e;
  --red-dark: #a50d26;
  --blue: #1e5aa8;
  --blue-soft: #e8f0f8;
  --white: #ffffff;
  --grey-50: #f4f6f8;
  --grey-100: #e9edf2;
  --grey-200: #d8dfe8;
  --grey-400: #8d9aac;
  --grey-600: #5a6b80;
  --ink: #16232f;
  --ink-soft: #3d4f63;

  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Archivo", "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 76rem;
  --radius-s: 6px;
  --radius-m: 10px;
  --shadow-s: 0 1px 2px rgba(11, 46, 89, .07), 0 2px 8px rgba(11, 46, 89, .06);
  --shadow-m: 0 6px 24px rgba(11, 46, 89, .12);
  --shadow-l: 0 18px 48px rgba(11, 46, 89, .18);
  --header-h: 4.75rem;
  --ease: cubic-bezier(.22, .61, .21, 1);

  --section-pad: clamp(4.5rem, 9vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* « clip » ne crée pas de conteneur de défilement : le sticky reste fonctionnel */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: var(--navy); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }
.section--grey { background: var(--grey-50); }
.section--navy {
  background: var(--navy) radial-gradient(1200px 500px at 85% -10%, #123c70 0%, var(--navy) 55%);
  color: #dbe6f2;
}
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 2px;
  background: var(--red);
}
.section-head--center .eyebrow::after {
  content: "";
  width: 2rem; height: 2px;
  background: var(--red);
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); }
.section--navy .lead { color: #b9c9dc; }

/* --------------------------------------------------------------------------
   2. Boutons & liens d'action
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
  padding: .95rem 1.7rem;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(200, 16, 46, .28); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(200, 16, 46, .34); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); transform: translateY(-2px); }

.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.btn--outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }

.btn--ghost { color: var(--blue); padding-inline: .4rem; }
.btn--ghost:hover { color: var(--navy); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--blue);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   3. En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-s); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  height: var(--header-h);
}
/* cible tactile : le lien logo reste cliquable sur 44 px de haut */
.header-logo { flex: none; display: inline-flex; align-items: center; min-height: 44px; }
.header-logo img { height: 2.1rem; width: auto; max-width: 100%; }

.main-nav { margin-inline: auto; min-width: 0; }
.main-nav ul { display: flex; align-items: center; gap: clamp(.7rem, 1.35vw, 1.3rem); }
.main-nav li { flex: none; }
.main-nav a {
  position: relative;
  display: block;
  padding: .5rem 0;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="true"] { color: var(--navy); }
.main-nav a:hover::after, .main-nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .75rem; flex: none; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy);
  padding: .7rem 1rem;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.header-call:hover { background: var(--blue-soft); text-decoration: none; }
.header-call svg { width: 1.05rem; height: 1.05rem; }
.header-actions .btn { padding: .7rem 1.3rem; font-size: .92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem; height: 2.75rem;
  padding: .6rem;
  background: transparent;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-s);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}

/* Menu mobile */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  box-shadow: var(--shadow-l);
  padding: 1.25rem;
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s .35s;
}
.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .35s var(--ease);
}
.mobile-nav a {
  display: block;
  padding: .85rem .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  border-bottom: 1px solid var(--grey-100);
  text-decoration: none;
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav .btn { width: 100%; margin-top: 1rem; }

/* Le verrou de défilement (overflow: hidden) casse le position: sticky
   de l'en-tête, qui repartait alors en haut du document — donc hors de
   l'écran dès qu'on avait fait défiler. On le fixe explicitement, et le
   padding compense sa sortie du flux pour éviter tout saut. */
body.nav-open { overflow: hidden; padding-top: var(--header-h); }
body.nav-open .site-header { position: fixed; top: 0; left: 0; right: 0; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vh, 6.5rem) 0 clamp(4rem, 9vh, 7rem);
  background:
    linear-gradient(180deg, var(--grey-50) 0%, var(--white) 100%);
  overflow: hidden;
}
/* trame blueprint discrète */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grey-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--grey-100) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.hero-copy .eyebrow { margin-bottom: 1.4rem; }
.hero-copy h1 { margin-bottom: 1.2rem; }
.hero-copy h1 em {
  font-style: normal;
  color: var(--red);
}
.hero-copy .lead { max-width: 34rem; margin-bottom: 2.2rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; }
.hero-points li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-points svg { width: 1.15rem; height: 1.15rem; color: var(--red); flex: none; }

/* Le cadre démarre sous le repère, qui s'aligne alors sur l'eyebrow de gauche. */
.hero-visual { position: relative; padding-top: 2.2rem; }
.hero-frame {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
/* Cadre un peu plus haut que large : le sujet respire davantage.
   ponytail: recadrage par object-position, pas de seconde image. */
.hero-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 72%;
  aspect-ratio: 5 / 6;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(11, 46, 89, .12);
  border-radius: inherit;
}

/* repères techniques autour du visuel */
.hero-measure {
  position: absolute;
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--grey-400);
  text-transform: uppercase;
}
.hero-measure--top { top: .1rem; left: 0; display: flex; align-items: center; gap: .5rem; }
.hero-measure--top::after { content: ""; width: 3rem; height: 1px; background: var(--grey-200); }
.hero-measure--side {
  top: 50%; right: -1.9rem;
  transform: rotate(90deg) translateX(-50%);
  transform-origin: right center;
  display: flex; align-items: center; gap: .5rem;
}
.hero-measure--side::after { content: ""; width: 3rem; height: 1px; background: var(--grey-200); }

.hero-badge {
  position: absolute;
  left: -2.6rem;
  bottom: 1.2rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-m);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-l);
  max-width: 16rem;
}
.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  color: #fff;
}
.hero-badge span { font-size: .85rem; color: #b9c9dc; }

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.scroll-hint svg { width: 1rem; height: 1rem; animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* --------------------------------------------------------------------------
   5. Bandeau de réassurance
   -------------------------------------------------------------------------- */
.trust {
  border-block: 1px solid var(--grey-100);
  background: var(--white);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.9rem 1.6rem;
  border-left: 1px solid var(--grey-100);
}
.trust-item:first-child { border-left: 0; }
.trust-item svg { width: 1.6rem; height: 1.6rem; color: var(--red); flex: none; margin-top: .15rem; }
.trust-item strong { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.02rem; }
.trust-item span { font-size: .86rem; color: var(--grey-600); line-height: 1.5; }

/* --------------------------------------------------------------------------
   6. Univers produits — grille éditoriale
   -------------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 15rem;
  grid-auto-flow: dense;
  gap: 1.25rem;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-s);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card.size-wide { grid-column: span 2; }
.product-card.size-tall { grid-row: span 2; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }

.product-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.product-card:hover img { transform: scale(1.05); }

/* Cartes « schéma technique » : visuel contenu sur fond clair en haut,
   bandeau marine plein en bas — pas de superposition texte/dessin. */
.product-card.is-illus { background: var(--navy); }
.product-card.is-illus img {
  top: 0;
  bottom: auto;
  height: 55%;
  object-fit: contain;
  padding: .9rem .9rem 0;
  background: var(--grey-50);
}
.product-card.is-illus:hover img { transform: none; }
.product-card.is-illus .product-body { margin-top: auto; background: var(--navy); }

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 35, 68, 0) 28%, rgba(8, 35, 68, .92) 96%);
  transition: opacity .35s;
}
.product-card.is-illus::after { display: none; }

.product-body {
  position: relative;
  z-index: 1;
  padding: 1.4rem;
  color: #fff;
}
.product-body h3 { color: #fff; margin-bottom: .25rem; font-size: 1.15rem; }
.product-body p {
  font-size: .86rem;
  color: #c7d5e6;
  margin: 0 0 .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-actions { display: flex; align-items: center; gap: 1rem; }
.product-actions .discover {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .88rem; font-weight: 700; color: #fff; text-decoration: none;
}
.product-actions .discover svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.product-card:hover .discover svg { transform: translateX(4px); }
.product-actions .quote {
  font-size: .82rem; font-weight: 700;
  color: #ffd9de;
  background: rgba(200, 16, 46, .9);
  padding: .45rem .8rem;
  border-radius: var(--radius-s);
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s;
}
.product-card:hover .quote, .product-card:focus-within .quote { opacity: 1; transform: none; }
.product-actions .quote:hover { background: var(--red); }

/* Repos : photo dégagée, seul le titre (agrandi) en bas à gauche.
   Survol / focus : le titre s'efface et laisse la place au descriptif
   et aux actions — la carte ne change jamais de hauteur.
   ponytail: pointeur uniquement — sur tactile tout reste visible. */
@media (hover: hover) and (pointer: fine) {
  .product-card:not(.is-illus)::after {
    background: linear-gradient(180deg, rgba(8, 35, 68, 0) 45%, rgba(8, 35, 68, .78) 100%);
    transition: background .35s var(--ease);
  }
  .product-card:not(.is-illus):hover::after,
  .product-card:not(.is-illus):focus-within::after {
    background: linear-gradient(180deg, rgba(8, 35, 68, 0) 20%, rgba(8, 35, 68, .94) 92%);
  }

  .product-card:not(.is-illus) .product-body h3 {
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
  }
  .product-card.size-wide:not(.is-illus) .product-body h3 { font-size: 1.65rem; }
  .product-card:not(.is-illus):hover .product-body h3,
  .product-card:not(.is-illus):focus-within .product-body h3 {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    overflow: hidden;
  }

  .product-card:not(.is-illus) .product-body p,
  .product-card:not(.is-illus) .product-actions {
    max-height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), max-height .3s var(--ease);
  }
  .product-card:not(.is-illus):hover .product-body p,
  .product-card:not(.is-illus):focus-within .product-body p {
    max-height: 4.5em;
    margin: 0 0 .9rem;
    opacity: 1;
    transform: none;
  }
  .product-card:not(.is-illus):hover .product-actions,
  .product-card:not(.is-illus):focus-within .product-actions {
    max-height: 3rem;
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   7. Spotlight inox (fond marine)
   -------------------------------------------------------------------------- */
.inox-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.inox-copy p { color: #b9c9dc; }
.inox-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.inox-media figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
.inox-media figure:first-child { grid-column: span 2; }
.inox-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.inox-media figure:not(:first-child) img { aspect-ratio: 4/3; }
.inox-media figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .6rem 1rem;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #dce7f3;
  background: linear-gradient(180deg, transparent, rgba(8,35,68,.85));
}

.inox-list {
  columns: 2;
  column-gap: 2rem;
  margin: 1.8rem 0 2.4rem;
}
.inox-list li {
  break-inside: avoid;
  display: flex;
  gap: .8rem;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.inox-list li > a { display: flex; width: 100%; gap: .8rem; text-decoration: none; }
.inox-list li > a:hover strong { color: #c8dcf4; }
.inox-list svg { width: 1.2rem; height: 1.2rem; color: var(--red); flex: none; margin-top: .2rem; }
.inox-list strong { display: block; color: #fff; font-size: .95rem; font-weight: 600; }
.inox-list span { font-size: .82rem; color: #93a9c2; }
.inox-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --------------------------------------------------------------------------
   8. Sections « split » (flexible sur mesure, vérins, puissance)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split--reverse .split-media { order: 2; }

.split-media { position: relative; }
.split-media .framed {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
.split-media .framed img { width: 100%; height: auto; }
.split-media .corner {
  position: absolute;
  width: 3.2rem; height: 3.2rem;
  border: 3px solid var(--red);
  z-index: 0;
}
.split-media .corner--tl { top: -1.1rem; left: -1.1rem; border-right: 0; border-bottom: 0; }
.split-media .corner--br { bottom: -1.1rem; right: -1.1rem; border-left: 0; border-top: 0; }

.check-list { margin: 1.6rem 0 2.2rem; }
.check-list li {
  display: flex;
  gap: .8rem;
  padding: .55rem 0;
  color: var(--ink-soft);
}
.check-list svg { width: 1.25rem; height: 1.25rem; color: var(--red); flex: none; margin-top: .15rem; }
.check-list strong { color: var(--ink); font-weight: 600; }

.chip-list { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.4rem 0 2.2rem; }
.chip {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid #d2e0f0;
  padding: .45rem .9rem;
  border-radius: 999px;
}


/* --------------------------------------------------------------------------
   9. Vérins — 4 services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius-m);
  padding: 1.8rem 1.5rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-top-color: var(--red); }
.service-card .num {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--red);
  margin-bottom: .8rem;
}
.service-card h3 { font-size: 1.12rem; }
.service-card p { font-size: .9rem; color: var(--grey-600); margin: 0; }

/* --------------------------------------------------------------------------
   10. Processus en 3 étapes
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.process-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-m);
  padding: 2.4rem 1.8rem 1.9rem;
  box-shadow: var(--shadow-s);
}
.process-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1.4rem;
  left: 1.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-s);
  padding: .1rem .9rem;
  box-shadow: var(--shadow-m);
}
.process-card h3 { margin-top: 1rem; font-size: 1.18rem; }
.process-card p { font-size: .93rem; color: var(--grey-600); margin: 0; }
.process-note {
  margin-top: 2.4rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.process-note strong { color: var(--navy); }

/* --------------------------------------------------------------------------
   11. Pourquoi Tubflex
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.why-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why-media figure { margin: 0; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-m); }
.why-media figure:first-child { grid-row: span 2; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-media figure:first-child img { aspect-ratio: 3/4; }
.why-media figure:not(:first-child) img { aspect-ratio: 4/3; }

.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.8rem; margin-top: 2rem; }
.why-list li { display: flex; gap: .8rem; align-items: flex-start; }
.why-list svg { width: 1.35rem; height: 1.35rem; color: var(--red); flex: none; margin-top: .2rem; }
.why-list strong { display: block; color: var(--navy); font-size: .97rem; }
.why-list span { font-size: .87rem; color: var(--grey-600); line-height: 1.55; }

/* --------------------------------------------------------------------------
   12. Secteurs — sélecteur interactif
   -------------------------------------------------------------------------- */
.sectors-layout {
  display: grid;
  grid-template-columns: 19rem 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}
.sector-tabs { display: flex; flex-direction: column; gap: .5rem; }
.sector-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-s);
  padding: .95rem 1rem;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.sector-tab > span { flex: 1; }
.sector-tab svg { width: 1rem; height: 1rem; opacity: 0; transition: opacity .25s, transform .25s; transform: translateX(-4px); flex: none; }
/* Pastille claire derrière l'icône : lisible sur fond blanc comme sur le marine sélectionné. */
.sector-tab__ico {
  width: 2rem; height: 2rem; flex: none;
  object-fit: contain;
  padding: .18rem;
  border-radius: var(--radius-s);
  background: var(--grey-50);
  transition: background .25s var(--ease);
}
.sector-tab[aria-selected="true"] .sector-tab__ico { background: #fff; }
.sector-tab:hover { border-color: var(--grey-200); color: var(--navy); background: var(--grey-50); }
.sector-tab[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-m);
}
.sector-tab[aria-selected="true"] svg { opacity: 1; transform: none; }

.sector-panel {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-m);
  padding: clamp(1.1rem, 1.6vw, 1.5rem);
  box-shadow: var(--shadow-s);
}
.sector-visual + p { font-size: .95rem; margin: 0 0 .2rem; }

/* Le visuel occupe toute la hauteur restante du panneau : la fiche
   se cale exactement sur la colonne d'onglets, sans la dépasser. */
.sector-visual {
  flex: 1 1 0;
  min-height: 9rem;
  margin: 0 0 1.1rem;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--grey-50);
}
.sector-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sector-points { margin: .8rem 0 1.1rem; }
.sector-points li { padding: .28rem 0; font-size: .9rem; gap: .6rem; }
.sector-points svg { width: 1.05rem; height: 1.05rem; }
.sector-reco-label {
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin: 0;
}
.sector-chips { margin: .55rem 0 0; gap: .4rem; }
.sector-chips .chip { font-size: .8rem; padding: .35rem .75rem; }
.sector-panel .btn { margin-top: 1.2rem; align-self: flex-start; }

.sectors-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2.6rem; }

/* --------------------------------------------------------------------------
   13. Atelier — galerie savoir-faire
   -------------------------------------------------------------------------- */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.workshop-grid figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.workshop-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
.workshop-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.workshop-grid figure:hover img { transform: scale(1.04); }
.workshop-grid figure:first-child img { aspect-ratio: auto; min-height: 100%; }
.workshop-grid figure:not(:first-child) img { aspect-ratio: 4/3; }
.workshop-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1.2rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(8,35,68,.85));
}

/* --------------------------------------------------------------------------
   14. Réalisations
   -------------------------------------------------------------------------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.case-card .case-img { position: relative; height: 12rem; overflow: hidden; }
.case-card .case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card .case-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border-radius: var(--radius-s);
  padding: .35rem .7rem;
}
.case-body { padding: 1.6rem 1.5rem 1.8rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.case-body h3 { font-size: 1.12rem; margin: 0; }
.case-row { font-size: .9rem; color: var(--grey-600); }
.case-row strong { display: block; color: var(--navy); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .15rem; }
.cases-note { margin-top: 2rem; font-size: .85rem; color: var(--grey-400); text-align: center; }

/* --------------------------------------------------------------------------
   15. Ressources
   -------------------------------------------------------------------------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-m);
  padding: 1.6rem 1.3rem;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: var(--grey-200); text-decoration: none; }
.resource-card .res-top { display: flex; align-items: center; justify-content: space-between; }
.resource-card svg { width: 1.7rem; height: 1.7rem; color: var(--blue); }
.resource-card .res-tag {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  background: #fdeef0;
  border-radius: var(--radius-s);
  padding: .25rem .55rem;
}
.resource-card h3 { font-size: 1rem; margin: 0; }
.resource-card p { font-size: .84rem; color: var(--grey-600); margin: 0; flex: 1; }
.resource-card .res-link { font-size: .85rem; font-weight: 700; color: var(--blue); }

/* --------------------------------------------------------------------------
   16. À propos
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.about-media { position: relative; }
.about-media .framed { border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-l); }
.about-media img { width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.about-stamp {
  position: absolute;
  right: -1.2rem;
  top: -1.6rem;
  width: 7.5rem; height: 7.5rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-m);
  transform: rotate(-8deg);
}
.about-stamp b { font-size: 1.6rem; line-height: 1; }
.about-stamp span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .25rem; }
.about-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin-top: 2rem; }
.about-facts li { font-size: .92rem; color: var(--ink-soft); display: flex; gap: .55rem; align-items: center; }
.about-facts svg { width: 1.1rem; height: 1.1rem; color: var(--red); }

/* --------------------------------------------------------------------------
   17. FAQ
   -------------------------------------------------------------------------- */
.faq-wrap { max-width: 50rem; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--grey-100); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.35rem .4rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: var(--red); }
.faq-q .faq-icon {
  flex: none;
  width: 1.9rem; height: 1.9rem;
  border: 1px solid var(--grey-200);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all .3s var(--ease);
}
.faq-q .faq-icon svg { width: .9rem; height: .9rem; transition: transform .3s var(--ease); }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--red); border-color: var(--red); color: #fff; }
.faq-q[aria-expanded="true"] .faq-icon svg { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 .4rem 1.4rem; color: var(--ink-soft); max-width: 42rem; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* --------------------------------------------------------------------------
   18. Contact / Devis
   -------------------------------------------------------------------------- */
.contact-section {
  position: relative;
  background: var(--navy) radial-gradient(1000px 480px at 12% -8%, #14417c 0%, var(--navy) 58%);
  color: #dbe6f2;
}
.contact-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(200deg, #000 0%, transparent 60%);
  pointer-events: none;
}
.contact-section h2 { color: #fff; }
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-aside p { color: #b9c9dc; }
.contact-direct { display: grid; gap: .8rem; margin-top: 2rem; }
.contact-direct a, .contact-direct span.direct-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-m);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.contact-direct a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); transform: translateX(4px); text-decoration: none; }
.contact-direct svg { width: 1.3rem; height: 1.3rem; color: #ff8595; flex: none; }
.contact-direct small { display: block; font-weight: 400; font-size: .8rem; color: #9db2c9; }
.contact-note {
  margin-top: 1.8rem;
  font-size: .85rem;
  color: #9db2c9;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.4rem;
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.quote-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-m);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-l);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field label .opt { font-weight: 400; color: var(--grey-400); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-s);
  padding: .8rem .95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30, 90, 168, .16);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--red);
  background: #fff8f9;
}
.field .error-msg { display: none; font-size: .8rem; color: var(--red); }
.field.has-error .error-msg { display: block; }

.type-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.type-pill {
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  padding: .55rem 1rem;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.type-pill:hover { border-color: var(--blue); color: var(--blue); }
.type-pill[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.conditional-block {
  display: none;
  grid-column: 1 / -1;
  background: var(--blue-soft);
  border: 1px solid #d2e0f0;
  border-radius: var(--radius-m);
  padding: 1.3rem 1.3rem 1.4rem;
}
.conditional-block.is-visible { display: block; }
.conditional-block h4 {
  margin: 0 0 .9rem;
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--navy);
}
.conditional-block .form-grid { gap: .9rem; }
.unknown-check { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); }
.unknown-check input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--red); }

.file-drop {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 2px dashed var(--grey-200);
  border-radius: var(--radius-m);
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--blue); background: var(--blue-soft); }
.file-drop svg { width: 1.8rem; height: 1.8rem; color: var(--blue); flex: none; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop strong { display: block; font-size: .92rem; color: var(--navy); }
.file-drop small { color: var(--grey-600); font-size: .8rem; }
.file-preview { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-s);
  padding: .45rem .7rem;
}
.file-chip button {
  border: 0; background: none; cursor: pointer;
  color: var(--red); font-size: 1rem; line-height: 1; padding: 0 .1rem;
}

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--red); flex: none; }
.consent.has-error { color: var(--red); }

.form-footer { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 1rem; margin-top: .4rem; }
.form-footer .btn { align-self: flex-start; }
.form-hint { font-size: .82rem; color: var(--grey-400); margin: 0; }

.form-status { display: none; grid-column: 1 / -1; border-radius: var(--radius-m); padding: 1.2rem 1.4rem; }
.form-status.is-success {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #ecf9f0; border: 1px solid #b9e6c8; color: #14532d;
}
.form-status.is-error {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fdeef0; border: 1px solid #f3c2ca; color: #7f1023;
}
.form-status svg { width: 1.5rem; height: 1.5rem; flex: none; }
.form-status strong { display: block; margin-bottom: .15rem; }
.form-status p { margin: 0; font-size: .92rem; }

/* --------------------------------------------------------------------------
   19. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #a9bccd;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}
/* max-height plutôt que height : dans une colonne étroite, le logo se
   réduit proportionnellement au lieu d'être écrasé */
.footer-brand img {
  width: auto; height: auto;
  max-width: 100%; max-height: 2.4rem;
  margin-bottom: 1.2rem;
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: .9rem; max-width: 20rem; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-s);
  color: #a9bccd;
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.footer-social a:hover { color: #fff; border-color: rgba(255,255,255,.45); transform: translateY(-2px); text-decoration: none; }
.footer-social svg { width: 1.15rem; height: 1.15rem; }
.footer-col h4 {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { color: #a9bccd; font-size: .9rem; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.4rem 0 calc(1.4rem + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-legal a, .footer-legal button {
  color: #8fa5bc;
  background: none; border: 0; padding: 0;
  font: inherit; font-size: .82rem;
  cursor: pointer; text-decoration: none;
}
.footer-legal a:hover, .footer-legal button:hover { color: #fff; }

/* --------------------------------------------------------------------------
   20. Barre d'action mobile
   -------------------------------------------------------------------------- */
.mobile-actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 98;
  display: none;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: .6rem;
  padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--grey-100);
  box-shadow: 0 -6px 24px rgba(11,46,89,.12);
}
.mobile-actionbar a, .mobile-actionbar span.direct-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  padding: .8rem .5rem;
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--navy);
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
}
.mobile-actionbar svg { width: 1.05rem; height: 1.05rem; }
.mobile-actionbar .bar-quote { background: var(--red); border-color: var(--red); color: #fff; }

/* --------------------------------------------------------------------------
   21. Animations au défilement
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .resources-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 4.25rem; }
  .nav-toggle { display: flex; }
  /* le logo officiel est large : on le réduit pour garder
     l'appel et le menu dans la barre */
  .header-logo img { height: 1.85rem; }
  /* le bloc appel + menu se cale à droite de la barre */
  .header-actions { margin-left: auto; }
  .header-call span { display: none; }
  .header-actions .btn { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 34rem; }
  .hero-badge { left: 1rem; }

  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--grey-100); padding: 1.4rem 1rem; }

  .inox-grid, .split, .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  /* sans min-width:0, la piste grille se cale sur le min-content de l'enfant
     et déborde le viewport sur les petits écrans. */
  .inox-grid > *, .split > *, .why-grid > *, .about-grid > *, .contact-grid > * { min-width: 0; }
  .split--reverse .split-media { order: 0; }

  .sectors-layout { grid-template-columns: 1fr; }
  /* Sur mobile, une grille de deux colonnes : les dix secteurs sont
     visibles d'un coup, sans défilement horizontal. */
  .sector-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .sector-tab {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .5rem;
    text-align: left;
    font-size: .85rem;
    line-height: 1.25;
    padding: .8rem .75rem;
    height: 100%;
  }
  .sector-tab > span { flex: 0 1 auto; }
  .sector-tab svg { display: none; }
  .sector-tab__ico { width: 2.2rem; height: 2.2rem; }
  .sector-visual { flex: none; min-height: 0; }
  .sector-visual img { aspect-ratio: 16 / 9; }

  .products-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 14rem; }
  /* cibles tactiles : 44 px minimum sur les liens de carte */
  .product-actions .discover, .product-actions .quote { min-height: 44px; align-items: center; }
  .workshop-grid { grid-template-columns: 1fr 1fr; }
  .workshop-grid figure:first-child { grid-column: span 2; grid-row: auto; }
  /* sans span vertical, min-height:100% donnait une hauteur nulle */
  .workshop-grid figure:first-child img { aspect-ratio: 16 / 9; min-height: 0; }

  /* repère vertical : il tombait hors cadre une fois la grille en colonne */
  .hero-measure--side { display: none; }
  .hero-visual { padding-top: 1.8rem; }
  .cases-grid { grid-template-columns: 1fr; max-width: 34rem; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; max-width: 34rem; }
  /* Deux colonnes conservées jusqu'au téléphone : en une seule colonne,
     ces listes de 7 et 12 entrées imposaient un défilement interminable. */
  .why-list { grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
  .inox-list { columns: 2; column-gap: 1.1rem; }
  .about-stamp { right: 0; top: -1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  /* 320 px : deux colonnes de réassurance et les équerres décoratives
     poussaient la page au-delà du viewport. */
  .header-logo img { height: 1.75rem; }

  .why-list { gap: 1rem .75rem; }
  .why-list li, .inox-list li { gap: .5rem; }
  .why-list svg, .inox-list svg { width: 1rem; height: 1rem; margin-top: .15rem; }
  .why-list strong, .inox-list strong { font-size: .87rem; line-height: 1.3; }
  .why-list span, .inox-list span { font-size: .77rem; line-height: 1.45; }
  .inox-list li { padding: .6rem 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .split-media .corner { display: none; }
  .products-grid { grid-template-columns: 1fr; grid-auto-rows: 15rem; }
  .product-card.size-wide { grid-column: span 1; }
  .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  /* libellés longs : on autorise le retour à la ligne plutôt que le débordement */
  .btn { white-space: normal; text-align: center; }
  .mobile-actionbar { display: grid; }
  body { padding-bottom: 4.6rem; }
  .footer-bottom { padding-bottom: 1.4rem; }
  .about-stamp { width: 6rem; height: 6rem; }
  .about-stamp b { font-size: 1.2rem; }
}

@media (min-width: 621px) and (max-width: 900px) {
  .mobile-actionbar { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 30rem; margin-inline: auto; left: 1rem; right: 1rem; bottom: .8rem; border-radius: var(--radius-m); border: 1px solid var(--grey-100); }
  body { padding-bottom: 5.4rem; }
}

@media print {
  .site-header, .mobile-actionbar, .hero-ctas, .scroll-hint { display: none; }
}
