/* ====================
   STYLES GÉNÉRAUX
==================== */
body {
  margin: 2rem auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  line-height: 1.6;
  background-color: #f9f9f9;
  max-width: 900px;
  padding: 0 1rem;
}

}

/* Titres */
h1 {
  text-align: center;
  color: #e6c200; /* Jaune Sirius */
  margin-bottom: 2rem;
  font-weight: 700;
}

h2 {
  color: #b59900; /* Jaune Sirius foncé */
  border-bottom: 2px solid #e6c200;
  padding-bottom: 0.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Paragraphes et listes */
p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

ul li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* Tableaux */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

table th,
table td {
  border: 1px solid #e6c200;
  padding: 0.6rem 1rem;
  text-align: left;
}

table th {
  background-color: #fff8cc;
  color: #b59900;
  font-weight: 700;
}

/* ====================
   FONDS DE PAGE SPÉCIFIQUES
==================== */
body.index {
  background-image: url('images/background_index.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.clio2rs1 {
  background-image: url('images/clio2rs1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.clio4rs18 {
  background-image: url('images/clio4rs18_22.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body.services {
  background-image: url('images/services.jpg');
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body.contact {
  background-image: url('images/background_index.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* ====================
   CONTENEUR CENTRAL
==================== */
.container {
  background-color: rgba(255, 255, 255, 0.81);
  padding: 2rem 2rem 3rem 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  margin-bottom: 2rem;
  max-width: 900px;
  margin: 3rem auto;
}

/* ====================
   NAVIGATION
==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #ddd;
  z-index: 1000;
  padding: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.navbar ul li {
  display: inline;
}

.navbar ul li a {
  color: #2a2a2a;
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  border-bottom: 2px solid transparent;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  background-color: #ffd500;
  color: #000;
  border-bottom: 2px solid #ffd500;
}
/*section*/
section {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 900px;
  border-radius: 10px;
  color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* ====================
   AUTRES COMPOSANTS
==================== */
.avatar {
  display: block;
  margin: 0 auto 1.5rem auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD500;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.slogan {
  font-style: italic;
  font-weight: bold;
  color: #0b0801;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.gallery {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.gallery img {
  width: 320px;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
}

.project {
  background: #f4f4f4;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.project h2 {
  margin-top: 0;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #FFD500;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 1rem;
}

.btn:hover {
  background-color: #cc9a00;
}
/*pied de page*/
.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #d40000; /* Rouge Renault Sport */
  border-top: 1px solid #ddd;
  margin-top: 2rem;
  font-weight: 600;
  background-color: transparent; /* au cas où */
}

.footer-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
  animation: bounceOnce 0.8s ease;
  transition: transform 0.3s ease;
}

.footer-icon:hover {
  transform: scale(1.3);
}

/* Animation rebond au chargement */
@keyframes bounceOnce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-5px); }
  60%  { transform: translateY(3px); }
  100% { transform: translateY(0); }
}
/*caroussel photo des clios*/
.carousel {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  background-color: transparent;
  z-index: 1;
}

.carousel-track-container {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  padding: 0;
  margin: 0;
}

.carousel-slide {
  min-width: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

/* Boutons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(212, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: #d40000;
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

/* Indicateurs */
.carousel-nav {
  text-align: center;
  margin-top: 0.8rem;
}

.carousel-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  border: none;
  margin: 0 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-indicator.current-slide,
.carousel-indicator:hover {
  background-color: #d40000;
}



/* ====================
   FORMULAIRES
==================== */
form label {
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

form button {
  background-color: #FFD500;
  border: none;
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  color: #2a2a2a;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #cc9a00;
}

/* ====================
   RESPONSIVE DESIGN
==================== */
@media screen and (max-width: 768px) {
  .full-width-img {
    margin: auto;
    width: 90%;
  
  container {
    padding: 1rem;
    margin: 2rem 1rem;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
  }

  .navbar ul li {
    margin: 0.5rem 0;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .slogan {
    font-size: 1rem;
    text-align: center;
  }
  /* BOUTON MENU BURGER */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  margin-right: 1rem;
  color: #2a2a2a;
}

/* ADAPTATION NAVBAR POUR MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1001;
    text-align: center;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }
}

}