/* ============================================
   STYLES PRINCIPAUX — Maxime BILLE Webdesigner
   ============================================ */

@import url('variables.css');

/* --- POLICES LOCALES --- */

/* Inter (variable font — latin-ext) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter (variable font — latin) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cabinet Grotesk */
@font-face {
  font-family: 'Cabinet Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/cabinet-grotesk-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Cabinet Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/cabinet-grotesk-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Cabinet Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/cabinet-grotesk-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Cabinet Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/cabinet-grotesk-800.woff2') format('woff2');
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-gray-800);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

img {
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p + p { margin-top: var(--space-md); }

::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

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

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

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

.section--compact {
  padding: clamp(2.5rem, 2rem + 2.5vw, 4.5rem) 0;
}

.section--compact .section__header {
  margin-bottom: var(--space-xl);
}

.section--compact .section__subtitle {
  display: none;
}

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

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

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

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
  line-height: var(--leading-relaxed);
}

.section--dark .section__subtitle {
  color: var(--color-gray-300);
}

/* --- HEADER / NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

[data-theme="dark"] .site-header {
  background: rgba(15, 20, 25, 0.92);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header {
    background: rgba(15, 20, 25, 0.92);
  }
}

.site-header.scrolled {
  border-bottom-color: var(--color-gray-100);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  color: var(--color-primary);
}

.site-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.625rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-white) !important;
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

/* Hidden on desktop */
.nav-links__header,
.nav-links__theme {
  display: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  justify-content: center;
  z-index: calc(var(--z-header) + 1);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

  /* Hide header theme toggle on mobile (moved inside drawer) */
  .site-header__inner > .theme-toggle {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-lg) var(--space-md);
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition-slow), visibility var(--transition-slow);
    z-index: calc(var(--z-header) + 1);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Drawer header */
  .nav-links__header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-gray-100);
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    font-size: var(--text-md);
    color: var(--color-primary);
  }

  .nav-links__header .site-logo__mark {
    width: 30px;
    height: 30px;
  }

  /* Nav links styling */
  .nav-links a:not(.nav-cta) {
    font-size: var(--text-base);
    padding: var(--space-sm) var(--space-sm);
    border-radius: var(--radius-md);
    color: var(--color-gray-600);
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .nav-links a:not(.nav-cta)::after {
    display: none;
  }

  .nav-links a:not(.nav-cta):hover {
    background: var(--color-gray-100);
  }

  .nav-links a.active:not(.nav-cta) {
    color: var(--color-accent);
    font-weight: var(--font-semibold);
  }

  /* CTA in drawer */
  .nav-cta {
    margin-top: auto;
    justify-content: center;
    width: 100%;
  }

  /* Theme toggle in drawer */
  .nav-links__theme {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-gray-100);
  }

  .nav-links__theme .theme-toggle {
    display: flex;
  }

  .nav-links__theme-label {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    z-index: calc(var(--z-header) - 1);
  }

  .nav-overlay.visible {
    opacity: 1;
    visibility: visible;
  }
}

/* --- BOUTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-gray-200);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* --- HERO --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  overflow: hidden;
}

/* Hero doit rester sombre en dark mode */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0a1628 100%);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0a1628 100%);
    color: #ffffff;
  }
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.5) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero__glow {
  position: absolute;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.12) 0%, rgba(233, 69, 96, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  top: -5%;
  right: -20%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-300);
  margin-bottom: var(--space-lg);
}

.hero__badge__dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-300);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 550px;
}

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

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
  text-align: left;
}

.hero__stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  line-height: 1;
}

.hero__stat-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  margin-top: var(--space-2xs);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl);
  }

  .hero__stats {
    gap: var(--space-lg);
    flex-wrap: wrap;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- HERO PAGE (inner pages) --- */
.hero--page,
.hero--small,
.hero--compact {
  min-height: auto;
  padding: calc(72px + var(--space-lg)) 0 var(--space-lg);
}

.hero--page .hero__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xs);
}

.hero--page .hero__subtitle {
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
}

/* --- HERO HOME (homepage variant, centered) --- */
.hero--home {
  min-height: auto;
  padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl);
}

.hero__content--centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__content--centered .hero__subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__content--centered .hero__actions {
  justify-content: center;
}

.hero__proof {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
}

