/* 
    Titre : Page mère du "CSS" du site web
    Fonctionalité : Gestion du code CSS du site web qui sert a paramétrer et gérer la mise en forme de chaque éléments du site.
*/

body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.section_accueil_presentation {
    padding-bottom: 20px;
}

.container_accueil {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.container_decouvrir{
text-align: justify;
}

.img-conseil-1 {
    text-align: center;
}

h2 {
    color: #ff0000;
    text-align: center;
}

.paragraphs h3 {
    color: black;
    text-align: center;
    text-decoration: underline #ff0000;
    font-weight: bold;
}

.paragraphs h4 {
    color: black;
    text-align: center;
}

.paragraphs {
    margin-top: 20px;
}

.paragraphs p {
    margin: 10px 0;
    padding: 10px;
    background-color: hsl(0, 0%, 97%);
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.paragraphs p.article_presentation {
    font-size: 13px !important;
}

.paragraphs p a {
    color: #ff0000;
    font-weight: bold;
}

.paragraphs p a:hover {
    color: darkred;
}

.paragraphs p.rse {
    text-align: center;
    background-color: #fff;
    border-radius: 0px;
    box-shadow: 0px 0px 0px white;
}

.company-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
}

.equipment-list {
    margin-top: 12px;
}

.equipment-list li {
    margin-bottom: 12px;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        color: rgb(250, 88, 88);
    }
    50% {
        color: #ff0000;
    }
    100% {
        color: darkred;
    }
}

.container_decouvrir {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container_decouvrir h1,
h2 {
    color: #ff0000;
    margin-bottom: 15px;
    text-align: center;
}

.container_decouvrir p {
    margin: 10px 0;
    padding: 10px;
    background-color: hsl(0, 0%, 97%);
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.container_decouvrir ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.container_decouvrir .maps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.container_decouvrir .map-item {
    flex: 1 1 calc(33.33% - 10px);
    margin: 5px;
}

.container_decouvrir .map-item img {
    width: 100%;
    height: auto;
}

.map-maison {
    text-align: center;
}

.container_decouvrir .map-item img.maison {
    width: 700px;
    height: 500px;
}

.container_decouvrir p.travaux {
    font-weight: bold;
    color: #ff0000;
    text-align: center;
}

@media (max-width: 699px) {
    .container_decouvrir .map-item {
        flex: 1 1 calc(50% - 10px);
    }
    .container_decouvrir .map-item img {
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .container_decouvrir .map-item {
        flex: 1 1 100%;
    }
    .container_decouvrir .map-item img {
        width: 100% !important;
        height: auto !important;
    }
}


/* Styles pour rendre la carte responsive */

#map {
    height: 50vh;
    /* Hauteur de la carte, pleine hauteur de l'écran */
    width: 100%;
    /* Largeur de la carte, pleine largeur */
    border: 1px solid #ddd;
    border-radius: 8px;
}

@media (max-width: 600px) {
    #map {
        height: 50vh;
        /* Hauteur réduite sur petits écrans */
    }
}

.paragraphs_mission p {
    text-align: justify;
}

.container-tableau {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1000px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.container-tableau .category {
    text-align: center;
}

.container-tableau .category h3 {
    color: black;
    font-weight: bold;
    margin-bottom: 10px;
}

.container-tableau .category a {
    display: block;
    color: #ff0000;
    text-decoration: underline;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: bold;
}

.container-tableau .category span {
    display: block;
    color: grey;
    margin-bottom: 5px;
}

.paragraphs_mission p{
  text-align: justify;
}

.img_histoire_gauche{
  display: flex !important;
  margin: 10px 0;
  padding: 10px;
  background-color: hsl(0, 0%, 97%);
  border-radius: 5px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  text-align: justify;
}

.img_histoire_gauche span{
  padding-left: 10px;
}

@media (max-width: 768px) {
  .img_histoire_gauche {
      flex-direction: column; /* Empile l'image et le texte */
      text-align: center; /* Centre le texte pour les petits écrans */
  }

  .img_histoire_gauche img{
      margin-right: 0; /* Enlève la marge droite sur petits écrans */
      margin-bottom: 20px; /* Ajoute un espace entre l'image et le texte */
  }
}

label a {
    color: #ff0000;
    font-weight: bold;
}

.header h1{
    background-color: rgb(45, 45, 45);
    color: white !important;
    text-align: center;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

main section {
    margin-bottom: 2rem;
}

main h1, h2 {
    color: #ff0000;
}

.footer {
    background-color: #ecf0f1;
    color: #2c3e50;
    text-align: center;
    padding: 1rem;
}

