/* ===========================================================================
   VALISIO — Accueil, couche « nuit + laiton ».
 
   Cette feuille ne s'applique qu'à la page d'accueil (body.home-v3) : les
   27 000 pages de collection et les 4 325 fiches produit continuent de vivre
   sur assets/style.css sans en être affectées. Elle est chargée APRÈS
   style.css et n'en redéfinit que ce qu'elle doit corriger.
 
   Trois partis pris, par rapport à la version précédente :
     - le laiton devient un accent (filets, étiquettes, un seul bouton plein)
       au lieu d'être la couleur dominante : c'est ce qui sépare le premium du
       tape-à-l'œil ;
     - les titres passent en serif éditorial (Instrument Serif), l'interface
       reste en Spline Sans : la hiérarchie se lit sans avoir besoin de crier ;
     - les photos produit sur fond blanc sont posées sur une tuile claire
       assumée, au lieu de flotter en découpe sur le noir.
   =========================================================================== */

.home-v3 {
  /* Encre franchement bleutée : l'ancien #0c0f13 tirait sur le brun dès qu'on
     posait du laiton dessus. */
  --nuit: #0b0e13;
  --nuit-2: #10141b;
  --nuit-3: #161c25;
  --nuit-4: #1d242e;

  --filet: rgba(244, 241, 234, 0.09);
  --filet-fort: rgba(244, 241, 234, 0.16);

  /* Laiton réel, moins saturé que l'ancien or #e8a838 : il tient la
     comparaison avec le blanc cassé sans virer au jaune fluo. */
  --laiton: #c89a52;
  --laiton-clair: #e0bd84;
  --laiton-sourd: rgba(200, 154, 82, 0.14);

  --ivoire: #f4f1ea;
  --texte: #a9b1bb;
  --sourd: #7f8a96;   /* 5,25:1 sur --nuit-2 ; #737d88 tombait a 4,41:1 */

  --tuile: #f6f5f2;   /* les photos catalogue sont détourées sur blanc pur */

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

  --pas: clamp(56px, 7vw, 104px);

  background: var(--nuit);
  color: var(--texte);
}

.home-v3 h1,
.home-v3 h2,
.home-v3 h3 { color: var(--ivoire); }

.home-v3 ::selection { background: var(--laiton); color: #14100a; }

/* --------------------------------------------------------------- primitives */

.home-v3 .h-wrap {
  width: 100%;
  max-width: var(--maxw);          /* même laisse que l'en-tête et le pied */
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.home-v3 .h-sec { padding-block: var(--pas); }
.home-v3 .h-sec--fond { background: var(--nuit-2); border-block: 1px solid var(--filet); }

/* Étiquette de section : petites capitales laiton précédées d'un filet. */
.home-v3 .h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--laiton);
}
.home-v3 .h-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--laiton);
  opacity: 0.7;
}

.home-v3 .h-titre {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.06;
  font-size: clamp(30px, 1.4rem + 2.2vw, 52px);
  margin: 14px 0 0;
  text-wrap: balance;
}

.home-v3 .h-chapo {
  max-width: 58ch;
  margin: 16px 0 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--texte);
  text-wrap: pretty;
}

.home-v3 .h-tete {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 52px);
}

