/* ============================================================
   RCI Formation — Pages CACES
   Design system : Noir & Or RCI, typographie éditoriale
   Auteur : RCI International — 2026
   ============================================================ */

:root {
  --rci-black: #0a0a0a;
  --rci-charcoal: #1a1a1a;
  --rci-graphite: #2a2a2a;
  --rci-gold: #d4af37;
  --rci-gold-light: #e8c44d;
  --rci-gold-dark: #b8941f;
  --rci-cream: #f5f1e8;
  --rci-white: #ffffff;
  --rci-text: #2a2a2a;
  --rci-text-muted: #6a6a6a;
  --rci-border: #e5e0d0;
  --rci-success: #2d7d3e;
  --shadow-sm: 0 2px 8px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 6px 24px rgba(10, 10, 10, 0.10);
  --shadow-lg: 0 12px 48px rgba(10, 10, 10, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--rci-text);
  background: var(--rci-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rci-black);
}

a { color: var(--rci-gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rci-gold); }

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--rci-black);
  color: var(--rci-cream);
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 2px solid var(--rci-gold);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--rci-gold-light); }
.topbar a:hover { color: var(--rci-white); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--rci-white);
  border-bottom: 1px solid var(--rci-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--rci-black);
  letter-spacing: -0.5px;
}
.logo span { color: var(--rci-gold); }

