/* Layout : une colonne éditoriale large ; un écran = une idée (Apple), sections produits nettes et console de supervision en héros (Stripe). */
:root{
  --bg:#070B14; --surface:#0D1422; --surface-2:#121B2D; --line:#1D2840;
  --fg:#E9EEF7; --muted:#8C99B0; --accent:#3D6FD1; --accent-soft:rgba(61,111,209,.16); --accent-ink:#A9C4F5;
  --logo-ink:#EEF2F9; --picto-bg:#EEF2F9;
  --ok:#34D399; --warn:#F5B942;
  --f-display:"Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body:"Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono:"IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius:14px; --maxw:1180px;
  color-scheme:dark;
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --bg:#F5F7FB; --surface:#FFFFFF; --surface-2:#EEF2F9; --line:#DCE3EF;
    --fg:#0A1222; --muted:#52607A; --accent:#22427B; --accent-soft:rgba(34,66,123,.09); --accent-ink:#22427B;
    --logo-ink:#22427B; --picto-bg:transparent;
    --ok:#0E9F6E; --warn:#B7791F; color-scheme:light;
  }
}
:root[data-theme="light"]{
  --bg:#F5F7FB; --surface:#FFFFFF; --surface-2:#EEF2F9; --line:#DCE3EF;
  --fg:#0A1222; --muted:#52607A; --accent:#22427B; --accent-soft:rgba(34,66,123,.09); --accent-ink:#22427B;
    --logo-ink:#22427B; --picto-bg:transparent;
  --ok:#0E9F6E; --warn:#B7791F; color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0; padding:0}
img{max-width:100%}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto} *{animation:none!important;transition:none!important}}
body{background:var(--bg); color:var(--fg); font-family:var(--f-body); font-size:17px; line-height:1.6; -webkit-font-smoothing:antialiased}
body::before{content:""; position:fixed; inset:0 0 auto; height:env(safe-area-inset-top,0px); z-index:10; background:var(--bg)}
a{color:inherit}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:6px}
h1,h2,h3{font-family:var(--f-display); text-wrap:balance; margin:0; letter-spacing:-.02em}
p{margin:0}
.wrap{max-width:var(--maxw); margin:0 auto; padding-left:max(16px, env(safe-area-inset-left,0px)); padding-right:max(16px, env(safe-area-inset-right,0px))}
.eyebrow{font-family:var(--f-mono); font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; color:var(--accent-ink)}
.lead{font-size:1.2rem; color:var(--muted); max-width:62ch}
section{padding-block:clamp(64px, 10vw, 128px)}
.sec-head{display:grid; gap:16px; margin-bottom:48px; max-width:760px}
.sec-head h2{font-size:clamp(2rem, 4.6vw, 3.4rem); line-height:1.05}

