/* styles.css */

/* Variables de Couleurs */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #18bc9c;
  --light-color: #ecf0f1;
  --dark-color: #34495e;
  --accent-color: #e74c3c;
  --font-family: "Roboto", sans-serif;
}

/* Typographie */
body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--primary-color);
  line-height: 1.6;
}
.container-fluide {
  width: 100%;
  margin: 0 auto;
  max-width: 1800px;
  position: relative;
  overflow-x: hidden;
  background-color: var(--dark-color);
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Navigation */
header {
  background: var(--primary-color);
  color: var(--light-color);
  padding: 20px 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  gap: 10px;
}
.logo a {
  color: var(--light-color);
  text-decoration: none;
}

.logo h1 {
  margin: 0;
  font-size: 24px;
}
.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--secondary-color);
}

.nav-links a:focus {
  outline: 2px dashed var(--secondary-color);
  outline-offset: 4px;
}

/* Burger Menu */
.burger {
  position: absolute;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 2rem;
  right: 20px;
  top: 0;
}

.burger div {
  width: 100%;
  height: 3px;
  background-color: var(--light-color);
  transition: all 0.3s ease;
}

.burger.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
  opacity: 0;
}

.burger.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
  /* On place d’abord le dégradé, puis l'image */
  background: linear-gradient(
      270deg,
      rgba(52, 67, 82, 0.5),
      rgba(48, 80, 51, 0.5),
      rgba(79, 59, 47, 0.5),
      rgba(80, 49, 63, 0.5)
    ),
    url("./images/font.webp");

  /* On définit la taille et la position de chaque calque :
     - le premier (dégradé) : 600% 600% 
     - le second (image) : cover */
  background-size: 600% 600%, cover;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;

  /* L’animation agit sur le dégradé (premier calque) */
  animation: gradientAnimation 3s ease infinite;

  height: 100vh;
  max-height: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Animation du gradient */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%, center;
  }
  50% {
    background-position: 100% 50%, center;
  }
  100% {
    background-position: 0% 50%, center;
  }
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 62, 80, 0.6);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease-out;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out;
}

.btn {
  padding: 12px 24px;
  background: var(--secondary-color);
  color: var(--light-color);
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.3s ease;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
}

.btn:hover,
.btn:focus {
  background: var(--dark-color);
  transform: scale(1.05);
  outline: none;
}

.btn:focus {
  outline: 2px dashed var(--secondary-color);
  outline-offset: 4px;
}

/* Services Sections */
section {
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(249, 246, 246, 0.694);
}
.services {
  width: 80%;
  max-width: 1100px;
  margin: 30px auto;
  padding: 80px 0;
  background: var(--light-color);
  animation: fadeIn 1s ease-out;
}

.services:nth-child(even) {
  background: #f9f9f9;
}

.services h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  position: relative;
}

.services h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.service-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.service_img {
  width: 500px;
  height: 300px;
  cursor: pointer;
}
.service_img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.service-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  animation: slideInLeft 1s ease-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-description {
  flex: 1;
  width: 80%;
  animation: slideInRight 1s ease-out;
}

.service-description p {
  font-size: 18px;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--dark-color);
  color: var(--light-color);
  animation: fadeIn 1s ease-out;
}

.contact h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  position: relative;
}

.contact h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.contact-content {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.contact form {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.form-group {
  margin: 0 auto;
}

.form-group label {
  display: block;
  margin: 8px 0;
  font-weight: 500;
}
label span {
  color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--secondary-color);
}

.contact-info {
  flex: 1;
  width: 80%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-info h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.contact-info p {
  margin: 8px 0;
  font-size: 18px;
}

.contact-info a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover,
.contact-info a:focus {
  color: var(--light-color);
  text-decoration: underline;
  outline: none;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--light-color);
  text-align: center;
  padding: 20px 0;
  position: relative;
}

footer p {
  margin: 0;
  font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .service-content {
    flex-direction: column;
    text-align: center;
  }

  .service-description {
    margin-left: 0;
  }

  .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
  }
  .nav-links {
    position: fixed;
    right: 0;
    height: 100vh;
    top: 0;
    background: var(--primary-color);
    flex-direction: column;
    width: 200px;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    margin: 20px 0;
  }

  .burger {
    display: flex;
  }

  .contact-content {
    width: 100%;
  }
  .contact-info,
  .contact form {
    width: 100%;
    padding: 0;
  }
  .services {
    width: 100%;
  }
  .service_img {
    width: 90%;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    margin-top: 0;
    height: 100%;
    padding-bottom: 20px;
  }
}