.hero__proof-sep {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

@media (max-width: 480px) {
  .hero__proof {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .hero__proof-sep {
    display: none;
  }
}

/* --- CARDS --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-light);
}

.card__body {
  padding: var(--space-lg);
}

.card__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: var(--leading-relaxed);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-gray-100);
}

.card__techs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.card__tech {
  padding: 0.2rem 0.5rem;
  background: var(--color-off-white);
  color: var(--color-gray-600);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-sm);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.card__link:hover {
  gap: 8px;
}

/* --- SHOWCASE CARDS (portfolio preview) --- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.showcase-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-100);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.showcase-card__image-wrap {
  overflow: hidden;
  background: var(--color-off-white);
}

.showcase-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.showcase-card:hover .showcase-card__image {
  transform: scale(1.03);
}

.showcase-card__info {
  padding: var(--space-lg);
}

.showcase-card__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.showcase-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.showcase-card__text {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.showcase-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.showcase-card__link:hover {
  gap: var(--space-xs);
}

.showcase-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.showcase-card__link:hover svg {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* --- GRILLES --- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --- PILLARS (avantages) --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.pillar {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-off-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.08);
}

.pillar__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  background: var(--color-accent-light);
  border: 1px solid rgba(233, 69, 96, 0.15);
  border-radius: var(--radius-lg);
  color: var(--color-accent);
}

.pillar__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.pillar__text {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: var(--leading-relaxed);
}

.section--dark .pillar {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.section--dark .pillar:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.15);
}

.section--dark .pillar__text {
  color: var(--color-gray-300);
}

@media (max-width: 768px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .pillar {
    padding: var(--space-lg);
  }
}

/* --- ABOUT INTRO (a-propos grid) --- */
.about-intro {
  max-width: var(--container-narrow);
  margin-inline: auto;
  text-align: center;
}


.about-intro__text {
  font-size: var(--text-md);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

.about-intro__text p + p {
  margin-top: var(--space-md);
}

.about-intro__text strong {
  color: var(--color-primary);
}

@media (max-width: 768px) {
}

/* --- VALUE CARDS (valeurs) --- */
.value-card {
  padding: var(--space-xl);
  text-align: center;
  border-top: 4px solid var(--color-accent);
}

.value-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  background: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

/* --- TECH STACK CARDS (section dark) --- */
.tech-stack-card {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.tech-stack-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.tech-stack-card__icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.tech-stack-card__title {
  font-size: var(--text-lg);
  color: var(--color-white);
}

.tech-stack-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tech-stack-card__tag {
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-gray-300);
}

/* --- REASON CARDS (pourquoi moi) --- */
.reasons-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.reason-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
}

.reason-card__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
}

.reason-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2xs);
}

.reason-card__text {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

@media (max-width: 640px) {
  .reason-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* --- Compact overrides for about-page components --- */
.section--compact .pillars {
  gap: var(--space-lg);
}

.section--compact .pillar {
  padding: var(--space-lg);
}

.section--compact .pillar__icon {
  width: 52px;
  height: 52px;
}

.section--compact .pillar__title {
  font-size: var(--text-lg);
}

.section--compact .value-card {
  padding: var(--space-lg);
}

.section--compact .value-card__icon {
  width: 56px;
  height: 56px;
}

.section--compact .tech-stack-card {
  padding: var(--space-md);
}

.section--compact .tech-stack-card__icon {
  width: 36px;
  height: 36px;
}

.section--compact .tech-stack-card__title {
  font-size: var(--text-md);
}

.section--compact .tech-stack-card__tag {
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
}

.section--compact .reasons-list {
  gap: var(--space-md);
}

.section--compact .reason-card {
  padding: var(--space-md);
  gap: var(--space-md);
}

.section--compact .reason-card__number {
  width: 44px;
  height: 44px;
  font-size: var(--text-lg);
}

.section--compact .reason-card__title {
  font-size: var(--text-md);
}

.section--compact .reason-card__text {
  font-size: var(--text-sm);
}

/* --- PROCESS INLINE (compact, inside pillars section) --- */
.process-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-100);
  counter-reset: process-step;
}

.process-inline__step {
  counter-increment: process-step;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  background: var(--color-off-white);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-600);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.process-inline__step::before {
  content: counter(process-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  flex-shrink: 0;
}

.process-inline__step:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.process-inline__sep {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-300);
  flex-shrink: 0;
}

.process-inline__sep::after {
  content: '';
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 640px) {
  .process-inline {
    gap: var(--space-2xs);
  }

  .process-inline__step {
    padding: 0.375rem 0.75rem;
    font-size: var(--text-xs);
  }

  .process-inline__step::before {
    width: 20px;
    height: 20px;
    font-size: 0.625rem;
  }

  .process-inline__sep {
    width: 16px;
    height: 16px;
  }

  .process-inline__sep::after {
    width: 6px;
    height: 6px;
  }
}

/* --- PROCESS / ETAPES --- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  counter-reset: step;
}

.process__step {
  position: relative;
  counter-increment: step;
  text-align: center;
  padding: var(--space-lg);
}

.process__step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--color-accent-light);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.process__step-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-xs);
}

.process__step-text {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: var(--leading-relaxed);
}

/* --- PREUVES DE CONFIANCE --- */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}

.trust-badge__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
  color: var(--color-accent);
}

.trust-badge__icon svg {
  width: 28px;
  height: 28px;
}

.trust-badge__label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-700);
}

