/* =============================================================================
   1. Design tokens
============================================================================= */

:root {
  --color-red: #ff1a1a;
  --color-red-dark: #d40f0f;
  --color-cream: #fff6ea;
  --color-cream-warm: #fff8e5;
  --color-beige: #fff2e1;
  --color-deep-grey: #565a75;
  --color-white: #fff;
  --color-black: #000;

  --color-surface: var(--color-white);
  --color-text: var(--color-black);
  --color-text-muted: rgb(0 0 0 / 0.65);
  --color-text-subtle: rgb(0 0 0 / 0.5);
  --color-border: rgb(0 0 0 / 0.2);
  --color-border-light: rgb(255 255 255 / 0.25);
  --color-hover: rgb(0 0 0 / 0.05);

  --wordmark: url("../assets/icons/opera-wordmark.svg");
  --wordmark-ratio: 246 / 42;

  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Petrona", ui-serif, Georgia, serif;
  --font-mono: "Fragment Mono", ui-monospace, "SF Mono", monospace;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.85rem);
  --text-sm: clamp(0.85rem, 0.82rem + 0.18vw, 0.95rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.35rem, 1.15rem + 1vw, 2rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 2.2vw, 3rem);
  --text-3xl: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  --text-display: clamp(3.5rem, 1rem + 12vw, 11rem);

  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-normal: 1.6;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: clamp(3rem, 8vw, 6rem);

  --gutter: clamp(1.25rem, 7.5vw, 11rem);
  --container: 1100px;
  --header-height: 4.375rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  --border: 2px solid var(--color-border);
  --shadow-hard: -6px 6px 0 0 rgb(0 0 0 / 0.15);
  --shadow-hard-lg: -9px 9px 0 0 rgb(0 0 0 / 0.25);
  --shadow-soft: 0 2px 24px rgb(0 0 0 / 0.35);

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --duration: 0.3s;

  --z-base: 1;
  --z-content: 10;
  --z-sticky: 900;
  --z-header: 1000;
}

/* =============================================================================
   2. Polices
============================================================================= */

