/* ============================================================
   RésaLGE — Global Design System
   Professional B2B UI with Light/Dark Theme
   ============================================================ */

/* ── Google Fonts (loaded in HTML <head>) ── */
/* Inter: 400, 500, 600, 700, 800 */

/* ──────────────────────────────────────────
   1. CSS Custom Properties (Design Tokens)
   ────────────────────────────────────────── */
:root {
  /* ─ Brand Colors ─ */
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;

  /* ─ Light Theme (default) ─ */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-navbar: rgba(255, 255, 255, 0.85);
  --bg-card: #ffffff;
  --bg-code: #f1f5f9;
  --bg-info: #eff6ff;
  --bg-warning: #fffbeb;
  --bg-footer: #0f172a;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #f8fafc;
  --text-brand: #2563eb;
  --text-link: #2563eb;

  --border-primary: #e2e8f0;
  --border-secondary: #cbd5e1;
  --border-brand: #2563eb;
  --border-info: #3b82f6;
  --border-warning: #f59e0b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
  --shadow-navbar: 0 1px 3px rgba(0, 0, 0, 0.05);

  --icon-bg: rgba(37, 99, 235, 0.1);
  --icon-bg-hover: #2563eb;

  /* ─ Spacing ─ */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* ─ Radius ─ */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* ─ Transitions ─ */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ─ Layout ─ */
  --max-width: 1280px;
  --navbar-height: 4rem;
}

/* ──────────────────────────────────────────
   2. Dark Theme
   ────────────────────────────────────────── */
[data-theme="dark"] {
  --bg-primary: #0b1120;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --bg-elevated: #1e293b;
  --bg-navbar: rgba(11, 17, 32, 0.9);
  --bg-card: #1e293b;
  --bg-code: #1e293b;
  --bg-info: rgba(59, 130, 246, 0.1);
  --bg-warning: rgba(245, 158, 11, 0.1);
  --bg-footer: #070d1a;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;
  --text-brand: #60a5fa;
  --text-link: #60a5fa;

  --border-primary: #1e293b;
  --border-secondary: #334155;
  --border-brand: #3b82f6;
  --border-info: #3b82f6;
  --border-warning: #f59e0b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --shadow-card-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  --shadow-navbar: 0 1px 3px rgba(0, 0, 0, 0.3);

  --icon-bg: rgba(96, 165, 250, 0.15);
  --icon-bg-hover: #3b82f6;
}

/* ──────────────────────────────────────────
   3. CSS Reset & Base
   ────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-700);
}

[data-theme="dark"] a:hover {
  color: var(--brand-300);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
}

/* ──────────────────────────────────────────
   4. Navbar
   ────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: var(--bg-navbar);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-navbar);
  border-bottom: 1px solid var(--border-primary);
  transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo img {
  height: 2.25rem;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-brand);
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  position: relative;
}

.nav-links a i {
  font-size: 0.9rem;
  width: 1.1rem;
  text-align: center;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--icon-bg);
  color: var(--text-brand);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-brand);
  color: var(--text-brand);
  background: var(--icon-bg);
}

.theme-toggle .fa-sun {
  display: none;
}

.theme-toggle .fa-moon {
  display: inline;
}

[data-theme="dark"] .theme-toggle .fa-sun {
  display: inline;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  display: none;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-brand);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--icon-bg);
  border-color: var(--border-brand);
}

/* ──────────────────────────────────────────
   5. Main Content
   ────────────────────────────────────────── */
main {
  margin-top: var(--navbar-height);
  min-height: calc(100vh - var(--navbar-height));
}

.section {
  padding: var(--space-3xl) var(--space-lg);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ──────────────────────────────────────────
   6. Hero Section
   ────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
}

.hero>* {
  position: relative;
  z-index: 1;
}

.hero-logo {
  margin: 0 auto var(--space-xl);
}

.hero-logo-img {
  max-height: 200px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  transition: transform var(--transition-slow);
}

.hero-logo-img:hover {
  transform: scale(1.03);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  line-height: 1.15;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero h1 {
  background: linear-gradient(135deg, var(--brand-300), var(--brand-500));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ──────────────────────────────────────────
   7. Buttons
   ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-600);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3), 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--brand-700);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-secondary);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--brand-600);
  background: var(--icon-bg);
  color: var(--text-brand);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-brand);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background: var(--icon-bg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* ──────────────────────────────────────────
   8. Feature Cards
   ────────────────────────────────────────── */
.features,
.features-section {
  padding: var(--space-4xl) var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.features .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-200);
}

