/* Gurutech — gurutech.ma
   Layout: alternating night and tadelakt bands on a 1200px column; the interlaced khatam is the one bold motif. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0a1733;
  --night-2: #0f2148;
  --night-3: #071129;
  --night-line: rgba(163, 184, 232, 0.16);
  --night-line-2: rgba(163, 184, 232, 0.32);
  --ivory: #edf2fc;
  --ivory-2: #c9d3e8;
  --ivory-3: #a9b7d6;
  --gold: #f4bb45;
  --gold-2: #ffcd66;
  --tadelakt: #f7f4ee;
  --tadelakt-2: #efe9dd;
  --ink: #0a1733;
  --ink-2: #3d4a66;
  --brass: #8a6420;
  --brass-line: rgba(138, 100, 32, 0.45);
  --sand-line: rgba(10, 23, 51, 0.12);
  --danger-d: #ffb4a8;
  --danger-l: #a8321e;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-m: 1.0625rem;
  --fs-l: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.1vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 4vw, 4.4rem);

  --wrap: 1200px;
  --radius: 14px;
  --radius-s: 9px;
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--font);
  font-size: var(--fs-m);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-stretch: 112%; font-weight: 640; letter-spacing: -0.012em; line-height: 1.1; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.band--light :focus-visible { outline-color: var(--brass); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 640; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * max(16px, 4vw));
  margin-inline: auto;
  padding-left: max(16px, 4vw, env(safe-area-inset-left, 0px));
  padding-right: max(16px, 4vw, env(safe-area-inset-right, 0px));
}

/* --- Bands --------------------------------------------------------------- */
.band { padding-block: var(--section-y); position: relative; }
.band--light { background: var(--tadelakt); color: var(--ink); color-scheme: light; }
.band--sand { background: var(--tadelakt-2); color: var(--ink); color-scheme: light; }
.band--deep { background: var(--night-3); }
.band--raised { background: var(--night-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--fs-xs); font-weight: 620; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.7; }
.band--light .eyebrow, .band--sand .eyebrow { color: var(--brass); }

.section-head { display: grid; gap: 18px; max-width: 52rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--ivory-2); font-size: var(--fs-l); max-width: 40rem; }
.band--light .section-head p, .band--sand .section-head p { color: var(--ink-2); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

.lead { font-size: var(--fs-l); color: var(--ivory-2); max-width: 38rem; }
.band--light .lead { color: var(--ink-2); }

/* --- Buttons ------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-s);
  font: inherit; font-size: var(--fs-s); font-weight: 640; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: var(--night-line-2); color: var(--ivory); background: transparent; }
.btn--ghost:hover { border-color: var(--ivory-3); background: rgba(237, 242, 252, 0.06); }
.band--light .btn--ghost, .band--sand .btn--ghost { border-color: rgba(10, 23, 51, 0.3); color: var(--ink); }
.band--light .btn--ghost:hover, .band--sand .btn--ghost:hover { border-color: var(--ink); background: rgba(10, 23, 51, 0.04); }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: var(--night-2); }
.btn--sm { min-height: 40px; padding: 0 16px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 620; font-size: var(--fs-s);
  color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent;
}
.link-arrow:hover { border-bottom-color: currentColor; }
.band--light .link-arrow, .band--sand .link-arrow { color: var(--brass); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(10, 23, 51, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease);
}
.site-header[data-scrolled] { border-bottom-color: var(--night-line); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px;
  text-decoration: none; color: var(--ivory-2); font-size: var(--fs-s); font-weight: 520;
}
.site-nav a:hover { color: var(--ivory); background: rgba(237, 242, 252, 0.06); }
.site-nav a[aria-current="page"] { color: var(--ivory); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.region {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--night-line-2); font-size: 0.75rem; font-weight: 620; letter-spacing: 0.08em; text-transform: uppercase;
}
.region span, .region a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; text-decoration: none; }
.region span { background: rgba(244, 187, 69, 0.14); color: var(--gold); }
.region a { color: var(--ivory-3); }
.region a:hover { color: var(--ivory); }
.region svg { width: 11px; height: 11px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--night-line-2);
  background: transparent; color: var(--ivory); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open, .nav-toggle[aria-expanded="false"] .nav-toggle__close { display: none; }
.mobile-menu { border-top: 1px solid var(--night-line); background: var(--night); padding-block: 12px 28px; }
.mobile-menu ul { list-style: none; display: grid; }
.mobile-menu li a {
  display: flex; min-height: 52px; align-items: center; text-decoration: none; font-size: 1.15rem; font-weight: 560;
  border-bottom: 1px solid var(--night-line);
}
.mobile-menu__ctas { display: grid; gap: 10px; margin-top: 20px; }
.mobile-menu__phone { color: var(--ivory-2); font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
  .site-nav, .site-header__actions .btn, .site-header__actions .region { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; }
}
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }

/* --- Zellige pattern ----------------------------------------------------- */
.zellige {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23f4bb45' stroke-opacity='.10' stroke-width='1'%3E%3Cpath d='M28 28h40v40H28z'/%3E%3Cpath d='M48 19.7 76.3 48 48 76.3 19.7 48z'/%3E%3Cpath d='M0 48h19.7M76.3 48H96M48 0v19.7M48 76.3V96'/%3E%3Cpath d='M0 0l28 28M96 0 68 28M0 96l28-28M96 96 68 68'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 0%, transparent 75%);
}

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px); }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 26px; min-width: 0; }
.hero__copy .lead { max-width: 36rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ivory-3); font-size: var(--fs-s); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.hero__visual { display: flex; justify-content: center; }
.emblem-hero { width: min(100%, 440px); height: auto; overflow: visible; }

