:root {
  --bg: #0f172a;
  --bg-alt: #020617;
  --surface: #111827;
  --border: #1f2937;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #1e293b 0, #020617 45%, #000 100%);
}

body {
  min-height: 100vh;
}

/* Liens d'évitement */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  z-index: 1000;
}

/* Layout global */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  padding: 64px 0;
  background: radial-gradient(circle at 100% 0%, #020617 0, #020617 50%, #000 100%);
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.section-intro {
  margin: 0 0 2rem 0;
  max-width: 640px;
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(31, 41, 55, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #60a5fa, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav a {
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover,
.nav a:focus {
  color: var(--text);
  background: rgba(31, 41, 55, 0.9);
}

/* Hero */

.hero {
  padding: 72px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 1rem 0;
}

.hero .accent {
  color: #60a5fa;
}

.hero p {
  color: var(--muted);
  margin: 0 0 1rem 0;
}

.hero-panel {
  background: linear-gradient(140deg, var(--accent-soft), rgba(15, 23, 42, 0.98));
  border-radius: 20px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(37, 99, 235, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.hero-panel h2 {
  margin: 0 0 0.6rem 0;
  font-size: 1.1rem;
}

.hero-panel p {
  margin: 0 0 0.6rem 0;
  font-size: 0.9rem;
}

.hero-note {
  color: var(--muted);
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  border-color: transparent;
  color: #f9fafb;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Grilles & cartes */

.grid {
  display: grid;
  gap: 20px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px 18px 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

.card h3 {
  margin-top: 0;
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--muted);
}

/* Pills */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.9);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 24px;
}

.contact-info {
  list-style: none;
  margin: 1rem 0 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-info li {
  margin-bottom: 0.35rem;
}

.contact-info a {
  color: #93c5fd;
  text-decoration: none;
}

.contact-card {
  margin-top: 0.4rem;
}

.small {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.8rem 0;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
}

input,
textarea {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 0.9rem;
}

textarea {
  resize: vertical;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(3, 7, 18, 0.96);
  padding: 18px 0;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .section,
  .section-alt {
    padding: 48px 0;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Ajustement du header & du logo AMI --- */

.header-inner {
  align-items: center;
  gap: 30px; /* espace entre le logo et le texte/menu */
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Zone logo plus grande */
.brand-logo {
  width: 180px;   /* augmente la largeur */
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image logo nette & visible */
.brand-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.8)); /* halo léger pour lisibilité */
}

/* Eviter que le texte vienne se coller sous le logo */
.brand-text {
  margin-left: 10px;
}

.nav ul {
  margin-left: 20px; /* espace supplémentaire */
}
