/* ============================================================
   Novarcade — design tokens
   ============================================================ */
:root {
  /* Brand colors — exact values from STYLE_GUIDE.md */
  --red: #A12B2B;
  --red-dark: #7C2222;
  --red-darker: #4E1515;
  --red-tint-06: rgba(161, 43, 43, 0.06);
  --red-tint-12: rgba(161, 43, 43, 0.12);
  --red-tint-24: rgba(161, 43, 43, 0.24);

  --charcoal: #2D2D2D;
  --charcoal-deep: #1C1C1C;
  --slate: #4B4B4B;

  --off-white: #F4F4F4;
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* Layered, color-tinted shadows */
  --shadow-sm: 0 1px 2px rgba(28, 28, 28, 0.07), 0 1px 1px rgba(161, 43, 43, 0.03);
  --shadow-md: 0 10px 28px -10px rgba(28, 28, 28, 0.22), 0 4px 10px -6px rgba(161, 43, 43, 0.08);
  --shadow-lg: 0 32px 70px -20px rgba(20, 20, 20, 0.30), 0 10px 24px -10px rgba(161, 43, 43, 0.12);
  --shadow-glow: 0 0 0 1px rgba(161, 43, 43, 0.16), 0 14px 32px -10px rgba(161, 43, 43, 0.35);

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 84px;

  /* Gouttière latérale des sections — le carrousel mobile s'en sert pour
     déborder jusqu'au bord de l'écran tout en restant aligné sur le texte. */
  --gutter: var(--space-4);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-2);
  z-index: 200;
  background: var(--charcoal);
  color: var(--off-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: var(--space-2); }

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

section[id] { scroll-margin-top: var(--header-h); }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.5rem, 4.4vw + 1rem, 4rem); }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3rem); }
h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-2);
}
.eyebrow-light { color: #E8A9A9; }

.lead {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 46ch;
  margin-top: var(--space-3);
}
.lead-light { color: #C9C6C2; }

/* Multi-paragraph body copy (client texts from textes.md) */
.prose {
  margin-top: var(--space-3);
  max-width: 62ch;
}
.prose p {
  font-size: 1.125rem;
  color: var(--slate);
}
.prose p + p { margin-top: var(--space-3); }

strong { color: var(--charcoal); font-weight: 600; }
.lead-light strong { color: var(--white); }

/* ============================================================
   Layout helpers
   ============================================================ */
.section { padding: var(--space-8) 0; position: relative; }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* État d'envoi. Le double `:hover`/`:active` porte une spécificité supérieure
   à `.btn-primary:hover`, pour neutraliser le soulèvement quel que soit
   l'ordre des règles. */
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn:disabled:hover,
.btn:disabled:active { transform: none; }
.btn-primary:disabled:hover {
  background: var(--red);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--red);
  color: var(--off-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow-glow); }
.btn-primary:focus-visible { outline-color: var(--charcoal); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(45, 45, 45, 0.22);
}
.btn-ghost:hover { border-color: var(--charcoal); background: rgba(45, 45, 45, 0.04); }

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn-block { width: 100%; padding: 1rem; font-size: 1rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(244, 244, 244, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
  transition: box-shadow 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(20, 20, 20, 0.35);
  background: rgba(244, 244, 244, 0.94);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.main-nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  padding: 0.4rem 0.1rem;
  transition: color 0.25s var(--ease-out);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--red);
  transition: right 0.3s var(--ease-spring);
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--charcoal); }
.main-nav a:hover::after,
.main-nav a:focus-visible::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Signature element — cabinet bezel / corner brackets + glow
   ============================================================ */
.cabinet-frame,
.bezel-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: var(--shadow-lg);
}
.cabinet-frame::before,
.bezel-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(closest-side, rgba(161, 43, 43, 0.45), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  opacity: 0.8;
}
.cabinet-frame img,
.bezel-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.bezel-card { background: var(--white); }
.bezel-card img { aspect-ratio: auto; }
.bezel-card::before { opacity: 0.35; }

/* Zoom d'illustration au survol — purement décoratif : ces cartes ne sont pas
   cliquables, donc pas de curseur zoom-in, pas de loupe, pas de soulèvement.
   Même amplitude et même easing que la galerie de la section présentation. */
