/* Toxon - toxon.fr. Charte Toxon v1 (déc. 2026) : prune, lavande, violet, citron, Sora + Inter.
   Dégradés violet -> citron ajoutés le 4 déc. 2026 à la demande de Noam (la charte v1 était en aplats). */

@font-face { font-family: 'Sora'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/Sora-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/Sora-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/Sora-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/Inter-SemiBold.woff2') format('woff2'); }

:root {
  --prune: #1C1526;
  --surface: #261D33;
  --surface-2: #2E2440;
  --ligne: #352C42;
  --lavande: #C4B5FD;
  --lavande-pale: #EEE9FF;
  --violet: #5B3FD9;
  --violet-fonce: #4A2FC4;
  --citron: #E6F26B;
  --blanc: #FBFAFF;
  --gris: #A79FB5;
  --gris-clair: #6B6478;
  --succes: #7FD1A0;
  --grad: linear-gradient(110deg, #5B3FD9 0%, #8E73F5 38%, #C4B5FD 62%, #E6F26B 100%);
  --grad-text: linear-gradient(95deg, #C4B5FD 0%, #D9D2F9 35%, #E6F26B 100%);
  --grad-btn: linear-gradient(100deg, #E6F26B 0%, #D7E88F 35%, #C4B5FD 70%, #E6F26B 100%);
  --erreur: #FF8A7A;

  --titre: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --texte: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --pill: 999px;

  --wrap: 1280px;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(96px, 12vw, 160px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--prune);
  color: var(--blanc);
  font-family: var(--texte);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--lavande); color: var(--prune); padding: 12px 18px; border-radius: var(--pill); font-weight: 600;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--citron); outline-offset: 3px; border-radius: 6px; }

/* ---------- Sur-titre (barre + étiquette, comme la référence) ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--texte); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lavande);
  padding: 6px 12px 6px 10px;
  background: var(--surface);
  border-left: 3px solid var(--lavande);
  border-radius: 0 6px 6px 0;
}
.h2 { font-size: clamp(36px, 4.6vw, 60px); }
.lead { color: var(--gris); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; max-width: 46ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--pill);
  font-family: var(--texte); font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .25s var(--spring), background-color .2s ease, color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn svg { width: 14px; height: 14px; flex: none; transition: transform .25s var(--spring); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:hover { transform: translateY(-2px); }
.btn.is-pressed { transform: scale(.94); transition-duration: .08s; }
.btn-cta { background: var(--citron); color: var(--prune); }
.btn-cta:hover { background: #EEF78F; }
.btn-light { background: var(--lavande); color: var(--prune); }
.btn-light:hover { background: #D4C8FE; }
.btn-line { border: 1px solid var(--ligne); color: var(--blanc); background: var(--prune); }
.btn-line:hover { border-color: var(--lavande); color: var(--lavande); }
.btn-dark { background: var(--prune); color: var(--blanc); }
.btn-dark:hover { background: var(--surface); }
.btn .ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: currentColor; opacity: .18; transform: scale(0);
  animation: ripple .55s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.header.is-solid { background: var(--prune); border-bottom-color: var(--ligne); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: block; width: 156px; flex: none; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; gap: 32px; }
.nav a { position: relative; font-size: 15px; color: var(--blanc); padding: 8px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--lavande);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ligne); align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--blanc); border-radius: 2px; position: relative; transition: background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--blanc); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 84px 0 0 0; z-index: 49; background: var(--prune);
  padding: 32px var(--gut); display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a:not(.btn) { font-family: var(--titre); font-size: 30px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.mobile-menu .btn { margin-top: 24px; }

/* ---------- Héros ---------- */
main > .hero { padding: 84px 0 0; }
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; border-bottom: 1px solid var(--ligne); }
.hero-stage { position: relative; flex: 1; display: flex; flex-direction: column; }
.hero-word { padding-top: clamp(28px, 4vh, 56px); }
.hero-word img { width: 100%; height: auto; }
.hero-phone {
  position: absolute; left: 50%; top: clamp(70px, 11vh, 120px); z-index: 2;
  width: clamp(240px, 19vw, 290px);
  transform: translateX(-50%);
}
.hero-bottom {
  position: relative; z-index: 3; margin-top: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-bottom: clamp(32px, 6vh, 64px); padding-top: 32px;
}
.hero-title h1 { font-size: clamp(40px, 4.2vw, 64px); line-height: 1.04; }
.hero-title p { margin-top: 18px; color: var(--gris); max-width: 40ch; font-size: clamp(16px, 1.2vw, 18px); }
.hero-card {
  display: flex; gap: 16px; align-items: stretch;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-lg);
  padding: 12px; width: 380px; flex: none;
}
.hero-card .sym { width: 108px; flex: none; border-radius: var(--r-md); background: var(--citron); display: grid; place-items: center; }
.hero-card .sym img { width: 64px; height: 64px; }
.hero-card .body { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 6px 4px; }
.hero-card strong { font-family: var(--titre); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.hero-card small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.hero-card .btn { margin-top: 10px; align-self: flex-start; min-height: 44px; }

[data-enter] > * { opacity: 0; transform: translateY(18px); }
.is-ready [data-enter] > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-ready [data-enter] > *:nth-child(2) { transition-delay: .15s; }
.is-ready [data-enter] > *:nth-child(3) { transition-delay: .3s; }

/* ---------- Téléphone (objet de marque) ---------- */
.phone {
  position: relative; aspect-ratio: 9 / 18.6;
  background: #0F0B15; border-radius: 44px; padding: 10px;
  border: 1px solid var(--ligne);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column;
  padding: 44px 16px 16px;
}
.phone-notch { position: absolute; top: 12px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: var(--pill); background: #0F0B15; }
.phone-status { position: absolute; top: 15px; left: 24px; right: 24px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--blanc); }
.call-head { text-align: center; padding-top: 10px; }
.call-head .who { font-family: var(--titre); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.call-head .state { font-size: 12px; color: var(--gris); margin-top: 2px; min-height: 18px; }
.onde { display: flex; align-items: center; justify-content: center; gap: 5px; height: 54px; margin: 14px 0 10px; }
.onde i { display: block; width: 6px; border-radius: 3px; background: var(--ligne); height: 12px; transition: height .25s var(--ease), background-color .3s; }
.phone[data-step="1"] .onde i, .phone[data-step="2"] .onde i { background: var(--lavande); }
.bubbles { display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: flex-start; }
.bubble {
  max-width: 88%; font-size: 12.5px; line-height: 1.4; padding: 9px 12px; border-radius: 14px;
  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: left bottom;
  transition: opacity .35s var(--ease), transform .45s var(--spring);
}
.bubble.in { opacity: 1; transform: none; }
.bubble.client { background: var(--ligne); color: var(--blanc); border-bottom-left-radius: 4px; }
.bubble.toxon { align-self: flex-end; background: var(--lavande); color: var(--prune); border-bottom-right-radius: 4px; transform-origin: right bottom; }
.notif {
  position: absolute; left: 10px; right: 10px; top: 40px;
  background: var(--lavande-pale); color: var(--prune); border-radius: 18px; padding: 12px 14px;
  display: flex; gap: 10px; align-items: flex-start;
  opacity: 0; transform: translateY(-14px) scale(.97);
  transition: opacity .35s var(--ease), transform .5s var(--spring);
}
.notif.in { opacity: 1; transform: none; }
.notif img { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--prune); padding: 3px; }
.notif b { display: block; font-size: 12px; font-weight: 600; }
.notif span { display: block; font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.phone-pause {
  position: absolute; right: -14px; bottom: 28px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ligne);
  display: grid; place-items: center; transition: transform .25s var(--spring), border-color .2s;
}
.phone-pause:hover { transform: scale(1.06); border-color: var(--lavande); }
.phone-pause svg { width: 14px; height: 14px; }
.phone-pause .i-play { display: none; }
.phone-pause[aria-pressed="true"] .i-play { display: block; }
.phone-pause[aria-pressed="true"] .i-pause { display: none; }

/* ---------- Sections ---------- */
main > section { padding: var(--sec) 0; }
.sec-head { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.sec-head.center { align-items: center; }

/* À propos : texte qui s'éclaire à la lecture */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.about-text { font-family: var(--titre); font-weight: 500; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.3; letter-spacing: -.02em; }
.about-text .w { color: var(--ligne); transition: color .25s linear; }
.about-text .w.on { color: var(--blanc); }
.trades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(64px, 8vw, 112px); }
.trade {
  background: var(--surface); border-radius: var(--r-lg); padding: 26px 24px; min-height: 168px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  border: 1px solid transparent; transition: border-color .25s ease, transform .25s var(--ease);
}
.trade:hover { border-color: var(--ligne); transform: translateY(-2px); }
.trade h3 { font-size: 22px; font-weight: 600; }
.trade p { color: var(--gris); font-size: 15px; }

/* Étapes */
.steps-grid { display: grid; grid-template-columns: 1fr 1.45fr; gap: 64px; }
.steps-left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.steps-left .sec-head { gap: 24px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ligne); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.step { padding: 28px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.step:nth-child(odd) { border-right: 1px solid var(--ligne); }
.step:nth-child(-n+2) { border-bottom: 1px solid var(--ligne); }
.step .tag { font-size: 12px; letter-spacing: .12em; }
.step h3 { font-size: 26px; font-weight: 500; }
.step p { color: var(--gris); margin-top: 12px; max-width: 34ch; }

/* Le service : 4 cartes alternées */
.services { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 80px); margin-top: clamp(56px, 7vw, 96px); }
.service {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: 18px;
}
.service.flip .service-visual { order: 2; }
.service-body { padding: 24px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.service-body h3 { font-size: clamp(30px, 3vw, 44px); font-weight: 500; }
.service-body p { color: var(--gris); margin-top: 14px; max-width: 42ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; color: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r-sm); padding: 6px 10px; }
.service-visual {
  background: var(--grad); background-size: 160% 160%; background-position: 0% 50%; transition: background-position 1.2s var(--ease); border-radius: var(--r-md); min-height: 400px;
  display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); overflow: hidden;
}
.mock { width: 100%; max-width: 440px; background: var(--prune); border-radius: var(--r-md); padding: 20px; color: var(--blanc); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-k { font-size: 12px; color: var(--gris); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.mock-line { padding: 12px 0; border-bottom: 1px solid var(--ligne); font-size: 14px; }
.mock-line:last-child { border-bottom: 0; }
.mock-line b { font-weight: 600; }
.mock-line small { display: block; color: var(--gris); font-size: 12.5px; margin-top: 2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--succes); flex: none; }
.mini-onde { display: flex; gap: 4px; align-items: center; height: 40px; }
.mini-onde i { width: 5px; border-radius: 3px; background: var(--lavande); }
.mail { background: var(--surface); border-radius: var(--r-sm); padding: 14px; font-size: 13.5px; line-height: 1.5; }
.mail + .mail { margin-top: 10px; }
.mail .from { font-size: 12px; color: var(--gris); margin-bottom: 6px; }
.mail.reply { background: var(--lavande-pale); color: var(--prune); }
.mail.reply .from { color: var(--gris-clair); }
.cal { display: grid; grid-template-columns: 44px repeat(5, 1fr); gap: 6px; font-size: 12px; }
.cal .h { color: var(--gris); text-align: center; padding-bottom: 4px; }
.cal .t { color: var(--gris); font-size: 11px; padding-top: 6px; }
.cal .c { height: 34px; border-radius: 6px; background: var(--surface); }
.cal .c.busy { background: var(--ligne); }
.cal .c.new { background: var(--lavande); color: var(--prune); font-weight: 600; font-size: 11px; display: grid; place-items: center; animation: pulse 3s var(--ease) infinite; }
@keyframes pulse { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.08); } 86% { transform: scale(.98); } }
.sms { display: flex; flex-direction: column; gap: 10px; }
.sms-item { display: flex; gap: 12px; background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; }
.sms-item img { width: 32px; height: 32px; flex: none; }
.sms-item b { font-size: 12px; font-weight: 600; color: var(--gris); display: flex; justify-content: space-between; gap: 8px; }
.sms-item span { display: block; font-size: 14px; margin-top: 2px; }

