/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

/* Overlay pour améliorer la lisibilité */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.3s; /* Délai de 0.3s */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Styles pour la section Articles de Blog */

:root {
    --dark-blue: #050a1c;
    --purple: #7e55e2;
    --light-purple: #9747FF;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.8);
    --card-overlay: rgba(0, 0, 0, 0.65);
    --card-hover-overlay: rgba(0, 0, 0, 0.75);
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --select-bg: rgba(20, 25, 45, 0.95);
    --select-hover: rgba(30, 35, 60, 1);
    --select-border: rgba(126, 85, 226, 0.3);
    --select-shadow: rgba(0, 0, 0, 0.2);
}

/* Section principale */
.blog-articles-section {
    background-color: var(--dark-blue);
    color: var(--text-white);
    position: relative;
    padding: 4rem 0;
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Animation des étoiles */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.stars, .stars2, .stars3 {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
}

.stars {
    animation: sparkle 30s linear infinite;
}

.stars2 {
    background-position: 50px 50px;
    animation: sparkle 50s linear infinite;
    opacity: 0.5;
}

.stars3 {
    background-position: -50px -100px;
    animation: sparkle 70s linear infinite;
    opacity: 0.3;
}

@keyframes sparkle {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-200px);
    }
}

/* Barre d'outils de recherche et filtrage - CORRIGÉE */
.search-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Barre de recherche - CORRIGÉE */
.search-bar {
    position: relative;
    flex: 1 1 280px;
    max-width: 100%;
    display: flex; /* Ajout d'un display flex pour mieux contrôler le bouton */
    align-items: center;
}

.search-bar input {
    width: 100%;
    background-color: rgba(20, 25, 45, 0.8);
    border: 1px solid rgba(126, 85, 226, 0.2);
    border-radius: 30px;
    padding: 14px 45px 14px 20px;
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(126, 85, 226, 0.25);
    background-color: rgba(25, 30, 55, 0.9);
}

/* Bouton de recherche corrigé - CORRIGÉ */
.search-button {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--purple);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* Assure que le bouton reste cliquable */
    height: 36px;
    width: 36px;
    z-index: 2; /* S'assure que le bouton est au-dessus de l'input */
}

.search-button:hover {
    background-color: rgba(126, 85, 226, 0.2);
    transform: scale(1.1);
}

/* Outils de filtrage */
.filter-tools {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Menus déroulants personnalisés */
.custom-select {
    position: relative;
    min-width: 180px;
    flex: 1 1 auto;
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 14px 40px 14px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: var(--text-white);
    background-color: rgba(20, 25, 45, 0.8);
    border: 1px solid rgba(126, 85, 226, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-select select:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(126, 85, 226, 0.25);
    background-color: rgba(25, 30, 55, 0.9);
}

.select-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--purple);
    transition: transform 0.3s ease;
}

.custom-select select:focus + .select-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* Style des options déroulantes */
.custom-select select option {
    background-color: var(--select-bg);
    color: var(--text-white);
    padding: 12px;
    font-size: 0.95rem;
}

/* Grille d'articles */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.grid-row {
    display: flex;
    gap: 1.5rem;
}

.row-asymmetric .article-card:first-child {
    flex: 0 0 60%;
}

.row-asymmetric .article-card:last-child {
    flex: 0 0 calc(40% - 1.5rem);
}

.row-uniform {
    display: flex;
    flex-wrap: wrap;
}

.row-uniform .article-card {
    flex: 0 0 calc(33.33% - 1rem);
}

/* Carte d'article */
.article-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Correction des styles de liens dans les articles */
.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.article-card a:hover {
    text-decoration: none;
    color: inherit;
}

.article-card .article-title,
.article-card .article-excerpt,
.article-card .article-meta {
    color: inherit;
    text-decoration: none;
}

.article-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(126, 85, 226, 0.2);
}

.article-card:hover .card-overlay {
    background-color: var(--card-hover-overlay);
}

.card-image {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 240px;
}

