/*
 * Feuille de style de bytechnum.com.
 * Palette, typographie et composants tirés du Brand Book TECHNUM, édition 01, 2026.
 * Hors palette : --error pour les erreurs de formulaire, --on-blue et --on-charcoal pour les textes
 * secondaires posés sur le bleu foncé et sur le charbon.
 */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}

:root {
  --charcoal: #373536;
  --charcoal-soft: #5e5c5d;
  --charcoal-muted: #8a8889;
  --blue: #405fe0;
  --blue-dark: #2846b9;
  --ice: #e9edff;
  --off-white: #f7f8fc;
  --white: #ffffff;
  --line: #e5e7ed;
  --error: #b42318;
  --on-blue: #dde4ff;
  --on-charcoal: #dcdadb;

  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Poppins', 'Segoe UI', system-ui, sans-serif;

  --text-small: 0.875rem;
  --text-body: 1.0625rem;
  --text-lead: 1.1875rem;
  --text-h3: 1.3125rem;
  --text-product: 1.625rem;
  --text-h2: clamp(1.75rem, 1.45rem + 0.9vw, 2.0625rem);
  --text-h1: clamp(2.5rem, 1.9rem + 2.2vw, 3.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --radius-control: 8px;
  --radius-frame: 12px;
  --radius-panel: 16px;

  --container: 80rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 66ch;
  --header-height: 4.5rem;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--blue);
  text-decoration-line: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--blue-dark);
  text-decoration-line: underline;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

[hidden] {
  display: none !important;
}

main:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  top: -10rem;
  left: var(--space-4);
  z-index: 20;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--white);
}

/* Boutons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

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

.button--primary {
  background: var(--blue);
  color: var(--white);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--blue-dark);
  color: var(--white);
}

.button--secondary {
  border: 2px solid var(--blue);
  background: var(--white);
  color: var(--blue-dark);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: var(--blue-dark);
  background: var(--ice);
  color: var(--blue-dark);
}

.button--light {
  background: var(--white);
  color: var(--blue-dark);
}

.button--light:hover,
.button--light:focus-visible {
  background: var(--ice);
  color: var(--blue-dark);
}

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.site-header__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  max-width: var(--container);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter);
}

.site-header__logo {
  display: block;
  margin-right: auto;
  padding-block: var(--space-2);
}

.site-header__logo img {
  width: 9.25rem;
}

.site-header__cta {
  display: none;
  min-height: 2.75rem;
}

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: 0 0 var(--space-2);
  list-style: none;
}

.site-nav__list a {
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  color: var(--blue-dark);
}

/* Sur petit écran, le bouton de l'en-tête est masqué : le menu propose le contact */

.site-nav__list .site-nav__contact a {
  color: var(--blue);
}

.site-nav__list .site-nav__contact a:hover,
.site-nav__list .site-nav__contact a:focus-visible {
  color: var(--blue-dark);
}

.site-nav__toggle {
  display: none;
}

/* Menu replié quand le script est actif */

.js .site-nav {
  order: 0;
  width: auto;
}

.js .site-nav__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.js .site-nav__list {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  padding: var(--space-2) var(--gutter) var(--space-4);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.js .site-nav[data-open='true'] .site-nav__list {
  display: flex;
}

.js .site-nav__list a {
  display: block;
  padding: var(--space-3) 0;
}

/* Accueil : fond bleu de la marque, accolades décoratives, registre sur carte blanche */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-7) 0 calc(var(--space-9) + 3rem);
  background: var(--blue-dark);
  color: var(--white);
}

.hero :focus-visible {
  outline-color: var(--white);
}

.hero__braces {
  position: absolute;
  z-index: -1;
  top: 0.75rem;
  right: -1rem;
  display: flex;
  gap: 3rem;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 11rem;
  font-weight: 700;
  line-height: 0.9;
  pointer-events: none;
  user-select: none;
}

.hero__braces span:first-child {
  transform: translateX(-1.5rem);
}

.hero__braces span:last-child {
  transform: translateX(1.5rem);
}

