body{
    background-color: #a27d04;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin: 0;
    z-index: 1vw;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.367);
    background-color: #af8e0ca4;
    margin: none;
    color: white;
    padding:20px;
    text-align: right;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

header h1{
    text-align: left;
    margin: 0;
    font-size: 24px;
    color: rgb(244, 240, 3);
}
header .a{
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

header span{
    color: #b70707;
}


nav ul{
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: right;
    z-index: 2;
    margin-right: 120px;
}

nav ul li{
    display: inline;
}
nav ul li a{
    color: rgb(255, 255, 254);
    text-decoration: none;
    font-size: 15px;
}
nav ul li a:hover{
    color: #db9106;
    background-color: #ebe9e1;
    border-radius: 20px;
    padding: 10px;
    margin: 10px;
    transition: background-color 0.3s ease;
     transform: scale(1.05);
}
#logo{
    width: 220px;
    height: 50px;
    vertical-align: middle;
    float: left;
    border-radius: 10px;
    box-shadow:  0 2px 5px rgba(0, 0, 0, 0.404);
}
section{
    padding: 10% 10px;
}


#acceuil h2{
    color: #b70707;
    font-size: 40px;
    text-align: left;
    margin-left: 80px;
}
#acceuil p{
    color: white;
    font-size: 20px;
    text-align: left;
    margin-left: 80px;
}
#acceuil .button{
    display: inline-block;
    background-color: #b70707;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    margin-left: 80px;
}
#acceuil .button:hover{
    background-color: #db9106;
    color: white;
    box-shadow: 0 2px 5px rgb(0, 0, 0);
    cursor: pointer;
}
#acceuil {
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.964) 0%, rgba(0, 0, 0, 0.3) 40%),
        url('a.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    width: 98,8%;
}

.img{
   float: right;
    width: 400px;
    height: 400px;
    border-radius: 80%;
    box-shadow: 0 2px 5px rgb(224, 202, 3);
    margin-right: 200px;
    margin-top: 100px;
}
.img {
    animation: rotation 3s linear infinite;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


.h2 {
    color: #b70707;
    text-align: center;
    font-size: 26px;
    margin-top: 20px;
}
#menu {
    background-color: #d5c6b1;
}
.menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.menu-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.604);
    padding: 20px;
    text-align: center;
    width: 280px;
}
.menu-item:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.811);
}
.menu-item img {
    width: 50%;
    height: auto;
    border-radius: 10px;
}
.menu-item h3 {
    color: #b70707;
    font-size: 20px;
}
.menu-item p {
    color: #333;
    font-size: 16px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}
.about-text {
    flex: 1;
}
.about-img {
    width: 600px;
    height: 180px;
    object-fit: cover;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-right: 20%;
    margin-top: 5%;
}
.about-text h2 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #b70707;
    font-size: 30px;
    margin-bottom: 20px;
    margin-left: 40px;
}
.about-text p {
    color: #333;
    font-size: 18px;
    line-height: 1.6;
    margin-left: 40px;
}
#a-propos h2 {
    color: #b70707;
    text-align: left;
    font-size: 30px;
    margin-top: 20px;
}

#a-propos ul {
    display: flex;
    gap: 20px;
    float: left;
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 400px;
}
#a-propos ul li {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
    background: rgba(183, 7, 7, 0.1);
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
#a-propos ul li ion-icon {
    font-size: 28px;
    color: #db9106;
    margin-right: 15px;
}

#contact legend {
    color: #b70707;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
}

#contact {
    background-color: #712c09;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 80px;
    background-color: #8a5403;
    border-radius: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.929);
}
#contact form input,
#contact form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #e996309c;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}
#contact input:focus,
#contact textarea:focus {
    border-color: #b70707;
    outline: none;
}
#contact label {
    font-weight: bold;
    color: #f9eaea;
    margin-bottom: 5px;
}
#contact form button[type="submit"]{
    background-color: #b70707;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

