/* JEMADO — design sobre & épuré · thème sombre par défaut + clair */

/* ---------- Police auto-hébergée (RGPD : aucun appel externe) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens sémantiques ---------- */
:root {
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --maxw: 1120px;
  --accent: #4d93ff;
  --accent-600: #6aa6ff;
  --accent-soft: rgba(77, 147, 255, .14);
}

/* Thème SOMBRE (par défaut) */
:root,
[data-theme="dark"] {
  --bg: #0c1626;
  --bg-alt: #0f1c30;
  --surface: #142339;
  --surface-2: #18294214;
  --heading: #f3f7fc;
  --ink: #dfe8f3;
  --muted: #9fb1c6;
  --border: rgba(255, 255, 255, .09);
  --header-bg: rgba(12, 22, 38, .82);
  --cta-bg: linear-gradient(160deg, #15294a 0%, #0e1a2c 100%);
  --cta-surface: #0c1626;
  --footer-bg: #08111e;
  --footer-ink: #9fb1c6;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --hero-glow: rgba(77, 147, 255, .16);
  --brand-mark-bg: var(--accent);
  --brand-mark-fg: #08111e;
  color-scheme: dark;
}

/* Thème CLAIR */
[data-theme="light"] {
  --accent: #2f7df0;
  --accent-600: #1c66d4;
  --accent-soft: rgba(47, 125, 240, .10);
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --heading: #0f2b46;
  --ink: #16202b;
  --muted: #5b6b7b;
  --border: #e4eaf1;
  --header-bg: rgba(255, 255, 255, .9);
  --cta-bg: linear-gradient(160deg, #0f2b46 0%, #16395c 100%);
  --cta-surface: #ffffff;
  --footer-bg: #0b2238;
  --footer-ink: #c2d2e2;
  --shadow: 0 6px 24px rgba(15, 43, 70, .10);
  --shadow-sm: 0 2px 8px rgba(15, 43, 70, .06);
  --hero-glow: rgba(47, 125, 240, .12);
  --brand-mark-bg: #0f2b46;
  --brand-mark-fg: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3 { line-height: 1.18; color: var(--heading); margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
h1 { letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--heading); }
.brand:hover { text-decoration: none; }
.brand-mark { height: 34px; width: auto; display: block; }
.brand-name { font-size: 1.15rem; letter-spacing: .4px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-menu { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.nav-menu a { color: var(--ink); font-weight: 500; font-size: .98rem; transition: color .2s; }
.nav-menu a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: var(--brand-mark-fg) !important; padding: 9px 16px; border-radius: 9px;
  font-weight: 600; transition: background-color .2s, transform .2s;
}
.nav-cta:hover { background: var(--accent-600); transform: translateY(-1px); }

/* Theme toggle */
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.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(--heading); border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px; font-weight: 600;
  font-size: 1rem; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  text-align: center; font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--brand-mark-fg); box-shadow: 0 6px 18px var(--accent-soft); }
.btn-primary:hover { background: var(--accent-600); color: var(--brand-mark-fg); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 82% -12%, var(--hero-glow), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 770px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface);
  border: 1px solid var(--border); color: var(--heading); padding: 7px 15px;
  border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.badge-fr { font-weight: 700; letter-spacing: .2px; }
.flag-fr { width: 22px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px var(--border); flex: 0 0 auto; }
.flag-fr.flag-sm { width: 15px; vertical-align: -2px; margin: 0 1px; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.5rem); margin-bottom: .3em; }
.hero .accent { color: var(--accent); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 630px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; padding: 0; margin: 0; color: var(--heading); font-weight: 500; }
.hero-points li { font-size: .96rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: -.2em auto 46px; max-width: 580px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--accent); }
.card-icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Pricing ---------- */
.pricing { max-width: 1040px; margin: 0 auto; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 14px 40px var(--accent-soft); position: relative; }
.price-card.featured::before {
  content: "Recommandé"; position: absolute; top: -12px; left: 28px;
  background: var(--accent); color: var(--brand-mark-fg); font-size: .75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.price-eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: .78rem; color: var(--accent); font-weight: 700; margin: 0 0 4px; }
.price { margin: 8px 0 2px; }
.price .amount { font-size: 2.5rem; font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; }
.price .unit { color: var(--muted); font-weight: 600; }
.price-note { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.feature-list li { padding: 9px 0 9px 28px; position: relative; color: var(--ink); border-bottom: 1px solid var(--border); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 16px;
  background: var(--accent-soft); border-radius: 50%;
}
.feature-list li::after {
  content: ""; position: absolute; left: 5px; top: 18px; width: 5px; height: 8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Work cards ---------- */
.work-card { color: var(--ink); display: block; }
.work-card:hover { text-decoration: none; }
.work-thumb {
  aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden;
  margin-bottom: 16px; border: 1px solid var(--border); background: var(--surface-2);
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .35s ease; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-card h3 { font-size: 1.15rem; }
.work-card p { color: var(--muted); margin: 0 0 10px; }
.work-link { color: var(--accent); font-weight: 600; font-size: .92rem; }
.tag { font-size: .7rem; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* ---------- Features ---------- */
.feature { text-align: center; padding: 12px; }
.feature-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 14px; background: var(--accent-soft); color: var(--accent);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow-sm); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; background: var(--accent); color: var(--brand-mark-fg); border-radius: 50%; font-weight: 800; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; color: var(--heading); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); flex: 0 0 auto; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-body p { margin: 0; }

/* ---------- Contact ---------- */
.section-cta { background: var(--cta-bg); border-top: 1px solid var(--border); }
.section-cta .section-title, .section-cta .contact-direct { color: #fff; }
.section-cta .section-sub { color: #b9c8d8; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-text .section-title, .contact-text .section-sub { text-align: left; margin-left: 0; }
.contact-direct a { color: #8fc0ff; }
.contact-form { background: var(--cta-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--heading); font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-hint { margin: 12px 0 0; font-size: .9rem; color: var(--muted); text-align: center; min-height: 1.2em; }
.form-hint.ok { color: #2fc0a0; }
.form-hint.err { color: #ff8a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 48px 0 24px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.footer-brand { max-width: 320px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: var(--footer-ink); opacity: .85; margin-top: 10px; font-size: .94rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-nav a { color: var(--footer-ink); font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { padding-top: 20px; }
.footer-bottom p { margin: 0; font-size: .88rem; color: var(--footer-ink); opacity: .8; }

/* ---------- Pages légales ---------- */
.legal h2 { margin-top: 2.2em; font-size: 1.25rem; }
.legal h2:first-of-type { margin-top: 1.2em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1rem; }
.legal li { margin-bottom: .45em; color: var(--ink); }
.legal a { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Ancrage automatique des sections (desktop uniquement) ---------- */
/* min-width 1025px + pointer fine => exclut mobiles et tablettes tactiles */
@media (min-width: 1025px) and (pointer: fine) {
  html {
    scroll-snap-type: y mandatory;  /* ancrage strict */
    scroll-padding-top: 66px;       /* hauteur du header sticky */
  }
  .hero,
  .section {
    scroll-snap-align: start;
    scroll-snap-stop: always;       /* une section à la fois */
    min-height: 100vh;              /* toute la hauteur de l'écran */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* Point d'ancrage de fin : rend le footer (mentions légales, etc.)
     atteignable malgré le snap strict de la section contact */
  .site-footer { scroll-snap-align: end; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pricing { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 20px;
    gap: 6px; box-shadow: var(--shadow); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 10px 0; }
  .nav-cta { text-align: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .hero { padding: 62px 0 52px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
