/* ============================================================
   SPI PROMOTION — Style global partagé
   Charte graphique officielle v1.0
   Blue Pigment #2B3990 | Dim Gray #6D6E71 | Montserrat
   ============================================================ */

/* ----- VARIABLES ----- */
:root {
  --blue:        #2B3990;
  --blue-dark:   #1B2870;
  --blue-navy:   #1A1A2E;
  --blue-light:  #EEF2FA;
  --blue-mid:    #4A5FA0;
  --gray:        #6D6E71;
  --gray-light:  #9CA3AF;
  --border:      #E8ECF5;
  --bg:          #F8F9FB;
  --white:       #FFFFFF;
  --text:        #1A1A2E;

  --font:        'Montserrat', sans-serif;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;

  --shadow-sm:   0 2px 8px rgba(43,57,144,.07);
  --shadow:      0 2px 16px rgba(43,57,144,.09);
  --shadow-lg:   0 8px 32px rgba(43,57,144,.15);

  --max-w:       1280px;
  --px:          64px;
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ----- CONTAINER ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
@media (max-width: 1024px) { .container { padding: 0 32px; } }
@media (max-width: 640px)  { .container { padding: 0 20px; } }

/* ----- TYPOGRAPHY ----- */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  color: var(--blue); text-transform: uppercase;
}
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 900; line-height: 1.2; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; line-height: 1.3; }
h4 { font-size: 18px; font-weight: 600; }
p  { line-height: 1.75; }
.lead { font-size: 17px; color: var(--gray); line-height: 1.8; }
.section-divider { width: 48px; height: 4px; background: var(--blue); border-radius: 2px; margin: 16px 0 44px; }

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  transition: all .2s; white-space: nowrap;
}
.btn-primary  { background: var(--blue);  color: var(--white); }
.btn-primary:hover  { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline  { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover  { background: var(--blue); color: var(--white); }
.btn-ghost    { background: transparent; color: var(--blue); }
.btn-ghost:hover    { background: var(--blue-light); }
.btn-white    { background: var(--white); color: var(--blue); box-shadow: var(--shadow-sm); }
.btn-white:hover    { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-white-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-white-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-lg { padding: 18px 40px; font-size: 15px; }
.btn-sm { padding: 10px 20px; font-size: 12px; }
.btn-arrow::after { content: ' →'; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ----- BADGES ----- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.badge-blue  { background: var(--blue-light); color: var(--blue); }
.badge-gray  { background: #F3F4F5; color: var(--gray); }
.badge-dark  { background: var(--blue-navy); color: var(--white); }
.badge::before { content: '●'; font-size: 6px; }

/* ----- NAV ----- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  height: 72px; display: flex; align-items: center; gap: 40px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; flex-shrink: 0; }
.nav-brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 12.5px; font-weight: 600; color: var(--text);
  letter-spacing: .3px; transition: color .2s; padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 2px; background: var(--blue); transition: right .2s;
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: var(--white);
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 700; flex-shrink: 0;
  transition: all .2s;
}
.nav-cta:hover { background: var(--blue-dark); }

/* Dropdown menus */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: flex; align-items: center; gap: 4px; }
.nav-chevron { font-size: 9px; opacity: .55; transition: transform .2s; line-height: 1; margin-top: 1px; }
.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white); border-radius: 14px;
  box-shadow: 0 12px 48px rgba(43,57,144,.16); border: 1px solid var(--border);
  /* padding-top crée un "pont" invisible entre le lien et la carte */
  padding: 28px 8px 8px; min-width: 230px;
  opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 1001; pointer-events: none;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown a {
  display: block; padding: 9px 14px; font-size: 13px; font-weight: 600;
  color: var(--text); border-radius: 8px; white-space: nowrap;
  transition: background .12s, color .12s; letter-spacing: 0;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: #EEF2FA; color: var(--blue); }
.nav-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 8px; }
.nav-dropdown-label {
  display: block; font-size: 10px; font-weight: 700; color: #9CA3AF;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 14px 3px;
}

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.nav-mobile { display: none; }

@media (max-width: 1024px) {
  .nav-links { gap: 16px; }
  .nav-inner { padding: 0 32px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open {
    display: flex; flex-direction: column; padding: 16px 20px 28px;
    border-top: 1px solid var(--border); gap: 0;
    max-height: 85vh; overflow-y: auto;
  }
  .nav-mobile a {
    font-size: 15px; font-weight: 600; padding: 11px 8px;
    border-bottom: 1px solid var(--border); color: var(--text);
  }
  .nav-mobile a.sub {
    font-size: 13px; font-weight: 500; padding: 9px 8px 9px 20px;
    color: #6D6E71; border-bottom: 1px solid #F3F4F6;
  }
  .nav-mobile a.sub:hover { color: var(--blue); }
  .nav-mobile-section-title {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: #9CA3AF;
    padding: 14px 8px 4px; display: block;
  }
  .nav-mobile .mobile-cta {
    margin-top: 12px; background: var(--blue); color: var(--white);
    text-align: center; border-radius: var(--radius-sm); padding: 14px;
    border: none; font-weight: 700; border-bottom: none;
  }
}

/* ----- FOOTER ----- */
.site-footer { background: var(--blue-navy); color: var(--white); }
.footer-top { padding: 72px 0 48px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 52px;
}
.footer-brand img { height: 38px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.9; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social-link {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,.08); display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,.7); transition: all .2s;
}
.footer-social-link:hover { background: var(--blue); color: var(--white); }
.footer-col-title {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: rgba(255,255,255,.35); text-transform: uppercase; margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 13px; color: rgba(255,255,255,.6);
  font-weight: 500; margin-bottom: 12px; transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-contact-item { font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,.3); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ----- CARDS ----- */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-thumb {
  height: 200px; display: flex; align-items: center;
  justify-content: center; font-size: 36px;
}
.card-body { padding: 28px; }
.card-cat { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--blue); text-transform: uppercase; margin-bottom: 10px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.card-text { font-size: 13px; color: var(--gray); line-height: 1.7; margin-bottom: 20px; }
.card-link { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .5px; }
.card-link::after { content: ' →'; }

/* ----- SERVICE CARD ----- */
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); transition: all .3s;
  border-bottom: 3px solid transparent;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-bottom-color: var(--blue); }
.service-icon {
  width: 56px; height: 56px; background: var(--blue-light);
  border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 24px; margin-bottom: 20px;
}
.service-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.service-desc { font-size: 13.5px; color: var(--gray); line-height: 1.7; margin-bottom: 20px; }
.service-link { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .5px; }
.service-link::after { content: ' →'; }

/* ----- STAT BOX ----- */
.stat-box { text-align: center; }
.stat-num { font-size: clamp(32px, 4vw, 48px); font-weight: 900; color: var(--blue); line-height: 1; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--gray); margin-top: 6px; letter-spacing: .5px; text-transform: uppercase; }

/* ----- BREADCRUMB ----- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.6); flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { font-size: 10px; opacity: .5; }

/* ----- PAGE HERO (inner pages) ----- */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 120px 0 72px; color: var(--white); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.page-hero-eyebrow { margin-bottom: 16px; }
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero .lead { color: rgba(255,255,255,.75); max-width: 600px; }

/* ----- SECTION SPACING ----- */
.section      { padding: 88px 0; }
.section-sm   { padding: 56px 0; }
.section-bg   { background: var(--bg); }
.section-blue { background: var(--blue); color: var(--white); }
.section-dark { background: var(--blue-navy); color: var(--white); }

/* ----- UTILS ----- */
.text-blue   { color: var(--blue); }
.text-gray   { color: var(--gray); }
.text-white  { color: var(--white); }
.text-center { text-align: center; }
.text-sm     { font-size: 13px; }
.fw-700      { font-weight: 700; }
.fw-900      { font-weight: 900; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mt-40  { margin-top: 40px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.mb-40  { margin-bottom: 40px; }
.mb-48  { margin-bottom: 48px; }
.gap-y-section { margin-bottom: 88px; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ----- ANIMATIONS ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-2 { animation: fadeUp .6s .15s ease both; }
.fade-up-3 { animation: fadeUp .6s .3s ease both; }
