/* KA-Trade Corporation - proposition « amélioration2 »
   Direction : corporate, inspirée de cfaogroup.com (grandes photos, cartes par pôle, fond gris chaud).
   Formes : angles droits partout ; seule exception, la bulle WhatsApp et les pastilles de pôle (cercles). */

/* Satoshi (Fontshare, ITF Free Font License, usage commercial autorisé), hébergée localement. */
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0e1235;
  --navy-2: #1b2152;
  --olive: #a39e1f;
  --olive-text: #6b6812;

  /* Une couleur par pôle, comme les pastilles CFAO. */
  --pole-mines: #d9892b;
  --pole-energie: #2f80d1;
  --pole-labo: #1b9e8b;
  --pole-securite: #d8453b;

  --bg: #f4f1ef;
  --surface: #ffffff;
  --text: #0e1235;
  --muted: #4a4e66;
  --line: #dcd8d3;
  --accent-text: var(--olive-text);
  --btn-bg: var(--navy);
  --btn-fg: #ffffff;
  --btn-bg-hover: var(--navy-2);

  --wrap: 1280px;
  --gutter: 8px;
  --header-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e26;
    --surface: #12163a;
    --text: #eceef3;
    --muted: #a9acc0;
    --line: #262b5a;
    --accent-text: #cfc84a;
    --btn-bg: var(--olive);
    --btn-fg: var(--navy);
    --btn-bg-hover: #b8b22c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; font-weight: 400; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.015em; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