.article-card.featured .card-image {
    height: 320px;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--card-overlay);
    transition: background-color var(--transition-speed);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--purple);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.article-category.design {
    background-color: #FF6B6B;
}

.article-category.developpement {
    background-color: #4ECDC4;
}

.article-category.strategie {
    background-color: #9747FF;
}

.article-category.guides {
    background-color: #FFD166;
    color: #333;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-card.featured .article-title {
    font-size: 1.8rem;
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-arrow {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.pagination-arrow:hover:not([disabled]) {
    background-color: var(--purple);
    border-color: var(--purple);
    color: white;
    box-shadow: 0 0 15px rgba(126, 85, 226, 0.5);
}

.pagination-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.page-number.active {
    background-color: var(--purple);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(126, 85, 226, 0.5);
}

.page-number:not(.active):hover {
    background-color: rgba(126, 85, 226, 0.2);
}

.pagination-dots {
    color: var(--text-light);
}

/* Animations */
[data-animation="fade-in"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animation="card-reveal"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animation="fade-in"].animate,
[data-animation="card-reveal"].animate {
    opacity: 1;
    transform: translateY(0);
}





/* Variables */
:root {
    --dark-blue: #050a1c;
    --purple: #7e55e2;
    --light-purple: #9747FF;
    --light-blue: #4ecfe9;
    --text-white: #ffffff;
    --border-radius-large: 20px;
    --transition-speed: 0.3s;
}

/* Section principale */
.experts-section {
    position: relative;
    background-color: var(--dark-blue);
    color: var(--text-white);
    padding: 6rem 0;
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Animation des étoiles */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.stars, .stars2, .stars3 {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
}

.stars {
    animation: sparkle 30s linear infinite;
}

.stars2 {
    background-position: 50px 50px;
    animation: sparkle 50s linear infinite;
    opacity: 0.5;
}

.stars3 {
    background-position: -50px -100px;
    animation: sparkle 70s linear infinite;
    opacity: 0.3;
}

@keyframes sparkle {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-200px);
    }
}

/* Grille d'experts */
.experts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Colonne de gauche - Image */
.image-column {
    position: relative;
}

.image-decorator {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-large);
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
}

.image-container {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-large);
    transition: transform var(--transition-speed) ease;
}

/* Colonne de droite - Contenu */
.content-column {
    position: relative;
}

.vertical-bar {
    position: absolute;
    left: -30px;
    top: 10px;
    width: 4px;
    height: 85%;
    background: linear-gradient(to bottom, var(--light-blue), var(--light-purple));
    border-radius: 2px;
    transform: scaleY(0);
    transform-origin: center;
}

.text-content {
    position: relative;
    z-index: 2;
}

.text-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 0;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    opacity: 0;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    color: var(--light-purple);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    opacity: 0;
}

.arrow-icon {
    margin-left: 8px;
    transition: transform var(--transition-speed) ease;
}

.cta-link:hover {
    color: #b289ff; /* Version plus claire de la couleur violette */
    text-shadow: 0 0 8px rgba(151, 71, 255, 0.4);
}

.cta-link:hover .arrow-icon {
    transform: translateX(5px);
}

/* Animations */
.image-decorator.animate {
    animation: fadeSlideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.image-container.animate {
    animation: fadeSlideUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.vertical-bar.animate {
    animation: verticalExpand 0.6s ease-out forwards;
    animation-delay: 0.6s;
}

.text-content h2.animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 1s;
}

.text-content p.animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 1.2s;
}

