:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(8, 25, 52, 0.12);
  --text: #081933;
  --muted: #5f6f85;
  --navy: #071a33;
  --navy-2: #0f2f56;
  --gold: #b08d57;
  --gold-soft: rgba(176, 141, 87, 0.14);
  --shadow: 0 24px 80px rgba(7, 26, 51, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes page-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes ambient-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(16px, -10px, 0) scale(1.04);
  }
}

@keyframes accent-sweep {
  0% {
    transform: translateX(-130%) rotate(16deg);
  }
  45%,
  100% {
    transform: translateX(180%) rotate(16deg);
  }
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(176, 141, 87, 0.16), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(7, 26, 51, 0.08), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #f8fafc 100%);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* Android Chrome rendu de police */
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Défilement fluide iOS et Android */
  -webkit-overflow-scrolling: touch;
  /* Empêcher le pull-to-refresh Chrome Android sur tout le body */
  overscroll-behavior-y: contain;
}

.ambient-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.54;
  background:
    radial-gradient(circle at 12% 20%, rgba(176, 141, 87, 0.07), transparent 24%),
    radial-gradient(circle at 84% 70%, rgba(15, 47, 86, 0.08), transparent 28%);
}

.ambient-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 36%, rgba(255, 255, 255, 0.08));
}

#ambient-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

