/* ==========================================================================
   ÉDITIONS OCTOGONALES — CLONE RIGOUREUX DU DESIGN SYSTEM UNIT EDITIONS
   Inspiré directement de uniteditions.com
   - Typographie suisse monochrome (Inter / Helvetica Grotesk)
   - Header aéré sans bordure inférieure (logo monolithique flottant)
   - Hero slider 100% pleine largeur photographique
   - Ligne de césure noire franche (2px) sous le carrousel
   - Grille Shop carrée (3 col sur desktop, 2 col sur tablette & mobile)
   - Photographies studio flat-lay sur fond neutre avec ombres de contact
   - Hover signature Unit Editions : opacité 0.3 & apparition du titre en bas à gauche
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #ffffff;
  --bg-tile: #f4f4f4;
  --bg-tile-hover: #ebebeb;
  --text-color: #000000;
  --text-muted: #666666;
  --text-subtle: #999999;
  --border-dark: #000000;
  --border-light: #e5e5e5;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-content-width: 1440px;
  --grid-gap: 14px;
  --header-height: 96px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.4;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ligne franche de séparation signature Unit Editions sous le Hero */
.site-rule {
  width: 100%;
  height: 2px;
  background-color: var(--border-dark);
}

/* ==========================================================================
   EN-TÊTE FIXE (STYLE UNIT EDITIONS : AÉRÉ, FLOTTANT SANS BORDURE INFÉRIEURE)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 0 32px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 16px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1002;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.brand-link:hover {
  transform: scale(1.06);
}

.brand-logo-mark {
  width: 38px;
  height: 38px;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
}

.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  position: relative;
  transition: opacity 0.2s ease;
}

.header-action-btn:hover {
  opacity: 0.6;
}

.header-cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--text-color);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   TIROIR DE NAVIGATION (DRAWER PLEIN ÉCRAN)
   ========================================================================== */
.nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  z-index: 999;
  overflow-y: auto;
  padding: 60px 32px;
}

.nav-drawer.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-container {
  max-width: 600px;
  margin: 0 auto;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.drawer-links li a {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  display: inline-block;
  transition: padding-left 0.2s ease;
}

.drawer-links li a:hover {
  padding-left: 12px;
}

.drawer-meta {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   HERO CARROUSEL 100% PLEINE LARGEUR PHOTOGRAPHIQUE (UNIT EDITIONS STYLE)
   ========================================================================== */
.hero-slider-section {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #f7f7f7;
  height: 62vh;
  min-height: 520px;
  max-height: 700px;
}

.hero-slider-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide {
  width: 33.333333%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-pagination {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pagination-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #ffffff;
}

/* ==========================================================================
   SECTION SHOP (UNIT EDITIONS GRID & HOVER SIGNATURE)
   ========================================================================== */
.shop-section {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 24px 32px 64px 32px;
}

.shop-header {
  padding-bottom: 20px;
}

.shop-title {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-color);
}

.collection-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.collection-product {
  position: relative;
  background-color: var(--bg-tile);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.collection-product:hover {
  background-color: var(--bg-tile-hover);
}

.product-cell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s cubic-bezier(0.2, 0, 0, 1);
}

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

/* Effet Hover signature Unit Editions :
   L'image reste visible en arrière-plan à 0.3 d'opacité,
   le titre seul émerge en bas à gauche en typographie suisse pure */
.collection-product:hover .product-cell {
  opacity: 0.3;
}

.product-info-overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 6;
}

.collection-product:hover .product-info-overlay {
  opacity: 1;
  pointer-events: auto;
}

.product-meta-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #000000;
  margin-bottom: 6px;
}

.product-meta-price {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION FEATURES (ÉDITORIAUX & FOCUS LIVRE)
   ========================================================================== */
.features-section {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 48px 32px 70px 32px;
}

.features-header {
  margin-bottom: 32px;
}

.section-title-large {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  display: flex;
  flex-direction: column;
}

.feature-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #ededed;
  margin-bottom: 20px;
}

.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.feature-card:hover .feature-img-wrap img {
  opacity: 0.85;
  transform: scale(1.02);
}

.feature-content {
  border-top: 1px solid #000000;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feature-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-color);
  margin-bottom: 8px;
}

.feature-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 20px;
  flex: 1;
}

.feature-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.feature-link:hover {
  opacity: 0.6;
}

/* ==========================================================================
   SECTION MANIFESTE
   ========================================================================== */
.statement-section {
  width: 100%;
  background-color: #f7f7f7;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 80px 32px;
}

.statement-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.statement-quote {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.statement-author {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   MODALE DÉTAILS / QUICK VIEW MULTI-VUES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #ffffff;
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  color: #000000;
  padding: 4px 8px;
}

.modal-left {
  background-color: #f7f7f7;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.modal-main-img-wrap {
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-cover-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-thumbnails-bar {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.modal-thumb.active,
.modal-thumb:hover {
  opacity: 1;
  border-color: #000000;
}

.modal-right {
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-price-tag {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.4;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 13px;
}

.modal-specs-table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
}

.modal-specs-table td:first-child {
  font-weight: 600;
  color: #333333;
  width: 35%;
}

.modal-specs-table td:last-child {
  color: var(--text-muted);
}

.modal-tabs-header {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.modal-tab-btn {
  padding-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.modal-tab-btn.active {
  color: #000000;
  border-bottom-color: #000000;
}

.modal-tab-body {
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 28px;
  flex: 1;
}

.modal-tab-body blockquote {
  border-left: 2px solid #000000;
  padding-left: 14px;
  font-style: italic;
  color: #444444;
}

.modal-buy-cta {
  display: block;
  text-align: center;
  background-color: #000000;
  color: #ffffff;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease;
}

.modal-buy-cta:hover {
  background-color: #333333;
}

/* ==========================================================================
   PIED DE PAGE (STYLE UNIT EDITIONS)
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: var(--border-dark) 2px solid;
  padding: 60px 32px 0 32px;
}

.footer-columns {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-nav-list a:hover {
  text-decoration: underline;
}

.footer-text-muted {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.newsletter-form {
  display: flex;
  max-width: 400px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-dark);
  border-right: none;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.newsletter-submit-btn {
  background-color: #000000;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.newsletter-submit-btn:hover {
  background-color: #333333;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom-inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-right {
  display: flex;
  gap: 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (GRILLE 2 COLONNES SUR MOBILE COMME UNIT EDITIONS)
   ========================================================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-container {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .modal-left {
    padding: 30px;
  }
  .modal-main-img-wrap {
    height: 300px;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --grid-gap: 8px;
  }
  .site-header {
    padding: 0 16px;
  }
  .hero-slider-section {
    height: 48vh;
    min-height: 360px;
  }
  .shop-section {
    padding: 20px 16px 48px 16px;
  }
  .shop-title {
    font-size: 36px;
  }
  /* Grille 2 colonnes sur mobile comme Unit Editions ! */
  .collection-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .product-info-overlay {
    padding: 14px;
  }
  .product-meta-title {
    font-size: 15px;
  }
  .product-meta-price {
    font-size: 13px;
  }
  .features-section {
    padding: 30px 16px 50px 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .statement-section {
    padding: 50px 20px;
  }
  .statement-quote {
    font-size: 20px;
  }
  .site-footer {
    padding: 40px 16px 0 16px;
  }
}