/* L'attribut hidden l'emporte toujours sur les règles d'affichage des composants. */
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--olive); color: var(--navy); font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem; border: 1px solid transparent;
  font: 500 1rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn .ph { font-size: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .ph-arrow-right { transform: translateX(3px); }
.btn--solid { background: var(--btn-bg); color: var(--btn-fg); }
.btn--solid:hover { background: var(--btn-bg-hover); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #e9e7f0; }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.link-arrow:hover { text-decoration-thickness: 2px; }

/* ---------- En-tête : transparent sur la photo, opaque après défilement ---------- */
.top-sentinel { position: absolute; top: 0; left: 0; height: 120px; width: 1px; pointer-events: none; }
.header {
  position: fixed; z-index: 50; top: var(--gutter); left: var(--gutter); right: var(--gutter);
  color: #fff; transition: background-color .3s, color .3s, box-shadow .3s, top .3s;
}
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); padding: 0 24px; }
.header.is-solid, .header.menu-open { top: 0; left: 0; right: 0; background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.header.is-solid .header__inner, .header.menu-open .header__inner { padding: 0 calc(24px + var(--gutter)); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 42px; height: 42px; }
.brand__text { font-size: 1.25rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.brand__text small { display: block; margin-top: 3px; font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.header.is-solid .brand__text, .header.menu-open .brand__text { color: var(--accent-text); }

.header__nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav-main { display: flex; gap: 26px; }
.nav-main a, .nav-poles a { text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav-main a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-poles { display: flex; gap: 22px; margin-left: auto; }
.nav-poles a { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-poles a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pole); }
.nav-poles a:hover { opacity: .8; }
.header__cta { min-height: 44px; padding: .65rem 1.1rem; }
.header:not(.is-solid):not(.menu-open) .header__cta { background: #fff; color: var(--navy); }

.header__toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; place-items: center;
  background: transparent; border: 1px solid currentColor; color: inherit; font-size: 1.5rem; cursor: pointer;
}
@media (max-width: 1279px) { .nav-poles { display: none; } .header__cta { margin-left: auto; } }
@media (max-width: 959px) {
  .header__toggle { display: grid; }
  .header__nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px;
    background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line);
  }
  .header.menu-open .header__nav { display: flex; }
  .nav-main { flex-direction: column; gap: 0; }
  .nav-main a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-poles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 4px; }
  .header__cta { margin: 16px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; margin: var(--gutter);
  min-height: min(92dvh, 820px); display: grid; align-items: center; color: #fff; overflow: hidden;
  background: var(--navy);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 18, 53, .7) 0%, rgba(14, 18, 53, 0) 22%),
    linear-gradient(90deg, rgba(14, 18, 53, .82) 0%, rgba(14, 18, 53, .5) 55%, rgba(14, 18, 53, .25) 100%);
}
/* Texte calé sur le bord gauche du logo de l'en-tête (même retrait de 24 px), quelle que soit la largeur d'écran. */
.hero__content {
  width: 100%; margin: 0; padding: calc(var(--header-h) + 48px) 24px 64px;
  display: grid; gap: 36px; align-items: center;
}
@media (min-width: 960px) { .hero__content { gap: 32px; padding-right: 48px; } }
/* Titre puis texte et boutons, empilés à gauche. */
.hero__content { align-content: center; justify-items: start; }
.hero__side { max-width: 620px; }
.hero__title { font-size: clamp(2.9rem, 6.6vw, 5.8rem); font-weight: 300; line-height: .98; text-transform: uppercase; letter-spacing: -.02em; }
.hero__title span { display: block; }
.hero__title b { font-weight: 700; }
.hero__lead { font-size: 1.12rem; line-height: 1.55; max-width: 44ch; color: rgba(255, 255, 255, .92); }
.hero__lead strong { display: block; color: #fff; font-weight: 700; margin-bottom: .3rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Pôles ---------- */
.poles { padding: 0 var(--gutter); }
.poles__grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 640px) { .poles__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .poles__grid { grid-template-columns: repeat(4, 1fr); } }
.pole {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 460px; padding: 22px; color: #fff; text-decoration: none; background: var(--navy-2);
}
@media (max-width: 639px) { .pole { min-height: 380px; } }
.pole img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.pole::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 18, 53, .78) 0%, rgba(14, 18, 53, 0) 30%),
    linear-gradient(0deg, rgba(14, 18, 53, .92) 0%, rgba(14, 18, 53, .55) 30%, rgba(14, 18, 53, 0) 55%);
}
.pole:hover img, .pole:focus-within img { transform: scale(1.06); }
.pole__label { display: inline-flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.pole__label::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--pole); flex: none; }
.pole__foot { display: grid; gap: 14px; justify-items: center; text-align: center; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .45); }
.pole__text { font-size: 1.05rem; line-height: 1.4; max-width: 30ch; }
/* Un lien par domaine annoncé sur la carte (ex. « Sécurité » et « Drones »), toujours visibles. */
.pole__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.pole__links a {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 2px;
  color: #fff; font-size: .95rem; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--pole);
  text-decoration-thickness: 2px;
}
.pole__links a .ph { transition: transform .25s var(--ease); }
.pole__links a:hover .ph { transform: translateX(3px); }
.pole__links a:focus-visible { outline-color: #fff; }

.also { display: grid; margin-top: var(--gutter); background: var(--surface); }
@media (min-width: 768px) { .also { grid-template-columns: repeat(3, 1fr); } }
.also li { display: flex; align-items: center; gap: 16px; padding: 22px 28px; }
.also li + li { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .also li + li { border-top: 0; border-left: 1px solid var(--line); } }
.also .ph { font-size: 1.8rem; color: var(--accent-text); flex: none; }
.also b { display: block; font-weight: 700; }
.also span { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.also b { color: var(--text); }

/* ---------- Titres de section ---------- */
.section { padding: 104px 0; }
@media (max-width: 767px) { .section { padding: 72px 0; } }
.section-head { max-width: 760px; }
.h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.025em; }
.lead { margin-top: 1rem; font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* ---------- Catalogue à onglets (défilement automatique, avec pause) ---------- */
.tabs { margin-top: 48px; display: grid; gap: 24px; }
@media (min-width: 1024px) { .tabs { grid-template-columns: 250px 1fr; gap: 32px; align-items: start; } }
.tabs__side { display: grid; gap: 14px; }
.tabs__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
@media (min-width: 1024px) { .tabs__list { flex-direction: column; overflow: visible; } }
.tabs__list button {
  position: relative; overflow: hidden; flex: none; display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 18px; text-align: left; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  font-weight: 500; font-size: 1rem; transition: background-color .2s, color .2s, border-color .2s;
}
.tabs__list button .ph { font-size: 1.25rem; color: var(--pole); }
.tabs__list button:hover { border-color: var(--text); }
.tabs__list button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs__list button[aria-selected="true"] .ph { color: #fff; }
@media (prefers-color-scheme: dark) { .tabs__list button[aria-selected="true"] { background: var(--olive); border-color: var(--olive); color: var(--navy); } .tabs__list button[aria-selected="true"] .ph { color: var(--navy); } }
.tabs__list button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--pole); transform: scaleX(0); transform-origin: left;
}
.tabs.is-playing [aria-selected="true"]::after { animation: tabProgress var(--auto-delay, 3s) linear forwards; }
@keyframes tabProgress { to { transform: scaleX(1); } }
.tabs__pause {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; color: var(--muted); font-weight: 500; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}
.tabs__pause:hover { color: var(--text); }
.tabs__pause .ph { font-size: 1.1rem; }

.tabs__panel { display: grid; background: var(--surface); overflow: hidden; }
.tabs__panel[hidden] { display: none; }
.panel__groups { display: grid; gap: 28px; align-content: start; padding: 32px; }
.panel__media { margin: 0; order: -1; aspect-ratio: 16 / 10; overflow: hidden; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .tabs__panel { grid-template-columns: 1fr 1fr; min-height: 500px; }
  .panel__groups { padding: 44px; }
  .panel__media { order: 0; aspect-ratio: auto; height: 100%; }
}
.group h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: .45rem .8rem; background: var(--bg); font-size: .95rem; line-height: 1.35; }
@media (prefers-reduced-motion: no-preference) {
  .tabs__panel:not([hidden]) .panel__groups { animation: fadeUp .5s var(--ease); }
  .tabs__panel:not([hidden]) .panel__media img { animation: zoomIn 1.1s var(--ease); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(1.06); } }

