/* Reprendre les variables du site principal */
:root {
  --burgundy: #7A1A1A;
  --burgundy-dark: #561212;
  --charcoal: #181818;
  --cream: #F5EDD8;
  --gold: #B8975A;
  --white-off: #FAF8F3;
}

body {
  background: var(--burgundy);
  color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  margin: 0;
}

.mg-eyebrow, .mg-eyebrow-light {
  display: block;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  margin-bottom: 24px;
}

.mg-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 32px;
  line-height: 1.05;
  text-align: center;
}

.mg-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 16px;
  text-align: center;
  line-height: 1.1;
}

.mg-subtitle, .mg-lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ========== HERO ========== */
.mg-hero {
  padding: 100px 24px 80px;
  text-align: center;
}

.mg-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.mg-hero-microcopy {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream);
  opacity: 0.55;
  text-align: center;
}

/* CTA */
.mg-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--charcoal);
  padding: 18px 40px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.mg-cta-primary:hover {
  background: var(--cream);
}

.mg-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--gold);
  padding: 18px 40px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.mg-cta-outline:hover {
  background: var(--gold);
  color: var(--charcoal);
}

/* ========== PREP SECTION ========== */
.mg-prep {
  padding: 80px 24px;
  background: var(--burgundy-dark);
}

.mg-prep-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.mg-prep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.mg-prep-col {
  padding: 32px;
  border: 1px solid rgba(184, 151, 90, 0.3);
}

.mg-prep-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--gold);
  margin: 0 0 24px;
  text-align: left;
}

.mg-prep-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mg-prep-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--cream);
  font-size: 15px;
  line-height: 1.6;
}

.mg-prep-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 10px;
  top: 4px;
}

.mg-tailors-note {
  margin-top: 48px;
  padding: 32px 40px;
  border-left: 3px solid var(--gold);
  background: rgba(184, 151, 90, 0.08);
}

.mg-note-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

.mg-tailors-note p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
  line-height: 1.7;
  margin: 0;
}

/* ========== TABS SECTION ========== */
.mg-tabs-section {
  padding: 100px 24px;
}

.mg-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.mg-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 60px 0 60px;
  border-bottom: 1px solid rgba(184, 151, 90, 0.3);
}

.mg-tab {
  background: transparent;
  border: none;
  padding: 20px;
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--cream);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.mg-tab:hover {
  color: var(--gold);
}

.mg-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  font-weight: 700;
}

.mg-tab-content {
  display: none;
}

.mg-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mg-tab-header {
  text-align: center;
  margin-bottom: 60px;
}

.mg-tab-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 12px;
}

.mg-tab-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  margin: 0;
}

/* ========== MEASUREMENT BLOCK (le coeur de la page) ========== */
.mg-measurements {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mg-measurement {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid rgba(184, 151, 90, 0.15);
}

.mg-measurement:last-child {
  border-bottom: none;
}

.mg-m-photo {
  aspect-ratio: 1;
  background: var(--charcoal);
  border: 1px solid rgba(184, 151, 90, 0.3);
  overflow: hidden;
  position: relative;
}

.mg-m-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mg-m-photo.placeholder::after {
  content: '📐  Photo coming soon';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-align: center;
  white-space: nowrap;
}

.mg-m-photo.placeholder img {
  opacity: 0;
}

.mg-m-content {
  padding-top: 8px;
}

.mg-m-number {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.mg-m-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 16px;
}

.mg-m-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mg-m-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--cream);
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.mg-m-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ========== DOWNLOAD FORM ========== */
.mg-download {
  margin-top: 80px;
  padding: 48px;
  border: 1px solid rgba(184, 151, 90, 0.4);
  text-align: center;
}

.mg-download h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--cream);
  margin: 0 0 16px;
  font-weight: 400;
}