/* --- PRICING / OFFRES --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  position: relative;
  border: 2px solid var(--color-gray-100);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .pricing-card--featured {
    transform: none;
  }
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2xs);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-lg);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
  margin-bottom: var(--space-2xs);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--color-primary);
}

.pricing-card__currency {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-gray-600);
}

.pricing-card__from {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  margin-bottom: var(--space-xs);
}

.pricing-card__amount-old {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-gray-400);
  text-decoration: line-through;
  margin-right: var(--space-2xs);
}

.pricing-card__launch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: 1px solid rgba(233, 69, 96, 0.2);
  border-radius: var(--radius-full, 100px);
  padding: var(--space-2xs) var(--space-md);
  margin-bottom: var(--space-lg);
}

.pricing-card__launch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--font-extrabold);
  padding: 2px 8px;
  border-radius: var(--radius-full, 100px);
  letter-spacing: 0.02em;
}

.pricing-card__features {
  margin-bottom: var(--space-xl);
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.pricing-card__feature svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 2px;
}

.pricing-card__feature--highlight {
  font-weight: var(--font-semibold);
  color: var(--color-gray-800);
}

.pricing-card__delai {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: var(--space-lg);
}

.pricing-card .btn {
  width: 100%;
}

/* --- PROMO / OFFRE DE LANCEMENT --- */
.pricing-card__promo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.25rem 0.625rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--font-extrabold);
  border-radius: var(--radius-md);
  letter-spacing: 0.02em;
  z-index: 1;
}

.pricing-card__old-price {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-gray-400);
  text-decoration: line-through;
  margin-right: var(--space-xs);
}

.pricing-card__promo-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

@media (max-width: 640px) {
  .pricing-card__promo-badge {
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  .pricing-card__old-price {
    font-size: var(--text-base);
  }
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-100);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-800);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-accent);
}

.faq-item__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows var(--transition-slow), padding var(--transition-slow);
}

.faq-item__answer > * {
  overflow: hidden;
}

.faq-item.active .faq-item__answer {
  grid-template-rows: 1fr;
  padding-bottom: var(--space-sm);
}

.faq-item__answer p {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: var(--leading-normal);
}

/* --- FORMULAIRE --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-700);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-light);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* --- FOOTER --- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-gray-300);
  padding: var(--space-lg) 0 var(--space-sm);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .site-footer {
    padding: var(--space-md) 0 var(--space-xs);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-md);
  }

  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer__brand-desc {
    margin-bottom: var(--space-xs);
  }

  .footer__grid > :first-child .footer__brand-desc {
    max-width: 100%;
  }
}

.footer__brand-desc {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  line-height: var(--leading-normal);
  margin-top: var(--space-xs);
  max-width: 300px;
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.footer__links a {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  padding: 2px 0;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-gray-400);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Footer utility classes (replacing inline styles) */
.footer__logo-text {
  color: var(--color-white);
}

.footer__social-wrap {
  margin-top: var(--space-md);
}

.footer__legal-nav {
  display: flex;
  gap: var(--space-md);
}

/* --- SOCIAL PROOF BAR --- */
.social-proof {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
  margin: var(--space-xl) auto 0;
  max-width: 800px;
}

.social-proof__item {
  text-align: center;
}

.social-proof__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--color-primary);
  line-height: 1;
}

.social-proof__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-top: var(--space-2xs);
}

@media (max-width: 480px) {
  .social-proof {
    gap: var(--space-lg);
  }

  .social-proof__value {
    font-size: var(--text-2xl);
  }
}

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, #c0392b 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.5) 1px, transparent 0);
  background-size: 30px 30px;
}

.cta-banner__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  position: relative;
}

.cta-banner__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* --- COMPARATEUR TABLEAU --- */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-xl) 0;
}

.comparison-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md);
  text-align: center;
  border-bottom: 1px solid var(--color-gray-100);
  font-size: var(--text-sm);
}

.comparison-table th {
  background: var(--color-off-white);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

.comparison-table th.featured {
  background: var(--color-accent);
  color: var(--color-white);
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: var(--font-medium);
  color: var(--color-gray-700);
}

.comparison-table .check {
  color: var(--color-success);
}

.comparison-table .cross {
  color: var(--color-gray-300);
}

/* --- ANIMATIONS (classes pour GSAP) ---
   L'état initial (opacity:0) est géré par GSAP via gsap.set()
   pour éviter le flash de la barre navigateur mobile.
   Les classes .revealed servent de fallback si GSAP ne charge pas. */
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: none;
}

/* --- UTILITAIRES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-gray-500); }
.font-display { font-family: var(--font-display); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: var(--font-semibold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* Page padding top pour la nav fixe */
.page-content {
  padding-top: 72px;
}

/* --- BREADCRUMB --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  padding: var(--space-md) 0;
}

.breadcrumb a {
  color: var(--color-gray-500);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb__separator {
  color: var(--color-gray-300);
}

/* --- THEME TOGGLE --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-gray-600);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base), background var(--transition-fast);
  z-index: var(--z-sticky);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
  }
}

/* --- Comparison table scroll indicator --- */
.comparison-table-wrapper {
  position: relative;
}

.comparison-table-wrapper::after {
  content: 'Scroll \2192';
  position: absolute;
  bottom: -1.5rem;
  right: 0;
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  display: none;
}

@media (max-width: 768px) {
  .comparison-table-wrapper::after {
    display: block;
  }
}

/* --- Très petits écrans (iPhone SE, 375px) --- */
@media (max-width: 480px) {
  .hero__title {
    font-size: var(--text-4xl);
  }

  .nav-links {
    width: 85%;
    max-width: none;
  }
}