/* ---------- Références : bandeau de logos qui défilent (repris de site/) ---------- */
.partners {
  display: grid; align-items: center; gap: 24px; padding: 44px 0;
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.partners__head { padding: 0 20px; }
@media (min-width: 768px) { .partners__head { padding: 0 40px; } }
.partners__title { position: relative; padding-left: 20px; font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
.partners__title::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px; background: var(--olive); }
.partners__title br { display: none; }
.partners__sub { margin-top: 8px; padding-left: 20px; font-size: .95rem; color: var(--muted); }
@media (min-width: 1024px) {
  /* Étiquette alignée sur la grille du site à gauche, logos à droite. */
  .partners { grid-template-columns: max(320px, calc((100vw - var(--wrap)) / 2 + 320px)) 1fr; gap: 0; padding: 40px 0; }
  .partners__head { justify-self: end; width: 320px; padding: 8px 36px 8px 40px; border-right: 1px solid var(--line); }
  .partners__title br { display: inline; }
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 64px; width: max-content; padding: 0 20px; }
.logo { display: flex; align-items: center; height: 64px; flex: none; }
.logo img { height: 52px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo:hover img { filter: none; opacity: 1; }
.logo--text span { font-weight: 700; font-size: 1.05rem; color: var(--muted); white-space: nowrap; }
@media (prefers-color-scheme: dark) {
  /* Pastille claire : lisible même si un logo n'a pas de fond transparent. */
  .logo:not(.logo--text) { padding: 0 14px; background: #eceef3; }
  .logo img { opacity: .9; }
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__track.is-animated { animation: marquee 45s linear infinite; }
  .marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 20px; } }

/* ---------- Éditorial ---------- */
.editorial { display: grid; gap: var(--gutter); padding: var(--gutter); background: var(--surface); }
@media (min-width: 1024px) { .editorial { grid-template-columns: 1fr 1fr; } }
.editorial__media { margin: 0; min-height: 340px; }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }
.editorial__blocks { display: grid; gap: var(--gutter); }
.ed-block { padding: 56px 48px; background: var(--bg); display: grid; gap: 20px; align-content: center; }
@media (max-width: 767px) { .ed-block { padding: 40px 24px; } }
.ed-block--dark { background: var(--navy); color: #fff; }
.ed-block__title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 500; letter-spacing: -.02em; max-width: 16ch; }
.ed-block p { color: var(--muted); max-width: 52ch; }
.ed-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.ed-specs li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ed-specs .ph { font-size: 1.35rem; color: var(--pole-securite); }
.ed-steps { display: grid; gap: 18px; counter-reset: s; }
.ed-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.ed-steps .ph { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.35rem; color: var(--navy); background: var(--olive); }
.ed-steps b { display: block; font-weight: 700; }
.ed-steps span { color: rgba(255, 255, 255, .78); line-height: 1.45; }
.ed-steps b { color: #fff; }

/* ---------- Entreprise ---------- */
.company { display: grid; gap: var(--gutter); padding: var(--gutter); }
@media (min-width: 900px) { .company { grid-template-columns: 1fr 1fr; } }
.company__card { position: relative; isolation: isolate; overflow: hidden; min-height: 440px; display: flex; align-items: flex-end; color: #fff; background: var(--navy-2); }
.company__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.company__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 18, 53, .9) 0%, rgba(14, 18, 53, .45) 50%, rgba(14, 18, 53, .15) 100%); }
.company__body { padding: 44px 40px; display: grid; gap: 14px; }
@media (max-width: 767px) { .company__body { padding: 32px 24px; } }
.company__body h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -.02em; }
.company__body p { max-width: 48ch; color: rgba(255, 255, 255, .9); }

