/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles généraux */

body,
html,
header {
    color: #ffdde1;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    position: relative;
}

header {
    background-color: #c0a882;
    
}

h1 {
    font-size: 40px;
    text-align: center;
    margin: 40px 0;
}

h2 {
    font-family: 'Yeseva One', cursive;
    font-size: 45px;
    text-align: center;
}

h3 {
    font-weight: 500;
}

h4 {
    font-size: 30px;
    text-align: center;
}

.sec1 {
    height: 100vh;
    width: 100%;
    display: flex;
}

.sec1::before {
    content: "";
    position: absolute;
    height: 90vh;
    width: 100%;    
    background-color: #c0a882;
    border-radius: 0% 0% 50% 50%;
    transform: scaleX(1.5);
}

.sec1::after {
    content: "";
    position: absolute;
    height: 90vh;
    width: 100%;    
    background-color: #c0a882;
    opacity: 0.3;
    z-index: -1;
    border-radius: 0% 0% 50% 50%;
    transform: scaleX(1.7);
}

.sec1-background {
  z-index: -1;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tel, .joindre {
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.joindre {    
    margin-top: 100px;
}

.tel {
    margin-top: 30px;
    font-weight: 500;
}

.tel i {
    margin-right: 10px;
}

.les2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    z-index: 1;
    align-items: flex-start;
    margin-top: 100px;
}

.PO,
.MR {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    margin-left: 150px;
}

.image-arrondie {
    border-radius: 25px;
}

.tofPO,
.tofMR {
    flex: 1;
    object-fit: cover;
    border-radius: 25px;
    background: #e0e0e0;
    box-shadow:  4px 4px 2px #ffdde1,
                -4px -4px 2px #ebebeb;
    width: 100%; /* Ajuster la largeur de l'image à 100% de son conteneur */
    height: auto; /* Permettre à la hauteur de l'image de s'ajuster proportionnellement */
}

.tofPO:hover,
.tofMR:hover {
    box-shadow: inset 4px 4px 2px #d5d5d5,
                inset -4px -4px 2px #ebebeb;
}

.tofPO:hover,
.tofMR:hover {
    border-radius: 25px;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.content {
    margin-top: 30px; /* Déplace le contenu en bas de la carte */
    text-align: center;
  }
  
  .content h3,
  .content p {
    margin: 5px 0; /* Ajouter un espace entre les éléments */
  }

  .mobile {
    display: flex;
    flex-direction: row;
}

.rdv {
    display: flex;
    flex-direction: column;
    font-size: 30px;
    text-align: center;
    width: 30%;
    margin-left: 135px;
}

.ligne1 {
    margin-top: 100px;
}

.ligne1,
.ligne2,
.ligne3 {
    margin-bottom: 20px;

}

.p {
    margin-top: 40px;
    text-align: center;
}

.coeur {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
}

  .contactezNous {
    padding: 20px;
  }

  .contactezNous .title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
  }

  .contactezNous .title h3 {
    color: #c0a882;
    font-weight: 500;
  }

  .box {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 5fr 4fr;
    grid-template-areas: 
    "form info"
    "form map";
    grid-gap: 20px;
    padding: 20px;
  }

  .contact {    
    border-radius: 2%;
  }

  .contact h4 {
    color: #ffdde1;
    font-weight: 500;
    font-size: 2em;
    margin-bottom: 25px;
  }

  /* Form */

  .formBox {
    position: relative;
    width: 100%;
}

.formBox .row50 {
    display: flex;
    gap: 20px;
}

.inputBox {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    width: 50%;
}

.formBox .row100 .inputBox {
    width: 100%;
}

.inputBox span {
    color: #ffdde1;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 1.5em;
}

.inputBox input {
    padding: 10px;
    font-size: 1.1em;
    outline: none;
    border: 1px solid #333;
}

.inputBox textarea {
    padding: 10px;
    font-size: 1.1em;
    outline: none;
    border: 1px solid #333;
    resize: none;
    min-height: 220px;
    margin-bottom: 10px;
}

.inputBox input[type="submit"] {
    background: #c0a882;
    color: #ffdde1;
    border: solid 2px #ffdde1;
    border-radius: 10%;
    font-size: 1.1em;
    max-width: 120px;
    font-weight: 500;
    cursor: pointer;
    padding: 14px 15px;
}

.inputBox ::placeholder {
    color: #999;
}

  .form {
    grid-area: form;
  }

  /* Info */

  .info h4 {
    color: #ffdde1;
  }

  .infoBox {
    height: 150px; /* Ajuste la hauteur de la boîte à 150 pixels */
  }
  
  .infoBox span {
    margin-bottom: 10px; /* Ajoute un espace de 10 pixels en bas du span */
  }
  
  .infoBox h4 {
    margin-top: 20px; /* Ajoute un espace de 20 pixels au-dessus du titre */
  }  

  .info .infoBox div {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
  }

  .info .infoBox div span {
    min-width: 40px;
    height: 40px;
    color: #fff;
    background-color: #ffdde1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    border-radius: 50%;
    margin-right: 15px;
  }

  .info .infoBox div p {
    color: #ffdde1;
    font-size: 1.5em;
  }

  .info .infoBox div a {
    color: #ffdde1;
    text-decoration: none;
    font-size: 1.5em;
  }

  .map {    
    grid-area: map;
    padding: 0;
  }

  .map iframe {
    width: 100%;
    height: 100%;
    border-radius: 2%;
  }

  .contact {
    padding: 40px;
    background-color: #c0a882;
    box-shadow: 0 5px 35px rgba(0, 0, 0, 0.15);
  }

/* Footer */

footer {
    background-color: #333;
    padding: 20px;
    text-align: center;
    color: #fff;
    font-size: 16px;
}

.zoneCouverte {
    display: flex;
}

.zone1,
.zone2,
.zone3 {
    flex: 1;
    padding: 10px;
}

.ville {
    font-size: 16px;
    margin-bottom: 5px;
}


/* Media Queries pour les appareils mobiles *//* Media Queries pour les appareils mobiles */

@media only screen and (max-width: 991px) {

    .sec1::before,
    .sec1::after {
      display: none; /* Supprimer les pseudo-éléments ::before et ::after en mode mobile */
    }

    header {
        margin-bottom: 280px;
    }

    .joindre {
        font-size: 25px;
        margin-top: 20px;
    }

    .tel {
        font-size: 35px;
    }

    .mobile {
        display: flex;
        flex-direction: column-reverse;
    }
  
    .les2 {
        display: flex;
        flex-direction: column;
        flex-wrap: unset;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    
    .PO,
    .MR {
        width: 80%;
        margin-bottom: 30px;
        height: auto;
        overflow: visible;
        display: flex;
        justify-content: center;
        align-items: center;        
        margin: 0 auto;
        flex-wrap: wrap;
    }
    
    .tofPO img,
    .tofMR img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 25px;
        background: #e0e0e0;
        box-shadow:  4px 4px 2px #ffdde1,
                    -4px -4px 2px #ebebeb;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;        
        margin: 0 auto;        
        flex-wrap: wrap;
    }

    .content {
        margin-top: 10px;
    }
  
    .ligne1 {
        margin-top: 0px;
    }
     
    .rdv {
        margin: 0 auto;
    }
    .p {
      margin-top: 10px;
      margin-bottom: 20px;
    }
  
    .coeur {
      margin-top: 30px;
      margin-bottom: 30px;
    }

    h3 {
        display: flex;
        font-size: 1em;
        align-items: center;
    }
  
    h4 {
      font-size: 20px;
    }
  
    h5 {
      font-size: 24px;
    }
  
    .contactezNous {
      margin-top: 100px;
    }

    .box {
      position: relative;
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      grid-template-areas: 
        "form"
        "info"
        "map";
      grid-gap: 20px;
      padding: 20px;
    }
  
    .map {
      min-height: 300px;
    }
  
    .formBox .row50 {
      display: flex;
      gap: 0;
      flex-direction: column;
    }
  
    .inputBox {
      display: flex;
      flex-direction: column;
      margin-bottom: 10px;
      width: 100%;
    }
  
    .contact {
        padding: 30px;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        overflow-x: hidden;
        text-align: center;
    }
    
    .contact .info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact .info div {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .contact .info div span {
        margin-right: 10px;
    }

    .contact .infoBox div .span {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        overflow-x: hidden;
    }    

    .contact {
        padding: 30px;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        overflow-x: hidden;
        text-align: center;
        height: auto;
    }
    
    .contact info div {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px;
    }

    .infoBox {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
        white-space: nowrap;
        height: auto;
    }
      
    .infoBox div span {
        margin-bottom: 5px;
    }
      
    .infoBox div p,
    .infoBox div a {
        margin: 0;
    }

    .infoBox {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
      
    .infoBox div {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px;
    }
      
    .infoBox div span {
        margin-bottom: 5px;
    }
      
    .info .infoBox div p,
    .info .infoBox div a {
        font-size: 1em;
    }
}

@media only screen and (min-width: 320px) and (max-width: 768px){

    body {
      margin: 10px;
    }
  
    h1 {
      font-size: 30px;
      margin: 20px 0;
    }

    h2 {
      font-size: 1.8em;
    }

    h3 {
      font-size: 1em;
    }

    .content {
      margin-top: 20px;
    }
    
    .tel {
      font-size: 0.7em;
    }

    .title {      
      margin-top: 20px;
    }
    
    .contact h4 {
      font-size: 25px;
      margin-top: 10px;
    }
  
    h5 {
      font-size: 24px;
    }

    .joindre {
      font-size: 20px;
    }
  
    .subtitle {
      font-size: 24px;
    }
  
    .adresse,
    .tel {
      font-size: 25px;
      margin: 20px;
    }
  
    .les2 {
      flex-direction: column;
      align-items: center;
      margin-top: 20px;
    }
  
    .PO,
    .MR {
      width: 80%;
      margin-bottom: 30px;
      height: auto;
      overflow: visible;
    }
  
    .tofPO,
    .tofMR {
      width: 100%;
      height: auto;
    }
  
    .rdv {
      font-size: 20px;
      width: 80%;
      margin-bottom: 30px;
    }
  
    .p {
      margin-top: 10px;
      margin-bottom: 20px;
    }
  
    .coeur {
      margin-top: 30px;
      margin-bottom: 30px;
    }  

    .sec2 {
      width: 100%;
    }
    
    .contactezNous {
      margin-top: 130px;
    }

    .box {
      width: 100%;
      margin: 0 auto;
    }

    .contact.info {
      width: 100%;
      padding: 5px;
      margin-top: 20px;
    }

    .info .infoBox div a p {
      font-size: 14px;
    }

    .ville {
      font-size: 14px;
    }
}