/* Itsy Media — feuille unique du site (toutes les pages) : aucune autre feuille n’est chargée.
   Charte issue de la maquette 2026 : marine profond, cyan, fonds blancs et brume bleutée. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #06192e;
  --night-2: #08223d;
  --night-3: #0b3051;
  --ink: #111b34;
  --muted: #697991;
  --accent: #65e7f5;
  --accent-blue: #15b7f4;
  --accent-deep: #0b98d6;   /* bleu des mots mis en valeur sur fond clair (3:1 minimum en grand texte) */
  --accent-text: #0079a8;   /* petits textes cyan sur fond clair (contraste 4,5:1) */
  --accent-soft: #c6faff;
  --mist: #f5faff;
  --edge: #dfeaf1;
  --line: #dbe6ee;
  --field-line: #8a9bb0;
  --error: #a12a3a;
  --error-soft: #fbecee;
  --ok: #0a6b63;
  --ok-soft: #e6f6f4;
  --page-width: 1220px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-height: 94px;
  --header-condensed: 64px;
  --shadow: 0 2px 12px rgba(6, 33, 67, .05);
  --shadow-lifted: 0 18px 50px -18px rgba(6, 33, 67, .22);
  --section-space: clamp(64px, 8vw, 100px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font-family: "Inter", Arial, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.55; background: #fff; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 3.35vw, 3.5rem); letter-spacing: -.052em; line-height: 1.12; font-weight: 720; }
h2 span { color: var(--accent-deep); }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -.03em; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #40ceeb; outline-offset: 5px; border-radius: 4px; }
::selection { background: #9ff0fa; color: var(--night); }

.container { width: min(calc(100% - 88px), var(--page-width)); margin-inline: auto; }
.section { position: relative; isolation: isolate; overflow: clip; padding-block: var(--section-space); background: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; background: #fff; color: var(--night); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 10px; }

.icon, .market-icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--night-3); }

.eyebrow { display: inline-block; margin: 0 0 15px; color: var(--accent-text); font-size: .78rem; font-weight: 750; letter-spacing: .19em; line-height: 1.45; text-transform: uppercase; }
.lead { font-size: 1.06rem; color: var(--muted); line-height: 1.8; max-width: 62ch; }
.lead + .lead { margin-top: 12px; }
.fineprint { font-size: .875rem; color: var(--muted); }
.fineprint a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent-text); }

