/* BCP95 — Design System | Rouge BCP | Outfit + Inter */
/* Google Fonts chargées via <link> dans le HTML pour éviter le blocage du rendu */

:root {
  --bg-primary:    #fafafa;
  --bg-secondary:  #f5f5f5;
  --bg-card:       #ffffff;
  --bg-card-hover: #fff5f5;
  --accent:          #C8102E;
  --accent-dark:     #9e0d22;
  --accent-light:    #e84060;
  --accent-gradient: linear-gradient(135deg, #C8102E, #e84060);
  --text-primary:  #1a0608;
  --text-secondary:#555555;
  --text-muted:    #999999;
  --border:        #e8e0e0;
  --border-accent: rgba(200,16,46,0.3);
  --shadow:        0 4px 24px rgba(200,16,46,0.08);
  --shadow-lg:     0 8px 48px rgba(200,16,46,0.15);
  --radius:        16px;
  --radius-sm:     10px;
  --nav-h:         72px;
  --transition:    0.3s cubic-bezier(0.4,0,0.2,1);
  --gap:           24px;
  --gap-lg:        48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-secondary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 16px; }
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
}
.section-label {
  display: inline-block;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 20px rgba(200,16,46,0.28); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(200,16,46,0.4); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-outline-gray { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-outline-gray:hover { border-color: var(--accent); color: var(--accent); background: rgba(200,16,46,0.05); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}
.badge-red    { background: rgba(200,16,46,0.1);  color: #9e0d22; border: 1px solid rgba(200,16,46,0.25); }
.badge-blue   { background: rgba(37,99,235,0.1);  color: #1d4ed8; border: 1px solid rgba(37,99,235,0.25); }
.badge-cyan   { background: rgba(8,145,178,0.1);  color: #0e7490; border: 1px solid rgba(8,145,178,0.25); }
.badge-green  { background: rgba(22,163,74,0.1);  color: #15803d; border: 1px solid rgba(22,163,74,0.25); }
.badge-orange { background: rgba(234,88,12,0.1);  color: #c2410c; border: 1px solid rgba(234,88,12,0.25); }
.badge-purple { background: rgba(126,34,206,0.1); color: #7c3aed; border: 1px solid rgba(126,34,206,0.25); }

.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.3rem;
  color: #fff; flex-shrink: 0;
}
.avatar-lg { width: 88px; height: 88px; font-size: 1.8rem; }

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(250,250,250,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 20px rgba(200,16,46,0.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.4rem; }
.nav-logo img { height: 48px; width: auto; object-fit: contain; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition); cursor: pointer; }
.nav-link:hover, .nav-link.active { color: var(--accent); background: rgba(200,16,46,0.07); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-toggle svg { width: 14px; height: 14px; transition: var(--transition); }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 190px;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(200,16,46,0.12);
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-item { display: block; padding: 10px 14px; border-radius: 6px; font-size: 0.875rem; color: var(--text-secondary); transition: var(--transition); }
.nav-dropdown-item:hover { background: rgba(200,16,46,0.07); color: var(--accent); }
.nav-cta { margin-left: 12px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border-radius: 8px; transition: var(--transition); }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; transition: var(--transition); }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.nav-mobile {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(250,250,250,0.98);
  backdrop-filter: blur(20px);
  padding: 32px 24px;
  flex-direction: column; gap: 8px;
  z-index: 999;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile-link { padding: 16px; border-radius: var(--radius-sm); font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); transition: var(--transition); }
.nav-mobile-link:hover { color: var(--accent); }
.nav-mobile-sub { padding: 10px 16px 10px 32px; font-size: 0.9rem; color: var(--text-muted); transition: var(--transition); }
.nav-mobile-sub:hover { color: var(--accent); }

.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: linear-gradient(160deg, #fff0f2 0%, #fafafa 60%);
  position: relative; overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(200,16,46,0.07) 0%, transparent 70%);
}
.page-hero::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.page-hero .container { position: relative; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

footer { background: #1a0608; border-top: 3px solid var(--accent); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-lg); margin-bottom: 40px; align-items: center; }
.footer-col-logos { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-logos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 4px; }
.footer-logos-grid a { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.92); border-radius: 8px; padding: 10px 8px; transition: var(--transition); border: 1px solid transparent; }
.footer-logos-grid a:hover { background: #fff; transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }
.footer-logos-grid img { height: 30px; width: 100%; object-fit: contain; display: block; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; max-width: 280px; color: #b0929a; }
.footer-col h4 { font-family: 'Outfit', sans-serif; margin-bottom: 16px; font-size: 1rem; color: #fff; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: #b0929a; font-size: 0.9rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--accent-light); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #b0929a; transition: var(--transition); }
.footer-social a:hover { border-color: var(--accent); color: var(--accent-light); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #7a5a60; }

.divider { width: 48px; height: 3px; background: var(--accent); border-radius: 2px; margin: 16px auto 0; }

.breadcrumb { display: flex; align-items: center; gap: 6px; justify-content: center; margin-bottom: 20px; font-size: 0.8rem; font-family: 'Outfit', sans-serif; }
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-mid { color: var(--text-muted); }
.breadcrumb-current { color: var(--accent); font-weight: 600; }

#read-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, #C8102E, #e84060);
  z-index: 1001;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  .btn { padding: 12px 20px; font-size: 0.875rem; }
}
