/* ========================================================================
   PAGES.CSS — Styles des pages multi-pages du site public
   ======================================================================== */

/* ==============================
   HEADER SITE (sticky, avec scroll effect)
============================== */
.site-header {
  position: sticky; top: 0;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(250, 250, 247, 0.98);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--new-ink);
  white-space: nowrap;
}
.site-brand .dot {
  width: 10px; height: 10px;
  background: var(--new-orange);
  border-radius: 50%;
  display: inline-block;
}
.site-brand .brand-sub {
  color: var(--ink-mute);
  font-weight: 700;
  margin-left: 4px;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
  padding: 4px 0;
}
.site-nav a:hover, .site-nav a.active { color: var(--new-orange); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--new-orange);
}

.site-nav-cta { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--new-ink);
  transition: transform .2s, opacity .2s;
}
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 20px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav a {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--new-ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.active { color: var(--new-orange); }
.mobile-nav .mobile-cta {
  margin-top: 16px;
  padding: 14px 20px;
  background: var(--new-orange);
  color: white;
  text-align: center;
  border-bottom: 0;
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-nav-cta .btn-primary { display: none; }
  .burger { display: flex; }
  .mobile-nav.open { display: flex; }
}

/* ==============================
   HERO GÉNÉRIQUE (par page)
============================== */
.hero {
  position: relative;
  min-height: 60vh;
  max-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--new-ink);
  color: var(--paper);
}
.hero.hero-sm { min-height: 48vh; max-height: 520px; }
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img, .hero-bg svg {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px var(--gutter) 64px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.6);
  margin-bottom: 20px;
}
.hero-breadcrumb a { color: inherit; }
.hero-breadcrumb a:hover { color: var(--new-orange); }
.hero-breadcrumb .sep { color: var(--new-orange); }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--new-orange);
  margin-bottom: 16px;
}
.hero-kicker::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--new-orange);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 18ch;
}
.hero-title em { font-style: normal; color: var(--new-orange); }
.hero-subtitle {
  margin-top: 20px;
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 600;
  max-width: 580px;
  line-height: 1.55;
  color: rgba(250,250,247,0.85);
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==============================
   SECTIONS
============================== */
.section {
  padding: clamp(64px, 10vh, 120px) var(--gutter);
}
.section-light { background: var(--paper); }
.section-ivory { background: var(--paper-2); }
.section-dark { background: var(--new-ink); color: var(--paper); }
.section-dark .section-kicker { color: rgba(250,250,247,0.5); }
.section-dark .section-title { color: var(--paper); }
.section-dark .section-title em { color: var(--new-orange); }
.section-dark .section-sub { color: rgba(250,250,247,0.7); }

.section-head {
  max-width: var(--max);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: baseline;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-dark .section-head { border-color: rgba(255,255,255,0.1); }

.section-num {
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 900;
  color: var(--new-orange);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.section-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.section-title em { font-style: normal; color: var(--new-orange); }
.section-sub {
  margin-top: 16px;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 600;
  color: var(--ink-mute);
  max-width: 680px;
  line-height: 1.55;
}

.section-body { max-width: var(--max); margin: 0 auto; }

/* ==============================
   IMAGES (avec fallback élégant)
============================== */
.img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--new-ink);
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-wrap.ratio-16-9 { aspect-ratio: 16/9; }
.img-wrap.ratio-4-3 { aspect-ratio: 4/3; }
.img-wrap.ratio-1-1 { aspect-ratio: 1/1; }
.img-wrap.ratio-3-4 { aspect-ratio: 3/4; }
.img-wrap.ratio-21-9 { aspect-ratio: 21/9; }

/* ==============================
   FEATURE CARDS (piliers, espaces, etc.)
============================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.feature-card .img-wrap { border-bottom: 1px solid var(--line); }
.feature-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.feature-card .badge { margin-bottom: 12px; align-self: flex-start; }
.feature-card p {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mute);
  line-height: 1.55;
  flex: 1;
}
.feature-card .card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.feature-card .card-link {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--new-orange);
  transition: gap .2s;
  display: inline-flex;
  gap: 6px;
}
.feature-card .card-link:hover { gap: 12px; }

/* ==============================
   TWO-COLUMN LAYOUTS (image + texte)
============================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}
.two-col h3 em { font-style: normal; color: var(--new-orange); }
.two-col p {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-mute);
  line-height: 1.6;
  margin-bottom: 16px;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ==============================
   STATS BLOC
============================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.stats-row .stat {
  padding: 32px 20px;
  border-right: 1px solid var(--line);
}
.stats-row .stat:last-child { border-right: 0; }
.stats-row .stat-val {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stats-row .stat-val .plus { color: var(--new-orange); }
.stats-row .stat-label {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.4;
}
.section-dark .stats-row .stat-label { color: rgba(250,250,247,0.6); }

@media (max-width: 700px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row .stat { border-bottom: 1px solid var(--line); }
  .stats-row .stat:nth-child(2n) { border-right: 0; }
}

/* ==============================
   CTA BANNER
============================== */
.cta-banner {
  position: relative;
  padding: clamp(60px, 10vh, 120px) var(--gutter);
  background: var(--new-ink);
  color: var(--paper);
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(232,90,31,0.15) 0%, transparent 50%);
}
.cta-banner-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.cta-banner h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.cta-banner h2 em { font-style: normal; color: var(--new-orange); }
.cta-banner p {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 600;
  color: rgba(250,250,247,0.8);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-banner .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==============================
   PARTAGE SOCIAL
============================== */
.share-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.share-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--new-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.share-fb:hover { background: #1877F2; color: white; border-color: #1877F2; }
.share-li:hover { background: #0A66C2; color: white; border-color: #0A66C2; }
.share-wa:hover { background: #25D366; color: white; border-color: #25D366; }
.share-copy:hover { background: var(--new-ink); color: var(--paper); border-color: var(--new-ink); }
.share-copy.copied { background: var(--green, #27AE60); color: white; border-color: var(--green, #27AE60); }

/* ==============================
   BREADCRUMBS (pages internes)
============================== */
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 20px var(--gutter);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { color: var(--new-orange); }
.breadcrumbs .sep { color: var(--new-orange); }

/* ==============================
   TIMELINE (programme)
============================== */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 80px; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--line);
}
.tl-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 16px 0;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: 76px; top: 24px;
  width: 9px; height: 9px;
  background: var(--paper);
  border: 2px solid var(--new-orange);
  border-radius: 50%;
}
.tl-item.highlight::before { background: var(--new-orange); }
.tl-time {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--new-ink);
}
.tl-content { padding-left: 20px; }
.tl-content h4 {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.tl-content p {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* ==============================
   ARTICLES (blog)
============================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.article-card .img-wrap { aspect-ratio: 16/9; }
.article-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-meta {
  display: flex; gap: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.article-meta .dot-sep { color: var(--new-orange); }
.article-card h3 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.article-card h3 a { color: var(--new-ink); transition: color .2s; }
.article-card h3 a:hover { color: var(--new-orange); }
.article-excerpt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mute);
  line-height: 1.55;
  flex: 1;
}
.article-card .read-more {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--new-orange);
  display: inline-flex;
  gap: 6px;
  transition: gap .2s;
}
.article-card .read-more:hover { gap: 12px; }

/* === Article single === */
.article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px var(--gutter);
}
.article-hero-img {
  aspect-ratio: 16/9;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.article-meta-top {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.article-lead {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-content {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-soft);
}
.article-content h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 48px 0 20px;
  line-height: 1.2;
}
.article-content h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 32px 0 16px;
}
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol {
  margin: 20px 0 20px 24px;
}
.article-content li { margin-bottom: 8px; }
.article-content strong { font-weight: 800; color: var(--new-ink); }
.article-content em { font-style: italic; }
.article-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--new-orange);
  background: var(--paper-2);
  font-weight: 700;
  font-size: 17px;
}
.article-content a { color: var(--new-orange); font-weight: 700; border-bottom: 1px solid var(--new-orange); }

.article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* ==============================
   SITE FOOTER
============================== */
.site-footer {
  background: var(--new-ink);
  color: rgba(250,250,247,0.7);
  padding: 80px var(--gutter) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-brand em { color: var(--new-orange); font-style: normal; }
.footer-brand-col p {
  font-size: 13px;
  font-weight: 600;
  max-width: 340px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: rgba(250,250,247,0.7);
  transition: background .2s, color .2s;
  border-radius: 2px;
}
.footer-social a:hover { background: var(--new-orange); color: white; }

.footer-col h5 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; font-weight: 600; transition: color .2s; }
.footer-col a:hover { color: var(--new-orange); }
.footer-col li:not(:has(a)) { font-size: 13px; font-weight: 600; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==============================
   DIVERS
============================== */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--orange-soft);
  color: var(--new-orange-deep);
}
.tag-pill.dark { background: var(--new-ink); color: var(--paper); }
.tag-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--new-orange);
}
.tag-pill.dark::before { background: var(--new-orange); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Skip to main content (accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  background: var(--new-orange);
  color: white;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1000;
}
.skip-link:focus { top: 0; }
