/* ==========================================================================
   X-I : design system « nuit »
   Grammaire visuelle : dessin d'ingénieur (hairlines, cotes, marques
   d'angle, hachures), indigo profond, porcelaine, champagne.
   Typographies : Maven Pro (display), Inter (texte), Space Mono (cotes).
   ========================================================================== */

:root {
  --brand-indigo: #160c5c;
  --nuit: #08071a;
  --nuit-2: #0c0b26;
  --panneau: rgba(9, 8, 28, 0.72);
  --panneau-plein: #0c0b26;
  --porcelaine: #edeae4;
  --porcelaine-dim: rgba(237, 234, 228, 0.62);
  --porcelaine-faible: rgba(237, 234, 228, 0.38);
  --champagne: #cfb87e;
  --champagne-dim: rgba(207, 184, 126, 0.55);
  --ligne: rgba(237, 234, 228, 0.16);
  --ligne-faible: rgba(237, 234, 228, 0.08);
  --radius: 0;
  --radius-sm: 0;
  --font-display: "Maven Pro", "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "Cascadia Code", monospace;
  /* Coche centree pour les listes ; trait champagne. */
  --tick-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.4 5.3 4.3 7.2 7.8 3.2' fill='none' stroke='%23cfb87e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
[id] { scroll-margin-top: 92px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  background:
    radial-gradient(1100px 700px at 72% -12%, rgba(22, 18, 66, 0.85) 0%, transparent 62%),
    radial-gradient(900px 600px at -10% 108%, rgba(18, 14, 54, 0.7) 0%, transparent 58%),
    var(--nuit);
  background-attachment: fixed;
  color: var(--porcelaine);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--champagne); color: var(--nuit); }

a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 1.5px solid var(--champagne);
  outline-offset: 3px;
  border-radius: 0;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 760px) { .wrap { padding: 0 40px; } }

/* Matiere (canvas d'accueil) et voile : sous le contenu, au-dessus du fond. */
#matiere { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.voile {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 8%, transparent 50%, rgba(8, 7, 26, 0.6) 100%);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 7, 26, 0.94);
  border-bottom: 1px solid var(--ligne);
  transition: background 0.25s ease;
}
header.site.scrolled { background: rgba(8, 7, 26, 0.98); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 72px; }

.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--porcelaine);
}
.brand .mark { display: block; color: var(--porcelaine); }
.brand .mark svg { width: 26px; height: 26px; display: block; }
.brand .word {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.brand .word em { font-style: normal; color: var(--porcelaine); }

.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a:not(.btn):not(.lang-switch) {
  position: relative;
  color: var(--porcelaine-dim); text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):not(.lang-switch)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--champagne);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.18s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { transform: scaleX(1); }
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--porcelaine); }

@media (min-width: 1100px) { .nav-links { display: flex; } }

/* Burger + rideau (menu mobile) */
.burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px 4px;
}
.burger span { display: block; width: 22px; height: 1.5px; background: var(--porcelaine); }
@media (min-width: 1100px) { .burger { display: none; } }