.hero__inner {
  display: grid;
  gap: var(--space-7);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__title {
  max-width: 13ch;
  font-size: clamp(2.5rem, 1.6rem + 3vw, 3.875rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 34rem;
  margin-top: var(--space-5);
  color: var(--on-blue);
  font-size: var(--text-lead);
  line-height: 1.65;
}

/* Sur petit écran, le bouton et le lien s'empilent toujours : leur disposition ne dépend plus
   de la police des boutons, qui arrive après le premier affichage et décalait le registre. */
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
}

.hero__more {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.hero__more:hover,
.hero__more:focus-visible {
  color: var(--white);
  text-decoration-color: var(--white);
}

@media (min-width: 30rem) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (min-width: 60rem) {
  .hero {
    padding: var(--space-8) 0 calc(var(--space-9) + 4rem);
  }

  /* Les accolades partagent la cellule du registre : centrées sur la carte, elles en dépassent
     de --brace-overhang de chaque côté, plus leur écart, sans toucher le texte. */
  .hero__braces {
    --brace-overhang: -1rem;
    position: relative;
    top: auto;
    right: auto;
    display: block;
    grid-area: 1 / 2;
    align-self: center;
    height: 0;
    margin-inline: calc(-1 * var(--brace-overhang));
    font-size: 20rem;
  }

  .hero__braces span {
    position: absolute;
    top: 0;
    margin-top: -0.45em;
  }

  .hero__braces span:first-child {
    left: 0;
    transform: translateX(-4.5rem);
  }

  .hero__braces span:last-child {
    right: 0;
    transform: translateX(4.5rem);
  }

  .hero__text {
    grid-area: 1 / 1;
  }

  .register {
    grid-area: 1 / 2;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: var(--space-8);
  }
}

/* À partir de 80rem, la colonne du registre ne grandit plus et laisse de la place à côté du texte. */
@media (min-width: 80rem) {
  .hero__braces {
    --brace-overhang: 2.25rem;
    font-size: 29rem;
  }
}

/* Registre des produits : l'élément marquant de la page */

.register {
  --track-empty: var(--ice);
  padding: var(--space-6);
  border-radius: var(--radius-panel);
  background: var(--white);
  color: var(--charcoal);
}

.register :focus-visible {
  outline-color: var(--blue);
}

.register__title {
  font-size: 1.0625rem;
}

.register__list {
  margin-top: var(--space-3);
  padding: 0;
  list-style: none;
}

.register__item + .register__item {
  border-top: 1px solid var(--line);
}

.register__link {
  display: grid;
  grid-template-areas:
    'icon name name'
    'icon track stage';
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-3) 0;
  color: var(--charcoal);
}

.register__link:hover,
.register__link:focus-visible {
  color: var(--charcoal);
  text-decoration: none;
}

.register__icon {
  grid-area: icon;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  object-fit: contain;
}

.register__name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 600;
}

