/* ==========================================================================
   PDFDossier France - High-End Olive Green Design System & Bespoke UI
   ========================================================================== */

:root {
  /* Sophisticated Olive & Mineral Palette */
  --primary: #38593F;
  --primary-hover: #29442F;
  --primary-dark: #1E3323;
  --primary-light: #F1F5F2;
  --primary-tint: #E2EBE4;
  --primary-border: #C2D3C5;
  
  --accent-sage: #567C5E;
  --accent-leaf: #6E9676;
  --accent-gold: #A07828;
  --accent-gold-light: #FBF6EB;
  


  --success: #2A683B;
  --success-bg: #EDF7F0;
  --success-border: #B7DFBF;
  --warning: #946000;
  --warning-bg: #FCF7ED;
  --danger: #A32D2D;
  --danger-bg: #FDF1F1;
  --danger-border: #F3C4C4;

  --text-main: #18261B;
  --text-muted: #334837;
  --text-light: #24382A;

  --bg-page: #F6F8F6;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFCFA;
  --bg-subtle: #EEF3EE;
  --border-color: #D6E0D7;
  --border-focus: #38593F;

  --shadow-xs: 0 1px 2px rgba(24, 38, 27, 0.04);
  --shadow-sm: 0 2px 4px rgba(24, 38, 27, 0.05);
  --shadow-md: 0 4px 12px rgba(24, 38, 27, 0.07);
  --shadow-lg: 0 12px 28px rgba(24, 38, 27, 0.09);

  /* Sharp Architectural Radii */
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 10px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Refined Olive Accent Line */
.fr-bar {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #38593F 0%, #567C5E 50%, #82A289 100%);
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Bespoke Geometric Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon-olive {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1E3725 0%, #2D5236 60%, #3B6B46 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 3px 8px rgba(30, 55, 37, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.brand-icon-olive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.brand-logo:hover .brand-icon-olive {
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 6px 14px rgba(30, 55, 37, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title-main {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #18261B;
  line-height: 1.05;
  display: flex;
  align-items: baseline;
}

.brand-title-main .brand-title-highlight {
  color: #2D5236;
  font-weight: 800;
}

.brand-title-sub {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #24382A;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: var(--primary-border);
}

.nav-link.active {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: var(--primary-border);
  font-weight: 700;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

.mobile-drawer {
  display: none;
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

.mobile-drawer.active {
  display: block;
}

.mobile-drawer .nav-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f2;
}

/* AdSense Slot (Only visible when ads are populated) */
.ad-slot-wrapper {
  margin: 1.5rem auto;
  text-align: center;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-page) 100%);
}

.hero-pill-olive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-xs);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.olive-text {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 2.2rem;
  line-height: 1.6;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-chip-sharp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}

/* Tools Section */
.tools-grid-section {
  padding: 3.5rem 0 4.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-title {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

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

/* Sharp, Architectural Tool Card */
.tool-card-sharp {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-xs);
}

.tool-card-sharp:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tool-icon-box-sharp {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-xs);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.tool-card-sharp:hover .tool-icon-box-sharp {
  background: var(--primary);
  color: white;
}

.tool-badge-sharp {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge-populaire { background: #FEF3F2; color: #912018; border-color: #FECDCA; }
.badge-essentiel { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary-border); }
.badge-haute-qualite { background: #EDF7F0; color: #1D542E; border-color: #BCE2C5; }
.badge-rapide { background: #FEF6EE; color: #8C4408; border-color: #F9DBAF; }
.badge-precis { background: #F5F3FF; color: #5B21B6; border-color: #DDD6FE; }

.tool-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.tool-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tool-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.tool-card-sharp:hover .tool-card-cta {
  color: var(--primary-hover);
}

/* Tool Interactive Workspace */
.tool-workspace-wrapper {
  padding: 2.5rem 0 3.5rem;
}

.tool-header-box {
  text-align: center;
  margin-bottom: 2.2rem;
}

.tool-header-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.tool-header-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.tool-interactive-card-sharp {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

/* Dropzone */
.dropzone-sharp {
  border: 2px dashed var(--primary-border);
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dropzone-sharp:hover, .dropzone-sharp.drag-over {
  border-color: var(--primary);
  background: var(--primary-tint);
}

.dropzone-icon-sharp {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  color: var(--primary);
  background: white;
  border-radius: var(--radius-xs);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.dropzone-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-select-file-sharp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 26px;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.btn-select-file-sharp:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* File items list */
.files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.file-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
}

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

.file-info-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  overflow: hidden;
}

.file-order-badge {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--primary-border);
}

.file-name-text {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.file-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

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

/* Action Controls Bar */
.action-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-primary-action:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary-action:hover {
  background: var(--bg-subtle);
  border-color: var(--text-light);
}

/* Result Box */
.result-box {
  display: none;
  text-align: center;
  padding: 32px 20px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-sm);
  margin-top: 24px;
}

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

.result-success-icon {
  width: 54px;
  height: 54px;
  background: var(--success);
  color: white;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.7rem;
}

.result-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.result-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.btn-download-result {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--success);
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 13px 32px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-download-result:hover {
  background: #1e4d2b;
}

/* Compression Options Grid */
.compression-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.compression-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: white;
  text-align: left;
}

.compression-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.compression-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary-border);
}

.compression-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.compression-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Progress & Loading State */
.tool-progress-wrap {
  margin: 22px 0;
  padding: 18px 22px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
}

.tool-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.tool-progress-pct {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.05rem;
}

.tool-progress-bar {
  width: 100%;
  height: 9px;
  background: #EAEFEA;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.tool-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38593F 0%, #4E7B57 50%, #2A4430 100%);
  width: 0%;
  border-radius: 999px;
  transition: width 0.25s ease-out;
}

/* Page Selection Toolbar (Split & Reorder) */
.tool-selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 10px 16px;
  margin-bottom: 18px;
}

.selection-pills-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-select-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-select-pill:hover {
  background: #EEF4EE;
  border-color: var(--primary);
  color: var(--primary);
}

.selection-counter-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Advanced High-Definition Page & Image Thumbnails Grid */
.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.thumb-card {
  position: relative;
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 10px;
  text-align: center;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.thumb-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.thumb-card.selected {
  border-color: var(--primary);
  background: #F6F9F6;
  box-shadow: 0 0 0 1px var(--primary);
}

.thumb-canvas-wrap {
  width: 100%;
  height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F9FAF9;
  border: 1px solid #E8EDE8;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
  cursor: pointer;
}

.thumb-canvas-wrap canvas,
.thumb-canvas-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.thumb-page-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

.thumb-check-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid #C2D3C5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: transparent;
  transition: all 0.15s ease;
  z-index: 2;
  cursor: pointer;
}

.thumb-card.selected .thumb-check-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.thumb-actions-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 3;
}

.thumb-action-mini {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #D5DDD6;
  color: #18261B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.thumb-action-mini:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.thumb-action-delete:hover {
  background: #DC2626 !important;
  color: white !important;
  border-color: #DC2626 !important;
}

/* Merge Document Card with Cover Thumbnail */
.merge-file-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 12px 18px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.merge-file-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.merge-thumb-box {
  width: 48px;
  height: 64px;
  background: #F4F7F4;
  border: 1px solid #D8E0D8;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.merge-thumb-box canvas {
  max-width: 100%;
  max-height: 100%;
}

/* Page Zoom Modal */
.page-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(24, 38, 27, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page-preview-modal.active {
  display: flex;
}

.page-preview-dialog {
  background: white;
  border-radius: var(--radius-xs);
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.page-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 800;
  font-size: 1rem;
}

.page-preview-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  background: #F8FAF8;
}

.page-preview-body canvas,
.page-preview-body img {
  max-width: 100%;
  height: auto;
  box-shadow: var(--shadow-md);
  border-radius: 2px;
}

/* Settings Bar */
.tool-settings-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.setting-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.setting-select, .setting-input {
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
  background: white;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
}

.setting-select:focus, .setting-input:focus {
  border-color: var(--primary);
}

/* Step-by-Step Guide Section */
.guide-section {
  padding: 3.5rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 2rem;
}

.step-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 22px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Content SEO Section */
.content-seo-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}

.editorial-box {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 34px;
  line-height: 1.7;
}

.editorial-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 1.5rem 0 0.8rem;
}

