:root {
  --bg-dark: #1e1e1e;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --accent: #00e676;
  --card-bg: #2c2c2c;
  --gradient: linear-gradient(135deg, #7928CA, #FF0080);
}

html {
  scroll-behavior: smooth;
}
html, body {
  overflow-x: hidden;
}
/* Pour éviter les débordements dus à padding/border */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow: hidden; /* bloque scroll pendant splash */
}

/* Splash overlay */
#splash {
  position: fixed;
  inset: 0;
  background: #f7f9fc;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 1s ease;
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
}

.logo-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.rotating-ring {
  position: absolute;
  inset: 0;
  border: 8px solid white;
  border-top: 8px solid #28a745;
  border-radius: 50%;
  animation: spin 2s linear infinite;
  box-sizing: border-box;
}
img, table {
  max-width: 100%;
  height: auto;
}
.logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.seo-local {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* Contenu principal initialement invisible */
#main-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

#main-content.visible {
  opacity: 1;
  pointer-events: auto;
  overflow: auto; /* autorise scroll une fois visible */
}

/* Conteneur général */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

/* Bannière */
.header {
  position: relative;
  background: url('../image/teee.webp') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  overflow-x: hidden;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.header .container {
  position: relative;
  z-index: 1;
}

.header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-right: 2rem;
}

.navbar-logo img {
  height: 100px;
  max-height: 100px;
  width: auto;
  display: block;
}

.navbar a {
  color: #1e1e1e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  margin-right: 1rem;
}

.navbar a:hover {
  color: var(--accent);
}

/* Sections */
.section {
  padding: 4rem 2rem;
}

.bg-light {
  background-color: var(--bg-light);
  color: #333;
}

/* Grid pour services */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  height: 160px;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  text-align: center;
}

.card p {
  color: white;
}

/* Titres */
h2, h3 {
  color: var(--accent);
}

/* Boutons */
.btn-primary, .btn-secondary {
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 2rem;
  transition: background 0.3s ease;
}

.btn-primary {
  background-color: #00e676;
  color: #1e1e1e;
}

.btn-primary:hover {
  background-color: #00c853;
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* Formulaire */
.form input, .form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #333;
  color: white;
}

.form textarea {
  resize: vertical;
  height: 150px;
}

/* Tableau tarifs */
.tarif-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background-color: white;
  border-radius: 8px;
  overflow-x: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tarif-table th,
.tarif-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.tarif-table thead {
  background-color: #00e676;
  color: #1e1e1e;
  font-weight: bold;
}

.tarif-table tbody tr:hover {
  background-color: #f5f5f5;
}

/* Contact */
.contact-centered {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-centered p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background-color: #111;
  text-align: center;
  padding: 2rem;
  color: #aaa;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  .form input,
  .form textarea {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
  }
}
/* Burger menu - visible uniquement en mobile */
.burger {
  display: none; /* caché en desktop */
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  width: 30px;
  height: 22px;
  background-color: #111;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  background: var(--text-light);
  border-radius: 3px;
  transition: 0.4s ease;
}

/* Transformation quand menu actif (croix) */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar responsive */
@media (max-width: 768px) {
  .burger {
    display: flex; /* affiché en mobile */
  }

  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    z-index: 999;
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-container {
    position: relative;
  }
}