.register__link:hover .register__name,
.register__link:focus-visible .register__name {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.register__link .track {
  grid-area: track;
}

.register__stage {
  grid-area: stage;
  color: var(--charcoal-soft);
  font-size: var(--text-small);
}

.register__updated {
  margin-top: var(--space-3);
  color: var(--charcoal-soft);
  font-size: var(--text-small);
}

/* Pistes d'état : quatre bits, repris de l'ancienne page « Bientôt en ligne » */

.track {
  display: inline-flex;
  gap: 3px;
}

.track__bit {
  position: relative;
  width: 0.875rem;
  height: 0.375rem;
  overflow: hidden;
  border-radius: 2px;
  background: var(--track-empty, var(--line));
}

.track__bit--done::after {
  position: absolute;
  inset: 0;
  background: var(--blue);
  content: '';
}

.stages {
  display: grid;
  /* 1fr garde au moins la largeur du mot : à 320 px, « Conception » élargit un peu sa colonne au lieu de déborder. */
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-width: 28rem;
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
}

.stages__step {
  position: relative;
  padding-top: var(--space-3);
  color: var(--charcoal-soft);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.stages__step::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.375rem;
  border-radius: 2px;
  background: var(--line);
  content: '';
}

.stages__step--done::before {
  background: var(--blue);
}

.stages__step[aria-current='step'] {
  color: var(--charcoal);
  font-weight: 500;
}

/* Mouvement : une seule séquence au chargement, puis des réponses aux gestes.
   Tout se déclenche ici, et rien quand l'appareil demande moins de mouvement. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .track--animated .track__bit--done::after {
    transform-origin: left center;
    animation: bit-in 360ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(500ms + var(--row-delay, 0ms) + var(--bit-delay, 0ms));
  }

  .track__bit:nth-child(2) {
    --bit-delay: 130ms;
  }

  .track__bit:nth-child(3) {
    --bit-delay: 260ms;
  }

  .track__bit:nth-child(4) {
    --bit-delay: 390ms;
  }

  .register__item:nth-child(2) {
    --row-delay: 80ms;
  }

  .register__item:nth-child(3) {
    --row-delay: 160ms;
  }

  .register__item:nth-child(4) {
    --row-delay: 240ms;
  }

  .hero__braces span {
    animation: braces-open 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .product-strip li {
    animation: tile-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(700ms + var(--tile-delay, 0ms));
  }

  .product-strip li:nth-child(2) {
    --tile-delay: 90ms;
  }

  .product-strip li:nth-child(3) {
    --tile-delay: 180ms;
  }

  .product-strip li:nth-child(4) {
    --tile-delay: 270ms;
  }

  .product-tile:hover,
  .product-tile:focus-visible {
    transform: translateY(-4px);
  }

  .js .product:not([hidden]) {
    animation: panel-in 300ms ease both;
  }
}

@keyframes bit-in {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Sans « to », chaque accolade finit à sa position de repos, déjà écartée. */
@keyframes braces-open {
  from {
    opacity: 0;
    transform: translateX(0);
  }
}

@keyframes tile-rise {
  from {
    opacity: 0;
    transform: translateY(1.75rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(0.625rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Vignettes des produits : elles chevauchent le bas de l'accueil et ouvrent l'onglet du produit */

.product-strip {
  position: relative;
  max-width: var(--container);
  margin: -6.5rem auto 0;
  padding: 0 var(--gutter);
}

.product-strip__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.product-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--white);
  color: var(--charcoal);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.product-tile:hover,
.product-tile:focus-visible {
  border-color: var(--blue);
  color: var(--charcoal);
  text-decoration: none;
}

.product-tile__shot {
  display: flex;
  justify-content: center;
  height: 7.5rem;
  overflow: hidden;
  padding: var(--space-3) var(--space-3) 0;
  background: var(--ice);
}

.product-tile__shot img {
  width: 100%;
  height: 100%;
  border-radius: 6px 6px 0 0;
  object-fit: cover;
  object-position: top;
}

.product-tile__shot--phone img {
  width: 48%;
  border-radius: 12px 12px 0 0;
}

.product-tile__body {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.product-tile__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.product-tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

.product-tile__summary {
  color: var(--charcoal-soft);
  font-size: var(--text-small);
  line-height: 1.5;
}

/* Pastilles d'état */

.chip {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.chip--en-service {
  background: var(--blue);
  color: var(--white);
}

.chip--beta {
  background: var(--ice);
  color: var(--blue-dark);
}

.chip--pilote,
.chip--conception {
  border: 1px solid var(--line);
  background: var(--off-white);
  color: var(--charcoal);
}

@media (min-width: 60rem) {
  .product-strip {
    margin-top: -7.5rem;
  }

  .product-strip__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .product-tile__shot {
    height: 9.75rem;
    padding: var(--space-4) var(--space-4) 0;
  }
}

/* Sections : un titre en tête, puis le contenu ; chaque section a son fond */

.section {
  padding: var(--space-8) 0;
}

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-7);
  margin-bottom: var(--space-6);
}

.section__title {
  font-size: clamp(1.875rem, 1.45rem + 1.4vw, 2.5rem);
  line-height: 1.1;
}

.section__context {
  max-width: 34rem;
  color: var(--charcoal-soft);
}

.section--ice {
  background: var(--ice);
}

.section--charcoal {
  background: var(--charcoal);
  color: var(--white);
}

.section--blue {
  background: var(--blue-dark);
  color: var(--white);
}

.section--charcoal .section__context {
  color: var(--on-charcoal);
}

.section--blue .section__context {
  color: var(--on-blue);
}

.section--charcoal :focus-visible,
.section--blue :focus-visible {
  outline-color: var(--white);
}

/* Vidéo de présentation : le lecteur garde la proportion de la vidéo avant tout chargement */

.video__frame {
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--charcoal);
}

.video__player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--charcoal);
}

@media (min-width: 60rem) {
  .section {
    padding: var(--space-9) 0;
  }

  .section__head {
    margin-bottom: var(--space-7);
  }

  .section--split .section__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
    column-gap: var(--space-8);
  }

  .section--split .section__head {
    display: block;
    margin-bottom: 0;
  }

  .section--split .section__context {
    margin-top: var(--space-4);
  }
}

