/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/3.jpg");
  background-size: cover;
  background-position: center;
  color: var(--light-color);
  text-align: center;
  padding: 15rem 2rem;
  position: relative;
  margin-bottom: 4rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-arrow svg {
  width: 100%;
  height: 100%;
  fill: var(--light-color);
}

/* Main Content */
main {
  padding: 0;
}

/* Philosophy Section */
.philosophy-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--light-gray) 0%, #f8f9fa 100%);
  position: relative;
  z-index: 1;
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.philosophy-content i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.philosophy-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--dark-color);
  margin-bottom: 0;
}

/* Process Section */
.process-section {
  padding: 6rem 0;
  background: var(--light-color);
}

.process-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.8rem;
  margin-bottom: 3rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.process-card {
  background: var(--light-color);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.process-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background: rgba(0, 123, 255, 0.1);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  display: inline-block;
}

.process-card h3 {
  color: var(--dark-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.process-card p {
  color: var(--dark-color);
  line-height: 1.6;
}

/* Skills Section */
.skills-section {
  padding: 4rem 0 0 0;
  background: linear-gradient(135deg, #f8f9fa 0%, var(--light-gray) 100%);
  position: relative;
  z-index: 1;
  margin-top: -2rem;
}

.skills-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.skills-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.8rem;
  margin-bottom: 4rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 0 2rem 4rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.skills-grid .skill-card:nth-last-child(-n + 2) {
  grid-column: span 1;
  max-width: none;
  margin: 0;
}

.skill-card {
  background: var(--light-color);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.skill-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.skill-card h3 {
  color: var(--dark-color);
  font-size: 1.3rem;
}

/* Methodology Section */
.methodology-section {
  padding: 4rem 0 0 0;
  background: var(--light-color);
  position: relative;
  z-index: 1;
  margin-top: -2rem;
}

.methodology-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.methodology-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.8rem;
  margin-bottom: 3rem;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 2rem 4rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.methodology-card {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  z-index: 2;
}

.methodology-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.methodology-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background: rgba(0, 123, 255, 0.1);
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  display: inline-block;
}

.methodology-card h3 {
  color: var(--dark-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.methodology-card p {
  color: var(--dark-color);
  line-height: 1.5;
  font-size: 1rem;
}

/* Gallery Section */
.gallery-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--light-gray) 0%, #f8f9fa 100%);
}

/* Container centré avec fond blanc */
.container.centered-content {
  background-color: var(--light-color);
  padding: 2rem;  /* Réduction de la hauteur en diminuant le padding */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* Ajustement des marges pour compenser la réduction de hauteur */
.container.centered-content .cta-title {
  margin-bottom: 1rem;  /* Réduction de la marge */
}

.container.centered-content .cta-text {
  margin-bottom: 1.5rem;  /* Réduction de la marge */
}

.gallery-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.8rem;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Content Section */
.content-section {
  padding-top: 32px;
  padding-bottom: 32px;
}

.content-box {
  background: var(--light-color);
  padding: 4rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 32px;
  text-align: center;
}

.content-box p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark-color);
  margin-bottom: 2rem;
}

/* Pre-footer */
.pre-footer {
  padding: 4rem 0;
  background: var(--primary-color);
  color: var(--light-color);
  text-align: center;
}

.pre-footer-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 10rem 1rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.5rem;
  }

  .methodology-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .methodology-card,
  .skill-card,
  .content-box {
    padding: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid .skill-card:nth-last-child(-n + 2) {
    grid-column: span 1;
  }

  .container.centered-content {
    padding: 1.5rem;  /* Réduction supplémentaire en mobile */
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 8rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .philosophy-content h2,
  .methodology-section h2,
  .skills-section h2 {
    font-size: 2.2rem;
  }
}

.cta-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-text {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
  width: 100%;
  padding: 4rem 0;
  background-color: var(--background-color);
  margin-top: 4rem;
}

.cta-section .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.cta-box {
  background: var(--light-color);
  padding: 4rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
  text-align: center;
  position: relative;
}

/* Rectangle blanc derrière le texte */
.cta-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 2rem;
  right: 2rem;
  bottom: 50%;
  background-color: var(--light-color);
  border-radius: 15px;
  z-index: -1;
  transform: translateY(-50%);
}

.cta-box .cta-title {
  color: var(--dark-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-box .cta-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark-color);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.cta-box .custom-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  position: relative;
  z-index: 1;
}

.cta-box .custom-button:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 2rem 0;
    margin-top: 2rem;
  }

  .cta-box {
    padding: 2rem;
  }

  .cta-box::before {
    left: 1rem;
    right: 1rem;
  }

  .cta-box .cta-title {
    font-size: 1.75rem;
  }

  .cta-box .cta-text {
    font-size: 1.1rem;
  }
}

/* Fond de pattes de chiens */
.paw-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}
.paw {
  position: absolute;
  opacity: 0.8;
}
.paw-1 { width: 20px; top: 10%; left: 8%; transform: rotate(-15deg); }
.paw-2 { width: 28px; top: 22%; right: 12%; transform: rotate(10deg); }
.paw-3 { width: 18px; top: 35%; left: 18%; transform: rotate(-8deg); }
.paw-4 { width: 30px; top: 48%; right: 20%; transform: rotate(22deg); }
.paw-5 { width: 24px; top: 60%; left: 12%; transform: rotate(-20deg); }
.paw-6 { width: 16px; top: 72%; right: 8%; transform: rotate(5deg); }
.paw-7 { width: 22px; top: 80%; left: 25%; transform: rotate(-12deg); }
.paw-8 { width: 30px; top: 15%; right: 30%; transform: rotate(18deg); }
.paw-9 { width: 14px; top: 55%; left: 40%; transform: rotate(-7deg); }
.paw-10 { width: 26px; top: 85%; right: 18%; transform: rotate(12deg); }
