/* ===== VARIABLES GLOBALES ET RESET ===== */
:root {
    /* Palette de couleurs */
    --primary: #0a192f;
    --primary-light: #112240;
    --secondary: #020c1b;
    --light: #f8fafc;
    --gray: #8892b0;
    --dark-gray: #495670;
    --silver: #ccd6f6;
    --gold: #d4af37;
    --gold-light: #e6c567;
    --gold-dark: #b8860b;
    
    /* Effets et transitions */
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --radius: 8px;
    
    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--silver);
    background: var(--gradient-primary);
    overflow-x: hidden;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

/* ===== COMPOSANTS REUTILISABLES ===== */
/* Boutons */
.btn {
  display: block; /* permet le centrage avec margin auto */
  padding: 15px 15px; /* réduit la hauteur */
  width: fit-content; /* ou une valeur fixe si souhaité */
  background: var(--gradient-gold);
  color: var(--secondary);
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid rgb(6 255 150 / 30%);
  cursor: pointer;
  font-size: 0.875rem; /* plus petit texte si souhaité */
  box-shadow: var(--shadow);
  margin: 0 auto; /* centre horizontalement */
  line-height: 1.2; /* assure un bon alignement vertical du texte */
}


.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
    color: var(--light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gradient-gold);
    color: var(--secondary);
    border-color: transparent;
}

/* Titres de section */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--silver);
    margin-bottom: 60px;
}

/* Cartes */
.card {
    background-color: rgba(17, 34, 64, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    border: 1px solid var(--gold);
    background: rgba(17, 34, 64, 0.9);
}

/* ===== STRUCTURE PRINCIPALE ===== */
section {
/*    padding: 100px 0; */
    position: relative;
    background: linear-gradient(
    180deg,
    rgba(17, 34, 64, 0.3) 0%,
    rgba(17, 34, 64, 0.5) 35%,
    rgba(34, 68, 128, 0.6) 65%,
    rgba(68, 102, 170, 0.4) 100%
  );
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.95);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
}

.logo span {
    color: var(--silver);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
    color: var(--silver);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--gold);
    font-size: 1.5rem;
}

/* Sélecteur de langue */
.language-selector {
    position: relative;
    margin-left: 20px;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(17, 34, 64, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius);
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--silver);
}

.language-btn:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 25, 47, 0.95);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
    width: 140px;
    overflow: hidden;
    display: none;
    z-index: 100;
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
}

.language-dropdown.active {
    display: block;
}

.language-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    color: var(--silver);
}

.language-option:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.language-option.disabled {
    color: var(--gray);
    pointer-events: none;
    opacity: 0.5;
}

/* ===== SECTIONS DE CONTENU ===== */
/* Hero Section */
.blog-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(2, 12, 27, 0.9)), 
                url('https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
    padding-top: 240px;
    padding-bottom: 120px;
    text-align: center;
    position: relative;
    border-bottom: 3px solid #d4af37;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.blog-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--silver);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--gray);
}

/* Section Auteur */
.author-section {
  background: linear-gradient(
    0deg,
    rgba(17, 34, 64, 0.3) 0%,
    rgba(17, 34, 64, 0.5) 35%,
    rgba(34, 68, 128, 0.6) 65%,
    rgba(68, 102, 170, 0.4) 100%
  );
  backdrop-filter: blur(4px); /* Pour un effet glassy */
  padding: 3rem 1.5rem;
  /* Bordure dorée en haut */
  border-bottom: 3px solid #d4af37; /* Or classique */
}

.author-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.author-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    box-shadow: var(--shadow);
}

.author-info h2 {
    margin-bottom: 20px;
    color: var(--gold);
}

.author-info p {
    margin-bottom: 15px;
    color: var(--silver);
}

/* Section Catégories */
.categories-section .search-section {
    margin-bottom: 40px;
    padding: 20px 0 0;
}

/* ===== MODIFICATIONS POUR LES CATEGORIES ===== */
.categories-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: auto;
    gap: 10px;
    padding: 15px 0 25px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(10, 25, 47, 0.5);
}

.categories-container::-webkit-scrollbar {
    height: 6px;
}

.categories-container::-webkit-scrollbar-thumb {
    background-color: var(--gold);
    border-radius: 3px;
}