.rideau {
  position: fixed; inset: 0; z-index: 40;
  background: var(--nuit);
  display: grid; align-content: center; gap: 6px;
  padding: 80px 28px;
  transform: translateY(-102%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  overflow-y: auto;
}
.rideau.ouvert { transform: none; }
.rideau a {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(24px, 6.4vw, 38px); line-height: 1.3; letter-spacing: -0.01em;
  color: var(--porcelaine); text-decoration: none;
  border-bottom: 1px solid var(--ligne); padding: 7px 0;
}
.rideau a.rideau-contact { color: var(--champagne); }
.rideau .rideau-meta {
  padding-top: 22px; display: flex; gap: 18px; flex-wrap: wrap;
  color: var(--porcelaine-dim);
  font-family: var(--font-mono); font-size: 0.69rem;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.rideau .rideau-meta a {
  display: inline; border: 0; padding: 0;
  font-family: inherit; font-size: inherit; font-weight: 400;
  letter-spacing: inherit; color: var(--champagne);
}
.rideau .fermer {
  position: absolute; top: 16px; right: 22px;
  background: none; border: 0; cursor: pointer;
  color: var(--porcelaine); font-size: 26px; line-height: 1;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--champagne);
  border-radius: 0; text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.69rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  line-height: 1.2;
  color: var(--champagne);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn:hover { background: var(--champagne); color: var(--nuit); }

.btn-primary { background: var(--champagne); color: var(--nuit) !important; }
.btn-primary:hover { background: var(--porcelaine); border-color: var(--porcelaine); }

.btn-ghost { border-color: var(--ligne); color: var(--porcelaine-dim); }
.btn-ghost:hover { background: transparent; border-color: var(--porcelaine); color: var(--porcelaine); }

.btn-light { background: var(--champagne); border-color: var(--champagne); color: var(--nuit) !important; }
.btn-light:hover { background: var(--porcelaine); border-color: var(--porcelaine); }

.nav-links .btn { padding: 9px 16px; }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--ligne);
  background: transparent;
  color: var(--porcelaine) !important;
  font-family: var(--font-mono);
  font-size: 0.66rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-switch:hover { border-color: var(--champagne); color: var(--champagne) !important; }
.lang-switch::after { display: none !important; }

/* --------------------------------------------------------------------------
   Kicker + titres
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.69rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--champagne);
}
.kicker::before {
  content: ""; width: 26px; height: 1px;
  background: var(--champagne);
}

h1, h2, h3 { font-weight: 600; }
.display {
  font-family: var(--font-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Hero (accueil)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 120px 0 84px;
  overflow: hidden;
}
.hero-mark {
  position: absolute; top: 30px; right: -6%;
  width: min(46vw, 560px);
  color: var(--porcelaine);
  opacity: 0.045;
  pointer-events: none;
}
.hero-mark svg { display: block; width: 100%; height: auto; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.25rem, 7.4vw, 6.4rem);
  line-height: 0.98; letter-spacing: -0.02em;
  max-width: 11em;
  margin-top: 26px;
  text-shadow: 0 2px 44px rgba(8, 7, 26, 0.65);
}
.hero .lede {
  margin-top: 28px; max-width: 34em;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--porcelaine-dim);
}
.hero .lede b, .hero .lede strong { color: var(--porcelaine); font-weight: 500; }
.actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 64px;
  display: grid; gap: 0;
  border-top: 1px solid var(--ligne);
}
.hero-meta > div { padding: 20px 0; border-bottom: 1px solid var(--ligne); }
.hero-meta h3 {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em;
}
.hero-meta p { margin-top: 5px; font-size: 0.88rem; color: var(--porcelaine-dim); max-width: 38em; }
@media (min-width: 900px) {
  .hero-meta { grid-template-columns: 1fr 1fr 1fr; gap: 44px; border-bottom: 1px solid var(--ligne); }
  .hero-meta > div { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Page hero (pages internes) : table a dessin
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: 92px;
  padding-bottom: 34px;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--ligne-faible) 1px, transparent 1px),
    linear-gradient(90deg, var(--ligne-faible) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 85% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(75% 85% at 50% 0%, #000 20%, transparent 100%);
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  line-height: 1.02; letter-spacing: -0.015em;
  margin-top: 20px;
}
.page-hero .lede {
  margin-top: 20px; max-width: 40em;
  font-size: clamp(0.98rem, 1.9vw, 1.12rem);
  color: var(--porcelaine-dim);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section { padding: 80px 0; }
.band { background: transparent; border-top: 0; border-bottom: 0; }

.section-head { margin-bottom: 44px; }
.section-head .kicker { width: 100%; }
.section-head .kicker::after {
  content: ""; flex: 1; height: 1px;
  background: var(--ligne);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.55rem, 4.4vw, 3rem);
  line-height: 1.02; letter-spacing: -0.015em;
  margin-top: 18px;
}
.section-head .lede {
  margin-top: 16px; max-width: 40em;
  font-size: clamp(0.95rem, 1.9vw, 1.1rem);
  color: var(--porcelaine-dim);
}

/* --------------------------------------------------------------------------
   Cartes : mosaique a joints hairline, marques d'angle de plan
   -------------------------------------------------------------------------- */
.grid {
  display: grid; gap: 1px;
  background: var(--ligne);
  border: 1px solid var(--ligne);
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  background: var(--panneau-plein);
  border: 0;
  border-radius: 0;
  padding: 28px 26px 24px;
  box-shadow: none;
  display: flex; flex-direction: column;
  transition: background 0.3s ease;
}
.card:hover { transform: none; box-shadow: none; background: #100e30; }

/* marques d'angle : les reperes du plan */
.card::before, .card::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  opacity: 0; transition: opacity 0.3s ease;
  background: none; transform: none;
}
.card::before { top: 6px; left: 6px; border-top: 1.5px solid var(--champagne); border-left: 1.5px solid var(--champagne); }
.card::after { bottom: 6px; right: 6px; border-bottom: 1.5px solid var(--champagne); border-right: 1.5px solid var(--champagne); height: 14px; }
.card:hover::before, .card:hover::after { opacity: 1; }

.icon-tile {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 0;
  background: transparent;
  color: var(--champagne);
  margin-bottom: 18px;
}
.icon-tile svg { width: 24px; height: 24px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.card p { font-size: 0.9rem; color: var(--porcelaine-dim); flex: 1; }
.card .more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--champagne); text-decoration: none;
}
.card .more svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.card:hover .more svg, .card .more:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   Service detail (page services)
   -------------------------------------------------------------------------- */
