/* --- GLOBAL --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    line-height: 1.6;
}

/* --- HEADER --- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 1000;
}

.logo img {
    height: 65px;
}

/* --- NAVIGATION --- */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.navbar ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 18px;
    padding: 10px;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #336e80;
}

/* --- BOUTON CONNEXION --- */
.login-btn a {
    padding: 8px 18px;
    background: #336e80;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.login-btn a:hover {
    background: #336e80;
}

/* --- AUTRES SECTIONS --- */
.bandeau1 {
    background-color: #336e80;
    color: white;
    text-align: center;
    padding: 60px 20px;
    font-size: 28px;
    font-weight: bold;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    padding: 40px 20px;
}

.service-item {
    flex: 1 1 250px;
    text-align: center;
    font-size: 25px;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;   /* nouveau */
    color: inherit;          /* nouveau */
    display: block;          /* nouveau */
}


.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bandeau2 {
    background-color: #336e80; /* même bleu que bandeau1 */
    color: white;              /* texte blanc */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 40px;
    align-items: center;
}

/* Bouton CTA adapté pour fond blanc et texte bleu pour contraste */
.bandeau2 .cta {
    background-color: white;
    color: #547884;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.bandeau2 .cta:hover {
    background-color: #e3e3e3;
    color: #547884;
}

.cta {
    background-color: #336e80;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta:hover {
    background-color: #336e80;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #ffffff; /* fond blanc */
    font-size: 14px;
    color: #222; /* texte sombre pour contraste */
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}
/* --- ARTICLES LIST --- */
.articles-list {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.article-card {
    display: flex;
    gap: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    align-items: flex-start;
}

.article-card img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

.article-card .content {
    flex: 1;
}

.article-card h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.article-card p {
    margin-bottom: 15px;
    color: #555;
}

.cta.small {
    padding: 8px 15px;
    font-size: 14px;
}
.about-wrapper {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
}

.about-photo {
    flex: 0 0 300px; /* colonne fixe de 300px */
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-text h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #336e80;
    font-weight: bold;
}
.page-header {
    background: #336e80;
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.page-container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.page-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.page-content h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 22px;
}

.page-content p {
    margin-bottom: 15px;
    font-size: 18px;
}

.page-content ul {
    margin-left: 25px;
    margin-top: 10px;
}

.page-content ul li {
    margin-bottom: 8px;
    font-size: 17px;
}
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #336e80;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-size: 16px;
}

.cookie-banner a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-banner button {
    background: #ffffff;
    color: #247ba0;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.cookie-banner button:hover {
    background: #e5e5e5;
}
footer a {
    color: #247ba0;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
.btn-submit {
    padding: 8px 18px;
    background: #336e80;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #005fa3;
}
.contact-container {
    max-width: 600px;        /* largeur confortable */
    margin: 40px auto;       /* centre le bloc */
    padding: 20px 30px;      /* espace interne */
    background: #ffffff;     /* fond blanc */
    border-radius: 8px;      /* angles arrondis */
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateX(40px); /* décalage à droite */
}
.search-icon a {
    font-size: 22px;
    text-decoration: none;
    color: #000;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.search-icon a:hover {
    color: #336e80;
}
.search-page {
    margin-top: 40px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-form input[type=text] {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #336e80;
    border-radius: 5px;
    font-size: 16px;
}

.search-form button {
    padding: 10px 20px;
    background-color: #336e80;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.search-form button:hover {
    background-color: #1f525e;
}

.search-results ul {
    list-style: none;
    padding-left: 0;
}

.search-results ul li a {
    color: #336e80;
    font-size: 18px;
    text-decoration: none;
}

.search-results ul li a:hover {
    text-decoration: underline;
}
.article-preview h1 {
    margin-bottom: 25px;
    font-size: 32px;
    color: #336e80;
}

.article-preview h2 {
    margin-top: 20px;
    color: #247ba0;
    font-size: 22px;
}

.article-preview ul {
    margin: 10px 0 20px 20px;
}

.read-more-box {
    text-align: right;
    margin-top: 30px;
}

.cta.small {
    background-color: #336e80;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta.small:hover {
    background-color: #295865;
}
/* Mise en page BLOG : image + texte */
.article-blog {
    display: flex;
    gap: 25px;
    background: #ffffff;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    align-items: flex-start;
}

/* Image de l’article */
.article-blog img {
    width: 260px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Zone texte */
.article-blog .content {
    flex: 1;
}

/* Titre */
.article-blog h2 {
    color: #336e80;
    margin-bottom: 10px;
    font-size: 26px;
}

/* Listes */
.article-blog ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Bouton Lire la suite à droite */
.read-more-box {
    text-align: right;
    margin-top: 10px;
}

/* Style du bouton */
.cta.small {
    background-color: #336e80;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta.small:hover {
    background-color: #295865;
}
/* Grille 2 colonnes équilibrées */
.article-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 10px;
}

/* Colonnes */
.article-preview-grid .col p {
    margin-bottom: 5px;
    font-weight: 600;
    color: #336e80;
}

.article-preview-grid .col ul {
    margin-top: 0;
    margin-bottom: 15px;
    margin-left: 18px;
}

.article-preview-grid .col ul li {
    margin-bottom: 4px;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .article-preview-grid {
        grid-template-columns: 1fr;
    }
}
/* Bandeau titre */
.bandeau-article {
    background: #336e80;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.article-full {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.article-block {
    background: #fff;
    padding: 25px 30px;
    margin-bottom: 25px;
    border-left: 6px solid #336e80;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.article-block h2 {
    color: #336e80;
    margin-bottom: 15px;
}

.article-block h3 {
    margin-top: 15px;
    color: #444;
}

.article-block ul {
    margin-left: 25px;
    margin-bottom: 10px;
}

.article-block p {
    margin-bottom: 10px;
}
/* --- PAGE DE CONNEXION --- */

.login-wrapper {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    text-align: center;
}

.login-wrapper h1 {
    margin-bottom: 20px;
    color: #336e80;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-form label {
    text-align: left;
    font-weight: 600;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

/* bouton utilise déjà .cta mais centré */
.login-form .cta {
    width: 100%;
    text-align: center;
}
.login-wrapper {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    text-align: center;
}

.login-wrapper h1 {
    margin-bottom: 20px;
    color: #336e80;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form label {
    text-align: left;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.error {
    color: red;
    margin-bottom: 15px;
}
/* -------- BADGES / DIPLOMES -------- */

.badges-section {
    margin-top: 50px;
    text-align: center;
}

.badges-section h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    padding: 0 20px;
    justify-items: center;
}

.badge-item {
    width: 140px;
    height: 140px;
    border: 2px solid #ccc;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
}

.badge-item img {
    width: 100%;
    height: 130px;
     object-fit: contain;
}

.badge-item p {
    margin: 10px 0 0;
    font-size: 14px;
}

.badge-item:hover {
    transform: scale(1.05);
    border-color: #336e80;
}

/* Vignettes vides */
.badge-empty {
    background: #f3f3f3;
    color: #666;
    font-size: 16px;
    font-style: italic;
}

.num-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: #336e80;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 18px;
}