[data-theme="dark"] .feature-card:hover {
  border-color: var(--brand-800);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-brand);
  background: var(--icon-bg);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--icon-bg-hover);
  color: #ffffff;
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: auto;
}

/* ──────────────────────────────────────────
   9. Footer
   ────────────────────────────────────────── */
.footer {
  background: var(--bg-footer);
  color: var(--text-inverse);
  padding: var(--space-3xl) 0 0;
  margin-top: var(--space-3xl);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  margin-bottom: var(--space-lg);
}

.footer-logo {
  max-height: 40px;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-text {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.5rem 0 var(--space-md);
}

.footer-heading {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  padding-bottom: 0.75rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 2px;
  background: var(--brand-500);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact {
  margin-top: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.contact-item i {
  color: var(--brand-400);
  width: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-copyright {
  padding: var(--space-lg);
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ──────────────────────────────────────────
   10. Phone FAB Button
   ────────────────────────────────────────── */
.phone-button {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--brand-600);
  border: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all var(--transition-fast);
}

.phone-button svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: white;
}

.phone-button:hover {
  background: var(--brand-700);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.phone-tooltip {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  background: var(--bg-elevated);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 998;
}

.phone-button:hover~.phone-tooltip {
  opacity: 1;
}

/* ──────────────────────────────────────────
   11. Subpage Shared Layouts
   ────────────────────────────────────────── */

/* Content Container (used by subpages) */
.container {
  width: 92%;
  max-width: 900px;
  background: var(--bg-card);
  margin: calc(var(--navbar-height) + var(--space-2xl)) auto var(--space-3xl);
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-primary);
}

/* Wide container for doc-heavy pages */
.container-wide {
  max-width: 1100px;
}

/* Page Title */
.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-brand);
  margin-bottom: var(--space-lg);
  text-align: center;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

/* Link List Cards (documentation, newsletters) */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.link-card:hover {
  background: var(--icon-bg);
  border-color: var(--brand-200);
  color: var(--text-brand);
  transform: translateX(4px);
}

[data-theme="dark"] .link-card:hover {
  border-color: var(--brand-800);
}

.link-card .link-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Info Box */
.info-box {
  background: var(--bg-info);
  border-left: 4px solid var(--border-info);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.info-box p {
  margin-bottom: 0.5rem;
}

.info-box ul {
  padding-left: var(--space-xl);
  list-style: disc;
}

.info-box ul li {
  margin-bottom: 0.4rem;
}

/* Warning Box */
.warning-box {
  background: var(--bg-warning);
  border-left: 4px solid var(--border-warning);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Download Link */
a.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-lg);
  padding: 0.75rem 1.5rem;
  background: var(--brand-600);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

a.download-link:hover {
  background: var(--brand-700);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Section headings for subpages */
.container h2 {
  font-size: 1.35rem;
  color: var(--text-brand);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-primary);
}

.container h3 {
  font-size: 1.1rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.container p,
.container li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.container ul,
.container ol {
  padding-left: var(--space-xl);
  margin-top: 0.5rem;
  list-style: disc;
}

.container ol {
  list-style: decimal;
}

.container li {
  margin-bottom: 0.35rem;
}

.container strong {
  color: var(--text-primary);
}

/* Image Grid (for documentation pages) */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  justify-content: center;
}

.image-item {
  flex: 1 1 220px;
  max-width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.image-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-primary);
}

.image-item p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Branding Logo (corner) */
.brand-logo {
  text-align: right;
  margin-top: var(--space-2xl);
}

.brand-logo img {
  width: 90px;
  height: auto;
  display: inline-block;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.brand-logo img:hover {
  opacity: 1;
}

/* Alert Text */
.alert-text {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.95rem;
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: rgba(239, 68, 68, 0.06);
  border-left: 4px solid #ef4444;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

th,
td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-primary);
  font-size: 0.9rem;
}

th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td a {
  font-weight: 500;
}

tr:hover td {
  background: var(--bg-tertiary);
}

/* TODO / Kanban Cards */
.kanban-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.kanban-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-base);
}

