/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  min-height: 100vh;
  scroll-behavior: smooth;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Loader */
.loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.loader img {
  width: 150px;
  animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.loader-text {
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
  font-weight: 700;
  opacity: 0.8;
  animation: fadeText 1.5s infinite ease-in-out;
}

@keyframes fadeText {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}


/* Header */
header {
  background: #ffffff; /* Blanc */
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 100px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
nav ul li a {
  color: #333; /* Texte sombre */
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
nav ul li a:hover,
nav ul li a.active {
  background-color: #e6f0ff;
  color: #0074D9;
}

/* Hero Section */
.hero {
  position: relative;
  background: url('net.jpg') no-repeat center center/cover;
  color: white;
  padding: 100px 0 80px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); /* assombrit l'image */
}

.hero .container {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: none; /* <- Facultatif : enlève l'effet sombre */
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
color: #fff;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
.btn {
  background-color: #0074D9;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #005fa3;
}

/* Services Section */
.services, .services-page {
  padding: 70px 0;
  background: white;
  text-align: center;
}
.services h2, .services-page h1 {
  margin-bottom: 40px;
  color: #001f3f;
  font-weight: 700;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 30px;
}
.service-item {
  background: #f2f7ff;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.service-item:hover {
  transform: translateY(-8px);
}
.service-item i {
  font-size: 3rem;
  color: #0074D9;
  margin-bottom: 20px;
}
.service-item h3 {
  margin-bottom: 15px;
  color: #001f3f;
  font-weight: 700;
}
.service-item p {
  font-size: 1rem;
  color: #444;
}

/* CTA Section */
.cta {
  background-color: #001f3f;
  color: white;
  padding: 60px 0;
  text-align: center;
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 25px;
}
.cta .btn {
  padding: 14px 40px;
  font-size: 1.2rem;
}

/* About Page */
.apropos-page {
  padding: 60px 0;
  background: white;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
  color: #222;
}
.apropos-page h1, .apropos-page h2 {
  color: #001f3f;
  margin-bottom: 15px;
}
.apropos-page p, .apropos-page ul {
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.5;
}
.apropos-page ul {
  list-style-type: disc;
  margin-left: 20px;
}

/* Contact Page */
.contact-page {
  max-width: 700px;
  margin: 40px auto 80px;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.contact-page h1 {
  color: #001f3f;
  margin-bottom: 20px;
  text-align: center;
}
.contact-page p {
  margin-bottom: 30px;
  text-align: center;
  font-size: 1.1rem;
}
.contact-page form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-page label {
  font-weight: 600;
  color: #001f3f;
}
.contact-page input,
.contact-page textarea {
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}
.contact-page input:focus,
.contact-page textarea:focus {
  border-color: #0074D9;
  outline: none;
}
.contact-page button {
  background-color: #0074D9;
  color: white;
  padding: 14px;
  font-size: 1.1rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}
.contact-page button:hover {
  background-color: #005fa3;
}

/* Contact Info */
.contact-page h2 {
  text-align: center;
  margin: 50px 0 20px;
  color: #001f3f;
}
.contact-page p {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
}

/* Google Map */
.map-container {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  height: 350px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background: #001f3f;
  color: white;
  padding: 20px 0;
  text-align: center;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}
.social-icons a:hover {
  color: #0074D9;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0074D9;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}
.scroll-top i {
  font-size: 20px;
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    display: none;
  }
  nav ul.show {
    display: flex;
  }
}
.localisation {
  padding: 60px 0;
  background: #ffffff;
  text-align: center;
}

.localisation h2 {
  color: #001f3f;
  font-size: 2rem;
  margin-bottom: 15px;
}

.localisation p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 25px;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  height: 350px;
}


.services-carousel {
  padding: 60px 0;
  background: #f9f9f9;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  gap: 20px;
  will-change: transform;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 116, 217, 0.8);
  color: white;
  border: none;
  font-size: 28px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: #005fa3;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

.service-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #007BFF;
  color: #fff;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.carousel-btn.left {
  left: -10px;
}

.carousel-btn.right {
  right: -10px;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .service-item {
    flex: 0 0 100%;
  }

  .carousel-btn.left, .carousel-btn.right {
    top: 90%;
    transform: translateY(-50%);
  }
}

.spinner-circle {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(0, 116, 217, 0.2);
  border-top: 6px solid #0074D9; /* Bleu METANET */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 20px;
}

/* Animation de rotation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
