/* ==========================================================================
   AZUR — Product : page produit individuelle
   ========================================================================== */


/* ── Section 1 : Hero produit ──────────────────────────────────────────────── */

.product-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-color: var(--deep); /* fallback si pas d'image */
  overflow: hidden;
  /* Flex pour coller le contenu en bas */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Gradient overlay — monte de var(--deep) plein vers transparent */
.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--deep) 0%, transparent 65%);
  opacity: 0.7;
  z-index: 1;
}

/* Grain SVG — reprise du composant hero, redéfini ici pour cette page */
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 2;
}

.hero__grain svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Contenu texte — bas gauche, au-dessus de l'overlay */
.product-hero__content {
  position: relative;
  z-index: 3;
  padding: 0 3rem 5rem;
  max-width: 900px;
}

/* Nom du produit — Cormorant Garamond 300, très grand, blanc */
.product-hero__title {
  font-family: var(--font-cormorant);
  font-weight: 300;
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

/* Lieu — Année : DM Sans uppercase, or, letter-spacing 4px */
.product-hero__meta {
  font-family: var(--font-dm-sans);
  font-style: normal;   /* annule l'italic global sur p */
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  line-height: 1;
}


/* ── Section 2 : Éditorial ─────────────────────────────────────────────────── */

.product-editorial {
  background-color: var(--ivory);
  padding: 6rem 0;
}

/* Grille 3 pistes : texte | filet 1px | image */
.product-editorial__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1px minmax(300px, 42%);
  gap: 0 3.5rem;
  align-items: center;
}

/* Mode pleine largeur quand image_secondaire est absente */
.product-editorial--full .product-editorial__inner {
  grid-template-columns: 1fr;
}

/* Texte éditorial — post_content généré par WordPress */
.product-editorial__text {
  font-size: 18px;
  line-height: 2;
}

.product-editorial__text p {
  margin-bottom: 1.5em;
}

.product-editorial__text p:last-child {
  margin-bottom: 0;
}

/* Titres éventuels dans le contenu éditorial */
.product-editorial__text h2,
.product-editorial__text h3 {
  font-family: var(--font-cormorant);
  font-weight: 300;
  color: var(--charcoal);
  margin-top: 2em;
  margin-bottom: 0.75em;
}

/* Filet séparateur — dégradé vertical en or */
.product-editorial__divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--gold)  15%,
    var(--gold)  85%,
    transparent  100%
  );
}

/* Colonne image — centrée verticalement */
.product-editorial__image {
  display: flex;
  align-items: flex-start;
}

/* Cadre occupe toute la largeur de sa colonne */
.product-editorial__image .azur-framed {
  width: 100%;
}

/* Image à l'intérieur du cadre */
.product-editorial__img {
  width: 100%;
  height: auto;
  display: block;
}


/* ── Sections 2b / 2c : Liaison photo / illustration ──────────────────────── */

.product-linked {
  background-color: var(--ivory);
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--sand);
}

.product-linked__inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.product-linked__heading {
  font-family: var(--font-cormorant);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  color: var(--charcoal);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.product-linked__frame-link {
  display: block;
  width: 100%;
}

.product-linked__frame {
  width: 100%;
}

.product-linked__img {
  width: 100%;
  height: auto;
  display: block;
}

.product-linked__name {
  font-family: var(--font-cormorant);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.product-linked__link {
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.product-linked__link:hover {
  color: var(--gold);
  border-color: var(--gold);
}


/* ── Section 3 : Panoramique ───────────────────────────────────────────────── */

.product-panoramic {
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.product-panoramic__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* ── Section 4 : Détails & Achat ───────────────────────────────────────────── */

/* Deux colonnes sans gap — chacune porte sa propre couleur de fond */
.product-purchase {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-purchase__specs {
  background-color: var(--ivory);
  padding: 5rem 4rem;
}

.product-purchase__cart {
  background-color: var(--cream);
  padding: 5rem 4rem;
}

/* ── Tableau de specs ── */

.product-specs {
  margin-bottom: 3rem;
}

.product-specs__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sand);
}

.product-specs__row:first-child {
  border-top: 1px solid var(--sand);
}

.product-specs__key {
  font-family: var(--font-dm-sans);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--warm-grey);
  flex-shrink: 0;
}

.product-specs__value {
  font-family: var(--font-cormorant);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  text-align: right;
}

/* Mention édition limitée — filet doré au-dessus */
.product-specs__edition {
  font-family: var(--font-dm-sans);
  font-style: normal;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  border-top: 1px solid var(--gold);
  padding-top: 1.5rem;
  line-height: 1;
}

/* ── Encart taille finale ──────────────────────────────────────────────────── */

.product-taille-finale {
  display: none; /* JS met display:flex quand un format est sélectionné */
  flex-direction: column;
  gap: 0.4rem;
  background-color: var(--cream);
  border-left: 2px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
}

.product-taille-finale__format {
  display: block;
  font-family: var(--font-dm-sans);
  font-weight: 500;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--warm-grey);
  line-height: 1.4;
}

.product-taille-finale__taille {
  display: block;
  font-family: var(--font-dm-sans);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--charcoal);
  line-height: 1.4;
}

