/* ═══════════════════════════════════════════════════════════════════════════
   ZYVER WEB — DESIGN SYSTEM (pdf)
   Fichier : css/pdf.css — utilisé par pdf/index.html
   Cohérent avec css/hub.css (mêmes variables, header, footer, splash, donate)
   Ajoute uniquement les styles propres à l'outil PDF (tabs, dropzone, liste
   de fichiers, options, sélecteur de pages, mot de passe).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── VARIABLES CSS — THÈME SOMBRE (défaut) ─────────────────────────────── */
:root {
  --scaffold-bg: #0a0d14;
  --surface: #101422;
  --surface-card: #181e2e;
  --on-surface: #e8edf2;
  --on-surface-sec: #8a9bb0;
  --divider: #2a3d55;

  --success: #00c2a8;
  --warning: #f57c00;
  --danger: #e53935;
  --info: #1a73e8;

  --grad-start: #4dffd2;
  --grad-mid: #2b8fff;
  --grad-end: #5b3fe8;
  --primary: #2b8fff;

  --sp-xs: 4px;
  --sp-s: 8px;
  --sp-m: 16px;
  --sp-l: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 24px;
  --r-full: 100px;
}

/* ── VARIABLES CSS — THÈME CLAIR ───────────────────────────────────────── */
:root[data-theme="light"] {
  --scaffold-bg: #f8faff;
  --surface: #eef2fb;
  --surface-card: #ffffff;
  --on-surface: #1c2a3a;
  --on-surface-sec: #5a6b7c;
  --divider: #c5d0de;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--scaffold-bg);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button {
  font-family: inherit;
}

/* ── RTL (Arabe) ────────────────────────────────────────────────────────── */
html[dir="rtl"] .tool-cta svg,
html[dir="rtl"] .footer-bottom .rcbg,
html[dir="rtl"] .lang-switch {
  direction: rtl;
}

html[dir="rtl"] .lang-menu {
  left: 0;
  right: auto;
}

html[dir="rtl"] .btn-icon svg,
html[dir="rtl"] .step-num {
  margin-left: 0;
}

/* ── TRANSITIONS THÈME ─────────────────────────────────────────────────── */
body,
header,
footer,
.footer-container,
.footer-col,
.nav-link,
.theme-toggle,
.lang-toggle,
.lang-menu,
.btn-primary,
.btn-secondary,
.section-header,
.pdf-tab,
.dropzone,
.file-row,
.option-card,
.pdf-panel {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPLASH SCREEN (identique au hub)
   ═══════════════════════════════════════════════════════════════════════════ */
#splash {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(43, 143, 255, 0.08),
    var(--scaffold-bg) 70%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 80px var(--sp-l) 60px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#splash[hidden] {
  display: none;
}

#splash.visible {
  opacity: 1;
}

#splash.leaving {
  opacity: 0;
}

:root[data-theme="light"] #splash {
  background: radial-gradient(
    circle at center,
    rgba(43, 143, 255, 0.1),
    var(--scaffold-bg) 70%
  );
}

.splash-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  animation: splashIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes splashIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.splash-lottie {
  width: 120px;
  height: 120px;
}

.splash-brand {
  text-align: center;
}

.splash-brand .zyver-text {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(
    135deg,
    var(--grad-start),
    var(--grad-mid),
    var(--grad-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.splash-brand .tagline {
  font-size: 12px;
  color: var(--on-surface-sec);
  margin-top: 4px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.splash-rcbg {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER / NAVIGATION (identique au hub)
   ═══════════════════════════════════════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--divider);
}

:root[data-theme="light"] header {
  background: rgba(248, 250, 255, 0.92);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--sp-m) var(--sp-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-m);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
  text-decoration: none;
  color: var(--on-surface);
  flex-shrink: 0;
}

.nav-logo img {
  width: 32px;
  height: 32px;
}

.nav-logo span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.6;
  -webkit-text-fill-color: var(--on-surface-sec);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: var(--sp-xs);
  list-style: none;
  flex-wrap: wrap;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-m);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-sec);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(43, 143, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
}

/* ── LANGUAGE SWITCH ───────────────────────────────────────────────────── */
.lang-switch {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--surface-card);
  border: 1px solid var(--divider);
  color: var(--on-surface);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.lang-toggle svg {
  width: 16px;
  height: 16px;
}

