/* ============================================================
   EGB Photographie — Page produit /tirages/<slug>/
   ============================================================ */

/* ---- Layout page ---- */
.egb-product-page {
  background: #fff;
  padding-bottom: 100px;
}
.egb-product-wrap {
  padding-top: 32px;
}

/* ---- Lien retour contextuel ---- */
.egb-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem; font-weight: 500; letter-spacing: .3px;
  color: #1a1a1a;
  text-decoration: none;
  padding: 6px 13px;
  margin-bottom: 12px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
  transition: color .2s, background-color .2s, border-color .2s;
}
.egb-back-link::before {
  content: "\2190";
  font-size: .9rem;
  line-height: 1;
  transition: transform .2s;
}
.egb-back-link:hover,
.egb-back-link:focus-visible {
  color: #fff;
  background: #111;
  border-color: #111;
}
.egb-back-link:hover::before { transform: translateX(-3px); }
.egb-back-link:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* ---- Breadcrumb (utilise .egb-breadcrumb défini dans gallery.css) ---- */
.egb-breadcrumb { margin-bottom: 36px; }

/* ============================================================
   COLONNES PRODUIT
   ============================================================ */
.egb-product-cols {
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "gallery     aside"
    "description aside";
  column-gap: 60px;
  align-items: start;
}
.egb-gallery             { grid-area: gallery; }
.egb-product-aside       { grid-area: aside; }
.egb-product-description { grid-area: description; }

@media (max-width: 900px) {
  .egb-product-cols {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    row-gap: 32px;
  }
  /* L'aside disparaît de la mise en page : header et body deviennent
     des enfants directs réordonnables avec la galerie et la description. */
  .egb-product-aside { display: contents; }

  .egb-product-header      { order: 1; }
  .egb-gallery             { order: 2; }
  .egb-product-body        { order: 3; }
  .egb-product-description { order: 4; }
}

/* ---- Galerie gauche ---- */
.egb-gallery {}

.egb-gallery-main {
  background: #F0EEED;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
  margin-bottom: 12px;
}
.egb-gallery-main-frame {
  border: 8px solid #303030;
  background: #fff;
  padding: 16px;
  box-shadow: 2px 4px 16px rgba(0,0,0,.22);
}
.egb-gallery-main-frame img {
  width: 100%; height: auto; display: block;
}

/* Zoom hover */
.egb-zoom-area {
  overflow: hidden;
  cursor: crosshair;
  line-height: 0;
}
.egb-zoom-area img {
  width: 100%; height: auto; display: block;
}

