/* =========================================================
   CYPHERPOL — Feuille de style principale
   ========================================================= */

/* ---------- Polices (auto-hébergées, aucune requête tierce) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* ---------- Transitions entre pages (navigateurs compatibles) ---------- */
@view-transition { navigation: auto; }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #030814;
  --navy-900: #050d1f;
  --navy-850: #081329;
  --navy-800: #0b1a36;
  --navy-700: #12254a;
  --blue-600: #1f63f0;
  --blue-500: #2f74ff;
  --blue-400: #4f8cff;
  --cyan-400: #4cc3ff;
  --glow: rgba(47, 116, 255, .55);
  --ink: #0b1630;
  --ink-soft: #4a5873;
  --muted: #8a97b0;
  --line: #e3e9f3;
  --surface: #ffffff;
  --surface-2: #f4f7fc;
  --surface-3: #eef3fb;
  --on-dark: #e9efff;
  --on-dark-soft: #9fb0d0;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(11, 22, 48, .04), 0 8px 24px rgba(11, 22, 48, .06);
  --shadow-hover: 0 4px 10px rgba(11, 22, 48, .06), 0 18px 40px rgba(31, 99, 240, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--blue-500); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
main { background: var(--surface); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 12px 24px; border-radius: 10px; border: 1px solid transparent;
  font-size: .9rem; font-weight: 500; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 6px 18px rgba(47, 116, 255, .35); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(47, 116, 255, .5); }
.btn-outline { border-color: rgba(233, 239, 255, .75); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, .08); border-color: #fff; transform: translateY(-2px); }
.btn-pill { border-radius: 999px; }
.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-500); font-size: .85rem; font-weight: 500; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s, box-shadow .35s, height .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-scrolled {
  height: 64px;
  background: rgba(5, 13, 31, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: .06em; font-size: 1.05rem; }
.logo svg { width: 30px; height: 30px; flex: none; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list > li { position: relative; }
.nav-link { position: relative; display: inline-block; padding: 8px 0; color: var(--on-dark); font-size: .88rem; font-weight: 400; transition: color .25s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--blue-400); }
.nav-link.is-active::after { transform: scaleX(1); }

/* Sous-menu Services */
.has-sub > .nav-link { padding-right: 2px; }
.sub-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 250px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: rgba(8, 19, 41, .97); border: 1px solid rgba(79, 140, 255, .18);
  border-radius: var(--radius); padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--on-dark); font-size: .85rem; transition: background-color .2s, color .2s; }
.sub-menu a:hover, .sub-menu a.is-active { background: rgba(47, 116, 255, .14); color: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Héros ---------- */
.dark { background: var(--navy-900); color: var(--on-dark); }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 64px) 0 72px;
  background:
    radial-gradient(900px 520px at 78% 40%, rgba(31, 99, 240, .32), transparent 60%),
    radial-gradient(600px 400px at 10% 0%, rgba(31, 99, 240, .12), transparent 60%),
    linear-gradient(180deg, #040a18 0%, #071230 100%);
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .7; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; }
.eyebrow-brand { font-size: 1.55rem; font-weight: 600; letter-spacing: .08em; color: var(--blue-400); margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 600; color: #fff; line-height: 1.18; }
.hero h1 .accent { color: var(--blue-500); text-shadow: 0 0 28px rgba(47, 116, 255, .45); }
.hero-lead { margin-top: 22px; color: var(--on-dark-soft); font-size: 1rem; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual svg { width: 100%; max-width: 520px; height: auto; }

/* Héros des pages internes */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 54px) 0 58px;
  background:
    radial-gradient(700px 380px at 82% 50%, rgba(31, 99, 240, .30), transparent 62%),
    linear-gradient(180deg, #040a18 0%, #081634 100%);
  color: var(--on-dark);
}
.page-hero .hero-canvas { opacity: .5; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; min-height: 190px; }
.page-hero-grid.no-visual { grid-template-columns: 1fr; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--blue-400); margin-bottom: 14px; }
.crumb::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 10px var(--blue-500); }
.crumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: #fff; }
.page-hero .lead { margin-top: 14px; color: var(--on-dark-soft); font-size: 1rem; }
.page-hero-visual { display: flex; justify-content: flex-end; }
.page-hero-visual svg { width: 100%; max-width: 360px; height: auto; }

