:root {
  --bg: #0d1a0d;
  --bg-card: #162316;
  --bg-card2: #1e321e;
  --gold: #F5A500;
  --green: #2d8a3e;
  --text: #ffffff;
  --muted: #8aaa8a;
  --border: rgba(255,255,255,0.1);
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex: 1;
}

/* Navbar */
header {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-card);
  padding: 1rem 0;
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-badge {
  background: var(--green);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.logo-text h1 {
  font-size: 16px;
  font-weight: 700;
}
.logo-text p {
  font-size: 11px;
  color: var(--muted);
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  margin-left: 1.5rem;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--gold);
}

/* Grille d'outils index */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}
.hero h2 {
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
}
.card-icon {
  color: var(--gold);
  font-size: 1.5rem;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}
.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Composant Zone d'upload */
.tool-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}
.tool-box h2 {
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}
.tool-box .desc {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 2rem;
}

.drop-zone {
  border: 2px dashed var(--muted);
  border-radius: var(--radius);
  padding: 3rem 1rem;
  cursor: pointer;
  background: var(--bg-card2);
  transition: border-color 0.2s, background-color 0.2s;
  margin-bottom: 1.5rem;
}
.drop-zone.drag-over {
  border-color: var(--gold);
  background: rgba(245, 165, 0, 0.05);
}
.drop-zone p {
  font-size: 13px;
  color: var(--muted);
}
.file-input {
  display: none;
}

/* Boutons & Progress */
.btn {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover {
  opacity: 0.9;
}
.btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

.progress-container {
  display: none;
  margin-top: 1.5rem;
}
.progress-bar-wrapper {
  background: var(--bg-card2);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.progress-bar {
  background: var(--green);
  width: 0%;
  height: 100%;
  transition: width 0.3s;
}
.progress-text {
  font-size: 11px;
  color: var(--muted);
}

.file-list {
  font-size: 12px;
  color: var(--gold);
  margin-top: 10px;
  text-align: left;
  background: rgba(0,0,0,0.2);
  padding: 8px;
  border-radius: 4px;
  display: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  margin-top: auto;
}
/* Intégration du logo professionnel dans la barre supérieure */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px; /* Espace équilibré entre le logo et les titres */
}

.site-logo {
    height: 38px;       /* Hauteur idéale pour rester discret et lisible */
    width: auto;        /* Conserve les proportions d'origine de ton design */
    object-fit: contain;
    display: block;
}