/* ════════════════════════════════
   MINAS — SITE SOBRE & ÉLÉGANT
   ════════════════════════════════ */

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

:root {
  --white:      #ffffff;
  --off-white:  #f8f7f5;
  --stone:      #e8e5e0;
  --ink:        #1a1916;
  --ink-light:  #5c5852;
  --ink-faint:  #a8a49e;
  --blue:       #2563eb;
  --blue-hover: #1d4ed8;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Century Gothic', 'League Spartan', sans-serif;
  --header-h:   64px;
  --radius-btn: 33px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ════════════ HEADER ════════════ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--stone);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

#logo {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  user-select: none;
}

/* ════════════ BUY WIDGET ════════════ */
.buy-widget {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--blue);
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 24px;
  cursor: pointer;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background 0.2s ease;

  /* Hidden by default — slides in on scroll */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.buy-widget.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.buy-widget:hover {
  background: var(--blue-hover);
}

/* ════════════ MAIN ════════════ */
main {
  padding-top: var(--header-h);
}

/* ════════════ HERO / POSTER ════════════ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 64px;
}

.poster-wrap {
  width: 100%;
  max-width: 55ch;
  font-family: var(--font-sans);
  font-size: clamp(17px, 2.2vw, 19px);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.poster-wrap.in-view {
  opacity: 1;
  transform: translateY(0);
}

.poster-img {
  width: 100%;
  display: block;
  border: none;
  /* subtle paper shadow */
  box-shadow:
    0 4px 24px rgba(0,0,0,0.07),
    0 1px 4px rgba(0,0,0,0.04);
}

/* ════════════ QUOTE ════════════ */
.quote {
  margin-top: 56px;
  width: 100%;
  max-width: 55ch;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 26px);
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s ease 0.25s, transform 1.1s ease 0.25s;

  /* faint decorative lines */
  position: relative;
  padding: 20px 0;
}

.quote::before,
.quote::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--ink-faint);
  margin: 0 auto;
}

.quote::before { margin-bottom: 20px; }
.quote::after  { margin-top: 20px; }

.quote.in-view {
  opacity: 1;
  transform: translateY(0);
}

.quote-line {
  display: block;
}

.quote-line--indent {
  /* subtle indent pour briser le rythme */
  padding-left: 12px;
}

/* ════════════ EXTRAIT ════════════ */
.excerpt {
  background: var(--off-white);
  border-top: 1px solid var(--stone);
  padding: 150px 36px;
}

.excerpt-inner {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 120px 90px;
  border-radius: 4px;
  box-shadow: 
    0 10px 40px rgba(0,0,0,0.04),
    0 2px 10px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
}

.chapter-num {
  font-family: var(--font-sans);
  font-size: 72px;
  font-weight: 300;
  color: var(--stone);
  line-height: 1;
  margin-bottom: -8px;
  user-select: none;
}

.chapter-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: 0.22em;
  color: var(--ink);
  margin-bottom: 48px;
}

.chapter-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(16.15px, 2.09vw, 18.05px);
  line-height: 1.48;
  color: var(--ink);
  max-width: 55ch;
  margin: 0 auto;
  text-align: justify;
}

.chapter-body p {
  margin-bottom: 2.4em;
}

.chapter-body sup {
  font-size: 0.65em;
  vertical-align: super;
}

.excerpt-aside {
  font-style: italic;
  color: var(--ink-light);
  text-align: center;
  padding: 8px 0;
  border-left: 2px solid var(--stone);
  padding-left: 80px;
  margin-left: 0 !important;
}

/* Police Century Gothic pour tout le contenu des chapitres (avec Questrial en fallback) */
.excerpt-inner,
.excerpt-inner p,
.excerpt-inner h2,
.excerpt-inner blockquote,
.excerpt-inner li,
.excerpt-inner cite,
.excerpt-inner span,
.excerpt-inner em,
.excerpt-inner strong,
.chapter-num,
.chapter-title,
.chapter-body,
.chapter-end {
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, Questrial, sans-serif;
}

.inline-quote {
  border: none;
  background: var(--off-white);
  border-left: 3px solid var(--stone);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.7;
}

.inline-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  font-family: var(--font-sans);
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.menu-block {
  border: 1px solid var(--stone);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
  background: var(--off-white);
}

.menu-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px !important;
}

.menu-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.menu-block li {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-light);
  padding-left: 16px;
  position: relative;
}

.menu-block li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

.footnote {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-faint);
  font-style: normal;
}

.chapter-end {
  margin-top: 40px !important;
  text-align: center;
  font-size: 20px !important;
  color: var(--ink-light);
  letter-spacing: 0.04em;
}

/* Remerciements */
.remerciements {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--stone);
}

.rem-title {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 24px !important;
}

.remerciements p {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 1.2em;
}