.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-m);
  list-style: none;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 50;
}

.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu li {
  padding: 8px 12px;
  border-radius: var(--r-s);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--on-surface-sec);
}

.lang-menu li:hover {
  background: rgba(43, 143, 255, 0.08);
  color: var(--primary);
}

.lang-menu li.active {
  color: var(--primary);
  background: rgba(43, 143, 255, 0.1);
}

/* ── THEME TOGGLE ──────────────────────────────────────────────────────── */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: var(--surface-card);
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--on-surface);
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.theme-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  position: absolute;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* ── MOBILE NAV TOGGLE ─────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--on-surface);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HEADER (hero léger, propre à l'outil)
   ═══════════════════════════════════════════════════════════════════════════ */
.page-hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-l) var(--sp-m);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: var(--sp-s);
}

.page-hero .gradient {
  background: linear-gradient(
    135deg,
    var(--grad-start),
    var(--grad-mid),
    var(--grad-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  color: var(--on-surface-sec);
  font-size: 14.5px;
  max-width: 560px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OUTIL PDF — CONTAINER PRINCIPAL
   ═══════════════════════════════════════════════════════════════════════════ */
.pdf-tool {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: var(--sp-l) var(--sp-l) var(--sp-xxl);
  flex: 1;
}

/* ── TABS DES OPÉRATIONS ───────────────────────────────────────────────── */
.pdf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-s);
  margin-bottom: var(--sp-l);
}

.pdf-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-m);
  border: 1px solid var(--divider);
  background: var(--surface);
  color: var(--on-surface-sec);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pdf-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pdf-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pdf-tab.active {
  background: linear-gradient(
    135deg,
    var(--grad-start),
    var(--grad-mid),
    var(--grad-end)
  );
  border-color: transparent;
  color: #fff;
}

/* ── PANEL D'UN OUTIL ──────────────────────────────────────────────────── */
.pdf-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  padding: var(--sp-l);
}

.pdf-panel.active {
  display: block;
  animation: panelIn 0.3s ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.panel-desc {
  font-size: 13px;
  color: var(--on-surface-sec);
  margin-bottom: var(--sp-l);
}

/* ── DROPZONE ──────────────────────────────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--divider);
  border-radius: var(--r-l);
  padding: var(--sp-xl) var(--sp-l);
  text-align: center;
  cursor: pointer;
  background: var(--surface-card);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(43, 143, 255, 0.06);
}

.dropzone svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin: 0 auto var(--sp-s);
}

.dropzone-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dropzone-sub {
  font-size: 12.5px;
  color: var(--on-surface-sec);
}

.dropzone input[type="file"] {
  display: none;
}

/* ── LISTE DE FICHIERS ─────────────────────────────────────────────────── */
.file-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-s);
  margin-top: var(--sp-m);
}

.file-row {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-m);
  padding: 10px 14px;
}

.file-row .file-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-s);
  background: rgba(229, 57, 53, 0.12);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-row .file-icon svg {
  width: 18px;
  height: 18px;
}

.file-row .file-info {
  flex: 1;
  min-width: 0;
}

.file-row .file-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-row .file-meta {
  font-size: 11.5px;
  color: var(--on-surface-sec);
}

.file-row .file-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.file-row .drag-handle {
  cursor: grab;
  color: var(--on-surface-sec);
  flex-shrink: 0;
}

.file-row .drag-handle svg {
  width: 16px;
  height: 16px;
}

.file-row.dragging {
  opacity: 0.4;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-s);
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--on-surface-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-icon svg {
  width: 15px;
  height: 15px;
}

.btn-icon:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ── OPTIONS (grille de cartes / champs) ──────────────────────────────── */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-m);
  margin-top: var(--sp-l);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface-sec);
  letter-spacing: 0.3px;
}

.field input[type="text"],
.field input[type="password"],
.field input[type="number"],
.field textarea,
.field select {
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-s);
  padding: 10px 12px;
  color: var(--on-surface);
  font-family: inherit;
  font-size: 13.5px;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
}

.field-hint {
  font-size: 11px;
  color: var(--on-surface-sec);
}

.password-wrap {
  position: relative;
}

