/* ───────── Base projet ───────── */
html, body { overflow-x: clip; }
body { background: var(--paper); }
h1, h2, h3 { font-family: var(--font-display); }
::selection { background: var(--orange); color: #fff; }

.h2 {
  font-size: var(--step-4); font-weight: 900; font-style: italic; font-stretch: 112%;
  letter-spacing: -0.025em; line-height: .95; text-transform: uppercase; color: var(--blue);
}
.lead { font-size: var(--step-1); color: var(--color-text-muted); line-height: 1.5; max-width: 38rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: var(--space-m);
  font: 600 var(--step--1)/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep);
}
.eyebrow--light { color: var(--orange); }
.eyebrow::before { content: ""; width: 2.2em; height: 2px; background: currentColor; }
.hero__eyebrow::before, .quote-section .eyebrow::before { display: none; }
.dot { width: .6em; height: .6em; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green); box-shadow: 0 0 0 0 rgba(118,184,42,.6); animation: ping 2.2s infinite; }
.dot--orange { background: var(--orange); }
@keyframes ping { 70% { box-shadow: 0 0 0 .6em rgba(118,184,42,0); } 100% { box-shadow: 0 0 0 0 rgba(118,184,42,0); } }

/* Boutons : pastilles, comme les cercles du logo */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: var(--pill); border: 2px solid transparent;
  font: 600 var(--step-0)/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s, transform .4s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn--lg { padding: 1.05em 1.8em; font-size: var(--step-1); }
.btn--accent { background: var(--orange); color: var(--color-on-accent); }
.btn--accent:hover { background: var(--blue); color: #fff; }
.btn--ghost { border-color: var(--blue); color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--orange); color: var(--color-on-accent); }
.btn--outline-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--blue); }
.link-arrow { font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: .15em; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* Barre de progression */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--green), var(--orange)); }

/* ───────── En-tête ───────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: var(--space-m);
  padding: .6rem var(--gutter); transition: background .4s, box-shadow .4s, padding .4s var(--ease);
}
.site-header[data-scrolled] { background: rgba(244,241,234,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--color-line); padding-block: .35rem; }
.site-header__logo img { height: 64px; width: auto; transition: height .4s var(--ease); }
.site-header[data-scrolled] .site-header__logo img { height: 50px; }
.site-nav { margin-left: auto; align-items: center; gap: var(--space-m); }
@media (min-width: 900px) { .site-nav { display: flex; } }
.site-nav__list { display: flex; gap: var(--space-m); }
.site-nav__list a { text-decoration: none; font-weight: 500; position: relative; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.site-nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav__phone, .site-footer__phone, .btn { white-space: nowrap; }
.site-nav__phone { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--blue); text-decoration: none; }
.site-nav__phone svg { width: 1em; fill: var(--green); }
.site-nav__cta { padding: .7em 1.2em; font-size: var(--step--1); }
.site-header__toggle { margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--blue); align-items: center; justify-content: center; cursor: pointer; }
.site-header__toggle-bars, .site-header__toggle-bars::before, .site-header__toggle-bars::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: transform .3s var(--ease), background .3s; }
.site-header__toggle-bars::before, .site-header__toggle-bars::after { content: ""; position: absolute; left: 0; }
.site-header__toggle-bars::before { top: -6px; } .site-header__toggle-bars::after { top: 6px; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars { background: transparent; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .site-header__logo img { height: 52px; }
  .site-nav[data-open] {
    position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: var(--space-l); padding: var(--gutter); background: var(--blue-ink); color: #fff; animation: menuIn .5s var(--ease);
  }
  .site-nav[data-open] .site-nav__list { flex-direction: column; gap: .4rem; }
  .site-nav[data-open] .site-nav__list a { font: 900 italic 2.6rem/1.1 var(--font-display); text-transform: uppercase; }
  .site-nav[data-open] .site-nav__phone { color: #fff; font-size: 1.3rem; }
  .site-nav__cta { font-size: 1rem; }
}
body[data-menu-open] .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
body[data-menu-open] .site-header__logo { opacity: 0; }
body[data-menu-open] .sticky-cta { display: none; }
@keyframes menuIn { from { clip-path: circle(0 at calc(100% - 40px) 40px); } to { clip-path: circle(150% at calc(100% - 40px) 40px); } }
@media (min-width: 900px) and (max-width: 1100px) { .site-nav__phone { display: none; } }

/* ───────── Héros ───────── */
.hero { position: relative; padding: calc(6.5rem + var(--space-l)) 0 var(--space-xl); overflow: hidden; }
.hero::before { /* trame de chantier discrète */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--color-line) 1px, transparent 1px), linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%);
}
.hero__grid { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.3fr 1fr; min-height: calc(100svh - 10rem); } }
.hero__title { font-size: clamp(2.7rem, 1rem + 4.9vw, 6.2rem); font-weight: 900; font-style: italic; font-stretch: 115%; line-height: .9; letter-spacing: -.035em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--space-m); }
.hero__line { display: block; overflow: hidden; padding: .14em .08em .06em 0; margin-top: -.14em; }
.hero__line > span { display: inline-block; }
.hero__line:last-child > span { color: var(--orange); position: relative; }
.hero__line:last-child > span::after { content: ""; position: absolute; left: 0; right: .1em; bottom: .08em; height: .09em; background: var(--green); transform-origin: left; transform: scaleX(var(--u, 1)); }
.hero__sub { font-size: var(--step-1); max-width: 34rem; color: var(--color-text-muted); margin-bottom: var(--space-l); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-bottom: var(--space-l); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--space-m) var(--space-l); border-top: 1px solid var(--color-line); padding-top: var(--space-m); }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font: 900 italic var(--step-2)/1 var(--font-display); color: var(--blue); }
.hero__facts span { font-size: var(--step--1); color: var(--color-text-muted); }

