/* ==========================================================================
   Agence Digitale Nantes : feuille de style (CSS natif, aucune compilation)
   Direction artistique « Estuaire » : bleu électrique, bleu nuit, accent cyan,
   titres en Sora, AUCUN arrondi (angles vifs), grilles et lignes fines.
   Ce fichier est la source lisible ; assets/css/app.css en est une copie
   (minifiable). Modifier les variables ci-dessous suffit pour décliner le thème.
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face { font-family: "Corps"; src: url("../fonts/sans-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Corps"; src: url("../fonts/sans-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Corps"; src: url("../fonts/sans-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Sora auto-hébergée (optionnel) : déposer assets/fonts/sora-variable.woff2 */
@font-face { font-family: "Sora Local"; src: url("../fonts/sora-variable.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --ink: #0A1B3F;          /* bleu nuit */
  --ink-2: #102A5C;
  --blue: #1F4BFF;         /* bleu électrique (principal) */
  --blue-d: #1236C9;
  --sky: #3BC9FF;          /* accent cyan */
  --pale: #EEF3FF;
  --pale-2: #F6F8FF;
  --line: #D5DDF0;
  --line-dark: rgba(255, 255, 255, .14);
  --text: #18213D;
  --muted: #56617F;
  --white: #fff;
  --f-title: "Sora", "Sora Local", "Segoe UI", system-ui, sans-serif;
  --f-body: "Corps", "Helvetica Neue", Arial, system-ui, sans-serif;
  --radius: 0;             /* angles vifs partout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 30px 60px -20px rgba(10, 27, 63, .35);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, iframe, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, .h3 { font-family: var(--f-title); color: inherit; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); letter-spacing: -.03em; }
h3, .h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 700; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.w-full { width: 100%; }
.break-all { word-break: break-all; }
.icon { flex: none; width: 1.15em; height: 1.15em; }
.container-site { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 860px; }
.preprod-bar { background: #FFD43B; color: var(--ink); text-align: center; font-size: .8rem; font-weight: 700; padding: 6px 12px; letter-spacing: .02em; }
.site-main { display: block; }
.site-main:focus { outline: none; }

/* ---------- Typo utilitaires ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-title); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--blue); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--sky); }
.eyebrow-dot { display: none; }
.eyebrow-num { font-weight: 700; color: var(--ink); background: var(--pale); padding: 2px 8px; letter-spacing: .06em; }
.section--marine .eyebrow-num, .eyebrow--light .eyebrow-num { background: rgba(255,255,255,.1); color: #fff; }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section--marine .section-lead { color: rgba(255,255,255,.75); }
.subhead { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; margin: 48px 0 20px; padding-top: 20px; border-top: 2px solid var(--ink); }

/* ---------- Boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; font-family: var(--f-title); font-size: .95rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; border: 2px solid transparent; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .icon-fleche { transition: transform .35s var(--ease); }
.btn:hover .icon-fleche { transform: translateX(5px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary::before { background: var(--ink); }
.btn-primary:hover { color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary::before { background: var(--ink); }
.btn-secondary:hover { color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light::before { background: var(--sky); }
.btn-light:hover { color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light::before { background: #fff; }
.btn-outline-light:hover { color: var(--ink); border-color: #fff; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .88rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-title); font-weight: 600; color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 4px; transition: background-size .4s var(--ease), color .3s; }
.link-arrow:hover { background-size: 100% 2px; color: var(--blue); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }
.section--marine .link-arrow { color: #fff; }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.78); font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; gap: 28px; min-height: 38px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.topbar-item .icon { color: var(--sky); width: 15px; height: 15px; }
.topbar-item a { color: inherit; text-decoration: none; }
.topbar-item a:hover { color: #fff; }
.topbar-mail { margin-left: auto; }
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(10,27,63,.45); }
.header-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--blue); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.header-logo, .footer-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { color: var(--blue); display: block; }
.logo-mark svg { width: 40px; height: 40px; }
.logo-dot { animation: logoDot 3.2s var(--ease) infinite; transform-origin: 29px 11px; }
.logo-text { display: flex; flex-direction: column; font-family: var(--f-title); line-height: 1; }
.logo-l1 { font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.logo-l2 { font-size: .72rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--blue); margin-top: 5px; }
.header-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; font-family: var(--f-title); font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link[data-active="true"]::after { transform: scaleX(1); }
.nav-link:hover { color: var(--blue); }
.nav-item { position: relative; list-style: none; }
.nav-item-row { display: inline-flex; align-items: center; }
.sub-toggle { display: inline-flex; background: none; border: 0; padding: 2px; color: inherit; transition: transform .3s; }
.nav-item.is-open .sub-toggle { transform: rotate(180deg); }
.sub-menu { position: absolute; top: calc(100% + 14px); left: -20px; width: 520px; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); box-shadow: var(--shadow); list-style: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; z-index: 5; }
.nav-item.is-open .sub-menu, .nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu > li { border-bottom: 1px solid var(--line); }
.sub-menu > li:nth-child(odd):not(.sub-menu-all) { border-right: 1px solid var(--line); }
.sub-link { display: block; padding: 18px 20px; text-decoration: none; color: var(--ink); transition: background .25s; }
.sub-link:hover { background: var(--pale); }
.sub-link-title { display: block; font-family: var(--f-title); font-weight: 700; font-size: .95rem; }
.sub-link-text { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.sub-menu-all { grid-column: 1 / -1; padding: 14px 20px; background: var(--pale-2); border-bottom: 0 !important; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-title); font-weight: 700; color: var(--ink); text-decoration: none; font-size: .95rem; }
.header-tel .icon { color: #fff; background: var(--blue); width: 34px; height: 34px; padding: 8px; }
.header-tel:hover { color: var(--blue); }
.menu-toggle { display: none; position: relative; width: 48px; height: 48px; background: var(--ink); border: 0; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { position: absolute; left: 13px; width: 22px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle-bars { top: 23px; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-open .menu-toggle-bars { background: transparent; }
.menu-open .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-only { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 55%, var(--blue-d) 100%); }
.hero-bg picture, .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg img { animation: kenburns 24s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,27,63,.96) 0%, rgba(10,27,63,.88) 42%, rgba(16,42,92,.62) 75%, rgba(31,75,255,.45) 100%); }
.hero-grid-lines { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); pointer-events: none; }
.hero-grid-lines span { border-left: 1px solid rgba(255,255,255,.07); }
.hero-grid-lines span:last-child { border-right: 1px solid rgba(255,255,255,.07); }
.hero-svg { position: absolute; z-index: -1; right: -40px; bottom: -30px; width: min(620px, 60vw); color: rgba(59,201,255,.35); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); grid-template-areas: "text form" "lead form"; column-gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero--home .hero-inner { min-height: min(86vh, 860px); align-content: center; }
.hero-text { grid-area: text; align-self: end; }
.hero-lead { grid-area: lead; }
.hero-form { grid-area: form; align-self: center; position: relative; }
.hero:not(.hero--form) .hero-inner { grid-template-columns: 1fr; grid-template-areas: "text" "lead"; }
.hero-title { color: #fff; margin-bottom: 24px; max-width: 16ch; }
.hero--compact .hero-title { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 20ch; }
.hero-title strong, .hero-title em { font-style: normal; color: var(--sky); }
.hero-intro { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 56ch; }
.hero-intro strong { color: #fff; }
.hero-intro a { color: var(--sky); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-actions--static { margin: 24px 0 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; font-size: .9rem; color: rgba(255,255,255,.78); }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .icon { color: var(--sky); }
.hero .breadcrumb { margin-bottom: 26px; }
.marquee { position: relative; border-top: 1px solid var(--line-dark); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; width: max-content; gap: 36px; animation: marquee 32s linear infinite; }
.marquee-item { font-family: var(--f-title); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); white-space: nowrap; }
.marquee-item:nth-child(4n+1) { color: #fff; -webkit-text-stroke: 0; }
.marquee-sep { font-family: var(--f-title); font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--sky); }

/* ---------- Formulaire (carte) ---------- */
.form-card { position: relative; background: #fff; color: var(--text); padding: 30px 28px 22px; box-shadow: var(--shadow); border-top: 4px solid var(--sky); }
.form-card::before { content: ""; position: absolute; top: -4px; left: 0; width: 34%; height: 4px; background: var(--blue); animation: formLine 3.5s var(--ease) infinite; }
.form-card::after { content: ""; position: absolute; right: -12px; bottom: -12px; width: 64px; height: 64px; border-right: 2px solid var(--sky); border-bottom: 2px solid var(--sky); pointer-events: none; }
.form-card-title { font-family: var(--f-title); font-weight: 700; font-size: 1.35rem; line-height: 1.2; color: var(--ink); margin: 0 0 6px; letter-spacing: -.02em; }
.form-card-sub { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.tally-frame { width: 100%; border: 0; }
.form-fallback p { margin-bottom: 12px; }
.form-card--compact { padding: 18px; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .82rem; font-family: var(--f-title); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.65); }
.breadcrumb li + li::before { content: "/"; color: var(--sky); }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--pale { background: var(--pale); }
.section--ciel { background: var(--pale-2); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; background-position: -1px -1px; }
.section--marine { background: var(--ink); color: rgba(255,255,255,.85); overflow: hidden; }
.section--marine h2, .section--marine h3 { color: #fff; }
.section + .section:not([class*="section--"]) { padding-top: 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.section-head h2 { margin-bottom: 0; }
.section-head .section-lead { margin-top: 16px; margin-bottom: 0; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 64px; align-items: end; max-width: none; }
.section-head--split .section-lead { margin-top: 0; }
.section-more { margin: 36px 0 0; }

/* Texte : titre à gauche, contenu à droite */
.texte-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.texte-aside { position: sticky; top: calc(var(--header-h) + 32px); border-top: 2px solid var(--ink); padding-top: 22px; }
.texte-aside h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin: 0; }
.section--marine .texte-aside { border-color: var(--sky); }

/* Prose */
.prose-site > :last-child { margin-bottom: 0; }
.prose-site p { color: inherit; }
.prose-site h3 { margin-top: 1.6em; }
.prose-site ul:not(.check-list) { padding-left: 1.2em; margin: 0 0 1em; }
.prose-site ul:not(.check-list) li { margin-bottom: .4em; }
.check-list { list-style: none; display: grid; gap: 12px; margin: 22px 0 26px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: #fff; background: var(--blue); width: 24px; height: 24px; padding: 4px; margin-top: 1px; }
.section--marine .check-list .icon { background: var(--sky); color: var(--ink); }

/* Media + texte */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.media-row--reverse .media-row-img { order: 2; }
.media-row-img { position: relative; padding: 0 28px 28px 0; }
.media-row--reverse .media-row-img { padding: 0 0 28px 28px; }
.media-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--blue) 0%, var(--ink) 100%); }
.media-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,27,63,.35)); pointer-events: none; }
.media-row-img::before { content: ""; position: absolute; right: 0; bottom: 0; width: 70%; height: 70%; border: 2px solid var(--blue); z-index: -1; }
.media-row--reverse .media-row-img::before { right: auto; left: 0; }
.media-row-img { isolation: isolate; }
.media-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-row-img:hover .media-photo { transform: scale(1.05); }
.media-svg { position: absolute; left: -24px; bottom: 0; width: 44%; max-width: 240px; background: #fff; padding: 12px; color: var(--blue); box-shadow: var(--shadow); }
.media-row--reverse .media-svg { left: auto; right: -24px; }
.media-row-text h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.media-row-text p { color: var(--muted); }
.media-frame--dark { aspect-ratio: 4 / 5; }

/* Cartes */
.cards-grid { display: grid; gap: 24px; }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid--lines { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cards-grid--lines > .card { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease), border-color .4s; }
.card-title { font-size: 1.25rem; margin: 0; color: var(--ink); transition: color .4s; }
.card-text { color: var(--muted); margin: 0; font-size: .98rem; transition: color .4s; }
.card-kicker { font-family: var(--f-title); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.card-num { font-family: var(--f-title); font-weight: 800; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--blue); margin-bottom: 18px; transition: -webkit-text-stroke-color .4s, color .4s; }
.card-arrow { margin-top: auto; padding-top: 16px; color: var(--blue); transition: transform .4s var(--ease), color .4s; }
.card--link { cursor: pointer; }
.card--link::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--sky); transition: width .5s var(--ease); }
.card--link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--link:hover::before { width: 100%; }
.card--link:hover .card-title { color: #fff; }
.card--link:hover .card-text { color: rgba(255,255,255,.75); }
.card--link:hover .card-num { color: var(--sky); -webkit-text-stroke-color: var(--sky); }
.card--link:hover .card-arrow { color: var(--sky); transform: translateX(6px); }
.card--link:hover .card-kicker { color: var(--sky); }

/* Services en lignes */
.services-list { border-top: 2px solid var(--ink); }
.service-row { position: relative; display: grid; grid-template-columns: 64px 56px minmax(0, 1fr) 220px 56px; gap: 24px; align-items: center; padding: 30px 20px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden; isolation: isolate; transition: color .4s var(--ease); }
.service-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.service-row:hover::before, .service-row:focus-visible::before { transform: scaleY(1); }
.service-row-num { font-family: var(--f-title); font-weight: 700; font-size: .9rem; color: var(--blue); }
.service-row-icon { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line); color: var(--blue); transition: border-color .4s, color .4s, background .4s; }
.service-row-icon .icon { width: 28px; height: 28px; }
.service-row-kicker { display: block; font-family: var(--f-title); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.service-row-title { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 4px 0 6px; color: var(--ink); transition: color .4s; }
.service-row-text { display: block; color: var(--muted); max-width: 60ch; transition: color .4s; }
.service-row-media { position: relative; height: 140px; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--ink)); clip-path: inset(0 0 0 100%); transition: clip-path .6s var(--ease); }
.service-row-img { width: 100%; height: 100%; object-fit: cover; }
.service-row-arrow { display: grid; place-items: center; width: 56px; height: 56px; background: var(--blue); color: #fff; transition: background .4s, color .4s, transform .4s var(--ease); }
.service-row:hover { color: #fff; }
.service-row:hover .service-row-title { color: #fff; }
.service-row:hover .service-row-text, .service-row:hover .service-row-kicker { color: rgba(255,255,255,.72); }
.service-row:hover .service-row-num { color: var(--sky); }
.service-row:hover .service-row-icon { border-color: var(--sky); color: var(--sky); }
.service-row:hover .service-row-media { clip-path: inset(0 0 0 0); }
.service-row:hover .service-row-arrow { background: var(--sky); color: var(--ink); transform: rotate(-45deg); }

/* Étapes */
.steps { list-style: none; counter-reset: s; }
.steps--timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.steps--timeline .step { position: relative; padding: 32px 28px 0 0; }
.steps--timeline .step::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--blue); }
.step-num { display: inline-block; font-family: var(--f-title); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--blue); margin-bottom: 14px; }
.step-title { font-size: 1.15rem; margin: 0 0 8px; }
.step-text { color: var(--muted); margin: 0; font-size: .97rem; }
.steps--rail { display: grid; gap: 0; }
.steps--rail .step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-dark); }
.steps--rail .step:last-child { border-bottom: 1px solid var(--line-dark); }
.steps--rail .step-num { font-size: 1.6rem; color: var(--sky); margin: 0; }
.section--marine .step-text { color: rgba(255,255,255,.7); }
.methode-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.methode-grid--reverse .methode-img { order: 2; }
.methode-img { position: sticky; top: calc(var(--header-h) + 32px); }
.methode-svg { position: absolute; left: 0; right: 0; top: 0; height: 220px; width: 100%; color: rgba(59,201,255,.18); pointer-events: none; }