.zoom-on-hover { overflow: hidden; }
.zoom-on-hover img { transition: transform 0.6s var(--ease-spring); }
.zoom-on-hover:hover img { transform: scale(1.05); }

.bracket {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--red);
  z-index: 2;
  opacity: 0.85;
}
.bracket-tl { top: 14px; left: 14px; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.bracket-tr { top: 14px; right: 14px; border-left: none; border-bottom: none; border-top-right-radius: 6px; }
.bracket-bl { bottom: 14px; left: 14px; border-right: none; border-top: none; border-bottom-left-radius: 6px; }
.bracket-br { bottom: 14px; right: 14px; border-left: none; border-top: none; border-bottom-right-radius: 6px; }

/* ============================================================
   Section 1 — Produit
   ============================================================ */
.produit { padding-top: calc(var(--space-8) + var(--space-3)); }
.produit-intro { max-width: 62ch; }

.produit-gallery {
  margin-top: var(--space-7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.gallery-card { display: flex; flex-direction: column; gap: var(--space-2); }

.gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  cursor: zoom-in;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.gallery-trigger:hover,
.gallery-trigger:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.gallery-trigger::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(closest-side, rgba(161, 43, 43, 0.45), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  opacity: 0.8;
}
.gallery-trigger img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.6s var(--ease-spring);
}
.gallery-trigger:hover img,
.gallery-trigger:focus-visible img { transform: scale(1.05); }

.gallery-zoom {
  position: absolute;
  z-index: 2;
  top: var(--space-2);
  right: var(--space-2);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(28, 28, 28, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}
.gallery-trigger:hover .gallery-zoom,
.gallery-trigger:focus-visible .gallery-zoom { opacity: 1; transform: scale(1); }
.gallery-zoom svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-card figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ============================================================
   Section 2 — Personnalisation
   ============================================================ */
.personnalisation { background: var(--white); }
.personnalisation .section-inner { display: flex; justify-content: center; }
.personnalisation-intro {
  max-width: 62ch;
  text-align: center;
}
.personnalisation-intro .prose { margin-left: auto; margin-right: auto; }

/* ============================================================
   Section 3 — Technologie (PC gaming + performance)
   ============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.tech-visual { max-width: 480px; margin: 0 auto; width: 100%; }

/* ============================================================
   Section 4 — Licences
   ============================================================ */
.licences { background: var(--white); }
.licences-intro { max-width: 62ch; }

/* Visuels d'illustration — non cliquables, non zoomables (cf. BRIEF.md).
   Colonne de visuels à gauche pour alterner avec le rythme de la section technologie ;
   l'ordre du DOM garde le titre en premier pour la lecture mobile. */
.licences-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
}
.licences-intro { grid-column: 2; grid-row: 1; }
.licences-visuals { grid-column: 1; grid-row: 1; }

.licences-visuals { display: flex; flex-direction: column; gap: var(--space-4); }

/* Capture d'écran : marge sombre autour de l'image pour que les coins rouges se posent
   sur le cadre et non sur les jaquettes, où ils devenaient illisibles. */
.bezel-card-dark {
  background: var(--charcoal-deep);
  padding: var(--space-4);
}
.bezel-card-dark::before { opacity: 0.5; }
.bezel-card-dark img { border-radius: var(--radius-sm); }

.illus-card { display: flex; flex-direction: column; gap: var(--space-2); }
.illus-card figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Plaque logo : fond blanc pur, comme le JPEG, pour que le logo flotte sans cadre visible */
.logo-plaque {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid rgba(45, 45, 45, 0.10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.logo-plaque img { width: 100%; max-width: 185px; }

/* ============================================================
   Section 5 — Contact (dark band)
   ============================================================ */
.contact {
  background: var(--charcoal);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.contact::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(161, 43, 43, 0.22), transparent 70%);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-7);
  align-items: start;
}
.contact-intro h2 { color: var(--white); }

.contact-form-wrap {
  background: var(--charcoal-deep);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.form-row { margin-bottom: var(--space-3); }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C9C6C2;
  margin-bottom: 0.5rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  color: var(--white);
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(244, 244, 244, 0.35); }
.form-row input:hover,
.form-row textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.07);
}

