/* Variables globales */
:root {
  --primary-color: #5cb85c; /* Vert plus naturel et apaisant */
  --primary-color-rgb: 92, 184, 92; /* Valeurs RGB de la couleur primaire */
  --secondary-color: #449d44; /* Vert foncé ajusté */
  --secondary-color-rgb: 68, 157, 68; /* Valeurs RGB de la couleur secondaire */
  --accent-color: #3c763d; /* Vert militaire ajusté */
  --accent-color-rgb: 60, 118, 61; /* Valeurs RGB de la couleur d'accent */
  --dark-color: #333;
  --dark-color-rgb: 51, 51, 51;
  --light-color: #fff;
  --light-color-rgb: 255, 255, 255;
  --white: #fff;
  --gray-color: #666;
  --background-color: #f5f5f5;
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--background-color);
  padding-top: 60px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Pour le contenu qui doit être centré mais avec une largeur limitée */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 300ms ease;
}

a:hover {
  color: darken(var(--primary-color), 10%);
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem 1rem; /* Réduction du padding */
  background-color: var(--primary-color);
  color: var(--light-color);
}

.hero h1 {
  font-size: 2rem; /* Réduction de la taille du titre */
  margin-bottom: 1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  max-width: 800px; /* Limitation de la largeur maximale */
  margin: 0 auto;
}

/* Responsive Grid Layout */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Service Circles */
.service-circle {
  position: relative;
  width: 200px; /* Taille fixe réduite */
  height: 200px; /* Taille fixe réduite */
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-circle .number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary-color);
  color: var(--light-color);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 1;
}

.service-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--light-color);
  padding: 1rem;
  text-align: center;
}

.service-description p {
  display: none; /* Cache les descriptions */
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.service-circle:active {
  animation: pulse 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Styles pour les boutons CTA */
.cta-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  margin: 0.5rem;
}

.cta-btn:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
}

.cta-btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

/* Bouton CTA flottant */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-cta i {
  font-size: 24px;
}

.floating-cta:hover {
  transform: scale(1.1);
  background-color: var(--secondary-color);
}

@media (min-width: 769px) {
  .floating-cta {
    display: none;
  }
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

/* Animation de la flèche de défilement */
.scroll-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll-arrow svg {
  width: 40px;
  height: 40px;
  fill: var(--light-color);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.scroll-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-15px) translateX(-50%);
  }
  60% {
    transform: translateY(-7px) translateX(-50%);
  }
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@media (max-width: 768px) {
  .scroll-arrow {
    bottom: 20px;
  }

  .scroll-arrow svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 500px) {
  .scroll-arrow {
    bottom: 15px;
  }

  .scroll-arrow svg {
    width: 25px;
    height: 25px;
  }
}

/* Style global pour tous les boutons */
.custom-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.custom-button:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
  border: 2px solid var(--primary-color);
}

/* Ajustement pour le bouton dans le header */
.cta-nav-item .custom-button {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}
