/* TrailFlow-Agency — mêmes couleurs que les reels (reels/src/theme.ts) */
:root {
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --check-white: 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='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --navy: #06153F;
  --navy-mid: #0B2A7A;
  --navy-deep: #030B24;
  --electric: #3B82F6;
  --cyan: #22D3EE;
  --sky: #93C5FD;
  --ink: #0A0F1E;
  --ink-soft: #5B6478;
  --paper: #F3F6FF;
  --line: #E2E8F7;
  --white: #FFFFFF;
  --error: #C0262D;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(6, 21, 63, 0.08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--electric); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-form { max-width: 760px; }
.center { text-align: center; margin-top: 32px; }

/* Boutons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--electric), #2563EB);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(59, 130, 246, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(59, 130, 246, .45); }
.btn:focus-visible, .chip:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn-small { padding: 9px 18px; font-size: .9rem; box-shadow: none; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.4); box-shadow: none; }
.btn-ghost:hover { border-color: var(--white); box-shadow: none; }
.btn-full { width: 100%; padding: 16px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 21, 63, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: rgba(255,255,255,.8); text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--white); }

/* Haut de page */
.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(34, 211, 238, .18), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(59, 130, 246, .25), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--cyan); margin: 0 0 14px; }
.eyebrow-dark { color: var(--electric); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
.accent { background: linear-gradient(90deg, var(--electric), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: rgba(255,255,255,.75); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; background: var(--cyan); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }

.hero-visual {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.flow-label { margin: 0 0 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sky); }
.flow-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px 16px;
  animation: rise .6s ease both;
}
.flow-card:nth-of-type(2) { animation-delay: .15s; }
.flow-card:nth-of-type(3) { animation-delay: .3s; }
.flow-card:nth-of-type(4) { animation-delay: .45s; }
.flow-card strong { display: block; font-size: .98rem; }
.flow-card small { color: rgba(255,255,255,.65); }
.flow-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.1rem;
  background: linear-gradient(135deg, rgba(59,130,246,.5), rgba(34,211,238,.4));
}
.flow-card-done { border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.1); }
.flow-card-done .flow-icon { background: var(--cyan); color: var(--navy); font-weight: 800; }
.flow-line { width: 2px; height: 16px; margin-left: 35px; background: linear-gradient(var(--electric), var(--cyan)); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow-card { animation: none; }
  .btn { transition: none; }
}

/* Bandeau */
.band { background: var(--paper); border-bottom: 1px solid var(--line); padding: 36px 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.band h2 { font-size: 1.35rem; margin-bottom: 6px; color: var(--navy); }
.band p { margin: 0; color: var(--ink-soft); }
.band .btn { flex: none; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.015em; color: var(--navy); max-width: 760px; }
.section-dark .section-title { color: var(--white); }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 680px; margin: 0 0 40px; }

/* Cartes */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.25rem; color: var(--navy); }
.card > p { color: var(--ink-soft); }
.card-ia { border-color: rgba(59,130,246,.35); background: linear-gradient(180deg, #F7FAFF, var(--white)); }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--paper); color: var(--navy); margin-bottom: 16px; border: 1px solid var(--line); }
.tag-ia { background: var(--electric); color: var(--white); border-color: var(--electric); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--electric) var(--check-white) center / 12px no-repeat; }
.checks em { color: var(--ink-soft); font-style: normal; font-size: .9em; }

.for-who { margin-top: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.for-who p { margin: 0; font-weight: 700; color: var(--navy); }
.chips-static { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips-static li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps h3 { font-size: 1.08rem; color: var(--navy); }
.steps p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.step-num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--cyan)); color: var(--white);
  font-weight: 800; margin-bottom: 14px;
}
.control {
  margin-top: 28px; padding: 26px 30px; border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  border-left: 5px solid var(--cyan);
}
.control h3 { font-size: 1.15rem; }
.control p { margin: 0; color: rgba(255,255,255,.82); }

/* Facturation */
.price-step { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--electric); margin-bottom: 8px; }

/* RGPD */
.rgpd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.rgpd-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px; }
.rgpd-item h3 { font-size: 1.1rem; color: var(--white); }
.rgpd-item p { margin: 0; color: rgba(255,255,255,.78); }
.rgpd-item-wide { grid-column: 1 / -1; border-color: rgba(34,211,238,.5); background: rgba(34,211,238,.08); }

