/* ═══════════════════════════════════════════════════════════════════════════
   BATICLIM — feuille de style unique (palette tirée du logo : bleu marine #002C74)
   1. Polices   2. Couleurs & réglages (:root)   3. Base   4. Boutons & éléments communs
   5. Header & menu   6. Accueil   7. Présentation   8. Services   9. Réalisations (vidéo + galerie)
   10. Carte & zone   11. Avis   12. Contact & devis   13. Footer & mentions   14. Animations   15. Accessibilité
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1 ── POLICES (fichiers dans /fonts, aucun appel à Google) */
@font-face { font-family: 'Bricolage'; src: url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage'; src: url('../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument'; src: url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument'; src: url('../fonts/instrument-sans-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetMono'; src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

/* 2 ── COULEURS & RÉGLAGES : modifiez ici pour changer l'allure de tout le site */
:root {
  --brand: #002c74;      /* BLEU DU LOGO (couleur de référence) */
  --ink-950: #020f2c;   /* bleu marine le plus sombre */
  --ink-900: #041c4d;   /* bleu marine (fonds sombres, textes) */
  --ink-800: #07296b;
  --petrol-700: #002c74; /* = bleu du logo */
  --petrol-600: #0d409a; /* bleu logo, plus clair */
  --mineral-600: #566280; /* gris bleuté */
  --mineral-500: #8590ab;
  --mineral-100: #e3e8f3;
  --paper: #f5f8fe;      /* blanc légèrement bleuté */
  --mist: #e9effa;       /* fond clair alterné */
  --white: #ffffff;
  --accent: #5cc8ff;     /* bleu glacé (accent, évoque la climatisation) */
  --accent-strong: #9bdcff;
  --accent-deep: #0b58c9; /* bleu soutenu pour texte sur fond clair */
  --ember: #ff8a4c;      /* orange chaud (chauffage, point « siège ») */
  --ember-deep: #b8501a;

  --font-display: 'Bricolage', system-ui, sans-serif;  /* titres */
  --font-body: 'Instrument', system-ui, sans-serif;    /* textes */
  --font-mono: 'JetMono', ui-monospace, monospace;     /* petits libellés */

  --radius-s: 10px; --radius-m: 18px; --radius-l: 32px;
  --ease: cubic-bezier(.22,.8,.2,1);
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --maxw: 1380px;
  --header-h: 72px;
}

/* 3 ── BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink-950); }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink-900); background: var(--ink-950); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, iframe { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: .98; letter-spacing: -.03em; text-wrap: balance; }
p { text-wrap: pretty; }
i[data-icon] { display: inline-flex; flex: none; }
i[data-icon] svg { display: block; }

.tone-dark { --fg: var(--paper); --fg-muted: #aebddd; --line: rgb(245 248 254 / .14); --focus: var(--accent); --kicker: var(--accent); background: var(--ink-900); color: var(--fg); }
.tone-deep { background: var(--ink-950); }
.tone-petrol { background: var(--petrol-700); }
.tone-light, .tone-mist { --fg: var(--ink-900); --fg-muted: var(--mineral-600); --line: rgb(4 28 77 / .14); --focus: var(--accent-deep); --kicker: var(--accent-deep); background: var(--paper); color: var(--fg); }
.tone-mist { background: var(--mist); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(5rem, 11vw, 10rem); }
.section-head { display: grid; gap: 1.4rem; max-width: 56rem; }
.section-head h2 { font-size: clamp(2.5rem, 6.4vw, 5.6rem); }
.presentation .section-head h2, .services .section-head h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.section-head p:not(.kicker) { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--fg-muted); max-width: 40rem; }
.kicker { display: inline-flex; align-items: center; gap: .8rem; font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker, var(--accent)); }
.kicker::before { content: ''; width: 2.2rem; height: 1.5px; background: currentColor; }

/* 4 ── BOUTONS & ÉLÉMENTS COMMUNS */
.btn { --btn-bg: var(--accent); --btn-fg: var(--ink-950); --btn-bd: transparent; --btn-hover: var(--accent-strong);
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .85rem 1.5rem; font-weight: 600; font-size: 1rem; line-height: 1.2; color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: 999px; transition: color .35s var(--ease), transform .35s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--btn-hover); transform: translateY(101%); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transition: transform .5s var(--ease), border-radius .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; border-radius: 0; }
.btn:active { transform: scale(.98); }
.btn i[data-icon] { transition: transform .4s var(--ease); }
.btn:hover i[data-icon] { transform: translateX(4px); }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn--lg { min-height: 60px; padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--light { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: rgb(245 248 254 / .35); --btn-hover: rgb(245 248 254 / .12); }
.btn--ink { --btn-bg: var(--ink-900); --btn-fg: var(--paper); --btn-hover: var(--petrol-600); }
.btn--paper { --btn-bg: var(--paper); --btn-fg: var(--ink-900); --btn-hover: var(--accent); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: rgb(4 28 77 / .28); --btn-hover: rgb(4 28 77 / .07); }
.link-u { position: relative; display: inline-block; }
.link-u::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.link-u:hover::after, .link-u:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* Image avec emplacement de remplacement : si le fichier n'existe pas, le bloc gris s'affiche */
.media { position: relative; overflow: hidden; background: var(--ink-800); isolation: isolate; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.media.is-ok > img { opacity: 1; }
.media__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .7rem; padding: 1rem; color: rgb(245 248 254 / .55); text-align: center;
  background: repeating-linear-gradient(135deg, rgb(245 248 254 / .045) 0 1px, transparent 1px 14px), linear-gradient(160deg, var(--petrol-700), var(--ink-800)); transition: opacity .5s var(--ease); }
.media.is-ok .media__ph { opacity: 0; pointer-events: none; }
.media__hint { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; opacity: .85; word-break: break-all; }

/* Contenu externe (Google) chargé après clic */
.embed-frame { width: 100%; height: 100%; border: 0; background: var(--ink-800); }
.embed-gate { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: .9rem; padding: 2rem; text-align: center; color: var(--paper); background: var(--ink-900); }
.embed-gate__t { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.embed-gate__p { max-width: 30rem; font-size: .95rem; color: #aebddd; }

/* 5 ── HEADER & MENU */
.progress { position: fixed; z-index: 120; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.header { position: fixed; z-index: 90; inset: 0 0 auto 0; padding: 1.1rem calc(var(--gutter) + var(--sbw, 0px)) 1.1rem var(--gutter); pointer-events: none; transition: padding .5s var(--ease); }
.header.is-scrolled { padding-top: .6rem; padding-bottom: .6rem; }
.header__bar { pointer-events: auto; max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem .4rem .35rem .9rem; border-radius: 999px; border: 1px solid transparent; color: var(--paper); transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.header.is-scrolled .header__bar { background: rgb(4 28 77 / .96); border-color: rgb(245 248 254 / .12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__roof { height: 22px; width: auto; transition: height .5s var(--ease); }
.brand__word { height: 11px; width: auto; transition: height .5s var(--ease); }
.header.is-scrolled .brand__roof { height: 20px; } .header.is-scrolled .brand__word { height: 10px; }
.header__actions { display: flex; align-items: center; gap: .5rem; }
.header__tel { display: none; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 999px; font-family: var(--font-mono); font-size: .86rem; color: var(--paper); transition: background-color .3s, color .3s; }
.header__tel:hover { background: rgb(245 248 254 / .1); color: var(--accent-strong); }
.header__tel svg { color: var(--accent); }
.header__quote { display: none; }
.burger { display: inline-flex; align-items: center; gap: .75rem; min-height: 48px; padding: 0 1.1rem 0 1.25rem; border-radius: 999px; background: rgb(245 248 254 / .1); border: 1px solid rgb(245 248 254 / .18); color: var(--paper); font-weight: 600; font-size: .95rem; transition: background-color .3s, border-color .3s; }
.burger:hover { background: rgb(245 248 254 / .18); border-color: var(--accent); }
.burger__icon { position: relative; width: 22px; height: 12px; display: block; }
.burger__icon i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease), opacity .3s, width .4s var(--ease), top .5s var(--ease); }
.burger__icon i:nth-child(1) { top: 0; } .burger__icon i:nth-child(2) { top: 5px; width: 70%; left: auto; } .burger__icon i:nth-child(3) { top: 10px; }
.burger:hover .burger__icon i:nth-child(2) { width: 100%; }
.burger__icon.is-open i:nth-child(1) { top: 5px; transform: rotate(45deg); } .burger__icon.is-open i:nth-child(2) { opacity: 0; } .burger__icon.is-open i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
@media (min-width: 760px) { .header__quote { display: inline-flex; } }
@media (min-width: 1000px) { .header__tel { display: inline-flex; } .brand__roof { height: 28px; } .brand__word { height: 14px; } .header.is-scrolled .brand__roof { height: 24px; } .header.is-scrolled .brand__word { height: 12px; } }
@media (max-width: 380px) { .burger__label { display: none; } .burger { padding: 0 1rem; } .brand__roof { height: 18px; } .brand__word { height: 9px; } }

.menu { position: fixed; inset: 0; z-index: 100; background: var(--ink-950); color: var(--paper); overflow-y: auto; overscroll-behavior: contain; --focus: var(--accent);
  clip-path: circle(0px at calc(100% - 3.2rem) 2.6rem); visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s; }
.menu.is-open { clip-path: circle(160vmax at calc(100% - 3.2rem) 2.6rem); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu__inner { min-height: 100%; display: grid; align-content: space-between; gap: 2.5rem; padding: calc(var(--header-h) + 2.5rem) var(--gutter) 2.5rem; max-width: var(--maxw); margin-inline: auto; }
.menu__close { position: fixed; z-index: 2; top: 1.1rem; right: calc(var(--gutter) + var(--sbw, 0px)); }
.menu__body { display: grid; gap: 3rem; }
.menu__nav ol { display: grid; }
.menu__mask { display: block; overflow: hidden; }
.menu__link { display: flex; align-items: baseline; gap: 1.2rem; padding-block: .35rem; border-bottom: 1px solid rgb(245 248 254 / .1); font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1; font-size: clamp(1.7rem, 4.8vw, 3.6rem); color: rgb(245 248 254 / .55); transform: translateY(105%); transition: color .4s var(--ease), padding .5s var(--ease), transform .8s var(--ease); }
.menu.is-open .menu__link { transform: none; }
.menu.is-open li:nth-child(1) .menu__link { transition-delay: 0s, 0s, .25s; } .menu.is-open li:nth-child(2) .menu__link { transition-delay: 0s, 0s, .32s; } .menu.is-open li:nth-child(3) .menu__link { transition-delay: 0s, 0s, .39s; }
.menu.is-open li:nth-child(4) .menu__link { transition-delay: 0s, 0s, .46s; } .menu.is-open li:nth-child(5) .menu__link { transition-delay: 0s, 0s, .53s; } .menu.is-open li:nth-child(6) .menu__link { transition-delay: 0s, 0s, .6s; }
.menu__link .n { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; color: var(--accent); min-width: 2.6rem; white-space: nowrap; }
.menu__link:hover, .menu__link:focus-visible, .menu__link[aria-current='true'] { color: var(--paper); padding-left: .6rem; }
.menu__link[aria-current='true'] .n::after { content: ' •'; color: var(--paper); }
.menu__aside { display: grid; gap: 1.6rem; align-content: start; opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) .6s, transform .8s var(--ease) .6s; }
.menu.is-open .menu__aside { opacity: 1; transform: none; }
.menu__card { display: grid; gap: .6rem; padding: 1.4rem; border-radius: var(--radius-m); border: 1px solid rgb(245 248 254 / .14); background: rgb(245 248 254 / .04); }
.menu__card h2 { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); line-height: 1.4; }
.menu__tel { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.menu__muted { color: #aebddd; font-size: .95rem; }
@media (min-width: 960px) { .menu__body { grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 5rem; align-items: start; } .menu__inner { padding-top: calc(var(--header-h) + 3.5rem); } }

.fab-call { position: fixed; z-index: 80; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem; min-height: 56px; padding: 0 1.3rem 0 1.1rem; border-radius: 999px; font-weight: 700; background: var(--accent); color: var(--ink-950); box-shadow: 0 8px 28px rgb(2 15 44 / .35); }
@media (min-width: 1000px) { #fab-wrap { display: none !important; } }

/* 6 ── HERO */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding-block: calc(var(--header-h) + 2rem) 5.5rem; }
.airflow { position: absolute; inset: -6% 0; width: 100%; height: 112%; pointer-events: none; opacity: .55; }
.airflow path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.airflow__base { stroke: rgb(92 200 255 / .09); stroke-width: 1.2; }
.airflow__flow { stroke: url(#af-grad); stroke-width: 2; stroke-dasharray: .16 .84; stroke-dashoffset: .2; animation: af-run 18s linear infinite; }
@keyframes af-run { to { stroke-dashoffset: -.8; } }
.hero__grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgb(245 248 254 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(245 248 254 / .045) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--ink-950)); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; display: grid; gap: 3rem; align-items: center; }
.hero__copy { display: grid; gap: 1.8rem; justify-items: start; }
.hero__logo { width: clamp(150px, 15vw, 200px); height: auto; margin-bottom: .4rem; }
.hero__title { font-size: clamp(2.7rem, 11vw, 6.6rem); line-height: .94; letter-spacing: -.045em; }
.hero__title .mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .mask > span { display: block; }
.hero__accent { color: var(--accent); font-style: italic; font-weight: 600; }
.hero__sub { max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--fg-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__cta .btn { flex: 1 1 14rem; }
.hero__tel { display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--fg-muted); }
.hero__tel b { font-family: var(--font-mono); font-weight: 500; color: var(--paper); }
.hero__tel:hover { color: var(--accent-strong); } .hero__tel svg { color: var(--accent); }
.hero__visual { position: relative; max-width: 340px; width: 100%; margin-inline: auto; }
.hero__arch { border-radius: 999px 999px var(--radius-l) var(--radius-l); border: 1px solid rgb(245 248 254 / .16); aspect-ratio: 4 / 5; }
.media__ph--brand img { width: 62%; max-width: 240px; height: auto; opacity: .38; }
.hero__gauge { position: absolute; left: -22px; top: 14%; bottom: 14%; width: 18px; display: none; background: repeating-linear-gradient(to bottom, var(--accent) 0 1.5px, transparent 1.5px 30px); }
.hero__gauge::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1.5px; background: linear-gradient(to bottom, var(--ember), var(--accent)); }
.hero__tag { position: absolute; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--paper); background: rgb(4 28 77 / .82); border: 1px solid rgb(245 248 254 / .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero__tag svg { color: var(--accent); }
.hero__tag--a { top: 16%; right: -6px; } .hero__tag--b { top: 46%; left: -6px; } .hero__tag--c { bottom: 12%; right: -4px; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: grid; justify-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); }
.hero__scroll i { width: 1.5px; height: 44px; background: rgb(245 248 254 / .2); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--accent); animation: scroll-cue 2.2s var(--ease) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(260%); } }
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr); gap: 3rem; }
  .hero__title { font-size: clamp(3.6rem, 6.1vw, 6.6rem); }
  .hero__visual { max-width: 460px; margin-inline: 0; justify-self: end; }
  .hero__cta .btn { flex: 0 1 auto; }
  .hero__gauge { display: block; } .hero__tag--a { right: -14px; } .hero__tag--b { left: -14px; } .hero__tag--c { right: -10px; }
  .airflow { opacity: 1; -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .22) 0%, rgb(0 0 0 / .22) 45%, #000 80%); mask-image: linear-gradient(90deg, rgb(0 0 0 / .22) 0%, rgb(0 0 0 / .22) 45%, #000 80%); }
}
@media (max-width: 959px) { .hero { padding-bottom: 7rem; } }

/* 7 ── PRÉSENTATION DE L'ENTREPRISE */
.presentation { background: var(--white); }
.pres__text { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: clamp(1.8rem, 3vw, 2.6rem); }
.pres__lead { max-width: 56rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; font-size: clamp(1.7rem, 3.6vw, 3rem); color: var(--ink-900); text-wrap: balance; }
.pres__lead strong { color: var(--accent-deep); font-weight: inherit; }
.pres__cols { display: grid; gap: 1.4rem; }
.pres__cols p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #2a3a63; }
.pres__cols strong { color: var(--ink-900); font-weight: 600; background: linear-gradient(transparent 62%, rgb(92 200 255 / .38) 62%); }
@media (min-width: 960px) { .pres__cols { grid-template-columns: 1.3fr 1fr .9fr; gap: 2.6rem; } }

/* 8 ── SERVICES (cartes + pages de détail) */
.services { overflow: clip; }
.services__layout { display: grid; gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.tabs { display: flex; gap: .6rem; overflow-x: auto; padding: .2rem .15rem .7rem; scrollbar-width: thin; }
.tab { flex: none; display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; row-gap: .1rem; align-items: baseline; padding: .8rem 1.1rem; text-align: left; border-radius: var(--radius-m); border: 1px solid var(--line); background: rgb(255 255 255 / .6); color: var(--ink-900); transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.tab:hover { border-color: rgb(4 28 77 / .45); }
.tab__n { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; color: var(--accent-deep); }
.tab__t { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.tab__c { grid-column: 2; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mineral-600); }
.tab__s { display: none; grid-column: 2; font-size: .9rem; color: var(--mineral-600); }
.tab[aria-selected='true'] { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
.tab[aria-selected='true'] .tab__n { color: var(--accent); }
.tab[aria-selected='true'] .tab__c, .tab[aria-selected='true'] .tab__s { color: #aebddd; }
.panel { min-width: 0; }
.panel__grid { display: grid; gap: 1.8rem 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.svc { --tint: var(--accent-deep); position: relative; display: grid; align-content: start; gap: 1.1rem; animation: svc-in .7s var(--ease) both; }
.svc.is-warm { --tint: var(--ember-deep); }
@keyframes svc-in { from { opacity: 0; transform: translateY(30px); } }
.svc__visual { aspect-ratio: 4 / 3; border-radius: var(--radius-l) var(--radius-l) var(--radius-m) var(--radius-m); }
.svc:hover .svc__visual img { transform: scale(1.06); }
.svc__chip { position: absolute; z-index: 2; left: .9rem; bottom: .9rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--tint); transition: transform .6s var(--ease), background-color .4s, color .4s; }
.svc:hover .svc__chip { transform: rotate(-12deg) scale(1.06); background: var(--tint); color: var(--paper); }
.svc__fam { position: absolute; z-index: 2; top: .9rem; left: .9rem; padding: .3rem .7rem; border-radius: 999px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; background: rgb(4 28 77 / .8); color: var(--paper); }
.svc__body { display: grid; gap: .8rem; padding-inline: .2rem; align-content: start; }
.svc__body h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.08; }
.svc__sum { color: var(--mineral-600); font-size: .97rem; }
.svc__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; }
.svc__link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 600; font-size: .95rem; color: var(--accent-deep); }
.svc__link::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* toute la carte est cliquable */
.svc__link svg { transition: transform .4s var(--ease); }
.svc:hover .svc__link svg { transform: translateX(4px); }
.svc__link:focus-visible { outline: none; }
.svc:has(.svc__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: var(--radius-m); }
.svc .btn { position: relative; z-index: 2; }

.services.is-detail .section-head { gap: .8rem; }
.services.is-detail .section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); } .services.is-detail .section-head h2 br { display: none; }
.services.is-detail .section-head p:not(.kicker) { display: none; }
.detail { margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; gap: clamp(2rem, 4vw, 3.2rem); animation: fade-up .6s var(--ease); }
.back { display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; width: fit-content; padding: .4rem 1.2rem .4rem .9rem; border-radius: 999px; border: 1px solid rgb(4 28 77 / .3); font-weight: 600; transition: background-color .3s, color .3s; }
.back:hover { background: var(--ink-900); color: var(--paper); }
.detail__grid { display: grid; gap: 2rem; align-items: center; }
.detail__visual { aspect-ratio: 4 / 3; border-radius: var(--radius-l); }
.detail__copy { display: grid; gap: 1.2rem; justify-items: start; }
.detail__copy h3 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.detail__intro { max-width: 38rem; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: #2a3a63; }
.detail__points { display: grid; gap: .55rem; width: 100%; max-width: 38rem; padding: 1rem 1.2rem; border-left: 3px solid var(--accent-deep); background: rgb(255 255 255 / .7); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.detail__points li { position: relative; padding-left: 1.3rem; }
.detail__points li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent-deep); }
.detail__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .5rem; }
.detail__more h4 { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: .8rem; line-height: 1.4; }
.detail__more ul { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.detail__more li a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 500; }
@media (min-width: 900px) { .detail__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
@media (min-width: 1040px) {
  .services__layout { grid-template-columns: 310px minmax(0, 1fr); gap: 3.5rem; }
  .tabs { display: grid; overflow: visible; position: sticky; top: 6.5rem; padding: 0; }
  .tab { padding: 1rem 1.2rem; }
  .tab__t { white-space: normal; font-size: 1.25rem; }
  .tab[aria-selected='true'] .tab__s { display: block; }
  .panel__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 9 ── RÉALISATIONS : vidéo, galerie, agrandissement */
.video { overflow: clip; }
.video__head { display: grid; gap: 1.4rem; max-width: 60rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.video__head h2 { font-size: clamp(2.5rem, 7vw, 6.4rem); }
.video__head p:not(.kicker) { color: var(--fg-muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 38rem; }
.video__frame { border-radius: 20px; overflow: hidden; background: var(--ink-800); border: 1px solid rgb(245 248 254 / .14); transform-origin: 50% 0; will-change: transform; }
.video__ratio { position: relative; aspect-ratio: 16 / 9; }
.video__el { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.video__cover { position: absolute; inset: 0; display: grid; place-items: center; }
.video__ph { z-index: 0; }
.video__cover.is-ready .video__ph { opacity: 0; pointer-events: none; }
.video__play { position: relative; z-index: 2; width: clamp(76px, 12vw, 116px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink-950); transition: transform .5s var(--ease), background-color .3s; }
.video__play svg { margin-left: 4px; }
.video__play:hover, .video__play:focus-visible { transform: scale(1.08); background: var(--accent-strong); }
.video__play-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: .5; animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.85); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
.video__soon { position: relative; z-index: 2; padding: .7rem 1.2rem; border-radius: 999px; background: rgb(4 28 77 / .82); border: 1px solid rgb(245 248 254 / .18); font-size: .95rem; }
.video__caption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }

/* Galerie */
.gallery-block { margin-top: clamp(4rem, 8vw, 7rem); display: grid; gap: 1.6rem; }
.gallery-block > h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.gallery { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gal__item { display: grid; gap: .6rem; align-content: start; }
.gal__btn { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border-radius: var(--radius-m); border: 1px solid rgb(245 248 254 / .14); cursor: zoom-in; }
.gal__btn:disabled { cursor: default; }
.gal__btn.is-ok:hover > img { transform: scale(1.05); }
.gal__ph-t { font-weight: 600; font-size: .92rem; color: rgb(245 248 254 / .8); }
.gal__zoom { position: absolute; z-index: 2; right: .7rem; bottom: .7rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgb(4 28 77 / .85); color: var(--paper); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease); }
.gal__btn.is-ok:hover .gal__zoom, .gal__btn.is-ok:focus-visible .gal__zoom { opacity: 1; transform: none; }
.gal__btn:not(.is-ok) .gal__zoom { display: none; }
@media (hover: none) { .gal__btn.is-ok .gal__zoom { opacity: 1; transform: none; } }
.gal__cap { font-size: .88rem; color: var(--fg-muted); }
.gallery__note { font-size: .92rem; color: var(--fg-muted); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; } }
.lightbox { padding: 0; border: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; color: var(--paper); overflow: hidden; }
.lightbox::backdrop { background: rgb(2 15 44 / .93); }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: 4.5rem .8rem 1.5rem; }
.lightbox__fig { margin: 0; min-width: 0; display: grid; gap: .8rem; justify-items: center; }
.lightbox__fig img { max-width: 100%; max-height: calc(100dvh - 10rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-m); }
.lightbox__fig figcaption { font-size: .95rem; color: #c3d0ea; text-align: center; }
.lightbox__x, .lightbox__nav { display: grid; place-items: center; border-radius: 50%; background: rgb(245 248 254 / .12); border: 1px solid rgb(245 248 254 / .22); color: var(--paper); transition: background-color .3s, border-color .3s; }
.lightbox__x:hover, .lightbox__nav:hover { background: rgb(245 248 254 / .22); border-color: var(--accent); }
.lightbox__x { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; }
.lightbox__nav { width: 48px; height: 48px; }
.lightbox__nav[hidden] { display: none; }
.lightbox { --focus: var(--accent); }

/* 10 ── ZONE D'INTERVENTION */
.zone { margin-top: clamp(4rem, 8vw, 7rem); }
.zone__title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.zone__grid { display: grid; gap: 2rem; margin-top: 1.8rem; align-items: start; }
.zone__mapcard { display: grid; gap: 1rem; }
.zone__mapwrap { position: relative; container-type: inline-size; aspect-ratio: 1000 / 868; border-radius: var(--radius-l); overflow: hidden; background-color: var(--ink-900); border: 1px solid rgb(4 28 77 / .2);
  background-image: linear-gradient(rgb(245 248 254 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(245 248 254 / .04) 1px, transparent 1px); background-size: 8% 11.6%; }
.zone__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zone__dept-fill { fill: var(--petrol-700); fill-opacity: .85; }
.zone__dept-line { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; opacity: .85; }
.zone__link { stroke: var(--accent-strong); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.zone__scale { position: absolute; left: 4%; bottom: 4%; font-family: var(--font-mono); font-size: clamp(9px, 1.5cqw, 12px); letter-spacing: .14em; text-transform: uppercase; color: rgb(245 248 254 / .6); }
.pin { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; color: var(--paper); z-index: 2; }
.pin__dot { position: relative; width: clamp(9px, 1.5cqw, 13px); height: clamp(9px, 1.5cqw, 13px); border-radius: 50%; background: var(--ink-900); border: 2px solid var(--paper); transition: transform .4s var(--ease), background-color .3s, border-color .3s; }
.pin__label { position: absolute; white-space: nowrap; font-size: clamp(9.5px, 1.75cqw, 14px); font-weight: 600; pointer-events: none; color: rgb(245 248 254 / .85); text-shadow: 0 1px 6px rgb(2 15 44 / .9); transition: color .3s; }
.pin--top .pin__label { bottom: calc(50% + 12px); left: 50%; transform: translateX(-50%); }
.pin--bottom .pin__label { top: calc(50% + 12px); left: 50%; transform: translateX(-50%); }
.pin--left .pin__label { right: calc(50% + 12px); top: 50%; transform: translateY(-50%); }
.pin--right .pin__label { left: calc(50% + 12px); top: 50%; transform: translateY(-50%); }
.pin:hover .pin__dot, .pin:focus-visible .pin__dot { transform: scale(1.5); border-color: var(--accent); }
.pin.is-selected .pin__dot { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
.pin.is-selected .pin__label { color: var(--accent-strong); }
.pin.is-hq { z-index: 3; }
.pin.is-hq .pin__dot { width: clamp(14px, 2.4cqw, 20px); height: clamp(14px, 2.4cqw, 20px); background: var(--ember); border-color: var(--paper); }
.pin.is-hq .pin__dot::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid var(--ember); animation: hq-ping 2.4s var(--ease) infinite; }
.pin.is-hq .pin__label { color: var(--paper); font-weight: 700; }
@keyframes hq-ping { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.zone__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2rem; padding: 1.2rem 1.5rem; border-radius: var(--radius-m); background: var(--paper); border: 1px solid rgb(4 28 77 / .14); }
.zone__ask p { max-width: 44rem; font-weight: 500; }
@container (max-width: 560px) { .pin .pin__label { display: none; } }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .88rem; color: var(--mineral-600); }
.legend li { display: inline-flex; align-items: center; gap: .55rem; }
.legend__hq { width: 14px; height: 14px; border-radius: 50%; background: var(--ember); border: 2px solid var(--paper); box-shadow: 0 0 0 1.5px var(--ember); }
.legend__city { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-900); border: 2px solid var(--paper); box-shadow: 0 0 0 1.5px var(--ink-900); }
.legend__zone { width: 22px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--petrol-700) 0 2px, var(--accent) 2px 4px); }
.zone__side { display: grid; gap: 1.4rem; }
.zone__detail { padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius-l); background: var(--ink-900); color: var(--paper); min-height: 15.5rem; }
.zone__detail > div { display: grid; gap: .9rem; justify-items: start; animation: fade-up .45s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
.zone__tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.zone__detail h3 { font-size: clamp(2rem, 4vw, 3rem); }
.zone__detail p:not(.zone__tag) { color: #c3d0ea; font-size: .98rem; }
.zone__detail strong { color: var(--paper); font-weight: 600; }
.zone__detail .btn { --btn-bg: var(--accent); --btn-fg: var(--ink-950); --btn-hover: var(--accent-strong); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; transition: background-color .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink-900); }
.chip.is-on { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper); }
.zone__note { font-size: .82rem; color: var(--mineral-600); max-width: 34rem; }
.zone__google { margin-top: clamp(3rem, 6vw, 5rem); display: grid; gap: 1rem; }
.zone__google-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
.zone__google-head h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.zone__google-head a { font-size: .92rem; font-weight: 600; color: var(--accent-deep); }
.zone__gmap { height: clamp(340px, 48vw, 480px); border-radius: var(--radius-l); overflow: hidden; border: 1px solid rgb(4 28 77 / .2); background: var(--ink-900); color: var(--paper); }
.zone__gmap-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 2rem; text-align: center; color: #c3d0ea; background: repeating-linear-gradient(135deg, rgb(245 248 254 / .04) 0 1px, transparent 1px 16px), var(--ink-900); }
.zone__gmap-empty svg { color: var(--ember); }
.zone__gmap-t { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--paper); }
.zone__maplink { display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; font-weight: 600; font-size: .92rem; color: var(--accent-strong); }
@media (min-width: 1000px) { .zone__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); gap: 3rem; } .zone__side { position: sticky; top: 6.5rem; } }

