/* ==========================================================
   SH Culture — feuille de style
   Charte : orange #F06A1E · bleu nuit #1B1F3B · blanc
   Polices auto-hébergées (aucun appel à Google Fonts : RGPD)
   ========================================================== */

@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url("../fonts/fredoka-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("../fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("../fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --orange: #F06A1E;
  --orange-dark: #D4560F;
  --orange-soft: #FFF1E8;
  --navy: #1B1F3B;
  --navy-2: #262B4F;
  --ink: #1B1F3B;
  --muted: #5B6078;
  --line: #E6E7EE;
  --bg: #FFFFFF;
  --bg-alt: #F7F7FA;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(27, 31, 59, .08);
  --shadow-lg: 0 24px 60px rgba(27, 31, 59, .16);
  --max: 1160px;
  --font-title: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-weight: 600; font-size: .95rem;
  color: var(--orange); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px;
}
.eyebrow::before { content: "sh_"; font-size: .85rem; background: var(--orange); color: #fff; padding: 2px 8px 2px 8px; border-radius: 8px 8px 8px 2px; letter-spacing: 0; text-transform: none; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section-head p { color: rgba(255,255,255,.72); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-title); font-weight: 600; font-size: 1.05rem;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  border: 2px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(240,106,30,.32); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn svg { width: 18px; height: 18px; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(27,31,59,.05); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--navy); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 3px; border-radius: 3px; background: var(--orange); transition: width .2s ease; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav .btn { padding: 11px 22px; font-size: .98rem; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--navy); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 112px; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, var(--orange-soft) 0%, rgba(255,241,232,0) 70%);
  z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 .accent { color: var(--orange); }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0; list-style: none; color: var(--navy); font-weight: 500; font-size: .98rem; }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points svg { width: 20px; height: 20px; color: var(--orange); flex: none; }

/* Terminal (rappel du "sh_" du logo) */
.terminal {
  position: relative; background: var(--navy); border-radius: 22px 22px 22px 6px;
  box-shadow: var(--shadow-lg); color: #E9EAF2; overflow: hidden;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .93rem;
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--navy-2); }
.terminal__bar i { width: 12px; height: 12px; border-radius: 50%; background: #464B73; }
.terminal__bar i:first-child { background: var(--orange); }
.terminal__bar span { margin-left: 10px; font-size: .8rem; color: #9DA1BE; font-family: var(--font-body); }
.terminal__body { padding: 22px 24px 40px; line-height: 1.9; min-height: 340px; }
.terminal__body .p { color: var(--orange); font-weight: 700; }
.terminal__body .c { color: #8C90B0; }
.terminal__body .ok { color: #7EE2A8; }
.terminal__body .warn { color: #FFB36B; }
.terminal__line { opacity: 0; transform: translateY(4px); animation: line .4s ease forwards; }
.cursor { display: inline-block; width: 12px; height: 4px; background: var(--orange); border-radius: 2px; margin-left: 4px; vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes line { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

.badge-float {
  position: absolute; background: #fff; color: var(--navy); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem;
  font-family: var(--font-body);
}
.badge-float b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); }
.badge-float b svg { width: 18px; height: 18px; }
.hero__visual { position: relative; }
.hero__visual .badge-float--1 { left: -34px; bottom: -26px; }
.hero__visual .badge-float--2 { right: -18px; top: -24px; }

/* ---------- Problèmes ---------- */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px;
}
.problem__icon { flex: none; width: 42px; height: 42px; border-radius: 12px 12px 12px 4px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; }
.problem__icon svg { width: 22px; height: 22px; }
.problem p { margin: 0; font-weight: 500; }
.problems-note { margin-top: 36px; font-family: var(--font-title); font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.problems-note span { color: var(--orange); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px 16px 16px 5px; background: var(--orange); color: #fff;
  display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 8px 18px rgba(240,106,30,.28);
}
.card__icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--navy); margin-bottom: 6px; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 4px; border-radius: 2px; background: var(--orange); }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num {
  position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 22px;
  border-radius: 20px 20px 20px 6px; background: var(--orange); color: #fff;
  display: grid; place-items: center; font-family: var(--font-title); font-weight: 700; font-size: 1.6rem;
}
.step p { color: rgba(255,255,255,.72); font-size: .98rem; margin: 0; }

/* ---------- Pourquoi ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.why__item h3 { display: flex; align-items: center; gap: 12px; font-size: 1.18rem; }
.why__item h3 span { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px 11px 11px 4px; background: var(--orange-soft); color: var(--orange); }
.why__item h3 svg { width: 20px; height: 20px; }
.why__item p { color: var(--muted); margin: 0; font-size: .98rem; }
.quote {
  position: relative; background: var(--orange); color: #fff; border-radius: 28px 28px 28px 8px;
  padding: 44px 40px; box-shadow: 0 24px 50px rgba(240,106,30,.28);
}
.quote::after { content: ""; position: absolute; left: 34px; bottom: -26px; border-width: 26px 0 0 30px; border-style: solid; border-color: var(--orange) transparent transparent transparent; }
.quote p { font-family: var(--font-title); font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.3; margin: 0 0 18px; }
.quote small { font-size: 1rem; opacity: .9; }

/* ---------- Périmètre ---------- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool { background: #fff; border-radius: var(--radius-sm); padding: 26px; border: 1px solid var(--line); }
.tool h3 { font-size: 1.1rem; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .88rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--navy); border: 1px solid var(--line); }

/* ---------- Contact ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 32px;
  padding: 72px 64px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
}
.cta::before { content: "sh_"; position: absolute; right: -20px; bottom: -70px; font-family: var(--font-title); font-weight: 700; font-size: 260px; line-height: 1; color: rgba(255,255,255,.04); pointer-events: none; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.75); font-size: 1.1rem; }
.cta__box { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 30px; }
.cta__row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cta__row b { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px 13px 13px 4px; background: var(--orange); }
.cta__row b svg { width: 22px; height: 22px; }
.cta__row small { display: block; color: rgba(255,255,255,.6); font-size: .85rem; }
.cta__row a { color: #fff; font-weight: 600; text-decoration: none; }
.cta__row a:hover { text-decoration: underline; }
.cta .btn { width: 100%; margin-top: 6px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 64px 0 28px; margin-top: 104px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 1.6rem; text-decoration: none; margin-bottom: 14px; }
.footer__brand svg { width: 46px; height: 46px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--orange); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .88rem; }

/* ---------- Page mentions légales ---------- */
.legal { padding: 72px 0 24px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.45rem; margin-top: 40px; }
.legal p, .legal li { color: var(--muted); }
.legal .todo { background: #FFF6D6; color: #6B5300; padding: 1px 6px; border-radius: 4px; font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 600; text-decoration: none; margin-bottom: 24px; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .terminal__line { opacity: 1; transform: none; transition: none; animation: none; }
  .cursor { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid, .why, .cta { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .services, .problems, .tools { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .cta { padding: 56px 40px; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(27,31,59,.08);
    padding: 8px 24px 24px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 80px; }
  .header__logo img { height: 32px; }
  .services, .problems, .tools, .why__list, .steps { grid-template-columns: 1fr; }
  .hero__visual .badge-float--1 { left: 8px; bottom: -22px; }
  .hero__visual .badge-float--2 { right: 8px; top: -20px; }
  .terminal__body { font-size: .82rem; padding: 18px 18px 56px; min-height: 0; }
  .cta { padding: 44px 22px; border-radius: 24px; }
  .hero__ctas .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}