@media (prefers-reduced-motion: no-preference) {
  .emblem-hero .em-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: em-draw 1.6s var(--ease) 0.15s forwards; }
  .emblem-hero .em-draw--2 { animation-delay: 0.45s; }
  .emblem-hero .em-segs { opacity: 0; animation: em-fade 0.5s ease 1.5s forwards; }
  .emblem-hero .em-ring, .emblem-hero .em-line { opacity: 0; animation: em-fade 0.8s ease 0.9s forwards; }
  .emblem-hero .em-core { transform-origin: 100px 100px; transform: scale(0); animation: em-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 1.35s forwards; }
}
@keyframes em-draw { to { stroke-dashoffset: 0; } }
@keyframes em-fade { to { opacity: 1; } }
@keyframes em-pop { to { transform: scale(1); } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; justify-content: flex-start; }
  .emblem-hero { width: 168px; }
}

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px) clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--night-line); }
.page-hero__inner { position: relative; display: grid; gap: 22px; max-width: 52rem; }
.domain__certs span { white-space: nowrap; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: var(--fs-xs); color: var(--ivory-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ivory); }

/* --- Certification ribbon ------------------------------------------------ */
.ribbon { border-block: 1px solid var(--night-line); background: var(--night-3); padding-block: 22px; }
.ribbon__inner { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.ribbon__label { font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-3); font-weight: 600; }
.ribbon ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; }
.ribbon li { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-s); color: var(--ivory-2); font-weight: 520; white-space: nowrap; }
.ribbon li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); opacity: 0.8; }

/* --- Domain cards -------------------------------------------------------- */
.domains { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; }
.domain {
  display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--sand-line); min-width: 0;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.domain:hover { border-color: var(--brass-line); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10, 23, 51, 0.08); }
.domain__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--night); color: var(--gold); }
.domain__icon svg { width: 22px; height: 22px; }
.domain h3 { font-size: 1.12rem; }
.domain h3 a { text-decoration: none; }
.domain h3 a::after { content: ""; position: absolute; inset: 0; }
.domain { position: relative; }
.domain p { color: var(--ink-2); font-size: var(--fs-s); }
.domain__certs { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sand-line); font-size: var(--fs-xs); color: var(--brass); font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 1100px) {
  .domains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domains > :last-child { grid-column: span 2; }
}
@media (max-width: 620px) {
  .domains { grid-template-columns: 1fr; }
  .domains > :last-child { grid-column: auto; }
}

/* --- France & Maroc relation --------------------------------------------- */
.relation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 300px) minmax(0, 1fr); align-items: stretch; }
.country {
  position: relative; display: grid; gap: 14px; align-content: start; padding: 30px 28px; border-radius: var(--radius);
  border: 1px solid var(--night-line-2); background: rgba(15, 33, 72, 0.6); min-width: 0;
}
.country--here { border-color: rgba(244, 187, 69, 0.6); background: var(--night-2); box-shadow: inset 0 3px 0 var(--gold); }
.country__tag { font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-3); font-weight: 620; }
.country--here .country__tag { color: var(--gold); }
.country h3 { font-size: 1.5rem; }
.country p { color: var(--ivory-2); font-size: var(--fs-s); }
.country ul { list-style: none; display: grid; gap: 8px; font-size: var(--fs-s); color: var(--ivory-2); }
.country li { display: flex; gap: 10px; }
.country li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 0.62em; background: var(--gold); transform: rotate(45deg); }
.country__site { font-weight: 620; color: var(--ivory); text-decoration: none; font-size: var(--fs-s); display: inline-flex; gap: 6px; align-items: center; }
.country__site:hover { color: var(--gold); }
.country__site svg { width: 13px; height: 13px; }
.bridge { position: relative; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 24px 8px; text-align: center; }
.bridge::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(244, 187, 69, 0.55); }
.bridge__mark { position: relative; width: 64px; height: 64px; background: var(--night); }
.bridge__list { position: relative; display: grid; gap: 6px; list-style: none; background: var(--night); padding: 10px 14px; border-radius: 10px; }
.band--deep .bridge__mark, .band--deep .bridge__list { background: var(--night-3); }
.bridge__list li { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 620; }
@media (max-width: 860px) {
  .relation { grid-template-columns: 1fr; }
  .bridge { padding: 18px 0; }
  .bridge::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px dashed rgba(244, 187, 69, 0.55); }
}