/* Le signal (moment typographique + onde) */
.signal { text-align: center; }
.signal .h2 { font-size: clamp(40px, 6vw, 88px); max-width: 15ch; margin: 24px auto 0; }
.big-onde { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.2vw, 16px); height: clamp(160px, 22vw, 300px); margin-top: clamp(48px, 6vw, 80px); }
.big-onde i { display: block; width: clamp(14px, 2vw, 28px); border-radius: 999px; background: linear-gradient(180deg, #E6F26B 0%, #C4B5FD 45%, #5B3FD9 100%); opacity: .55; transform-origin: center; }
.big-onde i.peak { background: var(--citron); opacity: 1; }
.signal .lead { margin: 40px auto 0; }

/* Métiers (liste + carte photo) */
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.work-head .lead { max-width: 38ch; }
.work-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; margin-top: 64px; align-items: start; }
.work-list { display: flex; flex-direction: column; }
.work-tab { text-align: left; padding: 20px 0 20px 22px; border-left: 3px solid var(--ligne); border-bottom: 1px solid var(--ligne); transition: border-color .25s ease; }
.work-tab h3 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; color: var(--gris); transition: color .25s ease; }
.work-tab p { color: var(--gris); max-width: 40ch; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease), margin .45s var(--ease); }
.work-tab p span { overflow: hidden; }
.work-tab[aria-selected="true"] { border-left-color: var(--lavande); }
.work-tab[aria-selected="true"] h3 { color: var(--blanc); }
.work-tab[aria-selected="true"] p { grid-template-rows: 1fr; margin-top: 14px; }
.work-tab:hover h3 { color: var(--blanc); }
.work-card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.work-panel { position: absolute; inset: 0; }
.work-panel[hidden] { display: block; visibility: hidden; opacity: 0; }
.work-panel { transition: opacity .45s var(--ease); }
.work-panel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .9s var(--ease); }
.work-panel:not([hidden]) img { transform: scale(1); }
.work-card:hover .work-panel:not([hidden]) img { transform: scale(1.025); }
.work-panel::before { content: ""; position: absolute; inset: 0; background: rgba(28, 21, 38, .5); z-index: 1; }
.work-panel h4 { position: absolute; z-index: 2; left: 28px; top: 24px; font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; }
.work-pills { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.work-pills div { background: var(--prune); border-radius: var(--r-md); padding: 14px 16px; }
.work-pills small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); font-weight: 600; }
.work-pills p { font-size: 14.5px; margin-top: 4px; }

