@font-face {
    font-family: 'OpenDyslexic';
    src: url('fonts/OpenDyslexic-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('fonts/OpenDyslexic-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


:root {
    --bg-primary: #5ebac5;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f8fafc;
    --text-primary: #2c3e50;
    --text-base: #444444;
    --text-meta: #777777;
    --text-muted: #555555;
    --accent: #5ebac5;
    --accent-hover: #4ba0aa;
    --border: #eeeeee;
    --border-light: #f3f3f3;
    --search-bg: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --bg-primary: #282c35;
    --bg-surface: #1e222b;
    --bg-surface-alt: #171a21;
    --text-primary: #e6eef5;
    --text-base: #a9b2c3;
    --text-meta: #7e8c9a;
    --text-muted: #a9b2c3;
    --accent: #5ebac5;
    --accent-hover: #78d1dc;
    --border: #363b46;
    --border-light: #282c35;
    --search-bg: rgba(255, 255, 255, 0.08);
}

/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-base);
    background-color: var(--bg-primary);
    /* Couleur de fond bleu clair pour le container principal ancienne 7fb8e5*/
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête - Style minimaliste gris-bleu */
header {
    background-color: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    padding: 25px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Adapter la couleur du texte et des icônes pour le header */
header a,
header h1 {
    color: var(--text-primary);
}

header .search-form {
    background-color: rgba(0, 0, 0, 0.05);
}

header .search-form input {
    color: var(--text-meta);
}

header .search-form button {
    color: var(--text-meta);
}

header .search-form input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

/* En-tête */
header .container {
    display: flex;
    justify-content: flex-start;
    /* Aligner les éléments à gauche */
    gap: 20px;
    /* Espace contrôlé entre le logo et le menu */
}

header h1 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
    position: relative;
    /* Nécessaire pour le positionnement du dropdown */
}

nav ul li a {
    color: var(--text-meta);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 5px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1.15rem;
    /* Texte plus grand */
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--accent);
}

nav ul li a.active::after {
    width: 100%;
}

