@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
    transition: all 0.3s ease-in-out;
}

/* Navigation */
header {
    background: #2a9d8f;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	
    display: flex;
    justify-content: space-between; /* Espace entre la nav et le logo */
    align-items: center;
    padding: 10px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 9px 13px;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 10px 10px;
    background: url('../images/sheep.jpg') no-repeat center center/cover;
    color: #2a9d8f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 38vh;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    font-weight: 300;
}

/* Sections */
section {
    padding: 8px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}



h2 {
    font-size: 30px;
    margin-bottom: 10px;
    margin-top: 80px;
    padding-top: 20px;
    color: #2a9d8f;
    text-align: center;
}

/* Formulaires */
form {
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

label {
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin: 10px 0 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 10px;
    background: #2a9d8f;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: white;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

button:hover {
    background: #21867a;
}

/* Footer */
footer {
    background: #264653;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

.service img {
    width: 90%;
    height: auto;
    border-radius: 10px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.logo {
    width: 55px; /* Ajuste la taille du logo selon tes besoins */
    height: auto;
}

.btn1 {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 15px;
    background: white;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 5px;
}

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

/* Media Queries - Responsive Design */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    /* Réduire la taille des images des services */
    .service {
        width: 80%;
        margin: 10px auto;
    }

    .logo {
        width: 40px;
    }

    form {
        width: 90%;
        padding: 15px;
    }

    h2 {
        font-size: 24px;
    }

    button {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    nav ul li a {
        font-size: 16px;
        padding: 7px 10px;
    }

    .service {
        width: 100%;
        margin: 10px 0;
    }

    .logo {
        width: 35px;
    }

    form {
        padding: 10px;
    }
}



/* ---------- Responsive Header ---------- */

header {
    background: #2a9d8f;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo {
    width: 50px;
    height: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 12px;
    transition: background 0.3s ease, transform 0.2s ease;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    transform: scale(1.05);
}

/* Menu toggle (hamburger) */
.menu-toggle {
    display: none;
    font-size: 35px;
    color: white;
    cursor: pointer;
}

/* Responsive menu */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        background: #2a9d8f;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        display: none;
        padding: 10px 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }
}



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

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in-up.delay-1 {
  animation-delay: 0.3s;
}
.fade-in-up.delay-2 {
  animation-delay: 0.6s;
}
.fade-in-up.delay-3 {
  animation-delay: 0.9s;
}

/* --- HERO BUTTON HOVER EFFECT --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #009578;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  background-color: #007e65;
}

/* --- SERVICE IMAGE HOVER EFFECT --- */
.service img {
  transition: transform 0.5s ease;
  border-radius: 10px;
}

.service:hover img {
  transform: scale(1.05) rotate(1deg);
}

/* --- SECTION SERVICES --- */
#services {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.service {
  width: 300px;
  text-align: center;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  display: inline-block;
  margin: 14px;
  align-items: center;
}


/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }

/* --- OPTIONAL SECTION STYLING --- */
.animated-section {
  max-width: 800px;
  margin: 80px auto;
  padding: 20px;
  text-align: center;
}

.spacing-top {
  margin-top: 20px; 
}


.spacing {
  margin-top: 20px; 
    margin-bottom: 10px; 
}



/* Début ZOOM  */
    body {
      margin: 0;
      font-family: Arial, sans-serif;
    }

    /* Image cliquable */
    .zoomable {
      max-width: 100%;
      height: auto;
      cursor: pointer;
      display: block;
      margin: 20px auto;
      transition: 0.3s ease;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    /* Modale plein écran */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.9);
      justify-content: center;
      align-items: center;
    }

    /* Image dans la modale */
    .modal-content {
      max-width: 90vw;
      max-height: 90vh;
      border-radius: 10px;
    }

    /* Bouton de fermeture */
    .close {
      position: absolute;
      top: 20px;
      right: 25px;
      color: #fff;
      font-size: 35px;
      font-weight: bold;
      cursor: pointer;
      z-index: 1001;
    }


	/* Responsive mobile spécifique */
<!DOCTYPE html>
<html lang="fr">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Zoom Image Responsive iPhone</title>
  <style>
    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Arial, sans-serif;
    }

    .zoomable {
      max-width: 100%;
      height: auto;
      cursor: pointer;
      display: block;
      margin: 20px auto;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.9);
      padding: 10px;
      overflow: auto;
      text-align: center;
    }

    .modal-content {
      display: inline-block;
      max-width: 100%;
      max-height: 100%;
      margin-top: 5vh;
      margin-bottom: 5vh;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    }

    .close {
      position: fixed;
      top: 20px;
      right: 25px;
      color: #fff;
      font-size: 35px;
      font-weight: bold;
      cursor: pointer;
      z-index: 1001;
    }

    /* Meilleur support pour petits écrans */
    @media (max-width: 600px) {
      .close {
        font-size: 28px;
        top: 15px;
        right: 15px;
      }

      .modal-content {
        width: auto;
        height: auto;
        max-width: 90vw;
        max-height: 80vh;
      }
    }
/*Fin Zoom */


