/* ==========================================================================
   Skaneo — style.css
   Static, dependency-free stylesheet. Material-inspired, mobile-first.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Brand palette (per brief) */
  --yellow: #ffbf00;
  --orange: #ff6b00;
  --dark: #1e293b;
  --light: #f8fafc;
  --white: #ffffff;

  /* Derived */
  --gradient-brand: linear-gradient(
    135deg,
    var(--yellow) 0%,
    var(--orange) 100%
  );
  --text-muted: #64748b;
  --border-soft: rgba(30, 41, 59, 0.08);
  --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.06);
  --shadow-md: 0 10px 30px rgba(30, 41, 59, 0.1);
  --shadow-lg: 0 24px 60px rgba(30, 41, 59, 0.16);
  --shadow-brand: 0 14px 30px rgba(255, 107, 0, 0.28);

  /* Type */
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --max-width: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --dark: #e7edf7;
  --light: #0f172a;
  --white: #172033;
  --text-muted: #a9b7ca;
  --border-soft: rgba(226, 232, 240, 0.14);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.theme-toggle {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: var(--dark);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.theme-toggle:hover {
  transform: translateY(-2px);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.theme-toggle .icon-moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}
:root[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.9);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
  white-space: nowrap;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--light);
}

.btn-icon {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--light);
  box-shadow: var(--shadow-brand);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(255, 107, 0, 0.34);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--border-soft);
}

.btn-ghost:hover {
  border-color: var(--dark);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Ripple element injected by JS */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.18);
  transform: scale(0);
  pointer-events: none;
  animation: ripple 0.6s var(--ease);
}

@keyframes ripple {
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  z-index: 200;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  width: 100%;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a:not(.btn) {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.main-nav a:not(.btn):hover {
  color: var(--dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--light);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    height: calc(100vh - 72px);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a.btn {
    align-self: flex-start;
  }
  .theme-toggle {
    margin-left: auto;
  }
}

/* ---- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  padding: 88px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: var(--gradient-brand);
  filter: blur(120px);
  opacity: 0.22;
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 18px 0 16px;
}

.hero-copy .subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 14px;
}

.hero-copy .description {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-download-wrap {
  position: relative;
  display: inline-flex;
}

.new-release-note {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 2;
  white-space: nowrap;
  padding: 7px 13px;
  border: 1px solid rgba(255, 107, 0, 0.22);
  border-radius: var(--radius-pill);
  color: #a34800;
  background: #fff4df;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.12);
  font-size: 10px;
  font-weight: 700;
  transform: translateX(-50%);
  animation: release-note-float 2.8s ease-in-out infinite;
}

.new-release-note::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 11px;
  height: 11px;
  border-right: 1px solid rgba(255, 107, 0, 0.22);
  border-bottom: 1px solid rgba(255, 107, 0, 0.22);
  background: #fff4df;
  transform: translateX(-50%) rotate(45deg);
}

@keyframes release-note-float {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-1deg); }
  50% { transform: translateX(-50%) translateY(-5px) rotate(1deg); }
}

:root[data-theme="dark"] .new-release-note,
:root[data-theme="dark"] .new-release-note::after {
  border-color: rgba(255, 191, 0, 0.3);
  color: #ffd978;
  background: #332711;
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--dark);
  text-align: center;
}

.hero-stats div span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Phone mockup with signature scan-line animation ---- */
.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone {
  width: 280px;
  aspect-ratio: 9 / 18.5;
  background: var(--dark);
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: floatPhone 5s ease-in-out infinite;
}

@keyframes floatPhone {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }

  50% {
    transform: translateY(-14px) rotate(1.5deg);
  }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--light);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: var(--dark);
  border-radius: var(--radius-pill);
  z-index: 5;
}

.mock-card {
  margin: 56px 18px 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.mock-card .mock-line {
  height: 9px;
  border-radius: 5px;
  background: var(--border-soft);
  margin-bottom: 8px;
}

.mock-card .mock-line.short {
  width: 55%;
}

.mock-card .mock-code {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
}

/* The signature: an animated scan line sweeping over the card */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--orange) 20%,
    var(--yellow) 50%,
    var(--orange) 80%,
    transparent
  );
  box-shadow: 0 0 12px 2px rgba(255, 107, 0, 0.55);
  top: 0;
  animation: scanSweep 2.6s ease-in-out infinite;
}

@keyframes scanSweep {
  0% {
    top: 0%;
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  50% {
    top: 100%;
    opacity: 1;
  }

  58% {
    opacity: 0;
  }

  100% {
    top: 0%;
    opacity: 0;
  }
}

.mock-detected {
  margin: 14px 18px 0;
  display: inline-flex;
  align-self: flex-start;
  margin-left: 18px;
  align-items: center;
  gap: 6px;
  background: rgba(255, 191, 0, 0.16);
  color: #8a5a00;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.mock-detected::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

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

  .hero-copy {
    text-align: center;
  }

  .hero-copy .description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .phone-wrap {
    margin-top: 20px;
  }
}

/* ---- Section base ------------------------------------------------- */
section {
  padding: 96px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 0 48px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin: 12px 0 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Features ------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  box-shadow: var(--shadow-brand);
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ---- Operators ------------------------------------------------------ */
.operators-section {
  background: var(--white);
}

.operators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.operator-card {
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
}

.operator-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-md);
}

.operator-card.yas {
  background: linear-gradient(150deg, #fce40f, #f7d825);
}

.operator-card.orange {
  background: linear-gradient(150deg, #ff7a00, #e85c00);
}

.operator-card.airtel {
  background: linear-gradient(150deg, #e4002b, #a5001e);
}

.operator-card .op-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.operator-card .op-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- How it works --------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.step-connector {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Screenshots ------------------------------------------------------ */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.screen-placeholder {
  aspect-ratio: 9/17;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1.5px dashed var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.screen-placeholder:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}

.screen-placeholder .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

/* ---- FAQ ------------------------------------------------------------ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  margin-left: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--orange);
  transition: transform 0.3s var(--ease);
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item.open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ---- Download CTA ----------------------------------------------------- */
.download-section {
  background: var(--dark);
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.download-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 191, 0, 0.16),
      transparent 45%
    ),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 0, 0.18), transparent 45%);
}

.download-section > * {
  position: relative;
  z-index: 1;
}

.download-section h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 12px;
  color: var(--white);
}

.download-section p.lead {
  color: var(--white);
  max-width: 480px;
  margin: 0 auto 30px;
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.download-meta div{
  color: var(--white);
}

.download-meta strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 2px;
}

/* ---- Footer ------------------------------------------------------------ */
.site-footer {
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--dark);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---- Toast (used for JS interactions like copy) ------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Modale CGU avant téléchargement ----------------------------------- */
.cgu-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  z-index: 1000;
}

.cgu-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.cgu-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px);
  transition: transform 0.25s var(--ease);
}

.cgu-modal-overlay.show .cgu-modal {
  transform: translateY(0);
}

.cgu-modal h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.cgu-modal p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 18px;
}

.cgu-modal p a {
  color: var(--orange);
  font-weight: 600;
}

.cgu-modal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--dark);
  cursor: pointer;
  margin-bottom: 22px;
}

.cgu-modal-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cgu-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cgu-modal-actions .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---- Skip link (accessibility) ------------------------------------------ */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--dark);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

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

/* Visible focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 3px;
}
