/* ═══════════════════════════════════════════════
   CURSIM CONSULTING — style.css
   Palette : bleu #1d5fde sur fond sombre #070b13
   Typo    : Outfit (display) + Inter (body)
   → Pas de font-stretch, pas de déformation
════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg      : #070b13;
  --bg2     : #0b1120;
  --bg3     : #0f1627;
  --blue    : #1d5fde;
  --blue-lt : #4a87f5;
  --blue-xl : #7aaeff;
  --blue-dim: rgba(29, 95, 222, 0.13);
  --blue-glow: rgba(29, 95, 222, 0.30);
  --white   : #e4ecfb;
  --muted   : #5e7299;
  --muted2  : #8a9fc2;
  --border  : rgba(29, 95, 222, 0.22);
  --border2 : rgba(255,255,255,0.07);
  --r       : 6px;
  --ff-head : 'Outfit', sans-serif;
  --ff-body : 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* grain subtil */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: .5;
}

.nowrap {
  white-space: nowrap
}

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1.2rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(7,11,19,.9);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border2);
}

/* LOGO original — couleurs préservées, pas de filtre */
.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

nav { display: flex; align-items: center; gap: 2.6rem; }
nav a {
  font-family: var(--ff-body);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted2); text-decoration: none;
  transition: color .25s;
}
nav a:hover { color: var(--white); }

.btn-nav {
  padding: .5rem 1.3rem;
  border: 1px solid var(--blue);
  border-radius: var(--r);
  color: var(--blue-lt) !important;
  font-size: .75rem !important;
  letter-spacing: .08em;
  transition: background .25s, color .25s !important;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--blue); color: #fff !important; }

.logo-link { display: flex; align-items: center; text-decoration: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; border: none; padding: 8px 10px;
  background: rgba(7,11,19,.75);
  backdrop-filter: blur(8px);
  border-radius: var(--r);
  border: 1px solid var(--border2);
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: .3s; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 6rem 5rem 4rem;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 65% 60% at 80% 40%, rgba(29,95,222,.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 55% at 10% 70%, rgba(29,95,222,.06) 0%, transparent 55%),
    var(--bg);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(29,95,222,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,95,222,.05) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black, transparent);
}

.hero-left { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp .7s .2s forwards;
}
.hero-tag::before { content: ''; display: block; width: 26px; height: 1px; background: var(--blue-lt); }

h1 {
  font-family: var(--ff-head);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--white);
  opacity: 0; animation: fadeUp .8s .35s forwards;
}
h1 .accent { color: var(--blue-lt); }

.hero-sub {
  max-width: 500px; margin-top: 1.8rem;
  font-size: .98rem; font-weight: 300; color: var(--muted2); line-height: 1.8;
  opacity: 0; animation: fadeUp .8s .5s forwards;
}

.hero-ctas {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  margin-top: 2.8rem;
  opacity: 0; animation: fadeUp .8s .65s forwards;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.9rem;
  background: var(--blue); color: #fff;
  font-family: var(--ff-body);
  font-size: .8rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--r);
  box-shadow: 0 0 36px var(--blue-glow);
  transition: background .25s, transform .2s, box-shadow .25s;
}
.btn-primary:hover { background: var(--blue-lt); transform: translateY(-2px); box-shadow: 0 0 52px rgba(29,95,222,.5); }
.btn-primary svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted2); text-decoration: none; transition: color .25s;
}
.btn-ghost:hover { color: var(--white); }
.btn-ghost svg { width: 15px; height: 15px; }

.hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  margin-top: 4rem; padding-top: 2.2rem;
  border-top: 1px solid var(--border2);
  opacity: 0; animation: fadeUp .8s .8s forwards;
}
.stat-val {
  font-family: var(--ff-head);
  font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em;
  color: var(--blue-lt); line-height: 1;
}
.stat-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }

/* HERO RIGHT — visual */
.hero-right {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual {
  position: relative; width: 100%; max-width: 520px;
}
.hero-visual img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  object-position: left center;
  border-radius: 12px;
  filter: brightness(.85) saturate(.9);
  display: block;
  animation: fadeIn .9s .5s both;
}
/* cadre déco bleu */
.hero-visual::before {
  content: '';
  position: absolute; inset: -10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  pointer-events: none;
  animation: fadeIn 1.1s .8s both;
}
/* badge flottant */
.hero-badge {
  position: absolute; bottom: 1.8rem; left: -2rem;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 1rem 1.4rem; border-radius: var(--r);
  backdrop-filter: blur(10px);
  animation: fadeUp .8s 1s both;
}
.hero-badge .bval {
  font-family: var(--ff-head); font-size: 2rem; font-weight: 800;
  color: var(--blue-lt); line-height: 1; letter-spacing: -.04em;
}
.hero-badge .blbl { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted2); margin-top: .25rem; }