.cta-link.animate {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 1.4s;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes verticalExpand {
    0% {
        transform: scaleY(0);
    }
    100% {
        transform: scaleY(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}



/* Variables */
:root {
    --dark-blue: #050a1c;
    --card-bg-start: #0d1033;
    --card-bg-end: #17103a;
    --purple: #7e55e2;
    --light-purple: #9747FF;
    --text-white: #ffffff;
    --border-radius-large: 24px;
    --border-radius-medium: 12px;
    --transition-speed: 0.4s;
}

/* Section principale */
.newsletter-section {
    position: relative;
    background-color: var(--dark-blue);
    color: var(--text-white);
    padding: 6rem 0;
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Animation des étoiles */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.stars, .stars2, .stars3 {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
}

.stars {
    animation: sparkle 30s linear infinite;
}

.stars2 {
    background-position: 50px 50px;
    animation: sparkle 50s linear infinite;
    opacity: 0.5;
}

.stars3 {
    background-position: -50px -100px;
    animation: sparkle 70s linear infinite;
    opacity: 0.3;
}

@keyframes sparkle {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-200px);
    }
}

/* Carte Newsletter */
.newsletter-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--card-bg-start), var(--card-bg-end));
    border-radius: var(--border-radius-large);
    overflow: hidden;
    padding: 4rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all var(--transition-speed) ease-out;
    transform: scale(0.98);
    opacity: 0;
    position: relative;
}

.newsletter-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(151, 71, 255, 0.15), transparent 70%),
                radial-gradient(circle at bottom left, rgba(78, 36, 153, 0.1), transparent 70%);
    z-index: 1;
}

.newsletter-card:hover {
    transform: translateY(-8px) scale(1);
    box-shadow: 0 15px 40px rgba(151, 71, 255, 0.3);
}

.newsletter-card:hover ~ .stars-container .stars {
    animation-duration: 25s;
}

.newsletter-card:hover ~ .stars-container .stars2 {
    animation-duration: 40s;
}

.newsletter-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.newsletter-content h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
}

.newsletter-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Formulaire */
.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.form-group {
    display: flex;
    gap: 15px;
    width: 100%;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border-radius: var(--border-radius-medium);
    background-color: rgba(13, 16, 51, 0.9);
    border: 1px solid rgba(126, 85, 226, 0.2);
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 2px rgba(126, 85, 226, 0.2);
}

.newsletter-form button {
    padding: 15px 25px;
    background-color: var(--purple);
    color: white;
    border: none;
    border-radius: var(--border-radius-medium);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: var(--light-purple);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(151, 71, 255, 0.4);
}

/* Animations */
.newsletter-card.animate {
    animation: cardReveal 0.8s ease-out forwards;
}

.newsletter-content h2.animate,
.newsletter-content p.animate,
.newsletter-form.animate {
    animation: contentReveal 0.8s ease-out forwards;
}

.newsletter-content p.animate {
    animation-delay: 0.2s;
}

.newsletter-form.animate {
    animation-delay: 0.4s;
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes contentReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .newsletter-card {
        padding: 3rem 2rem;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 4rem 0;
    }
    
    .newsletter-content h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .newsletter-card {
        padding: 2.5rem 1.5rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 15px;
    }
    
    .newsletter-content h2 {
        font-size: 1.5rem;
    }
}




/* Responsive */
@media (max-width: 992px) {
    .experts-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .image-column {
        order: 1;
    }

    .content-column {
        order: 2;
    }

    .vertical-bar {
        left: -20px;
        height: 90%;
    }

    .text-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .experts-section {
        padding: 4rem 0;
    }

    .image-decorator {
        top: 15px;
        left: -15px;
    }

    .text-content h2 {
        font-size: 1.8rem;
    }

    .text-content p {
        font-size: 1rem;
    }

    .vertical-bar {
        left: -15px;
    }
}

@media (max-width: 480px) {
    .experts-section {
        padding: 3rem 0;
    }

    .image-decorator {
        display: none;
    }

    .vertical-bar {
        width: 3px;
        left: -12px;
    }

    .text-content h2 {
        font-size: 1.5rem;
    }
}