/* Produits : un panneau par produit ; le script les présente en onglets */

.product-tabs {
  display: flex;
  gap: var(--space-3);
  margin: 0 calc(var(--gutter) * -1) var(--space-6);
  padding: 0 var(--gutter) var(--space-2);
  overflow-x: auto;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
}

.product-tabs__tab {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-3);
  min-height: 3.5rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.product-tabs__tab:hover {
  border-color: var(--blue);
}

.product-tabs__tab[aria-selected='true'] {
  border-color: var(--blue);
  background: var(--ice);
}

.product-tabs__icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  object-fit: contain;
}

.product-tabs__label {
  display: grid;
}

.product-tabs__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-tabs__stage {
  color: var(--charcoal-soft);
  font-size: 0.75rem;
}

.product {
  display: grid;
  gap: var(--space-5);
}

.product + .product {
  margin-top: var(--space-8);
}

.js .product + .product {
  margin-top: 0;
}

/* Le navigateur défile lui-même vers le panneau visé par l'ancre : la marge garde la liste d'onglets
   visible au-dessus de lui (hauteur d'un onglet et écart, avec un peu de jeu). */
.js .products > .product {
  scroll-margin-top: 7.5rem;
}

.product:focus-visible {
  outline-offset: 6px;
}

.product__media {
  min-width: 0;
}

.product__frame {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 15rem;
  overflow: hidden;
  padding: var(--space-5) var(--space-5) 0;
  border-radius: var(--radius-panel);
  background: var(--ice);
}

.product__frame img {
  width: 100%;
  border-radius: 10px 10px 0 0;
}

.product__media--phone .product__frame img {
  width: min(13rem, 70%);
  border-radius: 22px 22px 0 0;
}

.product__host {
  margin-top: var(--space-2);
  color: var(--charcoal-soft);
  font-size: var(--text-small);
}

.product__name {
  font-size: var(--text-product);
}

.product__tagline {
  margin-top: var(--space-3);
  font-weight: 500;
}

.product__audience {
  margin-top: var(--space-2);
  color: var(--charcoal-soft);
}

.product__facts {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.product__facts dt {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
}

.product__facts dd {
  margin-top: var(--space-1);
  color: var(--charcoal-soft);
}

.product__note {
  margin-top: var(--space-4);
  padding-left: var(--space-3);
  border-left: 2px solid var(--blue);
  color: var(--charcoal-soft);
  font-size: var(--text-small);
}

.product__action {
  margin-top: var(--space-6);
}

@media (min-width: 60rem) {
  .product-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 var(--space-7);
    padding: 0;
    overflow: visible;
  }

  .product {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-8);
  }

  .product__frame {
    height: 25rem;
    padding: var(--space-6) var(--space-6) 0;
  }
}

/* Autres réalisations : cartes blanches sur fond bleu clair */

.projects {
  display: grid;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.project {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-panel);
  background: var(--white);
}

.project__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
}

.project__name {
  font-size: 1.25rem;
}

.project__nature {
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  background: var(--ice);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 500;
}