/* Formulaire */
.form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.field { margin: 0 0 24px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; padding: 0; }
.req { color: var(--electric); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #FBFCFF;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 110px; }
::placeholder { color: #A3AABB; opacity: 1; }
input:focus, textarea:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 4px rgba(59,130,246,.15); background: var(--white); }
.invalid { border-color: var(--error) !important; }
.error { color: var(--error); font-size: .9rem; margin: 6px 0 0; }

.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  font: inherit; font-size: .88rem;
  background: var(--paper); color: var(--navy);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--electric); }
.chip.is-on { background: var(--electric); border-color: var(--electric); color: var(--white); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-bottom: 12px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.field .check { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--ink); margin: 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--electric); margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin: 0 0 18px; }
.form-status { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status.ok { background: #E7FAF3; color: #0F6B4B; }
.form-status.ko { background: #FDECEC; color: var(--error); }

/* Contact */
.contact { padding: 64px 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.contact .section-lead { margin: 0; }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-link { font-size: 1.15rem; font-weight: 700; color: var(--navy); text-decoration: none; padding: 12px 20px; border: 1.5px solid var(--line); border-radius: 12px; }
.contact-link:hover { border-color: var(--electric); color: var(--electric); }

/* Pied de page */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 30px 0; font-size: .92rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: rgba(255,255,255,.85); }

/* Pages légales */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 780px; }
.legal h1 { color: var(--navy); font-size: 2.2rem; }
.legal h2 { color: var(--navy); font-size: 1.3rem; margin-top: 36px; }
.legal p, .legal li { color: #2A3245; }
.todo { background: #FFF4CC; color: #6B4E00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.back { display: inline-block; margin-bottom: 24px; text-decoration: none; }

/* Tablette */
@media (max-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .band-inner { flex-direction: column; align-items: flex-start; }
}

/* Téléphone */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .brand span { font-size: .95rem; }
  .section { padding: 64px 0; }
  .cards-2, .rgpd-grid, .steps, .field-row, .checkbox-grid { grid-template-columns: 1fr; }
  .card, .form { padding: 24px 20px; }
  .field-row { gap: 0; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .contact-links { width: 100%; }
  .contact-link { text-align: center; }
}

/* En-tête sur petit écran */
.btn-small .short { display: none; }
.brand span { white-space: nowrap; }
@media (max-width: 640px) {
  .btn-small { padding: 8px 14px; white-space: nowrap; }
  .btn-small .long { display: none; }
  .btn-small .short { display: inline; }
}

/* ===================== Logo de l'en-tête ===================== */
.brand { gap: 12px; }
.brand-badge {
  flex: none;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0E2A78 0%, var(--navy) 60%, var(--navy-deep) 100%);
  border: 1px solid rgba(147, 197, 253, .35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px rgba(3, 11, 36, .45);
}
.brand .brand-badge img { width: 26px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; color: var(--white); }
.brand-text small { margin-top: 4px; font-size: .64rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--cyan); }
.site-footer .brand-badge { width: 36px; height: 36px; border-radius: 10px; }
.site-footer .brand .brand-badge img { width: 22px; }

/* ===================== Fond 3D du haut de page ===================== */
.hero { position: relative; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-scene { perspective: 1100px; }
.hero-visual {
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg));
  transition: transform .25s ease-out;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-visual .flow-card { animation: none; transform: translateZ(30px); transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease; }
.hero-visual .flow-label { transform: translateZ(20px); }
.hero-visual .flow-card.is-active {
  transform: translateZ(60px) scale(1.03);
  border-color: rgba(34, 211, 238, .8);
  background: rgba(34, 211, 238, .14);
  box-shadow: 0 18px 40px rgba(34, 211, 238, .25);
}
.hero-visual .flow-line { position: relative; overflow: hidden; transform: translateZ(30px); }
.hero-visual .flow-line::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 6px; top: -6px;
  background: var(--white); border-radius: 2px; box-shadow: 0 0 8px var(--cyan);
  animation: pulse-down 1.4s linear infinite;
}
@keyframes pulse-down { to { top: 100%; } }

/* ===================== Inclinaison 3D au survol ===================== */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s ease-out, box-shadow .2s ease-out;
  will-change: transform;
  position: relative;
}
.tilt.hero-visual { transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); }
.card.tilt::after, .rgpd-item.tilt::after, .steps li.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,.10), transparent 55%);
  opacity: 0; transition: opacity .2s ease;
}
.card.tilt:hover::after, .rgpd-item.tilt:hover::after, .steps li.tilt:hover::after { opacity: 1; }
.card.tilt:hover { box-shadow: 0 22px 50px rgba(6, 21, 63, .14); }