body {
  animation: page-enter 0.9s ease both;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(176, 141, 87, 0.26);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
  z-index: 50;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  margin-top: 0.5rem;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: padding 0.35s ease, transform 0.35s ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  background: rgba(244, 247, 251, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(7, 26, 51, 0.06);
  z-index: -1;
  transition: box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.header.is-scrolled {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.header.is-scrolled::before {
  background: rgba(244, 247, 251, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 38px rgba(7, 26, 51, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  color: var(--navy);
}

.wordmark__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.wordmark__primary {
  font-weight: 700;
}

.wordmark__secondary {
  font-weight: 500;
  color: #46627f;
}

.wordmark__legal {
  margin-top: 0.32rem;
  padding-left: 0.05em;
  color: var(--gold);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--navy);
}

.nav__cta {
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(7, 26, 51, 0.16);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.language-switcher__button {
  min-width: 2.15rem;
  padding: 0.45rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.language-switcher__button:hover,
.language-switcher__button:focus-visible {
  color: var(--navy);
  border-color: var(--line);
}

.language-switcher__button.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy);
  padding: 0.75rem 1rem;
  border-radius: 999px;
}

.nav-toggle__icon {
  width: 1rem;
  height: 0.1rem;
  background: currentColor;
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1rem;
  height: 0.1rem;
  background: currentColor;
}

.nav-toggle__icon::before {
  top: -0.32rem;
}

.nav-toggle__icon::after {
  top: 0.32rem;
}

.section {
  padding: 5rem 0;
}

.section--hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: center;
  /* Fallback progressif pour le bug 100vh Chrome Android (barre d'adresse) :
     1. 100vh  → navigateurs anciens
     2. 100dvh → CSS moderne (Chrome 108+, Firefox 101+, Safari 15.4+)
     3. calc(var(--dvh, 1vh) * 100) → JS polyfill pour Chrome Android plus ancien */
  min-height: calc(100vh - 7rem);
  min-height: calc(100dvh - 7rem);
  min-height: calc(var(--dvh, 1vh) * 100 - 7rem);
  padding-top: 3rem;
  position: relative;
  isolation: isolate;
}

.section--hero::before,
.section--hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.section--hero::before {
  width: 20rem;
  height: 20rem;
  top: 3rem;
  left: -8rem;
  background: rgba(176, 141, 87, 0.1);
  animation: ambient-drift 13s ease-in-out infinite;
}

.section--hero::after {
  width: 16rem;
  height: 16rem;
  right: -5rem;
  bottom: 1rem;
  background: rgba(15, 47, 86, 0.08);
  animation: ambient-drift 16s ease-in-out -4s infinite reverse;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 800;
}

h1,
h2,
h3,
.glass-card__value {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.9rem);
  letter-spacing: -0.06em;
  max-width: 11ch;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  max-width: 14ch;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero__lede,
.section__heading p,
.quote-card p,
.partners-card__lead,
.section__note,
.teaser-card p,
.compliance-card p {
  font-size: 1.03rem;
  max-width: 65ch;
}

.hero__copy {
  padding: 0.5rem 0;
}

.hero__copy.is-visible > *,
.hero__panel.is-visible > * {
  animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__copy.is-visible > :nth-child(1) {
  animation-delay: 80ms;
}

.hero__copy.is-visible > :nth-child(2) {
  animation-delay: 160ms;
}

.hero__copy.is-visible > :nth-child(3) {
  animation-delay: 240ms;
}

.hero__copy.is-visible > :nth-child(4) {
  animation-delay: 320ms;
}

.hero__copy.is-visible > :nth-child(5) {
  animation-delay: 400ms;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(145deg, var(--navy) 0%, #102f59 100%);
  color: #fff;
  box-shadow: 0 18px 30px rgba(7, 26, 51, 0.16);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--navy);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__badges li,
.chip,
.partners-card__list span,
.timeline__phase,
.label,
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--navy);
  font-weight: 700;
}

.hero__badges li,
.chip,
.partners-card__list span {
  padding: 0.7rem 0.95rem;
  font-size: 0.92rem;
}

.hero__panel {
  display: grid;
  gap: 1rem;
}

.hero__panel.is-visible {
  animation: panel-float 8s ease-in-out 1.3s infinite;
}

.hero__panel.is-visible .mini-card {
  animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__panel.is-visible .mini-card:nth-child(1) {
  animation-delay: 420ms;
}

.hero__panel.is-visible .mini-card:nth-child(2) {
  animation-delay: 500ms;
}

.hero__panel.is-visible .mini-card:nth-child(3) {
  animation-delay: 580ms;
}

.glass-card,
.quote-card,
.product-card,
.pill-card,
.tree-card,
.governance-card,
.compliance-card,
.partners-card,
.teaser-card,
.contact-form {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.glass-card {
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.glass-card--accent {
  background: linear-gradient(180deg, rgba(7, 26, 51, 0.98) 0%, rgba(15, 47, 86, 0.94) 100%);
  color: #fff;
}

.glass-card--accent::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -20%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: translateX(-130%) rotate(16deg);
  animation: accent-sweep 8s ease-in-out 2.4s infinite;
}

.glass-card__label,
.product-card__top span,
.status,
.label,
.timeline__phase {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.glass-card__label {
  color: rgba(255, 255, 255, 0.72);
}

.glass-card__value {
  margin-top: 0.8rem;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.glass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mini-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(7, 26, 51, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.mini-card:hover {
  transform: translateY(-5px);
  border-color: rgba(176, 141, 87, 0.3);
  box-shadow: 0 20px 38px rgba(7, 26, 51, 0.11);
}

.mini-card span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.mini-card strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
}

.section__heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1.4rem;
  align-items: start;
}

.quote-card,
.teaser-card {
  padding: 1.6rem;
  border-radius: var(--radius-xl);
}

.quote-card {
  display: grid;
  align-items: end;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at top right, rgba(176, 141, 87, 0.2), transparent 35%);
}

.quote-card p {
  font-size: 1.1rem;
  color: var(--text);
}

.pill-grid,
.product-grid,
.chip-grid {
  display: grid;
  gap: 1rem;
}

.pill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pill-card,
.product-card,
.partners-card,
.governance-card,
.compliance-card,
.tree-card {
  border-radius: var(--radius-xl);
}

.pill-card,
.product-card,
.teaser-card {
  padding: 1.4rem;
}

.pill-card,
.product-card,
.quote-card,
.tree-card,
.governance-card,
.compliance-card,
.partners-card,
.teaser-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.pill-card:hover,
.product-card:hover,
.quote-card:hover,
.tree-card:hover,
.governance-card:hover,
.compliance-card:hover,
.partners-card:hover,
.teaser-card:hover {
  transform: translateY(-5px);
  border-color: rgba(176, 141, 87, 0.28);
  box-shadow: 0 30px 70px rgba(7, 26, 51, 0.15);
}

.pill-card p,
.product-card p {
  margin-top: 0.55rem;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  min-height: 12rem;
}

.product-card--ghost {
  border-style: dashed;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(244, 247, 251, 0.8));
}

.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.status--dev {
  color: #0f5132;
  background: rgba(31, 147, 95, 0.12);
  border-color: rgba(31, 147, 95, 0.14);
}

.status--study {
  color: #6b4f00;
  background: rgba(176, 141, 87, 0.14);
  border-color: rgba(176, 141, 87, 0.16);
}

.status--neutral {
  color: var(--muted);
  background: rgba(95, 111, 133, 0.1);
}

/* Animated Pulse & Flow Keyframes */
@keyframes node-halo-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(176, 141, 87, 0.4), 0 20px 50px rgba(7, 26, 51, 0.2);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(176, 141, 87, 0), 0 25px 60px rgba(7, 26, 51, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(176, 141, 87, 0), 0 20px 50px rgba(7, 26, 51, 0.2);
  }
}

@keyframes pulse-dot-anim {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes flow-line-dash {
  0% {
    stroke-dashoffset: 24;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse-ring-expand {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.8;
  }
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 6px;
  animation: pulse-dot-anim 1.8s infinite ease-in-out;
}

/* =========================================
   Architecture Section Styles
   ========================================= */
.section--architecture {
  position: relative;
}

.arch-diagram {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2.5rem 0 1.5rem;
}

.arch-node--root {
  position: relative;
  width: min(100%, 460px);
  padding: 1.8rem 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--navy) 0%, #0f2f56 100%);
  color: #ffffff;
  text-align: center;
  border: 1px solid rgba(176, 141, 87, 0.35);
  box-shadow: 0 20px 50px rgba(7, 26, 51, 0.2);
  animation: node-halo-pulse 3.5s infinite ease-in-out;
  transition: transform 0.35s ease, border-color 0.35s ease;
  z-index: 3;
}

.arch-node--root:hover,
.arch-node--root.is-active {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(176, 141, 87, 0.6);
}

.arch-node__badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(176, 141, 87, 0.25);
}

.arch-node__title {
  margin: 0 0 0.3rem 0;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.arch-node__sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.arch-node__status {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
}

/* SVG Flow Canvas */
.arch-flow-wrapper {
  width: 100%;
  max-width: 960px;
  height: 90px;
  margin: -5px 0 -5px;
  position: relative;
  z-index: 2;
}

.arch-flow-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow-stem,
.flow-bus,
.flow-path {
  transition: stroke 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
}

.flow-path {
  animation: flow-line-dash 1.6s linear infinite;
}

.flow-path.is-active,
.flow-stem.is-active,
.flow-bus.is-active {
  stroke: url(#flowGradActive) !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 6px rgba(176, 141, 87, 0.8));
}

/* Children Grid */
.arch-children {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  width: 100%;
  position: relative;
  z-index: 3;
}

.arch-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.arch-card:hover,
.arch-card.is-active {
  transform: translateY(-8px);
  border-color: rgba(176, 141, 87, 0.4);
  box-shadow: 0 25px 50px rgba(7, 26, 51, 0.16), 0 0 20px rgba(176, 141, 87, 0.15);
}

.arch-card__top {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  align-items: flex-start;
}

.arch-card__type {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.arch-card h4 {
  margin: 0 0 0.4rem 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  color: var(--navy);
}

.arch-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.arch-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.arch-card__features span {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(7, 26, 51, 0.05);
  border: 1px solid rgba(7, 26, 51, 0.08);
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 600;
}

.section__note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 255, 255, 0.7);
}

.compliance-card,
.partners-card {
  padding: 1.5rem;
}

/* Governance Section */
.governance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.governance-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.governance-card--featured {
  background: linear-gradient(145deg, rgba(7, 26, 51, 0.96) 0%, rgba(15, 47, 86, 0.92) 100%);
  color: #ffffff;
  border-color: rgba(176, 141, 87, 0.3);
  position: relative;
  overflow: hidden;
}

.governance-card--featured::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.governance-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.governance-card__icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(176, 141, 87, 0.15);
  color: var(--gold);
  border: 1px solid rgba(176, 141, 87, 0.3);
}

.governance-card__name {
  font-size: 1.5rem;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.governance-card__title {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.governance-card__desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.governance-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.governance-card__tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 600;
}

.governance-card--structure .governance-card__header {
  margin-bottom: 1.2rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.governance-card--structure .governance-card__header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
}

.governance-roles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.governance-role-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.governance-role-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(176, 141, 87, 0.3);
}

.governance-role-item__info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
}

.governance-role-item__info span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.governance-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.governance-pillar {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 25px rgba(7, 26, 51, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.governance-pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 141, 87, 0.3);
}

.governance-pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.governance-pillar h4 {
  margin: 0 0 0.4rem 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  color: var(--navy);
}

.governance-pillar p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.label--gold {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: rgba(176, 141, 87, 0.25);
}

/* =========================================
   Technology Section Styles
   ========================================= */
.section--technology {
  position: relative;
}

.tech-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(7, 26, 51, 0.96) 0%, rgba(15, 47, 86, 0.92) 100%);
  color: #ffffff;
  border: 1px solid rgba(176, 141, 87, 0.3);
  box-shadow: 0 15px 40px rgba(7, 26, 51, 0.15);
}

