/* Project ATLAS - Site #18: Convertisseur d'Images en PDF (French) */
:root {
  --bg-primary: #0a0f1d;
  --bg-surface: #111827;
  --bg-card: #1f293d;
  --border-subtle: #334155;
  --border-focus: #f43f5e;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-red: #f43f5e;
  --accent-red-hover: #e11d48;
  --accent-rose: #fb7185;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header */
header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent-red);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--accent-red);
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto;
}

/* Tool Area */
.tool-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Drop Zone */
.dropzone {
  border: 2px dashed #475569;
  border-radius: 0.75rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(31, 41, 61, 0.4);
  transition: all 0.2s ease;
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-red);
  background: rgba(244, 63, 94, 0.06);
}

.dropzone-icon {
  width: 4rem;
  height: 4rem;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.dropzone-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.dropzone-hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Settings Bar */
.settings-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setting-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
}

.setting-select {
  background: #0b1120;
  border: 1px solid var(--border-subtle);
  border-radius: 0.375rem;
  padding: 0.6rem 0.85rem;
  color: #fff;
  font-size: 0.95rem;
}

/* Image Thumbnails List */
.images-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.image-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.image-thumb-wrap {
  width: 100%;
  height: 140px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-meta {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.image-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-size {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.image-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.75rem;
  background: rgba(11, 17, 32, 0.6);
  border-top: 1px solid var(--border-subtle);
}

.btn-mini {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.btn-mini:hover {
  color: var(--accent-red);
}

/* Action Controls */
.action-panel {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-convert {
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.2s, transform 0.1s;
}

.btn-convert:hover:not(:disabled) {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
}

.btn-convert:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-clear {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-clear:hover {
  color: #fff;
  border-color: #64748b;
}

/* Progress Status */
.status-bar {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.5rem;
  color: #34d399;
  font-size: 0.95rem;
  display: none;
}

/* Editorial Content */
.editorial-section {
  padding-bottom: 5rem;
}

.editorial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.editorial-card h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #fff;
}

.editorial-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #e2e8f0;
}

.editorial-card p {
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.badge-tag {
  display: inline-block;
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  background: #060911;
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

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

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-red);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tool-container {
    padding: 1.5rem;
  }
}
