/* Synaptik — feuille de style du site (accueil et pages légales) */
@font-face { font-family: "Sora"; src: url("fonts/sora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F5F7F8;
  --surface: #FFFFFF;
  --ink: #0B1220;
  --ink-2: #3D4757;
  --ink-3: #5F6B7A;
  --line: #DDE3E8;
  --accent: #0E7490;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3F3F7;
  --dark: #0B1220;
  --radius: 14px;
  --max: 1200px;
  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #0A5A70; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 50; background: rgba(245, 247, 248, 0.88); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.logo-mark { display: block; width: 45px; height: 30px; flex: none; }
.logo-txt { text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; font-size: 17px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; font-family: var(--f-body); font-weight: 700; font-size: 15.5px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #0A5A70; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #C5CDD5; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.nav .btn { color: var(--accent-ink); min-height: 40px; padding: 0 18px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }

/* Sections */
section { padding: 96px 0; }
.kicker { display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { margin-top: 16px; font-size: 19px; color: var(--ink-2); }

/* Héro */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 22px; font-size: 20px; color: var(--ink-2); max-width: 560px; }
.hero .ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.frame { border-radius: 14px; overflow: hidden; background: #0A0D12; box-shadow: 0 30px 70px rgba(11, 18, 32, 0.22), 0 0 0 1px rgba(11, 18, 32, 0.08); }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; background: #151A22; }
.frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2C3442; }
.chip-float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: 0 14px 40px rgba(11, 18, 32, 0.14); font-size: 14px; line-height: 1.4; max-width: 250px; }
.chip-float strong { display: block; font-family: var(--f-display); font-size: 14.5px; margin-bottom: 2px; }
.chip-1 { left: -28px; bottom: -26px; }
.chip-2 { right: -18px; top: -24px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16A34A; margin-right: 6px; }

/* Prestations */
.grid-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card h3 { font-size: 22px; margin: 18px 0 10px; }
.card p { color: var(--ink-2); }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; }
.card li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: var(--accent); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }

/* Bandeau produit VIGIE */
.product { background: #0A0D12; color: #EEF0F3; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.product .kicker { color: #F7B84E; }
.product h2 { font-size: clamp(28px, 3.6vw, 40px); }
.product p { color: #AAB2BF; margin-top: 16px; font-size: 18px; }
.product ul { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 10px; }
.product li { padding-left: 24px; position: relative; color: #D5D9E0; }
.product li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 3px; background: #F5A524; }
.btn-amber { background: #F5A524; color: #15100A; }
.btn-amber:hover { background: #FFB940; color: #15100A; }
.vigie-mark { display: flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-weight: 700; letter-spacing: 0.18em; font-size: 15px; color: #EEF0F3; margin-bottom: 18px; }

/* Méthode */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.step { border-top: 3px solid var(--accent); padding-top: 20px; }
.step .n { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--accent); }
.step h3 { font-size: 20px; margin: 8px 0 8px; }
.step p { color: var(--ink-2); font-size: 16px; }

/* Engagements */
.commit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.commit .card h3 { margin-top: 0; font-size: 20px; }

/* À propos */
.about { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.avatar { width: 100%; aspect-ratio: 1; border-radius: 22px; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: 72px; letter-spacing: -0.03em; }
.about h2 { font-size: clamp(28px, 3.4vw, 38px); }
.about p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.about .sign { margin-top: 22px; font-weight: 700; color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.contact-info p { color: var(--ink-2); font-size: 18px; margin-top: 16px; }
.contact-info .direct { margin-top: 28px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-info .direct a { font-weight: 700; font-size: 18px; }
form.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14.5px; }
.field label .opt { font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #FBFCFD; border: 1px solid #C9D1D9; border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.2); }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 15px; font-weight: 600; }
.form-status.ok { color: #15803D; }
.form-status.err { color: #B91C1C; }

/* Pied de page */
.footer { background: var(--dark); color: #AAB2BF; padding: 56px 0 40px; margin-top: 40px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .logo { color: #fff; }
.footer a { color: #D5D9E0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.footer .legal { width: 100%; border-top: 1px solid #222B38; padding-top: 22px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Pages légales */
.legal-page { padding: 64px 0 40px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 12px; }
.legal-page .updated { color: var(--ink-3); font-size: 15px; margin-bottom: 40px; }
.legal-page h2 { font-size: 22px; margin: 40px 0 12px; }
.legal-page p, .legal-page li { color: var(--ink-2); }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { padding-left: 22px; }
.todo { background: #FFF4D6; color: #6B4B00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .product, .contact, .about { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commit { grid-template-columns: minmax(0, 1fr); }
  .about { gap: 28px; }
  .avatar { width: 140px; font-size: 44px; }
  .product { padding: 36px 28px; }
  .chip-1 { left: 8px; } .chip-2 { right: 8px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .grid-4, .steps { grid-template-columns: minmax(0, 1fr); }
  form.contact-form { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .chip-float { position: static; margin-top: 12px; max-width: none; }
  .hero { padding: 40px 0 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ============================================================
   Mouvement
   Tout est désactivé pour les visiteurs qui ont demandé à réduire les
   animations (réglage du système), voir tout en bas.
   ============================================================ */

/* Barre de progression de lecture, sous l'en-tête */
.read-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #0E7490, #3B5BDB 60%, #7A3BE0); pointer-events: none; }
.logo-mark { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.logo:hover .logo-mark { transform: translateX(-2px) scale(1.06); }

/* Héro : réseau animé en fond + apparition en cascade */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }
.synapses { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.synapses.on { opacity: 1; }
.hero::before { content: ""; position: absolute; z-index: 0; width: 720px; height: 720px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 91, 219, 0.16), rgba(14, 116, 144, 0.08) 55%, transparent); filter: blur(10px); animation: derive 18s ease-in-out infinite alternate; pointer-events: none; }
@keyframes derive { from { transform: translate(0, 0) scale(1); } to { transform: translate(-90px, 60px) scale(1.12); } }

@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes glisse { from { opacity: 0; transform: translateX(28px) scale(.98); } to { opacity: 1; transform: none; } }
.hero .wrap > div:first-child > * { animation: monte .8s cubic-bezier(.2,.8,.2,1) both; }
.hero .wrap > div:first-child > :nth-child(2) { animation-delay: .08s; }
.hero .wrap > div:first-child > :nth-child(3) { animation-delay: .18s; }
.hero .wrap > div:first-child > :nth-child(4) { animation-delay: .28s; }
.hero-visual { animation: glisse 1s .2s cubic-bezier(.2,.8,.2,1) both; perspective: 1400px; }
.hero-visual .frame { transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.hero h1 em { background: linear-gradient(90deg, #0E7490, #3B5BDB, #7A3BE0, #0E7490); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: reflet 9s linear infinite; }
@keyframes reflet { to { background-position: 300% 0; } }

/* Pastilles flottantes */
@keyframes flotte { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.chip-float { animation: flotte 4.5s ease-in-out infinite alternate; }
.chip-1 { animation-delay: -2.2s; }
.dot { position: relative; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #16A34A; animation: pouls 2s ease-out infinite; }
@keyframes pouls { from { transform: scale(1); opacity: .6; } to { transform: scale(3); opacity: 0; } }

/* Boutons */
.btn { position: relative; overflow: hidden; transition: background .15s, color .15s, border-color .15s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover, .btn-amber:hover { box-shadow: 0 10px 24px rgba(14, 116, 144, 0.28); }
.btn-primary::after, .btn-amber::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
.btn-primary:hover::after, .btn-amber:hover::after { left: 130%; }

/* Cartes */
.card { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 18, 32, 0.1); border-color: #B9D9E2; }
.icon { transition: background .3s, color .3s, transform .3s; }
.card:hover .icon { background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.05); }

/* Méthode : le trait de chaque étape se trace à l'apparition */
.step { border-top: 0; position: relative; padding-top: 23px; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line); }
.step::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2,.8,.2,1) var(--delai, 0s); }
.js .step.reveal:not(.in)::after { transform: scaleX(0); }

/* Bandeau VIGIE : la capture s'avance légèrement au survol */
.product .frame { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }
.product:hover .frame { transform: translateY(-4px) scale(1.01); box-shadow: 0 40px 80px rgba(0,0,0,.45); }

/* Apparition au défilement (uniquement les éléments encore hors écran au chargement) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1) var(--delai, 0s), transform .8s cubic-bezier(.2,.8,.2,1) var(--delai, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-4px); }

@media (hover: none) { .hero-visual .frame { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .synapses, .hero::before { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .step.reveal:not(.in)::after { transform: none; }
  .hero-visual .frame { transform: none; }
  .hero h1 em { color: var(--accent); background: none; }
}