/* ===================== Apparition en relief au défilement ===================== */
.reveal {
  opacity: 0;
  transform: perspective(900px) translateY(36px) rotateX(14deg);
  transform-origin: 50% 100%;
  transition: opacity .7s ease var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Une fois apparue, la carte reprend son inclinaison au survol. */
.reveal.is-visible.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out, box-shadow .2s ease-out, opacity .7s ease; }

/* ===================== Démo interactive ===================== */
.demo { background: var(--white); }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.demo-tab {
  font: inherit; font-weight: 600; font-size: .98rem;
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--navy);
  transition: all .2s ease;
}
.demo-tab:hover { border-color: var(--electric); transform: translateY(-2px); }
.demo-tab.is-on { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 10px 24px rgba(6, 21, 63, .25); }
.demo-tab:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.demo-stage { display: grid; grid-template-columns: 1fr auto 1.25fr; gap: 22px; align-items: stretch; }
.demo-before, .demo-after { border-radius: 20px; padding: 28px; }
.demo-before { background: var(--paper); border: 1.5px dashed #C9D3EA; }
.demo-after {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(6, 21, 63, .3);
}
.demo-head { margin: 0 0 16px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-head-after { color: var(--sky); }
.demo-badge { font-size: .72rem; letter-spacing: .04em; text-transform: none; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--white); }
.demo-badge.is-ia { background: var(--electric); }

.demo-before ul { list-style: none; padding: 0; margin: 0; }
.demo-before li { padding: 11px 0 11px 30px; position: relative; color: var(--ink); border-top: 1px solid var(--line); transition: color .4s ease, opacity .4s ease; }
.demo-before li::before { content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #B8C2D9; box-sizing: border-box; transition: all .3s ease; }
.demo-before li.is-done { color: #9AA3B8; text-decoration: line-through; opacity: .75; }
.demo-before li.is-done::before { border-color: var(--electric); background: var(--electric) var(--check-white) center / 11px no-repeat; }

.demo-arrow { align-self: center; font-size: 2rem; color: var(--electric); font-weight: 800; }

.demo-after ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; perspective: 800px; }
.demo-after li {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  opacity: .18; transform: rotateX(-35deg) translateY(10px);
  transform-origin: 50% 0;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1.2), border-color .4s ease, background .4s ease;
}
.demo-after li.is-on { opacity: 1; transform: none; border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .08); }
.demo-icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--electric), var(--cyan)); color: var(--white); font-weight: 800;
}
.demo-result { margin: 18px 0 0; font-size: 1.15rem; font-weight: 800; color: var(--cyan); opacity: 0; transform: translateY(8px); transition: all .5s ease; }
.demo-result.is-on { opacity: 1; transform: none; }
.demo-replay { margin-top: 14px; font: inherit; font-size: .88rem; color: var(--sky); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ===================== Contact avec logo 3D ===================== */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); overflow: hidden; }
.contact .section-title { color: var(--white); }
.contact .section-lead { color: rgba(255,255,255,.75); }
.contact-inner { justify-content: flex-start; gap: 40px; }
.contact-text { flex: 1; min-width: 240px; }
.contact-link { color: var(--white); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.05); }
.contact-link:hover { color: var(--cyan); border-color: var(--cyan); }

/* ===================== Petits écrans et mouvement réduit ===================== */
@media (max-width: 900px) {
  .demo-stage { grid-template-columns: 1fr; }
  .demo-arrow { transform: rotate(90deg); justify-self: center; }
  .hero-visual { transform: none; }
}
@media (max-width: 640px) {
  .brand-badge { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.02rem; }
  .demo-before, .demo-after { padding: 22px 18px; }
  .demo-tab { padding: 10px 16px; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual, .tilt { transform: none !important; }
  .hero-visual .flow-line::after, .logo3d-inner, .hero-text > * { animation: none !important; }
  .demo-after li, .demo-result { transition: none; }
}

/* ===================== Mentions légales en bas de page ===================== */
.footer-legal { margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-legal h2 { font-size: 1rem; color: var(--white); margin-bottom: 18px; letter-spacing: .02em; }
.footer-legal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-legal h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sky); margin-bottom: 8px; }
.footer-legal p { margin: 0; font-size: .86rem; line-height: 1.7; color: rgba(255,255,255,.65); }
.footer-legal .todo { font-weight: 600; }
.footer-copy { margin-top: 26px !important; font-size: .8rem !important; color: rgba(255,255,255,.45) !important; }
@media (max-width: 900px) { .footer-legal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-legal-grid { grid-template-columns: 1fr; gap: 20px; } }