@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/Figtree-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fragment Mono";
  src: url("../assets/fonts/FragmentMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Petrona";
  src: url("../assets/fonts/Petrona-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =============================================================================
   3. Reset & base
============================================================================= */

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

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

body {
  margin: 0;
  padding-top: var(--header-height);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

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

img {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

:where(h1, h2, h3, h4, p, ul, ol) {
  margin-block: 0;
}

:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

.skip-link {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: calc(var(--z-header) + 1);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-white);
  border: var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--duration) var(--ease);
}

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

/* =============================================================================
   4. Typographie
============================================================================= */

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
}

/* =============================================================================
   5. En-tête & navigation
============================================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  padding-block: var(--space-xs);
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: background var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.site-header[data-scrolled] {
  background: var(--color-white);
  border-bottom-color: var(--color-border);
}

.header-content {
  width: min(90%, 100% - 2rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand img {
  width: 1.75rem;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}

.nav-group {
  position: relative;
}

.nav-group > button {
  padding: var(--space-xs) var(--space-lg);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: var(--text-sm);
}

.nav-divider {
  width: 1px;
  height: 1.25rem;
  background: var(--color-border);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  min-width: max-content;
  margin: 0;
  padding: var(--space-xs);
  list-style: none;
  display: grid;
  gap: var(--space-2xs);
  background: var(--color-white);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease),
    visibility var(--duration) var(--ease);
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu,
.nav-group:has([aria-expanded="true"]) .nav-menu {
  opacity: 1;
  visibility: visible;
}

.nav-menu a {
  display: block;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-decoration: none;
}

.nav-menu a:hover {
  background: var(--color-hover);
}

.nav-menu b {
  font-weight: 400;
}

.nav-menu span {
  color: var(--color-text-subtle);
}

.language-select {
  padding: var(--space-2xs) var(--space-xs);
  background: transparent;
  border: var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-inline-start: auto;
  padding: var(--space-xs);
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: translate var(--duration) var(--ease),
    rotate var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

/* =============================================================================
   6. Sections plein écran
============================================================================= */

.section {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.section--flush {
  margin-top: calc(var(--header-height) * -1);
}

.section--auto {
  min-height: 0;
}

.section-inner {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  padding-inline: var(--gutter);
}

/* =============================================================================
   7. Motifs — logotype & trames de carrés
============================================================================= */

/* La couleur des carrés suit `color` ; blanc par défaut */
.dither {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--color-white);
  pointer-events: none;
}

.wordmark {
  display: block;
  width: clamp(13rem, 44vw, 36rem);
  aspect-ratio: var(--wordmark-ratio);
  margin: 0;
  background: var(--color-red);
  -webkit-mask: var(--wordmark) no-repeat center / contain;
  mask: var(--wordmark) no-repeat center / contain;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/texture-grain.png");
  background-size: 420px;
  opacity: 0.2;
  pointer-events: none;
}

/* =============================================================================
   8. Composants
============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-lg);
  background: var(--color-white);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-red);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow var(--duration) var(--ease),
    translate var(--duration) var(--ease);
}

.btn:hover {
  box-shadow: var(--shadow-hard-lg);
  translate: 2px -2px;
}

.btn--inverted {
  background: var(--color-red);
  border-color: var(--color-border-light);
  color: var(--color-white);
}

/* Flèche PNG monochrome, recolorée par masque, après le libellé */
.btn--inverted::after {
  content: "";
  width: 0.8em;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url("../assets/icons/arrow.png") no-repeat center / contain;
  mask: url("../assets/icons/arrow.png") no-repeat center / contain;
  transition: translate var(--duration) var(--ease);
}

.btn--inverted:hover::after {
  translate: 2px 0;
}

.card {
  background: var(--color-white);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: var(--space-lg);
}

.on-image {
  color: var(--color-white);
  text-shadow: var(--shadow-soft);
}

/* Cadre d'image. Tant qu'il est vide, il marque l'emplacement d'une image à
   venir (cadre pointillé) ; y glisser un <img> suffit, sans rien changer
   d'autre. Écrire <div class="media"></div> sans espace à l'intérieur. */
.media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.media:empty {
  background: var(--color-hover);
  border: 2px dashed var(--color-border);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--square {
  aspect-ratio: 1;
}

/* Mise en page éditoriale : bandes pleine largeur séparées par des filets.
   Le pied de page porte déjà un filet en haut, d'où :last-child. */
.band-quote {
  padding: var(--space-3xl) var(--gutter);
  background: var(--color-surface);
  border-bottom: var(--border);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  text-align: center;
}

.band-quote :is(h1, h2) {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: var(--leading-tight);
}

/* Titre balisé comme tel, mais dans le registre du manifeste (mono) */
.band-quote--mono :is(h1, h2) {
  font: inherit;
}

/* Cible d'ancre : le titre ne passe pas sous l'en-tête fixe */
.band-quote[id] {
  scroll-margin-top: var(--header-height);
}

/* Trois colonnes : deux marges et une colonne centrale bordée de filets */
.ruled {
  display: grid;
  grid-template-columns:
    minmax(var(--space-md), 1fr) minmax(0, 72rem) minmax(var(--space-md), 1fr);
  background: var(--color-surface);
  border-bottom: var(--border);
}

.band-quote:last-child,
.ruled:last-child {
  border-bottom: 0;
}

.ruled-label {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding-block: var(--space-2xl);
  border-bottom: var(--border);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 400;
}

.ruled-label > * {
  grid-column: 2;
  padding-inline: var(--space-sm);
}

.ruled-label > span::before {
  content: "• ";
}

.ruled-cell {
  grid-column: 2;
  display: grid;
  padding: clamp(var(--space-md), 4vw, var(--space-2xl));
  border-inline: var(--border);
}

/* Cellules côte à côte dans la colonne bordée, l'une sous l'autre si la place
   manque. Le fond du conteneur transparaît dans l'écart et dessine le filet ;
   il ne couvre pas la bordure, sinon celle-ci s'assombrirait. */
.ruled-split {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--color-border) padding-box;
  border-inline: var(--border);
}

.ruled-split > * {
  padding: clamp(var(--space-md), 4vw, var(--space-2xl));
  background: var(--color-surface);
}

/* =============================================================================
   9. Accueil
============================================================================= */

.hero-home {
  background: var(--color-red);
  color: var(--color-white);
}

.hero-marquee {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow: hidden;
}

.marquee-row {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  width: max-content;
  gap: var(--space-md);
  animation: marquee-ltr 68s linear infinite;
}

.marquee-row:nth-child(even) {
  animation-name: marquee-rtl;
}

.marquee-row img {
  height: 100%;
  width: auto;
  max-width: none;
}

.hero-home .section-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.hero-home h1 {
  max-width: 14ch;
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: var(--leading-tight);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgb(180 0 0 / 0.5);
}

.hero-home .section-inner img {
  width: clamp(11rem, 34vw, 34rem);
  filter: drop-shadow(0 12px 30px rgb(120 0 0 / 0.35));
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  inset-inline: 0;
  text-align: center;
  z-index: var(--z-content);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-white);
  animation: nudge 2.4s ease-in-out infinite;
}