/* ---------- Bande d'atouts (accueil) ---------- */
.feature-strip { background: linear-gradient(180deg, #071230, #050d1f); border-top: 1px solid rgba(79, 140, 255, .1); }
.feature-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-item { display: flex; flex-direction: column; gap: 6px; padding: 30px 24px; border-radius: var(--radius); transition: background-color .3s; }
.feature-item:hover { background: rgba(47, 116, 255, .08); }
.feature-item .ico { width: 30px; height: 30px; color: var(--blue-400); margin-bottom: 8px; transition: transform .35s var(--ease); }
.feature-item:hover .ico { transform: translateY(-3px) scale(1.08); }
.feature-item strong { color: #fff; font-weight: 500; font-size: .92rem; }
.feature-item span { color: var(--on-dark-soft); font-size: .82rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-title { font-size: clamp(1.4rem, 2.4vw, 1.85rem); color: var(--ink); }
.section-title.center { text-align: center; }
.section-intro { color: var(--ink-soft); margin-top: 12px; font-size: .95rem; }

/* Pourquoi choisir */
.why { text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 46px 0 36px; }
.why-item { padding: 18px 12px; border-radius: var(--radius); transition: transform .35s var(--ease), background-color .3s; }
.why-item:hover { transform: translateY(-4px); background: var(--surface-2); }
.why-item .ico { width: 38px; height: 38px; margin: 0 auto 14px; color: var(--blue-500); }
.why-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.why-item p { color: var(--ink-soft); font-size: .88rem; }

/* Bande sombre image + texte */
.band-split { position: relative; overflow: hidden; background: linear-gradient(90deg, #040a18 0%, #071230 55%, #050d1f 100%); color: var(--on-dark); }
.band-split-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 340px; }
.band-split-visual { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; }
.band-split-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #071230 100%); }
.band-split-text { grid-column: 2; }
.band-split-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-split-text { padding: 56px 0 56px 56px; }
.band-split-text h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); color: #fff; font-weight: 600; }
.band-split-text p { margin-top: 18px; color: var(--on-dark-soft); max-width: 420px; }

/* ---------- Cartes services ---------- */
.services-section { background: var(--surface-2); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 32px; box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue-500), var(--cyan-400)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(47, 116, 255, .25); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .ico { width: 46px; height: 46px; color: var(--blue-500); margin-bottom: 14px; transition: transform .45s var(--ease); }
.service-card:hover .ico { transform: rotate(-6deg) scale(1.08); }
.service-card h2, .service-card h3 { font-size: 1.12rem; font-weight: 600; }
.service-card p { color: var(--ink-soft); font-size: .9rem; max-width: 380px; }
.service-card .link-arrow { margin-top: 8px; }
.service-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 28px; }
.service-card.wide .ico { margin: 0; flex: none; }
.service-card.wide .body { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Bannière CTA sombre ---------- */
.cta-banner {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  padding: 56px 32px; text-align: center; color: #fff;
  background: linear-gradient(180deg, #0a1a3d 0%, #050d1f 100%);
  box-shadow: 0 24px 60px rgba(5, 13, 31, .25);
}
.cta-banner > svg.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta-banner h2 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); font-weight: 600; }
.cta-banner p { margin: 12px auto 26px; color: var(--on-dark-soft); max-width: 460px; font-size: .92rem; }

/* ---------- Mise en page « contenu + carte sombre » ---------- */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.split h2 { font-size: 1.45rem; margin-bottom: 16px; }
.split .text p { color: var(--ink-soft); font-size: .95rem; }
.split .text p + p { margin-top: 12px; }
.checklist { margin-top: 26px; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: .93rem; }
.checklist li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--blue-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 3px 10px rgba(47, 116, 255, .35);
}

.dark-card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #091634 0%, #040a18 100%); color: #fff;
  padding: 32px 28px 28px; min-height: 360px; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(5, 13, 31, .28);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.dark-card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(5, 13, 31, .35); }
.dark-card h3 { font-size: 1.12rem; font-weight: 600; position: relative; z-index: 2; max-width: 260px; }
.dark-card .sub { color: var(--on-dark-soft); font-size: .88rem; margin-top: 10px; position: relative; z-index: 2; max-width: 240px; }
.dark-card .card-visual { flex: 1; display: flex; align-items: flex-end; justify-content: center; margin: 12px -28px 0; min-height: 170px; }
.dark-card .card-visual svg { width: 100%; height: auto; max-height: 230px; }
.dark-card .btn { position: relative; z-index: 2; margin-top: 18px; }

/* ---------- Avantages ---------- */
.advantages-title { font-size: 1.3rem; margin-bottom: 22px; }
.advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; }
.adv-item { text-align: center; padding: 28px 18px; border-radius: var(--radius); transition: background-color .3s, transform .35s var(--ease); }
.adv-item:hover { background: var(--surface); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.adv-item .ico { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--blue-500); }
.adv-item p { font-size: .9rem; color: var(--ink); max-width: 180px; margin: 0 auto; }