/* 11 ── AVIS (bloc A de la section 04) */
.block--reviews { display: grid; gap: 2rem; align-items: start; }
.reviews__head { display: grid; gap: 1.2rem; justify-items: start; }
.reviews__head h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.reviews__head p { color: #c3d0ea; max-width: 28rem; }
.reviews__widget { min-width: 0; }
.reviews__frame { height: clamp(420px, 55vw, 560px); border-radius: var(--radius-l); overflow: hidden; background: var(--paper); border: 1px solid rgb(245 248 254 / .2); }
.reviews__empty { display: grid; justify-items: center; align-content: center; gap: .9rem; text-align: center; min-height: 320px; padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius-l); border: 1.5px dashed rgb(245 248 254 / .3); background: rgb(2 15 44 / .35); color: #c3d0ea; }
.reviews__empty svg { color: var(--accent); }
.reviews__empty-t { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; color: var(--paper); }
.reviews__empty p { max-width: 28rem; }
.reviews__empty .media__hint { max-width: 26rem; color: rgb(245 248 254 / .82); }
@media (min-width: 960px) { .block--reviews { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }

/* 12 ── CONTACT */
.contact { background: var(--ink-900); overflow: clip; }
/* En-tête de la section 04 + blocs séparés (avis / coordonnées / devis) */
.contact__head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.contact__head h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.block { scroll-margin-top: 4.5rem; position: relative; padding-block: clamp(2.2rem, 4.5vw, 3.4rem); border-top: 1px solid rgb(245 248 254 / .16); }
.block > h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 1.6rem; }
.contact__grid { display: grid; gap: 0; }
.contact__name { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -.03em; line-height: 1; }
.contact__direct { display: grid; gap: 1.4rem; width: 100%; }
.contact__facts a { font-weight: 500; }
.contact__tel { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-m); border: 1px solid rgb(245 248 254 / .2); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4.2vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; transition: background-color .4s, border-color .4s, color .4s; }
.contact__tel small { display: block; font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.contact__tel-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--ink-950); flex: none; }
.contact__tel-arrow { margin-left: auto; transition: transform .4s var(--ease); }
.contact__tel:hover { background: var(--accent); border-color: var(--accent); color: var(--ink-950); }
.contact__tel:hover small { color: var(--ink-950); }
.contact__tel:hover .contact__tel-ico { background: var(--ink-950); color: var(--accent); }
.contact__tel:hover .contact__tel-arrow { transform: translate(4px, -4px); }
.contact__facts { display: grid; gap: .7rem; color: #c3d0ea; font-size: .98rem; }
.contact__facts li { display: flex; align-items: flex-start; gap: .7rem; }
.contact__facts i { margin-top: .2rem; color: var(--accent); }
.contact__card { background: var(--paper); color: var(--ink-900); border-radius: var(--radius-l); padding: clamp(1.4rem, 3.4vw, 2.6rem); --focus: var(--accent-deep); }
.contact form { display: grid; gap: 1.2rem; }
.form__row { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-size: .9rem; font-weight: 600; }
.field abbr { text-decoration: none; color: var(--ember-deep); }
.field .opt { font-weight: 400; color: var(--mineral-600); }
.field input:not([type='checkbox']), .field select, .field textarea { width: 100%; min-height: 52px; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: var(--ink-900); background: var(--white); border: 1.5px solid rgb(4 28 77 / .22); border-radius: var(--radius-s); transition: border-color .25s, box-shadow .25s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(4 28 77 / .5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgb(11 88 201 / .2); }
.field [aria-invalid='true'] { border-color: #b3261e !important; }
.field__err { display: flex; align-items: center; gap: .4rem; font-size: .86rem; color: #b3261e; font-weight: 500; }
.field--check { grid-template-columns: auto 1fr; column-gap: .8rem; align-items: start; }
.field--check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--accent-deep); }
.field--check label { font-weight: 400; font-size: .9rem; color: var(--mineral-600); }
.field--check .field__err { grid-column: 1 / -1; }
.linkbtn { color: var(--ink-900); font-weight: 600; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .88rem; padding: .6rem .9rem; border-radius: var(--radius-s); background: rgb(92 200 255 / .16); border-left: 3px solid var(--accent-deep); }
.form__submit { width: 100%; }
.form__msg { padding: 1rem 1.1rem; border-radius: var(--radius-s); font-size: .95rem; margin-top: .2rem; }
.form__msg--ok { background: #e3f5ec; color: #0b4a2c; border: 1px solid #9fd8b9; }
.form__msg--ko { background: #fbeceb; color: #6b1712; border: 1px solid #efb7b3; display: grid; gap: .8rem; }
.form__msg a:not(.btn) { font-weight: 700; text-decoration: underline; }
.form__fallback { display: flex; flex-wrap: wrap; gap: .6rem; }
.form__msg--ko .btn { --btn-bg: var(--ink-900); --btn-fg: var(--paper); --btn-hover: var(--petrol-600); }
.form__msg--ko .btn--outline { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: rgb(4 28 77 / .3); --btn-hover: rgb(4 28 77 / .08); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 4rem; } .block--coords > * { max-width: 34rem; } }

/* 13 ── FOOTER & MENTIONS */
.footer { position: relative; overflow: clip; padding-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid rgb(245 248 254 / .08); }
.footer__big { font-family: var(--font-display); font-weight: 800; letter-spacing: -.06em; line-height: .8; text-align: center; font-size: clamp(4rem, 21vw, 21rem); color: transparent; -webkit-text-stroke: 1.5px rgb(92 200 255 / .4); user-select: none; white-space: nowrap; }
.footer__top { display: grid; gap: 2.6rem; padding-block: 3rem; }
.footer__brand { display: grid; gap: 1.1rem; justify-items: start; max-width: 28rem; }
.footer__brand img { width: 170px; height: auto; }
.footer__brand p { color: var(--fg-muted); font-size: .97rem; }
.footer__tel { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; color: var(--paper); }
.footer__tel svg { color: var(--accent); } .footer__tel:hover { color: var(--accent-strong); }
.footer h2 { font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; line-height: 1.4; }
.footer ul { display: grid; gap: .15rem; }
.footer li > a, .footer li > button { display: inline-flex; align-items: center; min-height: 36px; font-size: .97rem; color: #dce5f5; }
.footer__muted { color: var(--fg-muted); font-size: .95rem; }
.footer__quote { margin-top: 1rem; }
.footer__zone { display: block; margin-top: .8rem; font-size: .95rem; color: #dce5f5; width: fit-content; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; padding-block: 1.4rem 2rem; border-top: 1px solid rgb(245 248 254 / .1); font-size: .86rem; color: var(--fg-muted); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.footer__bottom li > button { min-height: 40px; font-size: .86rem; color: var(--fg-muted); }
.footer__bottom li > button:hover { color: var(--paper); }
@media (min-width: 700px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; max-width: none; } }
@media (min-width: 1100px) { .footer__top { grid-template-columns: 1.5fr .8fr .8fr 1fr; gap: 3rem; } .footer__brand { grid-column: auto; max-width: 26rem; } }

.legal { padding: 0; border: 0; background: transparent; max-width: min(680px, calc(100vw - 2rem)); width: 100%; max-height: calc(100svh - 2rem); color: var(--ink-900); overflow: visible; }
.legal::backdrop { background: rgb(2 15 44 / .72); }
.legal__box { position: relative; background: var(--paper); border-radius: var(--radius-l); padding: clamp(1.4rem, 4vw, 2.4rem); max-height: calc(100svh - 2rem); overflow-y: auto; display: grid; gap: .9rem; --focus: var(--accent-deep); }
.legal__x { position: absolute; top: .8rem; right: .8rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--mineral-100); }
.legal__x:hover { background: var(--ink-900); color: var(--paper); }
.legal__warn { padding: .7rem .9rem; border-radius: var(--radius-s); background: #fff3e6; border: 1px solid #f2c79a; color: #6b3a0a; font-size: .85rem; margin-right: 2.6rem; }
.legal h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); } .legal h3 { font-size: 1.05rem; margin-top: .6rem; }
.legal p, .legal dd, .legal dt { font-size: .95rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 0; } .legal dt { color: var(--mineral-600); } .legal dd { margin: 0; }
.tbc { display: inline-block; padding: 0 .5rem; border-radius: 4px; background: #fff3e6; border: 1px dashed #d98a3d; color: #8a4a0a; font-size: .82em; font-weight: 600; }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; gap: 0; } .legal dd { margin-bottom: .5rem; } }

/* 14 ── ANIMATIONS (désactivées si le visiteur le demande dans son système) */
.js .anim { opacity: 0; transform: translateY(22px); animation: fade-up-in .9s var(--ease) var(--d, 0s) forwards; }
.js .anim-scale { opacity: 0; transform: scale(.94) translateY(40px); animation: scale-in 1.3s var(--ease) .3s forwards; }
.js .hero__title .mask > span { transform: translateY(110%); animation: line-up 1.1s var(--ease) var(--d, 0s) forwards; }
@keyframes fade-up-in { to { opacity: 1; transform: none; } }
@keyframes scale-in { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .anim, .js .anim-scale, .js .hero__title .mask > span { opacity: 1; transform: none; }
}

/* 15 ── ACCESSIBILITÉ */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; border-radius: 6px; }
[tabindex='-1']:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: .7rem 1.1rem; background: var(--accent); color: var(--ink-950); border-radius: 999px; font-weight: 600; transition: top .2s var(--ease); }
.skip-link:focus { top: 1rem; }
.hero__arch .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* ── Climatisation : deux grands blocs (.grp) dans l'onglet « Climatisation » ──
   Bloc clair + bloc sombre, empilés ; les sous-services passent sur 2 colonnes
   quand la place le permet. Les autres familles gardent leurs cartes. */
.grp-wrap { grid-column: 1 / -1; display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); container-type: inline-size; animation: svc-in .7s var(--ease) both; }
.grp { --g-fg: var(--ink-900); --g-muted: var(--mineral-600); --g-line: rgb(4 28 77 / .14); --g-accent: var(--accent-deep);
  display: flex; flex-direction: column; gap: clamp(1.3rem, 2.4vw, 1.9rem); padding: clamp(1.4rem, 3vw, 2.5rem); border-radius: var(--radius-l);
  background: var(--paper); color: var(--g-fg); border: 1px solid var(--g-line); min-width: 0; }
