/* ==========================================================================
   DESIGN v4 « MISSION CONTROL » — couche visuelle hi-tech bleu brillant
   Chargée APRÈS styles.css sur les 5 pages. Pour revenir à l'ancien design,
   il suffit de retirer la ligne <link rel="stylesheet" href="design-v4.css">.
   ========================================================================== */

:root {
  --v4-night: #020a1d;
  --v4-night-2: #061634;
  --v4-blue: #0a7dff;
  --v4-blue-hi: #2f9bff;
  --v4-cyan: #22d3ff;
  --v4-violet: #7a7dff;
  --v4-green: #2ee6a6;
  --v4-amber: #ffb547;
  --v4-ink-soft: #a8bde0;
  --v4-glass: rgba(255, 255, 255, 0.055);
  --v4-glass-line: rgba(140, 200, 255, 0.16);
  --v4-glow: 0 0 0 1px rgba(34, 211, 255, 0.25), 0 18px 60px rgba(10, 125, 255, 0.35);
  --v4-font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --v4-mono: "Cascadia Code", "Consolas", ui-monospace, "SFMono-Regular", monospace;
}

body { font-family: var(--v4-font); }
::selection { background: var(--v4-cyan); color: var(--v4-night); }

/* ---------- En-tête verre sombre ---------- */
.site-header {
  background: rgba(2, 10, 29, 0.94);
  border-bottom: 1px solid rgba(120, 190, 255, 0.12);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
body.scrolled .site-header { background: rgba(2, 10, 29, 0.9); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
.site-header .brand { color: #fff; }
.site-header .brand em { color: var(--v4-cyan); }
.brand-mark {
  position: relative;
  background: conic-gradient(from 210deg, var(--v4-cyan), var(--v4-blue), var(--v4-violet), var(--v4-cyan));
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 8px 26px rgba(10, 125, 255, 0.55);
}
#nav > a:not(.btn) { color: #b5c8e8; }
#nav > a:not(.btn):hover, #nav > a.active:not(.btn) { color: #fff; }
#nav > a:not(.btn)::after { background: linear-gradient(90deg, var(--v4-cyan), var(--v4-blue)); box-shadow: 0 0 12px var(--v4-cyan); }
.nav-toggle { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.16); }
.scroll-progress { background: linear-gradient(90deg, var(--v4-cyan), var(--v4-blue), var(--v4-violet)) !important; box-shadow: 0 0 14px var(--v4-cyan); }

@media (max-width: 980px) {
  #nav { background: #041028 !important; border-color: rgba(120,190,255,.18) !important; box-shadow: 0 30px 70px rgba(0,0,0,.5) !important; }
}

/* ---------- Boutons néon ---------- */
.btn { border-radius: 14px; letter-spacing: -0.005em; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1aa8ff 0%, var(--v4-blue) 45%, #2356ff 100%);
  box-shadow: 0 0 0 1px rgba(150, 220, 255, 0.35) inset, 0 12px 34px rgba(10, 125, 255, 0.45);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(190, 235, 255, 0.6) inset, 0 16px 44px rgba(34, 160, 255, 0.6); }
.v4-dark .btn-outline,
.page-hero .btn-outline,
.v4-hero .btn-outline {
  color: #e6f1ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(150, 205, 255, 0.32);
}
.v4-dark .btn-outline:hover,
.page-hero .btn-outline:hover,
.v4-hero .btn-outline:hover { border-color: var(--v4-cyan); color: #fff; background: rgba(34, 211, 255, 0.08); }
.btn-ghost-light { color: #e6f1ff; background: transparent; border: 1px solid rgba(255,255,255,.25); }

/* ---------- Sous-pages : héros sombre cohérent ---------- */
.page-hero {
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(34, 211, 255, 0.22), transparent 60%),
    radial-gradient(700px 500px at 5% 100%, rgba(122, 125, 255, 0.22), transparent 60%),
    linear-gradient(180deg, var(--v4-night) 0%, var(--v4-night-2) 100%) !important;
  border-bottom: 1px solid rgba(120, 190, 255, 0.14);
}
.page-hero::after {
  border: 0 !important; width: auto !important; height: auto !important; border-radius: 0 !important;
  inset: 0; top: 0 !important; right: 0 !important;
  background-image: linear-gradient(rgba(120,190,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(120,190,255,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.page-hero h1 { color: #fff; }
.page-hero h1 span, .v4-hero h1 span {
  background: linear-gradient(100deg, #6fe3ff 0%, #2f9bff 40%, #9a8cff 75%, #6fe3ff 100%) !important;
  background-size: 220% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important;
}
.page-hero .lead, .page-hero p { color: var(--v4-ink-soft); }
.page-hero .lead strong { color: #fff; }
.page-hero .eyebrow, .v4-hero .eyebrow {
  color: #bfe9ff;
  background: rgba(34, 211, 255, 0.08);
  border: 1px solid rgba(34, 211, 255, 0.28);
}
.page-hero .pill { background: rgba(255,255,255,.05); color: #d6e6ff; border: 1px solid rgba(140,200,255,.2); }
.page-hero .feature-img {
  border-radius: 26px;
  border: 1px solid rgba(140, 200, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(10, 125, 255, 0.2);
}

/* ---------- Cartes : bord lumineux au survol ---------- */
.card, .service-row, .faq-item, .price-box, .form-card, .contact-card {
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.card:hover, .service-row:hover { border-color: rgba(10, 125, 255, 0.45); box-shadow: 0 24px 60px rgba(10, 90, 200, 0.18), 0 0 0 1px rgba(34,211,255,.25); }


/* ---------- CTA & pied de page ---------- */
.footer { background: var(--v4-night) !important; }
.footer .brand { color: #fff; }
.footer .brand em { color: var(--v4-cyan); }

/* ==========================================================================
   PAGE D'ACCUEIL v4
   ========================================================================== */
.v4-dark { background: var(--v4-night); color: #fff; }
.v4-dark p { color: var(--v4-ink-soft); }

/* ----- Héros ----- */
.v4-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 96px 0 150px;
  background:
    radial-gradient(1000px 600px at 78% 18%, rgba(10, 125, 255, 0.35), transparent 60%),
    radial-gradient(700px 520px at 8% 85%, rgba(122, 125, 255, 0.25), transparent 60%),
    linear-gradient(180deg, #020a1d 0%, #041232 70%, #061a42 100%);
  isolation: isolate;
}
.v4-aurora { position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: -1; filter: blur(70px); opacity: .75; pointer-events: none; }
.v4-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: v4Drift 18s ease-in-out infinite alternate; }
.v4-aurora span:nth-child(1) { width: 46%; height: 70%; left: 48%; top: 5%; background: radial-gradient(circle, rgba(34,211,255,.55), transparent 65%); }
.v4-aurora span:nth-child(2) { width: 40%; height: 60%; left: 10%; top: 25%; background: radial-gradient(circle, rgba(10,125,255,.5), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.v4-aurora span:nth-child(3) { width: 30%; height: 50%; left: 70%; top: 40%; background: radial-gradient(circle, rgba(122,125,255,.45), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
@keyframes v4Drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6%, 8%) scale(1.15); }
  100% { transform: translate(5%, -4%) scale(.95); }
}
.v4-grid-floor {
  position: absolute; left: 50%; bottom: -2px; width: 200%; height: 46%; z-index: -1;
  transform: translateX(-50%) perspective(560px) rotateX(64deg); transform-origin: bottom center;
  background-image: linear-gradient(rgba(34,211,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(34,211,255,.28) 1px, transparent 1px);
  background-size: 54px 54px;
  animation: v4Grid 3.6s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}
@keyframes v4Grid { to { background-position: 0 54px; } }
.v4-stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.v4-spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--sx, 70%) var(--sy, 30%), rgba(34, 211, 255, 0.13), transparent 60%); transition: background .1s; }

.v4-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.v4-hero h1 {
  font-size: clamp(2.4rem, 4.1vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 800;
  margin: 20px 0 22px;
  color: #fff;
  text-wrap: balance;
}
.v4-hero h1 span { display: inline; animation: hueFlow 7s ease-in-out infinite; }
.v4-hero .lead { color: var(--v4-ink-soft); font-size: 1.12rem; max-width: 600px; }
.v4-hero .lead strong { color: #fff; font-weight: 650; }
.v4-hero .actions { margin-top: 32px; }
.v4-live {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: .82rem; font-weight: 650; color: #cfeeff;
  background: rgba(34, 211, 255, 0.08); border: 1px solid rgba(34, 211, 255, 0.28);
}
.v4-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--v4-green); box-shadow: 0 0 0 0 rgba(46,230,166,.7); animation: v4Pulse 1.8s infinite; }
@keyframes v4Pulse { 0% { box-shadow: 0 0 0 0 rgba(46,230,166,.7); } 70% { box-shadow: 0 0 0 10px rgba(46,230,166,0); } 100% { box-shadow: 0 0 0 0 rgba(46,230,166,0); } }

.v4-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.v4-trust span { display: inline-flex; align-items: center; gap: 8px; color: #c6d8f3; font-size: .88rem; font-weight: 600; }
.v4-trust span::before {
  content: ""; width: 18px; height: 18px; border-radius: 6px; flex: none;
  background: rgba(46,230,166,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.5 2.4L12 5.2' fill='none' stroke='%232ee6a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid rgba(46,230,166,.35);
}

/* ----- Tableau de bord holographique ----- */
.v4-dash-wrap { position: relative; }
.v4-dash-wrap::before {
  content: ""; position: absolute; inset: 6% -4% -6% 6%; z-index: -1;
  background: conic-gradient(from 120deg, var(--v4-cyan), var(--v4-blue), var(--v4-violet), var(--v4-cyan));
  filter: blur(70px); opacity: .45; border-radius: 40px;
  animation: v4Spin 14s linear infinite;
}
@keyframes v4Spin { to { transform: rotate(360deg); } }
.v4-dash {
  position: relative;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(120, 220, 255, 0.7), rgba(40, 90, 200, 0.2) 40%, rgba(122, 125, 255, 0.55));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s ease-out;
}
.v4-dash-inner {
  border-radius: 25px;
  background: linear-gradient(180deg, rgba(8, 24, 58, 0.94), rgba(4, 14, 36, 0.96));
  backdrop-filter: blur(16px);
  padding: 20px;
  overflow: hidden;
  position: relative;
}
.v4-dash-inner::after {
  content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 255, 0.10), transparent);
  animation: v4Scan 5s linear infinite; pointer-events: none;
}
@keyframes v4Scan { to { top: 110%; } }
.v4-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(140, 200, 255, 0.12); }
.v4-dots { display: flex; gap: 6px; }
.v4-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f6d; }
.v4-dots i:nth-child(2) { background: #ffc24a; }
.v4-dots i:nth-child(3) { background: #2ee6a6; }
.v4-dash-title { font-family: var(--v4-mono); font-size: .76rem; color: #8fb1dd; letter-spacing: .02em; }
.v4-badge-ok { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; color: var(--v4-green); background: rgba(46,230,166,.1); border: 1px solid rgba(46,230,166,.3); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.v4-badge-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.v4-score { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px 2px 14px; }
.v4-ring { width: 104px; height: 104px; position: relative; }
.v4-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.v4-ring .trk { stroke: rgba(140, 200, 255, 0.12); }
.v4-ring .val { stroke: url(#v4RingGrad); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset 1.8s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 6px rgba(34,211,255,.7)); }
.v4-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; }
.v4-ring b small { display: block; font-size: .58rem; font-weight: 700; color: #86a9d6; letter-spacing: .1em; text-transform: uppercase; margin-top: -6px; }
.v4-score h4 { font-size: 1.02rem; margin-bottom: 4px; color: #fff; }
.v4-score p { font-size: .82rem; color: #8fb1dd; line-height: 1.5; }

.v4-pcs { display: grid; gap: 9px; }
.v4-pc {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(140, 200, 255, 0.10);
  transition: border-color .3s, background .3s;
}
.v4-pc:hover { border-color: rgba(34, 211, 255, 0.4); background: rgba(34, 211, 255, 0.06); }
.v4-pc-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(34,211,255,.2), rgba(10,125,255,.25)); border: 1px solid rgba(34,211,255,.3); }
.v4-pc-ico svg { width: 19px; height: 19px; }
.v4-pc strong { display: block; font-size: .86rem; color: #fff; line-height: 1.2; }
.v4-pc em { font-style: normal; font-size: .72rem; color: #7f9fca; font-family: var(--v4-mono); }
.v4-bar { height: 5px; border-radius: 5px; background: rgba(140, 200, 255, 0.12); margin-top: 7px; overflow: hidden; }
.v4-bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; background: linear-gradient(90deg, var(--v4-cyan), var(--v4-blue)); box-shadow: 0 0 10px rgba(34,211,255,.6); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.v4-state { font-size: .7rem; font-weight: 800; letter-spacing: .03em; padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.v4-state.ok { color: var(--v4-green); background: rgba(46,230,166,.1); }
.v4-state.fix { color: var(--v4-amber); background: rgba(255,181,71,.12); }

.v4-site-row { margin-top: 12px; display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(110deg, rgba(10,125,255,.18), rgba(122,125,255,.12)); border: 1px solid rgba(120,170,255,.22); }
.v4-site-row strong { font-size: .85rem; display: block; }
.v4-site-row span { font-size: .72rem; color: #9ec0ea; }
.v4-site-row svg { width: 100%; height: 38px; }
.v4-spark-line { stroke-dasharray: 300; stroke-dashoffset: 300; animation: v4Draw 2.4s .6s ease forwards; }
@keyframes v4Draw { to { stroke-dashoffset: 0; } }

.v4-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(6, 22, 52, 0.85); backdrop-filter: blur(14px);
  border: 1px solid rgba(140, 200, 255, 0.25);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
  font-size: .78rem; color: #cfe2ff; line-height: 1.25;
  animation: v4Float 6s ease-in-out infinite;
}
.v4-chip b { display: block; color: #fff; font-size: .92rem; }
.v4-chip .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; background: linear-gradient(145deg, var(--v4-cyan), var(--v4-blue)); color: #fff; box-shadow: 0 6px 18px rgba(10,125,255,.5); }
.v4-chip.c1 { left: -34px; top: -26px; }
.v4-chip.c2 { right: -26px; bottom: -26px; animation-delay: -3s; }
.v4-chip.c2 .ic { background: linear-gradient(145deg, #2ee6a6, #0aa37a); box-shadow: 0 6px 18px rgba(46,230,166,.4); }
@keyframes v4Float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ----- Bandeau chiffres en verre ----- */
.v4-stats {
  position: relative; z-index: 3;
  margin-top: -78px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 24px; overflow: hidden;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 80px rgba(4, 30, 80, 0.22), 0 0 0 1px rgba(10,125,255,.08);
}
.v4-stat { padding: 26px 26px 24px; position: relative; }
.v4-stat + .v4-stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(transparent, rgba(10,125,255,.25), transparent); }
.v4-stat strong { display: block; font-size: clamp(1.7rem, 2.6vw, 2.25rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; background: linear-gradient(100deg, #04306f, var(--v4-blue) 60%, #18b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v4-stat > span { display: block; font-size: .86rem; color: #50678a; font-weight: 600; }

/* ----- Titres de section ----- */
.v4-section { padding: 110px 0; position: relative; }
.v4-head { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.v4-head.left { margin-left: 0; text-align: left; }
.v4-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--v4-mono); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--v4-blue); }
.v4-kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--v4-cyan), var(--v4-blue)); box-shadow: 0 0 10px var(--v4-cyan); }
.v4-dark .v4-kicker { color: var(--v4-cyan); }
.v4-head h2, .v4-h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.045em; margin: 14px 0 16px; font-weight: 800; text-wrap: balance; }
.v4-head h2 em, .v4-h2 em { font-style: normal; background: linear-gradient(100deg, var(--v4-blue), #17b5ff 60%, var(--v4-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v4-dark .v4-head h2 em, .v4-dark .v4-h2 em { background: linear-gradient(100deg, #6fe3ff, #2f9bff 50%, #a495ff); -webkit-background-clip: text; background-clip: text; }
.v4-head p { color: #51688b; font-size: 1.06rem; }
.v4-dark .v4-head p { color: var(--v4-ink-soft); }

/* ----- Grille « bento » des services ----- */
.v4-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.v4-tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 26px; padding: 30px;
  background: #fff;
  border: 1px solid #dbe8fb;
  box-shadow: 0 14px 40px rgba(6, 60, 150, 0.08);
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.v4-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(34, 170, 255, 0.14), transparent 60%);
}
.v4-tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--v4-cyan), var(--v4-blue) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.v4-tile:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(6, 60, 150, 0.16); border-color: transparent; }
.v4-tile:hover::before, .v4-tile:hover::after { opacity: 1; }
.v4-tile.span3 { grid-column: span 3; }
.v4-tile.span2 { grid-column: span 2; }
.v4-tile.span4 { grid-column: span 4; }
.v4-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.v4-tile .service-logo { width: 60px; height: 60px; margin: 0; filter: drop-shadow(0 10px 18px rgba(10,125,255,.3)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.v4-tile:hover .service-logo { transform: rotate(-6deg) scale(1.08); }
.v4-price { font-size: .78rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; color: #0558c9; background: #eaf3ff; border: 1px solid #cfe3ff; white-space: nowrap; }
.v4-tile h3 { font-size: 1.36rem; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 10px; }
.v4-tile p { color: #50678a; font-size: .96rem; }
.v4-tile ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.v4-tile li { font-size: .78rem; font-weight: 650; color: #2b4a75; background: #f2f7ff; border: 1px solid #e0ecfc; padding: 5px 10px; border-radius: 9px; }
.v4-tile .v4-link { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: .92rem; color: var(--v4-blue); text-decoration: none; }
.v4-tile .v4-link i { font-style: normal; transition: transform .25s; }
.v4-tile:hover .v4-link i { transform: translateX(5px); }

.v4-tile.dark {
  color: #fff; border-color: rgba(120, 190, 255, 0.2);
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(34, 211, 255, 0.25), transparent 60%),
    radial-gradient(400px 300px at 0% 100%, rgba(122, 125, 255, 0.25), transparent 60%),
    linear-gradient(160deg, #06173a, #020a1d);
}
.v4-tile.dark p { color: var(--v4-ink-soft); }
.v4-tile.dark li { color: #d3e4ff; background: rgba(255,255,255,.06); border-color: rgba(140,200,255,.18); }
.v4-tile.dark .v4-price { color: #fff; background: linear-gradient(135deg, var(--v4-cyan), var(--v4-blue)); border: 0; box-shadow: 0 6px 18px rgba(10,125,255,.45); }
.v4-tile.dark .v4-link { color: var(--v4-cyan); }
.v4-tile.dark::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(34, 211, 255, 0.18), transparent 60%); }

/* Mini maquette dans la tuile site web */
.v4-tile-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; height: 100%; }
.v4-tile-split > div:first-child { display: flex; flex-direction: column; }
.v4-mini-browser { align-self: center; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.45); transform: perspective(900px) rotateY(-10deg) rotateX(4deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.v4-tile:hover .v4-mini-browser { transform: perspective(900px) rotateY(0) rotateX(0) scale(1.02); }
.v4-mini-bar { display: flex; gap: 5px; padding: 8px 10px; background: #e9f0fb; }
.v4-mini-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c2d2ea; }
.v4-mini-body { padding: 12px; display: grid; gap: 8px; }
.v4-mini-hero { height: 62px; border-radius: 8px; background: linear-gradient(120deg, #0a7dff, #22d3ff); position: relative; }
.v4-mini-hero::after { content: ""; position: absolute; left: 10px; top: 14px; width: 55%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.85); box-shadow: 0 14px 0 -1px rgba(255,255,255,.55); }
.v4-mini-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.v4-mini-cols i { height: 34px; border-radius: 6px; background: #eef4fd; border: 1px solid #dde8f8; }
.v4-mini-line { height: 6px; border-radius: 3px; background: #e3ecf9; }
.v4-mini-line.s { width: 60%; }

/* ----- Avant / Après (curseur interactif) ----- */
.v4-compare-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.v4-compare {
  position: relative; border-radius: 26px; overflow: hidden; user-select: none;
  aspect-ratio: 16 / 11;
  border: 1px solid rgba(140, 200, 255, 0.22);
  box-shadow: 0 40px 90px rgba(0,0,0,.45);
  --pos: 50%;
  touch-action: pan-y;
  cursor: ew-resize;
}
.v4-pane { position: absolute; inset: 0; padding: 28px; display: flex; flex-direction: column; }
.v4-pane.before { background: linear-gradient(160deg, #2a0f1c, #120814 70%); }
.v4-pane.after { background: linear-gradient(160deg, #04224d, #021028 70%); clip-path: inset(0 0 0 var(--pos)); }
.v4-pane-label { align-self: flex-start; font-family: var(--v4-mono); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 8px; }
.before .v4-pane-label { color: #ff8fa3; background: rgba(255, 95, 125, .12); border: 1px solid rgba(255,95,125,.3); }
.after .v4-pane-label { color: var(--v4-green); background: rgba(46,230,166,.1); border: 1px solid rgba(46,230,166,.3); }
.after .v4-pane-label { align-self: flex-end; }
.v4-metrics { margin-top: auto; display: grid; gap: 16px; }
.v4-metric { display: grid; gap: 7px; }
.v4-metric-top { display: flex; justify-content: space-between; font-size: .86rem; color: #c7d6ee; font-weight: 600; }
.v4-metric-top b { font-family: var(--v4-mono); color: #fff; font-size: .95rem; }
.v4-mbar { height: 9px; border-radius: 9px; background: rgba(255,255,255,.08); overflow: hidden; }
.v4-mbar i { display: block; height: 100%; border-radius: inherit; }
.before .v4-mbar i { background: linear-gradient(90deg, #ff5f7d, #ff9a5f); }
.after .v4-mbar i { background: linear-gradient(90deg, var(--v4-cyan), var(--v4-green)); box-shadow: 0 0 12px rgba(46,230,166,.5); }
.v4-pane-big { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 18px 0 4px; }
.before .v4-pane-big { color: #ff8fa3; }
.after .v4-pane-big { color: #7ff0cc; text-align: right; }
.v4-pane-sub { font-size: .85rem; color: #a6b8d6; }
.after .v4-pane-sub { text-align: right; }
.v4-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; transform: translateX(-1px); background: linear-gradient(transparent, #fff 15%, #fff 85%, transparent); box-shadow: 0 0 18px var(--v4-cyan); z-index: 3; pointer-events: none; }
.v4-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 800; letter-spacing: 3px; color: #04224d;
  background: #fff; box-shadow: 0 0 0 6px rgba(34,211,255,.25), 0 10px 30px rgba(0,0,0,.4);
}
.v4-compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.v4-note { font-size: .78rem; color: #7f9ac2 !important; margin-top: 14px; }

.v4-feature-list { list-style: none; display: grid; gap: 14px; margin: 26px 0 32px; }
.v4-feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--v4-ink-soft); font-size: .96rem; }
.v4-feature-list li b { color: #fff; display: block; font-size: 1rem; }
.v4-feature-list .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,211,255,.1); border: 1px solid rgba(34,211,255,.3); color: var(--v4-cyan); font-weight: 800; font-family: var(--v4-mono); }

/* ----- Process en 4 étapes ----- */
.v4-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.v4-steps::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 37px; height: 2px;
  background: linear-gradient(90deg, transparent, #cfe2fb 8%, #cfe2fb 92%, transparent);
}
.v4-steps::after {
  content: ""; position: absolute; left: 6%; top: 36px; height: 4px; width: 14%; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--v4-cyan), var(--v4-blue), transparent);
  filter: drop-shadow(0 0 8px var(--v4-cyan));
  animation: v4Run 4.5s ease-in-out infinite;
}
@keyframes v4Run { 0% { left: 4%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 82%; opacity: 0; } }
.v4-step { position: relative; text-align: center; padding: 0 8px; }
.v4-step-num {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 24px;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: #fff; border: 1px solid #d5e5fb;
  box-shadow: 0 14px 36px rgba(10, 100, 230, 0.14);
  font-family: var(--v4-mono); font-size: 1.3rem; font-weight: 800; color: var(--v4-blue);
  transition: transform .35s, background .35s, color .35s, box-shadow .35s;
}
.v4-step:hover .v4-step-num { transform: translateY(-6px) rotate(-4deg); color: #fff; background: linear-gradient(145deg, var(--v4-cyan), var(--v4-blue)); box-shadow: 0 18px 40px rgba(10,125,255,.45); }
.v4-step h3 { font-size: 1.14rem; letter-spacing: -.02em; margin-bottom: 8px; }
.v4-step p { color: #52698c; font-size: .92rem; }
.v4-step small { display: inline-block; margin-top: 12px; font-size: .74rem; font-weight: 750; color: #0558c9; background: #eaf3ff; padding: 4px 10px; border-radius: 8px; }

/* ----- Vitrine interactive ----- */
.v4-showcase { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.v4-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 16px; background: #eaf2fe; border: 1px solid #d6e5fa; margin: 8px 0 26px; flex-wrap: wrap; }
.v4-tabs button {
  border: 0; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 700;
  padding: 9px 16px; border-radius: 11px; color: #34527d; background: transparent;
  transition: background .25s, color .25s, box-shadow .25s;
}
.v4-tabs button:hover { color: var(--v4-blue); }
.v4-tabs button[aria-selected=true] { color: #fff; background: linear-gradient(135deg, #18a6ff, var(--v4-blue)); box-shadow: 0 8px 20px rgba(10,125,255,.35); }
.v4-devices { position: relative; padding: 10px 40px 40px 0; }
.v4-browser { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #d3e3f8; box-shadow: 0 40px 90px rgba(6, 50, 130, 0.22); }
.v4-browser-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #f1f6fd; border-bottom: 1px solid #e0eaf8; }
.v4-browser-bar .v4-dots i { width: 9px; height: 9px; }
.v4-url { flex: 1; font-family: var(--v4-mono); font-size: .72rem; color: #5a7398; background: #fff; border: 1px solid #e0eaf8; padding: 5px 12px; border-radius: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v4-url::before { content: "🔒 "; }
.v4-site { --c1: #0a7dff; --c2: #22d3ff; transition: opacity .35s; }
.v4-site.swap { opacity: 0; }
.v4-site-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-size: .74rem; color: #445e85; font-weight: 700; }
.v4-site-nav b { font-size: .95rem; color: #0b1f40; letter-spacing: -.02em; }
.v4-site-nav b i { font-style: normal; color: var(--c1); }
.v4-site-nav span { display: flex; gap: 14px; }
.v4-site-hero { margin: 0 14px; border-radius: 14px; padding: 28px 24px; color: #fff; background: linear-gradient(120deg, var(--c1), var(--c2)); position: relative; overflow: hidden; }
.v4-site-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.14); }
.v4-site-hero h5 { font-size: 1.3rem; letter-spacing: -.03em; line-height: 1.15; max-width: 75%; margin-bottom: 8px; }
.v4-site-hero p { font-size: .78rem; opacity: .9; max-width: 70%; }
.v4-site-hero em { display: inline-block; margin-top: 14px; font-style: normal; font-size: .72rem; font-weight: 800; padding: 7px 12px; border-radius: 9px; background: #fff; color: var(--c1); }
.v4-site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.v4-site-cards div { border-radius: 11px; padding: 12px; background: #f5f9ff; border: 1px solid #e3edf9; font-size: .7rem; color: #4a6288; font-weight: 600; }
.v4-site-cards div b { display: block; color: #0b1f40; font-size: .78rem; margin-bottom: 3px; }
.v4-site-cards div::before { content: ""; display: block; width: 22px; height: 22px; border-radius: 7px; margin-bottom: 8px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.v4-phone {
  position: absolute; right: 0; bottom: 0; width: 150px;
  border-radius: 26px; padding: 7px; background: #0b1730;
  box-shadow: 0 30px 60px rgba(4, 20, 60, 0.4), 0 0 0 1px rgba(255,255,255,.08) inset;
  animation: v4Float 7s ease-in-out infinite;
}
.v4-phone-screen { border-radius: 20px; overflow: hidden; background: #fff; }
.v4-phone-screen .v4-site-hero { margin: 0; border-radius: 0; padding: 26px 14px 18px; }
.v4-phone-screen .v4-site-hero h5 { font-size: .86rem; max-width: 100%; }
.v4-phone-screen .v4-site-hero p { display: none; }
.v4-phone-screen .v4-site-hero em { font-size: .6rem; padding: 5px 8px; margin-top: 8px; }
.v4-phone-map { margin: 10px; height: 74px; border-radius: 12px; position: relative; background:
  linear-gradient(90deg, transparent 48%, #fff 48% 52%, transparent 52%),
  linear-gradient(0deg, transparent 45%, #fff 45% 50%, transparent 50%),
  linear-gradient(135deg, #dff1e6, #e7f0fb); }
.v4-phone-map::after { content: ""; position: absolute; left: 50%; top: 38%; width: 16px; height: 16px; transform: translate(-50%, -50%) rotate(-45deg); border-radius: 50% 50% 50% 0; background: #ff4f5e; box-shadow: 0 4px 10px rgba(255,79,94,.5); }
.v4-phone-line { height: 6px; margin: 8px 12px; border-radius: 3px; background: #e6eef9; }
.v4-phone-line.s { width: 55%; }

.v4-price-card { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; padding: 20px 22px; border-radius: 20px; background: linear-gradient(120deg, #061a42, #0a3b8f); color: #fff; box-shadow: 0 20px 50px rgba(6, 40, 110, .3); }
.v4-price-card > div { flex: 1 1 140px; }
.v4-price-card strong { font-size: 2.3rem; letter-spacing: -.05em; line-height: 1; }
.v4-price-card span { font-size: .84rem; color: #b4cdf2; display: block; }
.v4-price-card .btn { flex: none; }

/* ----- FAQ ----- */
.v4-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.v4-faq details {
  border-radius: 18px; background: #fff; border: 1px solid #dbe8fb;
  box-shadow: 0 8px 26px rgba(6, 60, 150, 0.06); overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.v4-faq details[open] { border-color: rgba(10, 125, 255, 0.4); box-shadow: 0 18px 44px rgba(6, 60, 150, 0.12); }
.v4-faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 750; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.v4-faq summary::-webkit-details-marker { display: none; }
.v4-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; color: var(--v4-blue); background: #eaf3ff; transition: transform .3s, background .3s, color .3s; }
.v4-faq details[open] summary::after { transform: rotate(45deg); color: #fff; background: linear-gradient(135deg, #18a6ff, var(--v4-blue)); }
.v4-faq details p { padding: 0 24px 22px; color: #50678a; }

/* ----- CTA final ----- */
.v4-cta { padding: 0 0 110px; }
.v4-cta-box {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 34px; padding: 64px 60px;
  display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center;
  color: #fff;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(34, 211, 255, 0.45), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(122, 125, 255, 0.4), transparent 60%),
    linear-gradient(120deg, #031235, #0849b5);
  box-shadow: 0 40px 100px rgba(4, 40, 120, 0.35);
}
.v4-cta-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.v4-cta-box h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: -.04em; line-height: 1.1; margin-bottom: 12px; }
.v4-cta-box p { color: #c3d6f5; font-size: 1.05rem; }
.v4-cta-actions { display: grid; gap: 12px; justify-items: stretch; min-width: 260px; }
.v4-cta-actions .btn { justify-content: center; }
.v4-phone-link { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: #fff; padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); transition: background .25s, border-color .25s; }
.v4-phone-link:hover { background: rgba(255,255,255,.12); border-color: var(--v4-cyan); }

/* ----- Barre d'appel mobile ----- */
.v4-mobilebar { display: none; }
@media (max-width: 760px) {
  .v4-mobilebar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px;
    border-radius: 18px; background: rgba(2, 10, 29, 0.9); backdrop-filter: blur(16px);
    border: 1px solid rgba(140, 200, 255, 0.2); box-shadow: 0 20px 50px rgba(0,0,0,.45);
    transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
  body.scrolled .v4-mobilebar { transform: none; }
  .v4-mobilebar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; font-weight: 800; font-size: .9rem; text-decoration: none; color: #fff; background: rgba(255,255,255,.07); }
  .v4-mobilebar a.main { background: linear-gradient(135deg, #18a6ff, var(--v4-blue)); }
  body { padding-bottom: 0; }
  .footer { padding-bottom: 96px; }
}

/* ----- Ticker affiné ----- */
.v4-home .ticker { margin-top: 56px; }

/* ----- Révélations ----- */
.v4-home .reveal { transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), filter .8s; filter: blur(6px); }
.v4-home .reveal.visible { filter: none; }

/* ----- Responsive ----- */
@media (max-width: 1080px) {
  .v4-chip.c1 { left: -10px; }
  .v4-chip.c2 { right: 0; }
}
@media (max-width: 980px) {
  .v4-hero { padding: 64px 0 130px; }
  .v4-hero-grid, .v4-compare-wrap, .v4-showcase { grid-template-columns: 1fr; gap: 50px; }
  .v4-dash-wrap { max-width: 560px; margin: 0 auto; width: 100%; }
  .v4-stats { grid-template-columns: 1fr 1fr; }
  .v4-stat:nth-child(3)::before { display: none; }
  .v4-bento { grid-template-columns: 1fr 1fr; }
  .v4-tile.span2, .v4-tile.span3 { grid-column: span 1; }
  .v4-tile.span4 { grid-column: span 2; }
  .v4-steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .v4-steps::before, .v4-steps::after { display: none; }
  .v4-cta-box { grid-template-columns: 1fr; padding: 48px 34px; }
}
@media (max-width: 620px) {
  .v4-section { padding: 80px 0; }
  .v4-chip { display: none; }
  .v4-score { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .v4-pc { grid-template-columns: 32px 1fr; }
  .v4-pc .v4-state { grid-column: 2; justify-self: start; }
  .v4-stats { grid-template-columns: 1fr 1fr; margin-top: -60px; }
  .v4-stat { padding: 20px 16px; }
  .v4-bento { grid-template-columns: 1fr; }
  .v4-tile.span4 { grid-column: span 1; }
  .v4-tile-split { grid-template-columns: 1fr; }
  .v4-steps { grid-template-columns: 1fr; }
  .v4-devices { padding-right: 20px; }
  .v4-phone { width: 118px; }
  .v4-site-nav span { display: none; }
  .v4-compare { aspect-ratio: 4 / 5; }
  .v4-pane { padding: 20px; }
  .v4-price-card .btn { margin-left: 0; }
  .v4-cta-box { padding: 40px 24px; border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .v4-aurora span, .v4-grid-floor, .v4-dash-wrap::before, .v4-dash-inner::after, .v4-chip, .v4-phone, .v4-steps::after { animation: none !important; }
  .v4-home .reveal { filter: none; }
}

/* Avant/Après : chaque volet occupe sa moitié pour rester lisible */
.v4-pane .v4-metrics { width: 46%; }
.v4-pane.after .v4-metrics { margin-left: auto; }
.v4-pane.before .v4-pane-big, .v4-pane.before .v4-pane-sub { max-width: 48%; }
.v4-pane.after .v4-pane-big, .v4-pane.after .v4-pane-sub { max-width: 48%; margin-left: auto; }
.v4-pane-big { font-size: clamp(2rem, 3.6vw, 3rem); }
@media (max-width: 620px) { .v4-metric-top { flex-direction: column; } .v4-pane-big { font-size: 1.7rem; } }

/* ==========================================================================
   RESPONSIVE — ordinateur, tablette, smartphone (320 px et plus)
   ========================================================================== */
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video, canvas { max-width: 100%; height: auto; }
.v4-ring svg, .v4-pc-ico svg, .v4-site-row svg { height: 100%; }
h1, h2, h3, h4, p, li, a, span, strong { overflow-wrap: break-word; }
h1, h2 { hyphens: manual; }
/* Les colonnes de grille peuvent rétrécir sous la largeur de leur contenu */
.split > *, .hero-grid > *, .grid2 > *, .grid3 > *, .grid4 > *, .process > *, .contact-grid > *,
.footer-grid > *, .v4-hero-grid > *, .v4-compare-wrap > *, .v4-showcase > *, .v4-bento > *,
.v4-tile-split > *, .v4-steps > *, .v4-cta-box > *, .service-row > *, .form-grid > * { min-width: 0; }

/* Tablette (≤ 980 px) */
@media (max-width: 980px) {
  .site-header .nav-wrap { gap: 12px; }
  #nav { max-height: calc(100vh - 96px); overflow-y: auto; }
  #nav > a:not(.btn) { padding: 12px 6px; font-size: 1rem; border-bottom: 1px solid rgba(140,200,255,.1); }
  #nav > a:not(.btn)::after { display: none; }
  #nav .btn { justify-content: center; padding: 14px; }
  .v4-head, .v4-head.left { margin-bottom: 40px; }
  .v4-devices { max-width: 620px; margin: 0 auto; width: 100%; }
  .v4-compare { max-width: 640px; margin: 0 auto; }
  .v4-tile-split { grid-template-columns: 1fr 1fr; }
  .page-hero .feature-img { max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* Grand smartphone / petite tablette (≤ 760 px) */
@media (max-width: 760px) {
  .v4-tile.span4 { grid-column: span 2; }
  .v4-tile-split { grid-template-columns: 1fr; }
  .v4-mini-browser { max-width: 360px; width: 100%; justify-self: center; }
  .v4-cta-actions { min-width: 0; }
  .grid3, .process { grid-template-columns: 1fr; }
}

/* Smartphone (≤ 620 px) */
@media (max-width: 620px) {
  .container { width: min(1180px, calc(100% - 32px)); }
  .site-header { height: 64px; }
  #nav { top: 70px; }
  .brand { font-size: 1.12rem; }
  .brand-mark { width: 34px; height: 34px; }
  .tag, .eyebrow, .pill, .v4-price, .v4-live, .price-pill { white-space: normal; max-width: 100%; }
  .v4-live { align-items: flex-start; line-height: 1.35; border-radius: 14px; }
  .v4-live i { margin-top: 4px; flex: none; }
  .v4-hero { padding: 44px 0 110px; }
  .v4-hero h1 { font-size: clamp(2rem, 9.4vw, 2.7rem); letter-spacing: -.04em; }
  .v4-hero .lead { font-size: 1rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; justify-content: center; }
  .v4-dash-inner { padding: 14px; }
  .v4-dash-title { display: none; }
  .v4-head h2, .v4-h2 { font-size: clamp(1.7rem, 7.6vw, 2.2rem); }
  .v4-tile { padding: 22px; border-radius: 22px; }
  .v4-tile.span4 { grid-column: span 1; }
  .v4-tile h3 { font-size: 1.2rem; }
  .v4-tabs { display: flex; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .v4-tabs::-webkit-scrollbar { display: none; }
  .v4-tabs button { flex: 1 0 auto; padding: 10px 12px; }
  .v4-site-hero { padding: 20px 16px; }
  .v4-site-hero h5 { font-size: 1.02rem; max-width: 100%; }
  .v4-site-hero p { max-width: 100%; }
  .v4-site-cards { grid-template-columns: 1fr 1fr; }
  .v4-site-cards div:nth-child(3) { display: none; }
  .v4-phone { width: 104px; border-radius: 20px; padding: 5px; }
  .v4-phone-screen { border-radius: 16px; }
  .v4-price-card { flex-direction: column; align-items: stretch; text-align: center; }
  .v4-price-card .btn { justify-content: center; }
  .v4-faq summary { padding: 16px 18px; font-size: .96rem; }
  .v4-faq details p { padding: 0 18px 18px; }
  .v4-cta-box h2 { font-size: 1.55rem; }
  .v4-stat strong { font-size: 1.5rem; }
  .v4-stat > span { font-size: .78rem; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem) !important; }
  .split h2, .head h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .service-brandline { flex-wrap: wrap; }
  .price-box, .form-card, .contact-card { padding: 20px !important; }
  .price, .price-big { font-size: clamp(1.8rem, 9vw, 2.4rem); flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr !important; }
  input, select, textarea { font-size: 16px !important; } /* évite le zoom automatique sur iPhone */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .copyright { flex-direction: column; gap: 8px; }
  .cta .btn, .v4-cta .btn { width: 100%; justify-content: center; }
}

/* Très petits écrans (≤ 360 px) */
@media (max-width: 360px) {
  .v4-stats { grid-template-columns: 1fr; }
  .v4-stat + .v4-stat::before { display: none; }
  .v4-stat { padding: 16px 18px; border-top: 1px solid rgba(10,125,255,.1); }
  .v4-stat:first-child { border-top: 0; }
  .v4-ring { width: 88px; height: 88px; }
  .v4-phone { display: none; }
  .v4-devices { padding: 0; }
  .v4-mobilebar a { font-size: .82rem; padding: 11px 6px; }
}

/* Écrans larges paysage peu hauts (téléphone couché) */
@media (max-height: 520px) and (orientation: landscape) {
  .v4-hero { padding: 36px 0 100px; }
  .v4-mobilebar { display: none !important; }
}

/* Listes à coches : le texte (gras + normal) coule naturellement sur toutes les largeurs */
.checklist li { display: block; position: relative; padding: 7px 0 7px 32px; }
.checklist li::before { position: absolute; left: 0; top: 9px; margin-top: 0; }
@media (max-width: 620px) {
  .v4-price-card > div { flex: none; }
}
@media (max-width: 980px) {
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(1, 6, 18, .62); backdrop-filter: blur(4px); cursor: pointer; }
}

/* ==========================================================================
   FINITIONS RESPONSIVE MULTI-ÉCRANS (320 px → 1920 px+, iOS / Android / Tablette)
   ========================================================================== */

/* 1. Carte formulaire de la page Contact (.form-box alignée sur .contact-card) */
.form-box {
  background: #fff;
  border: 1px solid #d7e6fb;
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 18px 46px rgba(6, 52, 138, 0.08);
}
.contact-line a, .contact-line small {
  overflow-wrap: anywhere;
}

/* 2. Comparateur Avant / Après sans débordement vertical quelle que soit la taille de police */
.v4-pane.before {
  position: relative;
  inset: auto;
  min-height: 340px;
}
.v4-pane.after {
  position: absolute;
  inset: 0;
}

/* 3. Petit écran portable / iPad paysage (981 px – 1140 px) : en-tête sur 1 seule ligne garantie */
@media (min-width: 981px) and (max-width: 1140px) {
  .site-header .nav-wrap { gap: 14px; }
  .brand { font-size: 1.12rem; flex-shrink: 0; }
  #nav { gap: 12px; }
  #nav > a:not(.btn) { font-size: .82rem; white-space: nowrap; }
  #nav .btn-sm { padding: 9px 14px; font-size: .81rem; }
}

/* 4. Tablette portrait (761 px – 980 px) : centrage harmonieux de la 3e carte isolée */
@media (min-width: 761px) and (max-width: 980px) {
  .grid3 > :nth-child(3):last-child {
    grid-column: 1 / -1;
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }
}

/* 5. Cibles tactiles ≥ 44×44 px & tiroir mobile confortable (≤ 980 px) */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    line-height: 1;
  }
  #nav {
    max-height: calc(100dvh - 88px);
    overscroll-behavior: contain;
  }
  #nav > a:not(.btn) {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* 6. Barre d'appel rapide mobile compatible encoche / barre d'accueil iPhone (≤ 760 px) */
@media (max-width: 760px) {
  .v4-mobilebar {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .v4-mobilebar a {
    min-height: 46px;
  }
  body.nav-open .v4-mobilebar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(140%);
  }
  .footer {
    padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  }
}

/* 7. Support des tuiles pleine largeur (.span6) et Bento en colonne unique dès ≤ 680 px */
.v4-tile.span6 { grid-column: span 6; }
@media (max-width: 980px) {
  .v4-tile.span6 { grid-column: span 2; }
}
@media (max-width: 680px) {
  .v4-bento { grid-template-columns: 1fr; }
  .v4-tile.span2, .v4-tile.span3, .v4-tile.span4, .v4-tile.span6 { grid-column: 1 / -1; }
}

/* 8. Smartphone (≤ 620 px) : zéro bouton tronqué, cartes aérées, ergonomie au pouce */
@media (max-width: 620px) {
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.28;
    min-height: 46px;
    padding: 12px 18px;
  }
  .service-row .btn,
  .notice-box .btn,
  .contact-card .actions .btn,
  .form-box .btn {
    width: 100%;
    justify-content: center;
  }
  .notice-box,
  .form-box {
    padding: 20px !important;
    border-radius: 20px;
  }
  .v4-compare {
    aspect-ratio: auto;
  }
  .v4-pane.before {
    min-height: 315px;
  }
  .v4-pane {
    padding: 18px 14px;
  }
  .v4-pane-label {
    font-size: .65rem;
    padding: 4px 9px;
    letter-spacing: .04em;
  }
  .v4-metric-top {
    font-size: .76rem;
    gap: 2px;
  }
  .v4-handle::after {
    width: 40px;
    height: 40px;
    font-size: .95rem;
  }
  .v4-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
    gap: 6px;
  }
  .v4-tabs button {
    min-height: 42px;
    padding: 9px 10px;
    text-align: center;
  }
  .badge-popular {
    right: 14px;
    font-size: .68rem;
    padding: 4px 11px;
  }
}

/* 9. Petits smartphones (≤ 440 px) : console Windows & ligne site vitrine sans compression */
@media (max-width: 440px) {
  .v4-dash-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .v4-site-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .v4-site-row svg {
    width: 100%;
    max-width: 180px;
    height: 34px;
  }
  .v4-pane .v4-metrics {
    width: 47%;
  }
  .v4-pane-big {
    font-size: 1.45rem;
  }
  .v4-pane-sub {
    font-size: .75rem;
    line-height: 1.3;
  }
}

@media print {
  .v4-mobilebar, .nav-toggle, .scroll-progress { display: none !important; }
}
