:root {
  --nav-h: 44px;
  --bleu-nuit: #0c1b3a;
  --nuit-fonce: #060b17;
  --noir: #010205;
  --bleu-ciel: #8eabc2;
  --gris-sombre: #3a3a3c;
  --texte: #1d1d1f;
  --action: #0071e3;
  --action-survol: #0077ed;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }

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

/* Bandeau */

.bandeau {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, var(--bleu-nuit), var(--nuit-fonce));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1024px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 14px;
}

.nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s;
}

.nav a:hover { color: #fff; }
.nav :focus-visible { outline-color: #fff; outline-offset: -2px; }
.logo img { display: block; width: 26px; height: 26px; }
.panier svg { width: 18px; height: 18px; }

.message {
  margin: 0;
  padding: 11px 22px;
  background: var(--bleu-nuit);
  color: #e8e8ed;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.016em;
  text-align: center;
}

.message:empty { display: none; }
.message a { color: #2997ff; }

/* Tuiles : une par écran, fonds alternés blanc / bleu ciel */

.tuile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* vh et non svh : la tuile remplit aussi l'écran quand le navigateur mobile masque ses barres */
  min-height: calc(100vh - var(--nav-h));
  padding: 64px 22px;
  text-align: center;
  scroll-margin-top: var(--nav-h);
}

.tuile:nth-child(even) { background: var(--bleu-ciel); }
/* Barre de séparation sous chaque tuile sauf la dernière, toute la largeur : 2px noir, 16px gris sombre, 2px noir */
.tuile:not(:last-child) {
  border-bottom: 20px solid var(--gris-sombre);
  border-image: linear-gradient(to top, var(--noir) 2px, var(--gris-sombre) 2px 18px, var(--noir) 18px) 0 0 20;
}

h2 {
  margin: 0;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.005em;
}

.sous-titre {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: .007em;
}

.bouton-panier {
  display: inline-flex;
  margin-top: 24px;
  padding: 10px 26px;
  border-radius: 980px;
  background: var(--action);
  color: #fff;
  transition: background-color .3s;
}

.bouton-panier:hover { background: var(--action-survol); }
.bouton-panier svg { width: 24px; height: 24px; }

.tuile img {
  flex: none;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(52vh, 520px);
  margin-top: 48px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}

#accueil img { margin-top: 0; border-radius: 0; box-shadow: none; }

.masque {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1068px) {
  h2 { font-size: 48px; }
  .sous-titre { font-size: 24px; }
}

@media (max-width: 734px) {
  .nav { padding: 0 8px; }
  .nav a { padding: 0 8px; }
  .tuile { padding: 48px 16px; }
  h2 { font-size: 32px; line-height: 1.125; letter-spacing: .004em; }
  .sous-titre { font-size: 19px; line-height: 1.21; letter-spacing: .012em; }
  .tuile img { margin-top: 36px; }
}