.grp.is-dark { --g-fg: var(--paper); --g-muted: #aebddd; --g-line: rgb(245 248 254 / .16); --g-accent: var(--accent);
  background: var(--ink-900); border-color: transparent; }
.grp__head { display: grid; gap: .9rem; }
.grp__n { display: flex; align-items: center; gap: .8rem; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .14em; color: var(--g-accent); }
.grp__chip { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--g-accent); color: var(--paper); }
.grp.is-dark .grp__chip { color: var(--ink-950); }
.grp__head h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.04; }
.grp__sum { color: var(--g-muted); font-size: clamp(1rem, 1.3vw, 1.1rem); max-width: 40rem; }
.grp__list { display: grid; gap: 0 2.4rem; border-top: 1px solid var(--g-line); }
.grp__list li { position: relative; display: grid; gap: .2rem; align-content: start; padding: .9rem 0 .9rem 1.5rem; border-bottom: 1px solid var(--g-line); }
.grp__list li::before { content: ''; position: absolute; left: 0; top: 1.5rem; width: 9px; height: 2px; background: var(--g-accent); }
.grp__list h4 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.grp__list p { color: var(--g-muted); font-size: .95rem; }
.grp__cta .btn { width: 100%; justify-content: center; }
@container (min-width: 620px) {
  .grp__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grp__cta .btn { width: auto; }
}
/* Photo facultative du bloc (champ img dans CLIM_GROUPS, services.js) */
.grp__visual { aspect-ratio: 16 / 6; border-radius: var(--radius-m); }
@container (max-width: 619px) { .grp__visual { aspect-ratio: 4 / 3; } }
/* Sous-blocs avec photo (carte photo + titre + texte) */
.grp__cards { display: grid; gap: 1.6rem 1.4rem; }
.grp__card { display: grid; gap: .6rem; align-content: start; }
.grp__card-visual { aspect-ratio: 4 / 3; border-radius: var(--radius-m); margin-bottom: .3rem; }
.grp__card h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.15; }
.grp__card p { color: var(--g-muted); font-size: .95rem; }
@container (min-width: 520px) { .grp__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 760px) { .grp__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — ajustements tous appareils (à garder tout en bas du fichier)
   ══════════════════════════════════════════════════════════════════════════ */

/* Zones tactiles confortables (≥ 44 px) sur écrans tactiles et petits écrans */
@media (pointer: coarse), (max-width: 900px) {
  .brand, .hero__tel, .zone__maplink, .linkbtn, .header__tel { min-height: 44px; }
  .brand, .hero__tel, .zone__maplink { align-items: center; }
  .link-u { padding-block: .7rem; }
  .linkbtn { display: inline-flex; align-items: center; }
  .footer a, .footer .linkbtn { display: inline-flex; align-items: center; min-height: 44px; }
  .tab { min-height: 56px; }
}

/* Onglets des services : défilement horizontal propre, sans onglet coupé */
.tabs { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-padding-inline: .5rem; }
.tab { scroll-snap-align: center; }

/* Le bouton « Appeler » flottant ne doit jamais coller aux bords ni cacher le contenu en bas de page */
@media (max-width: 600px) {
  .fab-call { right: max(.8rem, env(safe-area-inset-right)); bottom: max(.8rem, env(safe-area-inset-bottom)); min-height: 52px; padding: 0 1.1rem 0 .95rem; }
  .footer { padding-bottom: 5.5rem; }
}

/* Encoches / barres système des téléphones */
@supports (padding: max(0px)) {
  .header { padding-left: max(var(--gutter), env(safe-area-inset-left)); }
}

/* Très petits écrans (≤ 360 px) */
@media (max-width: 360px) {
  .header__bar { gap: .5rem; padding-left: .6rem; }
  .tab { padding: .7rem .9rem; }
  .btn--lg { padding-inline: 1.2rem; }
}

/* Téléphones en paysage : l'en-tête et le bouton flottant prennent moins de place */
@media (max-height: 480px) and (orientation: landscape) {
  .header { padding-block: .4rem; }
  .fab-call { min-height: 44px; bottom: .6rem; }
}
/* À coller tout en bas de css/style.css */
/* Les partenaires (haut du pied de page) : 3 emplacements de logos identiques */
.partners { padding-block: clamp(.5rem, 2vw, 1.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid rgb(245 248 254 / .1); }
.footer .partners__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; text-transform: none; color: var(--paper); margin-bottom: 1.4rem; }
.footer .partners__list { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: clamp(.6rem, 2vw, 1.4rem); }
.partner__logo.media { aspect-ratio: 3 / 2; border-radius: var(--radius-m); background: var(--paper); }
.partner__logo.media > img { inset: 12% 14%; width: 72%; height: 76%; object-fit: contain; }
.partner__logo .media__ph { color: var(--ink-900); background: var(--paper); border: 1px dashed rgb(4 28 77 / .3); border-radius: inherit; gap: .35rem; }
.partner__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(.85rem, 2.2vw, 1.25rem); letter-spacing: -.01em; }
.partner__logo .media__hint { color: var(--ink-800); opacity: 1; font-size: .64rem; }
@media (max-width: 560px) { .partner__logo .media__hint { display: none; } .partner__logo .media__ph { padding: .4rem; } }