/* Responsive - CORRIGÉ */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .row-uniform .article-card {
        flex: 0 0 calc(50% - 0.75rem);
        margin-bottom: 1.5rem;
    }
    
    .row-uniform .article-card:last-child {
        flex: 0 0 100%;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .search-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-bar {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0; /* Élimine toute marge inférieure */
    }
    
    /* Corrigé: S'assurer que le bouton de recherche reste dans les limites */
    .search-button {
        right: 10px;
        height: 32px;
        width: 32px;
        padding: 6px;
    }
    
    .filter-tools {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 0; /* Élimine la marge supérieure qui pourrait causer un espacement */
    }
    
    .custom-select {
        min-width: 0;
        flex: 0 0 calc(50% - 0.5rem);
    }
    
    /* Changer la grille en une seule colonne */
    .grid-row {
        flex-direction: column;
    }
    
    .row-asymmetric .article-card:first-child,
    .row-asymmetric .article-card:last-child,
    .row-uniform .article-card {
        flex: 0 0 100%;
        margin-bottom: 1.5rem;
    }
    
    .card-image, .article-card.featured .card-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .blog-articles-section {
        padding: 3rem 0;
    }
    
    .article-title, .article-card.featured .article-title {
        font-size: 1.5rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Corrections supplémentaires pour l'espacement */
    .search-tools {
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .filter-tools {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .custom-select {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .pagination-numbers .page-number:not(.active):not(:first-child):not(:last-child) {
        display: none;
    }
    
    .pagination-dots {
        display: inline-block;
    }
    
    .article-title, .article-card.featured .article-title {
        font-size: 1.25rem;
    }
    
    .card-image, .article-card.featured .card-image {
        height: 180px;
    }
    
    /* Correction des tailles pour petit écran */
    .search-bar input {
        padding-right: 50px; /* Assez d'espace pour le bouton */
    }
}

/* Correction spécifique pour petits écrans */
@media (max-width: 400px) {
    .search-bar input {
        padding: 12px 45px 12px 15px;
        font-size: 0.95rem;
    }
    
    .custom-select select {
        padding: 12px 35px 12px 15px;
        font-size: 0.9rem;
    }
    
    .blog-articles-section {
        padding: 2rem 0;
    }
    
    /* Assurer que le bouton reste bien positionné */
    .search-button {
        right: 8px;
    }
}

/* Styles pour le fonctionnement sur navigateurs Firefox */
@-moz-document url-prefix() {
    .custom-select select {
        padding-right: 15px;
        background-image: none;
    }
    
    .select-icon {
        right: 10px;
    }
}

/* Styles spécifiques pour Safari */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .custom-select select {
            text-indent: 1px;
            text-overflow: '';
            box-sizing: border-box;
        }
    }
}






/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero {
        padding: 0 20px;
    }
}/* S
tyles pour l'autocomplétion de recherche */
.search-bar {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(25, 22, 57, 0.95);
    border: 1px solid rgba(151, 71, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.suggestion-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(151, 71, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(151, 71, 255, 0.15);
    transform: translateX(2px);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.suggestion-content h4 mark {
    background: rgba(151, 71, 255, 0.3);
    color: #9747FF;
    padding: 1px 2px;
    border-radius: 2px;
}

.suggestion-content p {
    margin: 0 0 4px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.suggestion-content small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive pour les suggestions */
@media (max-width: 768px) {
    .search-suggestions {
        max-height: 300px;
    }
    
    .suggestion-item {
        padding: 10px 12px;
    }
    
    .suggestion-content h4 {
        font-size: 13px;
    }
    
    .suggestion-content p {
        font-size: 11px;
    }
}
    .search-suggestions {
        max-height: 300px;
    }
    
    .suggestion-item {
        padding: 10px 12px;
    }
    
    .suggestion-content h4 {
        font-size: 13px;
    }
    
    .suggestion-content p {
        font-size: 11px;
    }
}

/* Amélioration des liens d'articles */
.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.article-card a:hover {
    color: inherit;
}

/* Message aucun article */
.no-articles-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-articles-message h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.no-articles-message p {
    margin: 0 0 20px 0;
    font-size: 16px;
}

.no-articles-message a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.no-articles-message a:hover {
    text-decoration: underline;
}