.hero__media { position: relative; aspect-ratio: 4/4.4; max-width: 620px; width: 100%; margin-inline: auto; }
.hero__photo { position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(7,26,51,.55); }
.hero__photo img { width: 100%; height: 100%; }
.hero__photo--1 { left: 18%; top: 0; width: 50%; height: 88%; z-index: 2; }
.hero__photo--2 { right: 0; top: 14%; width: 36%; height: 48%; z-index: 1; }
.hero__photo--3 { left: 0; bottom: 4%; width: 30%; height: 42%; z-index: 3; border: 5px solid var(--paper); }
.badge { position: absolute; right: .8rem; top: .8rem; display: inline-flex; gap: .5em; align-items: center; padding: .45em .9em; border-radius: var(--pill); background: rgba(255,255,255,.92); font-size: .8rem; font-weight: 600; }
.hero__arc { position: absolute; inset: auto -8% -6% -10%; width: 118%; z-index: 4; pointer-events: none; }
.hero__arc-path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero__bubbles { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.bubble { position: absolute; width: clamp(48px, 8vw, 74px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(0,0,0,.4); animation: float 6s ease-in-out infinite; }
.bubble svg { width: 46%; fill: #fff; }
.bubble--orange { background: radial-gradient(circle at 30% 30%, #ffb15a, var(--orange) 60%, var(--orange-deep)); left: 6%; top: 6%; }
.bubble--blue { background: radial-gradient(circle at 30% 30%, #3a85d8, var(--blue) 60%, var(--blue-deep)); right: 10%; top: -3%; animation-delay: -2s; }
.bubble--green { background: radial-gradient(circle at 30% 30%, #a3d65d, var(--green) 60%, #4f8a12); right: 2%; bottom: 26%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-12px) rotate(4deg); } }

/* Entrée du héros */
.js-motion [data-hero-line] { transform: translateY(105%) skewY(6deg); transition: transform 1.1s var(--ease) calc(var(--i) * 110ms + 150ms); }
.js-motion [data-hero-item] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) .6s, transform .9s var(--ease) .6s; }
.js-motion .hero__photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.js-motion .hero__photo--2 { transition-delay: .2s; } .js-motion .hero__photo--3 { transition-delay: .4s; }
.js-motion .hero__arc-path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .5s; }
.js-motion .bubble { opacity: 0; scale: .3; transition: opacity .6s var(--ease), scale .8s cubic-bezier(.34,1.56,.64,1); }
.js-motion .bubble--orange { transition-delay: .9s; } .js-motion .bubble--blue { transition-delay: 1.05s; } .js-motion .bubble--green { transition-delay: 1.2s; }
.js-motion .hero__line:last-child > span::after { --u: 0; transition: transform .8s var(--ease) 1.1s; }
.is-loaded [data-hero-line] { transform: none; }
.is-loaded [data-hero-item] { opacity: 1; transform: none; }
.is-loaded .hero__photo { clip-path: inset(0); }
.is-loaded .hero__arc-path { stroke-dashoffset: 0; }
.is-loaded .bubble { opacity: 1; scale: 1; }
.is-loaded .hero__line:last-child > span::after { --u: 1; }

/* ───────── Bandeau ───────── */
.marquee-wrap { overflow: hidden; padding-block: 1.5rem; margin-block: -1.5rem; position: relative; z-index: 2; }
.marquee { background: var(--blue); color: #fff; overflow: hidden; padding: 1.1rem 0; transform: rotate(-1.2deg) scaleX(1.04); position: relative; z-index: 2; }
.marquee__track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 900 italic var(--step-2)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.marquee i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--orange); flex: none; }
.marquee i:nth-of-type(3n) { background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Services ───────── */
.services { padding: var(--space-2xl) 0 var(--space-xl); }
.section-head { margin-bottom: var(--space-xl); max-width: 52rem; }
.section-head .h2 { margin-bottom: var(--space-m); }
.service-list { border-top: 2px solid var(--blue); }
.service { display: grid; gap: var(--space-m); padding: var(--space-l) 0; border-bottom: 1px solid var(--color-line); position: relative; }
.service__head, .service__body { min-width: 0; }
.service__head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-m); align-items: baseline; }
.service__num { font: 600 var(--step-0)/1 var(--font-body); color: var(--orange-deep); }
.service__title { min-width: 0; overflow-wrap: break-word; hyphens: manual; font-size: clamp(1.7rem, 1rem + 2vw, 3.1rem); font-weight: 900; font-style: italic; font-stretch: 100%; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; color: var(--blue); transition: color .3s, transform .5s var(--ease); }
.service__lead { grid-column: 2; margin: .5rem 0 0; font-weight: 500; }
.service__body p { color: var(--color-text-muted); }
.service__points { margin: var(--space-s) 0 var(--space-m); display: grid; gap: .45rem; }
.service__points li { display: flex; gap: .7em; align-items: baseline; }
.service__points li::before { content: ""; flex: none; width: .55em; height: .55em; border-radius: 50%; background: var(--green); transform: translateY(-.05em); }
.service__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--blue-ink); }
.service__media img { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
@media (min-width: 960px) {
  .service { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-areas: "head media" "body media"; column-gap: var(--space-l); row-gap: var(--space-m); align-items: start; padding: var(--space-l) 0; }
  .service__head { grid-area: head; } .service__body { grid-area: body; } .service__media { grid-area: media; }
  .service__media { aspect-ratio: 4/3; }
  .js-motion .service__media { clip-path: inset(0 0 0 100% round var(--radius)); transition: clip-path 1.1s var(--ease) .25s; }
  .js-motion .service.is-visible .service__media { clip-path: inset(0 0 0 0 round var(--radius)); }
  .service:hover .service__media img { transform: scale(1.06); }
  .service:hover .service__title { color: var(--orange-deep); }
}
@media (min-width: 1280px) {
  .service { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr); grid-template-areas: "head body media"; }
}
.pipes { width: 100%; height: 100%; }
.pipes path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pipes__base { stroke: rgba(255,255,255,.12); stroke-width: 26; }
.pipes__flow { stroke: var(--blue); stroke-width: 10; stroke-dasharray: 26 40; animation: flow 1.6s linear infinite; }
.pipes__flow--2 { stroke: var(--green); animation-duration: 2.2s; }
@keyframes flow { to { stroke-dashoffset: -66; } }

/* ───────── Chantiers ───────── */
.work { background: var(--blue-ink); color: #fff; padding: var(--space-2xl) 0 var(--space-xl); overflow: clip; }
.work .h2 { color: #fff; }
.work .lead { color: rgba(255,255,255,.72); }
.work__head { display: grid; gap: var(--space-m); margin-bottom: var(--space-l); }
@media (min-width: 960px) { .work__head { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.work__rail { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-inline: var(--gutter); }
.work__rail::-webkit-scrollbar { display: none; }
.work__track { display: flex; gap: var(--space-m); width: max-content; padding-bottom: var(--space-s); }
.work__item { margin: 0; width: min(72vw, 360px); scroll-snap-align: start; flex: none; }
.work__item img { width: 100%; aspect-ratio: 9/14; border-radius: var(--radius); }
.work__item--2 img { aspect-ratio: 3/4; }
.work__item:nth-child(even) { margin-top: var(--space-l); }
.work__item figcaption { display: flex; gap: .8em; padding-top: .8rem; font-size: var(--step--1); color: rgba(255,255,255,.8); }
.work__item figcaption span { color: var(--orange); font-weight: 600; }
.work__end { flex: none; width: min(72vw, 340px); align-self: center; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: .8rem; padding: 2rem;
  background: var(--orange); color: var(--color-on-accent); text-decoration: none; transition: transform .5s var(--ease), background .3s; }
.work__end span { font: 900 italic var(--step-2)/1.05 var(--font-display); text-transform: uppercase; }
.work__end:hover { transform: rotate(-4deg) scale(1.03); background: var(--green); }
@media (min-width: 960px) {
  .work.is-pinned .work__rail { overflow: visible; }
  .work__item { width: 30vw; max-width: 420px; }
  .work.is-pinned { height: var(--pin-h); padding: 0; }
  .work.is-pinned .work__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 4svh, 3rem); padding: calc(5.5rem + 3svh) 0 6svh; }
  .work.is-pinned .work__head { margin-bottom: 0; }
  .work.is-pinned .h2 { font-size: clamp(2rem, 1rem + 2.6vw, 3.8rem); }
  .work.is-pinned .work__track { will-change: transform; }
  .work.is-pinned .work__item { width: auto; }
  .work.is-pinned .work__item img { height: 42svh; width: auto; }
  .work.is-pinned .work__item:nth-child(even) { margin-top: 4svh; }
  .work.is-pinned .work__end { width: 36svh; }
}

/* ───────── Arnaud ───────── */
.about { padding: var(--space-2xl) 0 var(--space-xl); }
.about__grid { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 960px) { .about__grid { grid-template-columns: .9fr 1.1fr; } }
.about__big { position: relative; display: flex; align-items: flex-end; gap: 1rem; }
.about__ten { font: 900 italic clamp(10rem, 6rem + 22vw, 26rem)/.78 var(--font-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 3px var(--blue);
  background: linear-gradient(180deg, var(--blue) 0 50%, transparent 50%) 0 0 / 100% 200% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-position 1.6s var(--ease) .2s; }
.js-motion .about__ten { background-position: 0 100%; }
.js-motion .about__big.is-visible .about__ten { background-position: 0 0; }
.about__ten-label { white-space: nowrap; font: 600 var(--step-0)/1.3 var(--font-body); color: var(--orange-deep); padding-bottom: 1.5rem; }
.about__text .h2 { font-size: var(--step-3); margin-bottom: var(--space-m); }
.prose p { color: var(--color-text-muted); }
.prose strong { color: var(--color-text); }
.quote { margin: var(--space-l) 0 0; padding: var(--space-m) 0 0 var(--space-m); border-left: 4px solid var(--orange); }
.quote p { font: 700 italic var(--step-2)/1.15 var(--font-display); color: var(--blue); }
.quote cite { font-style: normal; font-weight: 600; font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.pluses { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: var(--space-xl); border-top: 2px solid var(--blue); }
@media (min-width: 960px) { .pluses { grid-template-columns: repeat(4, 1fr); } }
.pluses li { padding: var(--space-m) var(--space-s) var(--space-m) 0; display: flex; flex-direction: column; gap: .3rem; border-bottom: 1px solid var(--color-line); }
.pluses strong { font: 900 italic var(--step-3)/1 var(--font-display); color: var(--blue); }
.pluses li:nth-child(2) strong { color: var(--orange-deep); } .pluses li:nth-child(3) strong { color: #4f8a12; }
.pluses span { color: var(--color-text-muted); font-size: var(--step--1); }

/* ───────── Étapes ───────── */
.steps { padding: var(--space-xl) 0; background: var(--paper-2); }
.section-head--row { margin-bottom: var(--space-l); }
.steps__list { position: relative; display: grid; gap: var(--space-l); }
@media (min-width: 900px) { .steps__list { grid-template-columns: repeat(3, 1fr); } }
.steps__line { position: absolute; left: 0; right: 0; top: 2rem; height: 3px; background: var(--color-line); display: none; }
@media (min-width: 900px) { .steps__line { display: block; } }
.steps__line span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green), var(--orange)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; }
.js-motion .step[data-reveal] { transition-delay: var(--d); }
.step__num { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--blue); color: #fff; font: 900 italic 1.8rem/1 var(--font-display); margin-bottom: var(--space-m); position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--paper-2); }
.step:nth-of-type(3) .step__num { background: var(--green); } .step:nth-of-type(4) .step__num { background: var(--orange); }
.step h3 { font-size: var(--step-2); font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--blue); margin-bottom: .5rem; }
.step p { color: var(--color-text-muted); max-width: 22rem; }

/* ───────── Zone ───────── */
.zone { background: var(--blue); color: #fff; padding: var(--space-xl) 0; position: relative; overflow: hidden; }
.zone .h2 { color: #fff; margin-bottom: var(--space-m); }
.zone__grid { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 960px) { .zone__grid { grid-template-columns: 1fr 1.1fr; } }
.zone__text > p { color: rgba(255,255,255,.82); max-width: 32rem; }
.zone__addr { display: flex; flex-direction: column; margin-top: var(--space-m); font-weight: 600; }
.zone__addr span { font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.hours { margin: var(--space-m) 0 0; display: grid; gap: .35rem; max-width: 22rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed currentColor; padding-bottom: .35rem; }
.hours dt { opacity: .75; } .hours dd { margin: 0; font-weight: 600; }
.hours--light div { border-color: rgba(255,255,255,.25); }
.zone__map { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin-inline: auto; }
.zone__map svg { width: 100%; height: 100%; overflow: visible; }
.ring { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.35); stroke-width: .3; stroke-dasharray: 1 1.2; transform-origin: 50% 50%; }
.ring--outer { fill: none; stroke: var(--orange); stroke-dasharray: none; stroke-width: .4; }
.ring-label { fill: rgba(255,255,255,.6); font-size: 2.4px; text-anchor: middle; font-family: var(--font-body); }
.pulse { fill: var(--orange); transform-origin: 50% 50%; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(6); } }
.town { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); padding: .3em .7em; border-radius: var(--pill); background: rgba(7,26,51,.55); border: 1px solid rgba(255,255,255,.25); font-size: clamp(.62rem, .55rem + .3vw, .8rem); white-space: nowrap; }
.town::before { content: ""; position: absolute; left: 50%; top: -6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--green); }
.town--center { background: var(--orange); color: var(--color-on-accent); font-weight: 700; border: 0; font-size: clamp(.8rem, .7rem + .4vw, 1rem); z-index: 2; }
.town--center::before { display: none; }
.js-motion .zone__map .ring { transform: scale(0); transition: transform 1.4s var(--ease); }
.js-motion .zone__map .ring:nth-child(2) { transition-delay: .15s; } .js-motion .zone__map .ring:nth-child(1) { transition-delay: .3s; }
.js-motion .zone__map .town:not(.town--center) { opacity: 0; translate: 0 10px; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: calc(var(--d) + .6s); }
.zone__map.is-visible .ring { transform: none; }
.js-motion .zone__map.is-visible .town:not(.town--center), .zone__map.is-visible .town { opacity: 1; translate: 0 0; }

/* ───────── Assistant devis ───────── */
.quote-section { padding: var(--space-2xl) 0 var(--space-xl); }
.quote-section__grid { display: grid; gap: var(--space-l); align-items: start; }
@media (min-width: 960px) { .quote-section__grid { grid-template-columns: .9fr 1.1fr; } .quote-section__text { position: sticky; top: 8rem; } }
.quote-section .h2 { font-size: var(--step-3); margin-bottom: var(--space-m); }
.quote-section .lead { margin-bottom: var(--space-m); }
.spark { color: var(--orange); display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chat { background: #fff; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(7,26,51,.45), 0 0 0 1px var(--color-line); display: flex; flex-direction: column; height: min(640px, 80svh); overflow: hidden; }
.chat__top { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--color-line); }
.chat__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.chat__avatar img { width: 34px; height: 34px; object-fit: contain; }
.chat__top strong { display: block; font-size: .95rem; }
.chat__status { display: flex; align-items: center; gap: .45em; font-size: .78rem; color: var(--color-text-muted); }
.chat__restart { margin-left: auto; border: 0; background: none; color: var(--color-text-muted); font-size: .82rem; text-decoration: underline; cursor: pointer; }
.chat__log { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; scroll-behavior: smooth; }
.msg { max-width: 85%; padding: .75rem 1rem; border-radius: 18px; line-height: 1.45; font-size: .97rem; animation: msgIn .45s var(--ease); }
.msg p { margin: 0; }
.msg--bot { background: var(--paper); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg--user { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg strong { color: var(--blue); } .msg--user strong { color: #fff; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-muted); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-5px); opacity: .5; } }
.chat__chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.2rem .8rem; }
.chat__chips:empty { display: none; }
.chip { border: 1.5px solid var(--blue); background: #fff; color: var(--blue); border-radius: var(--pill); padding: .5em 1em; font-size: .88rem; font-weight: 500; cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease); animation: msgIn .45s var(--ease) both; }
.chip:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.chat__form { display: flex; gap: .6rem; padding: .8rem 1rem 1rem; border-top: 1px solid var(--color-line); }
.chat__form textarea { flex: 1; resize: none; border: 1.5px solid var(--color-line); border-radius: 14px; padding: .75rem .9rem; max-height: 120px; background: var(--paper); }
.chat__form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.chat__send { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--orange); cursor: pointer; display: grid; place-items: center; transition: background .25s, transform .3s var(--ease); }
.chat__send:hover { background: var(--blue); transform: rotate(-12deg); }
.chat__send svg { width: 22px; fill: #fff; }
.chat__form[hidden] { display: none; }
.summary { align-self: stretch; border: 2px solid var(--blue); border-radius: 18px; padding: 1.1rem; animation: msgIn .5s var(--ease); }
.summary h3 { font: 900 italic 1.25rem/1 var(--font-display); text-transform: uppercase; color: var(--blue); margin-bottom: .8rem; }
.summary dl { margin: 0 0 .8rem; display: grid; gap: .3rem; font-size: .92rem; }
.summary dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; }
.summary dt { color: var(--color-text-muted); } .summary dd { margin: 0; font-weight: 500; }
.summary__tip { font-size: .85rem; color: var(--color-text-muted); margin-bottom: .9rem; }
.summary__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.summary__actions .btn { padding: .75em 1.2em; font-size: .95rem; }

/* ───────── FAQ ───────── */
.faq { padding: var(--space-xl) 0; border-top: 1px solid var(--color-line); }
.faq__grid { display: grid; gap: var(--space-l); }
@media (min-width: 960px) { .faq__grid { grid-template-columns: .8fr 1.2fr; } }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font-weight: 600; font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { position: relative; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--blue); transition: transform .4s var(--ease), background .3s; }
.faq summary span::before, .faq summary span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: #fff; }
.faq summary span::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary span { background: var(--orange); transform: rotate(180deg); }
.faq details[open] summary span::after { transform: rotate(0); }
.faq details p { color: var(--color-text-muted); padding-bottom: 1.2rem; max-width: 40rem; animation: msgIn .4s var(--ease); }

/* ───────── Final ───────── */
.final { background: linear-gradient(120deg, var(--blue-deep), var(--blue) 60%); color: #fff; padding: var(--space-2xl) 0; position: relative; overflow: hidden; }
.final::after { content: ""; position: absolute; right: -10vw; bottom: -30vw; width: 60vw; aspect-ratio: 1; border-radius: 50%; border: 3vw solid var(--orange); opacity: .9; }
.final::before { content: ""; position: absolute; right: 18vw; top: -8vw; width: 16vw; aspect-ratio: 1; border-radius: 50%; background: var(--green); opacity: .9; }
.final__inner { position: relative; z-index: 1; }
.final__title { font-size: var(--step-5); font-weight: 900; font-style: italic; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.03em; line-height: .9; max-width: 14ch; margin-bottom: var(--space-m); }
.final__text { font-size: var(--step-2); margin-bottom: var(--space-l); opacity: .9; }
.final__ctas { display: flex; flex-wrap: wrap; gap: var(--space-s); }

/* ───────── Pied de page ───────── */
.site-footer { background: var(--blue-ink); color: rgba(255,255,255,.85); padding: var(--space-xl) 0 var(--space-m); }
.site-footer__grid { display: grid; gap: var(--space-l); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer__brand img { width: 140px; background: #fff; border-radius: 16px; padding: .6rem; margin-bottom: var(--space-m); }
.site-footer__muted { opacity: .65; font-size: var(--step--1); }
.site-footer__title { font: 600 var(--step--1)/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: var(--space-s); }
.site-footer .hours { margin-top: 0; }
.site-footer .hours div { border-color: rgba(255,255,255,.2); }
.site-footer__links { display: grid; gap: .45rem; }
.site-footer__links a { text-decoration: none; opacity: .85; } .site-footer__links a:hover { color: var(--orange); opacity: 1; }
.site-footer__call { display: flex; flex-direction: column; gap: .5rem; }
.site-footer__phone { white-space: nowrap; font: 900 italic var(--step-2)/1 var(--font-display); color: #fff; text-decoration: none; }
.site-footer__phone:hover { color: var(--orange); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid rgba(255,255,255,.15); font-size: var(--step--1); opacity: .6; }

/* ───────── CTA mobile ───────── */
.sticky-cta { transition: transform .5s var(--ease); }
@media (max-width: 899px) {
  .sticky-cta { display: flex; gap: .5rem; padding: .4rem; border-radius: var(--pill); background: rgba(7,26,51,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); }
  .sticky-cta[data-hidden] { transform: translateY(150%); }
  .sticky-cta a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1em; border-radius: var(--pill); font-weight: 600; text-decoration: none; }
  .sticky-cta svg { width: 1.1em; fill: currentColor; }
  .sticky-cta__call { background: var(--orange); color: var(--color-on-accent); flex: 1.4 !important; }
  .sticky-cta__quote { color: #fff; }
}

/* Révélations : variante plus marquée que le socle */
.js-motion [data-reveal] { transform: translateY(40px); }


/* ═════════ MOBILE ═════════ */
@media (max-width: 959px) {
  /* Héros : photos dans le premier écran, CTA pleine largeur */
  .hero { padding-top: 5.6rem; padding-bottom: var(--space-l); }
  .hero__grid { gap: var(--space-m); }
  .hero__text { display: contents; }
  .hero__eyebrow { order: 1; margin-bottom: 0; font-size: .72rem; }
  .hero__title { order: 2; font-size: clamp(2.5rem, 1.2rem + 7vw, 4rem); margin-bottom: 0; }
  .hero__media { order: 3; aspect-ratio: 16/11; max-width: 520px; margin-block: .2rem .4rem; }
  .hero__sub { order: 4; margin-bottom: 0; font-size: 1.06rem; }
  .hero__ctas { order: 5; margin-bottom: 0; flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero__facts { order: 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
  .hero__facts strong { font-size: 1.5rem; }
  .hero__facts span { font-size: .75rem; line-height: 1.3; }
  .hero__photo--1 { left: 22%; top: 0; width: 44%; height: 100%; }
  .hero__photo--2 { right: 0; top: 10%; width: 33%; height: 72%; }
  .hero__photo--3 { left: 0; top: 30%; bottom: auto; width: 28%; height: 66%; border-width: 3px; }
  .hero__arc { inset: auto -4% -14% -6%; width: 110%; }
  .bubble { width: 44px; }
  .bubble--orange { left: 12%; top: -4%; } .bubble--blue { right: 6%; top: -8%; } .bubble--green { right: 30%; bottom: -6%; }
  .badge { font-size: .7rem; right: .4rem; top: .4rem; }

  .marquee span { font-size: 1.3rem; }
  .marquee { padding: .8rem 0; }

  /* Services : cartes compactes, image avant le texte */
  .services { padding-top: var(--space-xl); }
  .section-head { margin-bottom: var(--space-l); }
  .service { gap: 1rem; padding: var(--space-l) 0; }
  .service__head { order: 1; }
  .service__media { order: 2; aspect-ratio: 16/9; }
  .service__body { order: 3; }
  .service__points { margin: .8rem 0 1.1rem; }
  .service__body p { font-size: .98rem; }

  /* Chantiers : rail plus compact + indication de glisser */
  .work { padding: var(--space-xl) 0 var(--space-l); }
  .work__item { width: 66vw; }
  .work__item img { aspect-ratio: 3/4; }
  .work__item--2 img { aspect-ratio: 3/4; }
  .work__item:nth-child(even) { margin-top: 1.5rem; }
  .work__end { width: 62vw; }
  .work__rail { scroll-padding-inline: var(--gutter); }
  .work__head::after { content: "Faites glisser →"; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); animation: nudge 1.6s ease-in-out infinite; }

  /* Arnaud */
  .about { padding: var(--space-xl) 0 var(--space-l); }
  .about__ten { font-size: 9rem; -webkit-text-stroke-width: 2px; }
  .about__ten-label { padding-bottom: .8rem; }
  .quote p { font-size: 1.35rem; }
  .pluses { margin-top: var(--space-l); }
  .pluses strong { font-size: 1.8rem; }

  /* Étapes : numéro à gauche, texte à droite, ligne verticale */
  .steps__list { gap: 1.6rem; padding-left: 0; }
  .step { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
  .step__num { grid-row: span 2; width: 3rem; height: 3rem; font-size: 1.3rem; margin: 0; box-shadow: 0 0 0 6px var(--paper-2); }
  .step h3 { font-size: 1.3rem; margin: .5rem 0 .25rem; }
  .steps__list::before { content: ""; position: absolute; left: 1.45rem; top: 1rem; bottom: 1rem; width: 2px; background: linear-gradient(var(--blue), var(--green), var(--orange)); }

  /* Zone : carte avant les horaires, étiquettes lisibles */
  .zone__map { order: -1; max-width: 420px; }
  .zone__grid { gap: var(--space-m); }
  .town { font-size: .62rem; padding: .25em .55em; }

  /* Assistant : un peu moins haut, saisie confortable */
  .quote-section { padding-top: var(--space-xl); }
  .chat { height: min(560px, 74svh); border-radius: 18px; }
  .chat__form textarea { font-size: 16px; }
  .msg { max-width: 90%; font-size: .95rem; }
  .summary dl div { grid-template-columns: 5.2rem 1fr; }

  .faq summary { font-size: 1.05rem; }
  .final { padding: var(--space-xl) 0 calc(var(--space-xl) + 2rem); }
  .final__title { font-size: 2.6rem; }
  .final__text { font-size: 1.2rem; }
  .final__ctas .btn { width: 100%; }
  .final::after { width: 90vw; right: -40vw; bottom: -60vw; border-width: 5vw; }
  .final::before { width: 26vw; right: 8vw; top: -12vw; }
  .site-footer__legal { flex-direction: column; gap: .3rem; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 6.5rem; }

  /* Menu : coordonnées utiles */
  .site-nav[data-open] .site-nav__cta { padding: 1em 1.6em; }
}
@keyframes nudge { 50% { transform: translateX(6px); } }
@media (max-width: 380px) { .hero__title { font-size: 2.3rem; } }