/* --- Feature grid -------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); list-style: none; }
.feature { display: grid; gap: 10px; align-content: start; min-width: 0; padding-top: 22px; border-top: 1px solid var(--night-line-2); }
.band--light .feature, .band--sand .feature { border-top-color: var(--brass-line); }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--ivory-2); font-size: var(--fs-s); }
.band--light .feature p, .band--sand .feature p { color: var(--ink-2); }
.feature__k { color: var(--gold); width: 22px; height: 22px; }
.band--light .feature__k, .band--sand .feature__k { color: var(--brass); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* --- Steps --------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; padding: 0 22px 0 0; min-width: 0; }
.steps__n {
  position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center;
  font-weight: 680; font-size: 1rem; font-variant-numeric: tabular-nums;
}
.steps__n svg { position: absolute; inset: 0; width: 44px; height: 44px; }
.steps li::after { content: ""; position: absolute; left: 52px; right: 8px; top: 22px; border-top: 1px solid var(--brass-line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.08rem; margin-top: 6px; }
.steps p { font-size: var(--fs-s); color: var(--ink-2); }
.band--night .steps p, .steps--night p { color: var(--ivory-2); }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding: 0; }
  .steps li > :not(.steps__n) { grid-column: 2; }
  .steps__n { grid-row: span 2; }
  .steps h3 { margin-top: 8px; }
  .steps li::after { left: 22px; right: auto; top: 52px; bottom: -22px; border-top: 0; border-left: 1px solid var(--brass-line); }
}

/* --- Note ---------------------------------------------------------------- */
.note {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--brass-line); background: rgba(255, 255, 255, 0.5);
  color: var(--ink-2); font-size: var(--fs-s); max-width: 60rem;
}
.note svg { width: 28px; height: 28px; color: var(--brass); }
.band--night .note, .note--night { background: rgba(15, 33, 72, 0.6); border-color: var(--night-line-2); color: var(--ivory-2); }

