:root {
  --bg: #F5EFE2;
  --brand: #23484A;
  --cta: #B24A3A;
  --text: #17201F;
  --text-muted: #5E6B68;
  --border: #D8D2C4;
  --surface: #EEE7D8;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

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

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

svg {
  max-width: 100%;
}

p {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--text-muted);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.65;
  margin: 0 0 16px;
}

.hero {
  position: relative;
  background-color: #23484A;
  background-image: url('/images/hero-lire-etiquette-cosmetique-mentions-alerter.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 96px 32px;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.65;
  color: #F5EFE2;
  margin: 0 0 24px;
}

.hero-sub {
  color: #F5EFE2;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-number {
  color: #F5EFE2;
  margin: 0;
}

.hero-legend {
  color: #F5EFE2;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.65;
  margin: 0 0 32px;
}

.btn-cta {
  display: inline-block;
  background: var(--cta);
  color: #F5EFE2;
  padding: 16px 24px;
  border: 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-cta:hover {
  background: #96382b;
  color: #F5EFE2;
}

.btn-cta:focus {
  outline: 2px solid #F5EFE2;
  outline-offset: 2px;
}

.data-number {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(72px, 12vw, 160px);
  line-height: 1.65;
  color: var(--brand);
  display: block;
  margin: 0;
}

.article-body {
  padding: 96px 32px;
  max-width: 100%;
}

.article-body > p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.article-intro {
  font-size: 20px;
  color: var(--text);
}

.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 4.2em;
  line-height: 1.65;
  color: var(--brand);
  float: left;
  padding-right: 12px;
  padding-top: 10px;
}

.article-section {
  max-width: 900px;
  margin: 48px auto;
}

.article-section > p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.65;
  color: var(--brand);
  max-width: 720px;
  margin: 0 auto 24px;
}

.dashboard-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 48px auto;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dash-item {
  min-width: 0;
}

.data-number-small {
  font-size: clamp(48px, 6vw, 80px);
  color: var(--brand);
  margin: 0 0 8px;
}

.dash-label {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.mentions-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 48px 0;
}

.mention {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  min-width: 0;
}

.mention:last-child {
  border-bottom: 1px solid var(--border);
}

.mention-num {
  font-size: clamp(40px, 5vw, 64px);
  margin: 0;
  color: var(--brand);
}

.mention-content {
  min-width: 0;
  overflow-wrap: break-word;
}

.mention-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.65;
  color: var(--brand);
  margin: 0 0 16px;
}

.mention-content p {
  margin: 0 0 16px;
  font-size: 18px;
}

.mention-content p:last-child {
  margin-bottom: 0;
}

.deco {
  display: block;
  margin: 32px auto;
}

.svg-asterisk {
  margin: 32px auto;
}

.svg-star {
  margin: 0;
}

.svg-halfcircle {
  display: block;
  margin: 48px auto 0;
}

.deco-row {
  display: flex;
  justify-content: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.deco-row + .mention {
  border-top: 0;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0;
  border: 1px solid var(--border);
  max-width: 100%;
}

.recap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--bg);
}

.recap-table th,
.recap-table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.65;
}

.recap-table th {
  background: var(--surface);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.recap-table td {
  color: var(--text);
}

.recap-table td:first-child {
  color: var(--brand);
  font-weight: 700;
}

.recap-table tr:last-child td {
  border-bottom: 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.checklist li {
  position: relative;
  padding: 16px 0 16px 40px;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--brand);
  background: transparent;
}

.faq-list {
  margin: 32px 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.65;
  color: var(--brand);
  margin: 0 0 12px;
}

.faq-item p {
  margin: 0;
  font-size: 18px;
}

.closing p {
  font-size: 18px;
  color: var(--text);
}

@media (max-width: 768px) {
  .hero {
    padding: 64px 24px;
    min-height: 500px;
  }

  .article-body {
    padding: 64px 24px;
  }

  .mention {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .mention-num {
    font-size: 40px;
  }

  .dashboard-mini {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-body > p:first-of-type::first-letter {
    font-size: 3.2em;
  }

  .deco-row {
    padding: 24px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .recap-table th,
  .recap-table td {
    padding: 12px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  p {
    font-size: 16px;
  }

  .hero {
    padding: 48px 16px;
    min-height: 440px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-number {
    font-size: 72px;
  }

  .section-title {
    font-size: 26px;
  }

  .mention-title {
    font-size: 22px;
  }

  .mention-num {
    font-size: 34px;
  }

  .faq-q {
    font-size: 19px;
  }

  .article-body {
    padding: 48px 16px;
  }

  .mention-content p,
  .checklist li,
  .faq-item p,
  .closing p {
    font-size: 16px;
  }

  .btn-cta {
    display: block;
    width: 100%;
    text-align: center;
  }

  .recap-table th,
  .recap-table td {
    padding: 10px;
    font-size: 14px;
  }
}

/* ===== TYPOGRAPHY SPACING FIX (APS_ARTICLE_TYPO_REQUIRED_v2) ===== */
/* Defensive guard against universal * { margin: 0 } reset in global.css. */
/* body-scoped via :where() so specificity stays at 0,0,0,1 — beats * but
   loses to any component rule like .tip-box p / .faq-item p. */
body :where(p)              { margin-bottom: 1.1rem; }
body :where(h2)             { margin-top: 2.5rem; margin-bottom: 1rem; }
body :where(h3)             { margin-top: 1.75rem; margin-bottom: 0.75rem; }
body :where(h4)             { margin-top: 1.25rem; margin-bottom: 0.5rem; }
body :where(ul, ol)         { margin-bottom: 1.1rem; padding-left: 1.5rem; }
body :where(li)             { margin-bottom: 0.4rem; }
body :where(blockquote)     { margin: 1.5rem 0; }