.project__description {
  color: var(--charcoal-soft);
}

.project__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
}

@media (min-width: 48rem) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .project {
    padding: var(--space-6);
  }
}

/* Services : fond charbon, un filet bleu par service, exemples en pastilles */

.services {
  display: grid;
  gap: var(--space-7);
  padding: 0;
  list-style: none;
}

.service {
  padding-top: var(--space-4);
  border-top: 2px solid var(--blue);
}

.service__name {
  font-size: 1.25rem;
  font-weight: 600;
}

.service__description {
  margin-top: var(--space-2);
  color: var(--on-charcoal);
}

.service__examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: 0;
  list-style: none;
}

.service__example {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.8125rem;
}

a.service__example:hover,
a.service__example:focus-visible {
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

@media (min-width: 48rem) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-7);
  }
}

/* Méthode : une vraie séquence, donc numérotée ; cinq étapes reliées par un trait */

.steps {
  position: relative;
  display: grid;
  gap: var(--space-6);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps::before {
  position: absolute;
  top: 1.375rem;
  bottom: 1.375rem;
  left: calc(1.375rem - 1px);
  width: 2px;
  background: rgba(255, 255, 255, 0.3);
  content: '';
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: var(--space-4);
  counter-increment: step;
}

.step::before {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-weight: 700;
  content: counter(step);
}

.step__title {
  align-self: center;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.step__text {
  margin-top: var(--space-2);
  color: var(--on-blue);
  font-size: 0.9375rem;
}

.commitments {
  max-width: var(--measure);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--on-blue);
}

@media (min-width: 60rem) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .steps::before {
    top: calc(1.375rem - 1px);
    right: 1.375rem;
    bottom: auto;
    left: 1.375rem;
    width: auto;
    height: 2px;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-4);
  }

  .step::before {
    grid-row: auto;
  }

  .step__title {
    align-self: start;
  }
}

/* Contact : formulaire en carte bordée, contact direct sur une carte bleue */

.contact {
  display: grid;
  gap: var(--space-6);
}

.contact .section__head {
  margin-bottom: 0;
}

.contact-direct {
  align-self: start;
  padding: var(--space-6);
  border-radius: var(--radius-panel);
  background: var(--blue);
  color: var(--white);
}

.contact-direct :focus-visible {
  outline-color: var(--white);
}

.contact-direct__title {
  font-size: 1.1875rem;
}

.contact-direct__action {
  width: 100%;
  margin-top: var(--space-5);
}

.contact-direct__list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
}

.contact-direct__label {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
}

.contact-direct__list a {
  color: var(--white);
  overflow-wrap: anywhere;
  text-decoration-line: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.contact-direct__list a:hover,
.contact-direct__list a:focus-visible {
  color: var(--white);
  text-decoration-color: var(--white);
}

@media (min-width: 75rem) {
  .contact {
    grid-template-areas:
      'head form'
      'direct form';
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: var(--space-6) var(--space-8);
  }

  .contact .section__head {
    display: block;
    grid-area: head;
  }

  .contact .section__context {
    margin-top: var(--space-4);
  }

  .contact-form-area {
    grid-area: form;
  }

  .contact-direct {
    grid-area: direct;
  }
}

/* Pages de message : 404 et erreur temporaire */

.page-message {
  padding: var(--space-9) 0;
}

.page-message__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-message h1 {
  max-width: 24ch;
  font-size: var(--text-h2);
}

.page-message p {
  max-width: var(--measure);
  margin-top: var(--space-4);
  color: var(--charcoal-soft);
}

/* Pied de page */

.site-footer {
  background: var(--charcoal);
  color: var(--white);
}

.site-footer :focus-visible {
  outline-color: var(--white);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-5);
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter) var(--space-5);
}

.site-footer__brand img {
  width: 10rem;
}

.site-footer__title {
  color: var(--ice);
  font-size: 0.875rem;
  font-weight: 600;
}

.site-footer ul {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: 0;
  list-style: none;
}

/* Sur petit écran, les liens de navigation se posent côte à côte : le pied de page reste court. */
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-footer a {
  color: var(--white);
}