.main-nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--rci-text);
  font-weight: 500;
  font-size: 15px;
}
.main-nav a:hover { color: var(--rci-gold-dark); }
.main-nav a.cta {
  background: var(--rci-black);
  color: var(--rci-gold);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--rci-black);
}
.main-nav a.cta:hover { background: var(--rci-gold); color: var(--rci-black); border-color: var(--rci-gold); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--rci-text-muted);
}
.breadcrumb a { color: var(--rci-text-muted); }
.breadcrumb a:hover { color: var(--rci-gold-dark); }
.breadcrumb span { color: var(--rci-black); font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--rci-black) 0%, var(--rci-charcoal) 100%);
  color: var(--rci-cream);
  padding: 80px 20px 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--rci-gold) 0%, transparent 60%);
  opacity: 0.08;
  pointer-events: none;
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  background: var(--rci-gold);
  color: var(--rci-black);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--rci-cream);
  margin-bottom: 20px;
  max-width: 800px;
}
.hero h1 em { color: var(--rci-gold); font-style: normal; }
.hero-lead {
  font-size: 18px;
  max-width: 700px;
  color: rgba(245, 241, 232, 0.85);
  margin-bottom: 30px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-badges span {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--rci-gold);
  color: var(--rci-gold-light);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--rci-gold);
  color: var(--rci-black);
  border-color: var(--rci-gold);
}
.btn-primary:hover {
  background: var(--rci-gold-light);
  color: var(--rci-black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--rci-cream);
  border-color: var(--rci-cream);
}
.btn-secondary:hover {
  background: var(--rci-cream);
  color: var(--rci-black);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  display: block;
  color: var(--rci-gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 24px;
}
.section h2 em { color: var(--rci-gold-dark); font-style: normal; }
.section-lead {
  font-size: 18px;
  color: var(--rci-text-muted);
  max-width: 800px;
  margin-bottom: 50px;
}

.section-light { background: var(--rci-cream); }
.section-white { background: var(--rci-white); }
.section-dark { background: var(--rci-black); color: var(--rci-cream); }
.section-dark h2 { color: var(--rci-cream); }
.section-dark h2 em { color: var(--rci-gold); }
.section-dark .section-lead { color: rgba(245, 241, 232, 0.75); }

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.cat-card {
  background: var(--rci-white);
  border: 1px solid var(--rci-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--rci-gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s;
}
.cat-card:hover {
  border-color: var(--rci-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cat-card:hover::before { transform: scaleY(1); }
.cat-card .cat-num {
  display: inline-block;
  background: var(--rci-black);
  color: var(--rci-gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.cat-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--rci-black);
}
.cat-card p {
  color: var(--rci-text-muted);
  font-size: 15px;
  margin-bottom: 16px;
}
.cat-card .cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cat-card .cat-tags span {
  background: var(--rci-cream);
  color: var(--rci-text);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

/* ============================================================
   FEATURES (icônes + texte)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 50px;
}
.feature {
  text-align: left;
}
.feature .feat-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: inline-block;
}
.feature h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--rci-black);
}
.section-dark .feature h3 { color: var(--rci-cream); }
.feature p { color: var(--rci-text-muted); font-size: 15px; }
.section-dark .feature p { color: rgba(245, 241, 232, 0.7); }

/* ============================================================
   PROGRAMME / TIMELINE
   ============================================================ */
.timeline {
  margin-top: 40px;
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--rci-gold);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px; top: 4px;
  width: 18px; height: 18px;
  background: var(--rci-gold);
  border: 4px solid var(--rci-cream);
  border-radius: 50%;
}
.section-white .timeline-item::before { border-color: var(--rci-white); }
.timeline-item h4 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--rci-black);
}
.timeline-item p { color: var(--rci-text-muted); font-size: 15px; }
.timeline-item .duration {
  font-size: 12px;
  color: var(--rci-gold-dark);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

/* ============================================================
   FINANCEMENT (cards horizontales)
   ============================================================ */
.finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.finance-card {
  background: var(--rci-white);
  border: 1px solid var(--rci-border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  transition: all 0.2s;
}
.finance-card:hover {
  border-color: var(--rci-gold);
  transform: translateY(-2px);
}
.finance-card .fin-icon { font-size: 28px; margin-bottom: 10px; }
.finance-card h4 { font-size: 16px; margin-bottom: 6px; color: var(--rci-black); }
.finance-card p { font-size: 13px; color: var(--rci-text-muted); }

/* ============================================================
   ZONES GÉOGRAPHIQUES
   ============================================================ */
.zones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.zones span {
  background: var(--rci-charcoal);
  color: var(--rci-gold-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--rci-graphite);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 40px; }
.faq-item {
  background: var(--rci-white);
  border: 1px solid var(--rci-border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  padding: 22px 26px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  color: var(--rci-black);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--rci-gold-dark);
  font-weight: 300;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--rci-cream); }
.faq-item .faq-answer {
  padding: 0 26px 22px;
  color: var(--rci-text);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   AUTRES CACES (cross-link)
   ============================================================ */
.cross-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.cross-card {
  background: var(--rci-white);
  border: 1px solid var(--rci-border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.2s;
  display: block;
  color: inherit;
}
.cross-card:hover {
  border-color: var(--rci-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cross-card .cross-label {
  font-size: 12px;
  color: var(--rci-gold-dark);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cross-card h4 {
  font-size: 18px;
  margin: 8px 0 6px;
  color: var(--rci-black);
}
.cross-card p { font-size: 14px; color: var(--rci-text-muted); }

/* ============================================================
   CTA FINAL
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, var(--rci-black) 0%, var(--rci-charcoal) 100%);
  color: var(--rci-cream);
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, var(--rci-gold) 0%, transparent 50%);
  opacity: 0.06;
}
.final-cta .section-inner { position: relative; z-index: 1; }
.final-cta h2 { color: var(--rci-cream); margin-bottom: 18px; }
.final-cta h2 em { color: var(--rci-gold); }
.final-cta p { font-size: 18px; color: rgba(245, 241, 232, 0.8); max-width: 600px; margin: 0 auto 36px; }
.final-cta .hero-cta { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #050505;
  color: rgba(245, 241, 232, 0.7);
  padding: 60px 20px 24px;
  font-size: 14px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rci-graphite);
}
.footer-col h4 {
  color: var(--rci-gold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: rgba(245, 241, 232, 0.7);
  padding: 4px 0;
  font-size: 14px;
}
.footer-col a:hover { color: var(--rci-gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  font-size: 13px;
  text-align: center;
  color: rgba(245, 241, 232, 0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero { padding: 50px 20px 70px; }
  .section { padding: 60px 20px; }
  .final-cta { padding: 70px 20px; }
  .topbar-inner { justify-content: center; text-align: center; }
}