.editorial-box h3:first-child {
  margin-top: 0;
}

.editorial-box p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.card-feature {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 20px;
}

/* FAQ Section */
.faq-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-color);
}

.faq-list {
  max-width: 820px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  transition: transform var(--transition-normal);
  color: var(--text-light);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  border-top: 1px solid var(--primary-light);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Refined Warm Mineral / Olive-tinted Light Footer (NOT BLACK!) */
.site-footer-light {
  margin-top: auto;
  background: #EBEFEA;
  color: #24382A;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 2.5rem;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: #24382A;
  margin: 12px 0 16px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-title {
  color: #142017;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #24382A;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #142017;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #D2DDD4;
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.84rem;
  color: #24382A;
}

.footer-bottom a {
  color: #24382A;
  text-decoration: underline;
  font-weight: 600;
}

/* CNIL / RGPD Cookie Banner */
.cookie-banner-sharp {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 540px;
  margin: 0 auto;
  background: #ffffff;
  color: var(--text-main);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--primary-border);
}

.cookie-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

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

.btn-cookie-accept {
  background: var(--primary);
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-cookie-refuse {
  background: white;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  cursor: pointer;
}

/* Admin Dashboard - Modern Architectural Light Olive UI */
.admin-layout {
  min-height: 100vh;
  background: #F6F8F6;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  color: #18261B;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #DCE3DD;
  box-shadow: 1px 0 3px rgba(24, 38, 27, 0.02);
  overflow-y: auto;
  z-index: 1000;
  box-sizing: border-box;
}

.admin-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #18261B;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-badge-tag {
  font-size: 0.72rem;
  background: #EEF3EE;
  color: #38593F;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  border: 1px solid #D6E0D7;
  letter-spacing: 0.02em;
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  padding: 0;
  margin: 0;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #4A5B4C;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.admin-nav-link:hover {
  color: #18261B;
  background: #F4F7F4;
}

.admin-nav-link.active {
  color: #2D4C34;
  background: #EEF4EE;
  font-weight: 700;
  border: 1px solid #D6E3D8;
}

.admin-nav-link.active svg {
  color: #38593F;
}

.admin-sidebar-footer {
  border-top: 1px solid #EAEFEA;
  padding-top: 18px;
  margin-top: auto;
  flex-shrink: 0;
  background: #FFFFFF;
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #F8FAF8;
  border: 1px solid #E5EBE5;
  border-radius: var(--radius-xs);
}

.online-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.admin-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #FFFFFF;
  color: #2D4C34;
  border: 1px solid #D6E0D7;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-btn-light:hover {
  background: #F4F7F4;
  border-color: #38593F;
  color: #18261B;
}

.admin-btn-logout {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #FAF2F2;
  color: #991B1B;
  border: 1px solid #F3C4C4;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-btn-logout:hover {
  background: #FDE8E8;
}

.admin-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-btn-primary:hover {
  background: var(--primary-hover);
}

.admin-main {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
  background: #F6F8F6;
  padding: 36px 40px;
  box-sizing: border-box;
}

.stat-card {
  background: white;
  border: 1px solid #DCE3DD;
  border-radius: var(--radius-xs);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
}

.stat-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #18261B;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.15rem; }
  .tool-header-title { font-size: 1.85rem; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.75rem; }
  .tool-interactive-card-sharp { padding: 18px 14px; }
  .dropzone-sharp { padding: 30px 12px; }
  .btn-primary-action { width: 100%; }
}