/* Lien fléché : la flèche avance au survol, le soulignement se dessine. */
.home-v3 .h-lien {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ivoire);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--laiton), var(--laiton));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.35s var(--ease), color 0.35s var(--ease);
}
.home-v3 .h-lien svg { transition: transform 0.35s var(--ease); }
.home-v3 .h-lien:hover { background-size: 100% 1px; color: #fff; }
.home-v3 .h-lien:hover svg { transform: translateX(4px); }

/* Boutons. `.prose a` de style.css colorait le libellé en laiton sur un fond
   laiton : le bouton du bloc éditorial était illisible. On le rattrape ici. */
.home-v3 .h-btn,
.home-v3 .prose a.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.home-v3 .h-btn svg { flex: none; transition: transform 0.3s var(--ease); }
.home-v3 .h-btn:hover svg { transform: translateX(3px); }

.home-v3 .h-btn--plein,
.home-v3 .prose a.h-btn--plein {
  background: var(--laiton);
  color: #17120a;          /* 8,4:1 sur le laiton */
  box-shadow: none;
}
.home-v3 .h-btn--plein:hover,
.home-v3 .prose a.h-btn--plein:hover {
  background: var(--laiton-clair);
  color: #17120a;
  transform: translateY(-1px);
}

.home-v3 .h-btn--contour,
.home-v3 .prose a.h-btn--contour {
  border-color: var(--filet-fort);
  color: var(--ivoire);
  background: transparent;
}
.home-v3 .h-btn--contour:hover { border-color: var(--laiton); color: #fff; }

/* ---------------------------------------------------------------- bandeau */

.home-v3 .topbar {
  background: var(--nuit-2);
  color: var(--texte);
  border-bottom: 1px solid var(--filet);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.home-v3 .topbar__new {
  color: var(--laiton);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.home-v3 .topbar__pulse { background: var(--laiton); }
.home-v3 .header { background: rgba(11, 14, 19, 0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--filet); }

/* -------------------------------------------------------------------- hero */

.home-v3 .h-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 74vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--nuit);
}
.home-v3 .h-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 50%;
  z-index: -2;
}
/* Deux voiles : un dégradé horizontal qui creuse la zone de texte, un voile
   vertical qui rattache le hero au bloc de chiffres qui suit. */
.home-v3 .h-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, rgba(11, 14, 19, 0.97) 0%, rgba(11, 14, 19, 0.9) 34%, rgba(11, 14, 19, 0.45) 62%, rgba(11, 14, 19, 0.2) 100%),
    linear-gradient(to top, rgba(11, 14, 19, 0.96) 0%, rgba(11, 14, 19, 0) 42%);
}

.home-v3 .h-hero__in { position: relative; padding-block: clamp(64px, 9vw, 104px); }
.home-v3 .h-hero__txt { max-width: 640px; }

.home-v3 .h-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 1.6rem + 4.4vw, 82px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
  color: #fff;
  text-wrap: balance;
}
.home-v3 .h-hero h1 em {
  font-style: italic;
  color: var(--laiton-clair);
}
.home-v3 .h-hero__sub {
  max-width: 46ch;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: #cfd5dc;
}
.home-v3 .h-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Rail de chiffres, collé au bas du hero et séparé par des filets. */
/* La bande pleine largeur porte le fond et les filets ; la grille intérieure
   reste alignée sur la même laisse que l'en-tête. */
.home-v3 .h-bande { background: var(--nuit-2); border-block: 1px solid var(--filet); }
.home-v3 .h-bande + .h-bande { border-top: 0; }
.home-v3 .h-bande--chiffres { background: var(--nuit-2); }

.home-v3 .h-hero__rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--filet);
  font-size: 13.5px;
  color: var(--sourd);
  max-width: 900px;
}
.home-v3 .h-hero__rail b {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ivoire);
  letter-spacing: 0.01em;
}
.home-v3 .h-hero__rail .h-prix { color: var(--laiton-clair); }

/* ----------------------------------------------------------------- chiffres */

.home-v3 .h-chiffres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.home-v3 .h-chiffre {
  padding: clamp(24px, 3vw, 38px) clamp(18px, 2.4vw, 32px);
  border-left: 1px solid var(--filet);
}
.home-v3 .h-chiffre:first-child { border-left: 0; padding-left: 0; }
.home-v3 .h-chiffre__n {
  font-family: var(--display);
  font-size: clamp(26px, 1rem + 1.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ivoire);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.home-v3 .h-chiffre__l {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sourd);
}

/* -------------------------------------------------------------- engagements */

