/* =====================================================================
   KAGNARD : produit.css
   Gabarit commun aux pages produit (5 films). Seules les données changent.
   S'appuie sur variables.css + global.css. Concept chaud -> froid conservé.

   Teinte d'accent par produit : chaque page peut surcharger
   --accent / --accent-2 sur .produit (via un style inline ou une classe).
   ===================================================================== */

.produit {
  --accent: var(--orange);
  --accent-2: var(--bleu);
  /* --accent-text : alias sur l'accent de base (le client préfère la couleur de marque/
     variante exacte partout, même sur les petits textes, quitte à perdre un peu de contraste). */
  --accent-text: var(--accent);
  /* Fond global chaud -> froid, comme l'accueil */
  background:
    linear-gradient(
      180deg,
      hsl(32 90% 97%) 0%,
      hsl(28 80% 95%) 16%,
      hsl(210 60% 97%) 62%,
      hsl(208 70% 96%) 100%
    );
  background-attachment: fixed;
}

/* Variante teinte "argent/miroir" (Sentinel Plus, Silver, Sterling) */
.produit--silver { --accent: #6E7A85; --accent-2: #4DA3FF; --accent-text: var(--accent); }
/* Variante teinte "transparent/neutre" (Lumina 75 EXF) */
.produit--clear { --accent: #3E8E7E; --accent-2: #4DA3FF; --accent-text: var(--accent); }

/* ---------------------------------------------------------------------
   1. FIL D'ARIANE
   --------------------------------------------------------------------- */
.breadcrumb {
  padding-top: calc(var(--header-h) + 1.4rem);
  padding-bottom: 0.4rem;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gris-texte);
}
.breadcrumb__list li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb__list li:not(:last-child)::after {
  content: "›";
  color: var(--gris-texte);
  opacity: 0.6;
}
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb [aria-current="page"] { color: var(--noir); font-weight: 600; }

/* ---------------------------------------------------------------------
   2. HERO PRODUIT (god ray léger)
   --------------------------------------------------------------------- */
.produit-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem);
  isolation: isolate;
}
/* God ray léger + halo (discret, statique) */
.produit-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -5%;
  width: 55%;
  height: 150%;
  background: linear-gradient(
    100deg,
    rgba(255, 236, 190, 0) 0%,
    rgba(255, 236, 190, 0.45) 50%,
    rgba(255, 236, 190, 0) 100%
  );
  transform: rotate(10deg);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.produit-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.produit-hero__eyebrow { color: var(--accent-text); }
.produit-hero__eyebrow::before { background: var(--noir); }
.produit-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  margin-bottom: 1rem;
}
.produit-hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 52ch;
  margin-bottom: 1.6rem;
}

/* Badges clés en glassmorphism */
.produit-hero__badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  max-width: 460px;
}
.badge {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1.1rem;
}
.badge__value {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent-text);
  line-height: 1;
}
.badge__label {
  font-size: 0.8rem;
  color: var(--gris-texte);
}

.produit-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Visuel produit */
.produit-hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
  aspect-ratio: 4 / 3;
}
/* Le <picture> (source webp + img jpg) doit porter la hauteur du conteneur,
   sinon le `height: 100%` de l'<img> se résout contre un parent `auto` et la
   photo ne remplit plus la boîte en aspect-ratio 4/3. */
.produit-hero__visual picture { display: block; width: 100%; height: 100%; }
.produit-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------------
   3. CHIFFRES CLÉS (compteurs)
   --------------------------------------------------------------------- */
.produit-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.produit-stats__item { padding: 1.2rem 1rem; }
.produit-stats__num {
  display: block;
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  background: var(--gradient-signature);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}
.produit-stats__label {
  display: block;
  margin-top: 0.5rem;
  color: var(--gris-texte);
  font-weight: 500;
}

/* ---------------------------------------------------------------------
   4. POUR QUI / USAGE
   --------------------------------------------------------------------- */
.usage__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.usage-card {
  padding: 1.8rem 1.6rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.usage-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.usage-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--blanc);
  margin-bottom: 1rem;
}
.usage-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

/* ---------------------------------------------------------------------
   5. FICHE TECHNIQUE
   --------------------------------------------------------------------- */
.spec__table-wrap { overflow-x: auto; border-radius: var(--radius); }
.spec__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 520px;
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spec__table th,
.spec__table td {
  padding: 1rem 1.3rem;
  text-align: left;
  border-bottom: 1px solid var(--gris-bord);
}
.spec__table tr:last-child th,
.spec__table tr:last-child td { border-bottom: none; }
.spec__table th[scope="row"] {
  font-weight: 600;
  color: var(--noir);
  width: 45%;
  background: var(--blanc-casse);
}
.spec__table td { color: var(--gris-texte); font-weight: 500; }

/* ---------------------------------------------------------------------
   6. AVANT / APRÈS  (réutilise le composant .ba de home.css)
   On importe ici une version autonome minimale au cas où home.css absent.
   --------------------------------------------------------------------- */
.produit .ba { margin-top: 1rem; }

/* ---------------------------------------------------------------------
   7. POSE & DURABILITÉ
   --------------------------------------------------------------------- */
.pose__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  align-items: stretch;
}
.pose__card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--blanc);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
}
.pose__rule {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bleu-soft);
  border-left: 4px solid var(--bleu);
  overflow: hidden;
  isolation: isolate;
}
.pose__rule::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 90% 0%, rgba(77, 163, 255, 0.18), transparent 55%);
}
.pose__rule h3 { margin-bottom: 0.6rem; }
.pose__turnkey {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pose__turnkey li { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; color: var(--noir); }

/* ---------------------------------------------------------------------
   8. CALCULATEUR intégré : voir calculateur.css
   --------------------------------------------------------------------- */
.produit-calc { }

/* ---------------------------------------------------------------------
   9. COMPARER (cross-sell)
   --------------------------------------------------------------------- */
.crosssell__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.crosssell-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.crosssell-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.crosssell-card__pct {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--accent-text);
}
.crosssell-card__name { font-size: 1.25rem; }
.crosssell-card__use { font-size: 0.9rem; flex-grow: 1; }
.crosssell-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--noir);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.crosssell-card__link:hover { gap: 0.7rem; color: var(--accent-text); }

/* ---------------------------------------------------------------------
   10. FAQ produit : réutilise .faq de home.css
   --------------------------------------------------------------------- */

/* ---------------------------------------------------------------------
   11. DEVIS : réutilise .devis de home.css
   --------------------------------------------------------------------- */

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
  .produit-hero__inner { grid-template-columns: 1fr; }
  .produit-hero__visual { order: -1; }
  .usage__grid,
  .crosssell__grid { grid-template-columns: 1fr 1fr; }
  .produit-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .pose__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .usage__grid,
  .crosssell__grid,
  .produit-stats__grid,
  .produit-hero__badges { grid-template-columns: 1fr; }
  .produit-hero__cta .btn { width: 100%; }
  .hero-phone-link { width: 100%; justify-content: center; }
}

/* Note de sources sous le tableau technique : normes et textes de référence.
   Discrète, mais les liens doivent rester repérables (E-E-A-T + extraction
   par les moteurs de réponse, qui valorisent une donnée sourcée). */
.spec__sources {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--gris-texte);
}
.spec__sources a {
  color: var(--orange-fonce);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.spec__sources a:hover { color: var(--orange); }