.kanban-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.kanban-card h2 {
  font-size: 1.125rem;
  margin-top: 0;
  margin-bottom: var(--space-md);
  border-bottom: none;
  padding-bottom: 0;
}

.kanban-card ul {
  list-style: none;
  padding: 0;
}

.kanban-card li {
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.4rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.kanban-card li:hover {
  background: var(--icon-bg);
}

/* Privacy / Legal Card */
.legal-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl) var(--space-2xl);
  max-width: 800px;
  width: 92%;
  margin: calc(var(--navbar-height) + var(--space-2xl)) auto var(--space-3xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-primary);
}

.legal-card h1 {
  color: var(--text-brand);
  text-align: center;
  margin-bottom: var(--space-2xl);
  font-size: 1.75rem;
}

.legal-card h2 {
  color: var(--text-brand);
  margin-top: var(--space-2xl);
  font-size: 1.2rem;
}

.legal-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* ──────────────────────────────────────────
   12. Tabs (CouponsResaLGE)
   ────────────────────────────────────────── */
.tabs {
  display: flex;
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
  margin: var(--space-xl) 0 var(--space-2xl);
  width: 100%;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 0.7rem 0.75rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-tertiary);
  border: none;
  background: transparent;
  transition: all var(--transition-base);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab:hover {
  color: var(--text-brand);
  background: var(--icon-bg);
}

.tab.active {
  color: var(--text-brand);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.tab-content {
  display: none;
  animation: fadeSlideIn 0.3s ease-out;
}

.tab-content.active {
  display: block;
}

/* Video Components */
.video-section {
  margin-bottom: var(--space-3xl);
}

.video-section h3 {
  color: var(--text-brand);
  font-size: 1rem;
  margin: 0 0 var(--space-md) 0;
  font-weight: 600;
}

.video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-base);
}

.video-container:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffffcc"><path d="M8 5v14l11-7z"/></svg>') no-repeat center / 64px 64px;
  z-index: 2;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.video-wrapper.playing::before,
.video-wrapper.playing::after {
  opacity: 0;
  pointer-events: none;
}

.video-wrapper::after {
  content: 'Cliquez pour regarder la vidéo';
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.7rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  pointer-events: none;
  z-index: 3;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}

.video-description {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--border-brand);
  padding: var(--space-xl) var(--space-2xl);
  margin: var(--space-lg) auto;
  max-width: 900px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  border: 1px solid var(--border-primary);
  border-left-width: 4px;
}

.video-description h4 {
  color: var(--text-brand);
  margin: 0 0 var(--space-md) 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.video-description p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* ──────────────────────────────────────────
   13. Animations
   ────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────────────────
   14. Responsive
   ────────────────────────────────────────── */

/* Tablet */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --navbar-height: 3.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(80%, 320px);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    transition: right var(--transition-slow);
    z-index: 1001;
    gap: 0.25rem;
    border-left: 1px solid var(--border-primary);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
  }

  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .hero {
    padding: var(--space-2xl) var(--space-md);
  }

  .hero-logo-img {
    max-height: 140px;
  }

  .features {
    padding: var(--space-2xl) var(--space-md);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    margin-top: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .container {
    padding: var(--space-xl) var(--space-lg);
    margin-top: calc(var(--navbar-height) + var(--space-lg));
  }

  .tabs {
    flex-wrap: wrap;
    gap: 4px;
  }

  .tab {
    flex: 1 1 calc(50% - 6px);
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
  }

  .kanban-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    width: 96%;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-xl);
  }

  .legal-card {
    width: 96%;
    padding: var(--space-xl) var(--space-lg);
  }
}

/* ──────────────────────────────────────────
   15. Print Styles
   ────────────────────────────────────────── */
@media print {

  .navbar,
  .phone-button,
  .phone-tooltip,
  .menu-toggle,
  .theme-toggle {
    display: none !important;
  }

  main {
    margin-top: 0;
  }

  .container {
    box-shadow: none;
    border: none;
    margin: 0;
    max-width: 100%;
    width: 100%;
  }

  body {
    background: white;
    color: black;
  }
}

/* ──────────────────────────────────────────
   16. YouTube Thumbnail Player
   ────────────────────────────────────────── */
.yt-thumbnail {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.yt-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-base);
}

.yt-thumbnail:hover img {
  opacity: 0.85;
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.yt-play-btn svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.yt-thumbnail:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
}