/* ---------- CTA clairs ---------- */
.cta-light { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-light h2 { font-size: 1.12rem; color: var(--blue-500); font-weight: 600; }
.cta-light p { margin-top: 6px; color: var(--ink-soft); font-size: .9rem; }
.cta-light.center { flex-direction: column; text-align: center; padding: 44px 32px; }
.cta-light.center h2 { color: var(--blue-500); }

/* ---------- À propos ---------- */
.about-text p { color: var(--ink-soft); max-width: 760px; }
.about-text p + p { margin-top: 14px; }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.about-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 18px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.about-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.about-card .ico { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--blue-500); }
.about-card h3 { font-size: .95rem; font-weight: 500; }
.vision blockquote { margin: 18px 0 0; padding: 26px 30px; border-left: 3px solid var(--blue-500); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.08rem; font-style: italic; color: var(--ink); }
.vision cite { display: block; margin-top: 12px; font-style: normal; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 30px; padding-top: 10px; }
.contact-line { display: flex; gap: 18px; align-items: flex-start; }
.contact-line .ico-wrap { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--blue-500); transition: background-color .3s, color .3s; }
.contact-line:hover .ico-wrap { background: var(--blue-500); color: #fff; }
.contact-line .ico-wrap svg { width: 22px; height: 22px; }
.contact-line strong { display: block; font-weight: 600; font-size: .95rem; }
.contact-line a, .contact-line span { color: var(--ink-soft); font-size: .92rem; }
.contact-line a:hover { color: var(--blue-500); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); }
.form-card h2 { font-size: 1.2rem; margin-bottom: 22px; }
.field { position: relative; margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(47, 116, 255, .14); }
.field.has-error input, .field.has-error textarea { border-color: #e5484d; }
.field .error { display: none; color: #d93036; font-size: .78rem; margin-top: 5px; }
.field.has-error .error { display: block; }
.form-note { font-size: .75rem; color: var(--muted); margin-top: 12px; }
.form-success { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #eaf7ef; color: #146c3a; font-size: .9rem; }
.form-success.show { display: block; animation: pop .45s var(--ease); }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Ressources / blog ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.tab { border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); padding: 8px 18px; border-radius: 999px; font-size: .85rem; cursor: pointer; transition: all .25s var(--ease); }
.tab:hover { border-color: var(--blue-500); color: var(--blue-500); }
.tab.is-active { background: var(--blue-500); border-color: var(--blue-500); color: #fff; box-shadow: 0 6px 16px rgba(47, 116, 255, .3); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.post-card.is-hidden { display: none; }
.post-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.post-thumb svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.post-card:hover .post-thumb svg { transform: scale(1.06); }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-500); }
.post-body h2 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.post-body time { font-size: .8rem; color: var(--muted); }
.post-body .link-arrow { margin-top: auto; padding-top: 8px; }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article .meta { color: var(--ink-soft); font-size: .88rem; margin-bottom: 28px; }
.article h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.article p, .article li { color: #2c3a55; font-size: 1rem; }
.article p + p { margin-top: 14px; }
.article ol, .article ul.bullets { padding-left: 22px; margin: 14px 0; display: grid; gap: 10px; }
.article ul.bullets { list-style: disc; }
.article strong { color: var(--ink); }
.article .back { margin-top: 44px; }

/* Pages légales */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: .95rem; }
.legal .todo { background: #fff6dd; color: #7a5600; padding: 2px 6px; border-radius: 4px; font-size: .88em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-soft); padding: 46px 0 22px; border-top: 1px solid rgba(79, 140, 255, .08); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.footer-brand p { margin-top: 10px; font-size: .85rem; }
.footer-nav { display: flex; gap: 34px; flex-wrap: wrap; }
.footer-nav a { font-size: .85rem; color: var(--on-dark); transition: color .25s; }
.footer-nav a:hover { color: var(--blue-400); }
.socials { display: flex; gap: 14px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--on-dark); transition: background-color .25s, color .25s, transform .25s var(--ease); }
.socials a:hover { background: var(--blue-500); color: #fff; transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: .78rem; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(.94); }
.reveal-left.is-visible, .reveal-right.is-visible, .reveal-scale.is-visible { transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-60px); opacity: 0; } }