/* ---------- Carte ---------- */
.map { margin: 40px 0 0; background: var(--surface); border: 1px solid var(--line); }
.map__frame { position: relative; height: 400px; }
@media (max-width: 767px) { .map__frame { height: 320px; } }
.map__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__consent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, var(--line) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, var(--line) 47px 48px),
    var(--bg);
}
.map__consent .ph { width: 72px; height: 72px; display: grid; place-items: center; font-size: 2rem; color: var(--accent-text); background: var(--surface); border: 1px solid var(--line); }
.map__consent p { max-width: 46ch; color: var(--muted); font-size: .95rem; }
.map__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); font-weight: 500; }
.map__bar span { display: inline-flex; align-items: center; gap: .5rem; }
.map__bar .ph-map-pin { color: var(--accent-text); font-size: 1.3rem; }

/* ---------- Contact ---------- */
.contact { padding: 104px 0; background: var(--surface); }
@media (max-width: 767px) { .contact { padding: 72px 0; } }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; } }
.coords { margin-top: 36px; display: grid; gap: 22px; }
.coords li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; }
.coords .ph { font-size: 1.5rem; color: var(--accent-text); margin-top: 1px; }
.coords a { font-weight: 500; text-decoration: none; }
.coords a:hover { text-decoration: underline; text-underline-offset: 3px; }
.coords address { font-style: normal; color: var(--muted); }