/* Comparatif */
.compare-band { background: var(--surface); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 880px; margin: 64px auto 0; position: relative; }
.col { border-radius: var(--r-lg); overflow: hidden; background: var(--prune); }
.col-head { padding: 22px 24px; font-family: var(--titre); font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.col.us .col-head { background: var(--lavande); color: var(--prune); }
.col.them .col-head { background: var(--ligne); color: var(--blanc); }
.col li { display: flex; gap: 14px; align-items: center; padding: 18px 24px; border-top: 1px solid var(--ligne); font-size: 17px; }
.col li svg { width: 18px; height: 18px; flex: none; }
.col.us li svg { color: var(--succes); }
.col.them li svg.no { color: var(--erreur); }
.col.them li svg.yes { color: var(--gris); }
.vs { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--prune); border: 1px solid var(--ligne); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--gris); }

/* Tarif */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.price-left { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.price-cards { display: flex; flex-direction: column; gap: 24px; }
.price { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-lg); overflow: hidden; }
.price-top { padding: 28px; border-bottom: 1px solid var(--ligne); }
.price-top h3 { font-size: 26px; font-weight: 500; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-top .badge { font-family: var(--texte); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--lavande); color: var(--prune); border-radius: var(--pill); padding: 5px 10px; }
.price-top p { color: var(--gris); margin-top: 8px; }
.price-amount { font-family: var(--titre); font-weight: 600; font-size: 40px; letter-spacing: -.02em; margin-top: 20px; }
.price-amount small { font-family: var(--texte); font-weight: 400; font-size: 15px; color: var(--gris); letter-spacing: 0; margin-left: 6px; }
.price-body { padding: 28px; }
.price-body h4 { font-family: var(--texte); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.price-body ul { margin: 18px 0 26px; display: flex; flex-direction: column; gap: 14px; }
.price-body li { display: flex; gap: 12px; color: var(--gris); }
.price-body li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--lavande); flex: none; }
.price-body .btn { width: 100%; }
.price-note { margin-top: 16px; font-size: 13px; color: var(--gris); display: flex; gap: 8px; align-items: center; }
.price-note svg { width: 16px; height: 16px; }