.egb-gallery-thumbs {
  display: flex; gap: 10px;
}
.egb-gallery-thumb {
  width: 80px; height: 60px;
  background: #F0EEED;
  border: 2px solid transparent;
  padding: 4px;
  cursor: pointer;
  transition: border-color .2s;
  flex-shrink: 0;
}
.egb-gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.egb-gallery-thumb:hover,
.egb-gallery-thumb.active { border-color: #303030; }

.egb-product-location {
  font-size: .75rem; letter-spacing: 2px; text-transform: uppercase;
  color: #444; margin: 0 0 10px;
}

.egb-product-title {
  font-size: 1.8rem; font-weight: 300; letter-spacing: 1px;
  color: #111; margin: 0 0 8px; line-height: 1.25;
}
.egb-product-subtitle {
  font-size: 1.1rem; font-weight: 300; letter-spacing: .5px;
  color: #666; margin: 0 0 20px; line-height: 1.4;
}

/* Prix */
.egb-product-price {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ebebeb;
}
.egb-product-price-main {
  font-size: 1.9rem; font-weight: 700; color: #111; display: inline;
}
.egb-product-price-range {
  font-size: .9rem; color: #888; margin-left: 8px; font-weight: 300;
}

/* Formats radio */
.egb-formats {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px;
}
.egb-format-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.egb-format-option:hover { border-color: #999; }
.egb-format-option input[type="radio"] { display: none; }
.egb-format-option.selected {
  border-color: #111; background: #f8f8f8;
}
.egb-format-name { font-size: .9rem; color: #222; font-weight: 500; }
.egb-format-price { font-size: .9rem; color: #444; font-weight: 400; }

/* Édition limitée */
.egb-edition-block {
  border: none;
  border-top: 1px solid #e8e8e8;
  padding: 14px 0 18px;
  margin-bottom: 24px;
  background: none;
}
.egb-edition-top {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 10px;
}
.egb-edition-diamond {
  font-size: .55rem; color: #888; flex-shrink: 0;
  position: relative; top: -1px;
}
.egb-edition-label {
  font-size: .6rem; letter-spacing: 3px; text-transform: uppercase;
  color: #333; font-weight: 400; flex: 1;
}
.egb-edition-count {
  font-size: .85rem; font-weight: 500; color: #111; letter-spacing: .5px;
  white-space: nowrap;
}
.egb-edition-count em {
  font-style: normal; font-size: .75rem; color: #999; font-weight: 400;
  margin-left: 3px;
}
.egb-edition-bar {
  height: 1px; background: #e0e0e0; width: 100%;
}
.egb-edition-bar-fill {
  height: 100%; background: #555; transition: width .4s;
}

/* Quantité */
.egb-qty-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.egb-qty-label {
  font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: #888;
  min-width: 70px;
}
.egb-qty-ctrl {
  display: flex; align-items: stretch;
  border: 1px solid #ccc;
  overflow: hidden;
  width: fit-content;
}
.egb-qty-btn {
  width: 44px; height: 44px;
  border: none; background: #fff; border-radius: 0;
  font-size: 1rem; cursor: pointer; color: #444;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-sizing: border-box;
}
.egb-qty-btn:hover { background: #f5f5f5; }
.egb-qty-input {
  width: 44px; height: 44px; box-sizing: border-box;
  border: none;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-radius: 0;
  text-align: center; font-size: .95rem; outline: none;
  background: #fff; color: #222; padding: 0;
  -moz-appearance: textfield; -webkit-appearance: none; appearance: none;
}
.egb-qty-input::-webkit-inner-spin-button,
.egb-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.egb-qty-input::-webkit-inner-spin-button,
.egb-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* CTA */
.egb-add-to-cart {
  width: 100%;
  padding: 16px;
  background: #111;
  color: #fff;
  border: none;
  font-size: .8rem; letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  margin-bottom: 20px;
}
.egb-add-to-cart:hover { background: #333; color: #fff; }

/* Rassurance sous CTA */
.egb-product-reassurance {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 16px; border-top: 1px solid #ebebeb;
}
.egb-product-reassurance span {
  font-size: .75rem; color: #444; letter-spacing: .3px;
}
.egb-product-reassurance span::before {
  content: '✓ '; color: #777;
}

/* ============================================================
   SECTIONS BAS DE PAGE
   ============================================================ */
.egb-product-sections {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  border-top: 1px solid #ebebeb;
}

.egb-section {
  padding: 40px 0;
  border-top: none;
  max-width: none;
}

.egb-section + .egb-section {
  border-left: 1px solid #ebebeb;
  padding-left: 60px;
}

@media (max-width: 900px) {
  .egb-product-sections {
    grid-template-columns: 1fr;
  }
  .egb-section + .egb-section {
    border-left: none;
    border-top: 1px solid #ebebeb;
    padding-left: 0;
  }
}

.egb-section-title {
  font-size: 1.1rem; font-weight: bold; letter-spacing: 0;
  text-transform: none; color: #333; margin: 0 0 24px;
}

/* ---- Description : narration du photographe (style « citation ») ---- */
.egb-product-description {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #ebebeb;
}
.egb-product-description .egb-section-title { margin-bottom: 20px; }

/* Corps narratif : italique aéré, comme une parole rapportée */
.egb-description-body {
  position: relative;
  padding-left: 34px;
}
/* Grand guillemet décoratif en ornement (marge gauche) */
.egb-description-body::before {
  content: "\201C";
  position: absolute;
  left: -4px;
  top: -6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.6rem;
  line-height: 1;
  color: #e0e0e0;
  font-style: normal;
  pointer-events: none;
}
.egb-description-body p {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.95;
  font-weight: 300;
  color: #4a4a4a;
  margin: 0 0 14px;
}
.egb-description-body p:last-child { margin-bottom: 0; }

/* Signature de l'auteur sous la narration */
.egb-description-signature {
  margin: 18px 0 0;
  padding-left: 34px;
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  font-style: normal;
  font-weight: 400;
}
.egb-description-signature::before {
  content: "\2014\00A0"; /* tiret cadratin + espace */
  color: #bbb;
}

/* ---- Détails du tirage ---- */
.egb-details-table {
  width: 100%; border-collapse: collapse;
}
.egb-details-table tr { border-bottom: 1px solid #f0f0f0; }
.egb-details-table tr:last-child { border-bottom: none; }
.egb-details-table th {
  width: 140px; padding: 11px 0;
  font-size: .8rem; font-weight: 600; color: #555;
  text-align: left; vertical-align: top;
}
.egb-details-table td {
  padding: 11px 0 11px 16px;
  font-size: .85rem; color: #333; font-weight: 300;
}

/* Livraison */
.egb-section-livraison { color: #444; font-size: .9rem; line-height: 1.8; font-weight: 300; list-style: disc; padding-left: 1.4em; margin: 0; }
.egb-section-livraison li { margin-bottom: 6px; }
.egb-section-livraison strong { color: #222; font-weight: 600; }

/* ---- Photos similaires ---- */
.egb-similar-section { padding: 40px 0; border-top: 1px solid #ebebeb; }
.egb-similar-title {
  font-size: .72rem; letter-spacing: 3px; text-transform: uppercase;
  color: #555; margin: 0 0 28px;
}
.egb-similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .egb-similar-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Maillage unifié (groupes A / B / C) ---- */
.egb-maillage-section {
  padding: 48px 0 0;
  border-top: 1px solid #ebebeb;
  margin-top: 48px;
}
.egb-maillage-section > .egb-section-title {
  text-align: center;
}
.egb-maillage-group {
  margin-bottom: 40px;
}
.egb-maillage-links {
  display: flex; flex-wrap: wrap; gap: 10px 0;
}
.egb-maillage-links a {
  color: #555; font-size: .85rem; text-decoration: none;
  margin-right: 24px; transition: color .2s;
  border-bottom: 1px solid #ddd; padding-bottom: 1px;
}
.egb-maillage-links a:hover { color: #111; border-bottom-color: #111; }