.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 5rem; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  opacity: 0; animation: fadeIn 1s 1.3s forwards;
}
.scroll-line { width: 1px; height: 52px; background: linear-gradient(to bottom, var(--blue-lt), transparent); animation: scrollLine 2.2s infinite; }
.scroll-label { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }

/* ── SECTIONS COMMUNES ── */
section { padding: 8rem 5rem; }

.section-tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: 1rem;
}
.section-tag::before { content: ''; display: block; width: 18px; height: 1px; background: var(--blue-lt); }

h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
}
h2 .accent { color: var(--blue-lt); }

/* ── ABOUT ── */
#about { background: var(--bg2); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 7rem; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.about-img-wrap { position: relative; }
.about-img-wrap::before {
  content: ''; position: absolute; inset: -10px;
  border: 1px solid var(--border); border-radius: 14px; pointer-events: none;
}
.about-img-wrap img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 10px; filter: grayscale(15%) brightness(.88);
}
.about-img-badge {
  position: absolute; bottom: 1.5rem; right: -1.8rem;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 1.1rem 1.5rem; border-radius: var(--r); backdrop-filter: blur(8px);
}
.about-img-badge .val { font-family: var(--ff-head); font-size: 2.2rem; font-weight: 800; color: var(--blue-lt); line-height: 1; letter-spacing: -.04em; }
.about-img-badge .lbl { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted2); margin-top: .25rem; }

.about-body { margin-top: .5rem; }
.about-body p { font-size: .95rem; font-weight: 300; color: var(--muted2); line-height: 1.82; margin-bottom: 1.2rem; }
.about-body strong { color: var(--white); font-weight: 600; }

.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 2.2rem; }
.pillar {
  padding: 1.1rem 1.2rem; border: 1px solid var(--border2);
  border-radius: var(--r); background: var(--bg);
  transition: border-color .3s, background .3s;
}
.pillar:hover { border-color: var(--blue); background: var(--blue-dim); }
.pillar-icon { font-size: 1.2rem; margin-bottom: .45rem; }
.pillar-title { font-family: var(--ff-head); font-size: .84rem; font-weight: 700; color: var(--white); margin-bottom: .25rem; letter-spacing: -.01em; }
.pillar-desc { font-size: .76rem; color: var(--muted); line-height: 1.5; }

/* ── SERVICES ── */
#services { background: var(--bg); }
.services-header { max-width: 1200px; margin: 0 auto 3.5rem; }
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border2);
  border: 1px solid var(--border2); border-radius: var(--r);
  overflow: hidden; max-width: 1200px; margin: 0 auto;
}
.service-card {
  background: var(--bg2); padding: 2.4rem;
  position: relative; overflow: hidden;
  transition: background .3s;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-lt), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.service-card:hover { background: var(--bg3); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 38px; height: 38px; margin-bottom: 1.1rem; color: var(--blue-lt); }
.service-card h3 { font-family: var(--ff-head); font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: .65rem; line-height: 1.25; letter-spacing: -.02em; }
.service-card p { font-size: .83rem; font-weight: 300; color: var(--muted2); line-height: 1.68; }

/* ── CLIENTS ── */
#clients { background: var(--bg2); }
.clients-header { max-width: 1200px; margin: 0 auto 4rem; }
.clients-marquee-wrap { overflow: hidden; mask-image: linear-gradient(90deg,transparent,black 8%,black 92%,transparent); }
.clients-marquee { display: flex; gap: 4rem; align-items: center; animation: marquee 32s linear infinite; width: max-content; }
.clients-marquee:hover { animation-play-state: paused; }

/* logos clients img : taille uniforme via boite fixe, object-fit contain */
.client-logo {
  height: 40px;
  width: 140px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1) opacity(.35);
  transition: filter .3s;
  display: block;
}
.client-logo:hover { filter: brightness(0) invert(1) opacity(1); }