.service-detail {
  background: var(--panneau);
  border: 1px solid var(--ligne);
  border-radius: 0;
  box-shadow: none;
  padding: 44px 40px;
  margin-bottom: 22px;
  display: grid; gap: 36px;
  grid-template-columns: minmax(230px, 1fr) 1.65fr;
}
.service-detail h2 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0;
}
.service-detail .desc { margin-top: 14px; font-size: 0.95rem; color: var(--porcelaine-dim); }
.service-detail ul { list-style: none; display: grid; gap: 13px; align-content: start; }
.service-detail li {
  position: relative; padding-left: 30px;
  font-size: 0.95rem; color: var(--porcelaine-dim);
}
.service-detail li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px;
  border: 1px solid var(--ligne);
  background: var(--tick-check) center / 10px 10px no-repeat;
}
.service-detail li strong { color: var(--porcelaine); font-weight: 600; }

/* --------------------------------------------------------------------------
   Bande sombre (methode) : hachures d'ingenieur
   -------------------------------------------------------------------------- */
.dark-band {
  position: relative;
  background: var(--panneau);
  border: 1px solid var(--ligne);
  border-radius: 0;
  overflow: hidden;
}
.dark-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(237, 234, 228, 0.05) 10px 11px);
}
.dark-band-inner { position: relative; padding: 62px 52px; }
.dark-band .kicker { color: var(--champagne); }
.dark-band .kicker::before { background: var(--champagne); }
.dark-band h2 { color: var(--porcelaine); }
.dark-band .lede { color: var(--porcelaine-dim); }

