/* ========== POLICE ========== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fefefe;
}

/* ========== LIENS ========== */
a {
  text-decoration: none;
  color: #222;
  transition: color 0.3s ease;
}

a:hover {
  color: #007b7f;
}

/* ========== HEADER ========== */
header {
  background: url('images/image1.jpg') center/cover no-repeat;
  color: white;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav figure img {
  width: 220px;
  max-width: 100%;
  height: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav ul li a {
  font-weight: bold;
  color: white;
  position: relative;
  padding-bottom: 4px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: white;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}


.cta {
  padding: 0.5rem 1rem;
  background-color: #007b7f;
  color: white !important;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

.cta:hover {
  background-color: #005f61;
}

/* ========== ACCROCHE DU HEADER ========== */
#title {
  text-align: center;
  margin: auto;
  max-width: 700px;
  font-size: 1.8rem;
  font-weight: 700;
}



/* ========== ANIMATION ICÔNES ========== */
@keyframes apparition {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* ========== SECTION SERVICES (icônes) ========== */
.services {
  display: flex;
  justify-content: space-around;
  padding: 4rem 2rem;
  background-color: #f4f4f4;
  flex-wrap: wrap;
}

.services article {
  flex: 1 1 30%;
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.services article:hover {
  transform: scale(1.05);
}

.services article h2 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.services i {
  font-size: 3rem;
  color: #007b7f;
  margin-bottom: 1rem;
  

  /* Animation */
  opacity: 0;
  animation: apparition 0.8s ease-out forwards;
}

/* Délai pour chaque icône */
.services article:nth-child(1) i {
  animation-delay: 0.2s;
}
.services article:nth-child(2) i {
  animation-delay: 0.4s;
}
.services article:nth-child(3) i {
  animation-delay: 0.6s;
}

/* ========== ACCROCHE CENTRALE ========== */
.accroche {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1.3rem;
}

.accroche h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ========== GALERIE ========== */
.galerie {
  display: flex;
  gap: 1rem;
  padding: 2rem;
  justify-content: center;
  background-color: #fff;
}

.galerie img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* ========== CONTENU 2 (image + texte) ========== */
.contenu2 {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 4rem 2rem;
  flex-wrap: wrap;
  background-color: #f9f9f9;
}

.contenu2 img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}

.contenu2 .texte {
  max-width: 500px;
}

.contenu2 .texte h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contenu2 .texte p {
  margin-bottom: 1rem;
}

.contenu2 .cta {
  display: inline-block;
}

/* ========== FOOTER ========== */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

footer h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

footer .social a {
  color: white;
  margin: 0 0.5rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

footer .social a:hover {
  color: #00cccc;
}
