/* ==========================================================================
   MystoMikeLabs — feuille de style principale
   Organisation : 1. Polices  2. Jetons  3. Base  4. Utilitaires  5. Composants
                  6. En-tête  7. Sections de l'accueil  8. Pied de page  9. Animations
   ========================================================================== */

/* 1. Polices auto-hébergées (SIL Open Font License) ----------------------- */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Jetons de design (charte graphique) --------------------------------- */
:root {
  /* Couleurs de marque — charte v3 (planche brand/source/charte-v3/planche-charte-mml.png) */
  --night: #001634;
  --night-2: #00264f;
  --night-3: #003272;
  --electric: #0078f0;
  --electric-strong: #0060d8;
  --electric-light: #18c8f8;
  --ice: #e8f2ff;
  --gold: #f0c070;
  --gold-light: #ffe3a6;
  --gold-deep: #c8923c;
  --silver: #e9ecf1;
  --silver-deep: #aab2bf;
  /* Dégradés de marque */
  --grad-chrome: linear-gradient(180deg, #ffffff 0%, #f1f3f7 42%, #b3bbc8 54%, #e3e7ee 78%, #ffffff 100%);
  --grad-blue: linear-gradient(120deg, #30d8f8 0%, var(--electric) 60%, var(--electric-strong) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));

  /* Couleurs fonctionnelles */
  --ink: #0a1633;
  --text: #34425f;
  --muted: #5b6b8c;
  --line: #dfe6f3;
  --surface: #f4f7fd;
  --white: #ffffff;
  --on-dark: #ffffff;
  --on-dark-muted: #b4c3e0;

  /* Typographie */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h3: 1.15rem;
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
  --fs-hero: clamp(2.1rem, 0.9rem + 6.6vw, 5rem);

  /* Espacements & formes */
  --gutter: clamp(1rem, 0.6rem + 2vw, 1.875rem);
  --container: 1476px;
  --section-y: clamp(4rem, 3rem + 4vw, 6.5rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 76px;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(10, 22, 51, 0.06);
  --shadow: 0 18px 50px -20px rgba(10, 22, 51, 0.28);
  --shadow-glow: 0 10px 30px -8px rgba(0, 120, 240, 0.6);

  /* Mouvement */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.35s;
}

/* 3. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid var(--electric-light);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus {
  outline: none;
}
::selection {
  background: var(--electric);
  color: var(--white);
}

/* 4. Utilitaires ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
.text-electric {
  color: var(--electric-light);
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* 5. Composants ----------------------------------------------------------- */

/* 5.1 Boutons */
.btn {
  --btn-bg: var(--electric);
  --btn-fg: var(--white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.8em 1.35em;
  border: 1.5px solid var(--btn-border);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn .btn__arrow {
  transition: transform var(--dur) var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}
.btn--sm {
  padding: 0.6em 1.05em;
  font-size: var(--fs-xs);
  border-radius: 10px;
}
.btn--lg {
  padding: 0.95em 1.4em;
  font-size: 1rem;
}
.btn--primary {
  background: linear-gradient(135deg, var(--electric-light) -30%, var(--electric) 45%, var(--electric-strong));
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(0, 120, 240, 0.75);
}
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-border: currentColor;
}
.btn--outline:hover {
  --btn-bg: rgba(90, 169, 255, 0.12);
  --btn-border: var(--electric-light);
  transform: translateY(-2px);
}
.btn--gold {
  --btn-fg: var(--ink);
  background: var(--grad-gold);
  box-shadow: 0 12px 30px -10px rgba(240, 192, 112, 0.6);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(240, 192, 112, 0.75);
}
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: saturate(0.6);
  box-shadow: none;
  transform: none;
}

/* 5.2 Sur-titre, titres de section */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: var(--electric-strong);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.eyebrow--dark,
.section-heading--dark .eyebrow {
  color: var(--electric-light);
}
.section-heading {
  max-width: 720px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.section-heading--center {
  margin-inline: auto;
  text-align: center;
}
.section-heading__title {
  font-size: var(--fs-h2);
}
.section-heading__bar {
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 1.1rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.section-heading--center .section-heading__bar {
  margin-inline: auto;
}
.section-heading__intro {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: var(--fs-lg);
}
.section-heading--dark .section-heading__title {
  color: var(--on-dark);
}
.section-heading--dark .section-heading__intro {
  color: var(--on-dark-muted);
}

/* 5.3 Tuile d'icône & carte d'expertise */
.icon-tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #eaf2ff, #d6e5ff);
  color: var(--electric-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 120, 240, 0.12);
}
.icon-tile .icon {
  width: 28px;
  height: 28px;
}
.feature-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
}
.feature-card__title {
  font-size: var(--fs-h3);
  font-weight: 650;
}
.feature-card__text {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* 5.4 Pastille */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  background: rgba(0, 120, 240, 0.1);
  color: var(--electric-strong);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.soon-badge {
  margin-left: 0.45em;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  background: rgba(240, 192, 112, 0.16);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

/* 5.5 Carte application — panoramique comme la maquette.
   La disposition dépend de la largeur de la CARTE (requête de conteneur) :
   - carte ≥ 660 px : texte HTML posé sur la bannière, bande claire en fondu en bas ; toutes les
     tailles sont proportionnelles à la carte (cqi), comme une image mise à l'échelle ;
   - carte plus étroite : le texte passe sous la bannière. */
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 36px -20px rgba(10, 22, 51, 0.5), 0 0 0 1px rgba(120, 165, 235, 0.55);
  container-type: inline-size;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -22px rgba(10, 22, 51, 0.6), 0 0 0 1px rgba(90, 169, 255, 0.8);
}
.app-card__visual {
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: var(--night);
}
.app-visual {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-visual--fallback {
  display: grid;
  place-items: center;
  background: var(--night-3);
  color: var(--white);
  font: 700 4rem var(--font-display);
}
.app-card__badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background: var(--grad-gold);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.app-card__body {
  padding: 1rem 1.25rem 0.25rem;
  color: var(--text);
}
.app-card__tagline {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.app-card__summary {
  margin-top: 0.3rem;
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.app-card__notice {
  color: var(--ink);
  font-weight: 700;
}
.app-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-top: auto;
  padding: 0.75rem 1.25rem 1rem;
  color: var(--ink);
}
.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.app-card__meta .chip {
  gap: 0.4em;
  padding: 0;
  background: none;
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.app-card__meta .chip .icon {
  width: 1.35em;
  height: 1.35em;
  color: var(--night-2);
}
.app-card__meta .chip--muted {
  color: var(--muted);
  font-weight: 600;
}
.app-card .btn--outline {
  padding: 0.5em 1.15em;
  border: 2px solid var(--night-2);
  border-radius: 999px;
  color: var(--ink);
}
.app-card .btn--outline:hover {
  background: var(--night-2);
  color: var(--white);
}
.app-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.app-card__status .icon {
  color: var(--electric-strong);
}

/* Largeur de la zone de texte posée sur la bannière (selon la place libre à gauche de chaque visuel).
   Classes plutôt qu'un style en ligne : la politique de sécurité (CSP) interdit les styles en ligne. */
.app-card--text-47 {
  --text-w: 47%;
}
.app-card--text-50 {
  --text-w: 50%;
}
.app-card--text-58 {
  --text-w: 58%;
}
.app-card--text-66 {
  --text-w: 66%;
}

@container (min-width: 660px) {
  .app-card__badge {
    top: 1.6cqi;
    right: 1.6cqi;
    font-size: 1.75cqi;
  }
  .app-card__body {
    position: absolute;
    left: 3.6cqi;
    bottom: 9.4cqi;
    z-index: 2;
    width: var(--text-w, 50%);
    padding: 0;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 0, 0, 0.55);
  }
  .app-card__tagline {
    color: var(--white);
    font-size: 2.35cqi;
  }
  .app-card__summary {
    margin-top: 0.5cqi;
    color: #e3ebf9;
    font-size: 1.84cqi;
    line-height: 1.32;
  }
  .app-card__notice {
    color: var(--white);
  }
  /* Bande claire : chevauche le bas de la bannière avec un fondu, comme sur la maquette. */
  .app-card__footer {
    position: relative;
    z-index: 2;
    flex-wrap: nowrap;
    gap: 2cqi;
    min-height: 8.6cqi;
    margin-top: -6.4cqi;
    padding: 2cqi 2.8cqi 0.6cqi;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95) 2cqi, #fff);
  }
  .app-card__meta {
    flex-wrap: nowrap;
    gap: 2.2cqi;
  }
  .app-card__meta .chip,
  .app-card__status {
    font-size: 1.75cqi;
    white-space: nowrap;
  }
  .app-card .btn--outline {
    flex: none;
    font-size: 1.9cqi;
  }
}

/* 5.6 Bandeau d'appel à l'action */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem) clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: 18px;
  background:
    radial-gradient(55% 160% at 72% 50%, rgba(30, 130, 255, 0.55), transparent 70%),
    linear-gradient(90deg, #041a4a 0%, #0a3c9e 42%, #0b318a 72%, #06225f 100%);
  color: #dbe7fb;
  box-shadow: 0 18px 40px -22px rgba(4, 26, 74, 0.8), 0 0 0 1px rgba(90, 169, 255, 0.35);
  isolation: isolate;
}
.cta-band__waves {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 30%;
  z-index: -1;
  height: 140%;
  background: radial-gradient(closest-side, rgba(0, 120, 240, 0.35), transparent);
}
.cta-band__title {
  color: var(--white);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
}
.cta-band__text p {
  margin-top: 0.4rem;
}
.icon-tile--sm {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.icon-tile--sm .icon {
  width: 22px;
  height: 22px;
}

/* 5.6 bis « Demander un devis » tant que le formulaire n'est pas ouvert (pas un bouton) */
.quote-soon {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
}
.quote-soon__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.1em 0.85em 1.4em;
  border-radius: 12px;
  background: var(--grad-gold);
  box-shadow: 0 12px 30px -12px rgba(240, 192, 112, 0.5);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: default;
  user-select: none;
}
.quote-soon__tag {
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background: var(--night);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.quote-soon__note {
  max-width: 19rem;
  color: var(--on-dark-muted);
  font-size: var(--fs-xs);
}

/* 5.7 Indication « fonctionnalité bientôt disponible » (n'imite pas un bouton) */
.availability {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  max-width: 22rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--gold);
  border-radius: 4px 12px 12px 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.availability__icon {
  flex: none;
  margin-top: 0.1rem;
  color: var(--gold);
}
.availability__title {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
}
.availability__badge {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.1em 0.6em;
  border-radius: 999px;
  background: rgba(240, 192, 112, 0.16);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}
.availability__text {
  margin-top: 0.2rem;
}

/* 6. En-tête -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(3, 12, 31, 0.95) 0%, rgba(3, 14, 38, 0.86) 45%, rgba(2, 24, 66, 0.6) 100%);
  color: var(--white);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(90, 169, 255, 0.3);
  box-shadow: 0 1px 14px -2px rgba(0, 120, 240, 0.45);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(4, 13, 32, 0.95);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.6);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex: none;
  color: var(--white);
}
.brand__mark {
  width: 112px;
  height: auto;
}
.brand__divider {
  width: 1.5px;
  height: 34px;
  background: rgba(255, 255, 255, 0.22);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__name {
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__labs {
  color: inherit;
}
.brand__tld {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.12em;
  font-size: 0.8em;
  font-style: italic;
  font-weight: 600;
}
.brand__descriptor {
  margin-top: 0.4rem;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.brand--lg .brand__mark {
  width: 136px;
}
.brand--lg .brand__name {
  font-size: 1.5rem;
}

@media (min-width: 1280px) {
  .brand--md .brand__mark {
    width: 136px;
  }
  .brand--md .brand__name {
    font-size: 1.5rem;
  }
  .brand--md .brand__divider {
    height: 40px;
  }
}

/* Navigation */
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__link .soon-badge {
  margin-left: 0.35em;
  padding: 0.1em 0.4em;
  font-size: 0.56rem;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
a.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.nav__link[aria-current="page"] {
  color: var(--white);
  background: linear-gradient(135deg, var(--electric), var(--electric-strong));
  box-shadow: 0 6px 18px -6px rgba(0, 120, 240, 0.8);
}
.nav__link.is-soon {
  color: rgba(255, 255, 255, 0.45);
  cursor: default;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__cta {
  color: var(--white);
}
.nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle .icon {
  width: 24px;
  height: 24px;
}
.nav-toggle__close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

@media (max-width: 1100px) {
  html.menu-open,
  html.menu-open body {
    overflow: hidden;
  }
  .nav-toggle {
    display: grid;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--night);
    border-bottom: 1px solid rgba(90, 169, 255, 0.15);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .nav__link {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
  .nav__cta {
    width: 100%;
    padding-block: 0.9em;
    font-size: 1rem;
  }
}
@media (max-width: 420px) {
  .brand__divider,
  .brand__descriptor {
    display: none;
  }
  .brand__mark {
    width: 80px;
  }
  .brand__name {
    font-size: 1.15rem;
  }
}
@media (max-width: 359px) {
  .site-header__inner {
    gap: 0.75rem;
  }
  .brand {
    gap: 0.6rem;
  }
  .brand__mark {
    width: 62px;
  }
  .brand__name {
    font-size: 0.95rem;
  }
  .brand--lg .brand__mark {
    width: 80px;
  }
  .brand--lg .brand__name {
    font-size: 1.2rem;
  }
}

/* 7. Sections de l'accueil ------------------------------------------------ */
.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: 0 var(--section-y);
}
.section--dark {
  background: var(--night);
  color: var(--on-dark-muted);
}

/* 7.1 Hero */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + clamp(2rem, 1.5rem + 2vw, 3rem)) clamp(6.5rem, 5rem + 4vw, 8rem);
  background: var(--night);
  color: var(--on-dark-muted);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 78% 35%, rgba(0, 120, 240, 0.45), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(90, 169, 255, 0.18), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 169, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 169, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent 75%);
  mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent 75%);
}
.hero__waves {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.hero__wave {
  fill: none;
  stroke: url(#wave-a);
  stroke-linecap: round;
}
.hero__wave--1 {
  stroke-width: 2.5;
}
.hero__wave--2 {
  stroke-width: 1.5;
  opacity: 0.55;
}
.hero__wave--3 {
  stroke-width: 1;
  opacity: 0.4;
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__content {
  max-width: min(39rem, 50vw);
}
.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--white);
}
.hero__brand {
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.6rem, 0.5rem + 5.4vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}
.hero__brand .text-electric {
  color: inherit;
}
.hero__tld {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.12em;
  margin-left: 0.04em;
  font-size: 0.72em;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  color: var(--white);
  font-size: clamp(1.3rem, 0.95rem + 1.4vw, 2.05rem);
  font-weight: 400;
  letter-spacing: 0;
}
.hero__tagline {
  position: relative;
  padding-left: 1.4rem;
  color: var(--white);
  font-size: clamp(1.2rem, 0.9rem + 1.2vw, 1.8rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero__tagline::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(var(--gold), var(--gold-deep));
  transform: skewX(-14deg);
}
.hero__lead {
  max-width: 36rem;
  margin-top: 1.1rem;
  color: #d3def3;
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.15rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.hero__actions .btn--outline {
  color: var(--white);
}
.hero__actions .btn--lg {
  padding: 0.9em 1.15em;
  font-size: 0.95rem;
}

/* Visuel officiel MystoMikeLabs : ordinateur + téléphone (image fournie, fondue dans le fond) */
.hero__visual {
  --w: min(74vw, 1400px);
  position: absolute;
  z-index: 1;
  top: calc(50% - 2.5rem);
  left: calc(50% - var(--w) * 0.27);
  width: var(--w);
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 92%, transparent),
    linear-gradient(180deg, transparent 0, #000 10%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 92%, transparent),
    linear-gradient(180deg, transparent 0, #000 10%, #000 86%, transparent);
  mask-composite: intersect;
}
.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* 7.2 Expertises (panneau chevauchant le hero) */
.expertise {
  position: relative;
  z-index: 3;
  margin-top: clamp(-5.5rem, -3rem - 3vw, -4rem);
}
.expertise__panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 30px 70px -30px rgba(10, 22, 51, 0.35), 0 0 0 1px rgba(10, 22, 51, 0.04);
}
.expertise__panel .feature-card {
  position: relative;
  align-items: center;
  gap: 0.9rem;
  padding: 1.5rem 1.25rem;
}
.expertise__panel .feature-card + .feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--line);
}
.expertise .icon-tile {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}
.expertise .icon-tile .icon {
  width: 30px;
  height: 30px;
}
/* Icônes officielles charte v3 (3:2, fond nuit intégré) — composant brand-icon */
.brand-icon {
  display: block;
  flex: none;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 20px -10px rgba(0, 22, 52, 0.55);
}
.feature-card__icon {
  width: 87px;
  height: 58px;
}
.about__point-icon {
  width: 72px;
  height: 48px;
  border-radius: 11px;
}
.deliverables__icon {
  width: 54px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(90, 169, 255, 0.22);
}
.cta-band__icon {
  width: 120px;
  height: 80px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 30px -14px rgba(0, 10, 30, 0.8);
}

/* 7.3 Applications */
.apps {
  padding-top: clamp(2.75rem, 2rem + 2.5vw, 4.5rem);
  background: linear-gradient(180deg, var(--white), var(--surface));
}
.about {
  padding-top: 0;
  background: var(--surface);
}
.apps .section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.1rem;
  align-items: center;
  max-width: none;
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.apps .section-heading__title {
  grid-column: 1 / -1;
}
.apps .section-heading__bar,
.apps .section-heading__intro {
  margin-top: 0.75rem;
}
.apps .section-heading__intro {
  font-size: var(--fs-md);
}
.apps__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.empty-state {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* 7.3 bis À propos */
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.about .section-heading {
  margin-bottom: 0;
}
.about__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.about__point {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.about__point-title {
  font-size: 1rem;
  font-weight: 650;
}
.about__point-text {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* 7.4 Développement sur mesure */
.custom {
  overflow: hidden;
  isolation: isolate;
}
.custom__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 0% 100%, rgba(0, 120, 240, 0.28), transparent 70%),
    radial-gradient(40% 50% at 100% 0%, rgba(240, 192, 112, 0.08), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night));
}
.custom__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: start;
}
.custom__intro .section-heading {
  margin-bottom: 2rem;
}
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.deliverables__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(90, 169, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.deliverables__item .icon {
  color: var(--electric-light);
}
.custom__actions {
  margin-top: 2rem;
}
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(90, 169, 255, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.step:hover {
  border-color: rgba(90, 169, 255, 0.45);
  transform: translateX(4px);
}
.step__num {
  flex: none;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}
.step__title {
  color: var(--white);
  font-size: var(--fs-h3);
  font-weight: 600;
}
.step__text {
  margin-top: 0.35rem;
  font-size: var(--fs-sm);
}

/* 7.5 Contact */
.contact {
  padding-top: 0;
  background: var(--surface);
}

/* 7.6 Page d'erreur */
.hero--compact {
  padding-block: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6.5rem)) clamp(4rem, 3rem + 6vw, 8rem);
}
.error-page {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: center;
}
.error-page__code {
  color: var(--electric-light);
  font: 700 clamp(4rem, 3rem + 6vw, 7rem) / 1 var(--font-display);
  letter-spacing: -0.04em;
}
.error-page__title {
  margin-top: 0.5rem;
  color: var(--white);
  font-size: var(--fs-h2);
}
.error-page__text {
  margin: 1rem 0 2rem;
}

/* 8. Pied de page --------------------------------------------------------- */
.site-footer {
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  background: #000f26;
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
  border-top: 1px solid rgba(90, 169, 255, 0.12);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer__pitch {
  max-width: 22rem;
  margin-top: 1.25rem;
}
.site-footer__tagline {
  margin-top: 0.75rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}
.site-footer__title {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer__col li + li {
  margin-top: 0.55rem;
}
.site-footer__link {
  transition: color var(--dur) var(--ease);
}
a.site-footer__link:hover {
  color: var(--white);
}
.site-footer__link.is-soon {
  color: rgba(180, 195, 224, 0.55);
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs);
}
.site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--dur) var(--ease);
}
.site-footer__top:hover {
  color: var(--white);
}

/* Responsive : tablette */
@media (max-width: 1024px) {
  .hero__content {
    max-width: 40rem;
  }
  .hero__visual {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 820px);
    margin: 1.25rem auto 0;
    transform: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent),
      linear-gradient(180deg, transparent 0, #000 8%, #000 84%, transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent),
      linear-gradient(180deg, transparent 0, #000 8%, #000 84%, transparent);
  }
  .expertise__panel .feature-card::before {
    display: none;
  }
  .expertise__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expertise__panel .feature-card + .feature-card {
    border-left: 0;
  }
  .expertise__panel .feature-card:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .expertise__panel .feature-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .custom__inner,
  .about__inner,
  .apps__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* Responsive : mobile */
@media (max-width: 720px) {
  :root {
    --section-y: 3.25rem;
  }
  .section-heading {
    margin-bottom: 1.75rem;
  }
  .section-heading__intro {
    margin-top: 0.8rem;
    font-size: var(--fs-md);
  }
  .hero {
    padding-block: calc(var(--header-h) + 1.75rem) 6rem;
  }
  .hero__lead {
    margin-top: 1.1rem;
    font-size: var(--fs-md);
  }
  .hero__actions {
    margin-top: 1.6rem;
    gap: 0.75rem;
  }
  .hero__actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .hero__visual {
    width: 100%;
    margin-top: 1rem;
  }
  .quote-soon,
  .quote-soon__label {
    width: 100%;
  }
  .quote-soon__label {
    justify-content: center;
  }
  .expertise {
    margin-top: -4rem;
  }
  .about__points {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .about__point {
    padding: 0.9rem 1rem;
  }
  .steps {
    gap: 0.6rem;
  }
  .step {
    gap: 1rem;
    padding: 1rem 1.1rem;
  }
  .custom__intro .section-heading {
    margin-bottom: 1.5rem;
  }
  .custom__actions {
    margin-top: 1.5rem;
  }
  .custom__actions .btn {
    width: 100%;
  }
  .availability {
    max-width: none;
  }
  .expertise__panel,
  .apps__grid {
    grid-template-columns: 1fr;
  }
  .expertise__panel .feature-card:nth-child(even) {
    border-left: 0;
  }
  .expertise__panel .feature-card + .feature-card {
    border-top: 1px solid var(--line);
  }
  .feature-card {
    gap: 0.85rem;
    padding: 1rem 1.1rem;
  }
  .feature-card .icon-tile {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .feature-card .icon-tile .icon {
    width: 22px;
    height: 22px;
  }
  .feature-card__icon {
    width: 66px;
    height: 44px;
    border-radius: 11px;
  }
  .feature-card__text {
    margin-top: 0.2rem;
  }
  .deliverables {
    gap: 0.5rem;
  }
  .deliverables__item {
    padding: 0.7rem 0.8rem;
    gap: 0.55rem;
  }
  .deliverables__icon {
    width: 42px;
    height: 28px;
    border-radius: 7px;
  }
  .cta-band {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .cta-band__icon {
    width: 84px;
    height: 56px;
    border-radius: 12px;
  }
  .cta-band__action .btn {
    width: 100%;
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.25rem;
  }
  .site-footer__col:last-child {
    grid-column: 1 / -1;
  }
}

/* 10. Accueil sur ordinateur : calage sur la maquette ----------------------
   Référence : maquette 1536 × 1024 (en-tête, bandeau, expertises, applications et appel
   à l'action tiennent sur un écran). Les tailles sont exprimées en vw pour garder les
   proportions de la maquette entre 1025 et 1920 px. */
@media (min-width: 1025px) {
  /* En-tête */
  .brand--md {
    gap: clamp(0.75rem, 1.3vw, 1.25rem);
  }
  .brand--md .brand__mark {
    width: clamp(96px, 9.6vw - 8px, 150px);
  }
  .brand--md .brand__divider {
    height: 46px;
  }
  .brand--md .brand__name {
    font-size: clamp(1.25rem, 2.64vw - 0.54rem, 2rem);
  }
  .brand--md .brand__descriptor {
    margin-top: 0.35rem;
    color: var(--silver);
    font-size: clamp(0.58rem, 0.82vw, 0.8rem);
    letter-spacing: 0.5em;
  }
  .nav__list {
    gap: clamp(0.1rem, 0.75vw, 0.85rem);
  }
  .nav__link {
    padding: 0.45rem clamp(0.55rem, 0.95vw, 1rem);
    font-size: clamp(0.9rem, 0.6rem + 0.48vw, 1.0625rem);
  }
  .nav__link[aria-current="page"] {
    border-radius: 8px;
  }
  .nav__cta {
    padding: 0.5em 1.05em;
    border-width: 2px;
    font-size: clamp(0.9rem, 0.6rem + 0.48vw, 1.0625rem);
  }
  .nav__cta .icon {
    width: 1.2em;
    height: 1.2em;
  }

  /* Bandeau */
  .hero {
    padding-block: calc(var(--header-h) + clamp(1rem, 1.6vw, 1.75rem)) clamp(2rem, 2.6vw, 3rem);
  }
  .hero__content {
    max-width: none;
    padding-left: clamp(0rem, 8vw - 3rem, 5rem);
  }
  .hero__title {
    gap: 0.25rem;
  }
  .hero__brand {
    font-size: clamp(2.6rem, 4.05vw, 4.4rem);
  }
  .hero__subtitle {
    font-size: clamp(1.45rem, 2.2vw, 2.4rem);
    line-height: 1.1;
  }
  .hero__tagline {
    font-size: clamp(1.25rem, 1.85vw, 2rem);
  }
  .hero__lead {
    max-width: 34.5vw;
    margin-top: 0.55rem;
    color: #e8effc;
    font-size: clamp(1rem, 1.24vw, 1.35rem);
    line-height: 1.36;
  }
  .hero__actions {
    gap: clamp(1rem, 1.4vw, 1.5rem);
    margin-top: clamp(1rem, 1.3vw, 1.4rem);
  }
  .hero__actions .btn--lg {
    padding: 0.7em 1.3em;
    border-radius: 10px;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  }
  .hero__actions .btn--outline {
    border-width: 2px;
  }
  /* MacBook + téléphone pliable : même zone que sur la maquette (ordinateur à partir du milieu,
     téléphone à droite). Le haut de l'écran de l'ordinateur arrive sur le filet de l'en-tête et
     passe devant ; tout ce qui est au-dessus de l'ordinateur est masqué pour ne jamais couvrir le menu.
     Repères du visuel (1672 × 941) : haut de l'ordinateur à 16 % de la hauteur = 4,23 % de la largeur. */
  .hero__visual {
    --w: 47vw;
    --lid: calc(var(--w) * 0.09);
    top: calc(var(--header-h) - 4px - var(--lid));
    left: calc(50% - 2.2vw);
    width: var(--w);
    transform: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 94%, transparent),
      linear-gradient(180deg, transparent 0, transparent calc(var(--lid) - 10px), #000 calc(var(--lid) - 2px), #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 94%, transparent),
      linear-gradient(180deg, transparent 0, transparent calc(var(--lid) - 10px), #000 calc(var(--lid) - 2px), #000 86%, transparent);
  }
  /* Fond du bandeau accordé au visuel (bleu nuit ardoise), halo bleu conservé côté texte. */
  .hero__glow {
    background:
      radial-gradient(45% 80% at 18% 30%, rgba(0, 120, 240, 0.28), transparent 70%),
      radial-gradient(40% 60% at 98% 10%, rgba(240, 192, 112, 0.08), transparent 70%),
      linear-gradient(90deg, var(--night) 0%, #0c2446 48%, #10284a 100%);
  }

  /* Expertises */
  .expertise {
    margin-top: -1.4rem;
  }
  .expertise__panel {
    border-radius: 20px;
  }
  .expertise__panel .feature-card {
    gap: clamp(0.7rem, 1vw, 1rem);
    padding: clamp(0.9rem, 1.15vw, 1.25rem) clamp(0.75rem, 1.05vw, 1.25rem);
  }
  .expertise .icon-tile {
    width: clamp(50px, 4vw, 68px);
    height: clamp(50px, 4vw, 68px);
  }
  .expertise .icon-tile .icon {
    width: 50%;
    height: 50%;
  }
  .expertise .feature-card__icon {
    width: clamp(66px, 5.1vw, 78px);
    height: clamp(44px, 3.4vw, 52px);
    border-radius: clamp(11px, 0.85vw, 13px);
  }
  .expertise .feature-card__title {
    font-size: clamp(0.9rem, 1.04vw, 1rem);
    letter-spacing: -0.02em;
  }
  .expertise .feature-card__text {
    margin-top: 0.2rem;
    color: var(--text);
    font-size: clamp(0.82rem, 0.98vw, 1.05rem);
    line-height: 1.35;
  }

  /* Applications */
  .apps {
    padding-block: clamp(1rem, 1.6vw, 1.75rem) clamp(1rem, 1.6vw, 1.75rem);
  }
  .apps .section-heading {
    margin-bottom: clamp(0.9rem, 1.1vw, 1.25rem);
    padding-left: clamp(0rem, 1.5vw, 1.5rem);
  }
  .apps .section-heading__title {
    font-size: clamp(1.75rem, 2.35vw, 2.6rem);
  }
  .apps .section-heading__bar {
    width: 58px;
    height: 5px;
    margin-top: 0.6rem;
  }
  .apps .section-heading__intro {
    margin-top: 0.6rem;
    color: var(--ink);
    font-size: clamp(1rem, 1.17vw, 1.25rem);
  }
  .apps__grid {
    gap: clamp(1.25rem, 1.7vw, 1.75rem);
  }

  /* Appel à l'action */
  .contact {
    padding-bottom: clamp(2.5rem, 4vw, 4rem);
  }
  .cta-band {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: 0.8rem clamp(1.5rem, 5.8vw, 5.75rem) 0.8rem clamp(1.5rem, 6.8vw, 6.75rem);
  }
  .cta-band__text {
    padding-left: clamp(1.5rem, 2.6vw, 2.75rem);
    border-left: 2px solid rgba(255, 255, 255, 0.45);
  }
  .cta-band__title {
    font-size: clamp(1.3rem, 1.72vw, 1.85rem);
  }
  .cta-band__text p {
    margin-top: 0.25rem;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  }
  .quote-soon {
    gap: 0.3rem;
  }
  .quote-soon__label {
    padding: 0.6em 1.2em 0.6em 1.5em;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
  }
  .quote-soon__note {
    font-size: 0.78rem;
  }
}
@media (min-width: 1440px) {
  .expertise .feature-card__title {
    white-space: nowrap;
  }
}
/* Le visuel passe devant l'en-tête uniquement en haut de page et avec le menu complet. */
@media (min-width: 1101px) {
  .hero__visual {
    z-index: 60;
  }
  .hero__inner {
    z-index: 61;
  }
  .site-header.is-scrolled ~ main .hero__visual {
    z-index: 1;
  }
}

/* Écrans de plus de 1920 px (larges et ultra-larges) : le bandeau garde exactement ses proportions de 1920 px.
   Les textes ne grandissent plus au-delà ; sans ce plafond, le visuel (47vw) devenait plus haut que le bandeau
   et l'ordinateur et le téléphone étaient coupés en haut et en bas. Valeurs = celles calculées à 1920 px. */
@media (min-width: 1921px) {
  .hero__visual {
    --w: 902px;
    left: calc(50% - 42px);
  }
  .hero__lead {
    max-width: 662px;
  }
}

/* 9. Animations (discrètes, désactivées si l'utilisateur le demande) ------ */
@media (prefers-reduced-motion: no-preference) {
  /*
   * Apparition progressive : seuls les blocs situés SOUS la ligne de flottaison au
   * chargement reçoivent .reveal-pending (posé par main.js). Tout ce qui est visible
   * à l'ouverture de la page ne dépend donc d'aucune animation ni d'aucun script.
   */
  [data-reveal] {
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  [data-reveal].reveal-pending {
    opacity: 0;
    transform: translateY(18px);
  }
  .hero__wave--1 {
    animation: wave-drift 14s ease-in-out infinite alternate;
  }
  .hero__wave--2 {
    animation: wave-drift 18s ease-in-out infinite alternate-reverse;
  }
  .hero__wave--3 {
    animation: wave-drift 22s ease-in-out infinite alternate;
  }
  /* Bandeau : texte et boutons jamais masqués ; le visuel glisse légèrement sans disparaître. */
  .hero__visual img {
    animation: settle 1.1s var(--ease);
  }
  .anim-dash {
    stroke-dasharray: 600;
    animation: dash 6s linear infinite;
  }
}
@keyframes wave-drift {
  from {
    transform: translateX(-2%) translateY(0);
  }
  to {
    transform: translateX(2%) translateY(-12px);
  }
}
@keyframes settle {
  from {
    transform: translateY(14px);
  }
  to {
    transform: none;
  }
}
@keyframes dash {
  to {
    stroke-dashoffset: -1200;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Très petits écrans : liste du sur-mesure sur une colonne (icône officielle + libellé complet) */
@media (max-width: 379px) {
  .deliverables {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   10. Pages applications (Lot 2, palier A) — /applications et /applications/{slug}
   Bandeau dédié (.page-hero) : les règles .hero calées sur la maquette de l'accueil ne s'appliquent pas.
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + clamp(1.75rem, 1.25rem + 2vw, 3rem)) clamp(2.75rem, 2rem + 3vw, 4.5rem);
  background: var(--night);
  color: var(--on-dark-muted);
}
.page-hero__inner {
  position: relative;
  z-index: 2;
}
.page-hero__title {
  margin-top: 0.9rem;
  color: var(--white);
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-hero__intro {
  max-width: 62ch;
  margin-top: 1rem;
  font-size: var(--fs-lg);
  line-height: 1.6;
}

/* Fil d'Ariane */
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--on-dark-muted);
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  color: var(--gold);
}
.breadcrumb__link {
  color: var(--electric-light);
  text-decoration: none;
}
.breadcrumb__link:hover {
  text-decoration: underline;
}
.breadcrumb [aria-current="page"] {
  color: var(--white);
}

/* Liste des applications */
.apps.apps--page {
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}

/* Bandeau d'une application */
.app-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.app-hero__badge {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.3em 0.85em;
  border-radius: 999px;
  background: var(--grad-gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.app-hero__badge + .page-hero__title {
  margin-top: 0.6rem;
}
.app-hero__tagline {
  margin-top: 0.6rem;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
}
.app-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  color: var(--white);
}
.app-hero__visual .app-visual {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(90, 169, 255, 0.18);
}

/* Présentation + « En bref » */
.app-overview__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}
.app-overview__text {
  max-width: 68ch;
  margin-top: 1rem;
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.7;
}
.app-facts {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.app-facts__label {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.app-facts__availability {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.app-facts__status {
  margin-top: 0.35rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.app-facts__note {
  margin-top: 0.4rem;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.app-facts__block {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.app-facts__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}
.app-facts__platforms .chip {
  gap: 0.4em;
}
.app-facts__platforms .chip .icon {
  width: 1.1em;
  height: 1.1em;
}
.app-facts__list {
  margin: 0;
}
.app-facts__row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.75rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.app-facts__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.app-facts__row dt {
  color: var(--muted);
}
.app-facts__row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

/* Fonctionnalités */
.section--surface {
  background: var(--surface);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-grid__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.feature-grid__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--night);
  color: var(--gold);
}
.feature-grid__icon .icon {
  width: 18px;
  height: 18px;
}
.feature-grid__title {
  color: var(--ink);
  font-size: 1rem;
}
.feature-grid__text {
  margin-top: 0.3rem;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* Captures */
.app-screens .section-heading {
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.screens {
  display: grid;
  gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.screens + .screens {
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.screens--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.screens--mobile {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  max-width: 1100px;
}
.screens__figure {
  margin: 0;
}
.screens__link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000c1d;
  box-shadow: 0 0 0 1px rgba(90, 169, 255, 0.2), 0 20px 40px -24px rgba(0, 0, 0, 0.9);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.screens--mobile .screens__link {
  border-radius: 22px;
}
.screens__link:hover,
.screens__link:focus-visible {
  box-shadow: 0 0 0 2px var(--electric-light), 0 24px 44px -24px rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}
.screens__img {
  display: block;
  width: 100%;
  height: auto;
}
.screens__caption {
  margin-top: 0.6rem;
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

/* Mentions importantes (juste après la présentation, avant les fonctionnalités) */
.app-notices {
  margin-top: calc(-1 * var(--section-y) + clamp(1.5rem, 1rem + 1.5vw, 2.5rem));
}
.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: clamp(1.1rem, 1rem + 0.8vw, 1.6rem);
  border: 1px solid rgba(200, 146, 60, 0.35);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius);
  background: #fffaf0;
}
.notice + .notice {
  margin-top: 1rem;
}
.notice__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--night);
  color: var(--gold);
}
.notice__icon .icon {
  width: 20px;
  height: 20px;
}
.notice__title {
  color: var(--ink);
  font-size: 1.05rem;
}
.notice__text {
  margin-top: 0.35rem;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* Découvrir aussi */
.app-more {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.app-more__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.app-more__title {
  color: var(--ink);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
}
.app-more__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--ink);
}

@media (max-width: 1024px) {
  .app-hero__inner,
  .app-overview__inner {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .feature-grid,
  .screens--wide {
    grid-template-columns: 1fr;
  }
  .screens--mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-hero__actions .btn,
  .app-more__actions .btn {
    width: 100%;
  }
  .app-facts__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* ==========================================================================
   11. Formulaires (/contact, /devis) et page À propos (Lot 2, palier B)
   ========================================================================== */
.form-section {
  padding-top: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  background: var(--surface);
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}
.form-card {
  padding: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 24px 60px -36px rgba(10, 22, 51, 0.35);
}
.form__legend-note {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
}
.field--full,
.field--textarea,
.field--radios,
.field--checkboxes,
.field--consent,
.field--file {
  grid-column: 1 / -1;
}
.form__step {
  min-width: 0;
  margin: 0 0 1.75rem;
  padding: 0 0 1.75rem;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.form__step--last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.form__step-title {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.1rem;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 700;
}
.form__step-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold);
  font-size: 0.9rem;
}

/* Champs */
.field {
  min-width: 0;
}
.field__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field__label {
  display: block;
  margin-bottom: 0.4rem;
  padding: 0;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.field__required {
  color: #b42318;
}
.field__optional {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 400;
}
.field__hint {
  margin: -0.15rem 0 0.5rem;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.field__control {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #c3cee3;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.field__control {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.55;
}
select.field__control {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - 0.8rem) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field__control--file {
  padding: 0.55rem;
  color: var(--text);
  font-size: var(--fs-sm);
}
.field__control--file::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 8px;
  background: var(--night);
  color: var(--white);
  font: 600 var(--fs-sm) var(--font-display);
  cursor: pointer;
}
.field__control:hover {
  border-color: #9fb1d1;
}
.field__control:focus {
  border-color: var(--electric);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 120, 240, 0.18);
}
.has-error .field__control {
  border-color: #b42318;
}
.has-error .field__control:focus {
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.15);
}
.field__error {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  margin-top: 0.45rem;
  color: #b42318;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.field__error-icon {
  flex: none;
  width: 1em;
  height: 1em;
  margin-top: 0.2em;
}

/* Choix (boutons radio, cases à cocher) */
.field__choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.5rem;
}
.choice {
  position: relative;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border: 1px solid #c3cee3;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover {
  border-color: #9fb1d1;
}
.choice:has(.choice__input:checked) {
  border-color: var(--electric);
  background: rgba(0, 120, 240, 0.06);
}
.choice:has(.choice__input:focus-visible) {
  box-shadow: 0 0 0 4px rgba(0, 120, 240, 0.18);
}
.choice__input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.05rem 0 0;
  accent-color: var(--electric-strong);
}
.choice--consent {
  border-style: dashed;
}
.has-error .choice {
  border-color: #e5b0ab;
}

/* Champ piège antispam : hors de l'écran, inaccessible au clavier et aux lecteurs d'écran */
.form-trap {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.6;
}
.form__actions {
  margin-top: 1.5rem;
}
.form__actions .btn {
  cursor: pointer;
}

/* Messages (confirmation, erreurs) */
.form-status {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  outline: none;
}
.form-status--success {
  border: 1px solid #a6d8b8;
  background: #effaf3;
}
.form-status--error {
  border: 1px solid #f0b8b2;
  background: #fff4f2;
}
.form-status:focus-visible {
  box-shadow: 0 0 0 4px rgba(0, 120, 240, 0.18);
}
.form-status__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
}
.form-status--success .form-status__icon {
  background: #1f7a45;
}
.form-status--error .form-status__icon {
  background: #b42318;
}
.form-status__icon .icon {
  width: 18px;
  height: 18px;
}
.form-status__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}
.form-status__text,
.form-status__ref {
  margin-top: 0.3rem;
  color: var(--text);
  font-size: var(--fs-sm);
}
.form-status__list {
  display: grid;
  gap: 0.3rem;
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  list-style: disc;
  font-size: var(--fs-sm);
}
.form-status__list a {
  color: #b42318;
  font-weight: 600;
}

/* Colonne latérale */
.form-aside {
  display: grid;
  gap: 1.25rem;
}
.form-aside__card {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
}
.form-aside__card--dark {
  border-color: rgba(90, 169, 255, 0.2);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(0, 120, 240, 0.3), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night));
  color: var(--on-dark-muted);
}
.form-aside__icon {
  width: 90px;
  height: 60px;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.form-aside__title {
  color: inherit;
  font-size: 1.15rem;
}
.form-aside__card--dark .form-aside__title {
  color: var(--white);
}
.form-aside__text {
  margin-top: 0.45rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.form-aside__card .btn {
  margin-top: 1.1rem;
}
.form-aside__links {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form-aside__links a {
  display: inline-flex;
  align-items: center;
  color: var(--electric-strong);
}
.form-aside__ext {
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.35em;
  vertical-align: -0.05em;
}
.form-aside__steps {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.form-aside__steps li {
  display: flex;
  gap: 0.8rem;
}
.form-aside__step-num {
  flex: none;
  color: var(--gold);
  font: 700 1rem / 1.4 var(--font-display);
}
.form-aside__step-title {
  color: var(--white);
  font-size: 1rem;
}
.form-aside__steps .form-aside__text {
  margin-top: 0.2rem;
}

/* À propos */
.about-values__grid {
  margin-top: 0;
}
.about-skills__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.about-skills__grid .feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .form__grid,
  .about-skills__grid {
    grid-template-columns: 1fr;
  }
  .field--half {
    grid-column: 1 / -1;
  }
  .form__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (min-width: 1025px) {
  .form-aside {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/* Bandeau d'appel : le vrai bouton « Demander un devis » (formulaires ouverts) reprend
   exactement le gabarit validé de la version « Bientôt » (.quote-soon__label). */
.cta-band__action .btn--gold {
  padding: 0.85em 1.1em 0.85em 1.4em;
  font-size: 1rem;
  font-weight: 700;
}
@media (min-width: 1025px) {
  .cta-band__action .btn--gold {
    padding: 0.6em 1.2em 0.6em 1.5em;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
  }
}

/* ==========================================================================
   12. Projets, actualités et pages légales (Lot 2, palier C)
   Uniquement les jetons de la charte v3 ; aucune règle existante n'est modifiée.
   ========================================================================== */
.pubs {
  background: var(--surface);
}
.pubs__empty {
  max-width: 46rem;
  margin-inline: auto;
  background: var(--white);
}
.pubs__empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.pubs__empty-links a,
.pubs__feed a,
.article__back,
.prose a {
  color: var(--electric-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pubs__feed {
  margin-top: 2rem;
  font-size: var(--fs-sm);
  text-align: center;
}

/* Filtre par catégorie */
.pub-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.pub-filter__item {
  padding: 0.45em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pub-filter__item:hover {
  border-color: var(--electric);
  color: var(--electric-strong);
}
.pub-filter__item[aria-current="page"] {
  border-color: var(--night);
  background: var(--night);
  color: var(--white);
}

/* Cartes */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.pub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pub-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.pub-card:focus-within {
  outline: 3px solid var(--electric);
  outline-offset: 2px;
}
.pub-card__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--night);
}
.pub-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
}
.pub-card--text {
  border-top: 4px solid var(--gold);
}
.pub-card__title {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.3;
}
.pub-card__link {
  color: inherit;
  text-decoration: none;
}
.pub-card__link::after {
  position: absolute;
  inset: 0;
  content: "";
}
.pub-card__link:focus-visible {
  outline: none;
}
.pub-card__excerpt {
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.pub-card__more {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--electric-strong);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.pub-card__more .icon {
  width: 16px;
  height: 16px;
}

/* Date et catégorie */
.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pub-meta__category {
  padding: 0.15em 0.65em;
  border-radius: 999px;
  background: var(--ice);
  color: var(--electric-strong);
}
.pub-meta--hero {
  margin-top: 1rem;
  color: var(--on-dark-muted);
}
.pub-meta--hero .pub-meta__category {
  background: rgba(24, 200, 248, 0.14);
  color: var(--electric-light);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}
.pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination__page,
.pagination__step {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 0.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.pagination__page[aria-current="page"] {
  border-color: var(--night);
  background: var(--night);
  color: var(--white);
}
.pagination__page:hover,
.pagination__step:hover {
  border-color: var(--electric);
}

/* Article */
.article__inner {
  max-width: 860px;
}
.article__cover {
  width: 100%;
  height: auto;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Texte long (articles, pages légales) */
.prose {
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.75;
}
.prose > * + * {
  margin-top: 1em;
}
.prose h2 {
  margin-top: 2.2em;
  color: var(--ink);
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  line-height: 1.25;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 1.8em;
  color: var(--ink);
  font-size: var(--fs-h3);
}
.prose ul {
  padding-left: 1.25rem;
  list-style: disc;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose strong {
  color: var(--ink);
}
.prose code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.9em;
}

/* Pages légales */
.legal__inner {
  max-width: 900px;
}
.legal-preview {
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}
.legal-list {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
.legal-list > div {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.legal-list dt {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.legal-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.legal-todo {
  padding: 0.1em 0.45em;
  border: 1px dashed var(--gold-deep);
  border-radius: 6px;
  background: #fffaf0;
  color: #8a5a12;
  font-size: 0.92em;
  font-weight: 600;
}
.legal-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.legal-table:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 2px;
}
.legal-table table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.legal-table th,
.legal-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--surface);
  color: var(--ink);
}
.legal-table tr:last-child td {
  border-bottom: 0;
}
.legal__updated {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: var(--fs-sm);
}

@media (max-width: 1100px) {
  .pub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .pub-grid {
    grid-template-columns: 1fr;
  }
  .legal-list > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  /* Tableau des durées : une carte par finalité, chaque valeur précédée de son intitulé */
  .legal-table {
    overflow: visible;
    border: 0;
  }
  .legal-table table {
    min-width: 0;
  }
  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .legal-table tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }
  .legal-table td {
    display: block;
    padding: 0.55rem 0.9rem;
  }
  .legal-table td::before {
    display: block;
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    content: attr(data-label);
  }
  .legal-table tr:last-child td {
    border-bottom: 1px solid var(--line);
  }
  .legal-table tr td:last-child {
    border-bottom: 0;
  }
}

/* Formulaire de contact : seul le champ utile au projet choisi est affiché (sans script ; navigateurs sans :has() :
   les deux champs restent visibles, chacun avec son aide). */
.form:has(#f-project option[value="cinoza"]:checked) .field--projet-autre,
.form:not(:has(#f-project option[value="cinoza"]:checked)) .field--projet-cinoza {
  display: none;
}