.light-sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
  background: linear-gradient(
    100deg,
    transparent 35%,
    rgb(255 255 255 / 0.15) 50%,
    transparent 65%
  );
  animation: sweep 11s linear infinite;
  pointer-events: none;
}

.product-card {
  gap: var(--space-xl);
}

.product-card img {
  width: 100%;
  border-radius: var(--radius-md);
}

/* Même format que la couverture d'Opera */
.product-card .media {
  aspect-ratio: 1600 / 820;
}

/* Mêmes tailles que les fonctionnalités d'Opera */
.product-card h3 {
  margin-top: var(--space-sm);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  font-weight: 400;
}

.product-card p {
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* =============================================================================
   10. Opera
============================================================================= */

.hero-opera {
  background: var(--color-cream);
}

.hero-opera .section-inner {
  display: grid;
  justify-items: center;
  gap: var(--space-md);
  text-align: center;
}

.hero-opera p {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
}

.action-bar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xs));
  z-index: var(--z-sticky);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-block: calc(var(--space-3xl) * -1) var(--space-xl);
  padding-inline: var(--gutter);
}

/* Fonctionnalités : texte et visuel alternés dans la colonne bordée */
.feature-list {
  display: grid;
  gap: var(--space-3xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.feature--reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.feature--reverse .feature-media {
  order: -1;
}

/* Variante empilée : visuel pleine largeur, titre et texte en dessous */
/* Côte à côte quand la place le permet, l'un sous l'autre sinon */
.feature-list--stacked {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  column-gap: var(--space-2xl);
}

.feature-list--stacked .feature {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
}

.feature-list--stacked .feature-media {
  order: -1;
  aspect-ratio: 3 / 2;
}

.feature-list--stacked .feature-text {
  gap: var(--space-sm);
  max-width: 60ch;
}

.feature-text {
  display: grid;
  gap: var(--space-xl);
  max-width: 34ch;
}

.feature h3 {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--leading-snug);
}

.feature p {
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
}

.feature-media {
  aspect-ratio: 16 / 11;
  background: var(--color-red);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Points clés : moteurs disposés en cercle, qui tourne lentement.
   Chaque étiquette tourne en sens inverse pour rester droite. */
.engine-orbit-wrap {
  --orbit-radius: min(15rem, 30vw);

  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  padding-block: calc(var(--space-3xl) + var(--space-xl));
  overflow: hidden;
}

.engine-orbit-wrap > * {
  grid-area: 1 / 1;
}

.engine-orbit {
  position: relative;
  width: calc(var(--orbit-radius) * 2);
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: orbit 60s linear infinite;
}

/* Trajectoire en pointillés */
.engine-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed var(--color-border);
  border-radius: 50%;
}

.engine-orbit li {
  --angle: calc(360deg / var(--n) * var(--i));

  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  transform: rotate(var(--angle)) translateY(calc(var(--orbit-radius) * -1))
    rotate(calc(var(--angle) * -1));
}

.engine-orbit span {
  display: block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-red);
  border: var(--border);
  border-color: var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: -3px 3px 0 0 rgb(0 0 0 / 0.15);
  font-size: var(--text-base);
  color: var(--color-white);
  white-space: nowrap;
  animation: orbit 60s linear infinite reverse;
}

