/* ══════════════════════════════════════════════════════════════
   BERLIOZ — Content Pages CSS
   Cohérent avec le design system de index.html
   Font: Outfit (titres) + Inter (body)
   Couleurs: --coral/#B8956A, --cream/#FFFFFF, --dark/#0D0D0D, --grey/#F2F2F7, --mid/#6B6B6B
   ══════════════════════════════════════════════════════════════ */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --coral:   #B8956A;
  --cream:   #FFFFFF;
  --dark:    #0D0D0D;
  --grey:    #F2F2F7;
  --mid:     #6B6B6B;
  --white:   #FFFFFF;
  --light-border: #E5E5EA;
  --success: #34C759;
  --warning: #FF9500;
  --danger:  #FF3B30;
}

/* ── BASE ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
}

/* ── NAV (identique index.html) ────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--coral);
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--dark); opacity: 0.7; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.btn-dl {
  background: var(--coral); color: var(--white);
  padding: 10px 22px; border-radius: 50px;
  font-weight: 700; font-size: 14px; font-family: 'Outfit', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-dl:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--cream); z-index: 998;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 28px; color: var(--dark); }

@media (max-width: 768px) {
  #nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--mid);
}
.breadcrumb a {
  color: var(--mid);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--dark); font-weight: 600; }

/* ── ARTICLE LAYOUT ────────────────────────────────────────── */
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.content-wrapper.with-sidebar {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

@media (max-width: 960px) {
  .content-wrapper.with-sidebar {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ── ARTICLE HEADER ────────────────────────────────────────── */
.article-header {
  margin-bottom: 40px;
}
.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}
.article-h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--dark);
  margin-bottom: 16px;
}
.article-subtitle {
  font-size: 20px;
  color: var(--mid);
  line-height: 1.5;
  max-width: 700px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--mid);
}
.article-meta .dot { opacity: 0.4; }

/* ── AEO BOX (featured snippet) ────────────────────────────── */
.aeo-box {
  background: var(--grey);
  border-left: 4px solid var(--coral);
  border-radius: 0 16px 16px 0;
  padding: 24px 28px;
  margin-bottom: 40px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark);
  font-weight: 500;
}
.aeo-box strong {
  color: var(--coral);
  font-weight: 700;
}

/* ── TABLE OF CONTENTS ─────────────────────────────────────── */
.toc {
  background: var(--grey);
  border-radius: 24px;
  padding: 28px 32px;
  margin-bottom: 48px;
}
.toc-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc ol {
  list-style: none;
  counter-reset: toc-counter;
}
.toc li {
  counter-increment: toc-counter;
  padding: 6px 0;
  border-bottom: 1px solid var(--light-border);
}
.toc li:last-child { border-bottom: none; }
.toc li::before {
  content: counter(toc-counter) ".";
  font-weight: 700;
  color: var(--coral);
  margin-right: 8px;
  font-size: 14px;
}
.toc a {
  font-size: 14px;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.2s;
}
.toc a:hover { color: var(--coral); }