/* En-tête avec recherche */
header .container {
    display: flex;
    justify-content: flex-start;
    /* Aligner les éléments à gauche */
    gap: 40px;
    /* Espace contrôlé entre le logo et le menu */
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.header-main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-btn {
    color: var(--text-meta);
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    color: var(--accent);
    background-color: var(--border-light);
}

.tool-label {
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Style du formulaire de recherche dans l'en-tête */
.search-form {
    display: flex;
    align-items: center;
    background-color: var(--search-bg);
    border-radius: 50px;
    padding: 5px 15px;
    transition: all 0.3s ease;
    margin-left: 20px;
    min-width: 200px;
    border: 1px solid var(--border);
}

.search-form:focus-within {
    background-color: var(--bg-surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(94, 186, 197, 0.2);
}

.search-form input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 8px 5px;
    width: 150px;
    font-size: 0.9rem;
}

.search-form input::placeholder {
    color: var(--text-base);
    opacity: 0.6;
    /* Assure une bonne lisibilité sans être trop fort */
}

.search-form button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.search-form button:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Structure principale (sans sidebar) */
main.full-width {
    display: block;
    margin: 50px auto;
    padding-top: 30px;
}

/* Section des articles - disposition en grille */
.posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Style des cartes d'articles */
.post {
    background-color: var(--bg-surface);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Article à la Une */
.featured-post {
    grid-column: 1 / -1;
    flex-direction: row;
}

.featured-post .post-thumbnail {
    flex: 0 0 50%;
    height: auto;
    min-height: 300px;
}

.featured-post .post-content {
    flex: 0 0 50%;
    padding: 40px;
    justify-content: center;
}

.featured-post .post-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Thumbnail de l'article */
.post-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Contenu de la carte */
.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Titre de l'article */
.post-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;

    /* Solution pour empêcher les titres trop longs sans couper les mots */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Méta-informations */
.post-meta {
    color: var(--text-meta);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.post-meta .date {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.post-meta .date:before {
    content: '\f073';
    /* Icône calendrier en FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    color: var(--accent);
}

.post-meta .category {
    display: flex;
    align-items: center;
}

.post-meta .category:before {
    content: '\f07b';
    /* Icône dossier en FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    color: var(--accent);
}

/* Extrait de l'article */
.post-excerpt {
    margin-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;

    /* Solution pour empêcher les extraits trop longs */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bouton de la carte */
.post-button {
    margin-top: auto;
    align-self: flex-start;
}

.btn {
    display: inline-block;
    background: var(--accent);
    /* ancienne 7fb8e5*/
    color: var(--bg-surface);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(94, 186, 197, 0.3);
}

.btn:hover {
    background: var(--accent-hover);
    /* Teinte légèrement plus foncée du cyan pour le hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(94, 186, 197, 0.4);
}

/* Pied de page - Style minimaliste gris-bleu pour correspondre au header */
footer {
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border);
    color: var(--text-primary);
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

footer a {
    color: var(--text-meta);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent);
    /* ancienne 7fb8e5*/
}

/* Style des icônes sociales dans le footer */
.social-icons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent);
    /* ancienne 7fb8e5*/
    color: var(--bg-surface);
    transform: translateY(-3px);
}

/* Barre latérale */
.sidebar {
    margin-top: 0;
}

.widget {
    background-color: var(--bg-surface);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.widget h3 {
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.3rem;
    position: relative;
}

.widget h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 12px;
    padding-left: 10px;
    position: relative;
}

.widget ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.widget ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.widget ul li a:hover {
    color: var(--accent);
    /* ancienne 7fb8e5*/
}

/* Styles spécifiques pour les articles complets */
.full-article {
    background-color: var(--bg-surface);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

/* Style du titre d'article */
.article-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.article-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Méta-informations centrées */
.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--text-meta);
    font-size: 0.95rem;
}

.article-meta .date:before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    color: var(--accent);
}

.article-meta .author:before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    color: var(--accent);
}

.article-meta .category:before {
    content: '\f07b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    color: var(--accent);
}

.article-image {
    margin: 25px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 700px;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Bouton d'application */
.app-button-container {
    text-align: center;
    margin: 30px 0;
}

.app-btn {
    background-color: var(--accent);
    font-size: 1.1rem;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.app-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(94, 186, 197, 0.3);
}

/* Corps de l'article */
.article-body {
    line-height: 1.8;
    color: var(--text-base);
    font-size: 1.1rem;
    margin: 40px 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    margin: 40px 0 20px;
    color: var(--text-primary);
    font-size: 1.8rem;
}

.article-body h3 {
    margin: 30px 0 15px;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

/* Pied de l'article */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Animation de chargement */
.loading {
    text-align: center;
    padding: 40px 0;
    font-style: italic;
    color: var(--text-meta);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--accent);
    /* ancienne 7fb8e5*/
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Message d'erreur */
.error-message {
    background-color: var(--bg-surface);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.error-message h2 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-message p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

/* Menu principal - Ajout pour le dropdown des catégories */
nav ul li {
    margin-left: 25px;
    position: relative;
    /* Nécessaire pour le positionnement du dropdown */
}

/* Style pour l'option avec dropdown */
nav ul li a.has-dropdown:after {
    content: '\f107';
    /* Flèche vers le bas FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 0.8rem;
}

/* Menu déroulant des catégories */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-surface);
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

nav ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--text-meta);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    /* Taille légèrement plus petite que les liens principaux (1.15rem) */
}

.dropdown-menu li a:hover {
    background-color: rgba(127, 184, 229, 0.1);
    color: var(--accent);
    /* ancienne 7fb8e5*/
}

.dropdown-menu li a::after {
    display: none;
    /* Supprime la ligne sous les liens dans le dropdown */
}

/* Styles pour le menu "Plus" */
.dropdown-more .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 220px;
}

.dropdown-more .dropdown-menu li {
    margin: 0;
}

.dropdown-more .dropdown-menu li a {
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.dropdown-more .dropdown-menu li a i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* Indication visuelle pour les menus déroulants */
.has-dropdown::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 0.8em;
}

@media (max-width: 1100px) {
    .posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .header-right {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        margin-bottom: 10px;
    }
}

@media (max-width: 992px) {
    .logo img {
        width: 280px;
        /* Logo plus petit sur écrans intermédiaires */
        height: auto;
    }

    nav ul li {
        margin-left: 15px;
        /* Réduit l'espace entre les éléments du menu */
    }

    .search-form input {
        width: 120px;
        /* Champ de recherche plus étroit */
    }
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }

    .post-thumbnail {
        height: 200px;
    }

    /* Autres règles ... */

    /* Une seule règle pour .posts */
    .posts {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    /* Ajout de styles responsifs pour le header */
    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo img {
        max-width: 100%;
        height: auto;
    }

    .header-right {
        width: 100%;
        margin-top: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .search-form {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}

/* Styles spécifiques pour très petits écrans */
@media (max-width: 480px) {
    .logo img {
        max-width: 80%;
    }

    .search-form input {
        width: 120px;
    }
}

@media (max-width: 500px) {
    .posts {
        grid-template-columns: 1fr;
    }
}

/* Responsive pour le menu déroulant */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: transparent;
        padding: 0 0 0 20px;
        margin-top: 5px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    nav ul li:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        margin-bottom: 5px;
    }

    .dropdown-menu li a {
        padding: 5px 0;
    }

    .dropdown-menu li a:hover {
        background-color: transparent;
    }
}

/* Styles pour la page des catégories */
.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-header h1 {
    color: var(--text-primary);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.category-header p {
    color: var(--text-meta);
    font-size: 1.1rem;
}

/* Style pour aucun résultat */
.no-results {
    background-color: var(--bg-surface);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 500px;
}

.no-results h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-meta);
    margin-bottom: 20px;
}

/* Masquer les textes indésirables qui pourraient apparaître avant le header */
body> :not(header, main, footer, script) {
    display: none !important;
}

/* Ajouter plus d'espace entre le header et le contenu */
main.container {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Pour la page d'accueil et les catégories */
main.full-width {
    display: block;
    margin: 50px auto;
    padding-top: 30px;
}

/* Pour les pages d'articles individuels */
.article-content {
    margin-top: 50px;
}

/* Correction du débordement pour le contenu TinyMCE */
.article-body {
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
}

/* Assurer que les images sont responsives */
.article-body img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
}

/* Gérer les tableaux responsifs */
.article-body table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
}