.steps {
  display: grid; gap: 30px; margin-top: 44px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--champagne);
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  color: var(--porcelaine); font-size: 1.04rem; font-weight: 700;
  margin: 12px 0 7px;
}
.step p { color: var(--porcelaine-dim); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Split + facts
   -------------------------------------------------------------------------- */
.split {
  display: grid; gap: 48px;
  grid-template-columns: minmax(290px, 1.1fr) minmax(290px, 1fr);
  align-items: center;
}
.split h2 {
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.04; letter-spacing: -0.015em;
  margin-top: 14px;
}
.split .lede { margin-top: 16px; color: var(--porcelaine-dim); }

.facts { display: grid; gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
.fact {
  background: var(--panneau-plein);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 22px 26px;
  display: flex; gap: 18px; align-items: flex-start;
}
.fact .icon-tile { width: 26px; height: 26px; margin: 3px 0 0; flex: none; }
.fact .icon-tile svg { width: 20px; height: 20px; }
.fact h3 { font-family: var(--font-display); font-size: 0.97rem; font-weight: 700; }
.fact p { margin-top: 4px; font-size: 0.88rem; color: var(--porcelaine-dim); }

/* --------------------------------------------------------------------------
   Expertises (listes de technologies)
   -------------------------------------------------------------------------- */
.stack-group {
  background: var(--panneau);
  border: 1px solid var(--ligne);
  border-radius: 0;
  box-shadow: none;
  padding: 32px 30px;
}
.stack-group h3 { font-family: var(--font-display); font-size: 1.04rem; font-weight: 700; margin-bottom: 6px; }
.stack-group > p { font-size: 0.9rem; color: var(--porcelaine-dim); margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px;
  background: rgba(8, 7, 26, 0.4);
  border: 1px solid var(--ligne);
  border-radius: 0;
  font-size: 0.83rem; font-weight: 400;
  color: var(--porcelaine);
  white-space: nowrap;
}
.tag img { width: 15px; height: 15px; flex: none; filter: brightness(0) invert(0.92); opacity: 0.85; }

/* --------------------------------------------------------------------------
   Prose + principes
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  letter-spacing: 0;
  margin: 44px 0 14px;
}
.prose p { margin-top: 12px; color: var(--porcelaine-dim); }
.prose strong { color: var(--porcelaine); }
.prose a { color: var(--champagne); }

.principles { display: grid; gap: 1px; margin-top: 8px; background: var(--ligne); border: 1px solid var(--ligne); }
.principle {
  background: var(--panneau-plein);
  border: 0;
  border-left: 2px solid var(--champagne);
  border-radius: 0;
  padding: 24px 28px;
}
.principle h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.principle p { margin-top: 6px; font-size: 0.92rem; color: var(--porcelaine-dim); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { max-width: 780px; }
.faq-list details {
  background: var(--panneau);
  border: 1px solid var(--ligne);
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.18s ease;
}
.faq-list details:hover { border-color: var(--champagne-dim); box-shadow: none; }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 26px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.99rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem; color: var(--champagne);
  transition: transform 0.18s ease;
  flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 26px 22px;
  font-size: 0.93rem; color: var(--porcelaine-dim);
}

/* --------------------------------------------------------------------------
   Bande d'appel (CTA)
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--panneau);
  border: 1px solid var(--ligne);
  border-radius: 0;
  padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  letter-spacing: -0.015em;
  color: var(--porcelaine);
  max-width: 24ch;
}
.cta-band p { margin-top: 10px; color: var(--porcelaine-dim); max-width: 40em; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid; gap: 1px;
  background: var(--ligne); border: 1px solid var(--ligne);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.contact-card {
  background: var(--panneau-plein);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 30px 28px;
}
.contact-card h3 {
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--champagne); margin: 16px 0 8px;
}
.contact-card p { font-size: 0.89rem; color: var(--porcelaine-dim); }
.contact-value {
  display: block; margin-top: 10px;
  font-size: 0.98rem; font-weight: 500;
  color: var(--porcelaine); text-decoration: none;
}
a.contact-value:hover { color: var(--champagne); }
.note {
  font-size: 0.9rem; color: var(--porcelaine-dim); max-width: 72ch;
  background: var(--panneau);
  border: 1px solid var(--ligne);
  border-left: 2px solid var(--champagne);
  border-radius: 0;
  padding: 18px 24px;
}
.note a { color: var(--champagne); text-decoration: none; }
.note a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Pages legales
   -------------------------------------------------------------------------- */
.legal { padding: 76px 0 100px; }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.015em;
  margin-top: 18px;
}
.legal .updated { margin-top: 10px; font-size: 0.85rem; color: var(--porcelaine-faible); }
.legal article { max-width: 72ch; margin-top: 38px; }
.legal h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--porcelaine-dim); font-size: 0.96rem; }
.legal ul { padding-left: 22px; margin-top: 8px; }
.legal a { color: var(--champagne); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
footer.site {
  position: relative; overflow: hidden;
  background: transparent;
  border-top: 1px solid var(--ligne);
  color: var(--porcelaine-dim);
  padding: 0;
  font-size: 0.9rem;
  margin-top: 60px;
}
footer.site .sceau {
  position: absolute; right: -60px; top: -40px;
  width: 340px; height: 340px;
  color: var(--porcelaine); opacity: 0.04;
  pointer-events: none;
}
.footer-cols {
  position: relative;
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 54px 0 40px;
  border-bottom: 1px solid var(--ligne);
}
.footer-cols .brand { color: var(--porcelaine); margin-bottom: 14px; }
.footer-cols .brand .mark { color: var(--porcelaine); }
.footer-cols .brand .mark svg { width: 22px; height: 22px; }
.footer-cols .brand .word { font-size: 0.95rem; }
.footer-cols .brand .word em { color: var(--porcelaine); }
.footer-cols > div > p { max-width: 38em; font-size: 0.86rem; color: var(--porcelaine-dim); }
.footer-cols h3 {
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--champagne); margin-bottom: 14px;
}
.footer-cols ul { list-style: none; display: grid; gap: 8px; }
.footer-cols a { color: var(--porcelaine-dim); text-decoration: none; transition: color 0.2s ease; }
.footer-cols a:hover { color: var(--porcelaine); }
.footer-base {
  position: relative;
  padding: 22px 0 30px;
  display: grid; gap: 7px;
  font-size: 0.78rem; color: var(--porcelaine-faible);
}
.footer-base a { color: var(--porcelaine-dim); text-decoration: none; }
.footer-base a:hover { color: var(--porcelaine); }