/* ── FAQ ── */
#faq { background: var(--bg); }
.faq-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 7rem; align-items: start; max-width: 1200px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border2); padding: 1.5rem 0; }
.faq-q { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; cursor: pointer; }
.faq-q h3 { font-family: var(--ff-head); font-size: .95rem; font-weight: 600; color: var(--white); line-height: 1.45; letter-spacing: -.01em; }
.faq-toggle { width: 26px; height: 26px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--blue-lt); font-size: .9rem; transition: background .3s, transform .35s, border-color .3s; }
.faq-item.open .faq-toggle { background: var(--blue); color: #fff; border-color: var(--blue); transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s ease, padding .3s; }
.faq-item.open .faq-a { max-height: 320px; padding-top: .9rem; }
.faq-a p { font-size: .88rem; font-weight: 300; color: var(--muted2); line-height: 1.78; }

/* ── CTA ── */
#cta {
  background: var(--bg2); padding: 8rem 5rem; text-align: center;
  position: relative; overflow: hidden;
}
#cta::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 900px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(29,95,222,.09), transparent 70%);
  pointer-events: none;
}
#cta::after {
  content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg,transparent,var(--border),transparent);
}
#cta h2 { margin: 1rem auto 1.2rem; max-width: 680px; }
#cta .cta-sub { max-width: 460px; margin: 0 auto 3rem; color: var(--muted2); font-size: .95rem; font-weight: 300; line-height: 1.7; }

/* ── FOOTER ── */
footer { background: var(--bg); border-top: 1px solid var(--border2); padding: 2.6rem 5rem; display: flex; align-items: center; justify-content: space-between; }
.footer-logo svg { height: 26px; width: auto; }
.footer-copy { font-size: .74rem; color: var(--muted); margin-top: .4rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: .74rem; color: var(--muted2); text-decoration: none; letter-spacing: .04em; transition: color .25s; }
.footer-links a:hover { color: var(--blue-lt); }

/* ── PAGE MENTIONS ── */
.page-hero { padding: 9rem 5rem 4rem; max-width: 900px; border-bottom: 1px solid var(--border2); }
.page-tag { display: inline-flex; align-items: center; gap: .6rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-lt); margin-bottom: 1rem; }
.page-tag::before { content: ''; display: block; width: 18px; height: 1px; background: var(--blue-lt); }
.legal-body { max-width: 780px; margin: 0 auto; padding: 5rem; }
.legal-section { margin-bottom: 3.5rem; }
.legal-body h2 { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border2); letter-spacing: -.02em; }
.legal-body h3 { font-family: var(--ff-head); font-size: 1rem; font-weight: 600; color: var(--white); margin: 1.5rem 0 .5rem; }
.legal-body p { font-size: .9rem; font-weight: 300; color: var(--muted2); line-height: 1.82; margin-bottom: .8rem; }
.legal-body ul { list-style: none; padding: 0; margin-bottom: 1rem; }
.legal-body ul li { font-size: .9rem; font-weight: 300; color: var(--muted2); line-height: 1.75; padding: .28rem 0; display: flex; gap: .8rem; }
.legal-body ul li::before { content: '—'; color: var(--blue-lt); flex-shrink: 0; }
.legal-body ul li strong { color: var(--white); font-weight: 600; }
.legal-body a { color: var(--blue-lt); text-decoration: none; transition: color .25s; }
.legal-body a:hover { color: var(--blue-xl); }

/* ── ANIMATIONS ── */
@keyframes fadeUp  { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes scrollLine { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* reveal : visible par défaut, JS ajoute l'animation si disponible */
.reveal { opacity:1; transform:none; transition:opacity .7s ease, transform .7s ease; }
.reveal.will-animate { opacity:0; transform:translateY(26px); }
.reveal.visible { opacity:1 !important; transform:none !important; }

/* ── RESPONSIVE ── */
@media (max-width:1100px) {
  header { padding: 1.1rem 2.5rem; }
  section { padding: 6rem 2.5rem; }
  #hero { padding: 8rem 2.5rem 5rem; grid-template-columns: 1fr; }
  .hero-right { display: none; }
  #cta { padding: 6rem 2.5rem; }
  footer { padding: 2.2rem 2.5rem; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-img-badge { right: 1rem; }
  .faq-layout { grid-template-columns: 1fr; gap: 3rem; }
  .legal-body { padding: 4rem 2.5rem; }
  .page-hero { padding: 8rem 2.5rem 3rem; }
}
@media (max-width:860px) {
  header {
    background: rgba(7,11,19,.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border2);
  }
  nav { display: none; }
  nav.open a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white) !important;
    padding: .85rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border2);
    letter-spacing: .04em;
    text-decoration: none;
    display: block;
  }
  nav.open .btn-nav {
    color: var(--blue-lt) !important;
    border: 1px solid var(--blue) !important;
    padding: .6rem 1.5rem !important;
    border-radius: var(--r) !important;
    width: auto !important;
    margin-top: 1rem;
    border-bottom: none !important;
  }
  .hamburger { display: flex; z-index: 201; }
  .services-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1.4rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .scroll-indicator { display: none; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}
