/* ============================================
   HEXHAL — Flat Design Stylesheet
   Palette : noir / blanc / rgb(255, 86, 27)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;700&display=swap');

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --primary:        rgb(255, 86, 27);
  --primary-light:  rgb(255, 120, 70);
  --primary-dark:   rgb(200, 60, 10);

  --black:          #0c0c0c;
  --dark:           #161616;
  --dark-2:         #1f1f1f;
  --dark-3:         #2a2a2a;

  --white:          #ffffff;
  --gray-100:       #f5f5f5;
  --gray-200:       #e5e5e5;
  --gray-400:       #999999;
  --gray-600:       #555555;

  --text:           #e8e8e8;
  --text-muted:     #888888;
  --text-faint:     #444444;

  --border:         #2a2a2a;
  --border-light:   #333333;

  --font-display:   'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;

  --radius-sm:      3px;
  --radius-md:      6px;
  --radius-lg:      10px;

  --transition:     0.15s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-light); }

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2em, 5vw, 3.2em); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.4em, 3vw, 1.9em); letter-spacing: -0.3px; }
h3 { font-size: 1.1em; }
h4 { font-size: 0.9em; letter-spacing: 0.5px; text-transform: uppercase; }

p { line-height: 1.7; }

.accent       { color: var(--primary); }
.muted        { color: var(--text-muted); }
.faint        { color: var(--text-faint); }
.uppercase    { text-transform: uppercase; letter-spacing: 2px; font-size: 0.75em; }

.section-label {
  font-family: var(--font-display);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(1.3em, 3vw, 1.8em);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.92em;
  margin-bottom: 40px;
  max-width: 480px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.container-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px;
}

.section     { padding: 80px 48px; }
.section-sm  { padding: 48px 48px; }

.page-content { padding-top: 64px; }

/* Grilles */
.grid        { display: grid; gap: 1px; }
.grid-2      { grid-template-columns: repeat(2, 1fr); }
.grid-3      { grid-template-columns: repeat(3, 1fr); }
.grid-4      { grid-template-columns: repeat(4, 1fr); }
.grid-auto   { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }

.gap-xs  { gap: 6px; }
.gap-sm  { gap: 12px; }
.gap-md  { gap: 20px; }
.gap-lg  { gap: 40px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.1em;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.navbar-logo span { color: var(--primary); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-link {
  color: var(--text-muted);
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  cursor: pointer;
}

.navbar-link:hover,
.navbar-link.active { color: var(--white); }

/* ============================================
   BOUTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85em;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-light);
}
.btn-ghost:hover {
  color: var(--white);
  border-color: var(--gray-600);
}

.btn-sm  { padding: 7px 16px; font-size: 0.78em; }
.btn-lg  { padding: 13px 32px; font-size: 0.92em; }
.btn-full{ width: 100%; }

/* ============================================
   CARTES
   ============================================ */
.card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color var(--transition);
}

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

.card-label {
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.card-body {
  color: var(--text-muted);
  font-size: 0.88em;
  line-height: 1.6;
}

/* Carte avec bordure gauche orange */
.card-accent {
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ============================================
   LISTE / ROWS
   ============================================ */
.row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.row-item:first-child { border-top: 1px solid var(--border); }
.row-item:hover { padding-left: 8px; }
.row-item:hover .row-name { color: var(--primary); }

.row-name {
  font-family: var(--font-display);
  font-size: 0.9em;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}

.row-desc {
  color: var(--text-muted);
  font-size: 0.82em;
  margin-top: 2px;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-primary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.badge-white {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.badge-solid {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

/* ============================================
   DIVIDERS
   ============================================ */
hr, .divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.divider-orange {
  border: none;
  height: 1px;
  background: var(--primary);
  width: 40px;
  margin: 20px 0;
}

/* ============================================
   FORMULAIRES
   ============================================ */
label {
  display: block;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88em;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

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

input::placeholder,
textarea::placeholder { color: var(--text-faint); }

textarea { resize: vertical; min-height: 110px; }

.form-group { margin-bottom: 18px; }

/* ============================================
   STATS
   ============================================ */
.stats-bar {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  flex: 1;
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.9em;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.footer-logo span { color: var(--primary); }
.footer-copy { color: var(--text-faint); font-size: 0.78em; }

/* ============================================
   UTILITAIRES
   ============================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-xs  { margin-top: 6px; }
.mt-sm  { margin-top: 12px; }
.mt-md  { margin-top: 20px; }
.mt-lg  { margin-top: 40px; }
.mt-xl  { margin-top: 72px; }

.mb-xs  { margin-bottom: 6px; }
.mb-sm  { margin-bottom: 12px; }
.mb-md  { margin-bottom: 20px; }
.mb-lg  { margin-bottom: 40px; }
.mb-xl  { margin-bottom: 72px; }

.w-full { width: 100%; }
.hidden { display: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .container, .section, .section-sm { padding-left: 24px; padding-right: 24px; }
  .navbar { padding: 0 24px; }
  .footer { padding: 20px 24px; flex-direction: column; gap: 10px; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .navbar-links .navbar-link { display: none; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
}