.tech-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tech-metric strong {
  font-size: 0.92rem;
  color: #ffffff;
}

.tech-metric span:not(.pulse-dot) {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-bottom: 1.8rem;
}

.tech-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(176, 141, 87, 0.35);
  box-shadow: 0 25px 55px rgba(7, 26, 51, 0.14);
}

.tech-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.tech-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(176, 141, 87, 0.2);
}

.tech-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--navy);
}

.tech-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

.tech-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.tech-card__specs span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(7, 26, 51, 0.05);
  border: 1px solid rgba(7, 26, 51, 0.08);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
}

.compliance-card {
  display: grid;
  gap: 1rem;
}

/* =========================================
   Roadmap Section Styles
   ========================================= */
.section--roadmap {
  position: relative;
}

.roadmap-timeline {
  position: relative;
  margin: 2.5rem 0 1rem;
  padding-left: 3.2rem;
}

.roadmap-track {
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  bottom: 1rem;
  width: 4px;
  background: rgba(8, 25, 52, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.roadmap-progress-bar {
  width: 100%;
  height: 20%; /* Dynamically updated on scroll via JS */
  background: linear-gradient(180deg, var(--gold) 0%, var(--navy-2) 100%);
  border-radius: 999px;
  transition: height 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(176, 141, 87, 0.6);
}

.roadmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.roadmap-item {
  position: relative;
}

.roadmap-item__marker {
  position: absolute;
  left: -3.2rem;
  top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--navy);
  box-shadow: 0 8px 20px rgba(7, 26, 51, 0.12);
  z-index: 2;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.roadmap-item.is-active .roadmap-item__marker {
  border-color: var(--gold);
  background: var(--navy);
}

.roadmap-item__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
}

.roadmap-item.is-active .roadmap-item__num {
  color: #ffffff;
}

.roadmap-item__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}