.password-wrap button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--on-surface-sec);
  cursor: pointer;
  padding: 4px;
}

.password-wrap button svg {
  width: 16px;
  height: 16px;
}

/* ── OPTION CARDS (choix type: image / texte / image+texte) ─────────────── */
.option-card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-s);
  margin-bottom: var(--sp-m);
}

.option-card {
  border: 1px solid var(--divider);
  background: var(--surface-card);
  border-radius: var(--r-m);
  padding: var(--sp-m);
  text-align: center;
  cursor: pointer;
  color: var(--on-surface-sec);
}

.option-card svg {
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
  display: block;
}

.option-card span {
  font-size: 12.5px;
  font-weight: 700;
  display: block;
}

.option-card:hover {
  border-color: var(--primary);
}

.option-card.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(43, 143, 255, 0.08);
}

/* ── SÉLECTEUR DE PAGES (extraction / division) ──────────────────────────── */
.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: var(--sp-s);
  margin-top: var(--sp-m);
  max-height: 340px;
  overflow-y: auto;
  padding: 4px;
}

.page-thumb {
  border: 2px solid var(--divider);
  border-radius: var(--r-s);
  background: var(--surface-card);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface-sec);
  position: relative;
}

.page-thumb svg {
  width: 20px;
  height: 20px;
}

.page-thumb.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(43, 143, 255, 0.08);
}

.page-thumb .check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  display: none;
  align-items: center;
  justify-content: center;
}

.page-thumb .check svg {
  width: 9px;
  height: 9px;
  color: #fff;
}

.page-thumb.selected .check {
  display: flex;
}

.pages-toolbar {
  display: flex;
  gap: var(--sp-s);
  flex-wrap: wrap;
  margin-top: var(--sp-m);
}

/* ── ACTIONS / BOUTONS ─────────────────────────────────────────────────── */
.panel-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  flex-wrap: wrap;
  margin-top: var(--sp-l);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-s);
  background: linear-gradient(
    135deg,
    var(--grad-start),
    var(--grad-mid),
    var(--grad-end)
  );
  color: #fff;
  border: none;
  border-radius: var(--r-m);
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(43, 143, 255, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(43, 143, 255, 0.35);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-s);
  background: var(--surface-card);
  color: var(--on-surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-m);
  padding: 11px 20px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── BARRE DE PROGRESSION ──────────────────────────────────────────────── */
.progress-wrap {
  display: none;
  margin-top: var(--sp-l);
}

.progress-wrap.active {
  display: block;
}

.progress-label {
  font-size: 12.5px;
  color: var(--on-surface-sec);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.progress-bar {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--surface-card);
  border: 1px solid var(--divider);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--grad-start),
    var(--grad-mid),
    var(--grad-end)
  );
  transition: width 0.3s ease;
}

/* ── RÉSULTAT ──────────────────────────────────────────────────────────── */
.result-box {
  display: none;
  margin-top: var(--sp-l);
  background: rgba(0, 194, 168, 0.08);
  border: 1px solid rgba(0, 194, 168, 0.3);
  border-radius: var(--r-l);
  padding: var(--sp-l);
  text-align: center;
}

.result-box.active {
  display: block;
  animation: panelIn 0.3s ease both;
}

.result-box svg {
  width: 40px;
  height: 40px;
  color: var(--success);
  margin: 0 auto var(--sp-s);
}

.result-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.result-desc {
  font-size: 13px;
  color: var(--on-surface-sec);
  margin-bottom: var(--sp-m);
}

.result-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--sp-m);
}

.result-file-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-s);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.result-file-link:hover {
  border-color: var(--primary);
}

.result-file-link svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  margin: 0;
}

.error-box {
  display: none;
  margin-top: var(--sp-m);
  background: rgba(229, 57, 53, 0.08);
  border: 1px solid rgba(229, 57, 53, 0.3);
  border-radius: var(--r-m);
  padding: var(--sp-m);
  font-size: 13px;
  color: var(--danger);
}

.error-box.active {
  display: block;
}

/* ── BANDEAU CONFIDENTIALITÉ ──────────────────────────────────────────── */
.privacy-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
  background: rgba(0, 194, 168, 0.08);
  border: 1px solid rgba(0, 194, 168, 0.25);
  border-radius: var(--r-m);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--on-surface-sec);
  margin-bottom: var(--sp-l);
}