.category-card {
    flex: 0 0 auto;
    width: 280px;
    min-height: 240px;
    padding: 20px;
    scroll-snap-align: start;

}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    border: 1px solid var(--gold);
    background: rgba(17, 34, 64, 0.9);
}

.category-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.category-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--silver);
}

.category-count {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    line-height: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Mots-clés */
.keywords-container {
    margin-top: 40px;
}

.keywords-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.keyword-item {
    background-color: rgba(10, 25, 47, 0.7);
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--silver);
    cursor: pointer;
}

.keyword-item.selected {
    background: var(--gradient-gold);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.category-card.selected {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    border: 1px solid var(--gold);
    background: rgba(17, 34, 64, 0.9);
}

.keyword-reset {
    background: var(--primary);
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid var(--gold);
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--gold);
    cursor: pointer;
    font-weight: 600;
}

.keyword-reset:hover {
    background: var(--gradient-gold);
    color: var(--secondary);
}

/* Section Articles */
.all-articles {
  background: linear-gradient(
    180deg,
    rgba(17, 34, 64, 0.3) 0%,
    rgba(17, 34, 64, 0.5) 35%,
    rgba(34, 68, 128, 0.6) 65%,
    rgba(68, 102, 170, 0.4) 100%
  );
  backdrop-filter: blur(4px); /* Pour un effet glassy */
  padding: 2rem 1.5rem;

}
/* ===== MODIFICATIONS POUR L'AFFICHAGE DES ARTICLES ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Utiliser toute la hauteur disponible */
}
.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
    border: 1px solid var(--gold);
    background: rgba(17, 34, 64, 0.9);
}

.article-card.hidden {
    display: none;
}
.article-img {
    height: 180px; /* Hauteur fixe pour toutes les images */
    width: 100%;
    object-fit: cover; /* Uniformise le recadrage des images */
    border-radius: var(--radius) var(--radius) 0 0;
}

.article-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permet au contenu de s'étendre */
    padding: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: var(--gray);
}

.article-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 12px;
    min-height: 2.8em; /* Hauteur fixe pour 2 lignes */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limite à 2 lignes */
    -webkit-box-orient: vertical;
}

.article-excerpt {
    flex-grow: 1; /* Prend l'espace disponible */
    margin-bottom: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limite à 3 lignes */
    -webkit-box-orient: vertical;
    min-height: 4.5em; /* Hauteur minimale pour 3 lignes */
}

.read-article {
    margin-top: auto; /* Place le bouton en bas */
    padding: 10px 15px;
    font-size: 0.9rem;
}

/* Pagination */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}


/* Section Contact */
.contact {
  background: linear-gradient(
  0deg,
    rgba(17, 34, 64, 0.3) 0%,
    rgba(17, 34, 64, 0.5) 35%,
    rgba(34, 68, 128, 0.6) 65%,
    rgba(68, 102, 170, 0.4) 100%
  );
  backdrop-filter: blur(4px); /* Pour un effet glassy */
  padding: 2rem 1.5rem;
/*  border-radius: 12px;*/

  /* Bordure dorée en haut */
  border-bottom: 3px solid #d4af37; /* Or classique */
}

.contact .section-title {
    color: var(--gold);
}

.contact .section-subtitle {
    color: var(--silver);
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-details h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--gold);
}

.contact-details p, 
.contact-details a {
    color: var(--silver);
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--gold);
}

/* Formulaire de contact */
.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

input:invalid, 
textarea:invalid {
    border-color: #ff6b6b;
}

input:invalid + .error-message,
textarea:invalid + .error-message {
    display: block;
}

#formMessage {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--radius);
    display: none;
}

#formMessage.success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    display: block;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