/* ── ARTICLE CONTENT ───────────────────────────────────────── */
.article-content h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin: 48px 0 20px;
  padding-top: 16px;
}
.article-content h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--dark);
  margin: 32px 0 14px;
}
.article-content p {
  margin-bottom: 18px;
  color: var(--dark);
  line-height: 1.75;
}
.article-content ul,
.article-content ol {
  margin: 0 0 18px 24px;
  line-height: 1.75;
}
.article-content li {
  margin-bottom: 6px;
}
.article-content strong { font-weight: 600; }
.article-content em { font-style: italic; }
.article-content a {
  color: var(--coral);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(184,149,106,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article-content a:hover {
  text-decoration-color: var(--coral);
}

/* ── HERO IMAGE ────────────────────────────────────────────── */
.article-hero {
  width: 100%;
  aspect-ratio: 16/7;
  background: var(--grey);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 14px;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── CTA INLINE ────────────────────────────────────────────── */
.cta-inline {
  background: var(--grey);
  border-radius: 24px;
  padding: 28px 32px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.cta-inline-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.cta-inline-body {
  flex: 1;
}
.cta-inline-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 4px;
}
.cta-inline-desc {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 0;
}
.cta-inline .btn-cta {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cta-inline {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary,
a.btn-primary,
a.btn-primary:visited,
a.btn-primary:active {
  display: inline-block;
  background: var(--coral);
  color: #FFFFFF !important;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,149,106,0.4); }
.btn-cta,
a.btn-cta,
a.btn-cta:visited,
a.btn-cta:active {
  display: inline-block;
  background: var(--coral);
  color: #FFFFFF !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184,149,106,0.35); }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  border: 2px solid rgba(0,0,0,0.2);
  padding: 13px 26px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--dark); }

/* ── TABLES ────────────────────────────────────────────────── */
.content-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  margin: 24px 0 32px;
  font-size: 14px;
  border: 1px solid var(--light-border);
}
.content-table thead {
  background: var(--grey);
}
.content-table th {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mid);
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--light-border);
}
.content-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--light-border);
  vertical-align: top;
  line-height: 1.5;
}
.content-table tr:last-child td { border-bottom: none; }
.content-table .urgency-high {
  color: var(--danger);
  font-weight: 700;
}
.content-table .urgency-medium {
  color: var(--warning);
  font-weight: 600;
}
.content-table .urgency-low {
  color: var(--success);
  font-weight: 600;
}

/* ── INFO BOX / WARNING BOX ────────────────────────────────── */
.info-box {
  background: #F5EBDB;
  border-left: 4px solid var(--coral);
  border-radius: 0 16px 16px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
}
.warning-box {
  background: #FFF3E0;
  border-left: 4px solid var(--warning);
  border-radius: 0 16px 16px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
}
.danger-box {
  background: #FFEBEE;
  border-left: 4px solid var(--danger);
  border-radius: 0 16px 16px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
}
.info-box strong,
.warning-box strong,
.danger-box strong {
  font-weight: 700;
}

/* ── FAQ ACCORDION ─────────────────────────────────────────── */
.faq-section {
  margin: 48px 0;
}
.faq-section h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 24px;
}
.faq-item {
  border: 1px solid var(--light-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  background: var(--white);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--grey); }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--mid);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 600px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mid);
}

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-block {
  background: var(--grey);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 24px;
}
.sidebar-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 16px;
}
.sidebar-link {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid var(--light-border);
  transition: color 0.2s;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--coral); }
.sidebar-cta {
  background: linear-gradient(160deg, #F8F4ED 0%, #F5EBDB 100%);
  border: 1px solid rgba(184,149,106,0.15);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 24px;
  text-align: center;
}
.sidebar-cta-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #000;
  margin-bottom: 8px;
}
.sidebar-cta-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ── RACE CARD (fiche identité) ────────────────────────────── */
.race-card {
  background: var(--grey);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 40px;
}
.race-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 20px;
}
.race-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .race-card-grid { grid-template-columns: 1fr; }
}
.race-card-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.race-card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mid);
}
.race-card-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

/* ── PILLAR PAGE ───────────────────────────────────────────── */
.pillar-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.pillar-card {
  background: var(--grey);
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.pillar-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.pillar-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 8px;
}
.pillar-card-desc {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
  flex: 1;
}
.pillar-card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--coral);
}

/* ── MEGA FOOTER ───────────────────────────────────────────── */
.mega-footer {
  background: var(--dark);
  padding: 80px 48px 40px;
  color: var(--white);
}
.mega-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.mega-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 960px) {
  .mega-footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .mega-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.mega-footer-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .mega-footer-brand { flex-direction: column; gap: 16px; text-align: center; }
}
.footer-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--coral);
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 260px;
}
.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ── RACE BADGES / TAGS ────────────────────────────────────── */
.tag-pill {
  display: inline-block;
  background: var(--grey);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  margin: 0 6px 8px 0;
}
.tag-pill.active {
  background: var(--coral);
  color: var(--white);
}

/* ── RESPONSIVE UTILITIES ──────────────────────────────────── */
@media (max-width: 768px) {
  .mega-footer { padding: 60px 24px 32px; }
  .breadcrumb { padding-top: 80px; }
  .content-wrapper { padding: 32px 20px 60px; }
}