.privacy-banner svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER (identique au hub)
   ═══════════════════════════════════════════════════════════════════════════ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  padding: var(--sp-xxl) var(--sp-l) var(--sp-l);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--grad-mid), transparent);
  opacity: 0.5;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
}

.footer-brand .logos {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
}

.footer-brand .logos img {
  height: 38px;
  transition: transform 0.3s ease;
}

.footer-brand .logos img:hover {
  transform: translateY(-3px);
}

.footer-brand .logos .separator {
  width: 1px;
  height: 26px;
  background: var(--divider);
}

.footer-brand p {
  color: var(--on-surface-sec);
  font-size: 13px;
  max-width: 350px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: var(--sp-m);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--sp-s);
}

.footer-col ul a {
  color: var(--on-surface-sec);
  text-decoration: none;
  font-size: 13px;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
  display: inline-block;
}

.footer-col ul a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: var(--sp-l);
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-m);
  font-size: 12px;
  color: var(--on-surface-sec);
}

.footer-bottom .rcbg {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
}

.footer-bottom .rcbg img {
  height: 20px;
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════════════════════
   BOUTON FLOTTANT DONATE (identique au hub)
   ══════════════════════════════════════════════════════════════════════════ */
.donate-float {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: linear-gradient(
    135deg,
    var(--grad-start),
    var(--grad-mid),
    var(--grad-end)
  );
  color: #fff;
  padding: 12px 8px;
  border-radius: var(--r-m);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(43, 143, 255, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 1px;
}

.donate-float svg {
  width: 20px;
  height: 20px;
}

.donate-float:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 12px 32px rgba(43, 143, 255, 0.4);
  padding: 14px 10px;
}

.donate-text {
  font-size: 10px;
  opacity: 0.9;
}

@media (max-width: 1200px) {
  .donate-float {
    left: 12px;
    padding: 10px 6px;
  }
  .donate-text {
    display: none;
  }
  .donate-float svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 760px) {
  .donate-float {
    left: auto;
    right: 16px;
    top: auto;
    bottom: 100px;
    transform: none;
    writing-mode: horizontal-tb;
    padding: 10px 14px;
    border-radius: var(--r-full);
    flex-direction: row;
    gap: 6px;
  }
  .donate-float:hover {
    transform: none;
  }
  .donate-text {
    display: inline;
    font-size: 12px;
  }
  .donate-float svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 420px) {
  .donate-float {
    bottom: 90px;
    right: 12px;
    padding: 8px 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — 100% mobile-first (footer centré quand l'écran est petit)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-l);
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
  .footer-brand .logos {
    justify-content: center;
  }
  .footer-brand p {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: var(--sp-m);
    border-bottom: 1px solid var(--divider);
    gap: var(--sp-xs);
  }
  .nav-links.open .nav-link {
    padding: var(--sp-s) var(--sp-m);
    border-radius: var(--r-m);
  }
  .nav-links.open .nav-link:hover {
    background: rgba(43, 143, 255, 0.08);
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-l);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col {
    margin: 0 auto;
    max-width: 300px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-m);
  }
  .footer-bottom .rcbg {
    justify-content: center;
  }

  .page-hero {
    padding: var(--sp-l) var(--sp-m);
  }
  .pdf-tool {
    padding: var(--sp-m) var(--sp-m) var(--sp-xxl);
  }
  .pdf-panel {
    padding: var(--sp-m);
  }
  .lang-menu {
    right: auto;
    left: 0;
  }
}

@media (max-width: 420px) {
  .nav-container {
    padding: var(--sp-s) var(--sp-m);
  }
  .nav-logo span {
    font-size: 16px;
  }
  .lang-current-label {
    display: none;
  }
  .footer-container {
    padding: 0 var(--sp-s);
  }
  .footer-col ul li a {
    font-size: 12px;
  }
  .footer-bottom {
    font-size: 11px;
    padding: var(--sp-m) var(--sp-s);
  }
  .footer-bottom .rcbg img {
    height: 18px;
  }
  .pdf-tabs {
    gap: 6px;
  }
  .pdf-tab {
    padding: 8px 12px;
    font-size: 12px;
  }
}