.form { display: grid; gap: 20px; padding: 36px; background: var(--bg); }
@media (max-width: 767px) { .form { padding: 24px 20px; } }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem .9rem; border: 1px solid #a9a6a0; border-radius: 0;
  background: var(--surface); color: var(--text); font: 400 1rem/1.4 var(--font); transition: border-color .2s, box-shadow .2s;
}
@media (prefers-color-scheme: dark) { .field input, .field select, .field textarea { border-color: #3b4180; } }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(163, 158, 31, .45); }
.field__help { font-size: .88rem; color: var(--muted); }
.field__error { font-size: .88rem; font-weight: 500; color: #b42318; }
.field__error:empty { display: none; }
@media (prefers-color-scheme: dark) { .field__error { color: #ff8a80; } }
.field.has-error input, .field.has-error textarea { border-color: #b42318; }
.form__status { font-size: .95rem; color: var(--muted); }
.form__status:empty { display: none; }
.form__status.is-success { padding: 12px 14px; font-weight: 500; color: var(--text); background: color-mix(in srgb, var(--olive) 20%, transparent); }
.form__legal { font-size: .85rem; color: var(--muted); }
.form__legal a { color: var(--accent-text); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy); color: #d6d8e6; padding: 72px 0 32px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer__logo { width: 220px; height: auto; }
.footer__up { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.footer__up:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__cols { display: grid; gap: 36px; padding: 44px 0; }
@media (min-width: 768px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
.footer__cols div { display: grid; gap: 12px; align-content: start; }
.footer__cols h2 { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__cols span { color: #a9acc0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; color: #a9acc0; }
.footer__bottom a { color: #d6d8e6; }

/* ---------- Pages annexes (mentions légales, 404, merci) ---------- */
.page-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-header .header__inner { max-width: var(--wrap); margin: 0 auto; }
.page-header .brand__text { color: var(--accent-text); }
.page-header .btn { margin-left: auto; }
.legal { padding: 64px 0 104px; }
.legal__wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 500; letter-spacing: -.025em; }
.legal__updated { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.legal__toc a { padding: .5rem .9rem; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500; font-size: .95rem; }
.legal__toc a:hover { border-color: var(--text); }
.legal section { padding-top: 44px; }
.legal h2 { font-size: 1.6rem; margin-bottom: 14px; }
.legal h3 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 6px; }
.legal p { color: var(--muted); max-width: 68ch; }
.legal p + p { margin-top: .8rem; }
.legal a { color: var(--accent-text); }
.legal__list { margin: 0; display: grid; background: var(--surface); border: 1px solid var(--line); }
.legal__list > div { display: grid; gap: 4px; padding: 14px 18px; }
.legal__list > div + div { border-top: 1px solid var(--line); }
@media (min-width: 640px) { .legal__list > div { grid-template-columns: 220px 1fr; gap: 16px; } }
.legal__list dt { font-weight: 500; }
.legal__list dd { margin: 0; color: var(--muted); }
.status-page { min-height: calc(100dvh - var(--header-h)); display: grid; align-items: center; padding: 64px 0; }
.status-page__code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 700; line-height: .9; letter-spacing: -.05em; color: var(--olive); }
.status-page h1 { margin-top: 12px; font-size: clamp(2rem, 4.4vw, 3rem); max-width: 20ch; }
.status-page .lead a { color: var(--accent-text); font-weight: 500; }
.status-page .hero__ctas { margin-top: 32px; }
.status-page .btn--ghost { border-color: var(--line); color: var(--text); }
.status-page .btn--ghost:hover { border-color: var(--text); }
.footer--slim { padding: 24px 0; }
.footer--slim .footer__bottom { border-top: 0; padding-top: 0; }

/* ---------- Bulle WhatsApp flottante ---------- */
.wa-float {
  position: fixed; z-index: 60; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 10px 28px -8px rgba(18, 140, 70, .65), 0 2px 6px rgba(14, 18, 53, .18);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float .ph-fill { font-size: 2rem; line-height: 1; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); }
.wa-float:active { transform: scale(.96); }
.wa-float:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; border-radius: 50%; }
.wa-float__label {
  position: absolute; right: calc(100% + 12px); top: 50%; padding: .55rem .9rem;
  background: var(--navy); color: #fff; font-weight: 500; font-size: .92rem; white-space: nowrap;
  opacity: 0; transform: translate(6px, -50%); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; transform: translate(0, -50%); }
@media (hover: none) { .wa-float__label { display: none; } }
@media (max-width: 767px) { .wa-float { width: 56px; height: 56px; } }
@media (prefers-reduced-motion: no-preference) { .wa-float { animation: waIn .6s var(--ease) .8s backwards; } }
@keyframes waIn { from { opacity: 0; transform: translateY(16px) scale(.8); } }

/* ---------- Apparitions au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero__title span, .hero__side { animation: heroIn 1s var(--ease) backwards; }
  .hero__title span:nth-child(2) { animation-delay: .12s; }
  .hero__side { animation-delay: .25s; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
@media (prefers-color-scheme: dark) {
  /* Les blocs bleu nuit se détachent du fond sombre. */
  .ed-block--dark { background: var(--navy-2); }
}

/* Téléchargement du catalogue, dans la section « Extrait du catalogue ». */
.cat-download { margin-top: 28px; }
.cat-download__meta { font-weight: 400; font-size: .88rem; opacity: .75; }

/* ---------- Formulaire : préparation et relecture de la demande ---------- */
.form__intro { color: var(--muted); }
.req { color: var(--accent-text); font-weight: 700; }
.quote-preview { display: grid; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--olive); }
.quote-preview:focus { outline: none; }
.quote-preview:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.quote-preview h3 { font-size: 1.3rem; font-weight: 700; }
.quote-preview p { color: var(--muted); font-size: .95rem; }
.quote-preview pre {
  margin: 0; padding: 16px; max-height: 380px; overflow: auto;
  background: var(--bg); color: var(--text); font: 400 .92rem/1.55 var(--font);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.quote-preview__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quote-preview__actions .ph-whatsapp-logo { color: #1f9d55; font-size: 1.2rem; }
@media (prefers-reduced-motion: no-preference) { .quote-preview:not([hidden]) { animation: fadeUp .45s var(--ease); } }

/* Lien « Demander un devis » en bas de chaque onglet du catalogue. */
.panel__cta { justify-self: start; margin-top: 4px; color: var(--accent-text); }

/* ---------- Mots mis en valeur dans les titres, à la couleur du logo ----------
   Olive plus profond sur fond clair (#857F16, contraste 3,7:1, conforme pour les grands titres),
   olive exact du logo sur bleu nuit, olive lumineux sur photo. */
:root { --hl: #857f16; }
@media (prefers-color-scheme: dark) { :root { --hl: #cfc84a; } }
.hl { color: var(--hl); font-style: normal; }
.ed-block--dark .hl { color: var(--olive); }
.hero .hl, .company__body .hl { color: #d9d25a; }

/* ---------- Correctifs de l'audit Codex (MSG-006) ---------- */
/* AUD-201 : aucun débordement horizontal sur téléphone. */
.cat-download { white-space: normal; max-width: 100%; flex-wrap: wrap; justify-content: flex-start; text-align: left; line-height: 1.3; }
@media (max-width: 479px) { .cat-download__meta { flex-basis: 100%; padding-left: calc(1.1em + .55rem); } }
.form__row > *, .field { min-width: 0; }
.field select { max-width: 100%; text-overflow: ellipsis; }
.page-header .header__inner { gap: 16px; padding: 0 16px; }
.page-header .btn { min-height: 44px; padding: .55rem .85rem; font-size: .95rem; flex: none; }
@media (max-width: 399px) { .page-header .brand__text { font-size: 1.05rem; } .page-header .brand img { width: 36px; height: 36px; } }

/* AUD-205 : bouton pause/reprise du bandeau de logos. */
.marquee__track.is-paused { animation-play-state: paused !important; }
.marquee-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; margin-left: 20px; padding: 0 4px;
  background: none; border: 0; color: var(--muted); font-size: .9rem; font-weight: 500; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}
.marquee-toggle:hover { color: var(--text); }
.marquee-toggle[hidden] { display: none; }

/* Défilement doux uniquement si le visiteur n'a pas demandé à réduire les animations. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Recommandation 1 : cartes de pôles moins hautes sur téléphone, pour atteindre le catalogue plus vite. */
@media (max-width: 639px) { .pole { min-height: 300px; } }
@media (max-width: 399px) { .hide-xs { display: none; } }

/* Mention réglementaire sous l'onglet Drones. */
.panel__note { font-size: .92rem; color: var(--muted); padding-left: 12px; border-left: 3px solid var(--pole-securite); max-width: 52ch; }

/* AUD-201 (contre-vérification MSG-009) : récapitulatif ouvert sans débordement à 320 px avec barre de défilement. */
.form, .quote-preview { min-width: 0; }
.quote-preview__actions .btn { white-space: normal; text-align: center; }
@media (max-width: 479px) {
  .quote-preview { padding: 18px 16px; }
  .quote-preview__actions .btn { flex: 1 1 100%; }
}

/* Bulle WhatsApp masquée dans la section contact (le formulaire propose déjà WhatsApp). */
.wa-float { transition: transform .25s var(--ease), box-shadow .25s, opacity .25s, visibility .25s; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px) scale(.9); }
