/* AUXIOMA — feuille de style principale.
   Le contenu est toujours lisible sans WebGL : le canvas n'est qu'une couche décorative. */

:root {
  --bg: #05070d;
  --bg-elevated: rgba(9, 14, 26, 0.82);
  --bg-card: rgba(13, 20, 36, 0.78);
  --line: rgba(122, 162, 255, 0.18);
  --line-strong: rgba(122, 162, 255, 0.38);
  --text: #e8edf7;
  --text-muted: #a9b4c8;
  --accent: #5ce1e6;
  --accent-2: #3d7bff;
  --warm: #ffb547;
  --focus: #ffd166;
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(16px, 4vw, 48px);
  --content: 760px;
  --wide: 1200px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

[data-silo="expertises"] { --accent: #7aa2ff; --accent-2: #a78bfa; }
[data-silo="seo"] { --accent: #4ade80; --accent-2: #5ce1e6; }
[data-silo="realisations"] { --accent: #ffb547; --accent-2: #5ce1e6; }
[data-silo="agence"] { --accent: #a78bfa; --accent-2: #5ce1e6; }
[data-silo="ressources"] { --accent: #93c5fd; --accent-2: #c4b5fd; }

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  /* Fond statique : visible avant le chargement de la 3D et sans WebGL. */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: 0 0 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin: 2rem 0 0.6rem; }
p { margin: 0 0 1.1rem; text-wrap: pretty; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
li { margin-bottom: 0.35rem; }
li::marker { color: var(--accent); }
code { font-size: 0.92em; background: rgba(122,162,255,.12); padding: .1em .35em; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--focus);
  color: #111;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Canvas WebGL ---------- */

#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.webgl-ready #webgl { opacity: 1; }
.webgl-ready #webgl.is-calm { opacity: 0.35; }
.is-leaving #webgl { opacity: 0; transition-duration: 0.18s; }

.no-webgl body,
.no-js body {
  background-image:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    linear-gradient(transparent 95%, rgba(122,162,255,.06) 95%),
    linear-gradient(90deg, transparent 95%, rgba(122,162,255,.06) 95%);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

/* ---------- Bandeau supérieur (onde Three.js en fond, facultative) ---------- */

.topbar {
  position: relative;
  z-index: 11;
  overflow: hidden;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 30%, transparent 70%, color-mix(in srgb, var(--accent) 12%, transparent)),
    #03050a;
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
}
.topbar__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.topbar.is-live .topbar__canvas { opacity: 1; }
.topbar__inner {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  margin: 0 -10px;
  border-radius: 999px;
  color: #c7d0df;
  text-decoration: none;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  background: rgba(3, 5, 10, .55);
  backdrop-filter: blur(4px);
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.topbar__link svg { width: 15px; height: 15px; flex: none; }
.topbar__link:hover {
  color: #fff;
  background: rgba(3, 5, 10, .8);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 18px -4px var(--accent);
}
.topbar__link:hover svg { color: var(--accent); }
.topbar__pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
}
@media (prefers-reduced-motion: no-preference) {
  .topbar__pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: topbar-pulse 2s ease-out infinite;
  }
  .topbar__inner { animation: topbar-in .6s ease-out both; }
}
@keyframes topbar-pulse {
  to { transform: scale(3); opacity: 0; }
}
@keyframes topbar-in {
  from { opacity: 0; transform: translateY(-6px); }
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 7, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}
.brand svg { width: 28px; height: 28px; }

.nav-toggle {
  margin-left: auto;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
/* Sans JavaScript, le menu reste déplié : pas de bouton. */
.no-js .nav-toggle { display: none; }

.lang-menu { position: relative; order: 3; }
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: color .15s, background-color .15s, border-color .15s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover,
.lang-menu[open] summary { color: var(--text); background: rgba(122, 162, 255, .1); border-color: var(--line-strong); }
.lang-menu__chevron { width: 12px; height: 12px; transition: transform .2s; }
.lang-menu[open] .lang-menu__chevron { transform: rotate(180deg); }

.flag {
  flex: none;
  display: block;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}
.lang-menu summary .flag { width: 20px; height: 15px; }

.lang-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(460px, calc(100vw - 2 * var(--gutter)));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 14px;
  background: rgba(9, 14, 26, .97);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7);
}
.lang-menu__title {
  margin: 2px 6px 10px;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lang-menu__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
}
.lang-menu__panel li { margin: 0; }
.lang-menu__panel a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: #c7d0df;
  font-size: .92rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.lang-menu__panel a .flag { width: 24px; height: 18px; }
.lang-menu__panel a:hover { background: rgba(122, 162, 255, .1); color: var(--text); }
.lang-menu__panel a[aria-current="true"] {
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--text);
  font-weight: 600;
}
.lang-menu__check { width: 16px; height: 16px; margin-left: auto; color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .lang-menu[open] .lang-menu__panel { animation: lang-menu-in .18s ease-out; }
}
@keyframes lang-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
}

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav a[data-active="true"] { color: var(--text); background: rgba(122, 162, 255, 0.1); }
.site-nav .nav-cta a {
  color: #06121a;
  background: var(--accent);
  font-weight: 600;
}
.site-nav .nav-cta a:hover { background: #fff; }

@media (max-width: 960px) {
  .js .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: rgba(5, 7, 13, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 8px var(--gutter) 18px;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-header__inner { flex-wrap: wrap; }
  /* Mobile : les langues restent à côté du bouton Menu,
     leur panneau s'ouvre sur toute la largeur de l'en-tête. */
  .js .lang-menu { position: static; order: 1; margin-left: auto; }
  .js .nav-toggle { order: 2; margin-left: 0; }
  .js .lang-menu__panel { left: var(--gutter); right: var(--gutter); width: auto; top: calc(100% + 8px); }
}
@media (min-width: 961px) {
  .nav-toggle { display: none; }
}

/* ---------- Fil d'Ariane ---------- */

.breadcrumb {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb [aria-current] { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(40px, 9vh, 110px) var(--gutter) clamp(48px, 10vh, 120px);
  min-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__content { max-width: 640px; }

/* Annonce d’emploi : l’en-tête occupe tout l’écran (largeur et hauteur visibles
   sous la barre de navigation), le contenu s’élargit en conséquence. */
.hero--full {
  max-width: none;
  min-height: calc(100svh - 150px);
  padding-left: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
}
.hero--full .hero__content { max-width: min(100%, 980px); }
.hero--full .hero__lead { font-size: clamp(1.12rem, 1.9vw, 1.4rem); max-width: 820px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: #cfd8e8; }
.hero__lead p:last-child { margin-bottom: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.job-facts {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.job-facts li {
  margin: 0;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(122, 162, 255, .08);
  font-size: .85rem;
  color: #cfd8e8;
}
.job-facts li:first-child { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

.hero__meta { margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }

/* Sur mobile, un léger voile garantit le contraste du texte sur la scène. */
@media (max-width: 1023px) {
  .hero__content {
    background: linear-gradient(180deg, rgba(5,7,13,.55), rgba(5,7,13,.35));
    border-radius: var(--radius);
    padding: 4px 0;
  }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #06121a; }
.btn-primary:hover { background: #fff; color: #06121a; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(5,7,13,.4); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- Sections de contenu ---------- */

.block {
  padding: clamp(28px, 6vh, 64px) var(--gutter);
}
.block__inner {
  max-width: var(--content);
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
}
.block__inner > :last-child { margin-bottom: 0; }
.block__inner h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}
.block--wide .block__inner { max-width: var(--wide); }

.callout {
  border-left: 3px solid var(--accent);
  background: rgba(122,162,255,.07);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 1.2rem;
}

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 14px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: .9rem;
  color: var(--accent);
}

/* ---------- Cartes (pages filles, rubriques) ---------- */

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.cards > li { margin: 0; }
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, background-color .2s;
}
.card:hover,
.card:focus-within { border-color: var(--accent); background: rgba(16, 26, 46, .9); }
.card h3 { margin: 0; font-size: 1.12rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: " →"; color: var(--accent); }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--text-muted); font-size: .96rem; }

/* ---------- Liens contextuels ---------- */

.related { margin-top: 1.5rem; }
.related h2 { font-size: 1.2rem; }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related li { margin: 0; }
.related a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  background: rgba(5,7,13,.5);
}
.related a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- CTA ---------- */

.cta .block__inner {
  text-align: center;
  background:
    radial-gradient(600px 200px at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg-elevated);
  border-color: var(--line-strong);
}
.cta h2::before { margin-left: auto; margin-right: auto; }
.cta p { color: #cfd8e8; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta .hero__actions { justify-content: center; }

/* ---------- Note éditoriale (visible en environnement de développement uniquement) ---------- */

.editorial-note {
  max-width: var(--content);
  margin: 0 auto 8px;
  padding: 12px 16px;
  border: 1px dashed var(--warm);
  border-radius: var(--radius-sm);
  background: rgba(255, 181, 71, .08);
  color: #ffe1ad;
  font-size: .9rem;
}

/* ---------- Capture d’écran d’une étude de cas ---------- */

.case-shot {
  max-width: var(--wide);
  margin: 0 auto clamp(24px, 5vh, 56px);
  padding: 0 var(--gutter);
}
.case-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.case-shot figcaption { margin-top: 10px; font-size: .85rem; color: var(--text-muted); }

/* ---------- Illustrations, témoignages, FAQ et auteur (pages services) ---------- */

.figure { margin: 1.6rem 0; }
.figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.figure figcaption { margin-top: 10px; font-size: .85rem; color: var(--text-muted); }

.testimonials { display: grid; gap: 16px; margin: 1.2rem 0; padding: 0; list-style: none; }
.testimonials > li { margin: 0; }
.testimonial {
  margin: 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(13, 20, 36, .6);
}
.testimonial blockquote { margin: 0; font-style: italic; color: var(--text); }
.testimonial blockquote p { margin: 0 0 .5rem; }
.testimonial figcaption { font-size: .88rem; color: var(--text-muted); }

.faq h3 { margin: 1.4rem 0 .4rem; font-size: 1.05rem; }
.faq h3:first-of-type { margin-top: .4rem; }

.offers {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
}
.offer {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.offer h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.offer p { margin: 0 0 .6rem; font-size: .95rem; }
.offer .offer__price { color: var(--accent); font-weight: 600; font-size: 1rem; }
.offer ul { margin: .2rem 0 0; padding-left: 1.1em; font-size: .92rem; color: var(--text-muted); }
.offer li { margin: .25rem 0; }

.reassure { margin: 1rem 0 0; font-size: .92rem; color: var(--text-muted); }
.reassure a { color: var(--accent); }

.commitments__list {
  display: grid;
  gap: 12px 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.commitments__list li {
  position: relative;
  margin: 0;
  padding-left: 28px;
}
.commitments__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.cta__next { margin: 1.6rem 0 .6rem; font-size: 1rem; }
.cta__steps {
  display: inline-block;
  margin: 0 auto 1rem;
  padding-left: 1.4em;
  text-align: left;
  color: #cfd8e8;
}
.cta__steps li { margin: .3rem 0; }

.author-box .block__inner { padding-top: 18px; padding-bottom: 18px; }
.author-box p { margin: 0; font-size: .92rem; color: var(--text-muted); }

/* ---------- Coordonnées de l’agence (page Le Havre) ---------- */

.local-card__grid {
  display: grid;
  gap: 24px 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-bottom: 1.4rem;
}
.local-card__info { margin: 0; }
.local-card__info dt,
.local-card__subtitle {
  margin: 0 0 .3rem;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.local-card__info dd { margin: 0 0 1.1rem; }
.local-card__hours { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.local-card__hours th,
.local-card__hours td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; }
.local-card__hours th { font-weight: 500; padding-right: 16px; }
.local-card__hours td { text-align: right; color: #cfd8e8; }

/* ---------- Formulaire ---------- */

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--text-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(5,7,13,.75);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #fb7185; }
.field .error { color: #fda4af; font-size: .9rem; }
.form .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.alert--success { background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .5); }
.alert--error { background: rgba(251, 113, 133, .12); border: 1px solid rgba(251, 113, 133, .5); }
.form-legal { font-size: .85rem; color: var(--text-muted); }

/* ---------- Pied de page ---------- */

.site-footer {
  margin-top: clamp(40px, 8vh, 96px);
  background: rgba(3, 5, 10, .92);
  border-top: 1px solid var(--line);
  font-size: .93rem;
}
.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 48px var(--gutter) 28px;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.site-footer h2 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #c7d0df; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__bottom {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 18px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

/* ---------- Consentement à la mesure d'audience ---------- */

.consent {
  position: fixed;
  left: var(--gutter);
  bottom: 16px;
  z-index: 50;
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  padding: 18px 20px;
  background: rgba(9, 14, 26, .97);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .75);
  font-size: .88rem;
  line-height: 1.55;
  color: #cfd8e8;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}
.consent.is-visible { opacity: 1; transform: none; }
.consent__title { margin: 0 0 .4rem; font-size: 1rem; color: var(--text); }
.consent p { margin: 0 0 14px; }
.consent__actions { display: flex; gap: 10px; }
/* Refuser et accepter ont exactement le même poids visuel (exigence CNIL). */
.consent__btn {
  flex: 1;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: rgba(122, 162, 255, .1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.consent__btn:hover { background: rgba(122, 162, 255, .2); border-color: var(--accent); }

.site-footer__consent {
  padding: 0;
  font: inherit;
  color: #c7d0df;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-footer__consent:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Bouton de chat (charge tawk.to au clic) ---------- */

.chat-launcher {
  position: fixed;
  right: var(--gutter);
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: #06121a;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 32px -8px color-mix(in srgb, var(--accent) 60%, transparent), 0 4px 12px rgba(0, 0, 0, .4);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.chat-launcher svg { width: 22px; height: 22px; flex: none; }
.chat-launcher:hover { background: #fff; transform: translateY(-2px); }
.chat-launcher[aria-busy="true"] { cursor: progress; }
.chat-launcher[aria-busy="true"] svg { animation: chat-wait 1s ease-in-out infinite alternate; }
@keyframes chat-wait { to { opacity: .35; } }
@media (prefers-reduced-motion: no-preference) {
  .chat-launcher:not([hidden]) { animation: chat-in .5s 1.2s ease-out both; }
}
@keyframes chat-in { from { opacity: 0; transform: translateY(16px) scale(.9); } }
@media (max-width: 600px) {
  .chat-launcher { padding: 14px; }
  .chat-launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* Le bandeau de consentement occupe le bas de l'écran : le chat attend sa fermeture. */
  .consent.is-visible ~ .chat-launcher { display: none; }
}

/* ---------- Transitions entre pages (accompagnent la navigation, ne la bloquent pas) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: .22s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  #webgl, .topbar, .site-header, .site-footer, .nav-toggle, .consent, .chat-launcher { display: none !important; }
  body { background: #fff; color: #000; }
  .block__inner { border: 0; background: none; }
}