/* --------------------------------------------------------------------------
   Etapes de la methode (page methode)
   -------------------------------------------------------------------------- */
.method-steps { display: grid; gap: 1px; max-width: 940px; background: var(--ligne); border: 1px solid var(--ligne); }
.method-step {
  background: var(--panneau-plein);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 40px 42px;
  display: grid; gap: 34px;
  grid-template-columns: 190px 1fr;
  transition: background 0.3s ease;
}
.method-step:hover { transform: none; box-shadow: none; background: #100e30; }
.method-step-head .step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--champagne); line-height: 1;
}
.method-step-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  margin-top: 12px;
}
.method-step-body p { color: var(--porcelaine-dim); font-size: 0.95rem; }
.method-step-body ul { list-style: none; margin-top: 18px; display: grid; gap: 11px; }
.method-step-body li {
  position: relative; padding-left: 30px;
  font-size: 0.93rem; color: var(--porcelaine-dim);
}
.method-step-body li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px;
  border: 1px solid var(--ligne);
  background: var(--tick-check) center / 10px 10px no-repeat;
}

/* --------------------------------------------------------------------------
   Apparitions
   -------------------------------------------------------------------------- */
.hero-copy > * { animation: rise 0.9s cubic-bezier(0.19, 1, 0.22, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.07s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.13s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.19s; }
.hero-meta { animation: rise 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.34s both; }
.page-hero > * { animation: rise 0.7s cubic-bezier(0.19, 1, 0.22, 1) both; }
.page-hero > *:nth-child(2) { animation-delay: 0.07s; }
.page-hero > *:nth-child(3) { animation-delay: 0.13s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Bande de defilement (marquee)
   -------------------------------------------------------------------------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Bande expertise : deux panneaux vivants
   -------------------------------------------------------------------------- */
.moat { border-top: 0; }
.moat-grid {
  display: grid; gap: 26px; margin-top: 38px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 980px) { .moat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.moat-panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0;
  padding: 0;
  min-width: 0; max-width: 100%;
  background: var(--panneau);
  border: 1px solid var(--ligne);
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease;
}
.moat-panel:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--champagne-dim);
}
.moat-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
              rgba(207, 184, 126, 0.06), transparent 70%);
  opacity: 0; transition: opacity 0.25s ease;
}
.moat-panel:hover::after { opacity: 1; }
.moat-head { padding: 24px 24px 8px; }
.moat-head h3 { font-family: var(--font-display); font-size: 1.16rem; font-weight: 700; color: var(--porcelaine); }
.moat-head p { margin-top: 6px; font-size: 0.88rem; color: var(--porcelaine-dim); max-width: 40em; }
.moat-rows { display: grid; gap: 0; padding: 10px 0 0; }
.moat-row-label {
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--porcelaine-dim);
  padding: 10px 24px 8px;
  margin-top: 0;
}
.moat-row {
  overflow: hidden;
  min-width: 0; max-width: 100%;
  contain: paint;
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.moat-row + .moat-row-label { padding-top: 16px; }
.moat-track {
  display: flex; align-items: center; gap: 10px;
  width: max-content;
  padding: 10px;
  animation: marquee 44s linear infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.moat-track.reverse { animation-direction: reverse; }
.moat-panel:hover .moat-track { animation-play-state: paused; }
.moat-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--ligne);
  border-radius: 0;
  background: rgba(8, 7, 26, 0.4);
  font-size: 0.81rem; font-weight: 400; color: var(--porcelaine);
  white-space: nowrap;
}
.moat-chip img { width: 15px; height: 15px; flex: none; }
.moat-panel:first-child .moat-chip img { filter: brightness(0) invert(0.92); opacity: 0.85; }
.moat-chip .mc-flag { border-radius: 50%; object-fit: cover; filter: none !important; opacity: 1 !important; }
.mc-globe {
  width: 15px; height: 15px; flex: none;
  display: grid; place-items: center;
  border-radius: 0;
  background: transparent; color: var(--porcelaine-dim);
}
.mc-globe svg { width: 15px; height: 15px; }
.moat-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: auto;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--ligne);
}
.moat-rows + .moat-foot { border-top: 0; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.moat-count {
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--porcelaine-dim);
}
.moat-foot .more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--champagne);
  white-space: nowrap;
}
.moat-foot .more svg { width: 13px; height: 13px; flex: none; transition: transform 0.25s ease; }
.moat-panel:hover .moat-foot .more svg { transform: translateX(5px); }