/* ══════════════════════════════════════════════════════════════════════════
   SERVICES — sous-blocs en « tuiles » (remplace l'ancienne liste à tirets)
   À coller tout en bas de css/style.css
   ══════════════════════════════════════════════════════════════════════════ */
.grp__tiles { display: grid; gap: clamp(.8rem, 1.6vw, 1.2rem); }
@container (min-width: 640px) {
  .grp__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grp__tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; } /* nombre impair : la dernière tuile prend toute la largeur */
}
.tile { position: relative; overflow: hidden; isolation: isolate; display: grid; align-content: start; gap: .6rem;
  padding: clamp(1.2rem, 2.2vw, 1.8rem); border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--g-line); color: var(--g-fg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease);
  animation: tile-in .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.grp.is-dark .tile { background: rgb(245 248 254 / .06); }
/* liseré qui se dessine au survol */
.tile::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--g-accent), var(--accent-strong)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
/* halo bleu glacé dans le coin */
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 100% 0, rgb(92 200 255 / .22), transparent 62%); opacity: 0; transition: opacity .5s var(--ease); }
.tile__n { display: flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; color: var(--g-accent); transition: color .45s var(--ease); }
.tile__n::after { content: ''; height: 1.5px; width: 1.6rem; background: currentColor; border-radius: 2px; transition: width .55s var(--ease); }
.tile h4 { font-family: var(--font-display); font-size: clamp(1.12rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.tile__lead { font-weight: 500; color: var(--g-fg); transition: color .45s var(--ease); }
.tile__rest { color: var(--g-muted); font-size: .95rem; transition: color .45s var(--ease); }
@media (hover: hover) {
  .tile:hover, .tile:focus-within { transform: translateY(-6px); border-color: var(--g-accent); box-shadow: 0 20px 44px rgb(4 28 77 / .18); }
  .tile:hover::before, .tile:focus-within::before { transform: scaleX(1); }
  .tile:hover::after, .tile:focus-within::after { opacity: 1; }
  .tile:hover .tile__n::after { width: 3.6rem; }
  /* bloc clair : la tuile passe au bleu marine BATICLIM */
  .grp.is-light .tile:hover { --g-fg: var(--paper); --g-muted: #b9c7e4; --g-accent: var(--accent); background: var(--ink-900); border-color: var(--ink-900); }
  /* bloc sombre : la tuile s'éclaircit légèrement */
  .grp.is-dark .tile:hover { background: rgb(245 248 254 / .12); }
}
/* encadré de fin de bloc */
.grp__note { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem 1.2rem; border-radius: var(--radius-m); border: 1px dashed var(--g-line); background: rgb(92 200 255 / .1); color: var(--g-fg); font-size: .97rem; }
.grp__note svg { flex: none; margin-top: .12rem; color: var(--g-accent); }
@keyframes tile-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tile { animation: none; transition: none; }
  .tile::before, .tile::after, .tile__n::after { transition: none; }
  .tile:hover, .tile:focus-within { transform: none; }
}
/* ══════════════════════════════════════════════════════════════════════════
   BATICLIM — styles des pages annexes (404.html, confidentialite.html, mentions-legales.html)
   S'ajoute APRÈS css/style.css : il réutilise ses couleurs, polices et boutons.
   Ne modifie aucun style du site principal.
   ══════════════════════════════════════════════════════════════════════════ */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page__top { padding: 1.1rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--maxw); width: 100%; margin-inline: auto; }
.page__top .brand { min-height: 44px; }
.page__back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid rgb(245 248 254 / .3); color: var(--paper); font-weight: 600; font-size: .95rem; transition: background-color .3s var(--ease); }
.page__back:hover, .page__back:focus-visible { background: rgb(245 248 254 / .12); }
.page__foot { padding: 1.4rem var(--gutter) 1.8rem; text-align: center; font-size: .9rem; color: var(--fg-muted, #aebddd); }
.page__foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ── 404 ── */
.nf { flex: 1; display: grid; place-content: center; justify-items: center; gap: 1.1rem; padding: 3rem var(--gutter) 4rem; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.nf::before { content: ''; position: absolute; inset: -20% -10% auto; height: 70%; z-index: -1; background: radial-gradient(60% 60% at 50% 0%, rgb(92 200 255 / .18), transparent 70%); }
.nf__code { font-family: var(--font-display); font-weight: 800; letter-spacing: -.06em; line-height: .85; font-size: clamp(6rem, 26vw, 15rem); color: transparent; -webkit-text-stroke: 2px var(--accent); }
.nf__title { font-size: clamp(1.7rem, 4.5vw, 3rem); }
.nf__text { max-width: 46ch; color: var(--fg-muted); margin: 0; }
.nf__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .6rem; }

/* ── Pages légales ── */
.doc { flex: 1; padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 8vw, 6rem); }
.legal-doc { max-width: 760px; margin-inline: auto; display: grid; gap: .9rem; --focus: var(--accent-deep); }
.legal-doc h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.legal-doc h2 { font-size: 1.15rem; margin-top: 1.1rem; }
.legal-doc p, .legal-doc dd, .legal-doc dt { font-size: 1rem; margin: 0; }
.legal-doc dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.4rem; margin: 0; }
.legal-doc dt { color: var(--mineral-600); } .legal-doc dd { margin: 0; }
.legal-doc a { text-decoration: underline; text-underline-offset: 3px; }
.legal-doc__warn { max-width: 760px; margin: 0 auto 1.4rem; }
@media (max-width: 520px) { .legal-doc dl { grid-template-columns: 1fr; gap: .1rem; } .legal-doc dd { margin-bottom: .6rem; } }
@media (prefers-reduced-motion: reduce) { .page__back { transition: none; } }