.home-v3 .h-engagements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.home-v3 .h-engagement {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(20px, 2.6vw, 26px) clamp(18px, 2.2vw, 28px);
  border-left: 1px solid var(--filet);
}
.home-v3 .h-engagement:first-child { border-left: 0; padding-left: 0; }
.home-v3 .h-engagement svg { flex: none; width: 22px; height: 22px; color: var(--laiton); stroke-width: 1.4; }
.home-v3 .h-engagement b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ivoire); }
.home-v3 .h-engagement span { display: block; margin-top: 3px; font-size: 13px; color: var(--sourd); }

/* --------------------------------------------------------------- compagnies */

.home-v3 .airlines-strip { background: var(--nuit); border-block: 1px solid var(--filet); padding-block: 34px; }
.home-v3 .airlines-strip__lbl {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sourd);
  text-align: center;
  margin: 0 0 22px;
}
.home-v3 .airlines-strip__grid img,
.home-v3 .airlines-strip__track img {
  height: 20px;
  width: auto;
  /* brightness(0) invert(1) aplatit chaque logo en blanc : sans cela les
     logos foncés (Ryanair, Lufthansa, volotea) restaient invisibles. */
  filter: brightness(0) invert(1);
  opacity: 0.42;
  transition: opacity 0.3s var(--ease);
}
.home-v3 .airlines-strip__grid img:hover { opacity: 0.85; }

/* --------------------------------------------------------------- catégories */

.home-v3 .h-grille-cat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.home-v3 .h-cat {
  display: flex;
  flex-direction: column;
  background: var(--nuit-2);
  border: 1px solid var(--filet);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.home-v3 .h-cat:hover { border-color: rgba(200, 154, 82, 0.5); transform: translateY(-3px); }
.home-v3 .h-cat__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--nuit-3);
}
.home-v3 .h-cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.home-v3 .h-cat:hover .h-cat__media img { transform: scale(1.045); }
.home-v3 .h-cat__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 14, 19, 0.92) 0%, rgba(11, 14, 19, 0.15) 46%, rgba(11, 14, 19, 0) 70%);
}
.home-v3 .h-cat__corps { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.home-v3 .h-cat__sur {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--laiton);
}
.home-v3 .h-cat h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  margin: 8px 0 0;
}
.home-v3 .h-cat p {
  margin: 9px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--sourd);
  flex: 1;
}
.home-v3 .h-cat__pied {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ivoire);
}
.home-v3 .h-cat:hover .h-cat__pied { color: var(--laiton-clair); }
.home-v3 .h-cat__pied svg { transition: transform 0.35s var(--ease); }
.home-v3 .h-cat:hover .h-cat__pied svg { transform: translateX(4px); }

/* ----------------------------------------------------------------- produits */

.home-v3 .h-grille-prod {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 26px);
}
.home-v3 .h-prod {
  display: flex;
  flex-direction: column;
  background: var(--nuit-2);
  border: 1px solid var(--filet);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.home-v3 .h-prod:hover { border-color: var(--filet-fort); transform: translateY(-3px); }
/* Les photos du catalogue sont détourées sur blanc : sur fond noir elles
   flottaient en rectangles blancs. Une tuile claire assumée les rassemble. */
.home-v3 .h-prod__media {
  position: relative;
  display: block;
  background: var(--tuile);
  aspect-ratio: 4 / 3;
}
/* L'image est positionnée en absolu, et non en hauteur 100 % : une hauteur en
   pourcentage dans un parent dimensionné par aspect-ratio crée une dépendance
   circulaire, que le navigateur résout en reprenant la hauteur de l'image —
   les tuiles n'avaient alors plus la même hauteur d'une carte à l'autre. */
.home-v3 .h-prod__media > a { position: absolute; inset: 0; display: block; }
.home-v3 .h-prod__media img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
  mix-blend-mode: multiply;   /* absorbe les fonds blancs légèrement gris */
}
.home-v3 .h-prod__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #17120a;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 18, 10, 0.12);
  padding: 5px 9px;
  border-radius: 2px;
}
.home-v3 .h-prod__corps { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.home-v3 .h-prod h3 {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
  color: var(--ivoire);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-v3 .h-prod h3 a:hover { color: var(--laiton-clair); }
.home-v3 .h-prod__ref {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sourd);
  flex: 1;
}
.home-v3 .h-prod__achat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--filet);
}
.home-v3 .h-prod__prix {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ivoire);
  font-variant-numeric: tabular-nums;
}
.home-v3 .h-prod__prix s { font-size: 13px; color: var(--sourd); margin-left: 7px; font-weight: 400; }
.home-v3 .h-prod__add {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ivoire);
  background: transparent;
  border: 1px solid var(--filet-fort);
  border-radius: 3px;
  padding: 9px 15px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.home-v3 .h-prod__add:hover { background: var(--laiton); border-color: var(--laiton); color: #17120a; }

/* ---------------------------------------------------------------- éditorial */

.home-v3 .h-edito {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.home-v3 .h-edito__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
}
.home-v3 .h-edito__media img { width: 100%; height: 100%; object-fit: cover; }
/* Filet laiton décalé : un cadre discret plutôt qu'une ombre portée. */
.home-v3 .h-edito__media::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--filet-fort);
  z-index: 2;
  pointer-events: none;
}
.home-v3 .h-edito__liste { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 13px; }
.home-v3 .h-edito__liste li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--texte);
}
.home-v3 .h-edito__liste svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--laiton); }
.home-v3 .h-edito .h-btn { margin-top: 32px; }