/* Ce que vous recevez */
.recv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
.recv-col { display: flex; flex-direction: column; gap: 20px; }
.recv-card { background: var(--surface); border-radius: var(--r-lg); padding: 24px; border: 1px solid transparent; transition: border-color .25s ease, transform .25s var(--ease); }
.recv-card:hover { border-color: var(--ligne); transform: translateY(-2px); }
.recv-small { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.recv-small strong { font-family: var(--titre); font-weight: 600; font-size: 40px; letter-spacing: -.02em; line-height: 1; }
.recv-small span { color: var(--gris); text-align: right; max-width: 22ch; }
.recv-big { min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.recv-big.lav { background: var(--lavande); color: var(--prune); }
.recv-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--gris); }
.recv-big.lav .recv-meta { color: var(--gris-clair); }
.recv-meta img { width: 36px; height: 36px; }
.recv-quote { font-family: var(--titre); font-weight: 500; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.3; letter-spacing: -.02em; max-width: 24ch; }
.recv-foot { display: flex; align-items: center; gap: 12px; }
.recv-foot .av { width: 44px; height: 44px; border-radius: 12px; background: var(--ligne); display: grid; place-items: center; font-family: var(--titre); font-weight: 600; }
.recv-big.lav .recv-foot .av { background: var(--prune); color: var(--lavande); }
.recv-foot b { display: block; font-weight: 600; }
.recv-foot small { color: var(--gris); }
.recv-big.lav .recv-foot small { color: var(--gris-clair); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.faq-left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--r-md); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font-family: var(--titre); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 20px; height: 20px; flex: none; position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: var(--blanc); border-radius: 2px; transition: transform .3s var(--spring); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 24px 22px; color: var(--gris); overflow: hidden; }
.faq .ans p { max-width: 60ch; }
.faq .ans a { color: var(--lavande); text-decoration: underline; text-underline-offset: 3px; }

/* Appel final */
.final { position: relative; overflow: hidden; text-align: center; isolation: isolate; border-top: 1px solid var(--ligne); }
.final-glow { position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 140%; height: 130%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, rgba(230,242,107,.55) 0%, rgba(196,181,253,.45) 28%, rgba(91,63,217,.45) 48%, rgba(28,21,38,0) 70%); pointer-events: none; }
.final .h2 { margin: 24px auto 0; max-width: 18ch; }
.final p { color: var(--gris); margin: 20px auto 0; max-width: 48ch; font-size: 18px; }
.final .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }


/* Pied de page */
.footer { position: relative; overflow: hidden; padding-top: clamp(80px, 10vw, 128px); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.foot-claim { font-family: var(--titre); font-weight: 600; font-size: clamp(36px, 3.6vw, 52px); letter-spacing: -.02em; line-height: 1.1; grid-column: 1 / 3; }
.foot-grid h2 { font-family: var(--texte); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gris); margin-bottom: 18px; }
.foot-links a { display: inline-block; font-size: 20px; padding: 6px 0; position: relative; }
.foot-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--lavande); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.foot-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.foot-contact a { display: inline-block; font-size: 20px; padding: 6px 0; }
.foot-contact a:hover { color: var(--lavande); }
.foot-word { margin-top: clamp(64px, 8vw, 112px); }
.foot-word img { width: 100%; height: auto; }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 0 36px; font-size: 13.5px; color: var(--gris); }
.foot-bottom a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ligne); }
.foot-bottom a:hover { color: var(--lavande); text-decoration-color: var(--lavande); }

/* Pages légales et 404 */
.page { padding: 160px 0 var(--sec); }
.page h1 { font-size: clamp(40px, 5vw, 64px); margin-top: 24px; }
.page .intro { color: var(--gris); margin-top: 16px; }
.legal { max-width: 760px; }
.legal section { padding: 32px 0; border-bottom: 1px solid var(--ligne); }
.legal h2 { font-size: 24px; font-weight: 500; margin-bottom: 12px; }
.legal p { color: var(--gris); margin-top: 8px; }
.legal a { color: var(--lavande); text-decoration: underline; text-underline-offset: 3px; }
.nf { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; }
.nf .btn { margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta .btn { display: none; }
  .trades { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .steps-grid, .work-grid, .price-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .price-left { position: static; }
  .service { grid-template-columns: 1fr; }
  .service.flip .service-visual { order: 0; }
  .service-visual { min-height: 340px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 761px) and (max-width: 899px) {
  .hero-phone { left: auto; right: var(--gut); transform: none; width: 240px; }
  .hero-bottom { max-width: calc(100% - 280px); }
  .hero-card { width: 100%; max-width: 380px; }
}
@media (max-width: 760px) {
  .hero-word { padding-top: 24px; }
  .hero-phone { position: relative; left: auto; top: auto; transform: none; margin: -10vw auto 0; width: min(200px, 54vw); }
  .phone { border-radius: 34px; padding: 8px; }
  .phone-screen { border-radius: 27px; padding: 38px 12px 12px; }
  .bubble { font-size: 11px; padding: 7px 10px; }
  .call-head .who { font-size: 17px; }
  .onde { height: 40px; margin: 8px 0; }
  .notif { padding: 10px; }
  .notif span { font-size: 11px; }
  .hero-title h1 { font-size: 40px; }
  .hero-card { width: 100%; }
  .hero-card .sym { width: 64px; }
  .hero-card .sym img { width: 44px; height: 44px; }
  .hero-card .btn { padding: 0 16px; white-space: nowrap; }
  .recv-small strong { font-size: 28px; white-space: nowrap; }
  .hero-bottom { padding-top: 40px; }
  .phone-pause { right: -8px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; border-right: 0 !important; border-bottom: 1px solid var(--ligne); }
  .step:last-child { border-bottom: 0; }
  .compare { grid-template-columns: 1fr; gap: 20px; }
  .vs { display: none; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .work-card { aspect-ratio: 3 / 4; }
  .work-pills { grid-template-columns: 1fr; }
  .recv { grid-template-columns: 1fr; }
  .recv-big { min-height: 300px; }
  .trades { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trade { min-height: 0; padding: 18px 16px; }
  .trade h3 { font-size: 17px; }
  .trade p { font-size: 13.5px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-claim { grid-column: auto; }
  .btn-block-sm { width: 100%; }
  .final .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-enter] > * { opacity: 1 !important; transform: none !important; }
  .about-text .w { color: var(--blanc); }
}


/* =================== V2 : multipage, dégradés, animations =================== */

/* Transitions entre pages (navigateurs compatibles) */
@view-transition { navigation: auto; }
.header { view-transition-name: entete; }
::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(24px); } }

/* Texte en dégradé (ligne de réponse, jamais un mot isolé) */
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Bouton principal en dégradé citron -> lavande, reflet qui glisse au survol */
.btn-grad { background: var(--grad-btn); background-size: 220% 100%; background-position: 0% 50%; color: var(--prune); transition: transform .25s var(--spring), background-position .6s var(--ease); }
.btn-grad:hover { background-position: 100% 50%; }
.btn[aria-current="page"] { outline: 1px solid var(--citron); outline-offset: 2px; }

/* En-tête qui se cache en descendant, revient en remontant */
.header { transition: background-color .3s ease, border-color .3s ease, transform .45s var(--ease); }
.header.is-hidden { transform: translateY(-100%); }
.nav a[aria-current="page"] { color: var(--citron); }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--citron); }
.mobile-menu a[aria-current="page"] { color: var(--citron); }