/* Petit bouton « Demander un devis » en bas à droite de chaque prestation */
.tile { display: flex; flex-direction: column; }
.tile__cta { margin-top: auto; padding-top: .7rem; align-self: flex-end; }
.tile__btn { min-height: 40px; padding: .35rem .95rem; font-size: .88rem; gap: .4rem; }
@media (hover: hover) {
  .grp.is-light .tile:hover .tile__btn, .grp.is-light .tile:focus-within .tile__btn { --btn-bg: var(--accent); --btn-fg: var(--ink-950); --btn-hover: var(--accent-strong); }
}
/* E-mail dans la barre du haut : texte complet sur grand écran, icône seule entre 1000 et 1199 px */
@media (max-width: 1199px) { .header__mail span { display: none; } .header__mail { padding: .55rem .75rem; } }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE / TABLETTE — services à la suite (défilement vers le bas) + noms des villes sur la carte
   À coller tout en bas de css/style.css. Aucun effet sur ordinateur large (≥ 1040 px) pour les services.
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. Services : la liste des familles est verticale (plus de défilement vers la droite) */
#svc-list { scroll-margin-top: 6rem; }
.svc__top { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: .6rem; }
@media (min-width: 1040px) { .svc__top { display: none; } }
@media (max-width: 1039px) {
  .tabs { display: grid; gap: .6rem; overflow: visible; padding: 0; scroll-snap-type: none; overscroll-behavior: auto; }
  .tab { width: 100%; align-content: start; scroll-snap-align: none; }
  .tab__t { white-space: normal; font-size: 1.2rem; }
  .tab[aria-selected='true'] .tab__s { display: block; }
  .panel { scroll-margin-top: 6rem; }
}
@media (min-width: 700px) and (max-width: 1039px) {
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs .tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* 2. Carte : noms des villes visibles aussi sur petit écran (noms abrégés, placés sans chevauchement par main.js) */
.pin__short { display: none; }
@container (max-width: 600px) {
  .pin .pin__label { display: block; font-size: clamp(9.5px, 2.7cqw, 11px); }
  .pin__full { display: none; }
  .pin__short { display: inline; }
  .pin.is-hq .pin__label { font-weight: 700; }
}
/* côtés en diagonale, utilisés seulement sur petit écran pour éviter les chevauchements de noms */
.pin--tl .pin__label { bottom: calc(50% + 4px); right: calc(50% + 4px); }
.pin--tr .pin__label { bottom: calc(50% + 4px); left: calc(50% + 4px); }
.pin--bl .pin__label { top: calc(50% + 4px); right: calc(50% + 4px); }
.pin--br .pin__label { top: calc(50% + 4px); left: calc(50% + 4px); }

/* 3. Carte sur téléphone : vraie carte manipulable (glisser, pincer, boutons + / −) */
.zone__canvas { position: relative; width: 100%; height: 100%; }
.zone__canvas.is-wide .pin__full { display: inline; }
.zone__canvas.is-wide .pin__short { display: none; }
.zone__hint { display: none; font-size: .82rem; color: var(--mineral-600); }
.zone__ctrl { display: none; }
@media (max-width: 640px) {
  .zone__mapcard { position: relative; }
  .zone__mapwrap { overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
  .zone__mapwrap.is-drag { cursor: grabbing; }
  .zone__canvas { height: auto; aspect-ratio: var(--ar); }
  .zone__hint:not([hidden]) { display: block; }
  .zone__ctrl:not([hidden]) { position: absolute; top: .6rem; right: .6rem; z-index: 5; display: flex; flex-direction: column; gap: .4rem; }
  .zone__ctrl button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(4 28 77 / .25); background: rgb(245 248 254 / .94); color: var(--ink-900); font-size: 1.5rem; font-weight: 600; line-height: 1; box-shadow: 0 4px 14px rgb(2 15 44 / .3); }
  .zone__ctrl button:active { background: var(--accent); }
}

/* ══════════════════════════════════════════════════════════════════════════
   TÉLÉPHONE / TACTILE — mêmes effets que le survol souris sur les sous-prestations :
   .is-press = le doigt appuie sur la tuile · .is-hot = la tuile est au milieu de l'écran
   ══════════════════════════════════════════════════════════════════════════ */
.tile.is-press, .tile.is-hot { border-color: var(--g-accent); box-shadow: 0 14px 34px rgb(4 28 77 / .16); }
.tile.is-press { transform: scale(.985); }
.tile.is-press::before, .tile.is-hot::before { transform: scaleX(1); }
.tile.is-press::after, .tile.is-hot::after { opacity: 1; }
.tile.is-press .tile__n::after, .tile.is-hot .tile__n::after { width: 3.6rem; }
.grp.is-light .tile.is-press, .grp.is-light .tile.is-hot { --g-fg: var(--paper); --g-muted: #b9c7e4; --g-accent: var(--accent); background: var(--ink-900); border-color: var(--ink-900); }
.grp.is-dark .tile.is-press, .grp.is-dark .tile.is-hot { background: rgb(245 248 254 / .12); }
.grp.is-light .tile.is-press .tile__btn, .grp.is-light .tile.is-hot .tile__btn { --btn-bg: var(--accent); --btn-fg: var(--ink-950); --btn-hover: var(--accent-strong); }

/* Vidéo : message de secours + lien « Ouvrir la vidéo » quand la lecture intégrée échoue sur un téléphone */
.video__soon--ko { display: grid; justify-items: center; gap: .7rem; padding: 1rem 1.3rem; border-radius: var(--radius-m); text-align: center; max-width: min(92%, 26rem); }

/* Vidéo en lecture automatique : petit bouton pour activer le son */
.video__sound { position: absolute; right: .8rem; bottom: .8rem; z-index: 3; min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid rgb(245 248 254 / .35); background: rgb(4 28 77 / .78); color: var(--paper); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.video__sound:hover, .video__sound:focus-visible { background: var(--ink-900); border-color: var(--accent); }
.video__sound[hidden] { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   COMPATIBILITÉ — replis pour anciens navigateurs (iPhone avant iOS 16, vieux Android…)
   Ces règles ne s'appliquent QUE si le navigateur ne connaît pas la fonction : aucun effet sur les navigateurs récents.
   ══════════════════════════════════════════════════════════════════════════ */
@supports not (height: 100svh) {
  .hero, .page { min-height: 100vh; }
  .legal { max-height: calc(100vh - 2rem); }
  .legal__box { max-height: calc(100vh - 2rem); }
}
@supports not (height: 100dvh) {
  .lightbox { height: 100vh; }
  .lightbox__fig img { max-height: calc(100vh - 10rem); }
}
/* Unités « cqw » (carte) inconnues : tailles fixes + noms courts sur petit écran */
@supports not (width: 1cqw) {
  .zone__scale { font-size: 10px; }
  .pin__dot { width: 11px; height: 11px; }
  .pin__label { font-size: 11px; }
  .pin.is-hq .pin__dot { width: 16px; height: 16px; }
  .pin .pin__label { display: block; }
  @media (max-width: 640px) {
    .pin__full { display: none; }
    .pin__short { display: inline; }
    .pin__label { font-size: 10px; }
  }
}
.video__sound { display: none !important; }
/* ── Chargement propre : pas de noms de fichiers, un reflet animé et « En attente du serveur… » tant qu'une image ou la vidéo charge ── */
.media__hint { display: none !important; }
.media__ph { overflow: hidden; }
.media:not(.is-ok) .media__ph::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgb(245 248 254 / .07) 50%, transparent 70%) 0 0 / 250% 100%;
  animation: media-shine 1.6s ease-in-out infinite; }
.media:not(.is-ok) .media__ph::after { content: "En attente du serveur…"; font-size: .78rem; font-weight: 500; letter-spacing: .02em; opacity: .75;
  animation: media-breathe 2.4s ease-in-out infinite; }
@keyframes media-shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.hero__arch .media__ph--brand img { animation: media-breathe 2.4s ease-in-out infinite; }
@keyframes media-breathe { 50% { opacity: .45; } }
.hero__video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__arch.is-ok .hero__video { opacity: 1; }
.hero__arch.is-ok .media__ph--brand img { animation: none; }
@media (prefers-reduced-motion: reduce) { .media:not(.is-ok) .media__ph::before, .media:not(.is-ok) .media__ph::after, .hero__arch .media__ph--brand img { animation: none; } }