.roadmap-item.is-active .roadmap-item__pulse {
  animation: pulse-ring-expand 2.5s infinite ease-in-out;
  opacity: 0.8;
}

.roadmap-item__content {
  padding: 1.5rem 1.8rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.roadmap-item:hover .roadmap-item__content {
  transform: translateX(6px);
  border-color: rgba(176, 141, 87, 0.35);
  box-shadow: 0 20px 45px rgba(7, 26, 51, 0.12);
}

.roadmap-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.roadmap-phase {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.roadmap-item h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.3rem;
  color: var(--navy);
}

.roadmap-item p {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.roadmap-item__checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-item__checklist li {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(176, 141, 87, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(176, 141, 87, 0.18);
}

.roadmap-item__checklist li::before {
  content: "✓";
  margin-right: 0.4rem;
  color: var(--gold);
  font-weight: 800;
}

.partners-card {
  display: grid;
  gap: 1rem;
}

.partners-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.partners-card__list span {
  background: rgba(255, 255, 255, 0.9);
}

.teaser-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--navy);
  font-weight: 800;
}

.section--contact {
  padding-bottom: 6rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(7, 26, 51, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(176, 141, 87, 0.75);
  box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.16);
}

.contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-form__footer p {
  max-width: 48ch;
}

.contact-form__status {
  min-height: 1.4em;
  color: var(--navy);
  font-weight: 700;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid rgba(7, 26, 51, 0.1);
}

.footer__brand p {
  margin-top: 0.2rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  color: var(--muted);
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--navy);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease var(--reveal-delay, 0ms), transform 0.7s ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.menu-open .nav {
  display: flex;
}

body.menu-open .nav-toggle__icon {
  background: transparent;
}

body.menu-open .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

body.menu-open .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.page-shell {
  padding: 4rem 0 6rem;
}

.page-card {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

@keyframes connector-draw {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.page-card__meta {
  margin-bottom: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 800;
}

.page-card__copy {
  margin-top: 1rem;
}

.page-card__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.page-card p + p {
  margin-top: 1rem;
}

@media (max-width: 1040px) {
  .section--hero,
  .section--split {
    grid-template-columns: 1fr;
  }

  .governance-grid {
    grid-template-columns: 1fr;
  }

  .governance-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .arch-children {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-metrics-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arch-flow-wrapper {
    display: none;
  }

  .arch-diagram {
    gap: 1.2rem;
  }

  .pill-grid,
  .chip-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .language-switcher {
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.6rem 0 0.4rem;
    /* Compatibilité safe-area pour les iPhone avec encoche */
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
  }

  .nav a {
    padding: 0.85rem 0.75rem;
    border-radius: var(--radius-md);
    transition: background 0.15s ease, color 0.15s ease;
  }

  .nav a:active {
    background: rgba(7, 26, 51, 0.06);
  }

  .section {
    padding: 4rem 0;
  }

  .hero__badges,
  .hero__actions,
  .footer,
  .footer__links,
  .contact-form__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form__row,
  .pill-grid,
  .chip-grid,
  .product-grid,
  .glass-grid,
  .arch-children,
  .tech-grid,
  .tech-metrics-bar,
  .governance-pillars {
    grid-template-columns: 1fr;
  }

  .roadmap-timeline {
    padding-left: 2.6rem;
  }

  .roadmap-track {
    left: 0.8rem;
  }

  .roadmap-item__marker {
    left: -2.6rem;
    width: 2rem;
    height: 2rem;
  }

  .roadmap-item__num {
    font-size: 0.75rem;
  }

  .footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(calc(100% - 1.2rem), var(--max));
  }

  .header::before {
    inset: 0 -0.6rem;
    border-radius: 24px;
  }

  .glass-card__value {
    font-size: 1.5rem;
  }

  .page-card,
  .contact-form,
  .governance-card,
  .compliance-card,
  .partners-card,
  .tree-card,
  .pill-card,
  .product-card,
  .teaser-card,
  .quote-card {
    padding: 1.15rem;
  }

  .governance-role-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .ambient-field {
    opacity: 0.34;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  body,
  .hero__panel.is-visible,
  .hero__copy.is-visible > *,
  .hero__panel.is-visible > *,
  .hero__panel.is-visible .mini-card,
  .glass-card--accent::after,
  .section--hero::before,
  .section--hero::after {
    animation: none !important;
  }

  .ambient-field {
    opacity: 0.22;
  }
}

/* ==========================================================================
   iOS / iPhone — Corrections UX & Responsive
   ========================================================================== */

/* ---- Safe-area : encoche, Dynamic Island et home bar ---- */
.site-shell {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* ---- Inputs : font-size min 16px pour éviter le zoom automatique iOS ---- */
.contact-form input,
.contact-form textarea,
.contact-form select {
  font-size: 16px; /* iOS Safari zoome automatiquement si < 16px */
}

/* ---- Touch targets : minimum 44×44pt recommandé par Apple HIG ---- */
.nav a,
.button,
.nav__cta,
.language-switcher__button,
.footer__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  min-height: 44px;
  cursor: pointer;
}

/* Supprimer le highlight bleu iOS sur tous les éléments interactifs */
a,
button,
[role="button"],
input,
textarea,
select,
.arch-card,
.mini-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ==========================================================================
   iPhone Pro Max / Plus — max-width: 430px
   ========================================================================== */
@media (max-width: 430px) {
  h1 {
    font-size: clamp(2.4rem, 9vw, 3rem);
    max-width: 100%;
  }

  h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    max-width: 100%;
  }

  .hero__panel {
    display: none;
  }

  .section--hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .button {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.2rem;
  }

  .hero__actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .arch-node--root {
    padding: 1.4rem 1.2rem;
    width: 100%;
  }

  .arch-node__title {
    font-size: 1.3rem;
  }

  .roadmap-item__content {
    padding: 1.2rem 1.1rem;
  }

  .roadmap-item__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .tech-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 0.85rem;
  }

  .contact-form {
    padding: 1.2rem;
  }

  .contact-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form__footer .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .roadmap-item__checklist {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ==========================================================================
   iPhone SE / mini — max-width: 375px
   ========================================================================== */
@media (max-width: 375px) {
  :root {
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
  }

  .site-shell {
    width: min(calc(100% - 0.8rem), var(--max));
  }

  h1 {
    font-size: 2.1rem;
    letter-spacing: -0.04em;
  }

  h2 {
    font-size: 1.6rem;
  }

  .wordmark__name {
    font-size: 0.95rem;
  }

  .wordmark__legal {
    font-size: 0.55rem;
  }

  .header::before {
    inset: 0 -0.4rem;
    border-radius: 18px;
  }

  .nav-toggle {
    padding: 0.65rem 0.8rem;
    font-size: 0.85rem;
  }

  .section {
    padding: 3rem 0;
  }

  .glass-card__value {
    font-size: 1.3rem;
  }

  .arch-card {
    padding: 1.2rem;
  }

  .arch-card h4 {
    font-size: 1.1rem;
  }

  .tech-card {
    padding: 1.2rem;
  }

  .tech-card h3 {
    font-size: 1.1rem;
  }

  .governance-card__name {
    font-size: 1.25rem;
  }

  .roadmap-item h3 {
    font-size: 1.1rem;
  }

  .partners-card,
  .compliance-card {
    padding: 1.2rem;
  }
}

/* ==========================================================================
   iPhone — Orientation paysage (landscape) 
   ========================================================================== */
@media (max-width: 896px) and (orientation: landscape) and (max-height: 430px) {
  .section--hero {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .hero__panel {
    display: grid;
  }

  h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }

  .section {
    padding: 2.5rem 0;
  }

  .glass-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-card:nth-child(3) {
    display: none;
  }
}

/* ==========================================================================
   iOS Safari — @supports (-webkit-touch-callout: none)
   Cibler uniquement les appareils iOS (iPhone, iPad)
   ========================================================================== */
@supports (-webkit-touch-callout: none) {
  /* Safe area top pour l'encoche / Dynamic Island */
  .header {
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
  }

  /* Safe area bottom pour la home bar iPhone X+ */
  .footer {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  /* Désactiver les animations :hover sur touch (sinon elles restent "bloquées") */
  @media (hover: none) {
    .mini-card:hover,
    .pill-card:hover,
    .product-card:hover,
    .quote-card:hover,
    .tree-card:hover,
    .governance-card:hover,
    .compliance-card:hover,
    .partners-card:hover,
    .teaser-card:hover,
    .arch-card:hover,
    .tech-card:hover,
    .governance-pillar:hover,
    .governance-role-item:hover,
    .arch-node--root:hover {
      transform: none;
      border-color: rgba(255, 255, 255, 0.9);
      box-shadow: var(--shadow);
    }

    .button:hover,
    .button:focus-visible {
      transform: none;
    }

    .roadmap-item:hover .roadmap-item__content {
      transform: none;
    }
  }
}

/* ==========================================================================
   Android — Corrections UX & Responsive
   ========================================================================== */

/* ---- Navigation bar Android (gestes + 3 boutons) ---- */
/* Sur Android 10+, env(safe-area-inset-bottom) inclut la barre de nav en gestes */
.footer {
  padding-bottom: max(2.5rem, calc(2rem + env(safe-area-inset-bottom, 16px)));
}

/* Le header ne doit pas être caché sous la status bar Android */
.header {
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
}

/* ---- Overscroll sur les cards (empêcher le pull-to-refresh Chrome Android) ---- */
.arch-children,
.tech-grid,
.pill-grid,
.product-grid,
.governance-grid,
.roadmap-timeline {
  overscroll-behavior: contain;
}

/* ---- Ripple / feedback visuel au tap (Android Material style) ---- */
/* Sur Android sans :hover, on utilise :active pour le feedback */
@media (hover: none) and (pointer: coarse) {
  /* Feedback visuel au tap sur toutes les cartes */
  .mini-card:active,
  .pill-card:active,
  .product-card:active,
  .quote-card:active,
  .arch-card:active,
  .tech-card:active,
  .governance-card:active,
  .governance-pillar:active,
  .teaser-card:active,
  .partners-card:active,
  .compliance-card:active {
    transform: scale(0.985);
    opacity: 0.92;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }

  /* Feedback sur les boutons */
  .button:active,
  .nav__cta:active {
    transform: scale(0.96);
    opacity: 0.88;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }

  /* Feedback sur les liens de navigation */
  .nav a:active {
    opacity: 0.7;
    background: rgba(7, 26, 51, 0.07);
    transition: opacity 0.1s ease, background 0.1s ease;
  }

  /* Désactiver les hover states qui resteraient bloqués sur Android */
  .mini-card:hover,
  .pill-card:hover,
  .product-card:hover,
  .quote-card:hover,
  .arch-card:hover,
  .tech-card:hover,
  .governance-card:hover,
  .governance-pillar:hover,
  .governance-role-item:hover,
  .teaser-card:hover,
  .partners-card:hover,
  .compliance-card:hover,
  .tree-card:hover,
  .arch-node--root:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }

  .roadmap-item:hover .roadmap-item__content {
    transform: none;
  }
}

/* ==========================================================================
   Google Pixel & Samsung Galaxy — 412px (résolution la plus courante Android)
   ========================================================================== */
@media (max-width: 412px) {
  h1 {
    font-size: clamp(2.3rem, 8.5vw, 2.9rem);
    max-width: 100%;
  }

  h2 {
    font-size: clamp(1.65rem, 6.5vw, 2.1rem);
    max-width: 100%;
  }

  .section--hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero__panel {
    display: none;
  }

  .button {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.2rem;
    /* Augmenter la taille pour la touchabilité Android (48dp recommandé Material) */
    min-height: 48px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .arch-node--root {
    padding: 1.4rem 1.2rem;
    width: 100%;
  }

  .arch-node__title {
    font-size: 1.3rem;
  }

  .roadmap-item__content {
    padding: 1.2rem 1.1rem;
  }

  .roadmap-item__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .tech-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 0.85rem;
  }

  .contact-form {
    padding: 1.2rem;
  }

  .contact-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form__footer .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .roadmap-item__checklist {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Android entrée de gamme — 360px (Moto G, Galaxy A series, etc.)
   ========================================================================== */
@media (max-width: 360px) {
  :root {
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
  }

  .site-shell {
    width: min(calc(100% - 0.8rem), var(--max));
  }

  h1 {
    font-size: 2rem;
    letter-spacing: -0.04em;
  }

  h2 {
    font-size: 1.55rem;
  }

  /* Réduire le padding pour les petits écrans */
  .section {
    padding: 2.8rem 0;
  }

  .wordmark__name {
    font-size: 0.92rem;
  }

  .glass-card__value {
    font-size: 1.3rem;
  }

  .arch-card,
  .tech-card,
  .pill-card,
  .product-card {
    padding: 1.1rem;
  }

  .arch-card h4,
  .tech-card h3 {
    font-size: 1.05rem;
  }

  .governance-card__name {
    font-size: 1.2rem;
  }

  .roadmap-item h3 {
    font-size: 1.05rem;
  }

  .nav-toggle {
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   Android — Gestion du zoom système de police (accessibilité)
   Les utilisateurs Android peuvent augmenter la taille de police jusqu'à 200%
   ========================================================================== */
@media (max-width: 820px) {
  /* Utiliser rem partout (déjà fait) mais forcer des max en px pour les éléments critiques */
  .wordmark__name {
    /* Evite que le nom déborde du header si zoom système */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
  }

  .nav-toggle__label {
    /* Cacher le label texte si trop grand, garder l'icône */
    overflow: hidden;
    max-width: 3rem;
  }

  /* Permettre le wrap des badges sur Android avec grande police */
  .hero__badges {
    gap: 0.6rem;
  }

  .hero__badges li {
    font-size: clamp(0.78rem, 2.5vw, 0.92rem);
  }

  /* Padding minimal garanti pour les touch targets (Material 48dp) */
  .nav a,
  .button,
  .language-switcher__button,
  .footer__links a {
    min-height: 48px;
  }
}

/* ==========================================================================
   Android landscape — Mode paysage (la plupart des Android mid-range)
   ========================================================================== */
@media (max-width: 915px) and (orientation: landscape) and (max-height: 450px) {
  .section--hero {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .hero__panel {
    display: grid;
  }

  h1 {
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  }

  .section {
    padding: 2.5rem 0;
  }

  .glass-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-card:nth-child(3) {
    display: none;
  }

  /* En paysage Android, la barre de navigation peut être sur le côté */
  .site-shell {
    padding-left: max(0.4rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.4rem, env(safe-area-inset-right, 0px));
  }
}

/* ==========================================================================
   Samsung Internet — Corrections spécifiques
   Samsung Internet utilise le préfixe -webkit- mais a ses propres bugs
   ========================================================================== */

/* Empêcher le grossissement automatique du texte dans Samsung Internet */
@supports (-webkit-text-size-adjust: none) {
  body {
    -webkit-text-size-adjust: none;
  }
}

/* Fix pour le z-index du header sticky dans certains navigateurs Android */
.header {
  will-change: transform;
  /* Forcer la création d'un nouveau stacking context sur Android */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Améliorer le rendu du backdrop-filter sur Chrome Android récent */
@supports (backdrop-filter: blur(1px)) {
  .glass-card,
  .quote-card,
  .product-card,
  .pill-card,
  .tree-card,
  .governance-card,
  .compliance-card,
  .partners-card,
  .teaser-card,
  .contact-form,
  .arch-card,
  .tech-card,
  .roadmap-item__content,
  .mini-card {
    /* Sur Android, réduire le blur pour de meilleures performances */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
