/*
Theme Name: POLARIS — Creative Technology
Theme URI: https://federiconieto.fr
Author: Federico Massonnaud
Author URI: https://federiconieto.fr
Description: Thème WordPress premium pour POLARIS : conseil, édition logicielle, IA, 3D et prototypage.
Version: 1.2.0-beta
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: polaris
*/

:root {
  color-scheme: dark;
  --ink: #07080a;
  --ink-soft: #0d0f13;
  --panel: #11141a;
  --panel-2: #161a22;
  --line: rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.22);
  --paper: #f4f1e9;
  --white: #fff;
  --muted: #9aa1ad;
  --ice: #8cecff;
  --blue: #4b79ff;
  --violet: #9b68ff;
  --rose: #ff4f91;
  --gold: #e6c985;
  --radius: 24px;
  --max: 1240px;
  --shadow: 0 32px 100px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: var(--ice); color: #071014; }

.screen-reader-text {
  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:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: #fff;
  color: #000;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: grid;
  place-items: center;
  background: #07080a;
  transition: opacity .65s ease, visibility .65s ease;
  animation: polarisPreloaderFailsafe .01s linear 2.4s forwards;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
@keyframes polarisPreloaderFailsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.preloader-mark {
  width: 82px;
  animation: preloadFloat 2.4s ease-in-out infinite;
}
.preloader-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(75,121,255,.28));
}
@keyframes preloadFloat {
  0%,100% { transform: translateY(0) scale(.985); filter: brightness(.9); }
  50% { transform: translateY(-7px) scale(1); filter: brightness(1.12); }
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.site-header.is-scrolled {
  background: rgba(7,8,10,.78);
  border-color: var(--line);
  backdrop-filter: blur(20px);
}
.nav-shell {
  width: min(var(--max), calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .18em;
}
.brand-logo {
  display: block;
  width: 29px;
  height: 39px;
  object-fit: contain;
}
.polaris-guide-logo {
  display: block;
  width: 25px;
  height: 33px;
  object-fit: contain;
}
.primary-menu { display: flex; align-items: center; gap: 28px; }
.primary-menu a { color: #c2c7d0; font-size: 13px; font-weight: 650; transition: color .2s ease; }
.primary-menu a:hover { color: #fff; }
.nav-cta {
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: #fff !important;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 150px 0 80px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(75,121,255,.17), transparent 30%),
    radial-gradient(circle at 78% 48%, rgba(155,104,255,.11), transparent 30%),
    linear-gradient(180deg, #07080a 0%, #0a0c11 100%);
}
.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 75%, transparent);
  transform: perspective(600px) rotateX(58deg) translateY(38%);
  transform-origin: bottom;
}
.hero-orbit {
  position: absolute;
  z-index: -1;
  top: 15%;
  right: max(3vw, calc((100vw - var(--max))/2));
  width: min(42vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(75,121,255,.08), 0 0 80px rgba(75,121,255,.05);
  animation: orbitSpin 18s linear infinite;
}
.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
}
.hero-orbit::before { inset: 16%; transform: rotateX(65deg); }
.hero-orbit::after { inset: 31%; background: radial-gradient(circle at 36% 30%, #fff 0 1%, var(--ice) 4%, var(--blue) 22%, #0c1018 58%); box-shadow: 0 0 80px rgba(75,121,255,.4); }
.orbit-satellite {
  position: absolute;
  top: 8%;
  left: 47%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 22px 7px var(--ice);
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.hero-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.hero-copy { width: min(760px, 69%); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--ice);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.hero h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(3.2rem, 7.4vw, 7.8rem);
  font-weight: 680;
  letter-spacing: -.065em;
  line-height: .88;
}
.hero h1 em {
  display: block;
  padding-bottom: .08em;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: transparent;
  background: linear-gradient(90deg, var(--ice), var(--violet) 52%, var(--rose));
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-intro {
  max-width: 650px;
  margin: 32px 0 0;
  color: #b8bec8;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.65;
}
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 21px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.5); }
.button-primary { border: 0; background: #fff; color: #090b0e; }
.button-primary::after { content: "↗"; }
.button-ghost::after { content: "↓"; color: var(--ice); }

.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0a0c10;
}
.proof-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.proof-item { padding: 28px; border-right: 1px solid var(--line); }
.proof-item:first-child { border-left: 1px solid var(--line); }
.proof-item b { display: block; font-size: 17px; }
.proof-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

.section { position: relative; padding: clamp(90px, 12vw, 170px) 0; }
.section-shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section-head {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.section-kicker { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-title {
  margin: 0;
  font-size: clamp(2.5rem, 5.5vw, 5.6rem);
  font-weight: 620;
  letter-spacing: -.055em;
  line-height: .98;
}
.section-title em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--ice); }
.section-lead { max-width: 570px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  min-height: 420px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: var(--shadow);
  transition: transform .35s ease, border-color .35s ease;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(140,236,255,.4); }
.service-number { color: var(--ice); font-size: 11px; letter-spacing: .16em; }
.service-icon {
  width: 76px;
  height: 76px;
  margin: 50px 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0c0e13;
  color: var(--ice);
  font-size: 28px;
}
.service-card h3 { margin: 32px 0 10px; font-size: 25px; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.frameflow-section { overflow: hidden; background: var(--paper); color: #111318; }
.frameflow-stage {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  padding: clamp(32px, 7vw, 84px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 76% 28%, rgba(131,56,236,.28), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(0,245,255,.18), transparent 29%),
    #08090c;
  color: #fff;
  box-shadow: 0 45px 100px rgba(23,25,35,.28);
}
.frameflow-copy { position: relative; z-index: 2; width: min(580px, 54%); }
.ff-logo { width: 74px; height: 74px; filter: drop-shadow(0 18px 40px rgba(131,56,236,.32)); }
.product-label { margin-top: 30px; color: #aeb3be; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.frameflow-stage h2 { margin: 12px 0 20px; font-size: clamp(3.3rem, 6vw, 6.5rem); letter-spacing: -.07em; line-height: .9; }
.frameflow-stage h2 span { color: transparent; background: linear-gradient(90deg,#ff4f91,#9b68ff,#8cecff); background-clip: text; -webkit-background-clip: text; }
.frameflow-stage p { max-width: 540px; color: #b0b5bf; font-size: 18px; line-height: 1.65; }
.frameflow-screen {
  position: absolute;
  right: -5%;
  top: 13%;
  width: 49%;
  aspect-ratio: 1.35;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  background: rgba(17,19,26,.8);
  box-shadow: 0 40px 90px #0009;
  transform: perspective(900px) rotateY(-13deg) rotateX(4deg);
  backdrop-filter: blur(15px);
}
.screen-bar { height: 11%; border-bottom: 1px solid var(--line); }
.screen-canvas {
  width: 74%;
  height: 60%;
  margin: 5% auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(135deg, transparent 35%, rgba(140,236,255,.16)),
    radial-gradient(circle at 50% 50%, #334160, #0b0d13 64%);
}
.screen-canvas::after { content: "▶"; color: #fff; font-size: 24px; filter: drop-shadow(0 0 14px var(--ice)); }
.screen-timeline { display: flex; gap: 5px; padding: 0 6%; }
.screen-timeline i { flex: 1; height: 32px; border-radius: 5px; background: linear-gradient(135deg,#252a34,#4b79ff55); }
.screen-wave { margin: 3% 6%; height: 11px; background: repeating-linear-gradient(90deg,var(--violet) 0 2px,transparent 2px 5px); opacity: .75; }

.learning-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.learning-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.learning-card.large { min-height: 640px; }
.learning-stack { display: grid; gap: 18px; }
.learning-card h3 { position: relative; z-index: 2; max-width: 420px; margin: 0; font-size: clamp(2rem,4vw,4rem); letter-spacing: -.05em; }
.learning-card p { position: relative; z-index: 2; max-width: 420px; color: var(--muted); line-height: 1.7; }
.learning-tag { display: inline-block; margin-bottom: 22px; color: var(--ice); font-size: 11px; letter-spacing: .16em; }
.object-3d {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(140,236,255,.24);
  transform: rotate(30deg);
  background:
    linear-gradient(45deg, transparent 49%, rgba(140,236,255,.22) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(155,104,255,.28) 50%, transparent 51%);
  box-shadow: inset 0 0 70px rgba(75,121,255,.12);
}
.object-3d::before,
.object-3d::after { content: ""; position: absolute; inset: 17%; border: 1px solid rgba(255,255,255,.2); transform: rotate(45deg); }
.object-3d::after { inset: 34%; background: rgba(140,236,255,.08); }
.learning-card.prototype { background: linear-gradient(145deg,#18130d,#111318); }
.learning-card.prototype::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -80px;
  width: 250px;
  height: 250px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 35% 30%, #fff1, var(--gold) 4%, #7f5e2e 28%, #16100a 70%);
  box-shadow: -25px -30px 70px rgba(230,201,133,.12);
  transform: rotate(-18deg);
}
.learning-card.ai { background: linear-gradient(145deg,#101423,#111318); }
.learning-card.ai::after {
  content: "";
  position: absolute;
  inset: 40% -8% -20% 30%;
  background: radial-gradient(circle at center,rgba(155,104,255,.4),transparent 63%);
}

.method { background: #0a0c10; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.method-steps { border-top: 1px solid var(--line); }
.method-step { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.method-step span { color: var(--ice); font-size: 11px; }
.method-step h3 { margin: 0 0 8px; font-size: 21px; }
.method-step p { margin: 0; color: var(--muted); line-height: 1.6; }

.manifesto { overflow: hidden; text-align: center; }
.manifesto::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 650px;
  height: 650px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle,rgba(75,121,255,.15),transparent 65%);
  pointer-events: none;
}
.manifesto blockquote { position: relative; max-width: 1000px; margin: 0 auto; font-size: clamp(2.6rem,6vw,6.8rem); letter-spacing: -.06em; line-height: .98; }
.manifesto blockquote em { font-family: Georgia,serif; color: var(--ice); font-weight: 400; }
.manifesto cite { display: block; margin-top: 30px; color: var(--muted); font-size: 12px; font-style: normal; letter-spacing: .15em; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.portrait-placeholder {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(160deg,transparent 42%,rgba(140,236,255,.14)),
    radial-gradient(circle at 47% 38%,#343b48 0 10%,#171a21 11% 26%,#0c0e12 27% 65%);
}
.portrait-placeholder::before {
  content: "20";
  position: absolute;
  left: 26px;
  bottom: -35px;
  color: rgba(255,255,255,.055);
  font-size: 230px;
  font-weight: 900;
  letter-spacing: -.1em;
}
.portrait-caption { position: absolute; left: 26px; right: 26px; bottom: 26px; display: flex; justify-content: space-between; color: #cbd0d8; font-size: 11px; letter-spacing: .12em; }
.about-copy h2 { margin: 0; font-size: clamp(2.8rem,5vw,5.4rem); letter-spacing: -.06em; line-height: .98; }
.about-copy h2 em { font-family: Georgia,serif; color: var(--ice); font-weight: 400; }
.about-copy p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.about-signature { margin-top: 30px; color: #fff; font-family: Georgia,serif; font-size: 27px; font-style: italic; }

.contact {
  padding: clamp(100px,14vw,190px) 0;
  background: var(--paper);
  color: #111318;
}
.contact-shell { width: min(1050px,calc(100% - 48px)); margin: 0 auto; text-align: center; }
.contact h2 { margin: 0; font-size: clamp(3.4rem,8vw,8.5rem); letter-spacing: -.075em; line-height: .88; }
.contact h2 em { display: block; color: #5b49dd; font-family: Georgia,serif; font-weight: 400; }
.contact p { max-width: 590px; margin: 28px auto; color: #5e6470; font-size: 18px; line-height: 1.65; }
.contact .button { border-color: #111318; background: #111318; color: #fff; }

.site-footer { padding: 45px 0; border-top: 1px solid var(--line); }
.footer-grid {
  width: min(var(--max),calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.footer-brand p { max-width: 430px; color: var(--muted); line-height: 1.6; }
.footer-meta { color: var(--muted); font-size: 12px; text-align: right; line-height: 1.8; }

.polaris-guide-toggle {
  position: fixed;
  z-index: 220;
  right: 24px;
  bottom: 24px;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 99px;
  background: rgba(14,17,23,.9);
  color: #fff;
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  backdrop-filter: blur(18px);
  cursor: pointer;
}
.polaris-guide-toggle:hover { border-color: var(--ice); transform: translateY(-2px); }
.polaris-guide-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 16px var(--ice);
}
.polaris-guide {
  position: fixed;
  z-index: 230;
  right: 24px;
  bottom: 88px;
  width: min(390px,calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: rgba(10,12,17,.97);
  color: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.6);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .25s ease,visibility .25s ease,transform .25s ease;
}
.polaris-guide.is-open { opacity: 1; visibility: visible; transform: none; }
.polaris-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.polaris-guide-identity { display: flex; align-items: center; gap: 11px; }
.polaris-guide-identity b,.polaris-guide-identity small { display: block; }
.polaris-guide-identity small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.polaris-guide-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
}
.polaris-guide-log {
  height: min(380px,50vh);
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.polaris-guide-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 5px;
  background: rgba(255,255,255,.07);
  color: #d8dce4;
  font-size: 13px;
  line-height: 1.55;
}
.polaris-guide-message.is-user {
  align-self: flex-end;
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(135deg,#4b79ff,#7b55df);
  color: #fff;
}
.polaris-guide-message a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.polaris-guide-suggestions { padding: 0 18px 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.polaris-guide-suggestion {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: #cbd0da;
  font-size: 11px;
  cursor: pointer;
}
.polaris-guide-suggestion:hover { border-color: var(--ice); color: #fff; }
.polaris-guide-form { padding: 13px; display: grid; grid-template-columns: 1fr 43px; gap: 8px; border-top: 1px solid var(--line); }
.polaris-guide-input {
  min-width: 0;
  height: 43px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  outline: none;
  background: rgba(255,255,255,.055);
  color: #fff;
}
.polaris-guide-input:focus { border-color: var(--ice); }
.polaris-guide-send {
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0a0c11;
  font-weight: 900;
  cursor: pointer;
}
.polaris-guide-note { margin: 0; padding: 0 18px 14px; color: #747c89; font-size: 10px; }

.content-shell { width: min(850px,calc(100% - 48px)); margin: 0 auto; padding: 150px 0 90px; }
.content-shell h1 { font-size: clamp(2.8rem,6vw,5rem); letter-spacing: -.05em; }
.entry-content { color: #c4c8cf; line-height: 1.75; }
.entry-content h2,.entry-content h3 { color: #fff; }

[data-reveal] { opacity: 1; transform: none; }
.polaris-motion [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1);
}
.polaris-motion [data-reveal].is-visible { opacity: 1; transform: none; }

/* Direction POLARIS claire : contraste éditorial et respiration. */
:root {
  color-scheme: light;
  --ink: #f4f6fa;
  --ink-soft: #e9eef7;
  --panel: #fff;
  --panel-2: #eef3fb;
  --line: rgba(19,39,78,.12);
  --line-strong: rgba(19,39,78,.24);
  --paper: #f4f6fa;
  --white: #142342;
  --muted: #68748a;
  --ice: #426db4;
  --blue: #315ba3;
  --violet: #536fba;
  --rose: #315ba3;
  --shadow: 0 24px 70px rgba(29,54,98,.11);
}
html,body { background: #f4f6fa; color: #142342; }
.preloader { background: #f4f6fa; }
.preloader-mark { width: 82px; animation: none; }
.preloader-logo { filter: none; }
.site-header { color: #142342; }
.site-header.is-scrolled {
  background: rgba(248,250,253,.9);
  border-color: rgba(19,39,78,.1);
}
.brand { color: #142342; }
.primary-menu a { color: #526079; }
.primary-menu a:hover { color: #173468; }
.nav-cta { color: #173468 !important; background: rgba(255,255,255,.72); }
.menu-toggle { color: #173468; }
.hero::before {
  background:
    radial-gradient(circle at 76% 32%, rgba(79,126,194,.2), transparent 31%),
    radial-gradient(circle at 70% 55%, rgba(108,139,197,.12), transparent 32%),
    linear-gradient(180deg,#fff 0%,#eef3fb 100%);
}
.hero-grid {
  background-image:
    linear-gradient(rgba(36,66,116,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(36,66,116,.055) 1px,transparent 1px);
}
.hero-orbit { border-color: rgba(37,72,128,.16); box-shadow: inset 0 0 80px rgba(75,121,255,.08); }
.hero h1 { color: #122241; }
.hero h1 em { background-image: linear-gradient(90deg,#315ba3,#5679bd 55%,#263d77); }
.hero-intro { color: #5c6980; }
.button-primary { background: #173468; color: #fff; }
.button-ghost { background: rgba(255,255,255,.65); color: #173468; }
.proof { background: #fff; border-color: rgba(19,39,78,.1); }
.proof-item { border-color: rgba(19,39,78,.1); }
.section-title,.service-card h3,.learning-card h3,.about-copy h2 { color: #142342; }
.section-title em,.about-copy h2 em { color: #426db4; }
.service-card {
  background: #fff;
  border-color: rgba(19,39,78,.1);
}
.service-card:hover { border-color: rgba(49,91,163,.38); }
.service-icon { background: #edf3fc; color: #315ba3; }
.learning-card { background: #fff; border-color: rgba(19,39,78,.1); }
.learning-card.prototype { background: linear-gradient(145deg,#fffaf0,#f4ead7); }
.learning-card.ai { background: linear-gradient(145deg,#f5f8ff,#e6edfb); }
.learning-card.prototype::after { opacity: .42; }
.learning-card.ai::after { opacity: .3; }
.method {
  background: #142342;
  color: #fff;
  border-color: rgba(255,255,255,.1);
}
.method .section-title,.method .method-step h3 { color: #fff; }
.method .section-title em { color: #89a9df; }
.method-step,.method-steps { border-color: rgba(255,255,255,.14); }
.method-step p { color: #aab6ca; }
.manifesto { background: #fff; }
.manifesto blockquote { color: #142342; }
.manifesto blockquote em { color: #426db4; }
.about-copy p { color: #68748a; }
.contact { background: #dfe9f8; color: #142342; }
.contact h2 em { color: #315ba3; }
.contact .button { background: #173468; border-color: #173468; color: #fff; }
.site-footer { background: #fff; color: #142342; border-color: rgba(19,39,78,.1); }
.footer-brand p,.footer-meta { color: #68748a; }
.content-shell h1,.entry-content h2,.entry-content h3 { color: #142342; }
.entry-content { color: #56647c; }

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

@media (max-width: 980px) {
  .menu-toggle { display: grid; place-items: center; }
  .primary-menu {
    position: fixed;
    inset: 84px 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 42px 24px;
    background: rgba(248,250,253,.99);
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .menu-open .primary-menu { transform: none; }
  .primary-menu a { font-size: 22px; }
  .hero-copy { width: 100%; }
  .hero-orbit { opacity: .45; right: -20%; width: 70vw; }
  .proof-grid { grid-template-columns: repeat(2,1fr); }
  .proof-item:nth-child(3) { border-left: 1px solid var(--line); }
  .section-head,.method-grid,.about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 330px; }
  .learning-grid { grid-template-columns: 1fr; }
  .learning-card.large { min-height: 520px; }
  .frameflow-stage { padding-bottom: 470px; }
  .frameflow-copy { width: 100%; }
  .frameflow-screen { top: auto; bottom: 60px; left: 8%; right: auto; width: 84%; transform: perspective(900px) rotateX(4deg); }
}

@media (max-width: 640px) {
  .polaris-guide-toggle { right: 15px; bottom: 15px; }
  .polaris-guide { right: 15px; bottom: 78px; width: calc(100vw - 30px); }
  .nav-shell,.hero-shell,.section-shell,.proof-grid,.footer-grid { width: min(100% - 30px,var(--max)); }
  .nav-shell { min-height: 72px; }
  .primary-menu { inset: 72px 0 0; }
  .hero { padding-top: 122px; }
  .hero h1 { font-size: clamp(3.15rem,16vw,5.2rem); }
  .hero-intro { font-size: 16px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .proof-item { padding: 22px 16px; }
  .proof-item b { font-size: 14px; }
  .section-head { gap: 28px; margin-bottom: 38px; }
  .section { padding: 88px 0; }
  .service-card,.learning-card { padding: 26px; }
  .frameflow-stage { min-height: 760px; padding: 35px 24px 390px; border-radius: 24px; }
  .frameflow-stage h2 { font-size: 3.7rem; }
  .frameflow-stage p { font-size: 15px; }
  .frameflow-screen { bottom: 45px; left: 5%; width: 90%; }
  .learning-card,.learning-card.large { min-height: 430px; }
  .method-step { grid-template-columns: 40px 1fr; }
  .portrait-placeholder { min-height: 480px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
