/* ============================================================
   MINOUNOU.FR — Design System Global
   Typographie : Playfair Display (titres) + Lora (corps éditorial) + DM Sans (UI)
   Palette : Warm Brown / Cream / Amber / Sage / Coral
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  --cream:         #FAF7F2;
  --sand:          #F0EAE0;
  --sand-dark:     #E4DAC8;
  --warm-brown:    #8B5E3C;
  --dark-brown:    #3D2414;
  --deepest:       #1E0E06;
  --amber:         #D4830A;
  --amber-light:   #FFF3DC;
  --amber-mid:     #FAC775;
  --sage:          #5C7A5C;
  --sage-light:    #EFF5EF;
  --sage-mid:      #97B897;
  --coral:         #C94B2B;
  --coral-light:   #FEF0EC;
  --text-main:     #2C1A0E;
  --text-muted:    #7A6555;
  --text-light:    #A8957F;
  --border:        rgba(139,94,60,0.14);
  --border-mid:    rgba(139,94,60,0.25);
  --shadow-sm:     0 1px 8px rgba(61,36,20,0.06);
  --shadow:        0 4px 24px rgba(61,36,20,0.09);
  --shadow-lg:     0 12px 48px rgba(61,36,20,0.13);
  --radius-sm:     8px;
  --radius:        16px;
  --radius-lg:     24px;
  --nav-h:         64px;
  --max-w:         1200px;
  --max-w-text:    720px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  color: var(--text-main);
}
.body-serif {
  font-family: 'Lora', serif;
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 5%;
}
.container--text {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 5%;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--deepest);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 5%;
}
.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav__logo span { color: var(--amber); }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav__menu a {
  display: block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(250,247,242,0.65);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav__menu a:hover {
  color: var(--cream);
  background: rgba(255,255,255,0.07);
}
.nav__menu a.active {
  color: var(--amber);
  background: rgba(212,131,10,0.1);
}
.nav__cta {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: var(--amber);
  color: var(--dark-brown);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.nav__cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* Hamburger mobile */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--amber); color: var(--dark-brown); }
.btn--dark { background: var(--dark-brown); color: var(--cream); }
.btn--outline { background: transparent; color: var(--dark-brown); border: 1.5px solid var(--border-mid); }
.btn--outline-light { background: transparent; color: var(--cream); border: 1.5px solid rgba(250,247,242,0.25); }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--amazon {
  background: #FF9900;
  color: #111;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 100px;
}
.btn--amazon:hover { opacity: 0.88; transform: none; box-shadow: none; }

/* ── LABELS / BADGES ── */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 20px;
}
.label--amber { background: var(--amber-light); color: #8B5A00; }
.label--sage  { background: var(--sage-light); color: #3D5C3D; }
.label--coral { background: var(--coral-light); color: #8B2E15; }
.label--dark  { background: var(--dark-brown); color: var(--amber); }
.label--pop   { background: var(--amber); color: var(--dark-brown); }

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
  margin-bottom: 10px;
}

/* ── CARDS ── */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 0;
  font-size: 12.5px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--warm-brown); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── INFO / WARNING BOXES ── */
.box-info {
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.6;
}
.box-warn {
  background: var(--coral-light);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.6;
}
.box-sage {
  background: var(--sage-light);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ── TOC ── */
.toc {
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 32px 0;
}
.toc__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
}
.toc ol { padding-left: 18px; }
.toc li { margin-bottom: 5px; font-size: 14px; }
.toc a { color: var(--warm-brown); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── PRODUCT BOX (affiliation) ── */
.product-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.product-box__icon { font-size: 32px; flex-shrink: 0; margin-top: 2px; }
.product-box__body h4 { font-size: 16px; font-weight: 600; font-family: 'DM Sans', sans-serif; margin-bottom: 5px; }
.product-box__body p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.55; }
.affiliate-note { font-size: 11px; color: var(--text-light); font-style: italic; margin-top: 6px; }

/* ── SOURCES BOX ── */
.sources {
  background: var(--sage-light);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 48px;
}
.sources__title { font-weight: 600; color: var(--sage); margin-bottom: 10px; font-size: 14px; font-family: 'DM Sans', sans-serif; }
.sources ul { list-style: none; padding: 0; }
.sources li {
  font-size: 12.5px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  margin-bottom: 6px;
}
.sources li::before { content: '›'; position: absolute; left: 0; color: var(--sage); }
.sources a { color: var(--sage); }

/* ── ARTICLE CONTENT TYPOGRAPHY ── */
.article-prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 44px 0 14px;
  padding-top: 12px;
}
.article-prose h3 {
  font-size: 20px;
  color: var(--warm-brown);
  margin: 30px 0 10px;
}
.article-prose p { margin-bottom: 18px; font-size: 16px; line-height: 1.8; }
.article-prose ul, .article-prose ol { margin: 0 0 18px 22px; }
.article-prose li { margin-bottom: 8px; font-size: 15.5px; line-height: 1.7; }
.article-prose a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.article-prose strong { font-weight: 600; }
.article-prose em { font-style: italic; }