.engine-orbit-core {
  width: clamp(2.5rem, 6vw, 3.5rem);
}

/* Widgets empilés : un widget passe automatiquement, en boucle
   (voir widget-stack.js). */
.widget-stack {
  padding-block: 0;
  /* Le texte change seul : ne jamais servir d'ancre de défilement,
     sinon le navigateur décale la page pour compenser */
  overflow-anchor: none;
}

.widget-stage {
  height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: var(--space-2xl);
}

.widget-caption {
  display: grid;
  gap: var(--space-lg);
}

.widget-caption h3,
.widget-caption h4 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: var(--leading-tight);
}

/* Hauteur réservée pour deux lignes : le bloc ne bouge pas d'un widget à l'autre */
.widget-caption p {
  min-height: 2lh;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.widget-cards {
  display: grid;
  width: min(100%, 26rem);
  justify-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-cards li {
  grid-area: 1 / 1;
  position: relative;
  aspect-ratio: 1;
  background: var(--color-red);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.15);
  opacity: 0;
  scale: 0.9;
  transition: opacity 0.5s var(--ease), rotate 0.5s var(--ease),
    scale 0.5s var(--ease), translate 0.5s var(--ease), filter 0.5s var(--ease);
}

/* Widgets de formats variés : contenus dans la carte carrée */
.widget-cards img {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

/* Le premier, puis deux widgets seulement en dessous */
.widget-cards [data-pos="0"] {
  z-index: 3;
  opacity: 1;
  scale: 1;
}

.widget-cards [data-pos="1"],
.widget-cards [data-pos="2"] {
  opacity: 1;
  scale: 0.97;
  filter: brightness(0.75);
}

.widget-cards [data-pos="1"] {
  z-index: 2;
  rotate: -5deg;
}

.widget-cards [data-pos="2"] {
  z-index: 1;
  rotate: 5deg;
}

/* Widget déjà vu : s'envole vers le haut */
.widget-cards [data-pos="past"] {
  z-index: 4;
  translate: 0 -30%;
  rotate: -8deg;
}

/* =============================================================================
   11. Contact
============================================================================= */

.contact {
  background: var(--color-red);
}

.contact .section-inner {
  display: grid;
  justify-items: center;
  gap: var(--space-3xl);
  text-align: center;
}

.contact h1 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.contact-card a {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.contact-card a:hover {
  color: var(--color-red);
}

.btn-copy {
  display: grid;
  place-items: center;
  padding: var(--space-xs);
  background: var(--color-red);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-md);
  color: var(--color-white);
  cursor: pointer;
}

.btn-copy[data-copied]::after {
  content: attr(data-copied);
  position: absolute;
  margin-block-start: -3.5rem;
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-black);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-white);
}

/* =============================================================================
   12. Équipe
============================================================================= */

.team {
  background: var(--color-red);
}

.team .section-inner {
  display: grid;
  justify-items: center;
  gap: var(--space-3xl);
  padding-block: var(--space-3xl);
  text-align: center;
}

.team h1 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-list > li {
  display: grid;
  justify-items: center;
  gap: var(--space-md);
}