.mg-download p {
  color: var(--cream);
  opacity: 0.85;
  font-size: 15px;
  margin: 0 0 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== FINAL CTA ========== */
.mg-final-cta {
  padding: 100px 24px;
  background: var(--burgundy-dark);
  text-align: center;
}

.mg-final-inner {
  max-width: 800px;
  margin: 0 auto;
}

.mg-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .mg-h2 { font-size: 32px; }
  .mg-prep-grid { grid-template-columns: 1fr; gap: 24px; }
  .mg-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: none;
    gap: 0;
    padding-bottom: 2px;
  }
  .mg-tabs::-webkit-scrollbar { display: none; }
  .mg-tab {
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
    min-height: 44px;
    padding: 12px 20px;
    font-size: 11px;
    letter-spacing: 0.18em;
    border-bottom: 2px solid rgba(184, 151, 90, 0.2);
  }
  .mg-measurement { grid-template-columns: 1fr; gap: 24px; }
  .mg-m-photo { max-width: 280px; margin: 0 auto; }
}


/* ═══════════════════════════════════════════════════════════
   ADDITIONS — CONVERSION + HOW IT WORKS + DARK TABS
═══════════════════════════════════════════════════════════ */

/* Scroll anchor offset */
section[id] { scroll-margin-top: 96px; }

/* ─── Hero CTAs row ─── */
.mg-hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ─── HOW IT WORKS — fond noir ─── */
.mg-how {
  background: #0F0F0F;
  padding: 80px 24px;
}
.mg-how-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.mg-how-heading {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 42px;
  color: var(--cream);
  text-align: center;
  margin-bottom: 56px;
}
.mg-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.mg-how-card {
  padding: 36px 32px;
  border: 1px solid rgba(184, 151, 90, 0.18);
}
.mg-how-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 48px;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 20px;
}
.mg-how-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 12px;
}
.mg-how-card-text {
  font-size: 15px;
  color: rgba(245, 237, 216, 0.62);
  line-height: 1.7;
  margin: 0;
}
.mg-how-cta {
  text-align: center;
}
@media (max-width: 768px) {
  .mg-how-grid { grid-template-columns: 1fr; gap: 16px; }
  .mg-how-heading { font-size: 32px; }
}

/* ─── TABS SECTION — fond noir ─── */
.mg-tabs-dark {
  background: #111;
}
.mg-tabs-dark .mg-h2,
.mg-tabs-dark .mg-eyebrow-light {
  color: var(--cream);
}
.mg-tabs-dark .mg-lead {
  color: rgba(245, 237, 216, 0.6);
}
.mg-tabs-dark .mg-tab {
  color: rgba(245, 237, 216, 0.55);
}
.mg-tabs-dark .mg-tab:hover {
  color: var(--cream);
}
.mg-tabs-dark .mg-tabs {
  border-bottom-color: rgba(184, 151, 90, 0.2);
}
.mg-tabs-dark .mg-tab-title {
  color: var(--cream);
}
.mg-tabs-dark .mg-tab-subtitle {
  color: rgba(245, 237, 216, 0.5);
}
.mg-tabs-dark .mg-m-title {
  color: var(--cream);
}
.mg-tabs-dark .mg-m-list li {
  color: rgba(245, 237, 216, 0.75);
}
.mg-tabs-dark .mg-measurement {
  border-bottom-color: rgba(184, 151, 90, 0.1);
}

/* ─── Better placeholder on dark bg ─── */
.mg-m-photo {
  background: #1C1C1C;
}
.mg-m-photo.placeholder {
  border-color: rgba(184, 151, 90, 0.2);
}
.mg-m-photo.placeholder::after {
  content: 'Illustration coming soon';
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(184, 151, 90, 0.45);
  text-align: center;
  white-space: normal;
  width: 80%;
}

/* ─── Reassurance note ─── */
.mg-reassurance {
  margin: 40px 0 8px;
  padding: 20px 32px;
  border-left: 2px solid var(--gold);
  background: rgba(184, 151, 90, 0.06);
}
.mg-reassurance p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
  margin: 0;
  opacity: 0.85;
}

/* ─── Download note ─── */
.mg-download-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--cream);
  opacity: 0.5;
  letter-spacing: 0.02em;
}

/* ─── Tabs active state on mobile (overrides .mg-tabs-dark specificity) ─── */
@media (max-width: 768px) {
  .mg-tabs-dark .mg-tab.active {
    background: var(--burgundy);
    color: var(--cream);
    border-bottom-color: var(--burgundy);
  }
}
