/* ============================================================
   ZENVESTA — Site vitrine
   Tokens : brand/design-tokens.css (incorporés ici pour un déploiement autonome)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #0B1D33;
  --ink-2: #122A47;
  --navy: #16406B;
  --amber: #E8A33D;
  --ember: #C97E2A;
  --menthe: #1E9E77;
  --menthe-ink: #147A59;
  --sand: #F5EFE4;
  --paper: #FBF8F2;
  --line: #E7DFCE;
  --white: #FFFFFF;

  --font-display: 'Sora', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max-w: 1160px;

  --radius-card: 18px;
  --radius-ctl: 12px;

  --shadow-soft: 0 1px 2px rgba(11,29,51,.05), 0 12px 32px -12px rgba(11,29,51,.18);
  --shadow-lift: 0 2px 4px rgba(11,29,51,.06), 0 24px 56px -16px rgba(11,29,51,.28);
  --shadow-amber: 0 12px 40px -12px rgba(232,163,61,.45);

  --ease: cubic-bezier(.22,.61,.24,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .55em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; }
p  { margin: 0 0 1em; }

a { color: inherit; }

::selection { background: rgba(232,163,61,.4); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); scroll-margin-top: 76px; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--white); }

.on-dark { color: var(--white); }
.on-dark-soft { color: rgba(255,255,255,.72); }

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  padding: .6rem 1rem;
  border-radius: var(--radius-ctl);
  font-weight: 600;
  transition: top var(--ease) 150ms;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 .9rem;
}
.eyebrow.light { color: var(--amber); }

.section-head { max-width: 640px; margin: 0 auto 3.25rem; text-align: center; }
.section-lead { color: rgba(11,29,51,.68); font-size: 1.1rem; margin: 0; }
.section-dark .section-lead { color: rgba(255,255,255,.72); }

.accent { color: var(--amber); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--ease) 150ms, box-shadow var(--ease) 150ms,
              background-color var(--ease) 150ms, border-color var(--ease) 150ms;
}
.btn:active { transform: translateY(1px); }

.btn-amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), var(--shadow-amber);
}
.btn-amber:hover { background: var(--ember); }

.btn-ghost {
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,29,51,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background-color var(--ease) 240ms, border-color var(--ease) 240ms;
}
/* Densification légère une fois la page défilée */
.site-header.scrolled {
  background: rgba(11,29,51,.985);
  border-bottom-color: rgba(232,163,61,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--white);
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark .mk-ink { stroke: #FFFFFF; }
.brand-mark .mk-amber { stroke: var(--amber); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: .09em;
}
.brand-name strong { font-weight: 700; }
.brand-name { font-weight: 400; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.site-nav a:not(.nav-cta) {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-weight: 500;
  font-size: .97rem;
  transition: color var(--ease) 150ms;
}
.site-nav a:not(.nav-cta):hover { color: var(--amber); }

.nav-cta {
  padding: .58rem 1.25rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink) !important;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--ease) 150ms;
}
.nav-cta:hover { background: var(--ember); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease) 240ms, opacity 150ms;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(52% 60% at 82% 18%, rgba(232,163,61,.14), transparent 70%),
    radial-gradient(45% 55% at 8% 92%, rgba(22,64,107,.55), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1' opacity='0.05'%3E%3Crect x='34' y='34' width='44' height='44'/%3E%3Crect x='34' y='34' width='44' height='44' transform='rotate(45 56 56)'/%3E%3Ccircle cx='56' cy='56' r='5.5'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .9fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero-lead {
  color: rgba(255,255,255,.78);
  font-size: 1.15rem;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 2rem 0 1.8rem;
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0; padding: 0;
}
.hero-chips li {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  padding: .38rem .85rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}

/* Entrée du hero — cascade calme au chargement */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy > * { animation: riseIn 560ms var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 210ms; }
.hero-copy > :nth-child(5) { animation-delay: 280ms; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.glass-panel { animation: panelIn 640ms var(--ease) 320ms both; }

/* Panneau produits flottants */
.hero-visual { position: relative; }

.glass-panel {
  position: relative;
  min-height: 400px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(18,42,71,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lift);
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(232,163,61,.3);
  border-radius: 50%;
}
.orbit-a { width: 290px; height: 290px; top: 12%; left: 50%; transform: translateX(-50%); }
.orbit-b { width: 420px; height: 420px; top: 2%;  left: 50%; transform: translateX(-50%); opacity: .5; }

.float-card {
  position: absolute;
  width: min(300px, 82%);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 1rem 1.15rem 1.1rem;
  box-shadow: var(--shadow-lift);
}
.fc-1 { top: 12%; left: 4%;  transform: rotate(-2deg); z-index: 3; }
.fc-2 { top: 44%; left: 40%; transform: rotate(1.5deg); z-index: 2; }
.fc-3 { top: 74%; left: 8%;  transform: rotate(-1deg);  z-index: 1; }

.float-card .fc-body {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.float-card h3 { margin: 0; font-size: 1.02rem; }
.float-card p { margin: .1rem 0 0; font-size: .84rem; color: rgba(11,29,51,.62); }

.fc-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.fc-tile img { width: 78%; height: 78%; object-fit: contain; }

.fc-badge {
  display: inline-block;
  margin-bottom: .65rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .22rem .7rem;
  border-radius: 999px;
}
.fc-badge.ok  { background: rgba(30,158,119,.14); color: var(--menthe-ink); }
.fc-badge.dev { background: rgba(232,163,61,.18); color: var(--ember); }

@media (prefers-reduced-motion: no-preference) {
  .fc-1 { animation: float 6.5s var(--ease) infinite alternate; }
  .fc-2 { animation: float 7.5s var(--ease) .8s infinite alternate-reverse; }
  .fc-3 { animation: float 8s   var(--ease) 1.6s infinite alternate; }
  @keyframes float {
    from { translate: 0 0; }
    to   { translate: 0 -9px; }
  }
}

/* Bandeau repères */
.stats-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 1.6rem 0 .4rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.stats-strip > div { padding: .25rem 1.25rem .25rem 0; }
.stats-strip dt {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(120deg, var(--amber), #F6D394);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-strip dd { margin: 0; color: rgba(255,255,255,.66); font-size: .93rem; }

/* ---------- Cartes expertises ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.9rem 1.7rem;
  transition: box-shadow var(--ease) 240ms, border-color var(--ease) 240ms;
}
/* Cartes non cliquables : accentuation sans translation (pas de fausse affordance pressable) */
.card:hover {
  box-shadow: var(--shadow-soft);
  border-color: rgba(232,163,61,.55);
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: rgba(11,29,51,.7); font-size: .98rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--sand);
  color: var(--ember);
  margin-bottom: 1.15rem;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Produits ---------- */
.section-dark { position: relative; overflow: hidden; }
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(40% 55% at 12% 8%, rgba(232,163,61,.08), transparent 70%);
  pointer-events: none;
}

.products-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.product {
  --pa: var(--amber);
  position: relative;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-card);
  padding: 1.9rem 1.7rem 1.7rem;
  overflow: hidden;
  transition: transform var(--ease) 240ms, border-color var(--ease) 240ms;
}
.product::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--pa);
}
.product:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pa) 55%, transparent); }