.team-card {
  display: grid;
  justify-items: center;
  gap: var(--space-xs);
  width: min(16rem, 70vw);
  padding: var(--space-lg);
  background: var(--color-white);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
    scale(var(--tilt-scale, 1));
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.team-card:hover {
  box-shadow: var(--shadow-hard-lg);
}

.team-card img {
  width: 7rem;
  height: 7rem;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.team-card b {
  font-weight: 400;
  font-size: var(--text-lg);
}

.team-card span {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}

/* =============================================================================
   13. Pages documentaires (confidentialité, aide)
============================================================================= */

.docs {
  width: min(92%, var(--container));
  margin-inline: auto;
  padding-block: var(--space-3xl);
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}

.docs-sidebar h1 {
  margin-block: var(--space-2xs) var(--space-xs);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
}

.docs-updated {
  margin-block-end: var(--space-xl);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.docs-tabs {
  display: grid;
  gap: var(--space-2xs);
}

.docs-tabs button {
  padding: var(--space-xs) var(--space-sm);
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: start;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.docs-tabs button:hover {
  background: var(--color-hover);
  color: var(--color-text);
}

.docs-tabs button[aria-selected="true"] {
  background: var(--color-red);
  border-color: var(--color-border-light);
  color: var(--color-white);
}

.docs-panels {
  min-width: 0;
  max-width: 72ch;
  overflow-wrap: break-word;
}

.docs-panel {
  display: grid;
  gap: var(--space-md);
  animation: fade-in 0.25s var(--ease);
}

.docs-panel[hidden] {
  display: none;
}

.docs-panel h2 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
}

.docs-panel h3 {
  margin-block-start: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-red);
}

.docs-panel ul {
  padding-inline-start: var(--space-lg);
  display: grid;
  gap: var(--space-xs);
}

.docs-panel code {
  padding: 0.15em 0.4em;
  background: var(--color-hover);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.docs-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--space-md);
  margin-block: var(--space-xs);
  padding: 0;
  list-style: none;
}

.docs-highlights li {
  padding: var(--space-md);
  background: var(--color-white);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  font-size: var(--text-sm);
}

.docs-highlights b {
  display: block;
  margin-block-end: var(--space-2xs);
  font-weight: 400;
  color: var(--color-red);
}

/* Pages à onglets (confidentialité, aide) — même grille éditoriale que l'accueil */

/* Fond blanc jusque sous l'en-tête transparent, raccord avec les bandes */
.page-editorial {
  background: var(--color-surface);
}

.page-updated {
  margin-block-start: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.chip-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.chip-tabs button {
  padding: var(--space-xs) var(--space-md);
  background: rgb(0 0 0 / 0.07);
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.chip-tabs button:hover {
  background: rgb(0 0 0 / 0.13);
}

.chip-tabs button[aria-selected="true"] {
  background: var(--color-red);
  color: var(--color-white);
}

.tab-panel {
  display: grid;
  gap: var(--space-md);
  max-width: 72ch;
  overflow-wrap: break-word;
  animation: fade-in 0.25s var(--ease);
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel h2 {
  margin-block-end: var(--space-xs);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: var(--leading-snug);
}

.tab-panel h2:not(:first-child) {
  margin-block-start: var(--space-xl);
}

.tab-panel h3 {
  margin-block-start: var(--space-lg);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-red);
}

.tab-panel h3::before {
  content: "• ";
}

.tab-panel ul {
  padding-inline-start: var(--space-lg);
  display: grid;
  gap: var(--space-xs);
}

.tab-panel code {
  padding: 0.15em 0.4em;
  background: var(--color-hover);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

/* Cases séparées par des filets : le fond de la liste transparaît dans l'écart */
.tab-panel .tab-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2px;
  margin-block: var(--space-md);
  padding: 0;
  background: var(--color-border);
  border: var(--border);
  list-style: none;
}

.tab-highlights li {
  padding: var(--space-lg);
  background: var(--color-surface);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.tab-highlights b {
  display: block;
  margin-block-end: var(--space-xs);
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--color-text);
}

/* =============================================================================
   14. Design (état de l'art : logo, typographie, couleurs, icônes)
============================================================================= */

/* Rubrique : visuel, titre, courte description. Le lien éventuel du titre
   s'étend à toute la carte. */
.design-card,
.design-text {
  display: grid;
  align-content: start;
  gap: var(--space-sm);
}

.design-card {
  position: relative;
}

.design-card .media {
  margin-block-end: var(--space-xs);
}

/* Mêmes tailles que les fonctionnalités d'Opera */
:is(.design-card, .design-text) :is(h2, h4) {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--leading-snug);
}

:is(.design-card, .design-text) p {
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
}

.design-card a {
  text-decoration: none;
}

.design-card a::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Le fond de la cellule est opaque : un simple voile translucide laisserait
   transparaître le filet du conteneur */
.design-card:has(a):hover {
  background: linear-gradient(var(--color-hover), var(--color-hover)),
    var(--color-surface);
}

/* L'anneau de focus entoure la carte entière, pas seulement le titre */
.design-card:has(a:focus-visible) {
  outline: 3px solid var(--color-red);
  outline-offset: -3px;
}

.design-card a:focus-visible {
  outline: 0;
}

/* Logo */
.brand-logo {
  gap: var(--space-xl);
}

/* Logotype noir sur fond rouge. Le remplissage, en % de la largeur, garde au
   cadre les proportions de la maquette quelle que soit sa taille. */
.logo-banner {
  padding: 10%;
}

.logo-banner img {
  width: 100%;
}

.logo-variants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--space-sm), 3vw, var(--space-xl));
}