/* -------------------------------------------------------------------- guide */

.home-v3 .h-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--filet); border: 1px solid var(--filet); }
.home-v3 .h-guide__carte { background: var(--nuit-2); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; }
.home-v3 .h-guide__ic {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--laiton-sourd);
  background: var(--laiton-sourd);
  border-radius: 50%;
  color: var(--laiton);
  margin-bottom: 20px;
}
.home-v3 .h-guide__ic svg { width: 20px; height: 20px; stroke-width: 1.4; }
.home-v3 .h-guide__carte h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0; }
.home-v3 .h-guide__carte p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--sourd); flex: 1; }
.home-v3 .h-guide__carte .h-lien { margin-top: 20px; align-self: flex-start; }

/* ------------------------------------------------------------ compatibilité */

.home-v3 .h-compat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--filet); border: 1px solid var(--filet); }
.home-v3 .h-compat__l {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  background: var(--nuit);
  padding: 20px clamp(18px, 2.4vw, 28px);
}
.home-v3 .h-compat__l b { font-size: 15px; font-weight: 600; color: var(--ivoire); }
.home-v3 .h-compat__l span {
  font-family: var(--display);
  font-size: 13px;
  color: var(--sourd);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------- FAQ */

.home-v3 .faq-acc-list { max-width: 900px; margin-inline: auto; border-top: 1px solid var(--filet); }
.home-v3 .faq-acc {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--filet);
  border-radius: 0;
  padding: 0;
  margin: 0;
}
.home-v3 .faq-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ivoire);
  transition: color 0.3s var(--ease);
}
.home-v3 .faq-acc summary::-webkit-details-marker { display: none; }
.home-v3 .faq-acc summary::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(var(--laiton), var(--laiton)) center / 13px 1px no-repeat,
    linear-gradient(var(--laiton), var(--laiton)) center / 1px 13px no-repeat;
  transition: transform 0.35s var(--ease);
}
.home-v3 .faq-acc[open] summary::after { transform: rotate(45deg); }
.home-v3 .faq-acc summary:hover { color: var(--laiton-clair); }
.home-v3 .faq-acc__body { padding: 0 4px 24px; font-size: 15px; line-height: 1.7; color: var(--texte); max-width: 72ch; }
.home-v3 .faq-acc__body a { color: var(--laiton-clair); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- appel final */

.home-v3 .h-appel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--nuit-2);
  border-top: 1px solid var(--filet);
}
.home-v3 .h-appel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 120% at 50% 0%, rgba(200, 154, 82, 0.14) 0%, rgba(200, 154, 82, 0) 68%);
}
.home-v3 .h-appel h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 1.4rem + 2.6vw, 58px);
  line-height: 1.05;
  margin: 16px auto 0;
  max-width: 18ch;
  text-wrap: balance;
}
.home-v3 .h-appel p { max-width: 52ch; margin: 18px auto 0; font-size: 16px; line-height: 1.6; color: var(--texte); }
.home-v3 .h-appel .h-btn { margin-top: 34px; }