/* Ajuster les iframes et vidéos embarquées */
.article-body iframe,
.article-body video {
    max-width: 100% !important;
    display: block;
    margin: 20px auto;
}

/* Gérer les listes */
.article-body ul,
.article-body ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

/* Gestion des préformattages et blocs de code */
.article-body pre,
.article-body code {
    white-space: pre-wrap;
    overflow-x: auto;
    max-width: 100%;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
}

/* Gérer les divs avec largeur fixe */
.article-body div[style*="width"] {
    max-width: 100% !important;
    width: auto !important;
}

/* Styles pour le formulaire de contact */
.contact-form {
    max-width: 700px;
    margin: 30px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.submit-btn {
    background-color: var(--accent);
    color: white;
    padding: 12px 25px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Notifications */
.notice {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.notice.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notice.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notice.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.hidden {
    display: none;
}

.contact-alternatives {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Utilitaire de centrage de texte */
.text-center {
    text-align: center;
}

/* Style spécifique pour le bouton de contact */
.contact-btn {
    display: inline-block;
    margin: 15px auto;
    padding: 12px 25px;
    font-size: 1.1rem;
    background-color: var(--accent);
}

.contact-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}



@media (max-width: 992px) {
    header .container {
        gap: 20px;
    }

    .header-main-nav {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1px 0;
        /* Réduction du padding vertical */
        position: relative;
    }

    header .container {
        justify-content: flex-start; /* Aligner les éléments à gauche */
        gap: 15px; /* Espace réduit entre logo et outils */
        align-items: center;
    }

    .logo {
        display: flex;
        align-items: center;
    }

    .logo img {
        width: 70px;
        height: auto;
        display: block; /* Supprime l'espace sous l'image */
        margin: 0;
    }

    .header-right {
        display: flex;
        align-items: center;
        flex-grow: 1;
        justify-content: space-between; /* Pour pousser hamburger à droite si besoin */
    }

    /* Réduire l'espace sous le header */
    main.full-width {
        margin: 20px auto;
        padding-top: 10px;
    }

    /* Afficher le bouton hamburger */
    #mobile-menu-toggle {
        display: block;
        order: 3;
    }

    /* Emplacement outils (mode dys / sombre) en haut à droite */
    .header-tools {
        order: 2;
        gap: 10px;
    }

    /* Le menu principal devient un volet déroulant */
    .header-main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-surface-alt);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.3s ease;
        border-bottom: 0px solid var(--border);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 0;
    }

    .header-main-nav.is-active {
        max-height: 500px;
        /* Doit être suffisant pour le contenu */
        padding: 20px 0;
        border-bottom: 1px solid var(--border);
    }

    nav#nav-menu {
        width: 100%;
    }

    nav#nav-menu ul {
        flex-direction: column;
        width: 100%;
    }

    nav#nav-menu ul li {
        margin: 0;
        width: 100%;
    }

    nav#nav-menu ul li a {
        display: block;
        padding: 15px 25px;
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .search-form {
        margin: 20px 20px 10px 20px;
        width: calc(100% - 40px);
        min-width: 0;
    }



    /* Adapter l'article à la Une pour les petits écrans */
    .featured-post {
        flex-direction: column;
    }

    .featured-post .post-thumbnail,
    .featured-post .post-content {
        flex: none;
        /* Empêche le contenu d'écraser le bouton */
    }

    .featured-post .post-thumbnail {
        height: 180px;
        min-height: 0;
    }

    .featured-post .post-content {
        padding: 25px;
        height: auto;
        /* Permet au contenu de s'étendre verticalement */
    }

    .featured-post .post-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
}

/* --- MODE DYSLEXIE --- */
.dyslexic-mode, 
.dyslexic-mode *:not(i):not(.fas):not(.fab):not(.far):not(.fa) {
    font-family: 'OpenDyslexic', sans-serif !important;
}

.dyslexic-mode body {
    line-height: 1.8 !important; /* Augmente l'interligne pour plus de clarté */
}


/* Ajustement de la taille des titres en mode Dys pour garder la hiérarchie */
.dyslexic-mode h1, 
.dyslexic-mode .article-title,
.dyslexic-mode .category-header h1 {
    font-size: 2.2rem;
    letter-spacing: 0;
}

.dyslexic-mode .post-title {
    font-size: 1.3rem;
    letter-spacing: 0;
}

.dyslexic-mode .featured-post .post-title {
    font-size: 1.8rem;
}

.dyslexic-mode h2 { font-size: 1.6rem; }
.dyslexic-mode h3 { font-size: 1.3rem; }

.dyslexic-mode .btn,
.dyslexic-mode .tool-label {
    letter-spacing: 0; /* Évite que les boutons ne s'étirent trop */
}

/* Style pour le bouton actif dans le header */
.tool-btn.is-active {
    color: var(--accent) !important;
    background-color: var(--border-light);
}