/* Typographie : chaque carte est composée dans la police qu'elle présente */
.specimen-list {
  display: grid;
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.specimen {
  display: grid;
  align-content: start;
  gap: var(--space-2xs);
  min-height: clamp(9rem, 22vw, 14rem);
  padding: clamp(var(--space-md), 3vw, var(--space-xl));
  border-radius: var(--radius-md);
}

.specimen--serif {
  background: var(--color-red);
  color: var(--color-beige);
  font-family: var(--font-serif);
}

.specimen--mono {
  background: var(--color-beige);
  color: var(--color-black);
  font-family: var(--font-mono);
}

.specimen--sans {
  background: var(--color-deep-grey);
  color: var(--color-white);
  font-family: var(--font-sans);
}

/* La ligne la plus large est la mono : 16 caractères à 0,6 em */
.specimen-sample {
  font-size: clamp(1.4rem, 0.5rem + 4.4vw, 3rem);
  line-height: var(--leading-tight);
  overflow-wrap: anywhere;
}

.specimen h4 {
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--leading-snug);
}

.specimen p {
  margin-block-start: var(--space-2xs);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

/* Couleurs : trois pastilles, puis deux plus larges */
.swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.swatch {
  grid-column: span 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-2xs);
  min-height: clamp(4.5rem, 12vw, 9rem);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  text-align: center;
}

.swatch:nth-child(n + 4) {
  grid-column: span 3;
}

.swatch span {
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
}

.swatch b {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 0.5rem + 1.6vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.swatch--red {
  background: var(--color-red);
  color: var(--color-white);
}

.swatch--beige {
  background: var(--color-beige);
  color: var(--color-black);
}

.swatch--grey {
  background: var(--color-deep-grey);
  color: var(--color-white);
}

.swatch--white {
  background: var(--color-white);
  border: var(--border);
  color: var(--color-black);
}

.swatch--black {
  background: var(--color-black);
  color: var(--color-white);
}

/* Composants : visuel à gauche, nom et description à droite */
.component-list {
  display: grid;
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.component-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.component-item .media {
  flex: none;
  width: clamp(11rem, 48vw, 28rem);
  aspect-ratio: 3 / 2;
}

/* Même fond gris que les pastilles d'icônes ; les visuels sont transparents */
.component-item .media:has(img) {
  background: var(--color-hover);
}

/* Widgets : tous dans le format du plus grand (music.png, 700 × 992) ;
   les plus petits sont centrés à la même échelle. */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-shot {
  display: grid;
  place-items: center;
  aspect-ratio: 700 / 992;
  padding: var(--space-md);
  margin-block-end: var(--space-xs);
  border-radius: var(--radius-md);
  background: var(--color-hover);
}

.widget-shot img {
  width: 100%;
  height: auto;
}

/* Icônes : une pastille par icône, puis son nom et son format. Les icônes
   Maestro sont dessinées au pixel : on les agrandit sans les lisser. */
.ruled-cell:has(> .icon-grid) {
  gap: var(--space-xl);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-xl) var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.icon-tile {
  flex: none;
  width: clamp(5rem, 14vw, 7.5rem);
  aspect-ratio: 1;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--color-hover);
  border-radius: var(--radius-md);
}

.icon-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-grid--maestro .icon-tile img {
  image-rendering: pixelated;
}

.icon-item h4 {
  overflow-wrap: anywhere;
}

/* =============================================================================
   15. Pied de page
============================================================================= */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--space-3xl) var(--space-lg);
  padding-inline: var(--gutter);
  border-top: var(--border);
  background: var(--color-red);
  color: var(--color-white);
}