/* CTA intermédiaire */
.cta-inline { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 36px; border: 2px solid var(--ink); background: #fff; position: relative; }
.cta-inline::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 100%; height: 100%; background: var(--pale); z-index: -1; }
.section--cta-inline { isolation: isolate; }
.cta-inline-icon { display: grid; place-items: center; width: 120px; height: 120px; background: var(--ink); color: var(--sky); padding: 14px; }
.cta-inline-title { font-size: clamp(1.35rem, 2.2vw, 1.85rem); margin: 0 0 8px; }
.cta-inline-body p { color: var(--muted); margin: 0; }
.cta-inline-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bandeau CTA */
.cta-band-wrap { position: relative; }
.cta-band { position: relative; overflow: hidden; color: #fff; background: var(--blue); isolation: isolate; }
.cta-band-bg { position: absolute; inset: 0; z-index: -2; }
.cta-band-bg picture, .cta-band-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,75,255,.95) 0%, rgba(18,54,201,.9) 50%, rgba(10,27,63,.8) 100%); }
.cta-band-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: rgba(255,255,255,.25); }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 64px; align-items: center; padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.cta-band-title { font-size: clamp(1.9rem, 3.6vw, 3.2rem); color: #fff; margin: 0 0 14px; max-width: 20ch; }
.cta-band-text { color: rgba(255,255,255,.85); max-width: 58ch; margin: 0; font-size: 1.1rem; }
.cta-band-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band .eyebrow--light { color: #fff; }

/* Tarifs */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.pricing { position: relative; display: flex; flex-direction: column; padding: 40px 32px 32px; background: #fff; border-right: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.pricing:last-child { border-right: 0; }
.pricing:hover { transform: translateY(-6px); box-shadow: var(--shadow); z-index: 1; }
.pricing--top { background: var(--ink); color: rgba(255,255,255,.85); border-color: var(--ink); }
.pricing--top .pricing-name, .pricing--top .pricing-amount { color: #fff; }
.pricing-badge { position: absolute; top: 0; right: 0; margin: 0; background: var(--sky); color: var(--ink); font-family: var(--f-title); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; }
.pricing-num { font-family: var(--f-title); font-weight: 700; color: var(--blue); margin: 0 0 18px; font-size: .9rem; }
.pricing--top .pricing-num { color: var(--sky); }
.pricing-name { font-size: 1.6rem; margin: 0 0 6px; color: var(--ink); }
.pricing-for { color: var(--muted); margin: 0 0 26px; font-size: .95rem; min-height: 3em; }
.pricing--top .pricing-for { color: rgba(255,255,255,.7); }
.pricing-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 22px 0; margin: 0 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing--top .pricing-price { border-color: var(--line-dark); }
.pricing-prefix { width: 100%; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pricing--top .pricing-prefix { color: rgba(255,255,255,.6); }
.pricing-amount { font-family: var(--f-title); font-weight: 800; font-size: clamp(2.2rem, 3.6vw, 3rem); letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.pricing-suffix { font-family: var(--f-title); font-weight: 600; color: var(--blue); }
.pricing--top .pricing-suffix { color: var(--sky); }
.pricing-list { list-style: none; display: grid; gap: 12px; margin: 0 0 30px; flex: 1; }
.pricing-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.pricing-list .icon { color: var(--blue); margin-top: 3px; }
.pricing--top .pricing-list .icon { color: var(--sky); }
.pricing-note { margin: 28px 0 0; font-size: .92rem; color: var(--muted); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-aside h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.faq-aside-text { color: var(--muted); }
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--f-title); font-weight: 600; font-size: 1.1rem; color: var(--ink); transition: color .3s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); color: var(--blue); transition: transform .4s var(--ease), background .3s, color .3s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--blue); color: #fff; border-color: var(--blue); }
.faq-answer { padding: 0 60px 24px 0; color: var(--muted); animation: fadeDown .45s var(--ease); }
.faq-answer > :last-child { margin-bottom: 0; }

/* Villes */
.city-card { gap: 14px; }
.city-card-head { display: flex; align-items: center; gap: 14px; }
.city-card-cp { display: grid; place-items: center; width: 48px; height: 48px; flex: none; background: var(--blue); color: #fff; font-family: var(--f-title); font-weight: 800; transition: background .4s, color .4s; }
.card--link:hover .city-card-cp { background: var(--sky); color: var(--ink); }
.city-card-id { display: flex; flex-direction: column; }
.city-card-name { font-family: var(--f-title); font-weight: 700; font-size: 1.12rem; color: var(--ink); transition: color .4s; }
.city-card-meta { font-size: .82rem; color: var(--muted); transition: color .4s; }
.city-card-text { color: var(--muted); font-size: .94rem; transition: color .4s; }
.card--link:hover .city-card-name { color: #fff; }
.card--link:hover .city-card-meta, .card--link:hover .city-card-text { color: rgba(255,255,255,.72); }
.city-filters { display: grid; grid-template-columns: 2fr 1.4fr auto; gap: 16px; align-items: end; padding: 28px; background: var(--pale); border-top: 3px solid var(--blue); margin-bottom: 24px; }
.field label { display: block; font-family: var(--f-title); font-size: .82rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field input, .field select { width: 100%; min-height: 54px; padding: 0 16px; border: 2px solid var(--ink); background: #fff; font: inherit; color: var(--text); appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,75,255,.2); }
.field-icon { position: relative; }
.field-icon .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field-icon input { padding-left: 46px; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; }
.letter { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--line); font-family: var(--f-title); font-weight: 600; font-size: .85rem; color: var(--ink); text-decoration: none; transition: background .25s, color .25s; }
.letter:hover, .letter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.city-count { color: var(--muted); font-size: .92rem; }
.city-empty { padding: 32px; background: var(--pale); }
.pagination { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 36px; }
.page-link { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); color: var(--ink); font-family: var(--f-title); font-weight: 600; text-decoration: none; }
.page-link:hover, .page-link.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-gap { display: grid; place-items: center; min-width: 30px; color: var(--muted); }
.commune-list { columns: 4 200px; column-gap: 24px; list-style: none; font-size: .92rem; }
.commune-list li { padding: 5px 0; break-inside: avoid; border-bottom: 1px solid var(--line); }
.commune-list a { color: var(--ink); text-decoration: none; }
.commune-list a:hover { color: var(--blue); text-decoration: underline; }
.commune-list span { color: var(--muted); font-size: .85em; }
.nearby-text { margin-top: 24px; color: var(--muted); }
.link-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 32px; }
.link-list a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--f-title); font-weight: 600; font-size: .9rem; }
.link-list a:hover { background: var(--ink); color: #fff; }
.legal-maj { color: var(--muted); font-size: .9rem; padding-bottom: 48px; }
.section--legal + .section--legal { padding-top: 0; }
.section--legal h2 { font-size: 1.5rem; padding-top: 18px; border-top: 2px solid var(--ink); }

/* ---------- Simulateur ---------- */
.sim-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.sim-progress { position: sticky; top: var(--header-h); z-index: 2; height: 4px; background: var(--line); margin-bottom: 8px; }
.sim-progress span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .5s var(--ease); }
.sim-q { border: 0; margin: 0; padding: 32px 0; border-bottom: 1px solid var(--line); }
.sim-q legend { display: flex; gap: 16px; align-items: baseline; font-family: var(--f-title); font-weight: 700; font-size: 1.2rem; color: var(--ink); padding: 0; margin-bottom: 18px; }
.sim-q-num { font-size: .85rem; color: var(--blue); flex: none; }
.sim-help { color: var(--muted); font-size: .92rem; margin: -6px 0 16px; }
.sim-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sim-option { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.sim-option:hover { border-color: var(--blue); transform: translateY(-2px); }
.sim-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sim-option-box { position: relative; flex: none; width: 22px; height: 22px; border: 2px solid var(--ink); background: #fff; transition: background .25s, border-color .25s; }
.sim-option-box::after { content: ""; position: absolute; inset: 4px; background: #fff; transform: scale(0); transition: transform .25s var(--ease); }
.sim-option input:checked ~ .sim-option-box { background: var(--blue); border-color: var(--blue); }
.sim-option input:checked ~ .sim-option-box::after { transform: scale(1); }
.sim-options--multi .sim-option input:checked ~ .sim-option-box::after { inset: 3px 6px 6px 6px; background: transparent; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.sim-option:has(input:checked) { border-color: var(--blue); background: var(--pale); }
.sim-option input:focus-visible ~ .sim-option-box { outline: 3px solid var(--sky); outline-offset: 2px; }
.sim-option-label { font-size: .98rem; line-height: 1.35; }
.sim-error { color: #C62828; font-weight: 700; margin: 20px 0 0; }
.sim .btn { margin-top: 32px; }
.sim-summary { position: sticky; top: calc(var(--header-h) + 28px); }
.sim-summary-inner { position: relative; background: var(--ink); color: #fff; padding: 32px 28px 24px; overflow: hidden; border-top: 4px solid var(--sky); }
.sim-summary-label { font-family: var(--f-title); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin: 0 0 12px; }
.sim-summary-price { font-family: var(--f-title); font-weight: 800; font-size: 2rem; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 8px; }
.sim-summary-price small { font-size: .9rem; color: rgba(255,255,255,.6); }
.sim-summary-sep { font-weight: 400; font-size: 1rem; color: rgba(255,255,255,.6); }
.sim-summary-month { font-family: var(--f-title); font-weight: 600; color: var(--sky); margin: 0 0 8px; }
.sim-summary-hint { color: rgba(255,255,255,.6); font-size: .85rem; margin: 0 0 18px; }
.sim-summary-svg { width: 100%; color: rgba(255,255,255,.5); }
.sim-result { margin-top: 48px; display: grid; grid-template-columns: 5fr 7fr; border: 2px solid var(--ink); animation: fadeDown .6s var(--ease); }
.sim-result:focus { outline: none; }
.sim-result[hidden] { display: none; }
.sim-result-head { background: var(--blue); color: #fff; padding: 40px 32px; }
.sim-score { font-family: var(--f-title); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 12px; }
.sim-score small { font-size: .45em; font-weight: 600; opacity: .8; letter-spacing: 0; }
.sim-result-month { font-family: var(--f-title); font-weight: 600; color: #fff; margin: 0; }
.sim-result-body { padding: 40px 32px; }
.sim-result-body h3 { font-size: 1.5rem; }
.sim-result-body h4 { margin-top: 24px; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--blue); }
.sim-note { font-size: .88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: rgba(255,255,255,.72); padding-top: 80px; overflow: hidden; font-size: .95rem; }
.footer-svg { position: absolute; left: 0; top: 0; width: 100%; height: 180px; color: rgba(59,201,255,.12); pointer-events: none; }
.footer-top { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.site-footer .footer-logo { color: #fff; }
.site-footer .logo-mark { color: var(--blue); }
.footer-baseline { margin: 0; max-width: 60ch; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
.footer-title { font-family: var(--f-title); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin: 0 0 18px; }
.footer-links, .footer-contact, .footer-social { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-contact a, .footer-social a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .25s, padding .25s; }
.footer-links a:hover { color: var(--sky); padding-left: 6px; }
.footer-contact a:hover, .footer-social a:hover { color: var(--sky); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--sky); margin-top: 3px; }
.footer-small { font-size: .85rem; margin-top: 14px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line-dark); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- CTA sticky ---------- */
.cta-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; gap: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(10,27,63,.5); transition: transform .35s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.cta-sticky.is-hidden { transform: translateY(110%); }
.cta-sticky-btn { flex: 1; min-height: 58px; border: 0; }
.cta-sticky .btn-secondary { border: 0; border-right: 1px solid var(--line); }

/* ---------- Popup de sortie ---------- */
.popup { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.popup[hidden] { display: none; }
.popup-backdrop { position: absolute; inset: 0; background: rgba(10,27,63,.78); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.popup-panel { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); width: min(860px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.popup-panel:focus { outline: none; }
.popup.is-open .popup-backdrop { opacity: 1; }
.popup.is-open .popup-panel { opacity: 1; transform: none; }
.popup-visual { position: relative; background: linear-gradient(160deg, var(--blue), var(--ink)); overflow: hidden; }
.popup-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; mix-blend-mode: luminosity; }
.popup-svg { position: absolute; left: 24px; right: 24px; bottom: 24px; width: calc(100% - 48px); color: rgba(255,255,255,.7); }
.popup-body { padding: 40px 36px 32px; }
.popup-kicker { font-family: var(--f-title); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
.popup-title { font-family: var(--f-title); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); margin: 0 0 12px; }
.popup-text { color: var(--muted); margin: 0 0 16px; }
.popup-close { position: absolute; top: 0; right: 0; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; background: var(--ink); color: #fff; border: 0; transition: background .25s; }
.popup-close:hover { background: var(--blue); }
.popup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.popup-actions--mobile { display: none; }
.popup--mobile { place-items: end stretch; padding: 0; }
.popup--mobile .popup-backdrop { background: rgba(10,27,63,.4); }
.popup--mobile .popup-panel { grid-template-columns: 1fr; width: 100%; transform: translateY(100%); }
.popup--mobile.is-open .popup-panel { transform: none; }
.popup--mobile .popup-visual, .popup--mobile .popup-form { display: none; }
.popup--mobile .popup-body { padding: 28px 22px 22px; }
.popup--mobile .popup-actions--mobile { display: flex; }
.popup--mobile .popup-actions .btn { flex: 1; }
.popup-open { overflow: hidden; }

/* ---------- SVG animés ---------- */
.svga { overflow: visible; }
.svga-fill { fill: currentColor; }
.svga-bar { fill: currentColor; transform-box: fill-box; transform-origin: left; animation: barGrow 4s var(--ease) infinite; }
.svga-bar--2 { animation-delay: .2s; }
.svga-bar--3 { animation-delay: .4s; }
.svga-btn { animation: btnPulse 4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.svga-draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 4s var(--ease) infinite; }
.svga-cursor { animation: cursor 4s var(--ease) infinite; }
.svga-col { fill: currentColor; opacity: .18; transform-box: fill-box; transform-origin: bottom; animation: colGrow 3.6s var(--ease) infinite; }
.svga-col--2 { animation-delay: .12s; } .svga-col--3 { animation-delay: .24s; } .svga-col--4 { animation-delay: .36s; } .svga-col--5 { animation-delay: .48s; opacity: .32; }
.svga-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 3.6s var(--ease) infinite; }
.svga-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-in-out infinite; }
.svga-wave { animation: wave 9s ease-in-out infinite alternate; }
.svga-wave--2 { animation-duration: 12s; animation-delay: -3s; }
.svga-wave--3 { animation-duration: 15s; animation-delay: -6s; }
.svga-spin { transform-box: view-box; transform-origin: 100px 100px; animation: spin 18s linear infinite; }
.svga-spin--rev { animation-direction: reverse; animation-duration: 12s; }
.svga-link { stroke-dasharray: 6 8; animation: dash 6s linear infinite; }
.svga-link--2 { animation-duration: 9s; }
.svga-link--3 { animation-duration: 12s; animation-direction: reverse; }
.svga-node { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: nodeBlink 3s ease-in-out infinite; }
.svga-node--2 { animation-delay: .8s; } .svga-node--3 { animation-delay: 1.6s; }
.svga-node--hot { fill: var(--sky); }
.svga-ring { transform-box: fill-box; transform-origin: center; animation: ring 2.8s ease-out infinite; }
.svga-ring--2 { animation-delay: 1.4s; }
.service-row:hover .draw, .card--link:hover .draw { stroke-dasharray: 80; animation: draw 1.2s var(--ease) forwards; }

/* ---------- Apparitions au scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal]:not(.is-visible) { animation: revealFallback 0s 3.5s forwards; }
.js [data-reveal-delay="1"] { transition-delay: .12s; }
.js [data-reveal-delay="2"] { transition-delay: .24s; }
.js [data-reveal-delay="3"] { transition-delay: .36s; }
.js .hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: heroIn 1s var(--ease) both; }
.js .hero [data-reveal-delay="1"] { animation-delay: .15s; }
.js .hero [data-reveal-delay="2"] { animation-delay: .3s; }

/* ---------- Keyframes ---------- */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes revealFallback { to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes formLine { 0% { left: 0; width: 0; } 50% { left: 0; width: 100%; } 100% { left: 100%; width: 0; } }
@keyframes logoDot { 0%, 70%, 100% { transform: none; } 80% { transform: translate(-3px, 3px); } 90% { transform: translate(0, -2px); } }
@keyframes barGrow { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes btnPulse { 0%, 55%, 100% { transform: scale(1); } 62% { transform: scale(.9); } 70% { transform: scale(1); } }
@keyframes draw { 0% { stroke-dashoffset: 400; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -400; } }
@keyframes cursor { 0% { transform: translate(250px, 190px); } 45% { transform: translate(60px, 122px); } 60% { transform: translate(58px, 124px); } 100% { transform: translate(250px, 190px); } }
@keyframes colGrow { 0% { transform: scaleY(.15); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }
@keyframes wave { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -140; } }
@keyframes nodeBlink { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 10px 9px; font-size: .86rem; }
  .header-tel-num { display: none; }
  .service-row { grid-template-columns: 48px 56px minmax(0, 1fr) 56px; }
  .service-row-media { display: none; }
}
@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .topbar-hours { display: none; }
  .menu-toggle { display: block; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; } /* backdrop-filter casserait le panneau fixe */
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; gap: 10px; }
  .header-tel { display: inline-flex; }
  .header-tel .icon { width: 48px; height: 48px; padding: 14px; }
  .header-nav { position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0; height: auto; background: #fff; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s; margin: 0; padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom)); z-index: 89; border-top: 1px solid var(--line); }
  .menu-open .header-nav { visibility: visible; opacity: 1; transform: none; }
  .menu-open, .menu-open body { overflow: hidden; }
  .menu-open .cta-sticky { transform: translateY(110%); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .menu-open .nav-list > li { opacity: 1; transform: none; }
  .menu-open .nav-list > li:nth-child(2) { transition-delay: .04s; } .menu-open .nav-list > li:nth-child(3) { transition-delay: .08s; } .menu-open .nav-list > li:nth-child(4) { transition-delay: .12s; } .menu-open .nav-list > li:nth-child(5) { transition-delay: .16s; } .menu-open .nav-list > li:nth-child(6) { transition-delay: .2s; } .menu-open .nav-list > li:nth-child(n+7) { transition-delay: .24s; }
  .nav-mobile-head { display: flex !important; justify-content: space-between; padding: 18px 0 10px; font-family: var(--f-title); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink) !important; }
  .nav-link { display: flex; width: 100%; min-height: 60px; align-items: center; font-size: 1.2rem; padding: 0; }
  .nav-link[aria-current="page"], .nav-link[data-active="true"] { color: var(--blue); }
  .nav-link::after { display: none; }
  .nav-item-row { display: flex; align-items: stretch; width: 100%; }
  .nav-item-row .nav-link { flex: 1; }
  .sub-toggle { flex: none; width: 60px; min-height: 60px; justify-content: center; align-items: center; border-left: 1px solid var(--line); color: var(--ink); }
  .sub-toggle .icon { width: 22px; height: 22px; }
  .nav-item.is-open .sub-toggle { transform: none; background: var(--ink); color: #fff; }
  .nav-item.is-open .sub-toggle .icon { transform: rotate(180deg); }
  .sub-menu { position: static; width: auto; display: none; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--blue); background: var(--pale-2); margin: 0 0 14px; }
  .nav-item.is-open .sub-menu { display: grid; }
  .nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu { display: none; }
  .nav-item.is-open:hover .sub-menu, .nav-item.is-open:focus-within .sub-menu { display: grid; }
  .sub-menu > li:nth-child(odd):not(.sub-menu-all) { border-right: 0; }
  .sub-link { padding: 14px 16px; }
  .sub-link-text { display: none; }
  .sub-menu-all { padding: 14px 16px; background: transparent; }
  .nav-mobile-only { display: block; }
  .nav-list > .nav-mobile-ctas { border-bottom: 0; padding-top: 12px; }
  .nav-list > .nav-mobile-ctas + .nav-mobile-ctas { padding-top: 10px; }
  .nav-mobile-ctas .btn { width: 100%; min-height: 56px; }
  .nav-list > .nav-mobile-info { border-bottom: 0; padding-top: 22px; font-size: .9rem; color: var(--muted); }
  .nav-mobile-info a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; word-break: break-all; }
  .nav-mobile-info .icon { color: var(--blue); }
  .nav-mobile-info p { margin: 8px 0 0; }
  .header-cta { display: none; }
  .hero-inner, .hero--home .hero-inner { grid-template-columns: 1fr; grid-template-areas: "text" "form" "lead"; min-height: 0; row-gap: 28px; }
  .hero-form { align-self: stretch; }
  .hero-title { max-width: none; margin-bottom: 0; }
  .hero-svg { width: 90vw; opacity: .6; }
  .hero-actions { margin-top: 8px; }
  .section-head--split, .texte-layout, .faq-layout, .methode-grid, .media-row, .sim-layout, .sim-result { grid-template-columns: 1fr; }
  .texte-aside, .faq-aside, .methode-img, .sim-summary { position: static; }
  .media-row--reverse .media-row-img, .methode-grid--reverse .methode-img { order: 0; }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing { border-right: 0; border-bottom: 1px solid var(--line); }
  .cta-inline { grid-template-columns: 1fr; }
  .cta-inline-icon { width: 88px; height: 88px; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-band-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .city-filters { grid-template-columns: 1fr 1fr; }
  .field--submit { grid-column: 1 / -1; }
  .popup-panel { grid-template-columns: 1fr; }
  .popup-visual { display: none; }
  .sim-summary { order: -1; }
}
@media (max-width: 1023px) { .has-sticky .cta-sticky { display: flex; } .has-sticky .site-footer { padding-bottom: 58px; } }
@media (min-width: 1024px) { .has-sticky-desktop .cta-sticky { display: flex; left: auto; right: 24px; bottom: 24px; width: 360px; } }
@media (max-width: 767px) {
  .btn { width: 100%; white-space: normal; text-align: center; padding: 12px 20px; }
  .hero-actions, .hero-actions--static, .cta-inline-actions, .cta-band-actions, .popup-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn, .cta-inline-actions .btn, .cta-band-actions .btn, .popup-actions .btn, .pricing .btn, .sim .btn, .section-more .btn { flex: none; width: 100%; }
  .cta-sticky .cta-sticky-btn { width: auto; flex: 1; }
  .site-footer .footer-top .btn { width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar-mail { display: none; }
  .topbar-inner { justify-content: center; }
  .logo-l1 { font-size: .9rem; }
  .header-tel-num { display: none; }
  .form-card { padding: 24px 18px 16px; }
  .form-card::after { display: none; }
  .cards-grid--2, .cards-grid--3, .cards-grid--4 { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 14px; padding: 24px 8px; }
  .service-row-icon { display: none; }
  .service-row-arrow { width: 44px; height: 44px; }
  .sim-options { grid-template-columns: 1fr; }
  .media-row-img, .media-row--reverse .media-row-img { padding: 0 14px 14px 0; }
  .media-svg, .media-row--reverse .media-svg { left: auto; right: 0; width: 46%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .city-filters { grid-template-columns: 1fr; padding: 20px; }
  .faq-answer { padding-right: 0; }
  .steps--rail .step { grid-template-columns: 52px 1fr; }
}

/* ---------- Réduire les animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .svga-draw, .svga-line { stroke-dashoffset: 0; }
}
@media print {
  .topbar, .site-header, .cta-sticky, .popup, .cta-band-wrap, .hero-form, .site-footer { display: none !important; }
  .hero { color: #000; background: none; }
  .hero-bg, .hero-svg, .hero-grid-lines { display: none; }
}
