/* ===========================
   Le style CSS du site web
=========================== */
body {
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    box-sizing: border-box;
    background: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

/* ===========================
   HEADER et hero
=========================== */
header.hero {
    background: #2d5be3;
    color: #fff;
    padding: 1% 0 8px 0;
    text-align: center;
    box-shadow: 0 2px 12px rgba(45,91,227,0.08);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-radius: 0px 0px 28px 28px;

}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: white;
}

header.hero h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-family: 'Times New Roman', Times, serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);

}

header.hero p {
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-weight: 400;
}

header.hero nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 32px;
}

header.hero nav ul li {
    display: inline;
    margin: 0 8px;

}

header.hero nav ul li a {
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: #2d5be3;
}

header.hero nav ul li a:hover,
header.hero nav ul li a:focus {
    background: #fff;
    color: #2d5be3;
}

header.hero nav ul li a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45,91,227,0.5);
}

/* ===========================
   MAIN & SECTION
=========================== */
main {
    padding: auto;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 100px;
    text-overflow: ellipsis;
}

.apropos-img {
    border-radius: 50%;
    margin-right: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    float: left;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 4px solid #2d5be3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apropos-content {
    overflow: hidden;
}

section {
    background: #f9f9f9;
    margin: 32px auto;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    max-width: 900px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    box-shadow: 0 4px 16px rgba(45,91,227,0.3);
    transform: translateY(-4px);
}

section h2 {
    color: #2d5be3;
    margin-bottom: 2px;
    font-size: 2rem;
}

section p,
section article {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===========================
   ARTICLES (cards)
=========================== */
.articles-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 12px 16px;
    width: 300px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/*Effet de survol pour les cartes d'articles*/
.card:hover {
    transform: translateY(-6px);
    box-shadow: blue 0 4px 16px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px 8px 15 15;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card h3 {
    margin: 5px 0 5px 0;
    font-size: 0.9em;
    color: #1a3a7c;
}

.card p {
    font-size: 1em;
    color: #444;
    margin-bottom: 10px;
}

.card a {
    display: inline-block;
    margin-top: auto;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #007bff;
    border-radius: 5px;
    padding: 6px 16px;
    transition: background 0.2s, color 0.2s;
}

.card a:hover {
    background: #007bff;
    color: #fff;
    text-decoration: none;
}

/* ===========================
   ARTICLE simple
=========================== */
article {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

article h3 {
    color: #1a3a7c;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

/* ===========================
   FORMULAIRE DE CONTACT
=========================== */
.formulaire-fieldset {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: auto;
    margin-bottom: 3px;
}

#contact {
    height: auto;
    width: 100%;
}

#contact .formulaire-contact {
    max-width: 600px;
    margin: 0 auto;
    padding: 4px 4px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.formulaire-contact label {
    display: block;
    font-weight: 600;
    color: #1a3a7c;
}

.formulaire-contact input,
.formulaire-contact textarea {
    width: 90%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}


.formulaire-contact button,
.formulaire-contact .bouton-envoyer {
    background: #2d5be3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.formulaire-contact button:hover,
.formulaire-contact .bouton-envoyer:hover {
    background: #1a3a7c;
}

.formulaire-contact button:focus,
.formulaire-contact .bouton-envoyer:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45,91,227,0.5);
    background-color: #2d5be3;
}
/*Style spécifique pour le champ message du formulaire de contact*/

.formulaire-contact #message {
    min-height: 80px;
    resize: vertical;
    padding: 25px 12px 12px 12px;
    margin-top: 40px;
    border-top: 4px solid #2d5be3;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    border-radius: 10px;
}

/* ===========================
   FOOTER: Le pied de la page
=========================== */
footer {
    background: #2d5be3;
    color: #fff;
    text-align: center;
    padding: 24px 12px 12px 12px;
    font-size: 1rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    border-radius: 30px 30px 0 0;
}

footer a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s;
    font-weight: 600;
}

footer a:hover {
    color: blue;
    border-radius: 6px 18px;
    padding: 2px 6px;
    text-decoration: none;
}

footer p {
    margin: 8px 0;
}



/* ===========================
   THEME SOMBRE
=========================== */
body.dark-theme {
    background: #89909e;
    color: #e0e0e0;
}
/*Changement du style de l'entête, du corps et du pied de page en mode sombre*/
body.dark-theme header.hero {
    background: #4665c5;
    box-shadow: 0 2px 12px rgba(52, 46, 46, 0.5);
}