.footer-dither {
  z-index: -1;
  opacity: 0.18;
}

.site-footer .grain {
  z-index: -1;
}

.footer-inner {
  max-width: 1400px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-3xl);
}

.site-footer a {
  text-decoration: none;
}

/* Appel à l'action */

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  align-items: flex-end;
  justify-content: space-between;
  padding-block-end: var(--space-3xl);
  border-bottom: 2px solid var(--color-border-light);
}

.footer-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  text-wrap: balance;
  max-width: 18ch;
}

/* Liens légaux */

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal a {
  transition: opacity var(--duration) var(--ease);
}

.footer-legal a:hover {
  opacity: 0.75;
}

/* Logotype géant — SVG recoloré par masque, pleine largeur de la rangée */

.footer-wordmark {
  width: 100%;
  aspect-ratio: 6358 / 766;
  background: currentColor;
  -webkit-mask: url("../assets/icons/maestro-wordmark.svg") no-repeat center / contain;
  mask: url("../assets/icons/maestro-wordmark.svg") no-repeat center / contain;
}

/* Barre inférieure */

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-xl);
  align-items: baseline;
  justify-content: space-between;
  padding-block-start: var(--space-lg);
  border-top: 2px solid var(--color-border-light);
  font-family: var(--font-mono);
}

.footer-bottom small,
.footer-top {
  font-size: var(--text-xs);
  color: rgb(255 255 255 / 0.75);
}

.footer-top:hover {
  color: var(--color-white);
}

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

/* =============================================================================
   16. Animations
============================================================================= */

/* Apparition au défilement (voir motion.js) : enfants décalés d'un cran */
.reveal > * {
  opacity: 0;
  translate: 0 1.5rem;
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease),
    filter 0.7s var(--ease);
}

.reveal > :nth-child(2) {
  transition-delay: 0.12s;
}

.reveal.is-revealed > * {
  opacity: 1;
  translate: 0 0;
  filter: none;
}

@keyframes marquee-ltr {
  from {
    translate: 0 0;
  }
  to {
    translate: -50% 0;
  }
}

@keyframes orbit {
  to {
    rotate: 360deg;
  }
}

@keyframes marquee-rtl {
  from {
    translate: -50% 0;
  }
  to {
    translate: 0 0;
  }
}

@keyframes sweep {
  from {
    translate: -100% 0;
  }
  to {
    translate: 100% 0;
  }
}

@keyframes bob {
  0%,
  100% {
    translate: var(--mx, 0) calc(var(--my, 0px) + var(--sy, 0px));
  }
  50% {
    translate: var(--mx, 0) calc(var(--my, 0px) + var(--sy, 0px) - 14px);
  }
}