/* --- CTA band ------------------------------------------------------------ */
.cta { position: relative; overflow: hidden; background: var(--night-2); border-top: 1px solid var(--night-line); }
.cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding-block: clamp(56px, 7vw, 88px); }
.cta__copy { display: grid; gap: 20px; max-width: 40rem; }
.cta__copy p { color: var(--ivory-2); font-size: var(--fs-l); }
.cta__direct { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-s); color: var(--ivory-3); }
.cta__direct strong { color: var(--ivory); font-weight: 600; font-variant-numeric: tabular-nums; }
.cta__guru { width: 190px; align-self: end; margin-bottom: calc(-1 * clamp(56px, 7vw, 88px)); }
@media (max-width: 760px) {
  .cta__inner { grid-template-columns: 1fr; }
  .cta__guru { width: 130px; justify-self: end; margin-top: -10px; }
}

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--night-3); border-top: 1px solid var(--night-line); padding-block: 56px 32px; font-size: var(--fs-s); color: var(--ivory-3); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.site-footer__brand { display: grid; gap: 16px; align-content: start; }
.site-footer__brand img { height: 30px; width: auto; }
.site-footer__brand p { max-width: 26rem; }
.site-footer h2 { font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory); font-weight: 620; font-stretch: 100%; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.site-footer__contact li { font-variant-numeric: tabular-nums; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: var(--fs-xs); }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* --- Formations page ----------------------------------------------------- */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 20; background: var(--tadelakt); border-bottom: 1px solid var(--sand-line); color: var(--ink); }
.subnav ul { display: flex; gap: 6px; list-style: none; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  text-decoration: none; font-size: var(--fs-s); font-weight: 560; color: var(--ink-2); border: 1px solid var(--sand-line); background: #fff;
}
.subnav a:hover { color: var(--ink); border-color: var(--brass-line); }
.subnav a[aria-current="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.domain-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--sand-line); }
.domain-section:first-child { border-top: 0; padding-top: 0; }
.domain-section__intro { display: grid; gap: 18px; align-content: start; }
.domain-section__intro .domain__icon { width: 52px; height: 52px; }
.domain-section__intro p { color: var(--ink-2); }
.domain-section__intro h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.domain-section__who { font-size: var(--fs-s); padding: 16px 18px; border-radius: var(--radius-s); background: var(--tadelakt-2); }
.domain-section__who strong { color: var(--ink); }
.domain-section__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-content: start; }
.domain-section__lists h3 { font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); font-stretch: 100%; font-weight: 640; margin-bottom: 14px; }
.ticks { list-style: none; display: grid; gap: 10px; font-size: var(--fs-s); color: var(--ink); }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-top: 0.6em; background: var(--brass); transform: rotate(45deg); }
.certs { list-style: none; display: grid; gap: 8px; }
.certs li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--sand-line); font-size: var(--fs-s); font-weight: 560; }
.certs small { font-size: 0.75rem; color: var(--brass); font-weight: 620; letter-spacing: 0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.certs__more { font-size: var(--fs-xs); color: var(--ink-2); margin-top: 10px; }
.certs__more a { color: var(--brass); font-weight: 600; }
@media (max-width: 960px) { .domain-section { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .domain-section__lists { grid-template-columns: 1fr; } }

/* --- Cards on night ------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 18px; list-style: none; }
.card { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--radius); border: 1px solid var(--night-line-2); background: rgba(15, 33, 72, 0.55); min-width: 0; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ivory-2); font-size: var(--fs-s); }
.band--light .card, .band--sand .card { background: #fff; border-color: var(--sand-line); }
.band--light .card p, .band--sand .card p { color: var(--ink-2); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.checklist svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.band--light .checklist svg, .band--sand .checklist svg { color: var(--brass); }

/* --- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 54rem; }
.faq details { border: 1px solid var(--sand-line); border-radius: var(--radius-s); background: #fff; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brass); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); font-size: var(--fs-s); max-width: 46rem; }

/* --- Contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; color: var(--ink); color-scheme: light; border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--sand-line); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger-l); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(10, 23, 51, 0.22);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.field [aria-invalid="true"] { border-color: var(--danger-l); }
.field__error { color: var(--danger-l); font-size: var(--fs-xs); font-weight: 560; }
.field__hint { color: var(--ink-2); font-size: var(--fs-xs); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(10, 23, 51, 0.22); font-weight: 560; font-size: var(--fs-s);
}
.choice input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--fs-xs); color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.consent a { color: var(--brass); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: var(--fs-s); font-weight: 560; min-height: 1em; }
.form__status.is-error { color: var(--danger-l); }
.form__foot { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
.form__foot small { color: var(--ink-2); font-size: var(--fs-xs); }
.demo-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tadelakt-2); color: var(--brass); font-size: var(--fs-xs); font-weight: 620; }
.form-success { display: grid; gap: 14px; justify-items: start; padding: 10px 0; }
.form-success svg { width: 44px; height: 44px; color: var(--brass); }
.form-success h2 { font-size: 1.7rem; }
.form-success:focus { outline: none; }

.aside { display: grid; gap: 22px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--night); color: var(--ivory); color-scheme: dark; }
.aside h2 { font-size: 1.3rem; }
.aside dl { display: grid; gap: 16px; margin: 0; }
.aside dt { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-3); font-weight: 620; }
.aside dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 560; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.aside dd a { text-decoration: none; }
.aside dd a:hover { color: var(--gold); }
.aside .btn--ghost { border-color: var(--night-line-2); color: var(--ivory); justify-self: start; }
.aside .btn--ghost:hover { border-color: var(--ivory-3); background: rgba(237, 242, 252, 0.06); }
.aside .link-arrow { color: var(--gold); }
.aside :focus-visible { outline-color: var(--gold); }
.aside__fr { padding-top: 18px; border-top: 1px solid var(--night-line); font-size: var(--fs-s); color: var(--ivory-2); display: grid; gap: 8px; }

/* --- Legal pages --------------------------------------------------------- */
.prose { max-width: 46rem; display: grid; gap: 16px; color: var(--ink-2); }
.prose h2 { font-size: 1.45rem; color: var(--ink); margin-top: 22px; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--brass); }
.ph { background: rgba(244, 187, 69, 0.28); padding: 0 4px; border-radius: 3px; color: var(--ink); }

@media (max-width: 480px) { .eyebrow { letter-spacing: 0.2em; } .eyebrow::before { width: 22px; } }

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