/* ===================== Icônes ===================== */
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.flow-icon .i { width: 20px; height: 20px; color: var(--white); }
.flow-card-done .flow-icon .i { color: var(--navy); stroke-width: 3; }
.demo-tab { display: inline-flex; align-items: center; gap: 8px; }
.demo-arrow .i { width: 34px; height: 34px; stroke-width: 2.4; }
.demo-icon .i { width: 18px; height: 18px; }
.demo-replay { display: inline-flex; align-items: center; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; }
.tag .i { width: 14px; height: 14px; stroke-width: 2.6; }
.control h3 { display: flex; align-items: center; gap: 10px; }
.control h3 .i { color: var(--cyan); }
.contact-link { display: inline-flex; align-items: center; gap: 12px; }
.contact-link .i { color: var(--cyan); }
.rgpd-icon, .price-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(34,211,238,.25));
  border: 1px solid rgba(147,197,253,.35); color: var(--white);
}
.rgpd-icon .i, .price-icon .i { width: 22px; height: 22px; }
.price-icon { background: linear-gradient(135deg, var(--electric), var(--cyan)); border: 0; box-shadow: 0 10px 22px rgba(59,130,246,.3); }
.rgpd-item:hover .rgpd-icon { transform: translateZ(30px) rotate(-6deg); }
.rgpd-icon { transition: transform .3s ease; }

/* ===================== Logo 3D de l'en-tête ===================== */
.brand { gap: 10px; }
.logo3d { display: block; width: 48px; height: 40px; perspective: 380px; flex: none; }
.logo3d-inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--lx, 0deg)) rotateY(var(--ly, 0deg));
  transition: transform .4s ease-out;
}
.logo3d-inner img {
  position: absolute; left: 0; right: 0; top: 50%; margin: 0 auto;
  width: 42px; height: auto;
  transform: translateY(-50%) translateZ(calc(var(--z) * 0.9px - 3px));
  /* couches arrière teintées en bleu : l'épaisseur du logo */
  filter: brightness(.55) sepia(1) hue-rotate(180deg) saturate(5);
}
.logo3d-inner img:last-child { filter: drop-shadow(0 0 6px rgba(34,211,238,.35)); }
.logo3d-inner { animation: logo-swing 7s ease-in-out infinite; }
@keyframes logo-swing {
  0%, 100% { transform: rotateX(var(--lx, 6deg)) rotateY(calc(var(--ly, 0deg) - 22deg)); }
  50% { transform: rotateX(var(--lx, 6deg)) rotateY(calc(var(--ly, 0deg) + 22deg)); }
}
.brand:hover .logo3d-inner { animation: logo-spin 1.1s cubic-bezier(.3,.7,.2,1); }
@keyframes logo-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* ===================== Barre de progression ===================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20;
  background: linear-gradient(90deg, var(--electric), var(--cyan));
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 10px rgba(34,211,238,.6);
}

/* ===================== Formes lumineuses qui bougent ===================== */
.section { position: relative; overflow: hidden; }
.section > .wrap { position: relative; z-index: 1; }
.blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(60px); pointer-events: none; will-change: transform; }
.blob-a { width: 380px; height: 380px; right: -120px; top: 8%; background: rgba(59,130,246,.13); }
.blob-b { width: 300px; height: 300px; left: -100px; bottom: 6%; background: rgba(34,211,238,.12); }
.blob-a.blob-right { right: auto; left: -140px; }
.blob-b.blob-left { left: auto; right: -110px; }

/* ===================== Titres mot par mot ===================== */
.split .word {
  display: inline-block; opacity: 0;
  transform: perspective(600px) translateY(.5em) rotateX(-60deg);
  transform-origin: 50% 100%;
  transition: opacity .5s ease, transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--w) * 60ms);
}
.split.is-in .word { opacity: 1; transform: none; }

