/* =====================================================================
   Soufiane Halably — Site vitrine
   Palette : noir / blanc / bleu nuit (accent). Vibe sombre premium.
   Titres en serif (Spectral), texte en sans-serif (Manrope).
   Mobile-first.
   ===================================================================== */

/* ----------------------------- Tokens ----------------------------- */
:root {
  --ink:        #0C0F2A;   /* navy profond (hero, offres, linkedin) — famille du logo */
  --ink-2:      #11163A;   /* navy alterné (problème, pourquoi) */
  --panel:      #181E4A;   /* cartes sur fond sombre */
  --panel-2:    #1F2659;   /* cartes au survol */
  --cream:      #F3F0E8;   /* section claire (approche) */
  --cream-card: #FBFAF6;
  --cream-ink:  #14171F;   /* texte sur fond clair */

  --white:      #F6F7FB;
  --muted:      #9BA1C0;   /* texte secondaire sur fond sombre */
  --muted-2:    #6A7099;
  --line:       rgba(255,255,255,.10);
  --line-ink:   rgba(20,23,31,.14);

  --accent:     #EE7B2B;   /* orange brûlé — accent de la marque Salescraft */
  --accent-hi:  #F79A3D;
  --accent-deep:#1B2550;
  --accent-soft:rgba(238,123,43,.15);
  --accent-grad:linear-gradient(120deg, #F4A23A, #E25E1C);

  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { font-family: "Spectral", Georgia, serif; font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.accent-text { color: var(--accent-hi); font-style: italic; }

/* ----------------------------- Eyebrow ----------------------------- */
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-hi); margin-bottom: 18px;
}
.eyebrow--ink { color: var(--accent); }

/* ----------------------------- Boutons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 15.5px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s var(--ease); white-space: nowrap;
}
.btn--accent { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 24px -10px rgba(238,123,43,.75); }
.btn--accent:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent-hi); color: var(--accent-hi); }
.btn--sm { padding: 10px 20px; font-size: 14.5px; }
.btn--lg { padding: 17px 34px; font-size: 16.5px; }

/* ----------------------------- Navigation ----------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(9,12,20,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: all .3s var(--ease);
}
.nav.is-scrolled { background: rgba(9,12,20,.92); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; }
.brand__logo { height: 46px; width: auto; display: block; border-radius: 8px; }
.brand__name { font-family: "Spectral", serif; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand__role { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a:not(.btn) { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav__links > a:not(.btn):hover { color: var(--white); }
.nav__cta { margin-left: 6px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative; padding: 150px 0 90px;
  background:
    radial-gradient(1100px 520px at 80% -8%, rgba(238,123,43,.18), transparent 60%),
    radial-gradient(700px 400px at 6% 24%, rgba(91,115,232,.12), transparent 55%),
    var(--ink);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(40px, 9vw, 68px); margin-bottom: 24px; }
.hero__sub { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14.5px; color: var(--muted); }
.hero__trust strong { color: var(--white); font-weight: 700; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }

.hero__media { position: relative; display: flex; justify-content: center; }
.hero__photo {
  position: relative; width: 100%; max-width: 208px; aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #212a52, #0c0f2a 80%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 0 0 7px rgba(238,123,43,.10),
    0 28px 60px -26px rgba(0,0,0,.78),
    0 0 60px -12px rgba(238,123,43,.32);
  animation: heroFloat 6s var(--ease) infinite;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transform: none; filter: contrast(1.03) saturate(1.04); }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12,15,42,.55));
}
.hero__badge {
  position: absolute; bottom: -18px; left: 24px;
  background: var(--accent-grad); color: #fff; padding: 14px 20px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; box-shadow: 0 18px 40px -16px rgba(238,123,43,.8);
}
.hero__badge-k { font-family: "Spectral", serif; font-weight: 600; font-size: 18px; }
.hero__badge-v { font-size: 12.5px; opacity: .85; }

/* ----------------------------- Sections génériques ----------------------------- */
.section { padding: 96px 0; }
.section--dark  { background: var(--ink); }
.section--dark2 { background: var(--ink-2); }
.section--light { background: var(--cream); color: var(--cream-ink); }

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head--left { text-align: left; margin: 0; }
.section__title { font-size: clamp(29px, 5vw, 42px); margin-bottom: 20px; text-wrap: balance; }
.section__lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); }
.section__lead--ink { color: #4A5160; }

/* ----------------------------- Problème ----------------------------- */
.pains { max-width: 820px; margin: 0 auto; display: grid; gap: 2px; }
.pain {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 17px; color: #C7CDDB; transition: all .25s var(--ease);
}
.pain:hover { background: var(--panel-2); border-color: rgba(238,123,43,.45); transform: translateX(4px); }
.pain__mark { color: var(--accent-hi); font-weight: 700; flex-shrink: 0; }
.section__close {
  max-width: 820px; margin: 36px auto 0; text-align: center;
  font-family: "Spectral", serif; font-style: italic; font-size: clamp(19px, 3vw, 25px);
  color: var(--white); line-height: 1.4;
}

/* ----------------------------- Approche (piliers) ----------------------------- */
.pillars { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pillar {
  background: var(--cream-card); border: 1px solid var(--line-ink); border-radius: var(--radius-sm);
  padding: 26px 24px; transition: all .25s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(20,23,31,.35); border-color: rgba(238,123,43,.5); }
.pillar__num { font-family: "Spectral", serif; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .05em; }
.pillar h3 { font-size: 20px; margin: 8px 0 8px; color: var(--cream-ink); }
.pillar p { font-size: 15px; color: #555C6B; line-height: 1.55; }

/* ----------------------------- Offres ----------------------------- */
.offers { display: grid; grid-template-columns: 1fr; gap: 18px; }
.offer {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px; transition: all .3s var(--ease); overflow: hidden;
}
.offer::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent-grad); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease);
}
.offer:hover { background: var(--panel-2); transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.offer:hover::before { transform: scaleY(1); }
.offer__index { font-family: "Spectral", serif; font-size: 14px; color: var(--accent-hi); letter-spacing: .08em; }
.offer__title { font-size: 23px; margin: 10px 0 14px; }
.offer__desc { font-size: 15.5px; color: var(--muted); margin-bottom: 22px; line-height: 1.6; }
.offer__cta { font-weight: 600; font-size: 15px; color: var(--accent-hi); display: inline-flex; align-items: center; gap: 8px; transition: gap .2s var(--ease); }
.offer__cta:hover { gap: 13px; }

/* ----------------------------- Pourquoi moi ----------------------------- */
.pourquoi__inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.pourquoi__media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; box-shadow: 0 40px 80px -45px rgba(0,0,0,.7); }
.pourquoi__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.pourquoi__body { display: flex; flex-direction: column; gap: 34px; }
.reasons { margin-top: 26px; display: grid; gap: 14px; }
.reasons li { position: relative; padding-left: 26px; color: #C7CDDB; font-size: 16px; }
.reasons li::before { content: ""; position: absolute; left: 0; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-grad); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 8px;
}
.stat--wide { grid-column: 1 / -1; }
.stat__num, .stat__txt { font-family: "Spectral", serif; font-weight: 600; font-size: clamp(38px, 7vw, 52px); color: var(--accent-hi); line-height: 1; }
.stat__label { font-size: 14.5px; color: var(--muted); }