/* ------------------------------------------------------------------ réglages */

/* Le mouvement d'apparition reste discret : 12 px, pas 40. */
.home-v3 .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.home-v3 .reveal.is-visible { opacity: 1; transform: none; }   /* classe posée par main.js */

@media (prefers-reduced-motion: reduce) {
  .home-v3 .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------ tablette */

@media (max-width: 1080px) {
  .home-v3 .h-chiffre:first-child,
  .home-v3 .h-engagement:first-child { padding-left: clamp(18px, 2.4vw, 32px); }
  .home-v3 .h-grille-cat { grid-template-columns: repeat(3, 1fr); }
  .home-v3 .h-grille-prod { grid-template-columns: repeat(2, 1fr); }
  .home-v3 .h-guide, .home-v3 .h-compat { grid-template-columns: repeat(2, 1fr); }
  .home-v3 .h-engagements { grid-template-columns: repeat(2, 1fr); }
  .home-v3 .h-edito { grid-template-columns: 1fr; }
  .home-v3 .h-edito__media { aspect-ratio: 16 / 10; max-height: 420px; }
}

/* -------------------------------------------------------------------- mobile */

@media (max-width: 720px) {
  .home-v3 .h-hero { min-height: 0; }
  .home-v3 .h-hero__img { object-position: 78% 55%; }
  .home-v3 .h-hero::before {
    background:
      linear-gradient(to top, rgba(11, 14, 19, 0.97) 34%, rgba(11, 14, 19, 0.72) 70%, rgba(11, 14, 19, 0.5) 100%);
  }
  .home-v3 .h-hero__in { padding-block: 260px 48px; }   /* la photo respire au-dessus du texte */
  .home-v3 .h-hero__cta { gap: 10px; }
  .home-v3 .h-hero__cta .h-btn { flex: 1 1 100%; }
  .home-v3 .h-hero__rail { gap: 6px 18px; font-size: 12.5px; }

  .home-v3 .h-chiffres { grid-template-columns: repeat(2, 1fr); }
  .home-v3 .h-chiffre { border-left: 1px solid var(--filet); border-top: 1px solid var(--filet); }
  .home-v3 .h-chiffre:nth-child(odd) { border-left: 0; }
  .home-v3 .h-chiffre:nth-child(-n+2) { border-top: 0; }

  .home-v3 .h-grille-cat { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .home-v3 .h-cat__corps { padding: 15px 15px 18px; }
  .home-v3 .h-cat h3 { font-size: 18px; }
  .home-v3 .h-cat p { display: none; }              /* la vignette porte déjà le message */

  .home-v3 .h-grille-prod { grid-template-columns: 1fr; }
  .home-v3 .h-engagements, .home-v3 .h-guide, .home-v3 .h-compat { grid-template-columns: 1fr; }
  /* En pile, la bordure de colonne devenait un trait vertical parasite et
     decalait de 18 px tous les items sauf le premier. */
  .home-v3 .h-engagement { border-left: 0; border-top: 1px solid var(--filet); padding-left: 0; }
  .home-v3 .h-engagement:first-child { border-top: 0; }
  .home-v3 .h-tete { margin-bottom: 26px; }
  .home-v3 .faq-acc summary { font-size: 15.5px; padding: 18px 2px; }
}

/* Les boutons doivent rester atteignables au pouce : 48 px de haut minimum. */
@media (max-width: 720px) {
  .home-v3 .h-btn { min-height: 50px; }
  .home-v3 .h-prod__add { min-height: 44px; }
  .home-v3 .h-lien { min-height: 44px; align-items: center; }
  .home-v3 .h-prod h3 a { display: block; padding-block: 4px; }
}
