/* 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: 12px;}
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 {
    width: auto;
    height: 750px;
    overflow: hidden;
    position: relative;
    margin-top: 7%;
    background: url('images/Actualites/hero.jpg') no-repeat top center;
    background-size: cover;
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 6%;
}

/* Conteneur de contenu de la bannière */
.banner-content {
    max-width: 300px;
    height: 100px;
    margin: 0 auto;
    margin-top: 250px;
    margin-left: 70px;
    background: #fff; 
    padding: 10px;
    border-radius: 10px;
}
/* Style pour le sous-titre de la bannière */
.banner-subtitle {
    color: #FFF;
    padding: 5px;
    background-color: var(--bleu);
    border-radius: 10px;
    width: 20%;
    font-size: 14px;
    margin-bottom: 10px;
}
/* Style pour le texte de la bannière */
.banner-text {
    text-align: left;
    font-weight: bold;
    color: #000;
    font-size: 19px;
    line-height: 1.1;
}
/* Media queries pour la responsivité */
@media (max-width: 1300px) {
    .banner{
        margin-top: 6%;
        height: 500px;
    }
    .banner-content{
        margin-top: 150px;
    }
}
@media (max-width: 768px) {
    .banner {
        padding: 30px 15px;
    }


    .banner-subtitle {
        font-size: 12px;
    }

    .banner-text {
        font-size: 16px;
    }

    .banner-content {
        padding: 15px;
        margin-top: 120px;
    }
}

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

    .banner-subtitle {
        font-size: 1em;
        width: 40%;
        margin-top: 10px;
    }

    .banner-text {
        font-size: 0.9em;
    }

    .banner-content {
        margin-left: 20px;
        padding: 10px;
        width: 50%;
        margin-top: 100px;
    }
}
/****************************************************************************************/


/* Style pour la section blog */
.blog-section {
    width: 60%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: left;
}

/* Style pour l'introduction */
.intro {
    margin-bottom: 40px;
}

.tagline {
    display: inline-block;
    background-color: var(--bleu);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.blog-section h1 {
    font-family: 'cabin';
    margin: 10px 0;
    color: #000;
}

/* Style pour les articles */
.articles {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Style pour chaque article */
.article {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(50% - 20px); /* Chaque article prend 50% de la largeur avec un espacement de 20px */
    text-align: left;
}

/* Style pour les images des articles */
.article-image {
    width: 100%;
    height: auto;
}

/* Style pour le contenu des articles */
.article-content {
    padding: 20px;
    position: relative;
}

.article-content h2 {
    font-family: 'cabin';
    color: #000;
    margin: 10px 0;
}

.article-content p {
    color: #666;
    margin-bottom: 50px;
    border-bottom: 1px solid ;
}

/* Style pour les boutons lire la suite */
.read-more {
    display: inline-block;
    border: 2px solid var(--bleu);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1em;
    text-align: center;
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.read-more:hover {
    background-color: var(--bleu);
    color: #fff;
}

/* Media query pour les petits écrans */
@media (max-width: 768px) {
    .articles {
        flex-direction: column;
    }

    .article {
        flex: 1 1 100%; /* Chaque article prend 100% de la largeur sur les petits écrans */
        margin-bottom: 20px;
    }

    .read-more {
        position: static;
        display: block;
        margin-top: 20px;
    }
}
@media (max-width: 480px){
    .blog-section {
        flex-direction: column;
        width: 80%;
        margin-left: 5%;
        margin-right: 5%;
        text-align: left;
    }

}
/***************************************************************************************/


/* Style pour la section de contact */
.contact-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background-color: #2e2b2b;
    color: #fff;
    border-radius: 15px;
    width: 55%;
    max-width: 1200px;
    margin-left: 20%;
    margin-right: 10%;
    margin-top: 10%;
    margin-bottom: 4%;
    position: relative;
}

.contact-content {
    flex: 1;
    padding-right: 20px;
}

.tagline {
    display: inline-block;
    background-color: var(--bleu);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.contact-content h1 {
    margin: 10px 0;
    color: #fff;
}

.contact-content p {
    font-size: 1em;
    color: #ccc;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    align-items: center;
}

.contact-form input[type="email"] {
    padding: 10px 15px;
    border-radius: 20px;
    border: none;
    margin-right: 10px;
    width: 300px;
    font-size: 1em;
}

.contact-form .button {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background-color: var(--bleu);
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .button:hover {
    background-color: var(--vert);
}

.contact-image-container {
    flex: 1;
    text-align: right;
    position: relative;
}

.contact-image {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.image-overlay {
    position: absolute;
    top: 0;
    right: 70px;
    width: 100%;
    height: 100%;
    background-size: 30%;
    border-radius: 10px;
}

/* Media query pour les petits écrans */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column-reverse;
        text-align: center;
    }

    .contact-content {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .contact-image-container {
        text-align: center;
    }

    .contact-form {
        flex-direction: column;
    }

    .contact-form input[type="email"] {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .image-overlay {
        clip-path: none;
        background: none;
    }
}
@media (max-width: 480px){
    .contact-section {
        flex-direction: column-reverse;
        width: 60%;
        margin-left: 10%;
        margin-right: 5%;
        text-align: left;
    }
}