/* === Import Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Inter&display=swap');

/* ========== BASE MOBILE-FIRST ========== */

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  /* Texte courant lisible */
  color: #222;
  background: linear-gradient(to bottom right, #fff4e6, #ffe9d6);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

/* Canvas de fond */
#space-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  background: transparent;
}

/* Bouton changement langue */
#lang-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

#switch-lang {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  padding: 0.7rem;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 0 8px #ff990055;
  transition: transform 0.2s ease;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#switch-lang:hover,
#switch-lang:focus {
  outline: none;
  transform: scale(1.1);
  box-shadow: 0 0 12px #ff660088;
}

/* Titres et boutons en Orbitron */
h1,
h2,
h3,
.cta-button {
  font-family: 'Orbitron', sans-serif;
}

/* Section d’accueil (Hero) */
.hero {
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 70vh;
  color: #222;
}

.hero .overlay {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 25px #ffb34755;
  animation: fadeIn 2s ease-out;
  max-width: 400px;
  width: 90%;
}

.hero h1 {
  font-size: 2.5rem;
  color: #ff6600;
  text-shadow: 0 0 10px #ffb34788;
  margin: 0 0 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin: 0 0 1.5rem;
  color: #444;
  font-family: 'Inter', sans-serif;
  /* Paragraphe en Inter */
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, #ff9933, #ff6600);
  color: #fff;
  text-transform: uppercase;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: 0 0 15px #ff660080;
  user-select: none;
  font-size: 1rem;
  min-width: 140px;
  text-align: center;
}

.cta-button:hover,
.cta-button:focus {
  transform: scale(1.05);
  outline: none;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ff6600;
  text-shadow: 0 0 10px #ffbb6688;
}

.section p {
  max-width: 90vw;
  margin: 0 auto;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
  /* Texte courant */
}

/* Carte services - mobile first: colonne */
.services {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem;
  margin-top: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  box-shadow: 0 0 20px #ffd58033;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #222;
  user-select: none;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 0 30px #ffa50055;
  outline: none;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #ff6600;
  font-family: 'Orbitron', sans-serif;
  /* Titres des cartes */
}

/* Pied de page */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  color: #666;
  user-select: none;
  font-family: 'Inter', sans-serif;
  /* Texte footer */
}

/* Animation d'entrée */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== TABLETTE ET + (MIN WIDTH 768px) ========== */
@media (min-width: 768px) {
  body {
    font-size: 18px;
  }

  .hero {
    min-height: 100vh;
    padding: 0;
  }

  .hero .overlay {
    max-width: 600px;
    width: 100%;
    padding: 2.5rem 3rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.4rem;
  }

  .services {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    padding: 0;
  }

  .service-card {
    width: 300px;
    padding: 2rem;
  }

  .section {
    padding: 6rem 2rem;
  }

  .section h2 {
    font-size: 2.5rem;
  }

  .section p {
    font-size: 1.1rem;
    max-width: 800px;
  }

  .cta-button {
    font-size: 1.1rem;
    min-width: 180px;
  }
}

footer a {
  color: #ff6600;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #cc5200;
  text-decoration: underline;
}