/* Sur-titre : barre en dégradé */
.tag { border-left: 0; position: relative; padding-left: 13px; }
.tag::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #E6F26B, #5B3FD9); }

/* Halos du héros (comme la lueur de la référence, en violet et citron) */
.hero { isolation: isolate; }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero-glow-a { left: -22%; top: 4%; width: 70vw; height: 70vw; background: radial-gradient(closest-side, rgba(91,63,217,.85), rgba(91,63,217,.35) 45%, rgba(91,63,217,0) 72%); animation: drift-a 18s ease-in-out infinite alternate; }
.hero-glow-b { right: -18%; bottom: -38%; width: 62vw; height: 62vw; background: radial-gradient(closest-side, rgba(230,242,107,.5), rgba(196,181,253,.28) 45%, rgba(28,21,38,0) 72%); animation: drift-b 22s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(6vw, 4vh) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-5vw, -6vh) scale(1.1); } }
.hero-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(196,181,253,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(196,181,253,.06) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); }
.hero-card .sym { background: var(--grad); }
.hero-card { background: rgba(38,29,51,.82); }
.hero-title h1 .hl { display: inline-block; }
.hero-phone .phone { border-color: #4a3d63; }

/* En-tête des pages intérieures */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 180px 0 96px; border-bottom: 1px solid var(--ligne); }
main > .page-hero { padding: 180px 0 96px; }
.ph-glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.ph-glow-a { left: -15%; top: -40%; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgba(91,63,217,.75), rgba(91,63,217,0) 70%); animation: drift-a 18s ease-in-out infinite alternate; }
.ph-glow-b { right: -10%; top: 10%; width: 40vw; height: 40vw; background: radial-gradient(closest-side, rgba(230,242,107,.35), rgba(196,181,253,.15) 50%, rgba(28,21,38,0) 72%); animation: drift-b 22s ease-in-out infinite alternate; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--gris); margin-bottom: 28px; }
.crumbs a:hover { color: var(--lavande); }
.page-title { font-size: clamp(44px, 7vw, 104px); line-height: 1; max-width: 16ch; margin-top: 24px; }
.page-hero .lead { margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); }
main > section.tight { padding-top: clamp(64px, 8vw, 112px); }

/* Split de titres (GSAP SplitText, masque par ligne) */
[data-split] { text-wrap: wrap; }
[data-split] .split-line-mask { padding: .14em 0 .16em; margin: -.14em 0 -.16em; }

/* Bandeau défilant des métiers */
.about { padding-bottom: 0 !important; }
.marquee { position: relative; margin-top: clamp(72px, 9vw, 128px); padding: 28px 0 var(--sec); overflow: hidden; }
.marquee-row { display: flex; overflow: hidden; }
.marquee-row + .marquee-row { margin-top: 8px; }
.marquee-track { display: flex; align-items: center; flex: none; gap: 0; will-change: transform; }
.marquee-track span { font-family: var(--titre); font-weight: 600; font-size: clamp(44px, 7vw, 104px); letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; padding: 0 .35em; }
.row-b .marquee-track span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row-a .marquee-track span { color: transparent; -webkit-text-stroke: 1.5px #4a3d63; }
.marquee-track i { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--grad); }
.marquee-pause { position: absolute; right: var(--gut); bottom: calc(var(--sec) - 64px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--prune); display: grid; place-items: center; }
.marquee-pause svg { width: 14px; height: 14px; }
.marquee-pause .i-play { display: none; }
.marquee-pause[aria-pressed="true"] .i-play { display: block; }
.marquee-pause[aria-pressed="true"] .i-pause { display: none; }