/* ----------------------------- LinkedIn ----------------------------- */
.linkedin__inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.linkedin__text .btn { margin-top: 8px; }
.linkedin__tags { display: flex; flex-wrap: wrap; gap: 12px; }
.linkedin__tags span {
  font-family: "Spectral", serif; font-style: italic; font-size: clamp(18px, 3vw, 26px);
  color: var(--muted-2); padding: 6px 0; transition: color .25s var(--ease);
}
.linkedin__tags span:nth-child(odd) { color: var(--muted); }

/* ----------------------------- CTA final ----------------------------- */
.cta {
  background:
    radial-gradient(900px 460px at 50% 120%, rgba(238,123,43,.26), transparent 60%),
    var(--ink-2);
  border-top: 1px solid var(--line);
}
.cta__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.cta__title { font-size: clamp(28px, 5vw, 44px); margin-bottom: 20px; text-wrap: balance; }
.cta__sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); margin-bottom: 38px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ----------------------------- Footer ----------------------------- */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: 50px 0 40px; }
.footer__inner { display: grid; gap: 24px; }
.footer__name { font-family: "Spectral", serif; font-size: 20px; font-weight: 600; display: block; }
.footer__role { font-size: 14px; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { font-size: 14.5px; color: var(--muted); transition: color .2s; }
.footer__links a:hover { color: var(--accent-hi); }
.footer__copy { font-size: 13px; color: var(--muted-2); }

/* ----------------------------- Reveal (animation légère) ----------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------- Offres : méta Pour/Enjeu/Résultat ----------------------------- */
.offer__meta { display: grid; gap: 12px; margin: 16px 0 24px; }
.offer__meta > div { display: grid; grid-template-columns: 82px 1fr; gap: 14px; align-items: baseline; }
.offer__meta dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi); font-weight: 700; }
.offer__meta dd { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ----------------------------- Pour qui (fait / pas fait) ----------------------------- */
.fit { display: grid; gap: 22px; }
.fit__col { background: var(--cream-card); border: 1px solid var(--line-ink); border-radius: var(--radius); padding: 32px 30px; }
.fit__col h3 { font-size: 21px; color: var(--cream-ink); margin-bottom: 20px; }
.fit__col ul { display: grid; gap: 13px; }
.fit__col li { position: relative; padding-left: 32px; font-size: 15.5px; color: #4A5160; line-height: 1.5; }
.fit__col li::before { position: absolute; left: 0; top: -1px; font-weight: 700; font-size: 16px; }
.fit__col--yes li::before { content: "✓"; color: #1F8A5B; }
.fit__col--no li::before { content: "✕"; color: #C25A3C; }

/* ----------------------------- Méthode (étapes) ----------------------------- */
.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px; }
.step__num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: "Spectral", serif; font-weight: 600; font-size: 21px; color: #fff; background: var(--accent-grad); }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ----------------------------- FAQ ----------------------------- */
.faq__inner { display: grid; gap: 36px; }
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 24px; transition: border-color .2s var(--ease); }
.faq__item[open] { border-color: rgba(238,123,43,.4); }
.faq__item summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: "Spectral", serif; font-size: 18px; font-weight: 600; color: var(--white); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent-hi); font-size: 26px; line-height: 1; flex-shrink: 0; transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 24px; margin-top: -4px; color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 70ch; }

