/* ══════════════════════════════════════════════
   STELNEO — Produits
   Aligné sur la feuille principale
   v2 — placeholders propres + styles image finale
══════════════════════════════════════════════ */

/* ── 1. HEADER ────────────────────────────── */
.produits-header {
  background: var(--bleu);
  padding: 140px var(--page-pad) var(--section-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.produits-header-inner { display: contents; }

.produits-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: 1px;
  color: var(--beige);
  margin: 18px 0 20px;
}
.produits-title .accent { color: var(--jaune); }

.produits-subtitle {
  max-width: 480px;
  font-size: var(--text-lead);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(244, 238, 223, 0.70);
}

.produits-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.produit-anchor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244, 238, 223, 0.07);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: rgba(244, 238, 223, 0.34);
  text-decoration: none;
  transition: color 0.2s;
}
.produit-anchor:last-child { border-bottom: none; }
.produit-anchor::before {
  content: '';
  width: 24px;
  height: 1.5px;
  flex-shrink: 0;
  background: rgba(244, 238, 223, 0.15);
  transition: width 0.25s, background 0.2s;
}
.produit-anchor:hover,
.produit-anchor.active { color: var(--beige); }
.produit-anchor:hover::before,
.produit-anchor.active::before {
  width: 40px;
  background: var(--jaune);
}
.nav-links a.active { color: var(--jaune); }


/* ── 2. SECTIONS PRODUITS ─────────────────── */
.produit-section {
  background: var(--beige);
  padding: var(--section-pad) var(--page-pad);
}
.produit-section--alt { background: var(--blanc); }

.produit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.produit-inner--reverse { direction: rtl; }
.produit-inner--reverse > * { direction: ltr; }

.produit-visuel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ────────────────────────────────────────────
   WRAPPER IMAGE — commun placeholder + réelle
   ──────────────────────────────────────────── */
.produit-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Image réelle (une fois le shooting fait) */
.produit-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Légère transition si l'image arrive en lazy */
  transition: opacity 0.3s ease;
}

/* ── ÉTAT PLACEHOLDER ── */
.produit-img-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Désactivé automatiquement quand un <img> est présent */
}

.produit-img-wrap--dark    { background: var(--bleu); }
.produit-img-wrap--light   { background: var(--beige); border: 2px solid rgba(0,47,75,.08); }
.produit-img-wrap--flat    { background: #e4eaee; }

/* Quand une vraie image est dans le wrapper, on masque l'aspect placeholder */
.produit-img-wrap:has(img) {
  background: transparent;
  border: none;
}

/* Contenu du placeholder */
.ph-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.ph-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.produit-img-wrap--dark  .ph-icon { color: rgba(244,238,223,.22); }
.produit-img-wrap--light .ph-icon { color: rgba(0,47,75,.18); }
.produit-img-wrap--flat  .ph-icon { color: rgba(0,47,75,.22); }

.ph-name {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 26px);
  letter-spacing: 1px;
  line-height: 1;
}
.produit-img-wrap--dark  .ph-name { color: rgba(244,238,223,.38); }
.produit-img-wrap--light .ph-name { color: rgba(0,47,75,.3); }
.produit-img-wrap--flat  .ph-name { color: rgba(0,47,75,.35); }

.ph-spec {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.produit-img-wrap--dark  .ph-spec { color: rgba(244,238,223,.16); }
.produit-img-wrap--light .ph-spec { color: rgba(0,47,75,.14); }
.produit-img-wrap--flat  .ph-spec { color: rgba(0,47,75,.18); }

/* Anneau décoratif en arrière-plan — sobre */
.produit-img-wrap--dark::before,
.produit-img-wrap--flat::before {
  content: '';
  position: absolute;
  top: -52px;
  right: -52px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 32px solid rgba(246,193,60,.07);
  pointer-events: none;
  z-index: 1;
}
.produit-img-wrap--dark:has(img)::before,
.produit-img-wrap--flat:has(img)::before { display: none; }


/* Badges */
.produit-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.p-badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bleu);
  background: rgba(0, 47, 75, 0.07);
  padding: 5px 12px;
  border-radius: 50px;
}
.p-badge--dark {
  color: var(--blanc);
  background: var(--bleu);
}


/* Contenu texte produit */
.produit-nom {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1;
  letter-spacing: 1px;
  color: var(--bleu);
  margin: 18px 0 20px;
}

.produit-desc {
  margin-bottom: 28px;
  font-size: var(--text-lead);
  font-weight: 300;
  line-height: 1.8;
  color: var(--gris);
}

.produit-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.produit-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.55;
  color: var(--bleu);
}
.feat-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--jaune);
}

.produit-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 36px;
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-item {
  background: rgba(0, 47, 75, 0.04);
  padding: 16px 18px;
}
.spec-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0, 47, 75, 0.35);
}
.spec-val {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--bleu);
}

.produit-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ── 3. SUR MESURE ────────────────────────── */
.sur-mesure {
  background: var(--bleu);
  padding: var(--section-pad) var(--page-pad);
}
.sur-mesure-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.sur-mesure-inner p {
  margin-top: 16px;
  font-size: var(--text-lead);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(244, 238, 223, 0.72);
}