/* Récit d'un appel : étapes à gauche, téléphone collant à droite */
.story { border-top: 1px solid var(--ligne); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 56px; }
.story-steps { list-style: none; padding: 0; margin: 0; }
.story-step { display: flex; gap: 24px; min-height: 62vh; padding: 28px 0; align-items: center; opacity: .32; transition: opacity .5s var(--ease); }
.story-step.is-active { opacity: 1; }
.story-num { font-family: var(--titre); font-weight: 600; font-size: 15px; color: var(--prune); background: var(--grad); border-radius: var(--pill); padding: 6px 12px; flex: none; }
.story-step h3 { font-size: clamp(32px, 3.4vw, 52px); font-weight: 600; }
.story-step p { color: var(--gris); font-size: 18px; margin-top: 14px; max-width: 34ch; }
.story-device { position: sticky; top: 12vh; height: 76vh; display: flex; align-items: center; justify-content: center; gap: 28px; }
.story-progress { width: 3px; height: 60%; background: var(--ligne); border-radius: 3px; overflow: hidden; }
.story-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, #E6F26B, #C4B5FD, #5B3FD9); transform-origin: top; transform: scaleY(0); }
.story-phone { width: min(300px, 26vw); }
.story-phone .phone-screen { padding: 0; }
.sscreen { position: absolute; inset: 0; padding: 48px 16px 16px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transition: opacity .45s var(--ease), transform .55s var(--spring), visibility 0s .45s; }
.sscreen.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .55s var(--spring), visibility 0s; }
.sscreen .who { font-family: var(--titre); font-weight: 600; font-size: 22px; text-align: center; letter-spacing: -.02em; }
.sscreen .state { text-align: center; font-size: 12.5px; color: var(--gris); margin-top: 4px; }
.sscreen .bubble { margin-top: 8px; }
.sscreen .bubble.client { align-self: flex-start; }
.ring { position: relative; width: 110px; height: 110px; margin: 40px auto 22px; display: grid; place-items: center; }
.ring-face { position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 50%; background: var(--grad); color: var(--prune); display: grid; place-items: center; font-family: var(--titre); font-weight: 700; font-size: 28px; }
.ring-wave { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lavande); animation: ring 2s var(--ease) infinite; }
.ring-wave + .ring-wave { animation-delay: 1s; }
@keyframes ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.ring-actions { margin-top: auto; display: flex; justify-content: space-around; padding-bottom: 18px; }
.ra { width: 56px; height: 56px; border-radius: 50%; }
.ra.no { background: #FF8A7A; }
.ra.yes { background: var(--succes); animation: nudge 1.2s var(--spring) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-6px); } 80% { transform: translateY(0); } }
.onde-live { height: 44px; margin: 10px 0 6px; }
.onde-live i { background: var(--lavande); animation: lvl 1s ease-in-out infinite alternate; }
.onde-live i:nth-child(odd) { animation-duration: .8s; }
.onde-live i:nth-child(3n) { animation-duration: 1.2s; }
.onde-live i:nth-child(5) { background: var(--citron); }
@keyframes lvl { from { height: 8px; } to { height: 40px; } }
.mini-cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.mini-cal-head b { font-family: var(--titre); font-size: 22px; }
.mini-cal-head span { font-size: 12px; color: var(--gris); }
.mini-cal { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.slot { display: flex; gap: 12px; align-items: center; background: var(--prune); border-radius: 12px; padding: 12px; font-size: 13px; }
.slot span { color: var(--gris); width: 34px; flex: none; }
.slot.busy b { color: var(--gris); font-weight: 500; }
.slot.new { background: var(--grad); color: var(--prune); }
.slot.new span { color: var(--prune); }
.sscreen.is-on .slot.new { animation: pop .7s var(--spring) .25s both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.lock-time { font-family: var(--titre); font-weight: 600; font-size: 64px; text-align: center; margin-top: 30px; letter-spacing: -.03em; }
.lock-date { text-align: center; color: var(--gris); font-size: 13px; }
.sscreen .notif { position: relative; top: auto; left: auto; right: auto; margin-top: 28px; }
.sscreen.is-on .notif { animation: drop .7s var(--spring) .2s both; }
@keyframes drop { from { transform: translateY(-24px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }

/* Grille des fonctions (accueil) + survol à halo dégradé */
.func-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.spot { position: relative; isolation: isolate; overflow: hidden; --mx: 50%; --my: 50%; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s ease; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(196,181,253,.22), rgba(230,242,107,.08) 40%, transparent 65%); }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx) var(--my), #E6F26B, #8E73F5 45%, transparent 75%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.spot:hover::before, .spot:hover::after { opacity: 1; }
.func { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-radius: var(--r-lg); padding: 28px 24px; min-height: 340px; transition: transform .3s var(--ease); }
.func:hover { transform: translateY(-4px); }
.func-num { font-family: var(--titre); font-weight: 600; font-size: 14px; color: var(--gris); }
.func-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--grad); margin: 8px 0 auto; position: relative; transition: transform .5s var(--spring); }
.func:hover .func-ico { transform: rotate(-6deg) scale(1.06); }
.func-ico::after { content: ""; position: absolute; inset: 16px; background: var(--prune); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico-phone { --ico: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z"/></svg>'); }
.ico-mail { --ico: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7.2L4.4 7H4v.6l8 5.6 8-5.6V7h-.4z"/></svg>'); }
.ico-cal { --ico: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 2h2v2h6V2h2v2h3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3zM5 9v10h14V9zm2 2h4v4H7z"/></svg>'); }
.ico-bell { --ico: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a6 6 0 0 1 6 6v4l2 3v1H4v-1l2-3V8a6 6 0 0 1 6-6zm-2 16h4a2 2 0 0 1-4 0z"/></svg>'); }
.func h3 { font-size: 24px; font-weight: 600; }
.func p { color: var(--gris); }
.func-more { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; color: var(--lavande); }
.func-more svg { width: 12px; height: 12px; transition: transform .25s var(--spring); }
.func:hover .func-more svg { transform: translate(3px, -3px); }

/* Photos des métiers (accueil) */
.tp-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 16px; margin-top: 56px; height: clamp(360px, 42vw, 560px); }
.tp { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.tp img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tp:hover img { transform: scale(1.03); }
.tp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,21,38,0) 45%, rgba(28,21,38,.85) 100%); }
.tp span { position: absolute; z-index: 1; left: 20px; bottom: 18px; right: 20px; font-family: var(--titre); font-weight: 600; font-size: 22px; }

/* Comparatif : lueur derrière, comme la référence */
.compare-band { position: relative; overflow: hidden; isolation: isolate; background: var(--prune); }
.compare-band::before { content: ""; position: absolute; z-index: -1; left: -25%; top: 10%; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(91,63,217,.6), rgba(91,63,217,0) 70%); }
.compare-band::after { content: ""; position: absolute; z-index: -1; right: -20%; bottom: -30%; width: 55%; height: 80%; background: radial-gradient(closest-side, rgba(230,242,107,.22), rgba(230,242,107,0) 70%); }
.col.us .col-head { background: linear-gradient(100deg, #C4B5FD 0%, #D9D2F9 45%, #E6F26B 100%); }
.col li svg path { stroke-dasharray: 30; stroke-dashoffset: 0; }

/* Tarif sur une ligne, besoins, variables, contact */
.price-cards-row { flex-direction: row; align-items: stretch; }
.price-cards-row .price { flex: 1; }
.need-list { display: flex; flex-direction: column; border-top: 1px solid var(--ligne); }
.need-list li { padding: 18px 0; border-bottom: 1px solid var(--ligne); display: flex; flex-direction: column; gap: 2px; }
.need-list span { font-family: var(--titre); font-weight: 500; font-size: 20px; }
.need-list small { color: var(--gris); font-size: 14.5px; }
.vary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.vary-item { background: var(--surface); border-radius: var(--r-lg); padding: 28px; min-height: 240px; display: flex; flex-direction: column; gap: 12px; }
.vary-item h3 { font-size: 24px; font-weight: 600; margin-top: auto; }
.vary-item p { color: var(--gris); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-height: 380px; transition: transform .3s var(--ease); }
.contact-card:hover { transform: translateY(-4px); }
.contact-card strong { font-family: var(--titre); font-weight: 600; font-size: clamp(26px, 3vw, 42px); letter-spacing: -.02em; word-break: break-word; }
.contact-card p { color: var(--gris); max-width: 40ch; }
.contact-card .btn { margin-top: auto; }
.nf-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pied de page : lueur derrière le grand mot, comme la référence */
.footer { isolation: isolate; }
.footer-glow { position: absolute; z-index: -1; left: 50%; bottom: -35%; width: 120%; height: 80%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, rgba(230,242,107,.35) 0%, rgba(142,115,245,.45) 30%, rgba(91,63,217,.25) 50%, rgba(28,21,38,0) 70%); pointer-events: none; }
.foot-word { overflow: hidden; }

/* Panneaux du service : le dégradé glisse au survol */
.service:hover .service-visual { background-position: 100% 50%; }

@media (max-width: 1100px) {
  .func-grid { grid-template-columns: 1fr 1fr; }
  .tp-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .tp { aspect-ratio: 4 / 5; }
  .story-grid { grid-template-columns: 1fr 300px; gap: 32px; }
  .story-phone { width: 240px; }
  .story-progress { display: none; }
  .vary { grid-template-columns: 1fr; }
  .vary-item { min-height: 0; }
  .vary-item h3 { margin-top: 8px; }
}
@media (max-width: 760px) {
  .page-hero, main > .page-hero { padding: 140px 0 64px; }
  .func-grid { grid-template-columns: 1fr; }
  .func { min-height: 0; }
  .func-ico { margin-bottom: 8px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-device { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 22px 0; border-bottom: 1px solid var(--ligne); align-items: flex-start; }
  .story-step h3 { font-size: 28px; }
  .price-cards-row { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 0; }
  .marquee-track span { font-size: 40px; }
  .marquee-track i { width: 12px; height: 12px; }
  .hero-glow-a { width: 140vw; height: 140vw; left: -60%; }
  .hero-glow-b { width: 120vw; height: 120vw; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .sscreen { transition: none; }
}

/* =================== V3 : tailles fluides selon la largeur ET la hauteur de l'écran ===================
   --u vaut 1 % de la largeur, mais jamais plus de 1,75 % de la hauteur : sur un MacBook (1440 x 790 utiles)
   ou un écran 1280 x 720, tout se resserre ; sur un 2560, le conteneur s'élargit au lieu de rester à 1280. */
:root {
  --u: min(1vw, 1.75svh);
  --wrap: clamp(1120px, 72vw, 1560px);
  --hdr: 84px;
  --sec: clamp(64px, calc(9.5 * var(--u)), 150px);
}
.header .wrap { height: var(--hdr); }
main > .hero { padding-top: var(--hdr); }
.mobile-menu { inset: var(--hdr) 0 0 0; }

.h2 { font-size: clamp(30px, calc(3.9 * var(--u)), 60px); }
.lead { font-size: clamp(15px, calc(1.15 * var(--u)), 19px); }
.page-title { font-size: clamp(38px, calc(6 * var(--u)), 96px); max-width: 17ch; }
main > .page-hero, .page-hero { padding: calc(var(--hdr) + clamp(40px, calc(6 * var(--u)), 110px)) 0 clamp(48px, calc(5.5 * var(--u)), 96px); }
.about-text { font-size: clamp(21px, calc(2.4 * var(--u)), 38px); }
.marquee-track span { font-size: clamp(34px, calc(6 * var(--u)), 100px); }
.story-step h3 { font-size: clamp(26px, calc(3 * var(--u)), 48px); }
.story-step { min-height: 56svh; }
.story-device { top: calc(var(--hdr) + 3svh); height: calc(100svh - var(--hdr) - 6svh); }
.story-phone { width: clamp(220px, min(24vw, calc((100svh - var(--hdr)) * .4)), 300px); }
.big-onde { height: clamp(120px, calc(18 * var(--u)), 300px); }
.signal .h2 { font-size: clamp(36px, calc(5.6 * var(--u)), 92px); }
.service-visual { min-height: clamp(280px, calc(26 * var(--u)), 420px); }
.service-body h3, .work-tab h3, .work-panel h4 { font-size: clamp(26px, calc(2.8 * var(--u)), 44px); }
.func { min-height: clamp(260px, calc(23 * var(--u)), 360px); }
.tp-grid { height: clamp(320px, calc(38 * var(--u)), 600px); }
.foot-claim { font-size: clamp(30px, calc(3.4 * var(--u)), 56px); }
.step { min-height: clamp(220px, calc(20 * var(--u)), 320px); }

/* Héros : le mot, le téléphone et le texte tiennent dans un seul écran, quelle que soit sa hauteur */
.hero { min-height: 100svh; }
.hero-word { padding-top: clamp(16px, 3svh, 48px); }
.hero-word img { width: 100%; max-height: clamp(110px, calc(100svh - var(--hdr) - 400px), 400px); object-fit: contain; object-position: center top; }
.hero-phone { width: clamp(190px, min(19vw, calc((100svh - var(--hdr)) * .36)), 300px); top: clamp(28px, 6svh, 100px); }
.hero-title h1 { font-size: clamp(34px, calc(4.3 * var(--u)), 68px); }
.hero-title p { font-size: clamp(14.5px, calc(1.1 * var(--u)), 18px); max-width: 40ch; margin-top: clamp(10px, 1.6svh, 18px); }
.hero-bottom { padding-bottom: clamp(20px, 4.5svh, 64px); padding-top: clamp(16px, 2.5svh, 32px); }
.hero-card { width: clamp(320px, calc(27 * var(--u)), 420px); }
.hero-card strong { font-size: clamp(18px, calc(1.5 * var(--u)), 24px); }
.hero-card .sym { width: clamp(84px, calc(7.5 * var(--u)), 116px); }

/* Écrans très larges : un peu plus d'air autour du contenu, sans grossir à l'infini */
@media (min-width: 1800px) {
  body { font-size: 17px; }
}
/* Écrans bas (portables 13", fenêtres réduites) : on garde le héros d'un seul tenant */
@media (min-width: 761px) and (max-height: 760px) {
  .hero-title p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }
  .hero-card .sym { display: none; }
  .hero-card { width: auto; }
}
/* Tablettes : téléphone à droite, texte à gauche (déjà en place), tailles relues */
@media (min-width: 761px) and (max-width: 899px) {
  .hero-phone { width: clamp(180px, min(24vw, calc((100svh - var(--hdr)) * .36)), 250px); }
  .hero-bottom { max-width: calc(100% - min(24vw, 250px) - 40px); }
}
@media (max-width: 760px) {
  :root { --hdr: 68px; --u: min(1.6vw, 1.3svh); }
  .brand { width: 132px; }
  .menu-btn { width: 44px; height: 44px; }
  .hero-word img { max-height: none; }
  .hero-phone { width: min(200px, 52vw); top: auto; }
  .hero-title h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero-card { width: 100%; }
  .page-title { font-size: clamp(36px, 10.5vw, 52px); }
  .h2 { font-size: clamp(28px, 8vw, 40px); }
  .story-step { min-height: 0; }
  .tp-grid { height: auto; }
}
@media (max-width: 380px) {
  .hero-card .sym { display: none; }
  .hero-card .btn { width: 100%; }
}
/* Tablette paysage et petits portables (900-1100) : téléphone au centre comme sur ordinateur, titre à gauche, carte à droite */
@media (min-width: 900px) and (max-width: 1100px) {
  .hero-phone { left: 50%; right: auto; transform: translateX(-50%); width: clamp(180px, min(19vw, calc((100svh - var(--hdr)) * .36)), 240px); }
  .hero-bottom { flex-direction: row; align-items: flex-end; max-width: none; }
  .hero-title { max-width: calc(50% - 130px); }
  .hero-card { width: min(340px, calc(50% - 130px)); }
  .hero-card .sym { display: none; }
}
/* Grands écrans (iMac, 27") : on laisse le héros respirer davantage */
@media (min-width: 1800px) {
  .hero-word img { max-height: clamp(110px, calc(100svh - var(--hdr) - 420px), 480px); }
  .hero-phone { width: clamp(190px, min(16vw, calc((100svh - var(--hdr)) * .38)), 340px); }
  .hero-title h1 { font-size: clamp(34px, calc(4.3 * var(--u)), 84px); }
  .hero-card { width: clamp(320px, calc(24 * var(--u)), 460px); }
}
/* Tablette portrait : téléphone centré sous le mot (comme sur mobile), texte et carte en dessous */
@media (min-width: 761px) and (max-width: 899px) and (orientation: portrait) {
  .hero-phone { position: relative; left: auto; right: auto; top: auto; transform: none; margin: -7vw auto 0; width: min(270px, 34vw); }
  .hero-bottom { max-width: none; flex-direction: row; align-items: flex-end; }
  .hero-title { max-width: 55%; }
  .hero-card { width: min(320px, 42%); }
  .hero-card .sym { display: none; }
}
/* Le titre du héros prend la place libre à gauche du téléphone, jamais plus : aucun chevauchement quelle que soit la taille */
.hero { --phone-w: clamp(190px, min(19vw, calc((100svh - var(--hdr)) * .36)), 300px); }
@media (min-width: 900px) {
  .hero-phone { width: var(--phone-w); }
  .hero-bottom { container-type: inline-size; }
  .hero-title { max-width: calc(50cqi - var(--phone-w) / 2 - 40px); }
  .hero-title h1 { font-size: clamp(30px, min(calc(4.3 * var(--u)), calc((50cqi - var(--phone-w) / 2 - 40px) / 7.8)), 84px); }
  .hero-card { max-width: calc(50cqi - var(--phone-w) / 2 - 64px); }
}
@media (min-width: 900px) and (max-width: 1100px) { .hero { --phone-w: clamp(170px, min(19vw, calc((100svh - var(--hdr)) * .36)), 230px); } }
@media (min-width: 1800px) { .hero { --phone-w: clamp(190px, min(16vw, calc((100svh - var(--hdr)) * .38)), 340px); } }
/* En-têtes de section avec bouton : le bouton garde sa taille */
.work-head .btn { flex: none; white-space: nowrap; }
.work-head .sec-head { max-width: 64%; }
.work-head .sec-head .h2 { max-width: none; }