@keyframes nudge {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 6px;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    translate: 0 4px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* =============================================================================
   17. Points de rupture
============================================================================= */

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-header:has(.nav-toggle[aria-expanded="true"]) {
    background: var(--color-white);
    border-bottom-color: var(--color-border);
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    translate: 0 7px;
    rotate: 45deg;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    translate: 0 -7px;
    rotate: -45deg;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    padding: var(--space-lg) 5%;
    background: var(--color-white);
    border-bottom: var(--border);
  }

  .site-nav[hidden] {
    display: none;
  }

  .nav-group > button {
    width: 100%;
    padding-inline: 0;
    text-align: start;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    cursor: default;
  }

  .nav-menu {
    position: static;
    translate: none;
    padding: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding-inline: 0;
    font-size: var(--text-base);
  }

  .nav-divider {
    width: auto;
    height: 1px;
  }

  .language-select {
    align-self: start;
  }

  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .docs-sidebar {
    position: static;
    min-width: 0;
  }

  .docs-tabs {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-block-end: var(--space-xs);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .docs-tabs::-webkit-scrollbar {
    display: none;
  }

  .docs-tabs button {
    white-space: nowrap;
    border-color: var(--color-border);
  }

  .docs-tabs button[aria-selected="true"] {
    border-color: var(--color-border-light);
  }

  .hero-home .section-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .hero-home h1 {
    max-width: none;
  }

  .feature,
  .feature--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .feature--reverse .feature-media {
    order: 0;
  }

  .feature-text {
    gap: var(--space-sm);
    max-width: none;
  }

  .widget-stage {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: center;
    text-align: center;
  }

  .widget-cards {
    width: min(100%, 18rem);
  }
}

@media (max-width: 700px) {
  /* Trois boutons sur une seule rangée, collés sous l'en-tête au défilement */
  .action-bar {
    flex-wrap: nowrap;
    justify-content: center;
    gap: var(--space-xs);
    margin-block: calc(var(--space-2xl) * -1) var(--space-lg);
    padding-inline: var(--space-md);
  }

  .action-bar .btn,
  .product-actions .btn {
    flex: 0 1 auto;
    justify-content: center;
    gap: var(--space-2xs);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    white-space: nowrap;
    box-shadow: -3px 3px 0 0 rgb(0 0 0 / 0.15);
  }

  .action-bar .btn:hover,
  .product-actions .btn:hover {
    box-shadow: -4px 4px 0 0 rgb(0 0 0 / 0.25);
  }

  .engine-orbit-wrap {
    --orbit-radius: 32vw;
  }

  .engine-orbit span {
    max-width: 8rem;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    text-align: center;
    white-space: normal;
  }


  .team-list {
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* =============================================================================
   18. Préférences utilisateur
============================================================================= */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .dither,
  .grain,
  .scroll-hint {
    display: none;
  }

  .section {
    min-height: 0;
  }

  .docs-panel[hidden] {
    display: grid;
  }
}

/* Design : panneaux de la page State of Art (onglets Brand / UI Design) */
.design-panel[hidden] {
  display: none;
}

/* Barre d'onglets seule dans son bloc : le filet du .ruled suffit */
.ruled--tabs > .ruled-label {
  border-bottom: 0;
}

/* Section sombre : fond #171715, filets gris clair */
.ruled--dark {
  --color-surface: #171715;
  --color-text: var(--color-white);
  --color-text-muted: rgb(255 255 255 / 0.65);
  --border: 2px solid #c9c9c6;
  color: var(--color-text);
}

/* Dark Mode : comparateur clair / sombre. Le sombre est rogné de gauche à
   --pos ; le curseur natif, invisible, reçoit la souris, le tactile et le clavier. */
.compare {
  --pos: 50;
  position: relative;
  margin-top: var(--space-lg);
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius-md);
  user-select: none;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-top {
  clip-path: inset(0 calc((100 - var(--pos)) * 1%) 0 0);
}

.compare-handle {
  position: absolute;
  inset-block: 0;
  left: calc(var(--pos) * 1%);
  width: 2px;
  margin-left: -1px;
  background: #c9c9c6;
  pointer-events: none;
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3rem;
  height: 3rem;
  transform: translate(-50%, -50%);
  background: var(--color-white) url("../assets/icons/ui/maestro/compare-handle.png") center / 80% no-repeat;
  border: 2px solid #c9c9c6;
  border-radius: var(--radius-md);
  image-rendering: pixelated;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.compare:has(.compare-range:focus-visible) {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}
