/* Cordeo Solution — maquette Vitrinevo, structure inspirée de Vertical Expert */
:root {
  --navy: #01263c;          /* couleur client confirmée */
  --navy-2: #0a3a57;
  --navy-3: #001827;
  --drop: #2b6a99;          /* bleu de la goutte du logo */
  --accent: #e3e3d8;        /* couleur client confirmée le 20/10 */
  --rope: #b9bcc0;          /* gris de la corde du logo */
  --ink: #14232e;
  --muted: #56636d;
  --bg: #ffffff;
  --bg-soft: #f1f3f5;
  --line: #dde3e8;
  --shadow: 0 18px 50px rgba(1, 38, 60, .14);
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* motif de losanges (écho au badge et à l'inspiration) */
  --diamonds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%2301263c' stroke-opacity='.06' stroke-width='1.5'%3E%3Cpath d='M120 0 240 120 120 240 0 120z'/%3E%3Cpath d='M120 40 200 120 120 200 40 120z'/%3E%3C/g%3E%3Cpath d='M120 0 240 120H0z' fill='%2301263c' fill-opacity='.02'/%3E%3C/svg%3E");
  --diamonds-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1.5'%3E%3Cpath d='M120 0 240 120 120 240 0 120z'/%3E%3Cpath d='M120 40 200 120 120 200 40 120z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.7 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--drop); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .6em; color: var(--navy); letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.tbc { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: .15em .6em; border-radius: 4px; background: #fff3cd; color: #6b4e00; border: 1px dashed #c9a227; vertical-align: middle; }

/* Titres « à la Vertical Expert » */
.title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .5em; }
.title::after { content: ""; display: block; width: 130px; height: 2px; margin-top: 18px; background: linear-gradient(90deg, var(--drop), var(--line)); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
.in .title::after, .title.in::after, html:not(.js) .title::after { transform: scaleX(1); }
.title + .sub { font-style: italic; color: var(--muted); max-width: 70ch; }
.dark .title + .sub { color: #9fb7c8; }
.duo { font-weight: 300; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.duo b { font-weight: 800; color: var(--drop); }
.dark .duo b { color: var(--accent); }
.kicker { font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .02em; color: var(--navy); font-size: 1rem; }

/* En-tête : badge losange + menu plein écran */
.header { position: fixed; inset: 0 0 auto; z-index: 90; height: 84px; transition: background .4s, box-shadow .4s, height .4s, transform .5s var(--ease); }
.header.away:not(:focus-within) { transform: translateY(-160px); }
.menu-open .header { transform: none; }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.header.scrolled { background: rgba(1, 38, 60, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 30px rgba(0,0,0,.2); height: 70px; }
.badge { position: absolute; left: max(22px, calc(50% - 580px)); top: 14px; width: 104px; height: 104px; transition: transform .4s var(--ease); }
.badge::before { content: ""; position: absolute; inset: 0; background: #fff; border: 3px solid var(--accent); transform: rotate(45deg); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .6s var(--ease); }
.badge img { position: absolute; left: 50%; top: 50%; width: 132px; max-width: none; transform: translate(-50%, -50%); }
.badge:hover::before { transform: rotate(135deg); }
.header.scrolled .badge { transform: scale(.72) translateY(-14px); }
.header-phone { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.header-phone svg { width: 18px; height: 18px; color: var(--accent); }
.menu-btn { width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.35); background: transparent; border-radius: 50%; cursor: pointer; display: grid; place-content: center; gap: 6px; transition: background .3s, border-color .3s; }
.menu-btn:hover { background: var(--accent); border-color: var(--accent); }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--accent); transition: transform .35s var(--ease), opacity .3s, background .3s; }
.menu-btn:hover span { background: var(--navy); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.overlay { position: fixed; inset: 0; z-index: 80; background: var(--navy-3) var(--diamonds-light); color: #fff; display: grid; align-items: center; padding: 120px 0 40px; overflow-y: auto; clip-path: circle(0 at calc(100% - 60px) 42px); transition: clip-path .8s var(--ease), visibility 0s .8s; visibility: hidden; }
.menu-open .overlay { clip-path: circle(150% at calc(100% - 60px) 42px); visibility: visible; transition: clip-path .8s var(--ease); }
.overlay .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.overlay ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.overlay li { overflow: hidden; }
.overlay ol a { counter-increment: m; display: flex; align-items: baseline; gap: 18px; color: #fff; text-decoration: none; font-size: clamp(1.8rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; transform: translateY(110%); transition: transform .7s var(--ease), color .3s; }
.overlay ol a::before { content: "0" counter(m); font-size: .9rem; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.overlay ol a:hover, .overlay ol a[aria-current="page"] { color: var(--accent); }
.menu-open .overlay ol a { transform: none; }
.menu-open .overlay li:nth-child(2) a { transition-delay: .06s; } .menu-open .overlay li:nth-child(3) a { transition-delay: .12s; }
.menu-open .overlay li:nth-child(4) a { transition-delay: .18s; } .menu-open .overlay li:nth-child(5) a { transition-delay: .24s; }
.overlay aside { color: #9fb7c8; border-left: 1px solid rgba(255,255,255,.15); padding-left: 32px; }
.overlay aside a { color: #fff; text-decoration: none; display: block; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }

/* Boutons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .6em; padding: 1em 1.6em; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .88rem; border: 2px solid transparent; cursor: pointer; font-family: inherit; background-image: linear-gradient(var(--sweep, #fff), var(--sweep, #fff)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size .55s var(--ease), color .35s, border-color .35s, transform .35s var(--ease); }
.btn:hover { background-size: 100% 100%; }
.btn:active { transform: scale(.97); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: rotate(-12deg) scale(1.1); }
.btn-accent { background-color: var(--accent); color: var(--navy); }
.btn-dark { background-color: var(--navy); color: #fff; --sweep: var(--drop); }
.btn-line { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-line:hover { color: var(--navy); border-color: #fff; }
/* bouton « » » façon Vertical Expert */
.btn-chev { background-color: var(--navy); color: #fff; padding: .85em 1.3em .85em 1em; --sweep: var(--drop); }
.btn-chev::before { content: "»"; color: var(--accent); font-size: 1.4em; line-height: 0; transition: transform .3s; }
.btn-chev:hover::before { transform: translateX(4px); }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); animation: ripple .65s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Ligne qui descend du logo (repère de l'inspiration) + goutte qui suit la lecture */
main { position: relative; }
.descent { position: absolute; left: max(74px, calc(50% - 528px)); top: 140px; bottom: 0; width: 1px; z-index: 5; pointer-events: none; background: rgba(150, 168, 180, .45); }
.descent .fill { position: absolute; left: -.5px; top: 0; width: 2px; height: var(--fill, 0px); background: linear-gradient(var(--accent), var(--drop)); transition: height 1.6s var(--ease); }
.descent .tip { position: absolute; left: -8px; top: var(--fill, 0px); width: 17px; height: 23px; margin-top: -6px; filter: drop-shadow(0 0 2px rgba(255,255,255,.9)); transition: top 1.6s var(--ease); }
.descent .tip::before { content: ""; position: absolute; inset: 0; background: var(--drop); clip-path: path("M8.5 0 C8.5 0 17 10.5 17 15 A8.5 8.5 0 0 1 0 15 C0 10.5 8.5 0 8.5 0Z"); }
.descent.live .fill { transition: height .35s ease-out; }
.descent.live .tip { transition: top .35s ease-out; }

/* Hero plein écran */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--navy); isolation: isolate; padding: 0; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 500px at 75% 25%, rgba(43,106,153,.45), transparent 70%), var(--diamonds-light), linear-gradient(160deg, var(--navy-2), var(--navy-3)); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,24,39,.35) 0%, rgba(0,24,39,0) 35%, rgba(0,24,39,.85) 100%); }
.media-slot { position: absolute; right: 24px; bottom: 24px; z-index: 1; font-size: .75rem; color: #9fb7c8; border: 1px dashed rgba(255,255,255,.3); padding: 6px 10px; max-width: 280px; text-align: right; }
.hero-inner { padding: 170px 0 110px; transform: translateY(calc(var(--sy, 0) * -.18px)); opacity: calc(1 - var(--sy, 0) / 900); }
.hero-media { transform: translateY(calc(var(--sy, 0) * .35px)) scale(1.06); }
.hero-note { margin: 22px 0 0; color: #9fb7c8; font-size: .92rem; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hero .eyebrow::before { content: ""; width: 40px; height: 2px; background: currentColor; }
.bigword { display: block; font-size: clamp(3rem, 12vw, 10rem); font-weight: 900; line-height: .95; letter-spacing: -.03em; text-transform: uppercase; color: #fff; min-height: .95em; white-space: nowrap; }
.bigword .caret { display: inline-block; width: .08em; height: .75em; margin-left: .05em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 400; max-width: 34ch; margin: 22px 0 0; }
.hero h1 strong { font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.scroll-cue { position: absolute; left: 50%; bottom: 0; width: 2px; height: 80px; margin-left: -1px; background: rgba(255,255,255,.2); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -30px; width: 2px; height: 30px; background: var(--accent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
.rope-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .35; z-index: -1; }
.rope-line path { fill: none; stroke: var(--rope); stroke-width: 3; stroke-dasharray: 8 6; animation: rope-run 30s linear infinite; }
@keyframes rope-run { to { stroke-dashoffset: -560; } }
.page-hero { min-height: 82svh; }
.page-hero .hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: end; }
.crumb { font-size: .82rem; color: #a9c2d4; margin-bottom: 14px; letter-spacing: .04em; }
.crumb a { color: #fff; }

/* Sections */
section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.pattern { background: var(--bg) var(--diamonds); }
.soft { background: var(--bg-soft) var(--diamonds); }
.dark { background: var(--navy) var(--diamonds-light); color: #c6d6e2; }
.dark h2, .dark h3, .dark .title { color: #fff; }
.panel { background: #fff; padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow); position: relative; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

/* Emplacements photo — aucune image IA */
.photo { position: relative; border: 1.5px dashed #a9b8c4; background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(1,38,60,.035) 14px 28px), #fafbfc; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .85rem; padding: 18px; min-height: 180px; aspect-ratio: 4/3; overflow: hidden; }
.photo span { max-width: 28ch; }
.photo { width: 100%; min-width: 0; }
.photo b { display: block; color: var(--navy); font-size: .92rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.photo.wide { aspect-ratio: 21/8; min-height: 0; margin-top: 40px; }
@media (max-width: 760px) { .photo.wide { aspect-ratio: 4/3; } }
.dark .photo, .hero .photo { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.25); color: #9fb7c8; }
.dark .photo b, .hero .photo b { color: #fff; }

/* Tuiles grises (écho aux qualifications de l'inspiration) */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 32px; }
.tiles div { background: var(--bg-soft); padding: 22px 10px; text-align: center; font-weight: 700; color: var(--navy); font-size: .92rem; line-height: 1.3; display: grid; place-items: center; transition: background .3s, color .3s, transform .3s; }
.tiles div:hover { background: var(--navy); color: #fff; transform: translateY(-4px); }

/* Engagements en losanges */
.engage { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 48px; }
.eng { text-align: center; }
.eng .dia { width: 88px; height: 88px; margin: 14px auto 28px; position: relative; display: grid; place-items: center; color: var(--navy); }
.eng .dia::before { content: ""; position: absolute; inset: 0; background: #fff; border: 2px solid var(--drop); transform: rotate(45deg); transition: transform .7s var(--ease), background .4s; box-shadow: 0 10px 30px rgba(1,38,60,.1); }
.eng .dia svg { position: relative; width: 36px; height: 36px; transition: color .4s; }
.eng:hover .dia::before { transform: rotate(225deg); background: var(--navy); }
.eng:hover .dia svg { color: var(--accent); }
.eng h3 { font-size: .98rem; text-transform: uppercase; letter-spacing: .04em; }
.eng p { font-size: .9rem; color: var(--muted); }

/* Frise des domaines d'intervention */
.timeline { position: relative; margin-top: 64px; }
.timeline::before, .timeline .grow { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--line); }
.timeline .grow { background: var(--drop); bottom: auto; height: calc(var(--p, 0) * 100%); }
.dom { display: grid; grid-template-columns: 1fr 1fr; gap: 130px; position: relative; padding: 40px 0; align-items: start; }
.dom + .dom { margin-top: 30px; }
.dom > div, .split > div, .page-hero .hero-inner > div { min-width: 0; }
.dom .btn { max-width: 100%; overflow-wrap: anywhere; }
.dom .num { position: absolute; left: 50%; top: 52px; width: 60px; height: 60px; margin-left: -30px; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; color: var(--drop); z-index: 1; }
.dom .num::before { content: ""; position: absolute; inset: 0; background: #fff; border: 2px solid var(--line); transform: rotate(45deg); transition: border-color .6s, background .6s, color .6s; }
.dom.in .num::before { border-color: var(--drop); }
.dom:hover .num::before { background: var(--navy); }
.dom:hover .num { color: var(--accent); }
.dom .num span { position: relative; }
.dom .text ul { padding-left: 1.1em; color: var(--muted); margin-bottom: 24px; }
.dom:nth-of-type(even) .text { order: 2; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; margin-top: 40px; }
.gallery .photo { aspect-ratio: auto; min-height: 0; }
.gallery .photo:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery .photo:nth-child(4), .gallery .photo:nth-child(6) { grid-column: span 2; }

/* Partenaires */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.logos .photo { aspect-ratio: 3/2; min-height: 0; font-size: .75rem; }

/* Zone */
.towns { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0; }
.towns li { padding: .5em 1.1em; border: 1px solid rgba(255,255,255,.22); color: #fff; font-weight: 600; font-size: .9rem; transition: background .3s, color .3s; }
.towns li:hover { background: var(--accent); color: var(--navy); }
.light .towns li { color: var(--navy); border-color: var(--line); background: #fff; }
.depts { display: flex; gap: 12px; margin-top: 18px; }
.depts div { flex: 1; text-align: center; padding: 18px 8px; border: 1px solid rgba(255,255,255,.15); }
.depts strong { display: block; font-size: 2.4rem; color: var(--accent); line-height: 1; font-weight: 900; }

/* Bandeau d'appel */
.cta-band { position: relative; overflow: hidden; background: var(--navy) var(--diamonds-light); color: #fff; padding: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; border-left: 6px solid var(--accent); }
.cta-band h2 { color: #fff; margin: 0; max-width: 20ch; font-weight: 300; }
.cta-band h2 b { font-weight: 800; color: var(--accent); }
.rings { position: absolute; right: -60px; top: 50%; width: 280px; height: 280px; margin-top: -140px; pointer-events: none; }
.rings span { position: absolute; inset: 0; border: 2px solid var(--accent); transform: rotate(45deg) scale(.2); opacity: 0; animation: rings 4.5s ease-out infinite; }
.rings span:nth-child(2) { animation-delay: 1.5s; } .rings span:nth-child(3) { animation-delay: 3s; }
@keyframes rings { from { transform: rotate(45deg) scale(.2); opacity: .6; } to { transform: rotate(45deg) scale(1.1); opacity: 0; } }
.cta-band > *:not(.rings) { position: relative; }
.cta-band .hero-actions { margin: 0; }

/* Prestations des pages métier */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); margin-top: 40px; counter-reset: sv; }
.service { background: #fff; padding: 34px 32px 30px 96px; position: relative; transition: background .4s; }
.service::before { content: ""; position: absolute; left: 30px; top: 34px; width: 38px; height: 38px; border: 2px solid var(--drop); transform: rotate(45deg); transition: background .4s, border-color .4s; }
.service::after { counter-increment: sv; content: counter(sv); position: absolute; left: 30px; top: 34px; width: 38px; height: 38px; display: grid; place-items: center; font-weight: 800; color: var(--drop); transition: color .4s; }
.service:hover::after { color: var(--navy); }
.service:hover { background: var(--navy); }
.service:hover h3 { color: #fff; } .service:hover p { color: #c6d6e2; }
.service:hover::before { background: var(--accent); border-color: var(--accent); }
.service h3 { transition: color .4s; }
.service p { color: var(--muted); margin: 0; transition: color .4s; }
/* nombre impair de prestations : la dernière prend toute la largeur (pas de case vide) */
.service:last-child:nth-child(odd) { grid-column: 1 / -1; }
.others { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.other { position: relative; display: block; padding: 40px 34px; background: var(--navy); color: #c6d6e2; text-decoration: none; overflow: hidden; }
.other::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 160px; height: 160px; border: 2px solid var(--accent); transform: rotate(45deg); opacity: .3; transition: transform .7s var(--ease), opacity .4s; }
.other:hover::after { transform: rotate(135deg) scale(1.3); opacity: .7; }
.other h3 { color: #fff; font-size: 1.5rem; }
.other .more { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; }


/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.contact-card { background: #fff; padding: 36px 30px; text-decoration: none; color: var(--muted); transition: background .4s, color .4s; }
.contact-card:hover { background: var(--navy); color: #c6d6e2; }
.contact-card strong { display: block; font-size: 1.2rem; color: var(--navy); margin-top: 12px; word-break: break-word; transition: color .4s; }
.contact-card:hover strong { color: #fff; }
.contact-card svg { width: 30px; height: 30px; color: var(--drop); }
.contact-card:hover svg { color: var(--accent); }
.legal { padding-top: 170px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal-head { background: var(--navy); height: 120px; }

/* Pied de page */
.footer { position: relative; background: var(--navy-3); color: #9fb7c8; padding: 80px 0 28px; font-size: .95rem; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 6px 6px; border-top: 3px solid var(--accent); }
.footer a { color: #e3ecf2; text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer .btn-accent, .footer .btn-accent:hover { color: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; }
.footer-grid > div { padding: 0 32px; }
.footer-grid > div + div { border-left: 1px solid rgba(255,255,255,.1); }
.footer-grid > div:first-child { padding-left: 0; }
.footer .brand-name { color: var(--accent); font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; margin-bottom: 18px; text-transform: uppercase; }
.footer h3 { color: #fff; font-size: .95rem; font-weight: 600; margin: 22px 0 10px; }
.footer h3:first-child { margin-top: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .ico { display: flex; gap: 10px; align-items: center; }
.footer .ico svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.footer .social { display: flex; justify-content: center; gap: 14px; margin: 10px 0; }
.footer .social svg { width: 22px; height: 22px; }
.footer .center { text-align: center; }
.footer .center .btn { margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 22px; text-align: center; font-size: .82rem; }
.footer-bottom p { margin: 0 0 6px; }
.footer-bottom .credit { margin-top: 10px; font-size: .7rem; letter-spacing: .04em; opacity: .55; transition: opacity .3s; }
.footer-bottom .credit:hover { opacity: 1; }

.callbar { display: none; }
.motion-toggle { display: block; margin: 0 auto 16px; min-height: 48px; padding: 8px 18px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; cursor: pointer; }
#message-help, #form-status { font-size: .9rem; }
#form-status:empty { display: none; }
/* Le contact et les liens restent utilisables si le script ne se charge pas. */
html:not(.js) .menu-btn, html:not(.js) .motion-toggle, html:not(.js) #devis { display: none; }
html:not(.js) .overlay { position: relative; visibility: visible; clip-path: none; padding-top: 140px; }
html:not(.js) .overlay ol a { transform: none; }
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.motion-paused { scroll-behavior: auto; }
html.motion-paused .reveal, html.motion-paused .dom, html.motion-paused .sw .w > span, html.motion-paused .hero-inner, html.motion-paused .hero-media { opacity: 1 !important; transform: none !important; }
html.motion-paused .photo { clip-path: none !important; }
html.motion-paused .intro { display: none; }
html.motion-paused::view-transition-old(root), html.motion-paused::view-transition-new(root) { animation: none !important; }

/* Apparition au défilement (seulement si JS actif) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }

@media (min-width: 981px) { main .wrap { padding-left: 112px; } }
@media (max-width: 980px) { .descent { display: none; } }
@media (max-width: 980px) {
  .split, .overlay .wrap, .page-hero .hero-inner { grid-template-columns: 1fr; }
  .overlay aside { border-left: 0; padding-left: 0; }
  .engage { grid-template-columns: repeat(3, 1fr); }
  .tiles, .logos { grid-template-columns: repeat(3, 1fr); }
  .timeline::before, .timeline .grow { left: 22px; }
  .dom { grid-template-columns: 1fr; gap: 28px; padding-left: 72px; }
  .dom .num { left: 22px; top: 40px; width: 44px; height: 44px; margin-left: -22px; font-size: 1.1rem; }
  .dom:nth-of-type(even) .text { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid > div { padding: 0; } .footer-grid > div + div { border-left: 0; }
  .footer .center { text-align: left; } .footer .social { justify-content: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 60px; }
  .header { height: 72px; }
  .badge { width: 74px; height: 74px; top: 10px; left: 26px; }
  .badge img { width: 94px; }
  .header.scrolled .badge { transform: scale(.78) translateY(-12px); }
  .header-phone { display: none; }
  .services, .others, .contact-cards { grid-template-columns: 1fr; }
  .service { padding-left: 86px; }
  .engage { grid-template-columns: repeat(2, 1fr); }
  .tiles, .logos { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery .photo:nth-child(4) { grid-column: auto; }
  .hero-inner { padding: 130px 0 100px; }
  .bigword { font-size: clamp(2.3rem, 13vw, 4rem); }
  .media-slot { display: none; }
  .dom { padding-left: 60px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; box-shadow: 0 -4px 20px rgba(0,0,0,.2); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; text-decoration: none; min-height: 56px; }
  .callbar a:first-child { background: var(--accent); color: var(--navy); }
  .callbar a:last-child { background: var(--navy); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .title::after { transform: none; }
}

/* ===== v3 premium : fluidité ===== */
/* Transitions natives entre pages (navigateurs compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* Titres révélés mot à mot */
.js .sw .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js .sw .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease) calc(var(--i, 0) * 45ms); }
.in .sw .w > span, .sw.in .w > span { transform: none; }

/* Photos dévoilées en rideau */
.js .reveal .photo, .js .photo.reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease) calc(var(--k, 0) * 90ms); }
.js .reveal.in .photo, .js .photo.reveal.in { clip-path: inset(0); }
.gallery .photo:nth-child(2), .logos .photo:nth-child(2) { --k: 1; } .gallery .photo:nth-child(3), .logos .photo:nth-child(3) { --k: 2; }
.gallery .photo:nth-child(4), .logos .photo:nth-child(4) { --k: 3; } .gallery .photo:nth-child(5), .logos .photo:nth-child(5) { --k: 4; } .gallery .photo:nth-child(6) { --k: 5; }
.photo span { transition: transform .6s var(--ease); }
.photo:hover span { transform: scale(1.05); }

/* Bandeau défilant des métiers */
.marquee { background: var(--accent); color: var(--navy); overflow: hidden; padding: 18px 0; border-bottom: 1px solid rgba(1,38,60,.15); }
.marquee .track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px var(--navy); }
.marquee i { width: 12px; height: 12px; background: var(--navy); transform: rotate(45deg); flex: none; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Encadré « À savoir » */
.note { margin-top: 28px; padding: 22px 26px; background: var(--navy); color: #c6d6e2; border-left: 5px solid var(--accent); }
.note strong { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; display: block; margin-bottom: 4px; }

/* Horaires */
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 0 0 28px; }
.hours dt { font-weight: 700; color: var(--navy); }
.hours dd { margin: 0; color: var(--muted); }

/* Formulaire */
.form-block { margin-top: 80px; align-items: start; }
.form { display: grid; gap: 16px; background: #fff; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border-top: 4px solid var(--navy); }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); font-size: .92rem; }
.form input, .form textarea { font: inherit; padding: 13px 14px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); transition: border-color .3s, background .3s, box-shadow .3s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--drop); background: #fff; box-shadow: 0 0 0 3px rgba(43,106,153,.18); }
.form .btn { justify-self: start; }

/* Bouton urgence flottant (bureau) */
.urgent { position: fixed; right: 24px; bottom: 24px; z-index: 75; display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em; box-shadow: 0 14px 40px rgba(0,0,0,.3); border: 1px solid rgba(227,227,216,.4); transform: translateY(140%); opacity: 0; transition: transform .6s var(--ease), opacity .4s, background .3s; }
.urgent.show { transform: none; opacity: 1; }
.urgent:hover { background: var(--drop); }
.urgent svg { width: 38px; height: 38px; padding: 9px; background: var(--accent); color: var(--navy); border-radius: 50%; animation: ring 2.8s ease-in-out infinite; }
.urgent small { display: block; font-size: .7rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }

/* Intro : rideau avec le logo (première visite seulement) */
.intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--navy-3); transition: clip-path .9s var(--ease) .1s; clip-path: inset(0 0 0 0); }
.intro.out { clip-path: inset(0 0 100% 0); }
.intro .badge { position: relative; left: auto; top: auto; animation: intro-badge 1s var(--ease) both; }
.intro .badge::after { content: ""; position: absolute; left: 50%; top: 140px; width: 1px; height: 0; background: var(--accent); animation: intro-line .9s var(--ease) .35s forwards; }
@keyframes intro-badge { from { opacity: 0; transform: scale(.7) rotate(-20deg); } }
@keyframes intro-line { to { height: 30vh; } }

@media (max-width: 980px) { .tiles { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, 1fr) !important; }
  .urgent { display: none; }
  .hero-inner, .hero-media { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .sw .w > span { transform: none; }
  .js .reveal .photo, .js .photo.reveal { clip-path: none; }
  .hero-inner, .hero-media { transform: none; opacity: 1; }
  .intro { display: none; }
}

/* ===== v4 : immersion métier (Claude Code) ===== */
.callbar svg { width: 20px; height: 20px; }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); --sweep: var(--navy); }
.btn-ghost-dark:hover { color: #fff; }

/* Surface d'eau des bannières (canvas) + gouttes */
.water { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.fall { position: absolute; top: 0; z-index: -1; width: 12px; height: 17px; margin-left: -6px; background: var(--accent); clip-path: path("M6 0C6 0 12 8 12 11A6 6 0 0 1 0 11C0 8 6 0 6 0Z"); pointer-events: none; }
.tagline { margin: 14px 0 0; font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 700; color: var(--accent); letter-spacing: .01em; }

/* Statut ouvert / fermé */
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #c0c7cc; flex: none; }
.status.is-open i { background: #3ccf7a; box-shadow: 0 0 0 0 rgba(60,207,122,.6); animation: live 2s ease-out infinite; }
@keyframes live { to { box-shadow: 0 0 0 9px rgba(60,207,122,0); } }
.status.on-dark, .status.in-header { color: #fff; font-weight: 600; font-size: .85rem; }
/* en haut à gauche, juste après le losange du logo */
.status.in-header { margin-right: auto; margin-left: 150px; line-height: 1.25; }
.cta-band .status { margin-top: 14px; }

/* Chiffres clés */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); margin-top: 36px; border: 2px solid var(--line); }
.figures div { background: #fff; padding: 22px 18px; }
.figures strong { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.figures small { font-size: .4em; margin-left: 4px; color: var(--drop); letter-spacing: 0; }
.figures span { color: var(--muted); font-size: .88rem; }

.story-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
:root { interpolate-size: allow-keywords; }
.faq details { border-bottom: 1px solid var(--line); background: #fff; }
.faq details + details { margin-top: 8px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; border: 2px solid var(--drop); transform: rotate(45deg); flex: none; transition: transform .4s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(225deg); background: var(--accent); border-color: var(--navy); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .a { padding: 0 22px 20px; color: var(--muted); }
.faq .a p { margin: 0; }

@media (max-width: 760px) { .status.in-header { margin-left: 104px; font-size: .74rem; max-width: 8.5em; } }
@media (max-width: 980px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 360px) { .figures { grid-template-columns: 1fr; } }

/* ===== Photos réelles, carte de zone, logos (21/10) ===== */
.photo.has-img { padding: 0; border: 0; background: var(--navy); display: block; }
.photo.has-img img, .photo.has-img video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo.has-img:hover img { transform: scale(1.04); }
.page-hero .photo.has-img { aspect-ratio: 4/5; max-height: 72vh; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.photo.wide.has-img img { object-position: 50% 35%; }
/* photo à droite, fondue dans le bleu : l'artisan reste visible à côté du texte */
.hero-photo { position: absolute; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; object-position: 30% 42%; opacity: .78; -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }
@media (max-width: 980px) { .hero-photo { width: 100%; opacity: .32; -webkit-mask-image: none; mask-image: none; } }

/* Logos qualifications & partenaires */
.logo-tile { min-width: 0; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 18px; aspect-ratio: 3/2; transition: transform .4s var(--ease), box-shadow .4s; }
.logo-tile img { max-width: 100%; max-height: 92px; width: auto; height: auto; object-fit: contain; }
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logos { grid-template-columns: repeat(6, 1fr); }

/* Carte de la zone d'intervention */
.zone-fig { margin: 0; }
.zone-map { display: block; width: 100%; height: auto; border: 1px solid rgba(255,255,255,.15); }
.zm-bg { fill: #011d2e; }
.zm-dep { fill: rgba(255,255,255,.025); stroke: rgba(255,255,255,.3); stroke-width: 1.2; stroke-dasharray: 5 5; }
.zm-dep-lb { font: 800 13px var(--font); letter-spacing: .22em; fill: rgba(255,255,255,.32); }
.zm-ring { fill: rgba(227,227,216,.045); stroke: rgba(227,227,216,.3); stroke-width: 1; stroke-dasharray: 2 6; }
.zm-road path { fill: none; stroke: rgba(255,255,255,.42); stroke-width: 1.6; stroke-linejoin: round; }
.zm-road-lb { font: 800 12px var(--font); fill: #fff; paint-order: stroke; stroke: #011d2e; stroke-width: 4px; }
.zm-city .zm-dot { fill: #011d2e; stroke: #fff; stroke-width: 2; }
.zm-city text { font-weight: 600; }
.zm-ring-lb { font: 700 13px var(--font); fill: rgba(227,227,216,.55); }
.zm-river path { fill: none; stroke: #5fa3d6; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.zm-river-lb { font: italic 600 15px var(--font); fill: #8fbde0; letter-spacing: .06em; }
.zm-town { cursor: pointer; outline: none; }
.zm-com { fill: rgba(227,227,216,.1); stroke: rgba(227,227,216,.7); stroke-width: 1; transition: fill .3s; }
.zm-town.is-base .zm-com { fill: rgba(227,227,216,.24); }
.zm-town:is(:hover, :focus-visible, .on) .zm-com { fill: rgba(227,227,216,.42); }
.zm-dot { fill: var(--accent); stroke: #011d2e; stroke-width: 2; transition: r .3s; }
.zm-town:is(:hover, :focus-visible, .on) .zm-dot { r: 7; }
.zm-pin { fill: var(--accent); stroke: #011d2e; stroke-width: 2; }
.zm-town text { font: 700 16px var(--font); fill: #fff; paint-order: stroke; stroke: #011d2e; stroke-width: 5px; stroke-linejoin: round; }
.zm-town.is-base text { font-size: 19px; fill: var(--accent); }
.zm-town:focus-visible text { text-decoration: underline; }
.zm-scale path { stroke: #c6d6e2; stroke-width: 2; fill: none; }
.zm-scale text, .zm-north text { font: 700 13px var(--font); fill: #c6d6e2; }
.zm-north path { fill: #c6d6e2; }
.zone-fig figcaption { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .82rem; color: #c6d6e2; }
.zone-fig figcaption small { flex-basis: 100%; color: #8fa8ba; font-size: .72rem; }
.lg::before { content: ""; display: inline-block; vertical-align: middle; margin-right: 7px; }
.lg-base::before { width: 10px; height: 13px; background: var(--accent); clip-path: path("M5 0C5 0 10 6 10 8.5A5 5 0 0 1 0 8.5C0 6 5 0 5 0Z"); }
.lg-com::before { width: 12px; height: 12px; background: rgba(227,227,216,.25); border: 1px solid rgba(227,227,216,.7); }
.lg-river::before { width: 16px; height: 4px; background: #5fa3d6; border-radius: 2px; }
.lg-ring::before { width: 12px; height: 12px; border-radius: 50%; border: 1px dashed rgba(227,227,216,.6); }
.lg-city::before { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #fff; }
.lg-road::before { width: 16px; height: 2px; background: rgba(255,255,255,.6); }
.towns li[data-town] { cursor: pointer; }
.towns li.on { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.page-hero .zone-fig { box-shadow: 0 30px 60px rgba(0,0,0,.35); }

@media (max-width: 980px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, 1fr); } .page-hero .photo.has-img { aspect-ratio: 4/3; } }
@media (prefers-reduced-motion: reduce) { .photo.has-img:hover img { transform: none; } }
@media (max-width: 760px) { .zm-town text { font-size: 18px; stroke-width: 6px; } .zm-town.is-base text { font-size: 21px; } .zm-dep-lb, .zm-ring-lb, .zm-scale text { font-size: 15px; } }
.towns-h { margin: 18px 0 -12px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9fb7c8; }
.light .towns-h { color: var(--muted); }
.towns-far li { border-style: dashed; }