/* Chaque lien occupe toute la hauteur de sa ligne : la cible garde au moins 24 px. */
.site-footer li a {
  display: inline-block;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ice);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter) var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-small);
}

/* Grands écrans */

/* Registre sur une ligne quand sa carte est assez large : pleine largeur sous 60rem,
   colonne de droite à partir de 80rem. Entre les deux, le nom garde sa propre ligne. */
@media (min-width: 30rem) and (max-width: 59.99rem), (min-width: 80rem) {
  .register__link {
    grid-template-areas: 'icon name track stage';
    grid-template-columns: 1.75rem minmax(0, 1fr) auto 6.5rem;
  }
}

@media (min-width: 40rem) {
  .site-header__cta {
    display: inline-flex;
  }

  .site-nav__contact {
    display: none;
  }
}

@media (min-width: 60rem) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-header__logo {
    margin-right: 0;
  }

  .site-nav,
  .js .site-nav {
    order: 0;
    width: auto;
    margin-left: auto;
  }

  .site-nav__list,
  .js .site-nav__list {
    position: static;
    display: flex;
    flex-direction: row;
    gap: var(--space-6);
    padding: 0;
    border: 0;
    background: none;
  }

  .js .site-nav__list a {
    display: inline;
    padding: 0;
  }

  .site-nav__toggle,
  .js .site-nav__toggle {
    display: none;
  }

  .site-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--space-6);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  /* Sur grand écran, chaque liste redevient une colonne, en plus petit. */
  .site-footer ul,
  .site-footer nav ul {
    display: grid;
    gap: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
  }
}

/* Grands écrans : pied de page sur quatre colonnes, celle du contact assez large pour l'adresse e-mail.
   En dessous, ces colonnes seraient trop étroites pour l'adresse e-mail et le téléphone. */

@media (min-width: 75rem) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .site-footer__brand {
    grid-column: auto;
  }
}

/* Formulaire de contact */

.contact-form-area {
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--white);
}

@media (min-width: 48rem) {
  .contact-form-area {
    padding: var(--space-6);
  }
}

.contact-form {
  display: grid;
  gap: var(--space-5);
}

.form-field {
  display: grid;
  gap: var(--space-2);
}

.form-field__label {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-field__hint {
  color: var(--charcoal-soft);
  font-family: var(--font-text);
  font-weight: 400;
}

.form-field__help {
  color: var(--charcoal-soft);
  font-size: var(--text-small);
}

.form-control {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--charcoal-muted);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
}

textarea.form-control {
  min-height: 10rem;
  resize: vertical;
}

.form-control:focus-visible {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.form-control[aria-invalid='true'] {
  border-color: var(--error);
}

.form-error {
  color: var(--error);
  font-size: var(--text-small);
  font-weight: 500;
}

.form-consent {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-items: start;
  gap: var(--space-2) var(--space-3);
}

.form-consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--blue);
}

.form-consent__link,
.form-consent .form-error {
  grid-column: 2;
  font-size: var(--text-small);
}

.form-status {
  margin-bottom: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-control);
}

.form-status--success {
  background: var(--ice);
  color: var(--blue-dark);
  font-weight: 500;
}

.form-status--error {
  border: 1px solid var(--error);
  background: var(--white);
  color: var(--error);
}

.contact-form__submit {
  justify-self: start;
}

.button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Un numéro de téléphone ne se coupe jamais */

a[href^='tel:'] {
  white-space: nowrap;
}

/* Pages légales */

.legal {
  padding: var(--space-8) 0 var(--space-9);
}

.legal__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.legal__content {
  max-width: var(--measure);
}

.legal h1 {
  font-size: var(--text-h2);
}

.legal__updated {
  margin-top: var(--space-3);
  color: var(--charcoal-soft);
  font-size: var(--text-small);
}

.legal h2 {
  margin-top: var(--space-7);
  font-size: var(--text-h3);
}

.legal p,
.legal ul {
  margin-top: var(--space-3);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: var(--space-2);
}