#contact form button[type="submit"]:hover {
    background-color: #db9106;
    color: white;
    box-shadow: 0 2px 5px rgb(0, 0, 0);
    cursor: pointer;
}

footer {
  background: #390909; /* fond sombre */
  color: white;
  text-align: center;
  padding: 30px 20px;
}

footer p {
  margin: 0;
  font-size: 1rem;
}

footer hr {
  margin: 10px auto;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  width: 80%;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-media a {
  color: white;
  font-size: 1.5rem; /* taille des icônes */
  transition: color 0.3s;
}

.social-media a:hover {
  color: #f9c74f; /* couleur au survol */
}

/* Version mobile */
@media (max-width: 600px) {
  footer p {
    font-size: 0.5rem; /* texte légèrement plus petit */
  }

  .social-media {
    flex-wrap: wrap; /* retour à la ligne si trop serré */
    gap: 10px;
  }

  .social-media a {
    font-size: 1rem; /* icônes plus grandes pour le tactile */
  }
}

@media screen and (max-width: 600px) {
    header h1 {
        font-size: 10px;
        margin-bottom: 10px;
    }
    #logo {
        width: 80px;
        height: 30px;
    }
    .img {
        width: 150px;
        height: 150px;
        margin-right: 0;
        margin-top: 180px;
    }
    .about-img {
        width: 80px;
        height: 80px;
        margin-right: 0;
    }
    .sl{
        padding: 5% 10px;
    }
    #contact form {
        padding: 10px 30px;
    }
    #contact form input,
    #contact form textarea {
        font-size: 14px;
    }
    #contact form button[type="submit"] {
        font-size: 16px;
        padding: 8px 16px;
    }
    #about-text h2 {
        font-size: 12px;
    }
}


/* Sur mobile */
@media (max-width: 768px) {
  nav ul {
    display: none; /* cacher le menu */
    flex-direction: column;
    background: rgb(21, 20, 20);
    position: absolute;
    top: 60px; /* hauteur de ton header */
    right: 0;
    width: 200px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(51, 48, 48, 0.995);
  }
  nav ul.active {
    display: flex; /* afficher quand on clique */
  }

  .burger {
    float: right;
    margin-right: 50px;
    display: block; /* afficher le burger */
  }
  #a-propos h2 {
    font-size: 20px; /* réduire la taille du titre */
    margin-left: 15px; /* ajuster le margin */
  }
  #a-propos p{
    font-size: 14px; /* réduire la taille du texte */
  }
  #a-propos ul {
    flex-direction: column; /* aligner les éléments verticalement */
    margin-left: 15px; /* ajuster le margin */
    margin-top: 10px; /* ajuster le margin */
    padding: 0; /* enlever le padding */
    width: 100%; /* prendre toute la largeur */
  }
  #acceuil h2 {
    font-size: 24px; /* réduire la taille du titre */
    margin-left: 20px; /* ajuster le margin */
    margin-top: 150px;
  }
  #acceuil .button {
    font-size: 16px; /* réduire la taille du bouton */
  }
    #acceuil p {
        font-size: 13px; /* réduire la taille du texte */
        margin-left: 20px; /* ajuster le margin */
    }
    #contact {
      padding: 100px; /* ajuster le padding */
      margin-top: 100%;  
    }
}
/* Style de base du burger */
.burger {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  display: none; /* masqué sur grand écran */
}

/* Sur mobile */
@media (max-width: 768px) {
  nav ul {
    display: none; /* cacher le menu */
    flex-direction: column;
    background: rgba(108, 12, 12, 0.963);
    position: absolute;
    top: 70px; /* hauteur de ton header */
    right: 0;
    width: 150px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.881);
    border-radius: 10px;
  }

  nav ul.active {
    display: flex; /* afficher quand on clique */
  }

  .burger {
    display: block; /* afficher le burger */
  }
}
