/* ========== BASE & RESET ========== 
:root {
  /* Variables dynamiques - seront écrasées par le template 
  --primary_color: #ff6600;
  --secondary_color: #ff9933;
  --section_bg_color: #6553ff;
  --hero_bg_image: url('img/hero-bg.jpg');
  --hero_bg_color: rgba(0,0,0,0.5);
  --hero_text_color: #ffffff;
  --text_color: #333333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --transition: all 0.3s ease;
}*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text_color);
  line-height: 1.6;
}

a {
  color: var(--primary_color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary_color);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* ========== HEADER ========== */
#header {
  background-color: var(--primary_color);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: var(--transition);
}

#header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  font-family: 'Dosis', sans-serif;
}

.navbar {
  display: flex;
}

.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin-left: 25px;
}

.navbar a {
  color: var(--white);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.navbar a:hover::after,
.navbar .active::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  font-size: 24px;
  color: var(--white);
  cursor: pointer;
}

/* ========== HERO SECTION ========== */
#hero {
  background: linear-gradient(var(--hero_bg_color), var(--hero_bg_color)), var(--hero_bg_image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  color: var(--hero_text_color);
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Dosis', sans-serif;
}

.hero-content h2 {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 400;
}

.hero-img {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* ========== SECTIONS COMMON ========== */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary_color);
  margin-bottom: 15px;
  font-family: 'Dosis', sans-serif;
}

.section-title p {
  font-size: 18px;
  color: var(--text_color);
}

.section_bg {
  background-color: var(--section_bg_color);
  color: var(--white);
}

.section_bg .section-title h2,
.section_bg .section-title p {
  color: var(--white);
}

/* ========== SERVICES ========== */
#services {
  padding: 80px 0 60px; /* Top 80px - Bottom 60px pour l'espace */
}

.services .icon-box {
  background: var(--white);
  padding: 30px;
  border-radius: 12px; /* Arrondi augmenté */
  box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Ombre plus douce */
  transition: var(--transition);
  height: 100%;
  text-align: center;
  margin-bottom: 30px; /* Espace entre les boîtes */
}

.services .icon-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.services .icon {
  width: 80px; /* Taille légèrement augmentée */
  height: 80px;
  margin: 0 auto 25px;
  background: var(--primary_color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px; /* Taille icône augmentée */
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Ombre sur l'icône */
}

.services .icon-box:hover .icon {
  background: var(--secondary_color);
  transform: scale(1.05); /* Effet de zoom au survol */
}

.services h4 {
  font-size: 22px; /* Taille police augmentée */
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text_color);
  font-family: 'Dosis', sans-serif; /* Police cohérente avec le thème */
}

/* ========== HORAIRES ========== */
#horaires {
  padding: 60px 0 80px; /* Top 60px - Bottom 80px */
  background-color: var(--light_bg); /* Fond léger pour distinction */
}

.horaires .container {
  max-width: 700px; /* Largeur réduite pour meilleure lisibilité */
}

.horaires ul {
  list-style: none;
  background: var(--white);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  overflow: hidden; /* Pour conserver les bords arrondis */
}

.horaires li {
  padding: 16px 30px; /* Espacement augmenté */
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  transition: var(--transition);
}

.horaires li:last-child {
  border-bottom: none;
}

.horaires li:hover {
  background: rgba(0,0,0,0.02);
}

.horaires li span:first-child {
  font-weight: 600;
  color: var(--primary_color);
}

.horaires .ferme {
  color: #ff4c4c;
  font-weight: 600;
  background: rgba(255,76,76,0.05); /* Fond très léger */
}

/* Responsive */
@media (max-width: 768px) {
  #services {
    padding: 60px 0 40px;
  }
  
  #horaires {
    padding: 40px 0 60px;
  }
  
  .services .icon-box {
    padding: 20px;
  }
  
  .horaires li {
    padding: 12px 20px;
    flex-direction: column;
  }
  
  .horaires li span:first-child {
    margin-bottom: 5px;
  }
}

/* ========== CONTACT ========== */
.contact-info {
  margin-bottom: 30px;
}

.contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary_color);
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary_color);
  color: var(--white);
}

/* ========== FOOTER ========== */
#footer {
  background-color: var(--primary_color);
  color: var(--white);
  padding: 30px 0;
  text-align: center;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary_color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary_color);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-content h2 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary_color);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    clip-path: circle(0px at 90% -10%);
    transition: all 0.5s ease-out;
  }
  
  .navbar.active {
    clip-path: circle(1000px at 90% -10%);
  }
  
  .navbar ul {
    flex-direction: column;
    width: 100%;
  }
  
  .navbar li {
    margin: 0;
    text-align: center;
    padding: 10px 0;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-img {
    margin-top: 30px;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 28px;
  }
  
  .hero-content h2 {
    font-size: 18px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
}