.contact {
  margin-top: 24px !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  color: var(--ink-faint) !important;
}

.contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
  transition: border-color 0.2s;
}

.contact a:hover {
  border-color: var(--ink);
}

/* ════════════ SHOP ════════════ */
.shop {
  padding: 80px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--off-white);
  border-top: 1px solid var(--stone);
}

.shop-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 40px;
}

.shop-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 760px;
}

.card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 16px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;

  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    box-shadow 0.3s ease;
}

.card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.card--featured {
  transition-delay: 0.15s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.card.in-view:hover {
  transform: translateY(-3px);
}

.card-icon {
  color: var(--ink-light);
  margin-bottom: 4px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}

.card-sub {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.card-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 28px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.card-btn:hover {
  background: var(--ink);
  color: var(--white);
}

.card-btn--dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.card-btn--dark:hover {
  background: #333;
  border-color: #333;
}

/* ════════════ FOOTER ════════════ */
footer {
  text-align: center;
  padding: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border-top: 1px solid var(--stone);
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 540px) {
  #header {
    padding: 0 20px;
  }

  .hero {
    padding: 60px 20px 48px;
  }

  .shop {
    padding: 60px 16px 80px;
  }

  .card {
    padding: 32px 24px;
    min-width: 100%;
  }

  .excerpt {
    padding: 60px 15px;
  }

  .excerpt-inner {
    padding: 60px 30px;
  }
}
/* ════════════ NEW HOME STYLES ════════════ */
.plateau-header {
  justify-content: space-between;
}

.header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-light);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
}

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

.cart-icon {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.cart-icon:hover {
  opacity: 0.7;
}

/* ════════════ APPLE STORE STYLE ════════════ */

.apple-section {
  padding: 20px 0;
  max-width: 100vw;
  overflow: hidden;
}

.section-title {
  padding: 0 32px;
  margin-bottom: 32px;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}

.section-title span {
  color: var(--ink-faint);
}

/* Catégories (Petits widgets) - RETOUR À L'ORIGINE */
.category-scroll {
  display: flex;
  gap: 60px;
  padding: 20px 32px 30px; 
  justify-content: flex-start !important; 
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar { display: none; }

/* Center only when content fits (Large Desktop) */
@media (min-width: 1200px) {
  .category-scroll {
    justify-content: center !important;
  }
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrage rétabli */
  gap: 20px;
  min-width: 367px;
  text-decoration: none;
  scroll-snap-align: start;
}

.cat-icon-wrap {
  width: 367px;
  height: 506px;
  display: flex;
  align-items: center;
  justify-content: center; /* Centrage rétabli */
  border-radius: 0;
  overflow: hidden;
  background: var(--stone);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}




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

.cat-name {
  display: block;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-sans);
  text-align: center;
}

/* Carrousel de Grandes Cartes (Hero Cards) - PHOTOS UNIQUEMENT */
.cards-scroll {
  display: flex;
  gap: 24px;
  padding: 10px 32px 60px; /* Aligné sur le livre */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 100px; /* Aide à la butée */
  -webkit-overflow-scrolling: touch;
}

.cards-scroll::after {
  content: '';
  flex: 0 0 100px; /* Crée la butée invisible à droite */
}

/* .category-scroll::after removed to fix centering */

.cards-scroll::-webkit-scrollbar { display: none; }

.apple-card {
  flex: 0 0 450px;
  height: 550px;
  background: var(--stone);
  border-radius: 28px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.apple-card:hover {
  transform: scale(1.01);
}

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

@media (max-width: 900px) {
  .category-scroll, .cards-scroll, .section-title {
    padding-left: 32px;
    padding-right: 32px;
  }
  .category-scroll {
    gap: 24px;
    padding-left: 32px !important;
    padding-right: 32px !important;
    justify-content: flex-start !important;
  }
  .cat-item {
    min-width: 299px;
  }
  .apple-card {
    flex: 0 0 320px;
    height: 420px;
  }
  .cat-icon-wrap {
    width: 299px;
    height: 414px;
  }
  /* Masquer la nav header sur mobile */
  .header-nav {
    display: none !important;
  }

  /* Réduction de 33% de la taille du texte */
  .cat-name {
    font-size: 10px;
  }
}

.gray-btn {
  display: inline-block;
  background: #e8e8ed;
  color: #1d1d1f;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 22px;
  transition: background 0.2s;
}

.gray-btn:hover {
  background: #d2d2d7;
}

/* Grille Galerie (Style Instagram) */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px; 
  max-width: 935px;
  margin: 0 auto;
  padding: 20px 0;
}

.insta-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--stone);
}

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

@media (max-width: 900px) {
  .gray-btn {
    margin-left: 0; /* Aligné avec le padding mobile */
  }
}