/* ===================== Entrée du haut de page ===================== */
.hero-text > * { opacity: 0; animation: hero-in .8s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-text > :nth-child(1) { animation-delay: .05s; }
.hero-text > :nth-child(2) { animation-delay: .15s; }
.hero-text > :nth-child(3) { animation-delay: .3s; }
.hero-text > :nth-child(4) { animation-delay: .45s; }
.hero-text > :nth-child(5) { animation-delay: .6s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-scene { animation: scene-in 1.1s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes scene-in { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }

/* Les boutons brillent légèrement */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
.btn-ghost::after { display: none; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

@media (max-width: 640px) {
  .blob-a { width: 240px; height: 240px; }
  .blob-b { width: 200px; height: 200px; }
  .logo3d { width: 42px; height: 36px; }
  .logo3d-inner img { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .split .word, .hero-text > *, .hero-scene { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .btn::after { animation: none; display: none; }
}

/* Bouton « Découvrir nos 2 solutions » : la flèche avance au survol */
.btn-arrow { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-arrow .i { width: 18px; height: 18px; stroke-width: 2.4; transition: transform .25s ease; }
.btn-arrow:hover .i { transform: translateX(5px); }
.btn-arrow:hover { background: rgba(255,255,255,.08); }

/* ===================== Réalisations ===================== */
.section-lead-dark { color: rgba(255,255,255,.72); }
.case {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px; padding: 36px;
}
.case-tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.case .tag { margin: 0; }
.case-tools { font-size: .85rem; color: var(--sky); }
.case h3 { font-size: 1.5rem; color: var(--white); }
.case-client { margin: 0 0 22px; color: rgba(255,255,255,.55); font-size: .92rem; }
.case-steps { margin: 0; display: grid; gap: 16px; }
.case-steps div { padding-left: 18px; border-left: 2px solid rgba(59,130,246,.5); }
.case-steps div:last-child { border-left-color: var(--cyan); }
.case-steps dt { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
.case-steps dd { margin: 0; color: rgba(255,255,255,.82); }

.case-shot { margin: 0; perspective: 1200px; }
.shot-window {
  display: block; width: 100%; padding: 0; border: 1px solid rgba(147,197,253,.3); cursor: zoom-in;
  background: #161616; border-radius: 16px; overflow: hidden; text-align: left; font: inherit; color: inherit;
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
  transform: rotateY(-8deg) rotateX(4deg);
}
.shot-window.tilt { transform: perspective(1200px) rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg)); }
.reveal.is-visible.tilt.shot-window { transform: perspective(1200px) rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg)); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #222; border-bottom: 1px solid #2c2c2c; }
.shot-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.shot-bar span:nth-child(2) { background: #febc2e; }
.shot-bar span:nth-child(3) { background: #28c840; }
.shot-bar em { margin-left: 10px; font-style: normal; font-size: .8rem; color: #9a9a9a; }
.shot-scroll { display: block; overflow: hidden; }
.shot-scroll img { width: 100%; height: auto; display: block; transition: transform .6s ease; }
.shot-window:hover .shot-scroll img { transform: scale(1.04); }
.shot-hint {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  font-size: .82rem; color: var(--sky); background: #1b1b1b; border-top: 1px solid #2c2c2c;
}
.shot-hint .i { width: 14px; height: 14px; }
.case-shot figcaption { margin-top: 14px; font-size: .82rem; color: rgba(255,255,255,.5); text-align: center; }
.realisations .center .btn { margin-top: 8px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(2, 4, 12, .85); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 96vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-close {
  position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 1.4rem; cursor: pointer;
}

@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; padding: 24px 20px; gap: 28px; }
  .shot-window, .shot-window.tilt { transform: none !important; }
  /* Sur téléphone, la capture est large : on la fait glisser au doigt */
  .shot-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .shot-scroll img { width: 900px; max-width: none; }
}

/* Réalisation : texte en haut, capture en grand dessous */
.case { grid-template-columns: 1fr; gap: 32px; }
.case-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shot-window { transform: rotateX(8deg); }
.shot-window.tilt, .reveal.is-visible.tilt.shot-window { transform: perspective(1400px) rotateX(var(--rx, 6deg)) rotateY(var(--ry, 0deg)); }
@media (max-width: 900px) { .case-steps { grid-template-columns: 1fr; gap: 16px; } }
.case > *, .case-shot, .shot-window { min-width: 0; }
@media (max-width: 640px) { .realisations .center .btn { white-space: normal; max-width: 100%; } }

/* Logo : balancement plus doux */
@keyframes logo-swing {
  0%, 100% { transform: rotateX(var(--lx, 6deg)) rotateY(calc(var(--ly, 0deg) - 18deg)); }
  50% { transform: rotateX(var(--lx, 6deg)) rotateY(calc(var(--ly, 0deg) + 18deg)); }
}

/* Capture agrandie sur téléphone : en grand, on la fait glisser au doigt */
@media (max-width: 640px) {
  .lightbox { width: 100vw; max-width: 100vw; margin: auto 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lightbox img { max-width: none; width: auto; height: min(50vh, 320px); max-height: none; border-radius: 0; }
  .lightbox-close { position: fixed; top: 16px; right: 16px; }
}
.lightbox-hint { display: none; }
@media (max-width: 640px) {
  .lightbox-hint { display: block; position: fixed; left: 0; right: 0; bottom: 28px; margin: 0; text-align: center; color: var(--sky); font-weight: 600; font-size: .95rem; }
}