/* Piège à robots — invisible à l'écran sans recourir à `display: none`,
   que certains robots savent détecter et contourner. */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: var(--space-2);
}
.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--red);
  cursor: pointer;
}
.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
/* Échappe au traitement mono-majuscules de `.form-row label` : c'est une
   phrase à lire, pas une étiquette de champ. */
.form-consent label {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(244, 244, 244, 0.75);
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.form-note {
  font-size: 0.8rem;
  color: rgba(244, 244, 244, 0.6);
  margin-bottom: var(--space-3);
}

.form-status {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form-status.is-pending { color: rgba(244, 244, 244, 0.6); }
.form-status.is-success { color: #7FC98F; }
.form-status.is-error { color: #E38B8B; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-bottom: var(--space-4);
}
.footer-logo { height: 34px; width: auto; opacity: 0.9; }
.footer-meta { font-size: 0.82rem; color: rgba(244, 244, 244, 0.5); }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(6px);
}
.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: min(1000px, 92vw);
  width: 100%;
}
.lightbox-panel:focus-visible { outline: none; }
.lightbox-figure {
  position: relative;
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--charcoal-deep);
  box-shadow: var(--shadow-lg);
}
.lightbox-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--charcoal-deep);
}
.lightbox-caption {
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--off-white);
  background: var(--charcoal-deep);
}
.lightbox-close {
  position: absolute;
  top: calc(-1 * var(--space-6));
  right: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(244, 244, 244, 0.12);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out);
}
.lightbox-close:hover { background: rgba(244, 244, 244, 0.22); }
.lightbox-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--off-white);
  stroke-width: 2;
  stroke-linecap: round;
}
.lightbox-nav {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(244, 244, 244, 0.1);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}
.lightbox-nav:hover { background: var(--red); transform: scale(1.05); }
.lightbox-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--off-white);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .lightbox-panel { flex-direction: column; }
  .lightbox-close { top: calc(-1 * var(--space-5)); }
  .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
  .lightbox-prev { left: -4px; }
  .lightbox-next { right: -4px; }
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .main-nav a::after { transition: none; }
  .zoom-on-hover img { transition: none; }
  .zoom-on-hover:hover img { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .tech-grid,
  .contact-grid,
  .licences-grid {
    grid-template-columns: 1fr;
  }
  /* Empilé, le schéma vient après le texte qu'il illustre */
  .tech-visual { max-width: 420px; }
  .lead { max-width: 60ch; }

  /* Retour au flux naturel : titre et texte, puis les visuels */
  .licences-grid { gap: var(--space-6); }
  .licences-intro,
  .licences-visuals { grid-column: 1; grid-row: auto; }
  .licences-visuals { max-width: 460px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--off-white);
    border-bottom: 1px solid rgba(45, 45, 45, 0.08);
    box-shadow: var(--shadow-md);
    padding: var(--space-3) var(--space-4) var(--space-4);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), visibility 0.3s;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .main-nav a { display: block; padding: 0.5rem 0; font-size: 1rem; }
  .header-actions .btn-sm { display: none; }
  .nav-toggle { display: flex; }

  .form-row-split { grid-template-columns: 1fr; }

  .produit-gallery { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

/* ---- Format téléphone ---- */
@media (max-width: 560px) {
  :root { --space-8: 5rem; --space-7: 3.5rem; --gutter: var(--space-3); }
  .cta-row { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  /* Carrousel : une photo à la fois, la suivante dépasse pour signaler le swipe.
     Débordement jusqu'au bord de l'écran, mais aligné sur le texte au repos. */
  .produit-gallery {
    display: flex;
    max-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    gap: var(--space-3);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .produit-gallery::-webkit-scrollbar { display: none; }
  .gallery-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  /* Au tactile le survol reste « collé » après un tap : on retire le soulèvement,
     mais on le garde au focus clavier. */
  .gallery-trigger:hover { transform: none; }

  /* Visuels du catalogue : format réduit pour ne pas monopoliser l'écran.
     La marge sombre reste à 32px, sinon les coins rouges repassent sur les jaquettes. */
  .licences-visuals { max-width: 300px; gap: var(--space-3); }
  .logo-plaque { padding: var(--space-2) var(--space-3); }
  .logo-plaque img { max-width: 150px; }
}