#formMessage.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    display: block;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--silver);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.social-link:hover {
    background: var(--gradient-gold);
    transform: translateY(-5px);
    color: var(--secondary);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background-color: rgba(17, 34, 64, 0.5);
    color: var(--silver);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(204, 214, 246, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(17, 34, 64, 0.7);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.contact-form select {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background-color: rgba(17, 34, 64, 0.5);
    color: var(--silver);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form select:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(17, 34, 64, 0.7);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.contact-form label {
    color: var(--silver);
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Footer */
footer {
  background: linear-gradient(
    180deg,
    rgba(17, 34, 64, 0.3) 0%,
    rgba(17, 34, 64, 0.5) 35%,
    rgba(34, 68, 128, 0.6) 65%,
    rgba(68, 102, 170, 0.4) 100%
  );
  backdrop-filter: blur(4px); /* Pour un effet glassy */
  padding: 2rem 1.5rem;

}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-about p {
    margin-bottom: 20px;
    color: var(--silver);
}

.footer-links h3,
.footer-newsletter h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    transition: var(--transition);
    color: var(--silver);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-newsletter p {
    margin-bottom: 20px;
    color: var(--silver);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background-color: rgba(17, 34, 64, 0.5);
    color: var(--silver);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(17, 34, 64, 0.7);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--silver);
}

/* ===== COMPOSANTS INTERACTIFS ===== */
/* Bouton Retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

/* Modal des articles */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.article-modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: rgba(10, 25, 47, 0.95);
    max-width: 900px;
    margin: 5% auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--gold);
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 20px;
}

.article-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.95rem;
}

.article-body {
    line-height: 1.8;
    color: var(--silver);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.article-body h2, .article-body h3 {
    margin: 30px 0 15px;
    color: var(--gold);
}

.article-body p {
    margin-bottom: 20px;
}

.article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.tag-item {
    display: inline-block;
    background: rgba(17, 34, 64, 0.7);
    padding: 6px 12px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--silver);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto 0;
    gap: 10px;
    width: fit-content;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(17, 34, 64, 0.7);
    border-radius: 4px;
    transition: var(--transition);
    color: var(--silver);
    border: 1px solid rgba(212, 175, 55, 0.1);
    cursor: pointer;
}

.page-link:hover, .page-link.active {
    background: var(--gradient-gold);
    color: var(--secondary);
}

/* Chatbot */
#chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 110px;
    background: var(--gradient-gold);
    color: var(--secondary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

#chatbot-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

#chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 320px;
    height: 400px;
    background: rgba(10, 25, 47, 0.95);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(2, 12, 27, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

#chatbot-container.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#chatbot-header {
    background: rgba(17, 34, 64, 0.9);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.chatbot-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--gold);
}

.chatbot-info p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
    color: var(--silver);
}

#chatbot-close {
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
    color: var(--silver);
}

#chatbot-close:hover {
    opacity: 1;
    color: var(--gold);
}

#chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(10, 25, 47, 0.7);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background: rgba(17, 34, 64, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--silver);
}

.user-message {
    background: var(--gradient-gold);
    color: var(--secondary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

#chatbot-input {
    padding: 15px;
    background: rgba(17, 34, 64, 0.9);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    gap: 10px;
}

#user-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
    background: rgba(10, 25, 47, 0.7);
    color: var(--silver);
}

#user-input:focus {
    border-color: var(--gold);
}

#send-btn {
    background: var(--gradient-gold);
    color: var(--secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    box-shadow: var(--shadow);
}

#send-btn:hover {
    transform: scale(1.1);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: rgba(17, 34, 64, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 18px;
    align-self: flex-start;
    margin-top: 5px;
    border-bottom-left-radius: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* Barre de recherche */
.search-section {
    margin-top: 0;
    top: 0;
}

.search-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-box-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(17, 34, 64, 0.8);
    color: var(--silver);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.search-box:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3), 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(17, 34, 64, 0.9);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--gold);
    font-size: 1.2rem;
}

.search-btn {
    position: absolute;
    right: 10px;
    background: var(--gradient-gold);
    color: var(--secondary);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.search-results {
    background: rgba(17, 34, 64, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
}

.search-results.visible {
    display: block;
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.search-result-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.result-icon {
    margin-right: 15px;
    color: var(--gold);
    font-size: 1.2rem;
    min-width: 30px;
}

.result-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--silver);
}

.result-content p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0;
}

