/* Reset & baseline */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: sans-serif;
  background: #0A1A27;
  color: #fff;
  line-height: 1.6;
}

/* Pré‐loader */
#loader {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0A1A27;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity .5s ease;
}
.loader-logo {
  width: 120px;
  animation: spin 2s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
#loader.loaded { opacity: 0; pointer-events: none; }

/* Bouton flottant */
.btn-float {
  position: fixed; bottom: 20px; right: 20px;
  background: #00cc88; color: #011;
  padding: 0.75rem 1.25rem; border-radius: 50px;
  text-decoration: none; font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform .2s ease, box-shadow .2s ease;
  z-index: 1000;
}
.btn-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Header & nav */
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem; background: #011;
}
.logo { height: 50px; }
nav ul {
  list-style: none; display: flex; flex-wrap: wrap;
  margin: 0; padding: 0;
}
nav ul li { position: relative; margin-right: 1.5rem; }
nav ul a {
  color: #fff; text-decoration: none;
  padding: 0.5rem; display: block;
}
/* Sous-menu */
nav ul li.submenu > ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: #011; box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border-radius: 4px;
}
nav ul li.submenu:hover > ul { display: block; }
nav ul li.submenu ul a { padding: 0.5rem 1rem; white-space: nowrap; }

/* Hero vidéo / Parallax */
.hero-video {
  position: relative; height: 80vh; overflow: hidden;
}
#background-video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  z-index: -1; filter: brightness(50%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 0 1rem;
}
.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero-content p {
  max-width: 700px; margin: 0 auto 1.5rem;
}

/* Points forts */
.points-forts {
  list-style: none; padding: 0;
  display: inline-flex; gap: 1.5rem;
  margin: 1rem 0;
}
.btn {
  display: inline-block; padding: 0.75rem 1.5rem;
  background: #fff; color: #011; border-radius: 4px;
  text-decoration: none; font-weight: bold;
  transition: transform .2s ease;
}
.btn:hover { transform: scale(1.05); }

/* Section chiffres clés */
.stats-section {
  padding: 3rem 1rem; background: #011; text-align: center;
}
.stats-grid {
  display: flex; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.stat h3 {
  font-size: 2.5rem; margin: 0; color: #00cc88;
}
.stat p { margin: 0.5rem 0 0; font-size: 1rem; color: #ccc; }
.counter { display: inline-block; min-width: 3ch; }

/* Sections générales */
.content-section { padding: 2rem 1rem; }
.content-section.alternate { background: #022; }
.content-section h2 {
  font-size: 2rem; margin-bottom: 1rem;
  border-bottom: 2px solid #00cc88; display: inline-block;
}

/* Grille de services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.services-grid article {
  background: #011; padding: 1rem; border-radius: 4px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.services-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.services-grid article h3 {
  margin-top: 0; font-size: 1.25rem; color: #00cc88;
}
.services-grid article p { margin: 0.5rem 0; }

/* Swiper témoignages */
.swiper-container { width: 100%; padding: 2rem 0; }
.swiper-slide blockquote {
  font-size: 1.1rem; font-style: italic;
  max-width: 600px; margin: 0 auto;
  color: #ccc;
}
.swiper-slide footer {
  margin-top: 1rem; text-align: right;
  font-weight: bold; color: #fff;
}

/* Flip-cards Réalisations */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem; padding: 2rem 1rem;
}
.flip-card {
  background: transparent; perspective: 1000px;
}
.flip-card-inner {
  position: relative; width: 100%; height: 300px;
  text-align: center; transform-style: preserve-3d;
  transition: transform .6s;
}
.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute; width: 100%; height: 100%;
  backface-visibility: hidden; border-radius: 8px;
  padding: 1rem; display: flex; flex-direction: column;
  justify-content: center;
}
.flip-card-front {
  background: #011; box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.flip-card-front h3 { margin-bottom: .5rem; color: #00cc88; }
.flip-card-back {
  background: #00cc88; color: #011;
  transform: rotateY(180deg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.flip-card-back h3 { margin-bottom: .5rem; }
.flip-card-back ul {
  list-style: disc inside; margin: 0; padding: 0;
}
.flip-card-back li { margin: .5rem 0; }

/* Footer */
footer {
  background: #011; color: #ccc;
  padding: 2rem 1rem; text-align: center;
}
footer .contact-form {
  display: flex; flex-wrap: wrap;
  gap: 0.5rem; justify-content: center;
  margin: 1rem 0;
}
footer input,
footer textarea {
  padding: 0.5rem; width: 200px;
  border: 1px solid #444; border-radius: 4px;
}
footer button {
  padding: 0.5rem 1rem; background: #00cc88;
  border: none; border-radius: 4px;
  color: #011; font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul { flex-direction: column; }
  nav ul li { margin-right: 0; }
  .hero-content { padding: 1rem; }
  .hero-content h1 { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { flex-direction: column; gap: 1rem; }
  .cards-container { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .btn-float {
    bottom: 15px; right: 15px;
    padding: 0.5rem 1rem;
  }
}