.sur-mesure-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sm-card {
  background: rgba(244, 238, 223, 0.04);
  border: 1px solid rgba(244, 238, 223, 0.08);
  padding: 32px 28px;
  transition:
    background var(--transition-card),
    border-color var(--transition-card),
    transform var(--transition-card),
    box-shadow var(--transition-card);
}
.sm-card:hover {
  background: rgba(246, 193, 60, 0.07);
  border-color: rgba(246, 193, 60, 0.18);
  transform: var(--hover-lift);
  box-shadow: var(--hover-shadow-dark);
}
.sm-icon {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
  color: var(--jaune);
}
.sm-title {
  margin-bottom: 8px;
  font-size: var(--text-card-title);
  font-weight: 500;
  color: var(--beige);
}
.sm-desc {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(244, 238, 223, 0.66);
}


/* ── 4. FONDAMENTAUX ──────────────────────── */
.communs {
  background: var(--beige);
  padding: var(--section-pad) var(--page-pad);
}
.communs-header { margin-bottom: var(--section-gap); }

.communs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.commun-item {
  background: var(--blanc);
  border: 1px solid rgba(0, 47, 75, 0.07);
  padding: var(--card-pad);
  transition:
    border-color var(--transition-card),
    transform var(--transition-card),
    box-shadow var(--transition-card);
}
.commun-item:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.commun-item:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.commun-item:hover {
  transform: var(--hover-lift);
  border-color: rgba(0, 47, 75, 0.14);
  box-shadow: var(--hover-shadow-light);
}
.commun-num {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  color: var(--jaune);
  margin-bottom: 20px;
}
.commun-title {
  margin-bottom: 10px;
  font-size: var(--text-card-title);
  font-weight: 500;
  color: var(--bleu);
}
.commun-desc {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.7;
  color: var(--gris);
}


/* ── 5. FAQ PRODUITS ──────────────────────── */
.produits-faq {
  background: var(--bleu);
  padding: var(--section-pad) var(--page-pad);
}
.produits-faq .faq-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.produits-faq .faq-left h2 { color: var(--beige); margin-bottom: 20px; }
.produits-faq .faq-left p {
  margin-bottom: 32px;
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(244, 238, 223, 0.75);
}
.produits-faq .faq-list { display: flex; flex-direction: column; }
.produits-faq .faq-item { border-bottom: 1px solid rgba(244, 238, 223, 0.1); }
.produits-faq .faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-body);
  font-weight: 400;
  color: rgba(244, 238, 223, 0.95);
  transition: color 0.2s;
}
.produits-faq .faq-q:hover { color: var(--jaune); }
.produits-faq .faq-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(244, 238, 223, 0.3);
  border-radius: 50%;
  font-size: 18px;
  font-style: normal;
  color: rgba(244, 238, 223, 0.8);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s;
}
.produits-faq .faq-item.open .faq-icon {
  background: var(--jaune);
  border-color: var(--jaune);
  color: var(--bleu);
  transform: rotate(45deg);
}
.produits-faq .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.produits-faq .faq-a-inner {
  padding: 0 0 22px;
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(244, 238, 223, 0.75);
}


/* ── 6. CTA FINAL ─────────────────────────── */
.produits-cta-final {
  background: var(--bleu);
  padding: var(--section-pad) var(--page-pad);
  text-align: center;
}
.cta-final-inner {
  max-width: 640px;
  margin: 0 auto;
}
.cta-final-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  color: var(--beige);
  margin-bottom: 16px;
}
.cta-final-inner p {
  margin-bottom: 36px;
  font-size: var(--text-lead);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(244, 238, 223, 0.70);
}
.cta-final-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ── 7. RESPONSIVE ────────────────────────── */
@media (max-width: 1100px) {
  .communs-grid { grid-template-columns: repeat(2, 1fr); }
  .commun-item:first-child  { border-radius: var(--radius-lg) 0 0 0; }
  .commun-item:nth-child(2) { border-radius: 0 var(--radius-lg) 0 0; }
  .commun-item:nth-child(3) { border-radius: 0 0 0 var(--radius-lg); }
  .commun-item:last-child   { border-radius: 0 0 var(--radius-lg) 0; }
  .produit-inner { gap: 48px; }
}

@media (max-width: 900px) {
  .produits-header {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 110px;
    padding-bottom: 72px;
  }
  .produits-nav { display: none; }
  .produits-subtitle { max-width: 100%; }

  .produit-inner,
  .produit-inner--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
  /* Sur mobile le carré devient paysage */
  .produit-img-wrap { aspect-ratio: 16 / 9; }

  .sur-mesure-inner { grid-template-columns: 1fr; gap: 48px; }
  .produits-faq .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .produits-header { padding-top: 100px; padding-bottom: 48px; }

  .produit-section,
  .sur-mesure,
  .communs,
  .produits-faq,
  .produits-cta-final { padding: 72px var(--page-pad); }

  .produit-img-wrap { aspect-ratio: 4 / 3; }
  .produit-specs { grid-template-columns: 1fr 1fr; }
  .sur-mesure-cards { grid-template-columns: 1fr; }

  .produit-ctas { flex-direction: column; }
  .produit-ctas .btn-primary,
  .produit-ctas .btn-outline-dark { text-align: center; }

  .cta-final-btns {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }
  .cta-final-btns .btn-primary,
  .cta-final-btns .btn-ghost { text-align: center; }

  .communs-grid { grid-template-columns: 1fr; border-radius: var(--radius-lg); overflow: hidden; }
  .commun-item:first-child,
  .commun-item:nth-child(2),
  .commun-item:nth-child(3),
  .commun-item:last-child { border-radius: 0; }
}

@media (max-width: 400px) {
  .produit-img-wrap { aspect-ratio: 3 / 2; }
  .produit-specs { grid-template-columns: 1fr; }
  .produit-badges { gap: 6px; }
  .p-badge { font-size: 10px; padding: 4px 10px; }
}