/* ----------------------------- Accessibilité : focus visible ----------------------------- */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------- Responsive ----------------------------- */
@media (min-width: 720px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .offers  { grid-template-columns: 1fr 1fr; }
  .fit     { grid-template-columns: 1fr 1fr; }
  .steps   { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  body { font-size: 17px; }
  .hero { padding: 180px 0 120px; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pourquoi__inner { grid-template-columns: .92fr 1.08fr; gap: 56px; }
  .linkedin__inner { grid-template-columns: 1.2fr .8fr; }
  .faq__inner { grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: start; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
}

/* ----------------------------- Menu mobile ----------------------------- */
@media (max-width: 880px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 4px; background: rgba(9,12,20,.98); backdrop-filter: blur(16px);
    padding: 18px 22px 28px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .28s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links > a:not(.btn) { width: 100%; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 14px 0 0; width: 100%; }
}

/* ============================================================
   Interactions / animations enrichies
   ============================================================ */

/* --- Révélation en cascade des enfants d'un conteneur --- */
.js-stagger > *,
.js-stagger.is-stagger li {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js-stagger.is-in > * { opacity: 1; transform: none; }

/* --- Lien de navigation : soulignement animé + section active --- */
.nav__links > a:not(.btn) { position: relative; }
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent-grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav__links > a:not(.btn):hover::after,
.nav__links > a:not(.btn).is-active::after { transform: scaleX(1); }
.nav__links > a:not(.btn).is-active { color: var(--white); }

/* --- Vidéo de fond du hero --- */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
  filter: brightness(.82) saturate(1.05); pointer-events: none;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(12,15,42,.95) 0%, rgba(12,15,42,.86) 34%, rgba(12,15,42,.6) 66%, rgba(12,15,42,.78) 100%),
    linear-gradient(180deg, rgba(12,15,42,.75) 0%, transparent 22%, transparent 62%, rgba(12,15,42,.85) 100%);
}

/* --- Halo qui suit le curseur dans le hero --- */
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(420px 420px at var(--mx, 70%) var(--my, 20%), rgba(238,123,43,.16), transparent 65%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.hero.is-pointer .hero__glow { opacity: 1; }
.hero__inner { position: relative; z-index: 3; }

/* --- Spotlight au survol des cartes --- */
.offer, .pillar { --spot: 0; }
.offer::after, .pillar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(260px 260px at var(--sx, 50%) var(--sy, 50%), rgba(238,123,43,.14), transparent 60%);
  opacity: var(--spot); transition: opacity .3s var(--ease);
}
.pillar { position: relative; overflow: hidden; }
.pillar::after { background: radial-gradient(220px 220px at var(--sx, 50%) var(--sy, 50%), rgba(238,123,43,.10), transparent 60%); }

/* --- Tags LinkedIn : réactivité au survol --- */
.linkedin__tags span { cursor: default; transition: color .25s var(--ease), transform .25s var(--ease); }
.linkedin__tags span:hover { color: var(--accent-hi); transform: translateY(-2px); }

/* --- Boutons magnétiques (translation pilotée en JS) --- */
.btn { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .js-stagger > *, .js-stagger.is-stagger li { opacity: 1; transform: none; transition: none; }
  .hero__glow, .offer::after, .pillar::after { display: none; }
  .hero__video { display: none; }
  * { animation: none !important; }
}
