/* Variables globales de couleur et de theme */
:root {
  --bg: #07151f;
  --surface: #0d2434;
  --surface-soft: #102f43;
  --text: #eef7ff;
  --muted: #b7ccdd;
  --primary: #2dcf96;
  --primary-dark: #1e8c67;
  --line: rgba(238, 247, 255, 0.14);
}

/* Reinitialisation de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Styles generaux de la page */
body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(45, 207, 150, 0.18), transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(102, 180, 255, 0.18), transparent 34%),
    linear-gradient(170deg, #04111a 0%, #07151f 38%, #0c2434 100%);
  min-height: 100vh;
}

/* Liens sans soulignement par defaut */
a {
  color: inherit;
  text-decoration: none;
}

/* Images fluides */
img {
  max-width: 100%;
  display: block;
}

/* Typographie des titres */
h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
}

/* Paragraphes lisibles avec couleur secondaire */
p {
  color: var(--muted);
  line-height: 1.6;
}

/* Largeur commune des principales zones de mise en page */
header,
main,
footer {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

/* Espacement de l'en-tete */
header {
  padding: 1.2rem 0;
}

/* Barre de navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo/nom de marque */
.brand {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

/* Accent de couleur dans la marque */
.brand span {
  color: var(--primary);
}

/* Liens de navigation */
.nav-links {
  display: flex;
  gap: 1.2rem;
}

/* Apparence des liens du menu */
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

/* Etat actif et survol du menu */
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* Espacement vertical par section */
section {
  padding: 2.8rem 0;
}

/* Bouton principal reutilisable */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--primary), #47b2ff);
  color: #00161c;
  border-radius: 999px;
  padding: 0.78rem 1.4rem;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Effet au survol du bouton */
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Pastille d'information */
.chip {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Titre de section adaptatif */
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 0.8rem;
}

/* Pied de page */
footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Groupe de liens sociaux */
.socials {
  display: flex;
  gap: 0.8rem;
}

/* Boutons des reseaux sociaux */
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.2s ease;
}

/* Effet au survol des icones sociales */
.socials a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Taille des icones sociales */
.socials img {
  width: 1rem;
  height: 1rem;
}

/* Adaptations pour ecrans moyens et petits */
@media (max-width: 820px) {
  header,
  main,
  footer {
    width: min(1120px, calc(100% - 2rem));
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}