.hero-sample { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-sample .moat-chip { background: rgba(8, 7, 26, 0.4); }
.hero-sample .moat-chip img { filter: brightness(0) invert(0.92); opacity: 0.85; }
.hero-sample a.moat-chip {
  color: var(--champagne);
  border-color: var(--champagne-dim);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.hero-sample a.moat-chip:hover { background: var(--champagne); color: var(--nuit); border-color: var(--champagne); }

/* --------------------------------------------------------------------------
   Images : cadres de planche, duotone nuit
   -------------------------------------------------------------------------- */
.media-frame {
  position: relative;
  border: 1px solid var(--ligne);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: var(--panneau);
  padding: 10px;
}
.media-frame img {
  display: block; width: 100%; height: auto;
  filter: grayscale(1) brightness(0.72) contrast(1.06);
}
.media-frame::after {
  content: ""; position: absolute; inset: 10px;
  background: linear-gradient(160deg, rgba(22, 12, 92, 0.38), rgba(8, 7, 26, 0.12) 55%, rgba(207, 184, 126, 0.10));
  pointer-events: none;
}

/* Gravure nocturne : les planches gravées sur papier clair sont inversées
   (traits porcelaine sur fond nuit), même langage que les planches D3. */
.media-frame.nocturne img {
  filter: grayscale(1) invert(0.92) brightness(0.94) contrast(1.12);
}
.media-frame.nocturne::after {
  background: linear-gradient(160deg, rgba(22, 12, 92, 0.30), rgba(8, 7, 26, 0.05) 55%, rgba(207, 184, 126, 0.08));
}

.media-banner { padding: 0 0 76px; }
.media-banner .media-frame img { aspect-ratio: 21 / 9; object-fit: cover; }
.media-caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--porcelaine-faible);
  text-align: center;
}

.split-visual { align-self: center; }