.product-taille-finale__marges {
  display: block;
  font-family: var(--font-dm-sans);
  font-weight: 500;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--warm-grey);
  line-height: 1.4;
}


/* ── Prix WooCommerce ── */

.product-purchase__price {
  margin-bottom: 2.5rem;
}

/* Le span WC qui contient le prix */
.product-purchase__price .woocommerce-Price-amount {
  font-family: var(--font-cormorant);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  letter-spacing: 0.03em;
}

/* Surcharges WooCommerce (bouton, variantes, prix) → azur-woocommerce.css */


/* Lien vers la page de série — tableau specs + label section */
.serie-link {
  color: var(--gold);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.serie-link:hover {
  opacity: 0.7;
}


/* ── Quantité avec boutons − / + ───────────────────────────────────────────── */

.product-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1rem 0;
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: 1px solid var(--sand);
  color: var(--gold);
  font-family: var(--font-cormorant);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition-base), color var(--transition-base);
  flex-shrink: 0;
}

.qty-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.qty-btn.qty-minus {
  border-right: none;
}

.qty-btn.qty-plus {
  border-left: none;
}

/* Le champ numérique entre les boutons */
.product-qty-wrap .qty {
  width: 4rem;
  height: 2.5rem;
  text-align: center;
  border: 1px solid var(--sand);
  border-radius: 0;
  background: var(--ivory);
  font-family: var(--font-cormorant);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--charcoal);
  -moz-appearance: textfield;
}

.product-qty-wrap .qty::-webkit-outer-spin-button,
.product-qty-wrap .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* ── Section 5b : De la même série ─────────────────────────────────────────── */

.product-series {
  background-color: var(--cream);
  padding: 6rem 0;
}


/* ── Section 6 : Produits suggérés ─────────────────────────────────────────── */

.product-suggested {
  background-color: var(--ivory);
  padding: 6rem 0;
}


/* ── Section 5 : Citation ──────────────────────────────────────────────────── */

.product-citation {
  background-color: var(--deep);
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Filets dorés — même élément réutilisé en haut et en bas */
.product-citation__rule {
  display: block;
  width: 60px;
  height: 1px;
  background-color: var(--gold);
  flex-shrink: 0;
}

/* Texte de citation — surcharge les styles blockquote d'azur-base.css */
.product-citation__text {
  font-family: var(--font-cormorant);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.375rem);
  color: var(--white);
  text-align: center;
  line-height: 1.6;
  max-width: 700px;
  letter-spacing: 0.02em;
}


/* ==========================================================================
   RESPONSIVE — Page produit
   ========================================================================== */

/* ── Tablette ≤ 1024px ── */

@media (max-width: 1024px) {

  /* Section détails — déjà 1fr 1fr, reste correct */
  .product-editorial__inner {
    grid-template-columns: 1fr 1px minmax(260px, 38%);
  }
}

/* ── Mobile ≤ 768px ── */

@media (max-width: 768px) {

  /* Hero — contenu plus accessible */
  .product-hero__content {
    padding: 0 1.5rem 3rem;
    max-width: 100%;
  }

  /* Éditorial — 1 colonne, filet masqué */
  .product-editorial {
    padding: 4rem 0;
  }

  .product-editorial__inner {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }

  .product-editorial__divider {
    display: none;
  }

  /* Espace entre texte et image quand empilés en colonne */
  .product-editorial__image {
    margin-top: 2.5rem;
  }

  /* Liaisons photo / illustration */
  .product-linked {
    padding: 3.5rem 0;
  }

  .product-linked__inner {
    padding: 0 1.5rem;
    gap: 1.25rem;
  }

  /* Panoramique — hauteur réduite mais impact conservé */
  .product-panoramic {
    height: 50vh;
    min-height: 300px;
  }

  /* Détails & Achat — 1 colonne */
  .product-purchase {
    grid-template-columns: 1fr;
  }

  .product-purchase__specs,
  .product-purchase__cart {
    padding: 3rem 1.5rem;
  }

  /* De la même série */
  .product-series {
    padding: 4rem 0;
  }

  .product-series .section__inner {
    padding: 0 1.5rem;
  }

  /* Suggérés */
  .product-suggested {
    padding: 4rem 0;
  }

  .product-suggested .section__inner {
    padding: 0 1.5rem;
  }

  .product-suggested .products-grid--4 {
    column-count: 2;
  }
}