.anim-float { animation: float 6s ease-in-out infinite; }
.anim-float-slow { animation: float 9s ease-in-out infinite; }
.anim-glow { animation: pulse-glow 3.2s ease-in-out infinite; }
.anim-spin { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
.anim-spin-rev { transform-box: fill-box; transform-origin: center; animation: spin 60s linear infinite reverse; }
.anim-flow { stroke-dasharray: 6 14; animation: flow 1.6s linear infinite; }
.anim-blink { animation: blink 2.4s ease-in-out infinite; }
.anim-rise { animation: rise 3.5s ease-out infinite; }

/* Entrée du héros */
.hero-enter > * { opacity: 0; transform: translateY(22px); animation: pop .9s var(--ease) forwards; }
.hero-enter > *:nth-child(1) { animation-delay: .05s; }
.hero-enter > *:nth-child(2) { animation-delay: .15s; }
.hero-enter > *:nth-child(3) { animation-delay: .28s; }
.hero-enter > *:nth-child(4) { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-enter > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-list { gap: 22px; }
  .main-nav { gap: 22px; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 18px;
    padding: 20px 24px 28px; background: rgba(5, 13, 31, .98); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, .06); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .site-header.is-scrolled .main-nav { inset: 64px 0 auto 0; }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header { background: rgba(5, 13, 31, .98); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav-link { display: block; padding: 14px 0; font-size: 1rem; }
  .nav-link::after { display: none; }
  .sub-menu { position: static; transform: none; opacity: 1; visibility: visible; background: transparent; border: 0; box-shadow: none; padding: 0 0 10px 12px; min-width: 0; }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { transform: none; }
  .sub-menu a { padding: 8px 10px; color: var(--on-dark-soft); }
  .main-nav .btn { align-self: flex-start; }

  .hero-grid, .page-hero-grid, .split, .contact-grid, .band-split-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 360px; }
  .page-hero-visual { justify-content: center; }
  .page-hero-visual svg { max-width: 260px; }
  .feature-strip-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .band-split-visual { position: relative; width: auto; min-height: 240px; margin: 0 -24px; }
  .band-split-text { grid-column: 1; }
  .band-split-text { padding: 40px 0 56px; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .dark-card { min-height: 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .services-grid, .posts, .advantages, .about-cards { grid-template-columns: 1fr; }
  .service-card { padding: 28px 22px; }
  .service-card.wide { flex-direction: column; }
  .feature-strip-grid { grid-template-columns: 1fr 1fr; }
  .feature-item { padding: 22px 12px; }
  .cta-light { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .cta-light.center { align-items: center; }
  .cta-banner { padding: 44px 20px; }
  .form-card { padding: 24px 18px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 20px; }
  .eyebrow-brand { font-size: 1.2rem; }
}
