:root {
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --primary: #26a69a;
  --secondary: #1e1e1e;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "BankGothic Md BT";
  src: url("../fonts/BankGothic Md BT.ttf");
}

body {
  margin: 0;
  font-family: 'BankGothic Md BT';
  background: var(--bg-color);
  color: var(--text-color);
  transition: background var(--transition), color var(--transition);
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(18, 18, 18, 0.4);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 100;
}

.logo {
  font-weight: bold;
  font-size: 1.3rem;
}

.icon-reseau {
    display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

/* Reset et style de base */
body {
    margin: 0;
    font-family: 'BankGothic Md BT';
    background-color: #121212;
    color: #f0f0f0;
}

/* Style du bouton hamburger */
.hamburger {
    position: fixed;
    left: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
    padding: 15px;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Style du menu latéral - thème sombre */
.menu {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background-color: #070713f0;
    transition: left 0.3s ease;
    z-index: 999;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
    padding: 80px 0 0 0;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.menu li:last-child {
    border-bottom: none;
}

.menu a {
    text-decoration: none;
    color: #f0f0f0;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
}

.menu a:hover {
    color: #4da6ff;
    transform: translateX(5px);
}

/* Animation du bouton hamburger */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Affichage du menu quand actif */
.menu.active {
    left: 0;
}



/* --- NAV MOBILE --- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--bg-color);
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition);
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
  }

  .hamburger {
    display: flex;
  }
}

/* --- HERO --- */
.hero {
  background: url('../img/bgmain.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5vw;
  border-radius: 15px;
}

.btn-primary {
  background: linear-gradient(180deg,rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 0.67) 100%);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

/* --- GRID SECTIONS --- */
.grid-section {
  padding: 4rem 2rem;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  padding: 2rem;
  border-radius: 15px;
  color: white;
}

.green { background: #2e7d32; }
.yellow { background: #fbc02d; color: #222; }
.orange { background: #f57c00; }
.brown { background: #5d4037; }
.blue { background: #1976d2; }
.purple { background: #7b1fa2; }
.teal { background: #00796b; }
.red { background: #c62828; }

.carousel {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
}

/* --- FOOTER --- */
.footer {
  padding: 3rem 2rem;
  color: var(--text-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-content h3 {
  margin-bottom: 1rem;
}

.footer-content ul {
  list-style: none;
  padding: 0;
}

.footer-content a {
  color: var(--text-color);
  text-decoration: none;
}

.footer-content a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.contact-link {
    cursor: pointer;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

/*.form-link {
    cursor: pointer;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}*/

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #1c1c1c;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
}

input, textarea {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    margin-top: 15px;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}


/* --- SERVICES --- */
.services_old {
  background: var(--secondary);
  padding: 4rem 2rem;
  text-align: center;
}

.servies {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--bg-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.services-card {
  background: var(--secondary);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.6);
}

.services-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.services-content {
  padding: 1.5rem;
  text-align: left;
}

.services-content h3 {
  margin: 0 0 0.5rem;
}

.services-content p {
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.9;
}

.btn-secondary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: #009688;
}

/* === SECTION CARROUSEL === */
.carousel-section {
  position: relative;
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
}

.carousel-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/bgmain.jpg') center/cover no-repeat;
  transform: scaleX(-1); /* Effet miroir */
  z-index: -1; /* Place l'arrière-plan derrière le contenu */
}

.carousel-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2rem 0;
  scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-container .card {
  flex: 0 0 300px;
  background: var(--secondary);
  color: var(--text-color);
  border-radius: 15px;
  padding-bottom: 50px;
  transition: transform 0.3s ease;
}

.carousel-container .card:hover {
  transform: translateY(-5px);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 1.8rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.2);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Responsive */
@media (max-width: 768px) {
  .carousel-container .card {
    flex: 0 0 80%;
  }
  .carousel-btn {
    font-size: 1.4rem;
    padding: 0.3rem 0.8rem;
  }
}

/* Scroll-to-top button styling */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #1685e89c;
  color: white;
  border: none;
  border-radius: 45%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: +1;
}

#scrollToTopBtn:hover {
  background-color: #054f919c;
  transform: translateY(-5px);
}

#scrollToTopBtn.show {
  display: flex;
}