/* ── FOOTER ── */
.footer {
  background: var(--deepest);
  padding: 60px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer__logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer__logo-text span { color: var(--amber); }
.footer__desc {
  font-size: 13.5px;
  color: rgba(250,247,242,0.4);
  line-height: 1.65;
  font-family: 'Lora', serif;
  font-style: italic;
}
.footer__col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: rgba(250,247,242,0.35);
  margin-bottom: 16px;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 13.5px;
  color: rgba(250,247,242,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--cream); }
.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__legal {
  font-size: 11.5px;
  color: rgba(250,247,242,0.28);
  line-height: 1.6;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(250,247,242,0.5);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.footer__social a:hover { border-color: var(--amber); color: var(--amber); }

/* ── TOOL WIDGET ── */
.tool-widget {
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.tool-widget label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.tool-widget input[type=text],
.tool-widget input[type=number],
.tool-widget select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  color: var(--text-main);
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.tool-widget input:focus, .tool-widget select:focus { border-color: var(--amber); }
.tool-widget input[type=range] {
  width: 100%; height: 4px;
  padding: 0; border: none; margin: 0;
  accent-color: var(--amber);
  background: transparent;
  cursor: pointer;
}
.range-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.range-row input { flex: 1; margin: 0; }
.range-val {
  font-size: 14px; font-weight: 600;
  min-width: 42px; text-align: right;
  color: var(--dark-brown);
}
.tool-btn {
  width: 100%;
  padding: 12px;
  background: var(--dark-brown);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 2px;
}
.tool-btn:hover { background: var(--warm-brown); }
.result-panel {
  background: var(--dark-brown);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 14px;
  color: var(--cream);
  min-height: 56px;
  display: flex;
  align-items: center;
}
.result-panel__main {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--amber);
  display: block;
  line-height: 1.2;
}
.result-panel__sub {
  font-size: 13px;
  color: rgba(250,247,242,0.55);
  font-style: italic;
  display: block;
  margin-top: 3px;
}
.result-panel__placeholder {
  font-style: italic;
  font-size: 13.5px;
  color: rgba(250,247,242,0.4);
}

/* ── HERO ── */
.hero {
  background: var(--dark-brown);
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero__bg-text {
  position: absolute;
  right: -40px;
  bottom: -60px;
  font-size: 320px;
  line-height: 1;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}
.hero__eyebrow {
  display: inline-block;
  background: rgba(212,131,10,0.2);
  border: 1px solid rgba(212,131,10,0.35);
  color: var(--amber-mid);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5.5vw, 70px);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.08;
  max-width: 680px;
  margin-bottom: 20px;
}
.hero__title em { font-style: italic; color: var(--amber); }
.hero__lead {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-style: italic;
  color: rgba(250,247,242,0.65);
  max-width: 520px;
  margin-bottom: 38px;
  line-height: 1.65;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 48px; }
.section-header__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-header__sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 560px;
}

/* ── STAT STRIP ── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  background: var(--cream);
  padding: 28px 24px;
  text-align: center;
}
.stat-item__num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--dark-brown);
  line-height: 1;
  display: block;
}
.stat-item__label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 5px;
  display: block;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.55s ease both; }
.fade-up--d1 { animation-delay: 0.1s; }
.fade-up--d2 { animation-delay: 0.2s; }
.fade-up--d3 { animation-delay: 0.3s; }
.fade-up--d4 { animation-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--deepest);
    padding: 20px 5%;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav__menu.open a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding: 60px 0 80px; }
}