/* Tête de section : titre à gauche, courte phrase à droite (maquette) */
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 18px; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.section-top h2 { max-width: 630px; }
.section-desc { max-width: 345px; font-size: 1rem; color: var(--muted); line-height: 1.85; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 53px; padding: 0 23px;
  background: linear-gradient(105deg, #a4f4fb, #65e7f5); color: var(--night); border: 1px solid rgba(182, 255, 255, .42); border-radius: 6px;
  font-weight: 750; font-size: .91rem; line-height: 1.3; text-align: center; white-space: nowrap; cursor: pointer;
  box-shadow: 0 6px 35px rgba(20, 221, 246, .08); transition: transform .25s var(--ease), box-shadow .25s;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(75, 228, 255, .28); }
.button .icon { width: 18px; height: 18px; stroke-width: 1.8; transition: transform .3s var(--ease); }
.button:hover .icon { transform: translateX(4px); }
.button-small { min-height: 44px; padding-inline: 20px; font-size: .83rem; border-radius: 5px; }
.button-wide { width: 100%; white-space: normal; }
.link-arrow { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; font-weight: 650; font-size: .92rem; color: var(--accent-text); border-bottom: 1px solid currentColor; padding-block: 0 2px; transition: gap .25s, color .25s; }
.link-arrow .icon { width: 15px; height: 15px; stroke-width: 1.8; }
.link-arrow:hover { gap: 21px; color: var(--night-3); }

/* Scène sombre : accueil, tête des pages intérieures, contact */
.hero, .page-head, .contact {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(ellipse 55% 70% at 72% 37%, rgba(18, 77, 128, .45), transparent 76%),
    radial-gradient(ellipse 55% 55% at 7% 24%, rgba(2, 59, 93, .34), transparent 78%),
    linear-gradient(126deg, #06182b 0%, #071e36 58%, #06172c 100%);
}
.hero::after, .page-head::after, .contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
.hero .eyebrow, .page-head .eyebrow, .contact .eyebrow { color: var(--accent); }
.hero h1 span, .page-head h1 span, .contact h2 span { color: var(--accent); }

/* Logo (inchangé : « itsy », point, « MEDIA » en petites capitales espacées) */
.logo { display: inline-block; font-size: 2rem; font-weight: 700; letter-spacing: -.06em; line-height: 1; color: var(--ink); white-space: nowrap; }
.logo-dot { color: var(--accent-blue); }
.logo small { display: block; margin: 5px 0 0 2px; font-size: .5625rem; font-weight: 600; letter-spacing: .5em; }
.site-header .logo { color: #fff; }
.site-header .logo-dot { color: var(--accent); }

/* En-tête : posé sur la scène sombre de la première section */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--header-height); display: flex; align-items: center; color: #fff; background: rgba(6, 25, 46, .94); transition: height .3s var(--ease), background-color .3s, box-shadow .3s, backdrop-filter .3s; }
/* Avec JavaScript : transparent sur la scène sombre en haut de page, puis condensé sur un fond de verre sombre dès qu’on défile (sans JavaScript, le fond sombre reste en permanence) */
.js .site-header { background: transparent; }
.js .site-header.is-scrolled { height: var(--header-condensed); background: rgba(6, 25, 46, .93); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(165, 222, 255, .14), 0 10px 30px -12px rgba(0, 7, 21, .5); }
.site-header .logo { transition: font-size .3s var(--ease); }
/* Barre de lecture : un filet cyan qui avance avec le défilement */
.site-header::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, var(--accent-blue), var(--accent)); transform: scaleX(var(--progress, 0)); transform-origin: left; opacity: 0; transition: opacity .3s; pointer-events: none; }
.site-header.is-scrolled::after { opacity: 1; }
@keyframes header-in { from { opacity: 0; transform: translateY(-16px); } }
.site-header.is-scrolled .logo { font-size: 1.55rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 46px); margin-left: 25px; }
.site-nav a { font-size: .88rem; font-weight: 550; color: rgba(255, 255, 255, .79); transition: color .2s; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; inset: auto 0 -8px 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.site-nav .nav-contact { display: none; }
.nav-toggle { display: none; }
.header-cta.is-placeholder { visibility: hidden; pointer-events: none; } /* page de contact : bouton masqué, sa place est gardée pour que le menu reste centré comme ailleurs */

/* Accueil */
.hero { padding: calc(var(--header-height) + 50px) 0 0; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 18px; align-items: center; min-height: 430px; padding-bottom: 69px; }
.hero-copy { position: relative; z-index: 8; padding-bottom: 16px; }
.hero h1 { margin: 18px 0 19px; max-width: 630px; color: #fff; font-weight: 750; letter-spacing: -.055em; font-size: clamp(2.85rem, 4.3vw, 4.65rem); line-height: 1.095; }
.hero-lead { max-width: 505px; font-size: 1.04rem; line-height: 1.8; color: rgba(235, 247, 255, .84); }
.hero-actions { display: flex; align-items: center; gap: 33px; flex-wrap: wrap; margin-top: 30px; }
.hero .link-arrow, .page-head .link-arrow { color: #fff; border-bottom-color: rgba(255, 255, 255, .42); }
.hero .link-arrow:hover, .page-head .link-arrow:hover { color: var(--accent); }
.hero-visual { position: relative; height: 445px; width: 100%; min-width: 0; overflow: visible; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 5% 0 0 5%; border-radius: 50%; z-index: -2; filter: blur(32px); opacity: .55; background: radial-gradient(ellipse at center, rgba(30, 151, 216, .20), transparent 70%); animation: ambient 8s ease-in-out infinite alternate; }
.flow-art { position: absolute; width: calc(100% + 60px); height: 100%; left: -25px; top: 0; overflow: visible; pointer-events: none; }
.orbital { fill: none; stroke: #61b9f0; stroke-width: 1; opacity: .14; }
.ribbon-blur { fill: none; stroke: url(#stream-gradient); stroke-width: 38px; stroke-linecap: round; opacity: .35; filter: url(#flow-blur); }
.ribbon-core { fill: none; stroke: url(#stream-gradient); stroke-width: 3.2px; stroke-linecap: round; opacity: .9; filter: drop-shadow(0 0 10px #3ce8ff); }
.ribbon-thin { fill: none; stroke: url(#secondary-gradient); stroke-width: 1.3px; stroke-linecap: round; opacity: .6; }
.travel-dash { fill: none; stroke: #9cf8ff; stroke-width: 2.5; stroke-dasharray: 3 26; stroke-linecap: round; opacity: .65; animation: travel 9s linear infinite; }
.orbit-rotate { transform-origin: center; animation: orbit 31s linear infinite; }
.flow-card { position: absolute; background: linear-gradient(132deg, rgba(26, 65, 106, .82), rgba(11, 37, 68, .54)); color: #f2faff; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(165, 222, 255, .24); box-shadow: 0 14px 43px rgba(0, 7, 21, .26), inset 0 1px 0 rgba(255, 255, 255, .12); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); transform: translateZ(0); }
.flow-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 22px rgba(107, 198, 247, .07); }
.card-num { font-weight: 800; font-size: .67rem; letter-spacing: .12em; color: var(--accent); opacity: .95; }
.card-name { font-size: .92rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.34; margin-top: 8px; }
.card-note { font-size: .7rem; color: #afd4ea; margin-top: 4px; }
.campaign { top: 13%; left: 4%; width: 150px; height: 149px; rotate: -6deg; animation: float-a 7s ease-in-out infinite; }
.campaign .infinity-mark { display: block; height: 39px; margin: 9px 0 2px; font-size: 3.5rem; line-height: .55; font-family: Arial, sans-serif; font-weight: 700; letter-spacing: -.11em; color: #b2f8ff; }
.form-preview { top: 24%; left: 37%; width: 158px; height: 180px; rotate: 4deg; animation: float-b 8s ease-in-out infinite; }
.form-line { height: 8px; background: linear-gradient(90deg, #d7f8ff55, #b1d9f111); border-radius: 3px; margin: 9px 0 0; }
.form-line:nth-of-type(3) { width: 87%; }
.form-line:nth-of-type(4) { width: 64%; }
.form-button { height: 12px; background: #5bdff1; opacity: .85; border-radius: 3px; width: 70%; margin-top: 15px; box-shadow: 0 0 18px rgba(104, 231, 250, .25); }
.qualified { top: 62%; left: 44%; width: 158px; min-height: 128px; rotate: -4deg; animation: float-c 8.5s ease-in-out infinite; }
.qualified .bullet { display: flex; align-items: center; gap: 7px; font-size: .7rem; margin-top: 9px; color: #d0e8f4; }
.qualified .bullet i { display: inline-block; background: var(--accent); width: 6px; height: 6px; border-radius: 50%; }
.delivery { top: 31%; right: 0; width: 146px; min-height: 161px; rotate: 5deg; animation: float-d 7.2s ease-in-out infinite; }
.delivery-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin: 10px 0 1px; background: linear-gradient(145deg, #51dbec, #0478b9); box-shadow: 0 0 36px rgba(28, 192, 239, .35); }
.delivery-icon svg { width: 27px; height: 27px; stroke: #fff; stroke-width: 1.5; }
.flow-orb { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #acfbff; box-shadow: 0 0 12px #25caff, 0 0 34px #25caff; top: 15%; right: 18%; animation: pulse 4s infinite; }
.flow-orb.two { width: 6px; height: 6px; top: 74%; left: 11%; animation-delay: 1.8s; }
.proofbar { position: relative; z-index: 2; border-top: 1px solid rgba(213, 248, 255, .16); background: rgba(0, 10, 24, .12); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof { min-height: 99px; display: flex; align-items: center; gap: 18px; padding: 15px 35px 15px 0; position: relative; }
.proof:not(:first-child) { padding-left: 43px; }
.proof:not(:first-child)::before { content: ""; position: absolute; left: 0; top: 26%; height: 48%; width: 1px; background: rgba(181, 227, 243, .27); }
.proof-icon { flex: none; width: 41px; height: 41px; display: grid; place-items: center; color: var(--accent); }
.proof-icon svg { width: 39px; height: 39px; stroke: currentColor; stroke-width: 1.35; fill: none; }
.proof strong { display: block; font-size: .89rem; font-weight: 650; line-height: 1.35; }
.proof small { display: block; color: #b6cbdc; font-size: .76rem; margin-top: 3px; }

/* Notre méthode : trois cartes, chacune avec un schéma sombre dans le style de l’accueil */
.method { background: #fff; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 56px; counter-reset: method; }
.method-step { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--edge); border-radius: 16px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.method-step:hover { transform: translateY(-6px); border-color: #a6e3f2; box-shadow: var(--shadow-lifted); }
.method-step:not(:last-child)::after { content: ""; position: absolute; z-index: 2; right: -35px; top: 74px; width: 36px; height: 2px; background: linear-gradient(90deg, var(--accent-blue), #d3f4ff); }
.method-visual { position: relative; overflow: hidden; border-radius: 15px 15px 0 0; background: linear-gradient(132deg, var(--night-3), var(--night)); border-bottom: 1px solid rgba(165, 222, 255, .24); }
.method-visual svg { display: block; width: 100%; height: auto; }
.method-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 40px rgba(107, 198, 247, .08); }
.method-body { padding: 26px 28px 30px; }
.method-number { display: inline-flex; align-items: center; gap: 12px; font-size: 1.43rem; font-weight: 450; color: var(--accent-deep); letter-spacing: -.04em; }
.method-number::after { content: ""; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-blue), transparent); }
.method-step h3 { margin: 12px 0 10px; font-size: 1.85rem; line-height: 1.15; letter-spacing: -.05em; font-weight: 720; }
.method-step p { font-size: .97rem; line-height: 1.75; color: var(--muted); }
.pv-line { fill: none; stroke: rgba(165, 222, 255, .3); stroke-width: 1.5; }
.pv-flow { fill: none; stroke: #9cf8ff; stroke-width: 2.5; stroke-dasharray: 3 10; stroke-linecap: round; }
.pv-ring { fill: none; stroke: #61b9f0; stroke-width: 1; opacity: .45; }
.pv-node { fill: rgba(101, 231, 245, .14); stroke: var(--accent); stroke-width: 1.4; }
.pv-ico { fill: none; stroke: #d9ffff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pv-card { fill: rgba(26, 65, 106, .7); stroke: rgba(165, 222, 255, .3); stroke-width: 1.2; }
.pv-field { fill: rgba(255, 255, 255, .06); stroke: rgba(165, 222, 255, .22); }
.pv-bar { fill: rgba(215, 248, 255, .28); }
.pv-bar-dark { fill: rgba(215, 248, 255, .6); }
.pv-chip { fill: rgba(101, 231, 245, .12); stroke: rgba(101, 231, 245, .55); stroke-width: 1.2; }
.pv-dot { fill: var(--accent); }
.pv-tick circle { fill: var(--accent); }
.pv-tick path { fill: none; stroke: var(--night); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv-text { fill: #d9ffff; font-size: 9px; font-weight: 700; letter-spacing: -.01em; }
.pv-cta { fill: #5bdff1; }
.pv-text-cta { fill: var(--night); font-size: 8.5px; font-weight: 750; }
.pv-halo { fill: rgba(28, 192, 239, .16); }
.pv-target { fill: url(#pv-grad); }
.pv-ico-white { stroke: #fff; }
.pv-kept { stroke: var(--accent); }

/* Qualité des demandes */
.quality { background: var(--mist); }
.quality::before { content: ""; position: absolute; inset: 0 0 auto auto; z-index: -1; width: 62%; height: 100%; pointer-events: none; background: radial-gradient(ellipse at 80% 30%, rgba(203, 241, 254, .45), transparent 67%); }
/* Pages intérieures : les sections alternent blanc et brume */
.page-head ~ .quality { background: #fff; }
.page-head ~ .quality::before { display: none; }
.page-head ~ .tinted + .quality { background: var(--mist); }
.page-head ~ .agency { background: var(--mist); }
.page-head ~ .agency::before { display: none; }
.quality-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.request-card { position: relative; background: #fff; border: 1px solid var(--edge); border-radius: 14px; box-shadow: var(--shadow-lifted); padding: 22px; font-size: .875rem; }
.request-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.request-card-top strong { font-size: .75rem; letter-spacing: .12em; white-space: nowrap; text-transform: uppercase; color: var(--accent-text); }
.request-card-top span { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.request-card-project { margin: 14px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.request-card-project span, .request-card dt { display: block; font-size: .75rem; color: var(--muted); }
.request-card-project strong { font-size: 1.1875rem; letter-spacing: -.03em; color: var(--ink); }
.request-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.request-card dl div:last-child { grid-column: 1 / -1; }
.request-card dd { font-weight: 650; color: var(--ink); }
.request-card-status { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.request-card-status li { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ok); }
.request-card-status .icon { width: 1.125rem; height: 1.125rem; padding: 2px; border-radius: 50%; background: var(--ok-soft); stroke-width: 2.4; }
.request-card.quality-sheet { position: sticky; top: 84px; padding: 28px; font-size: 1rem; }
.quality-sheet .request-card-project strong { font-size: 1.5rem; }
.quality-checks { display: grid; gap: 10px; }
.quality-checks li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--edge); border-radius: 10px; background: var(--mist); font-weight: 650; color: var(--ink); }
.quality-checks .icon { width: 1.375rem; height: 1.375rem; padding: 3px; border-radius: 50%; background: var(--accent-blue); color: #fff; stroke-width: 2.6; }
.quality-rows { background: #fff; border: 1px solid var(--edge); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.quality-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 22px clamp(18px, 2.4vw, 28px); transition: background-color .25s; }
.quality-rows li:hover { background: var(--mist); }
.quality-rows li + li { border-top: 1px solid var(--edge); }
.quality-rows h3 { margin-bottom: 4px; }
.quality-rows p { font-size: .9688rem; color: var(--muted); }
.quality-number { font-size: 1.75rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px #15b7f4aa; }
.subhead { max-width: 780px; margin: clamp(40px, 5vw, 60px) 0 26px; }
.subhead h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.05em; margin-bottom: 10px; }
.subhead p { color: var(--muted); }
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.terms li { padding: 22px 20px; background: #fff; font-size: .9375rem; color: var(--muted); }
.terms strong { display: block; margin-bottom: 4px; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.03em; color: var(--ink); }
.section-more { margin-top: 26px; }
.steps + .terms, .card-grid + .terms { margin-top: 24px; }

/* Nos expertises : six thématiques en cartes, puis l’invitation pour un métier non listé */
.expertises { background: #fff; }
.expertises::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, #f7fbff 0%, #f3faff 50%, #fafdff 100%); }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.theme-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 24px; background: #fff; border: 1px solid var(--edge); border-radius: 16px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
/* Contour dégradé au survol : un masque le limite à la bordure, il suit donc l’arrondi de la carte */
.theme-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent));
  -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); }
.theme-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lifted); }
.theme-card:hover::before { opacity: 1; }
.theme-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(145deg, var(--night-3), var(--night)); color: var(--accent); box-shadow: 0 10px 24px -10px rgba(6, 25, 46, .5); }
.theme-icon .market-icon { width: 1.75rem; height: 1.75rem; }
.theme-card h3 { margin-top: 8px; font-size: 1.4rem; letter-spacing: -.045em; }
.theme-card p { font-size: .95rem; color: var(--muted); line-height: 1.65; }
.theme-card .theme-link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 700; color: var(--accent-text); transition: gap .25s; }
.theme-card .theme-link::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.theme-card .theme-link .icon { width: 16px; height: 16px; stroke-width: 1.8; }
.theme-card:hover .theme-link { gap: 16px; }
.sector-support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 36px; margin-top: 24px; padding: 28px clamp(22px, 3vw, 36px); border-radius: 16px; color: #fff; background: linear-gradient(105deg, #06192e 0%, #082743 61%, #06192e 100%); box-shadow: var(--shadow-lifted); }
.sector-support > div { flex: 1 1 420px; max-width: 760px; }
.sector-support h3 { color: #fff; font-size: 1.35rem; margin-bottom: 8px; }
.sector-support p { font-size: .97rem; color: #c3d6e8; }
.sector-support p + p { margin-top: 6px; }
.sector-support .link-arrow { color: var(--accent); }
.sector-support .link-arrow:hover { color: #fff; }

/* L’agence : texte à gauche, trois repères en cartes à droite, sur une onde cyan */
.agency { background: #fff; padding-block: clamp(72px, 9vw, 105px); }
.agency::before { content: ""; position: absolute; inset: 0 0 auto auto; z-index: -1; width: 68%; height: 100%; pointer-events: none; background: radial-gradient(ellipse at 80% 45%, rgba(203, 241, 254, .45), transparent 67%); }
.agency-flow { position: absolute; z-index: -1; right: -3%; top: 0; width: 67%; height: 200px; opacity: .65; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.agency-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 64px; align-items: center; }
.agency-intro h2 { max-width: 490px; }
.agency-intro p:not(.eyebrow) { max-width: 470px; color: var(--muted); font-size: .98rem; line-height: 1.8; margin-top: 17px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.kpi { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 24px 22px 22px; background: rgba(255, 255, 255, .92); border: 1px solid var(--edge); border-radius: 16px; box-shadow: var(--shadow-lifted); overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent-blue), var(--accent)); }
.kpi:hover { transform: translateY(-6px); border-color: #a6e3f2; }
.kpi strong { display: block; font-size: clamp(1.8rem, 2.7vw, 2.6rem); font-weight: 720; color: var(--accent-deep); line-height: 1.05; letter-spacing: -.055em; white-space: nowrap; }
.kpi strong[data-count] { font-variant-numeric: tabular-nums; }
.kpi span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; margin-top: 12px; }
.data-card { margin-top: 56px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 40px; align-items: center; padding: clamp(22px, 3vw, 34px); background: var(--mist); border: 1px solid var(--edge); border-radius: 16px; }
.data-card-head { display: flex; align-items: center; gap: 16px; }
.data-shield { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(145deg, var(--night-3), var(--night)); color: var(--accent); }
.data-card .eyebrow { margin-bottom: 6px; }
.data-card h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.data-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.data-list li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--edge); border-radius: 10px; background: #fff; font-size: .9375rem; font-weight: 650; color: var(--ink); }
.data-list .data-more { grid-column: 1 / -1; padding: 0; border: 0; background: none; }
.data-list .icon { width: 1.25rem; height: 1.25rem; padding: 2px; border-radius: 50%; background: var(--accent-soft); color: var(--night-3); stroke-width: 2.4; }

/* Questions fréquentes */
.faq { background: #fff; border-top: 1px solid #e5edf3; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq-intro { position: sticky; top: 84px; }
.faq-intro h2 { margin-bottom: 18px; }
.faq-intro .lead { margin-bottom: 22px; }
.faq-list { display: grid; gap: 9px; }
.faq-list details, .faq-group details { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 2px 12px rgba(6, 33, 67, .02); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-list details[open], .faq-group details[open] { border-color: #a6e3f2; box-shadow: 0 8px 20px rgba(10, 90, 129, .07); }
.faq-list summary, .faq-group summary { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 15px; list-style: none; padding: 16px 19px; font-weight: 650; font-size: .95rem; cursor: pointer; }
.faq-list summary::-webkit-details-marker, .faq-group summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .faq-group summary::after { content: "+"; flex: none; font-size: 1.43rem; font-weight: 400; line-height: 1; color: var(--night-2); transition: transform .25s; }
.faq-list details[open] summary::after, .faq-group details[open] summary::after { transform: rotate(45deg); }
.faq-list details p, .faq-group details p { padding: 0 19px 18px; color: var(--muted); font-size: .92rem; line-height: 1.75; }
/* Invitation vers la page des questions : carte sombre qui reprend l’univers du contact */
.faq-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: stretch; margin-top: 48px; }
.faq-body .faq-list { align-content: start; }
.faq-body .faq-more { margin-top: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.faq-more { position: relative; margin-top: 18px; padding: 28px clamp(22px, 3vw, 32px); border-radius: 16px; color: #fff; overflow: hidden; isolation: isolate; background: linear-gradient(105deg, #06192e 0%, #082743 61%, #06192e 100%); box-shadow: var(--shadow-lifted); }
.faq-more::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(101, 231, 245, .28), transparent 70%); }
.faq-more h3 { color: #fff; font-size: 1.45rem; letter-spacing: -.045em; margin-bottom: 8px; }
.faq-more p { color: #c3d6e8; font-size: .95rem; max-width: 46ch; }
.faq-more .tags { margin: 18px 0 22px; }
.faq-more .tags li { background: rgba(101, 231, 245, .1); border-color: rgba(101, 231, 245, .4); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 20px; }
.tags li { padding: 6px 14px; border: 1px solid #b9e4f2; border-radius: 999px; background: var(--mist); color: #075a7d; font-size: .875rem; font-weight: 650; }
/* Page dédiée : quatre cartes, une par catégorie */
.faq-page-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.faq-group { padding: 22px 22px 24px; background: var(--mist); border: 1px solid var(--edge); border-radius: 16px; scroll-margin-top: 84px; }
.faq-group h3 { margin-bottom: 14px; font-size: 1.35rem; letter-spacing: -.045em; }
.faq-group details + details { margin-top: 9px; }
.faq-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.faq-chips a { padding: 9px 18px; border: 1px solid rgba(101, 231, 245, .4); border-radius: 999px; background: rgba(101, 231, 245, .08); font-size: .88rem; font-weight: 650; color: var(--accent); transition: background-color .2s, color .2s; }
.faq-chips a:hover { background: var(--accent); color: var(--night); }

/* Contact */
.contact { padding: 68px 0 73px; background: linear-gradient(105deg, #06192e 0%, #082743 61%, #06192e 100%); }
.contact .container { position: relative; z-index: 2; }
/* L’onde court du texte au bord droit et passe sous la carte de contact (qui reste au-dessus de sa ligne) */
.contact-bg { position: absolute; z-index: -1; overflow: visible; inset: 0; width: 100%; height: 100%; opacity: .65; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }
.contact-bg path { vector-effect: non-scaling-stroke; }
.contact-page .contact-bg { width: 60%; } /* page du formulaire : la carte est haute, l’onde reste dans la colonne de gauche */
.contact h2 { max-width: 660px; margin: 8px 0 13px; color: #fff; font-size: clamp(2.25rem, 3.3vw, 3.5rem); font-weight: 710; line-height: 1.1; letter-spacing: -.05em; }
.contact .container > p:not(.eyebrow) { max-width: 590px; color: #c3d6e8; font-size: 1rem; line-height: 1.75; margin: 0 0 24px; }
.section.contact { padding-block: clamp(64px, 8vw, 96px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.contact-copy h1, .contact-copy h2 { margin-bottom: 20px; }
.contact h1 { color: #fff; font-size: clamp(2.25rem, 3.3vw, 3.5rem); font-weight: 710; line-height: 1.1; letter-spacing: -.05em; }
.contact-copy .lead, .contact-context { color: #c3d6e8; }
.contact-context { margin-top: 14px; max-width: 58ch; line-height: 1.75; }
.contact-card { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 30px 70px -26px rgba(0, 7, 21, .7); padding: clamp(24px, 3.4vw, 40px); }
.contact-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.monogram { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(145deg, var(--night-3), var(--night)); color: #fff; font-weight: 700; letter-spacing: -.05em; }
.monogram i { font-style: normal; color: var(--accent); display: contents; }
.contact-card-head h2, .contact-card-head h3 { margin: 0; color: var(--ink); font-size: 1.5rem; letter-spacing: -.04em; line-height: 1.25; }
.contact-card > p { color: var(--muted); }
.contact-email-label { margin-top: 22px; font-size: .78rem; font-weight: 750; letter-spacing: .19em; text-transform: uppercase; color: var(--accent-text); }
.contact-email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 22px; }
.contact-email { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); overflow-wrap: anywhere; }
.contact-email:hover { color: var(--accent-text); }
.copy-button { min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .875rem; cursor: pointer; }
.copy-button:hover { border-color: var(--accent-blue); background: var(--mist); }
.contact-card .fineprint { margin-top: 16px; }
.contact-copy .button { margin-top: 26px; }
.contact-card.compact { max-width: 480px; justify-self: end; width: 100%; padding: 24px 28px; }
.contact-card.compact .contact-card-head { margin-bottom: 4px; }
.contact-card.compact .contact-email { font-size: 1.2rem; }
.contact-card.compact .contact-email-row { margin: 12px 0 14px; }
.contact-card.compact .button { margin-top: 4px; }
.contact-card.compact .fineprint { margin-top: 12px; }
.contact-copy .contact-email-label { color: var(--accent); }
.contact-copy .contact-email { color: #fff; }
.contact-copy .contact-email:hover { color: var(--accent); }
.contact-copy .copy-button { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.contact-copy .copy-button:hover { background: rgba(101, 231, 245, .12); border-color: var(--accent); }
.section.contact-page { padding-top: calc(var(--header-height) + 40px); }
.contact-page .contact-grid { align-items: start; }
.contact-form { display: grid; gap: 20px; }
.contact-form .fineprint { margin-top: 0; }
.field label, .field-group legend { display: block; margin-bottom: 6px; padding: 0; font-size: .9375rem; font-weight: 650; color: var(--ink); }
.field label small { font-size: inherit; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: 8px; background: #fff; color: var(--ink); line-height: 1.5; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent-blue); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--accent-blue); border-radius: 8px; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field-hint { font-size: .875rem; color: var(--muted); }
.field input + .field-hint { margin-top: 6px; }
.field-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-group legend { margin-bottom: 2px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.contact-form .button { cursor: pointer; }
.contact-form button[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-status { padding: 12px 16px; border: 1px solid #a8ddd5; border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-weight: 650; }
.form-status.error { border-color: #e6bcc3; background: var(--error-soft); color: var(--error); }

/* Pied de page : contenu de l’ancienne version, mis en forme comme la maquette */
.site-footer { background: #fff; border-top: 1px solid var(--edge); padding: 44px 0 30px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 28px 64px; }
.site-footer .logo { font-size: 1.65rem; }
.footer-brand p { margin-top: 14px; color: #566882; max-width: 34ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 2px 32px; justify-content: end; align-content: start; }
.footer-nav a, .footer-sectors a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 38px; color: #566882; font-size: .85rem; transition: color .2s; }
.footer-nav a:hover, .footer-sectors a:hover, .footer-bottom a:hover, .footer-sectors a[aria-current] { color: var(--accent-text); }
.footer-sectors { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; padding-top: 16px; border-top: 1px solid var(--edge); }
.footer-sectors span { font-weight: 700; color: var(--ink); font-size: .85rem; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px; padding-top: 18px; border-top: 1px solid var(--edge); color: #566882; font-size: .8rem; }

/* Pages intérieures */
.page-head { padding: calc(var(--header-height) + 34px) 0 clamp(48px, 6vw, 72px); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: .85rem; color: #b6cbdc; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb a:hover { color: var(--accent); }
.page-head h1 { margin-bottom: 20px; color: #fff; font-size: clamp(2.3rem, 4vw, 3.7rem); font-weight: 750; line-height: 1.1; letter-spacing: -.055em; }
.page-head .lead { color: rgba(235, 247, 255, .84); }
.brief-card { padding: clamp(22px, 3vw, 32px); border-radius: 14px; border: 1px solid rgba(165, 222, 255, .24); color: #f2faff; background: linear-gradient(132deg, rgba(26, 65, 106, .82), rgba(11, 37, 68, .54)); box-shadow: 0 14px 43px rgba(0, 7, 21, .26), inset 0 1px 0 rgba(255, 255, 255, .12); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
.brief-card h2 { margin-bottom: 16px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.brief-card .data-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.brief-card .data-list li { padding: 11px 0; border: 0; border-bottom: 1px solid rgba(181, 227, 243, .2); border-radius: 0; background: none; color: #f2faff; font-weight: 600; }
.brief-card .data-list li:last-child { border-bottom: 0; }
.brief-card .data-list .icon { background: rgba(101, 231, 245, .16); color: var(--accent); }
.next-card { margin-top: 36px; max-width: 560px; }
.next-steps li { display: grid; grid-template-columns: auto 1fr; gap: 0 18px; padding: 16px 0; border-bottom: 1px solid rgba(181, 227, 243, .2); }
.next-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.next-steps li > span { font-size: 1.43rem; font-weight: 450; line-height: 1.2; letter-spacing: -.04em; color: var(--accent); }
.next-steps h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.next-steps p { font-size: .93rem; line-height: 1.6; color: #c3d6e8; }
.callout { max-width: 860px; display: grid; gap: 12px; padding: clamp(22px, 3vw, 34px); background: #fff; border: 1px solid var(--edge); border-left: 4px solid var(--accent-blue); border-radius: 16px; box-shadow: var(--shadow); font-size: 1.0625rem; }
.paper, .agency.paper { background: var(--mist); }
.tinted { background: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid article, .steps li { background: #fff; border: 1px solid var(--edge); border-radius: 16px; box-shadow: var(--shadow); padding: 26px 24px 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card-grid article:hover, .steps li:hover { transform: translateY(-5px); border-color: #a6e3f2; box-shadow: var(--shadow-lifted); }
.card-grid h3 { margin-bottom: 8px; }
.card-grid .icon-badge + h3 { margin-top: 18px; }
.card-grid p, .steps p { font-size: .9688rem; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 14px; font-size: 1.43rem; font-weight: 450; line-height: 1; letter-spacing: -.04em; color: var(--accent-deep); }
.steps h3 { margin-bottom: 8px; }
.page-head + .method, .method + .paper { border-top: 0; }
/* Exemple de demande : illustration, fiche fictive et texte */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "image image" "copy card"; gap: 0 clamp(32px, 6vw, 96px); align-items: start; padding: clamp(16px, 2vw, 24px); background: #fff; border: 1px solid var(--edge); border-radius: 18px; box-shadow: var(--shadow-lifted); }
.showcase-image { grid-area: image; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 12px; }
.showcase-copy { grid-area: copy; padding: clamp(28px, 4vw, 48px) 0 clamp(12px, 2vw, 28px) clamp(8px, 2.4vw, 32px); }
.showcase-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.05em; margin-bottom: 16px; }
.showcase-copy > p:not(.eyebrow, .fineprint) { color: var(--muted); max-width: 52ch; }
.showcase .request-card { grid-area: card; margin: -96px clamp(8px, 2.4vw, 32px) clamp(12px, 2vw, 28px) 0; padding: 22px; font-size: .875rem; }
.compare-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--edge); border-radius: 16px; box-shadow: var(--shadow-lifted); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .9688rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--edge); }
.compare th { font-weight: 650; color: var(--ink); }
.compare thead th { font-size: 1.0625rem; letter-spacing: -.03em; line-height: 1.3; }
.compare tbody th { width: 21%; }
.compare .ours { background: #e8fbff; color: var(--ink); }
.compare thead .ours { box-shadow: inset 0 3px 0 var(--accent-blue); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.legal { max-width: 860px; padding: clamp(22px, 4vw, 48px); background: #fff; border: 1px solid var(--edge); border-radius: 16px; box-shadow: var(--shadow-lifted); }
.legal > * + * { margin-top: 12px; }
.legal h2 { margin-top: 44px; font-size: clamp(1.35rem, 2.2vw, 1.625rem); letter-spacing: -.045em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 28px; font-size: 1.125rem; }
.legal ul { display: grid; gap: 6px; padding-left: 22px; list-style: disc; }
.legal li::marker { color: var(--accent-blue); }
.legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

@keyframes travel { to { stroke-dashoffset: -465; } }
@keyframes ambient { to { opacity: .85; transform: scale(1.1) rotate(-8deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .4; transform: scale(.7); } }
@keyframes float-a { 50% { transform: translate3d(3px, -13px, 0); } }
@keyframes float-b { 50% { transform: translate3d(3px, 13px, 0); } }
@keyframes float-c { 50% { transform: translate3d(2px, 9px, 0); } }
@keyframes float-d { 50% { transform: translate3d(0, -12px, 0); } }
@keyframes pv-flow { to { stroke-dashoffset: -13; } }
@keyframes pv-pulse { from { scale: .8; opacity: .6; } to { scale: 1.12; opacity: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 16px; } }

@media (prefers-reduced-motion: no-preference) {
  .site-header { animation: header-in .8s var(--ease) both; }
  .pv-flow { animation: pv-flow 1.4s linear infinite; }
  .pv-ring { transform-origin: center; transform-box: fill-box; animation: pv-pulse 2.6s ease-out infinite; }
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .reveal:nth-child(2) { transition-delay: .08s; }
  .reveal:nth-child(3) { transition-delay: .16s; }
  .reveal.revealed { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 1600px) {
  .hero { padding-top: calc(var(--header-height) + 75px); }
  .hero-layout { padding-bottom: 90px; }
}

@media (max-width: 1050px) {
  .container { width: min(calc(100% - 64px), var(--page-width)); }
  .hero h1 { font-size: clamp(2.45rem, 4.5vw, 3.8rem); }
  .hero-visual { height: 388px; }
  .campaign { left: 1%; }
  .form-preview { left: 34%; }
  .qualified { left: 42%; }
  .delivery { right: -3%; }
  .site-nav { gap: 18px; }
  .section-top { gap: 24px; }
  .agency-layout { grid-template-columns: 1fr; gap: 48px; }
  .kpis { margin-top: 0; }
  .agency-flow { width: 75%; top: 32%; }
  .faq-grid { gap: 37px; }
  .faq-body { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .faq-intro { position: static; }
  .data-card, .quality-grid, .page-head-grid { grid-template-columns: minmax(0, 1fr); }
  .request-card.quality-sheet { position: static; max-width: 420px; }
  .card-grid, .card-grid.four, .steps, .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: start; }
}

@media (max-width: 860px) {
  .contact-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-page-groups { grid-template-columns: minmax(0, 1fr); }
  .method-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: 44px; max-width: 560px; }
  .method-step:not(:last-child)::after { left: 50%; right: auto; top: auto; bottom: -34px; width: 2px; height: 34px; background: linear-gradient(var(--accent-blue), #d3f4ff); }
  .showcase { grid-template-columns: minmax(0, 1fr); grid-template-areas: "image" "card" "copy"; }
}

@media (max-width: 760px) {
  :root { --header-height: 78px; --header-condensed: 60px; }
  html { scroll-padding-top: 76px; }
  .container { width: calc(100% - 38px); }
  .site-header .logo { font-size: 1.75rem; }
  .site-nav { display: none; position: absolute; top: calc(100% - 8px); left: 19px; right: 19px; margin: 0; padding: 19px 20px 21px; flex-direction: column; align-items: flex-start; gap: 0; border: 1px solid #286080; border-radius: 12px; background: #09243c; box-shadow: 0 20px 40px #0005; }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 0; font-size: 1rem; border-bottom: 1px solid #ffffff15; }
  .site-nav a:last-child { border: 0; }
  .site-nav a::after { display: none; }
  .site-nav .nav-contact { display: block; }
  .header-cta.is-placeholder { display: none; }
  .header-cta { margin-left: auto; min-height: 40px; font-size: .77rem; padding: 0 12px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; background: transparent; cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, background-color .2s; }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding-top: calc(var(--header-height) + 38px); }
  .hero-layout { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 6px; padding-bottom: 43px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(2.65rem, 10vw, 4.35rem); max-width: 610px; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { gap: 25px; margin-top: 26px; }
  .hero-visual { height: 410px; width: min(100%, 560px); margin: 10px auto -25px; }
  .proof-grid { grid-template-columns: 1fr; padding-block: 8px; }
  .proof { min-height: 74px; padding: 11px 2px !important; }
  .proof:not(:first-child)::before { width: 100%; height: 1px; left: 0; top: 0; }
  .proof-icon { width: 35px; height: 35px; }
  .proof-icon svg { width: 33px; height: 33px; }
  .section { padding-block: 72px; }
  .section-top { align-items: flex-start; flex-direction: column; gap: 18px; }
  h2 { font-size: clamp(2.18rem, 6.5vw, 3rem); }
  .section-desc { max-width: 620px; font-size: .95rem; }
  .agency-flow { width: 100%; top: 52%; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .kpi { min-height: 130px; padding: 18px 12px 16px; }
  .kpi strong { font-size: 1.5rem; }
  .kpi span { font-size: .8rem; }
  .contact-bg { opacity: .34; }
  .contact-bg circle { display: none; }
  .contact { padding: 67px 0 73px; }
  .contact h2, .contact h1 { font-size: clamp(2.1rem, 7vw, 3rem); }
  .page-head { padding-top: calc(var(--header-height) + 20px); }
  .section.contact-page { padding-top: calc(var(--header-height) + 20px); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .data-list, .field-pair, .card-grid, .card-grid.four, .steps, .steps.three, .terms, .theme-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .kpi { min-height: 0; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 16px; }
  .kpi span { margin-top: 0; }
  .quality-rows li { grid-template-columns: auto minmax(0, 1fr); }
  .quality-number { display: none; }
  .data-card-head { flex-direction: column; align-items: flex-start; }
  .button { white-space: normal; }
  .hero-actions .button, .faq-more .button { width: 100%; }
  .showcase-image { aspect-ratio: 16 / 10; object-position: 52% center; }
  .showcase .request-card { margin: -64px 16px 0; }
  .showcase-copy { padding: 28px 8px 12px; }
}

@media (max-width: 450px) {
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .hero h1 { font-size: clamp(2.46rem, 11.1vw, 3.25rem); }
  .hero-actions { gap: 17px; }
  .hero-visual { height: 310px; margin-top: 16px; margin-bottom: 1px; }
  .flow-art { left: -11%; width: 122%; height: 100%; }
  .flow-card { padding: 10px; border-radius: 11px; }
  .card-name { font-size: .71rem; margin-top: 4px; }
  .card-note { font-size: .57rem; }
  .card-num { font-size: .55rem; }
  .campaign { left: -1%; top: 12%; width: 105px; height: 112px; }
  .campaign .infinity-mark { font-size: 2.8rem; height: 30px; margin: 8px 0 0; }
  .form-preview { left: 34%; top: 14%; width: 118px; height: 151px; }
  .form-line { height: 6px; margin-top: 7px; }
  .form-button { height: 9px; margin-top: 11px; }
  .qualified { left: 38%; top: 66%; width: 119px; min-height: 96px; }
  .qualified .bullet { font-size: .54rem; margin-top: 6px; }
  .delivery { right: -1%; top: 39%; width: 99px; min-height: 119px; }
  .delivery-icon { width: 36px; height: 36px; }
  .delivery-icon svg { width: 21px; height: 21px; }
}