body.dark-theme header.hero h1,
body.dark-theme header.hero p,
body.dark-theme header.hero nav ul li a {
    color: #e0e0e0;
}

body.dark-theme header.hero nav ul li a:hover,
body.dark-theme header.hero nav ul li a:focus {
    background: #e0e0e0;
    color: #4665c5;
}

body.dark-theme section {
    background: #5a6a9c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-theme section:hover {
    box-shadow: 0 4px 16px rgba(70,101,197,0.5);
}

body.dark-theme section h2 {
    color: #d1d9e6;
}

body.dark-theme section p,
body.dark-theme section article {
    color: #f0f0f0;
}

body.dark-theme .card {
    background: #6b7aa8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

body.dark-theme .card h3 {
    color: #cfd6e3;
}

body.dark-theme .card p {
    color: #e0e0e0;
}

body.dark-theme .card a {
    color: #a8c1ff;
    border: 1px solid #a8c1ff;
}

body.dark-theme .card a:hover {
    background: #a8c1ff;
    color: #2d5be3;
}

body.dark-theme .formulaire-contact {
    background: #5a6a9c;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    border-radius: 12px;
}

body.dark-theme .formulaire-contact label {
    color: blue;
}

body.dark-theme .formulaire-contact input,
body.dark-theme .formulaire-contact textarea {
    background: #5a6a9c;
    color: #f0f0f0;
    border: 1px solid #ccc;
}

body.dark-theme .formulaire-contact input::placeholder,
body.dark-theme .formulaire-contact textarea::placeholder {
    color: #d1d9e6;
}

body.dark-theme .formulaire-contact button,
body.dark-theme .formulaire-contact .bouton-envoyer {
    background: #4665c5;
}

body.dark-theme .formulaire-contact button:hover,
body.dark-theme .formulaire-contact .bouton-envoyer:hover {
    background: #2d5be3;
}

body.dark-theme footer {
    background: #4665c5;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}



/*Fin du style pour le changement de thème sombre*/

/* ===========================
   RESPONSIVE DESIGN pour mobile et tablettes
=========================== */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
        padding: 0;
        margin: 0;
        background: #f0f0f0;
    }
/*Entete de la page sur mobile*/
    header.hero {
        padding: 10px 0 5px 0;
        border-radius: 0 0 30px 30px;
        font-size: 1rem;
        position: relative;
        text-align: right;
        box-shadow: 0 2px 8px rgba(45,91,227,0.1);
        margin-bottom: 10px;
        background: #2d5be3;
    }

    header.hero h1 {
        font-size: 1.2rem;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    }

    header.hero p {
        font-size: 1rem;
        margin-bottom: 10px;
        font-weight: 400;
        padding: 0 6px;
    }

    header.hero nav ul {
        flex-direction: column;
        gap: 6px;
        padding: 0;
        margin: auto;
        align-items: center;
    }

    header.hero nav ul li a {
        font-size: 0.95rem;
        padding: 8px 6px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;

    }
/*Le corps de la page sur mobile*/
    main {
        padding: 8px 2px;
        margin-top: 80px;
        max-width: 100%;
        font-size: 0.97rem;
        overflow: hidden;
        box-sizing: border-box;

    }

    section {
        padding: 12px 6px;
        margin: 10px 0;
        max-width: 100%;
        font-size: 0.97rem;
        box-sizing: border-box;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    section h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        color: #2d5be3;
    }

    section p,
    article {
        padding: 8px 4px;
        margin-bottom: 10px;
        font-size: 0.97rem;
        line-height: 1.5;
        color: #333;
    }

    .articles-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 350px;
        margin-bottom: 16px;
        padding: 12px 8px;
        box-sizing: border-box;
    }

    .formulaire-fieldset,
    #contact .formulaire-contact {
        padding: 6px 4px;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 8px 8px 0 0;
        margin-bottom: 6px;
        background: #f9f9f9;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .formulaire-contact input,
    .formulaire-contact textarea {
        width: 68%;
        padding: 5px;
        font-size: 0.97rem;
        margin-bottom: 8px;
    }

    .formulaire-contact button,
    .formulaire-contact .bouton-envoyer {
        padding: 8px 12px;
        font-size: 1rem;
    }
/*Le pied de page sur mobile*/
    footer {
        padding: 10px 4px 6px 4px;
        font-size: 0.92rem;
        border-radius:30px 30px 0 0;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    }
}