.p-maak { --pa: #E8A33D; }
.p-maly { --pa: #2FB98C; }
.p-volt { --pa: #6FB3E0; }

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.product-tile {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(255,255,255,.16);
  overflow: hidden;
}
.product-tile img { width: 78%; height: 78%; object-fit: contain; }

.status-pill {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .32rem .8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill.ok  { background: rgba(30,158,119,.16); color: #5BD6AE; }
.status-pill.dev { background: rgba(232,163,61,.16); color: var(--amber); }

/* Point « en production » : pouls doux, opacité uniquement */
.status-pill.ok .dot { animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}

.product-domain {
  margin: -.2em 0 .6em;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--pa);
  text-transform: uppercase;
}
.product-domain::first-letter { text-transform: uppercase; }

.product-desc { color: rgba(255,255,255,.74); font-size: .98rem; }

.product-link {
  position: static;
  display: inline-block;
  margin-top: .4rem;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--pa);
  padding-bottom: .15rem;
  transition: color var(--ease) 150ms;
}
/* Lien étiré : toute la carte produit est cliquable, pas seulement le lien texte */
.product-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.product-link:hover { color: var(--pa); }
.product { cursor: pointer; }

.vision-note {
  position: relative;
  margin: 2.6rem 0 0;
  padding: 1.15rem 1.5rem;
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: var(--radius-card);
  color: rgba(255,255,255,.78);
  font-size: .98rem;
}
.vision-note strong { color: var(--white); }
.vision-note a { color: var(--amber); font-weight: 600; }

/* ---------- Approche ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.6rem;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 2.55rem;
  right: -1.05rem;
  width: .75rem; height: .75rem;
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  transform: rotate(45deg);
}
.steps li:last-child::after { display: none; }

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--ember), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .6rem;
}
.steps p { margin: 0; color: rgba(11,29,51,.7); font-size: .95rem; }

/* ---------- Pourquoi ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.why {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-card);
  padding: 1.7rem 1.7rem 1.5rem;
}
.why p { margin: 0; color: rgba(11,29,51,.7); }

/* ---------- Contact ---------- */
.section-cta {
  background:
    radial-gradient(60% 90% at 88% 10%, rgba(232,163,61,.13), transparent 65%),
    var(--ink);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.contact-info {
  list-style: none;
  margin: 2rem 0 0; padding: 0;
  display: grid;
  gap: 1.1rem;
}
.contact-info span {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .15rem;
}
.contact-info a { color: var(--white); text-decoration: none; transition: color 150ms var(--ease); }
.contact-info a:hover { color: var(--amber); }

.contact-form {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.1rem;
}

.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field label {
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.field label em { font-style: normal; color: rgba(255,255,255,.45); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--white);
  background: rgba(11,29,51,.6);
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: var(--radius-ctl);
  padding: .75rem .95rem;
  transition: border-color var(--ease) 150ms;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.35); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23E8A33D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .95rem center; }
.field select:invalid { color: rgba(255,255,255,.4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note { margin: 0; font-size: .82rem; color: rgba(255,255,255,.5); text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: #081426;
  color: rgba(255,255,255,.72);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { margin: .8rem 0 0; font-size: .95rem; }

.site-footer h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--white);
  margin: .2rem 0 1rem;
}
.site-footer nav { display: grid; gap: .55rem; align-content: start; }
.site-footer nav a, .footer-brand + div a { text-decoration: none; font-size: .95rem; }
.site-footer a { transition: color 150ms var(--ease); }
.site-footer nav a:hover { color: var(--amber); }
.footer-loc { margin: .55rem 0 0; font-size: .9rem; color: rgba(255,255,255,.5); }
.footer-grid > div { display: grid; gap: .55rem; align-content: start; }
.footer-grid > div a { text-decoration: none; font-size: .95rem; }
.footer-grid > div a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: .87rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; }

/* ---------- Barre de progression de lecture ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--amber));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

/* ---------- Bouton retour en haut ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), var(--shadow-amber);
  opacity: 0;
  translate: 0 10px;
  pointer-events: none;
  transition: opacity var(--ease) 240ms, translate var(--ease) 240ms, background-color var(--ease) 150ms;
  z-index: 55;
}
.to-top.visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: var(--ember); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll (animation, pour isoler l'entrée du hover) ---------- */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.reveal { opacity: 0; }
.reveal.is-visible { animation: revealUp 560ms var(--ease) both; }

/* Stagger d'entrée par position dans la grille */
.cards-grid .reveal.is-visible:nth-child(3n+2),
.products-grid .reveal.is-visible:nth-child(3n+2),
.steps .reveal.is-visible:nth-child(2),
.why-grid .reveal.is-visible:nth-child(2) { animation-delay: 60ms; }
.cards-grid .reveal.is-visible:nth-child(3n),
.products-grid .reveal.is-visible:nth-child(3n),
.steps .reveal.is-visible:nth-child(3) { animation-delay: 120ms; }
.steps .reveal.is-visible:nth-child(4) { animation-delay: 180ms; }

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

/* ---------- Impression : vitrine propre sans chrome ---------- */
@media print {
  .site-header, .scroll-progress, .to-top, .hero-visual,
  .hero-actions, .contact-form, .site-footer nav { display: none !important; }
  body { background: #fff; }
  .hero, .section-dark, .section-cta, .site-footer,
  .hero-bg, .section-dark::before { background: #fff !important; }
  .hero, .section-dark, .section-cta, .site-footer,
  .hero *, .section-dark *, .section-cta *, .site-footer *,
  .on-dark, .on-dark-soft { color: #111 !important; }
  .card, .product, .steps li, .why, .contact-info,
  .status-pill, .fc-badge { background: #fff !important; border-color: #ccc !important; }
  .section { padding-block: 1.25rem; }
  a { text-decoration: none; }
}

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .site-nav.open { display: flex; animation: navDrop 240ms var(--ease); }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: none; }
  }
  .site-nav a:not(.nav-cta) {
    padding: 1rem var(--gutter);
    border-top: 1px solid rgba(255,255,255,.07);
  }
  .nav-cta { margin: .9rem var(--gutter) 1.1rem; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cards-grid, .products-grid, .steps, .why-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
  .field-row { grid-template-columns: 1fr; }
  .float-card { position: relative; width: 100%; left: 0 !important; margin-top: .9rem; transform: none; }
  .float-card:first-of-type { margin-top: 1.4rem; }
  .glass-panel { min-height: 0; padding-bottom: 1.4rem; }
  .orbit { display: none; }
  .hero-visual { margin-top: 1rem; }
}