.result-category {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 5px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--gray);
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.search-stats {
    padding: 15px 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    font-size: 0.9rem;
    color: var(--gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-search {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.clear-search:hover {
    color: var(--gold);
}

.search-highlight {
    background: rgba(212, 175, 55, 0.3);
    padding: 0 3px;
    border-radius: 3px;
    color: var(--gold-light);
}

/* ===== SECTIONS SPECIALISEES ===== */
/* Section Expertise */
.expertise-section {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(2, 12, 27, 0.95) 100%);
    padding: 100px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.expertise-card {
    background: rgba(17, 34, 64, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(5px);
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    border: 1px solid var(--gold);
    background: rgba(17, 34, 64, 0.9);
}

.expertise-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.expertise-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.expertise-tagline {
    font-style: italic;
    color: var(--silver);
    margin-bottom: 20px;
    display: block;
}

/* Section Méthodologies */
.methodologies-section {
  background: linear-gradient(
    0deg,
    rgba(17, 34, 64, 0.3) 0%,
    rgba(17, 34, 64, 0.5) 35%,
    rgba(34, 68, 128, 0.6) 65%,
    rgba(68, 102, 170, 0.4) 100%
  );
  backdrop-filter: blur(4px); /* Pour un effet glassy */
  padding: 2rem 1.5rem;

}

.digital-toolkit {
      background: linear-gradient(
    0deg,
    rgba(17, 34, 64, 0.3) 0%,
    rgba(17, 34, 64, 0.5) 35%,
    rgba(34, 68, 128, 0.6) 65%,
    rgba(68, 102, 170, 0.4) 100%
  );
  backdrop-filter: blur(4px); /* Pour un effet glassy */
  padding: 2rem 1.5rem;

}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 50px;
}

.methodology-card {
    background: rgba(17, 34, 64, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(5px);
}

.methodology-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    border: 1px solid var(--gold);
    background: rgba(17, 34, 64, 0.9);
}

.methodology-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.methodology-icon {
    font-size: 2rem;
    color: var(--gold);
}

.methodology-title {
    font-size: 1.4rem;
    color: var(--gold);
}

.methodology-description {
    margin-bottom: 20px;
}

.methodology-chart {
    height: 200px;
    margin: 20px 0;
    position: relative;
    justify-items: center;
}

/* Section Ressources */
.resources-section {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(2, 12, 27, 0.95) 100%);
    padding: 100px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 50px;
}

.resource-card {
    background: rgba(17, 34, 64, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(5px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    border: 1px solid var(--gold);
    background: rgba(17, 34, 64, 0.9);
}

.resource-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.resource-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.download-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient-gold);
    color: var(--secondary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Section Calculatrice */
.calculator-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(10, 25, 47, 0.9) 100%);
    padding: 100px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.calculator-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(17, 34, 64, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(5px);
}

.calculator-result {
    margin-top: 30px;
    padding: 20px;
    background: rgba(10, 25, 47, 0.5);
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.result-title {
    color: var(--gold);
    margin-bottom: 15px;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
}

.role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.role-btn {
    padding: 15px 30px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50px;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    border: 3px solid #d4af37;
    margin: 5px auto;
}

.role-btn i {
    font-size: 1.2rem;
}

.role-btn:hover, 
.role-btn.active {
    background: rgba(10, 25, 47, 0.95);
    color: #d4af37;
    transform: translateY(-3px);
}

.role-content {
    display: none; 
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 100px;
}

.role-content.active {
    display: block; 
    animation: fadeIn 0.5s ease;
    color: black;
}
.role-content:not(.active) {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.role-header {
    background: var(--primary);
    color: white;
    padding: 25px 30px;
}

.role-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #d4af37;
}

.role-description {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #d4af37;
}

.phase-tabs {
    display: flex;
    background: #185abc;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
}

.phase-tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
    white-space: nowrap;
}

.phase-tab.active {
    color: var(--secondary);
    border-bottom: 3px solid var(--secondary);
    background: #d4af37;
}

.phase-content {
    padding: 30px;
    display: none;
}

.phase-content.active {
    display: block;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.deliverable-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.deliverable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.deliverable-header {
    padding: 20px;
    background: rgba(52, 152, 219, 0.1);
    border-bottom: 1px solid #e0e0e0;
}

.deliverable-title {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.deliverable-description {
    color: #666;
}

.deliverable-body {
    padding: 20px;
}

.file-formats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.format-badge {
    padding: 8px 15px;
    background: #f1f2f6;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.format-badge.word { background: rgba(41, 128, 185, 0.1); color: #2c3e50; }
.format-badge.pdf { background: rgba(231, 76, 60, 0.1); color: #c0392b; }
.format-badge.excel { background: rgba(39, 174, 96, 0.1); color: #27ae60; }
.format-badge.miro { background: rgba(155, 89, 182, 0.1); color: #8e44ad; }
.format-badge.notion { background: rgba(0, 0, 0, 0.1); color: #000; }

.visualizations {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.visualization-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* graph */
.article-graphs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.chart-legend {
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
    padding: 0 15px;
}

    /* Ajouts CSS pour les graphiques */
    .chart-container {
      width: 100%;
      margin: 30px 0;
      padding: 20px;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }
    .chart-container {
      flex: 1 1 45%;
      min-width: 300px;
    }
    
    .chart-title {
      font-size: 1.2em;
      margin-bottom: 15px;
      color: #112240;
      font-weight: 600;
      text-align: center;
    }
    
    .chart-wrapper {
      position: relative;
      height: 300px;
    }
    


.maturityChart {
    height: 250px;
    width: 250px;
}

.slider-container {
    margin-bottom: 20px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.slider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    outline: none;
    border-radius: 5px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.matrix-cell {
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.matrix-cell.must { background: rgba(46, 204, 113, 0.2); border: 2px solid #2ecc71; }
.matrix-cell.should { background: rgba(52, 152, 219, 0.2); border: 2px solid #3498db; }
.matrix-cell.could { background: rgba(241, 196, 15, 0.2); border: 2px solid #f1c40f; }
.matrix-cell.wont { background: rgba(231, 76, 60, 0.2); border: 2px solid #e74c3c; }

.matrix-cell:hover {
    transform: scale(1.05);
}

.matrix-cell.selected {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.constraint-sliders {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.constraint-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.constraint-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.constraint-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 10px 0;
}

.diagram-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    overflow: auto;
}

.mermaid {
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Arrière-plans granulaires */
.blog-hero::before,
.author-section::before,
.categories-section::before,
.all-articles::before,
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0px, transparent 50px),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0px, transparent 50px);
    z-index: -1;
    pointer-events: none;
}

/* Points de rupture */
@media (max-width: 1200px) {
    .blog-hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .author-container {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-hero {
    padding-bottom: 100px;
    }
    
    .articles-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
    .article-img {
    height: 160px;
    }
    
     .categories-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-card {
        min-height: 260px;
    }
    .category-title {
    font-size: 0.9rem;
    }
    
    .expertise-grid,
    .methodology-grid,
    .resources-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(10, 25, 47, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        backdrop-filter: blur(10px);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .logo img {
    width: 50px;
    height: 50px;
    }
    .hamburger {
        display: block;
        font-size: 1.3rem;
    }
    .blog-hero {
    padding-bottom: 100px;
    }

    /* Ajustements typographiques */
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Layout */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .deliverables-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
    }
    
    .category-title {
    font-size: 0.85rem;
    }
    

    #chatbot-container {
        width: 90%;
        right: 5%;
    }
    
    /* Barre de recherche */
    .search-box {
        padding: 15px 20px 15px 50px;
        font-size: 1rem;
    }
    
    .search-icon {
        left: 15px;
    }
    .role-selector {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}
    /* Méta articles */
    .article-meta {
        flex-direction: column;
        gap: 5px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    /* Ajustements globaux */
    body {
        font-size: 14px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    /* Header mobile */
    .header-container {
        flex-wrap: wrap;
    }
    
   
    .language-btn {
        padding: 6px 10px;
    }
    
    /* Hero section */
    .blog-hero {
/*        min-height: 50vh; */
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-hero-content p {
        font-size: 1rem;
    }
    
    /* Cartes et grilles */
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-img {
    height: 140px;
    }
    
    .categories-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: hidden;
        padding: 20px 0px;
        gap: 5px;
        justify-items: center;
        transform: translateX(0px);
    }
    
    .category-card {
        width: auto;
        overflow-y: inherit;
    }
    
    .category-title {
    font-size: 0.8rem;
    }
    
    .matrix-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .constraint-sliders {
        grid-template-columns: 1fr;
    }
    
    /* Formulaire newsletter */
    .newsletter-form {
        flex-direction: column;
    }
    .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
    }
    .role-selector {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}
}