/* Header */
header.top{position:sticky; top:env(safe-area-inset-top,0px); z-index:20; background:color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter:saturate(1.4) blur(14px); -webkit-backdrop-filter:saturate(1.4) blur(14px); border-bottom:1px solid var(--line)}
.nav{display:flex; align-items:center; justify-content:space-between; gap:20px; padding-block:8px}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; font-family:var(--f-display); font-weight:800; letter-spacing:.02em}
.brand-mark{width:30px; height:30px; border-radius:8px; background:var(--accent); display:grid; place-items:center; color:#fff; font-size:.8rem}
.brand small{display:block; font-family:var(--f-mono); font-weight:400; font-size:.62rem; letter-spacing:.14em; color:var(--muted)}
.nav ul{display:flex; gap:26px; list-style:none; margin:0; padding:0; font-size:.94rem}
.nav ul a{text-decoration:none; color:var(--muted)}
.nav ul a:hover{color:var(--fg)}
.btn{display:inline-flex; align-items:center; gap:8px; padding:11px 20px; border-radius:999px; font-weight:600; font-size:.95rem; text-decoration:none; border:1px solid transparent; cursor:pointer; font-family:var(--f-body); transition:transform .15s ease, background .15s ease}
.btn-primary{background:var(--accent); color:#fff}
.btn-primary:hover{transform:translateY(-1px)}
.btn-ghost{border-color:var(--line); color:var(--fg); background:transparent}
.btn-ghost:hover{background:var(--surface-2)}
@media (max-width:900px){.nav ul{display:none}}

/* Hero */
.hero{padding-block:clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); position:relative; overflow:hidden}
.hero::after{content:""; position:absolute; inset:-30% -10% auto 40%; height:120%; background:radial-gradient(closest-side, var(--accent-soft), transparent 70%); pointer-events:none}
.hero-grid{display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center; position:relative; z-index:1}
.hero-grid > *{min-width:0}
.hero h1{font-size:clamp(2.6rem, 6.4vw, 5.2rem); line-height:.95; font-weight:800}
.hero h1 span{display:block}
.hero h1 .dim{color:var(--muted)}
.hero .lead{margin-top:28px}
.hero-cta{display:flex; flex-wrap:wrap; gap:12px; margin-top:36px}
.hero-meta{margin-top:28px; font-family:var(--f-mono); font-size:.8rem; color:var(--muted); display:flex; flex-wrap:wrap; gap:8px 20px}
@media (max-width:960px){.hero-grid{grid-template-columns:1fr}}

/* Console de supervision */
.console{background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:0 30px 80px -40px rgba(0,0,0,.6); overflow:hidden; font-family:var(--f-mono); font-size:.82rem}
.console-head{display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--line); color:var(--muted)}
.console-head b{color:var(--fg); font-weight:500}
.rows{list-style:none; margin:0; padding:6px 0}
.rows li{display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center; padding:11px 18px; border-bottom:1px dashed var(--line)}
.rows li:last-child{border-bottom:0}
.dot{width:8px; height:8px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation:pulse 2.4s infinite}
.dot.warn{background:var(--warn); box-shadow:0 0 0 0 color-mix(in srgb, var(--warn) 60%, transparent)}
@keyframes pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent)}70%{box-shadow:0 0 0 7px transparent}100%{box-shadow:0 0 0 0 transparent}}
.rows .k{color:var(--fg)}
.rows .v{color:var(--muted); text-align:right}
.console-foot{padding:12px 18px; background:var(--surface-2); color:var(--muted); display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}

/* Bande opérateurs */
.strip{border-block:1px solid var(--line); padding-block:22px}
.strip .wrap{display:flex; flex-wrap:wrap; gap:12px 34px; align-items:center; justify-content:space-between; font-family:var(--f-mono); font-size:.82rem; color:var(--muted)}
.strip strong{color:var(--fg); font-weight:500}

/* Univers */
.univers{display:grid; grid-template-columns:repeat(3, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden}
.uni{background:var(--bg); padding:34px 30px 30px; display:flex; flex-direction:column; gap:14px; min-width:0; transition:background .2s ease}
.uni:hover{background:var(--surface)}
.uni .verb{font-family:var(--f-mono); font-size:.76rem; letter-spacing:.12em; text-transform:uppercase; color:var(--accent-ink)}
.uni h3{font-size:1.5rem; line-height:1.15}
.uni p{color:var(--muted); font-size:.98rem}
.tags{display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; padding-top:10px}
.tags span{font-size:.78rem; padding:4px 10px; border-radius:999px; background:var(--surface-2); color:var(--fg); border:1px solid var(--line)}
@media (max-width:960px){.univers{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.univers{grid-template-columns:1fr}}

/* Feature (sécurité / IA / accompagnement) */
.feature{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start}
.feature > *{min-width:0}
.feature.alt{background:var(--surface)}
.feature-band{background:var(--surface); border-block:1px solid var(--line)}
.checks{list-style:none; padding:0; margin:28px 0 0; display:grid; gap:18px}
.checks li{display:grid; grid-template-columns:22px 1fr; gap:14px}
.checks li::before{content:""; width:18px; height:18px; margin-top:4px; border-radius:50%; background:var(--accent-soft); border:1.5px solid var(--accent)}
.checks b{display:block; font-weight:600}
.checks span{color:var(--muted); font-size:.96rem}
.spec{border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--bg)}
.spec-row{display:grid; grid-template-columns:150px 1fr; gap:18px; padding:18px 22px; border-bottom:1px solid var(--line)}
.spec-row:last-child{border-bottom:0}
.spec-row dt{font-family:var(--f-mono); font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; color:var(--accent-ink); padding-top:3px}
.spec-row dd{margin:0; font-size:.96rem}
.spec-row dd small{display:block; color:var(--muted); font-size:.88rem; margin-top:2px}
.spec dl{margin:0}
@media (max-width:900px){.feature{grid-template-columns:1fr; gap:40px}}
@media (max-width:480px){.spec-row{grid-template-columns:1fr; gap:6px}}

/* Agent IA : transcript */
.call{border:1px solid var(--line); border-radius:var(--radius); background:var(--bg); padding:22px; display:grid; gap:14px}
.call-head{display:flex; justify-content:space-between; font-family:var(--f-mono); font-size:.78rem; color:var(--muted)}
.bubble{max-width:88%; padding:12px 16px; border-radius:14px; font-size:.95rem}
.bubble.in{background:var(--surface-2); justify-self:start; border-bottom-left-radius:4px}
.bubble.ai{background:var(--accent); color:#fff; justify-self:end; border-bottom-right-radius:4px}
.call-log{font-family:var(--f-mono); font-size:.78rem; color:var(--muted); border-top:1px dashed var(--line); padding-top:12px; display:grid; gap:4px}
.call-log em{color:var(--ok); font-style:normal}

/* Photos (emplacements) */
.photos{display:grid; grid-template-columns:2fr 1fr 1fr; gap:14px; margin-top:56px}
.ph{aspect-ratio:4/3; max-width:100%; border-radius:var(--radius); border:1px dashed var(--line); background:repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--surface-2) 14px 28px); display:flex; align-items:flex-end; padding:14px; font-family:var(--f-mono); font-size:.76rem; color:var(--muted)}
.ph:first-child{aspect-ratio:auto; min-height:100%}
@media (max-width:700px){.photos{grid-template-columns:1fr 1fr}.ph:first-child{grid-column:1/-1; aspect-ratio:16/9}}