/* Cadre de planche (dessins D3) */
.plan-cadre {
  border: 1px solid var(--ligne);
  background: var(--panneau);
  padding: 10px;
}
.plan-cadre svg { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Page conformite
   -------------------------------------------------------------------------- */
.page-hero-grid {
  display: grid; gap: 56px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding-bottom: 66px;
}
.page-hero-grid .page-hero { padding-bottom: 0; }
.page-hero-grid .media-frame,
.page-hero-grid .plan-cadre { animation: rise 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.2s both; }

.chain {
  display: grid; gap: 1px; margin-top: 46px;
  background: var(--ligne); border: 1px solid var(--ligne);
  grid-template-columns: repeat(4, 1fr);
}
.chain-step {
  position: relative;
  background: var(--panneau-plein);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 30px 26px;
  transition: background 0.3s ease;
}
.chain-step:hover { transform: none; box-shadow: none; background: #100e30; }
.chain-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--champagne); line-height: 1;
}
.chain-step h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; margin: 14px 0 8px; }
.chain-step p { font-size: 0.89rem; color: var(--porcelaine-dim); }
.chain-step:not(:last-child)::after { display: none; }

.catalog { border-top: 1px solid var(--ligne); }
.catalog-group {
  display: grid; gap: 36px;
  grid-template-columns: 250px 1fr;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--ligne);
}
.catalog-head .icon-tile { width: 28px; height: 28px; margin-bottom: 14px; }
.catalog-head .icon-tile svg { width: 22px; height: 22px; }
.catalog-head h3 { font-family: var(--font-display); font-size: 1.04rem; font-weight: 700; }
.catalog-head p { margin-top: 6px; font-size: 0.86rem; color: var(--porcelaine-dim); max-width: 26ch; }

.seals {
  display: grid; gap: 26px 12px;
  grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
}
.seal { display: grid; justify-items: center; text-align: center; gap: 9px; }
.seal-disc {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8, 7, 26, 0.4);
  border: 1px solid var(--champagne-dim);
  box-shadow: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.seal-disc::before {
  content: ""; position: absolute; inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(237, 234, 228, 0.28);
}
.seal:hover .seal-disc {
  transform: none;
  box-shadow: none;
  border-color: var(--champagne);
  background: rgba(12, 10, 34, 0.75);
}
.seal:hover .seal-disc::before { border-color: rgba(207, 184, 126, 0.5); }
.seal-abbr {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.84rem; line-height: 1.08;
  color: var(--porcelaine);
  padding: 0 13px;
  overflow-wrap: break-word; max-width: 100%;
}
.seal-juris {
  position: absolute; bottom: -11px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--nuit-2); color: var(--champagne);
  border: 1px solid var(--ligne);
  box-shadow: none;
}
.seal-juris img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seal-juris svg { width: 13px; height: 13px; }
.seal-label {
  font-size: 0.72rem; color: var(--porcelaine-faible);
  line-height: 1.35; max-width: 15ch;
}

.ticks { list-style: none; display: grid; gap: 13px; }
.ticks li {
  position: relative; padding-left: 30px;
  font-size: 0.94rem; color: var(--porcelaine-dim);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px;
  border: 1px solid var(--ligne);
  background: var(--tick-check) center / 10px 10px no-repeat;
}
.ticks li strong { color: var(--porcelaine); font-weight: 600; }
.ticks-cols {
  display: grid; gap: 13px 44px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 860px) {
  .catalog-group { grid-template-columns: 1fr; gap: 22px; padding: 30px 0; }
  .service-detail { grid-template-columns: 1fr; padding: 32px 28px; gap: 24px; }
  .method-step { grid-template-columns: 1fr; padding: 30px 28px; gap: 20px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .dark-band-inner { padding: 44px 26px; }
  .cta-band { padding: 42px 28px; }
  section { padding: 56px 0; }
  .hero { padding: 96px 0 60px; }
  .hero-mark { width: 60vw; right: -18%; opacity: 0.035; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-meta, .page-hero > *,
  .page-hero-grid .media-frame, .page-hero-grid .plan-cadre,
  .moat-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* ---- Fenetre de suggestion de region (NAM <-> EU) ---- */

.region-veil {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(8, 7, 26, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.region-modal {
  max-width: 480px;
  background: var(--nuit-2);
  border: 1px solid var(--ligne);
  border-radius: 0;
  padding: 36px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: region-in 0.28s ease-out;
}

.region-modal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  color: var(--porcelaine);
  margin: 12px 0 12px;
}

.region-modal p {
  color: var(--porcelaine-dim);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.region-modal .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

@keyframes region-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .region-modal { animation: none; }
}
