/* declaration de la police du site */
@font-face {
    font-family: cabin;
    src: url(font/Cabin/static/Cabin-Bold.ttf);
}
@font-face {
    font-family: lato;
    src: url(font/Lato/Lato-Regular.ttf);
}
body {
    font-family: 'lato';
}
*{
    font-family: 'lato';
}
p{
    font-size: 16px;
}
h1{font-size: 29px;}
h2{font-size: 26px;}
h3{font-size: 17px;}
h6{font-size: 12px; text-transform: uppercase;}
@media (min-width:1300px) {
    p{font-size: 18px;}
h1{font-size: 45px;}
h2{font-size: 24px;}
h3{font-size: 20px;}
h6{font-size: 16px; text-transform: uppercase;}
}
@media (max-width:768px) {
p{font-size: 14px;}
h1{font-size: 27px;}
h2{font-size: 21px;}
h3{font-size: 15px;}
h6{font-size: 10px;}
}
@media (max-width:480px) {
p{font-size: 12px;}
h1{font-size: 18px;}
h2{font-size: 16px;}
h3{font-size: 14px;}
h6{font-size: 10px;}
}
/* Définition de la variable des couleurs  */
:root {
    --claire: #46AFCF;
    --vert: #498536;
    --bleu: #03466E;
    --rouge: #9D0F07; 
}
/**********************************************************************/
/* Style pour la bannière */
.banner {
    height: 600px;
    margin-top: 7%;
    margin-bottom: 6%;
    background: url('images/Services/hero.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 50px 20px;
    text-align: left;
}

/* Conteneur de contenu de la bannière */
.banner-content {
    max-width: 300px;
    height: 120px;
    margin: 0 auto;
    margin-top: 170px;
    margin-left: 20px;
    background: #fff; 
    padding: 10px;
    border-radius: 10px;
}

/* Style pour le sous-titre de la bannière */
.banner-subtitle {
    padding: 5px;
    color: #FFF;
    background-color: var(--bleu);
    border-radius: 10px;
    width: 100%;
    margin-bottom: 5px;
}

/* Style pour le texte de la bannière */
.banner-text {
    font-weight: bold;
    color: #000;
    line-height: 1.1;
}

/* Media queries pour la responsivité */
@media (max-width: 1300px) {
    .banner{
        margin-top: 11%;
        height: 400px;
    }
    .banner-content{
        margin-top: 100px;
    }
    .banner-subtitle{
        width: 70%;
    }
}
@media (max-width: 768px) {
    .banner {
        padding: 30px 15px;
    }
  .banner-content {
        padding: 15px;
        margin-top: 120px;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 20px 10px;
        height: 300px;
    }

    .banner-content {
        padding: 10px;
        width: 70%;
        margin-top: 100px;
    }
    .banner-subtitle{
        width: 80%;
    }
    
}
/*****************************************************************************/
/* Style pour la section découvrir */
.discover-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Style pour chaque élément découvrir */
.discover-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Style pour les images */
.discover-image {
    width: 100%;
    height: 200px;
    border-radius: 10px 10px 0 0;
}

/* Style pour le contenu de découvrir */
.discover-content {
    padding: 30px;
    flex-grow: 1;
}

/* Style pour les paragraphes */
.discover-content p {
    color: #666;
    margin-bottom: 20px;
    margin-left: -10px;
}

/* Style pour les boutons découvrir */
.discover-button {
    display: inline-block;
    background-color: #005679;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

.discover-button:hover {
    background-color: #00405a;
}

/* Media query pour les petits écrans */
@media (min-width: 1300px) {
    .discover-image{
        width: 100%;
        height: 300px;
    }

}
@media (max-width: 768px) {
    .discover-section {
        flex-direction: column;
        gap: 10px;
        padding: 0px;
    }

    .discover-item {
        margin-bottom: 20px;
    }
    .discover-image{
        width: 100%;
        height: 150px;
    }
    .discover-content {
        padding: 10px;
    }
    .discover-content p {
        color: #666;
        margin-left: 2px;
    }
}
/**************************************************************************************/

.content {
    padding: 20px;
    text-align: left;
    width: auto;
    margin-left: -10px;
    margin-top: -40px;
    max-width: 500px; /* max-width for responsiveness */
    position: relative; /* to position the button inside */
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

.button1 {
    margin-top: -20px; /* Space between content and button */
    padding: 10px;
    cursor: pointer;
    border: none;
    background-color: var(--bleu);
    color: #fff;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s ease;
}

.button1:hover {
    background-color: var(--vert);
    color: #FFF;
}

#toggleIcon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    .content {
        padding: 5px;
        max-width: 90%; /* Adjust for smaller screens */
    }

    .button1 {
        width: 100%;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .content {
        margin-top: 1px;
        max-width: 100%; /* Adjust for smaller screens */
    }

    .button1 {
        width: 100%;
        height: 30px;
        font-size: 18px;
    }
}