/* Pourquoi */
.why{display:grid; grid-template-columns:repeat(4,1fr); gap:28px}
.why div{border-top:2px solid var(--accent); padding-top:18px; display:grid; gap:8px; min-width:0}
.why h3{font-size:1.15rem}
.why p{color:var(--muted); font-size:.95rem}
@media (max-width:900px){.why{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.why{grid-template-columns:1fr}}
.metiers{display:flex; flex-wrap:wrap; gap:10px; margin-top:48px}
.metiers span{padding:9px 16px; border-radius:999px; border:1px solid var(--line); font-size:.92rem; color:var(--muted)}

/* Zones */
.zones{display:grid; grid-template-columns:repeat(5,1fr); gap:14px}
.zone{border:1px solid var(--line); border-radius:var(--radius); padding:22px; background:var(--surface); min-width:0}
.zone h3{font-size:1.1rem; display:flex; align-items:baseline; justify-content:space-between; gap:8px}
.zone h3 span{font-family:var(--f-mono); font-size:.8rem; color:var(--accent-ink); font-weight:400}
.zone ul{list-style:none; padding:0; margin:14px 0 0; display:grid; gap:7px; font-size:.9rem}
.zone li{display:flex; justify-content:space-between; gap:10px}
.zone li a{text-decoration:none; color:var(--fg)}
.zone li a:hover{color:var(--accent-ink)}
.zone li code{font-family:var(--f-mono); color:var(--muted); font-size:.82rem; font-variant-numeric:tabular-nums}
.zone.home{border-color:var(--accent)}
@media (max-width:1100px){.zones{grid-template-columns:repeat(3,1fr)}}
@media (max-width:700px){.zones{grid-template-columns:repeat(2,1fr)}}
@media (max-width:460px){.zones{grid-template-columns:1fr}}

/* FAQ */
.faq{display:grid; gap:0; border-top:1px solid var(--line); max-width:860px}
.faq details{border-bottom:1px solid var(--line); padding-block:22px}
.faq summary{cursor:pointer; font-family:var(--f-display); font-size:1.2rem; font-weight:700; list-style:none; display:flex; justify-content:space-between; gap:20px}
.faq summary::after{content:"+"; color:var(--accent-ink); font-family:var(--f-mono); font-weight:400}
.faq details[open] summary::after{content:"–"}
.faq summary::-webkit-details-marker{display:none}
.faq p{color:var(--muted); margin-top:12px; max-width:68ch}

/* Contact */
.contact{display:grid; grid-template-columns:1fr 1fr; gap:56px}
.contact > *{min-width:0}
.coords{display:grid; gap:22px; margin-top:32px}
.coords div{display:grid; gap:2px}
.coords dt{font-family:var(--f-mono); font-size:.76rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.coords dd{margin:0; font-size:1.1rem; user-select:all}
.coords dl{margin:0; display:grid; gap:22px}
form{background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:28px; display:grid; gap:16px}
label{display:grid; gap:6px; font-size:.88rem; color:var(--muted)}
input, select, textarea{font:inherit; font-size:1rem; color:var(--fg); background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:12px 14px; width:100%}
textarea{min-height:110px; resize:vertical}
.two{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.form-msg{font-size:.92rem; color:var(--ok)}
@media (max-width:900px){.contact{grid-template-columns:1fr}}
@media (max-width:520px){.two{grid-template-columns:1fr}}

footer{border-top:1px solid var(--line); padding-block:40px; color:var(--muted); font-size:.88rem}
footer .wrap{display:flex; flex-wrap:wrap; gap:16px 40px; justify-content:space-between}
footer nav{display:flex; flex-wrap:wrap; gap:8px 22px}
footer a{text-decoration:none}
footer a:hover{color:var(--fg)}

/* ---------- Ajouts site complet ---------- */
.h2{font-size:clamp(2rem,4.6vw,3.4rem); line-height:1.05; margin-top:16px}
.feature .lead{margin-top:20px}
.nav ul a[aria-current="page"]{color:var(--fg)}

/* Vidéo verticale (reel) */
.video-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,380px); gap:64px; align-items:center}
.reel{position:relative; aspect-ratio:9/16; max-width:100%; width:100%; border-radius:22px; overflow:hidden; background:var(--surface-2); border:1px solid var(--line); box-shadow:0 30px 80px -40px rgba(0,0,0,.6)}
.reel video{width:100%; height:100%; object-fit:cover; display:block; background:#000}
.reel-empty{position:absolute; inset:0; display:grid; place-items:center; text-align:center; padding:24px; font-family:var(--f-mono); font-size:.8rem; color:var(--muted); background:repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--surface-2) 14px 28px)}
@media (max-width:860px){.video-grid{grid-template-columns:1fr}.reel{max-width:360px; margin:0 auto}}

/* Bandeau de page interne */
.page-hero{padding-block:clamp(48px,8vw,96px) clamp(32px,5vw,56px); border-bottom:1px solid var(--line)}
.page-hero h1{font-size:clamp(2.2rem,5.6vw,4.2rem); line-height:1; font-weight:800; margin-top:14px}
.page-hero .lead{margin-top:20px}
.crumbs{font-family:var(--f-mono); font-size:.78rem; color:var(--muted); display:flex; flex-wrap:wrap; gap:6px}
.crumbs a{text-decoration:none; color:var(--muted)}
.crumbs a:hover{color:var(--fg)}

/* Actualités */
.news-tabs{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:32px}
.news-tabs button{font:inherit; font-size:.92rem; padding:9px 16px; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--muted); cursor:pointer}
.news-tabs button[aria-pressed="true"]{background:var(--accent); border-color:var(--accent); color:#fff}
.news{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px}
.news-item{border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:22px; display:flex; flex-direction:column; gap:10px; min-width:0}
.news-item h3{font-size:1.08rem; line-height:1.3}
.news-item h3 a{text-decoration:none}
.news-item h3 a:hover{color:var(--accent-ink)}
.news-meta{font-family:var(--f-mono); font-size:.75rem; color:var(--muted); display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:auto}
.pill{display:inline-block; font-family:var(--f-mono); font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; padding:3px 9px; border-radius:999px; background:var(--accent-soft); color:var(--accent-ink); align-self:flex-start}
.pill.sec{background:color-mix(in srgb, var(--warn) 16%, transparent); color:var(--warn)}
.news-empty{border:1px dashed var(--line); border-radius:var(--radius); padding:28px; color:var(--muted)}
.news-note{margin-top:20px; font-size:.86rem; color:var(--muted)}
@media (max-width:960px){.news{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.news{grid-template-columns:1fr}}

/* Article / prose */
.prose{max-width:68ch}
.prose h2{font-size:1.6rem; margin-top:40px}
.prose p, .prose ul{margin-top:16px; color:var(--fg)}
.prose li{margin-top:6px}
.prose a{color:var(--accent-ink)}

/* Page ville */
.city-services{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px}
.city-services article{border:1px solid var(--line); border-radius:var(--radius); padding:24px; background:var(--surface); display:grid; gap:8px; min-width:0}
.city-services h2{font-size:1.2rem}
.city-services p{color:var(--muted); font-size:.95rem}
.near{display:flex; flex-wrap:wrap; gap:8px; margin-top:20px}
.near a{padding:7px 14px; border-radius:999px; border:1px solid var(--line); text-decoration:none; font-size:.9rem; color:var(--muted)}
.near a:hover{color:var(--fg); border-color:var(--accent)}
@media (max-width:900px){.city-services{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.city-services{grid-template-columns:1fr}}
.form-msg.err{color:var(--warn)}
.hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
a.hp:focus{left:16px; top:16px; width:auto; height:auto; z-index:50; background:var(--accent); color:#fff; padding:8px 14px; border-radius:8px}

/* Logo et pictogrammes TIPS */
.brand{gap:12px}
.brand .logo{height:60px; width:auto; color:var(--logo-ink); display:block}
.brand-name{font-family:var(--f-mono); font-weight:500; font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); padding-left:12px; border-left:1px solid var(--line)}
.picto{display:inline-grid; place-items:center; width:44px; height:44px; flex:none; border-radius:12px; background:var(--picto-bg)}
.picto img{width:30px; height:30px; object-fit:contain; display:block}
.picto.sm{width:26px; height:26px; border-radius:7px}
.picto.sm img{width:18px; height:18px}
.picto.lg{width:64px; height:64px; border-radius:16px}
.picto.lg img{width:44px; height:44px}
.pictos{display:flex; gap:8px; align-items:center}
.rows li{grid-template-columns:auto auto 1fr auto}
.rows li .picto.sm{margin-right:-2px}
.news-head{display:flex; align-items:center; gap:10px}
.feature-title{display:flex; align-items:center; gap:14px; margin-bottom:6px}
@media (max-width:520px){.brand .logo{height:48px}.brand-name{display:none}}

/* Carte de la Normandie */
:root{ --map-land:#132036; --map-border:#2A3A58; --map-hover:#1B2C4A; --map-dot:#A9C4F5; --map-sea:transparent }
@media (prefers-color-scheme: light){ :root:not([data-theme="dark"]){ --map-land:#E3EAF5; --map-border:#FFFFFF; --map-hover:#D3DEEF; --map-dot:#22427B } }
:root[data-theme="light"]{ --map-land:#E3EAF5; --map-border:#FFFFFF; --map-hover:#D3DEEF; --map-dot:#22427B }
.carte-wrap{display:grid; gap:18px}
.carte{width:100%; max-width:980px; height:auto; display:block; margin:0 auto; overflow:visible}
.carte .dep{fill:var(--map-land); stroke:var(--map-border); stroke-width:2.5; stroke-linejoin:round; transition:fill .2s ease}
.carte .dep:hover{fill:var(--map-hover)}
.carte .dep-label{font-family:var(--f-mono); font-size:13px; letter-spacing:.12em; text-transform:uppercase; fill:var(--muted); pointer-events:none}
.carte .ville .pt{fill:var(--map-dot); transition:r .15s ease}
.carte .ville:hover .pt, .carte .ville:focus .pt{r:7}
.carte .ville.hq .pt{fill:var(--accent)}
.carte .ville.hq .halo{fill:var(--accent); opacity:.18}
.carte .ville:focus{outline:none}
.carte .ville:focus-visible .pt{stroke:var(--fg); stroke-width:2}
.carte .v-label{font-family:var(--f-body); font-size:14px; font-weight:600; fill:var(--fg); paint-order:stroke; stroke:var(--surface); stroke-width:4px; stroke-linejoin:round}
.carte .ville.hq .v-label{fill:var(--accent-ink)}
.carte-note{font-size:.9rem; color:var(--muted); text-align:center; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:6px 22px}
.carte-note > span{display:inline-flex; align-items:center; gap:8px}
.dot-legend{display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--map-dot)}
.dot-legend.hq{background:var(--accent); box-shadow:0 0 0 4px var(--accent-soft)}
@media (max-width:600px){.carte .v-label{font-size:20px}.carte .dep-label{font-size:18px}}

/* ================= Animations ================= */
@keyframes rise{from{opacity:0; transform:translateY(28px)}to{opacity:1; transform:none}}
@keyframes rowIn{from{opacity:0; transform:translateX(14px)}to{opacity:1; transform:none}}
@keyframes scan{0%{transform:translateY(-100%)}100%{transform:translateY(900%)}}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes halo{0%{r:10; opacity:.35}100%{r:34; opacity:0}}
@keyframes pop{from{transform:scale(0)}to{transform:scale(1)}}
@keyframes draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes glow{0%,100%{opacity:.55; transform:scale(1)}50%{opacity:.9; transform:scale(1.12)}}

/* Héros : les quatre verbes apparaissent l'un après l'autre */
.hero h1 span{animation:rise .9s cubic-bezier(.2,.7,.2,1) both}
.hero h1 span:nth-child(2){animation-delay:.12s}
.hero h1 span:nth-child(3){animation-delay:.24s}
.hero h1 span:nth-child(4){animation-delay:.36s}
.hero .lead, .hero-cta, .hero-meta{animation:rise .9s .5s cubic-bezier(.2,.7,.2,1) both}
.hero .eyebrow{animation:rise .7s cubic-bezier(.2,.7,.2,1) both}

/* Console de supervision : les lignes s'allument, un balayage tourne en continu */
.console{position:relative; animation:rise 1s .3s cubic-bezier(.2,.7,.2,1) both}
.console::after{content:""; position:absolute; left:0; right:0; top:0; height:12%; pointer-events:none;
  background:linear-gradient(180deg, transparent, var(--accent-soft), transparent); animation:scan 4.5s 1.8s linear infinite}
.rows li{animation:rowIn .5s cubic-bezier(.2,.7,.2,1) both}
.rows li:nth-child(1){animation-delay:.7s}.rows li:nth-child(2){animation-delay:.82s}.rows li:nth-child(3){animation-delay:.94s}
.rows li:nth-child(4){animation-delay:1.06s}.rows li:nth-child(5){animation-delay:1.18s}.rows li:nth-child(6){animation-delay:1.3s}
.rows li:nth-child(7){animation-delay:1.42s}.rows li:nth-child(8){animation-delay:1.54s}

/* Bandeau défilant */
.strip{overflow:hidden}
.marquee{overflow:hidden; mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)}
.marquee-track{display:flex; width:max-content; gap:48px; padding-inline:24px; animation:marquee 38s linear infinite; font-family:var(--f-mono); font-size:.82rem; color:var(--muted); white-space:nowrap}
.marquee-track span{display:inline-flex; align-items:center; gap:48px}
.marquee-track span::after{content:"●"; font-size:.5rem; color:var(--accent)}
.marquee:hover .marquee-track{animation-play-state:paused}

/* Apparition au défilement (ajoutée par le script ; sans script, tout reste visible) */
.js .reveal{opacity:0; transform:translateY(26px); transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay:var(--d,0s)}
.js .reveal.in{opacity:1; transform:none}

/* Cartes et pictogrammes */
.uni{transition:background .25s ease, transform .25s ease}
.uni .picto{transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.uni:hover .picto{transform:translateY(-5px) rotate(-5deg)}
.uni:hover .picto + .picto{transform:translateY(-5px) rotate(5deg)}
.feature-title .picto.lg{animation:floaty 5s ease-in-out infinite}
.btn-primary{position:relative; overflow:hidden}
.btn-primary::after{content:""; position:absolute; inset:0; background:linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform:translateX(-120%); transition:transform .7s ease}
.btn-primary:hover::after{transform:translateX(120%)}
header.top{transition:box-shadow .3s ease, background .3s ease}
header.top.scrolled{box-shadow:0 10px 30px -18px rgba(0,0,0,.45)}

/* Photos */
.photo{margin:0; position:relative; overflow:hidden; border-radius:var(--radius); background:var(--surface-2); aspect-ratio:4/3; max-width:100%}
.photo > img{width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.08); transition:transform 1.4s cubic-bezier(.2,.7,.2,1)}
.photo.in > img, html:not(.js) .photo > img{transform:scale(1)}
.photo:hover > img{transform:scale(1.04)}
.ph-fallback{display:grid; place-items:center; background:linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border:1px solid var(--line)}
.ph-fallback .ph-glow{position:absolute; width:70%; aspect-ratio:1; border-radius:50%; background:radial-gradient(closest-side, var(--accent-soft), transparent); animation:glow 6s ease-in-out infinite}
.ph-fallback .picto{position:relative; opacity:.9}
.mosaic{display:grid; grid-template-columns:2fr 1fr 1fr; grid-template-rows:1fr 1fr; gap:14px}
.mosaic .m-big{grid-row:span 2; aspect-ratio:auto; min-height:100%}
.mosaic .photo:nth-child(4){grid-column:2 / span 2; aspect-ratio:auto}
.duo{display:grid; grid-template-columns:3fr 2fr; gap:14px; margin-top:56px}
.duo .photo{aspect-ratio:16/10}
@media (max-width:760px){
  .mosaic{grid-template-columns:1fr 1fr; grid-template-rows:auto}
  .mosaic .m-big{grid-column:1 / -1; grid-row:auto; aspect-ratio:16/10}
  .mosaic .photo:nth-child(4){grid-column:1 / -1; aspect-ratio:16/9}
  .duo{grid-template-columns:1fr}
}

/* Chiffres clés */
.stats{display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-top:56px; border-top:1px solid var(--line); padding-top:32px}
.stat{display:grid; gap:4px; min-width:0}
.stat strong{font-family:var(--f-display); font-size:clamp(2.2rem,4.5vw,3.4rem); font-weight:800; line-height:1; letter-spacing:-.02em; color:var(--accent-ink); font-variant-numeric:tabular-nums}
.stat > span{color:var(--muted); font-size:.95rem}
@media (max-width:760px){.stats{grid-template-columns:1fr 1fr}}

/* Conversation agent IA : les bulles arrivent une à une */
.js .call .bubble, .js .call .call-log span{opacity:0; transform:translateY(10px); transition:opacity .5s ease, transform .5s ease}
.js .call.in .bubble, .js .call.in .call-log span{opacity:1; transform:none}
.js .call.in .bubble:nth-of-type(1){transition-delay:.2s}
.js .call.in .bubble:nth-of-type(2){transition-delay:1.1s}
.js .call.in .bubble:nth-of-type(3){transition-delay:2s}
.js .call.in .bubble:nth-of-type(4){transition-delay:2.8s}
.js .call.in .call-log span:nth-child(1){transition-delay:3.4s}
.js .call.in .call-log span:nth-child(2){transition-delay:3.6s}
.js .call.in .call-log span:nth-child(3){transition-delay:3.8s}

/* Carte : les liaisons se tracent depuis Pont-Audemer, les villes apparaissent */
.carte .link{stroke:var(--accent); stroke-width:1.5; opacity:.35; stroke-dasharray:1; stroke-dashoffset:0}
.js .carte .link{stroke-dashoffset:1}
.js .carte-wrap.in .carte .link{animation:draw 1.2s cubic-bezier(.4,0,.2,1) forwards; animation-delay:calc(.3s + var(--i) * .08s)}
.carte .ville .pt{transform-box:fill-box; transform-origin:center}
.js .carte .ville .pt{transform:scale(0)}
.js .carte-wrap.in .carte .ville .pt{animation:pop .45s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay:calc(var(--n) * .03s)}
.carte .ville.hq .halo{animation:halo 2.4s ease-out infinite}

@media (prefers-reduced-motion: reduce){
  .js .reveal, .js .call .bubble, .js .call .call-log span{opacity:1; transform:none}
  .js .carte .link{stroke-dashoffset:0}
  .js .carte .ville .pt{transform:none}
  .marquee-track{animation:none; flex-wrap:wrap; width:auto}
  .marquee-track .dup{display:none}
}

/* ================= Actualités v2 ================= */
.picto.xs{width:20px; height:20px; border-radius:6px; background:transparent}
.picto.xs img{width:16px; height:16px}
.news-section{padding-top:clamp(40px,6vw,64px)}
.news-search{display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:6px 6px 6px 18px; max-width:760px; margin-bottom:22px; position:relative}
.news-search svg{width:20px; height:20px; flex:none; fill:none; stroke:var(--muted); stroke-width:2; stroke-linecap:round}
.news-search input{flex:1; min-width:0; border:0; background:transparent; padding:10px 4px; font-size:1.02rem}
.news-search input:focus{outline:none}
.news-search:focus-within{border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft)}
.news-search .btn{flex:none}
@media (max-width:520px){.news-search .btn{padding:10px 14px}}
.news-tabs{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:14px}
.news-tabs a{display:inline-flex; align-items:center; gap:6px; font-size:.9rem; padding:8px 14px; border-radius:999px; border:1px solid var(--line); color:var(--muted); text-decoration:none; transition:all .2s ease}
.news-tabs a:hover{color:var(--fg); border-color:var(--accent)}
.news-tabs a[aria-current="true"]{background:var(--accent); border-color:var(--accent); color:#fff}
.news-tabs a[aria-current="true"] .picto.xs{background:#fff; border-radius:5px}
.tabs-sep{width:1px; height:22px; background:var(--line); margin-inline:4px}
.news-zones{display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; font-size:.88rem; color:var(--muted); margin-bottom:22px}
.news-zones a{text-decoration:none; color:var(--muted); padding:4px 0; border-bottom:2px solid transparent}
.news-zones a:hover{color:var(--fg)}
.news-zones a[aria-current="true"]{color:var(--fg); border-bottom-color:var(--accent)}
.news-zones small{font-family:var(--f-mono); font-size:.72rem; opacity:.7}
.news-status{font-size:.88rem; color:var(--muted); margin-bottom:18px}
.news-status a{color:var(--accent-ink)}
.news-near{font-size:.92rem; padding:12px 16px; border-radius:10px; background:var(--accent-soft); color:var(--fg); margin-bottom:18px}
.news-where{margin-left:auto; font-family:var(--f-mono); font-size:.72rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:45%}
.news-head{flex-wrap:nowrap; min-width:0}
.news-sum{color:var(--muted); font-size:.95rem}
.news-item{transition:border-color .2s ease, transform .2s ease}
.news-item:hover{border-color:var(--accent); transform:translateY(-2px)}
.news-item h3 a::after{content:""; position:absolute; inset:0}
.news-item{position:relative}
.news-new{animation:rise .6s cubic-bezier(.2,.7,.2,1) both; box-shadow:0 0 0 2px var(--accent-soft)}
.news-col{grid-template-columns:1fr !important}

/* Page de lecture */
.read-title{font-size:clamp(1.9rem,4.4vw,3.2rem)!important; line-height:1.08!important; max-width:22ch}
.read-meta{margin-top:18px}
.read{display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:56px; align-items:start}
.read-sum{font-size:1.25rem; line-height:1.55; color:var(--fg); border-left:3px solid var(--accent); padding-left:18px}
.read-cta{margin-top:22px}
.read-legal{font-size:.86rem; color:var(--muted)}
.read-side{display:grid; gap:14px; position:sticky; top:calc(env(safe-area-inset-top,0px) + 100px)}
@media (max-width:900px){.read{grid-template-columns:1fr}.read-side{position:static}}

/* Carte : départements cliquables */
.carte .dep-link{cursor:pointer}
.carte .dep-link:hover .dep, .carte .dep-link:focus-visible .dep{fill:var(--map-hover)}
.carte .dep-link:focus{outline:none}
.carte .dep-link:focus-visible .dep{stroke:var(--accent); stroke-width:3}
.carte .link, .carte .dep-label{pointer-events:none}

/* En-tête : espace client */
.nav-actions{display:flex; align-items:center; gap:14px}
.client-link{display:inline-flex; align-items:center; gap:8px; font-size:.92rem; color:var(--muted); text-decoration:none}
.client-link:hover, .client-link[aria-current="page"]{color:var(--fg)}
.client-link svg{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round}
@media (max-width:1100px){.client-link span{display:none}}
@media (max-width:420px){.nav-actions .btn{padding:9px 14px; font-size:.86rem}}

/* Corrections v3 */
.nav ul{gap:22px}
.nav ul a, .btn, .client-link{white-space:nowrap}
@media (max-width:1360px){.client-link span{display:none}}
@media (max-width:1180px){.nav ul{gap:16px; font-size:.88rem}}
@media (max-width:1060px){.nav ul{display:none}}
.prose a.btn-primary{color:#fff}
.prose a.btn-ghost{color:var(--fg)}

/* Pages métiers et liens SEO */
.near-title{font-family:var(--f-mono); font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--accent-ink); margin-top:26px}
.near-title + .near{margin-top:10px}
.uni h3 a, .city-services h2 a, .checks b a{color:inherit; text-decoration:none}
.uni h3 a:hover, .city-services h2 a:hover, .checks b a:hover{color:var(--accent-ink)}
.uni{position:relative}
.uni h3 a::after{content:""; position:absolute; inset:0}
.footer-services{padding-bottom:18px; margin-bottom:18px; border-bottom:1px solid var(--line)}
.footer-services nav{display:flex; flex-wrap:wrap; gap:8px 22px}
