/* =========================================
   TABLE DES MATIÈRES
   =========================================
   1. Variables et reset
   2. Structure globale
   3. Header
      3.1 Top Bar
      3.2 Navigation principale
   4. Composants communs
      4.1 Boutons
      4.2 Formulaires
      4.3 Cards
      4.4 Dropdowns
   5. Sections spécifiques
      5.1 Hero
      5.2 Quick Links
      5.3 Featured Sections
      5.4 Articles
      5.5 Testimonials
      5.6 Author sections
   6. Footer
   7. Utilitaires
   8. Media Queries
   ========================================= */

/* =========================================
   1. Variables et reset
   ========================================= */
:root {
    --primary-color: #009d3d;
    --primary-dark: #008533;
    --secondary-color: #ffeb01;
    --secondary-dark: #e6d300;
    --dark-gray: #2c3e50;
    --light-gray: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --body-font: 'Source Sans Pro', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    padding-top: 118px; /* Ajuster selon la hauteur totale du header */
}

/* =========================================
   2. Structure globale
/* Grille personnalisée */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* Navigation */
.navbar {
    background: var(--gradient-primary);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 30px;
    z-index: 1020;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
    max-width: 150px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-toggler {
    padding: 0.25rem;
    font-size: 0.875rem;
    border: none;
    color: var(--white);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    color: var(--white);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Search box amélioré */
.search-box {
    position: relative;
    margin-right: 1rem;
}

.search-box .form-control {
    height: 32px;
    font-size: 0.8rem;
    padding: 0.25rem 2rem 0.25rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.search-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box .btn-search {
    position: absolute;
    right: 0;
    top: 0;
    height: 32px;
    width: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--white);
    border-radius: 0 20px 20px 0;
    transition: all 0.3s ease;
}

.search-box .btn-search:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Action buttons améliorés */
.action-buttons .btn {
    height: 32px;
    width: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.action-buttons .btn i {
    font-size: 1rem;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Dropdown menu amélioré */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Profile image améliorée */
.profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive styles améliorés */
@media (max-width: 992px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar .action-buttons {
        margin-top: 1rem;
        justify-content: center;
    }

    .search-box {
        margin: 0.5rem 0;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .dropdown-item {
    color: var(--white);
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-width: 120px;
    }

    .navbar {
        top: 25px;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }

    .search-box .form-control {
        height: 30px;
    }

    .action-buttons .btn {
        height: 30px;
        width: 30px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-width: 100px;
    }

    .navbar {
        top: 22px;
    }

    .navbar-nav .nav-link {
        font-size: 0.8rem;
    }

    .search-box .form-control {
        height: 28px;
        font-size: 0.75rem;
    }

    .action-buttons .btn {
        height: 28px;
        width: 28px;
    }

    .action-buttons .btn i {
    font-size: 0.9rem;
    }
}

/* Section héro */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.9));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 4rem 0 3rem;
    margin-top: 0 !important; /* Suppression de la marge supérieure avec priorité */
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('../assets/images/blog-hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: neonPulse 8s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(0, 255, 157, 0.2) 49%, rgba(0, 255, 157, 0.2) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 255, 157, 0.2) 49%, rgba(0, 255, 157, 0.2) 51%, transparent 52%);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 2;
    animation: gridMove 10s linear infinite;
}

@keyframes neonPulse {
    0% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
        filter: blur(5px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2) rotate(5deg);
        filter: blur(10px);
    }
    100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
        filter: blur(5px);
    }
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
        transform: scale(1) rotate(0deg);
    }
    50% {
        background-position: 30px 30px;
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        background-position: 0 0;
        transform: scale(1) rotate(0deg);
    }
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.5px;
    position: relative;
    animation: fadeInUp 1s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}

@keyframes neonTextGlow {
    0% {
        text-shadow: 0 0 15px rgba(0, 255, 157, 0.7),
                     0 0 30px rgba(0, 255, 157, 0.5),
                     0 0 45px rgba(0, 255, 157, 0.3);
    }
    100% {
        text-shadow: 0 0 25px rgba(0, 255, 157, 0.9),
                     0 0 50px rgba(0, 255, 157, 0.7),
                     0 0 75px rgba(0, 255, 157, 0.5);
    }
}

.hero h1::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #00ff9d;
    text-shadow: 0 0 10px #00ff9d;
    animation: neonPulse 2s infinite alternate;
    z-index: -1;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #00ff9d;
    border-radius: 2px;
    animation: expandWidth 1.5s ease-out forwards;
    box-shadow: 0 0 5px #00ff9d;
}

.hero .lead {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.3s backwards;
    text-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

.hero .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 157, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.hero .btn-light {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.hero .btn-light:hover {
    background: transparent;
    color: #00ff9d;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.8);
}

.hero .btn-outline-light {
    border: 2px solid #00ff9d;
    color: #00ff9d;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.hero .btn-outline-light:hover {
    background: #00ff9d;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.8);
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out 0.9s backwards;
}

.hero-image .carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(0, 255, 157, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    max-width: 90%;
    margin: 0 auto;
    position: relative;
}

.hero-image .carousel-item {
    transition: transform 0.5s ease;
}

.hero-image .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.5s ease;
    max-height: 500px;
    filter: brightness(0.9);
}

.hero-image .carousel-item.active img {
    filter: brightness(1);
    transform: scale(1.02);
}

.hero-image .carousel:hover .carousel-item img {
    filter: brightness(1.1);
}

.hero-image .carousel:hover {
    transform: perspective(1000px) rotateY(-5deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(0, 255, 157, 0.7);
}

.hero-image .carousel-control-prev,
.hero-image .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 157, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-image .carousel:hover .carousel-control-prev,
.hero-image .carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-image .carousel-control-prev:hover,
.hero-image .carousel-control-next:hover {
    background: rgba(0, 255, 157, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.hero-image .carousel-control-prev-icon,
.hero-image .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
    filter: drop-shadow(0 0 5px rgba(0, 255, 157, 0.8));
}

.hero-image .carousel-indicators {
    bottom: 20px;
    margin: 0;
}

.hero-image .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 255, 157, 0.5);
    border: 2px solid transparent;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-image .carousel-indicators button.active {
    background-color: #00ff9d;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.8);
}

.hero-image .carousel-indicators button:hover {
    background-color: #00ff9d;
    transform: scale(1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

@keyframes neonGlow {
    from {
        box-shadow: 0 0 5px #00ff9d,
                    0 0 10px #00ff9d;
    }
    to {
        box-shadow: 0 0 10px #00ff9d,
                    0 0 20px #00ff9d,
                    0 0 30px #00ff9d;
    }
}

/* Responsive styles pour la section hero */
@media (max-width: 992px) {
    .hero {
        padding: 3rem 0 2rem;
        min-height: 50vh;
        margin-top: 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero .lead {
    font-size: 1.1rem;
    }

    .hero-image .carousel {
        max-width: 95%;
    }
    
    .hero-image .carousel-item img {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 0 1.5rem;
        min-height: 45vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .hero .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }

    .hero-image .carousel {
        max-width: 100%;
    }
    
    .hero-image .carousel-item img {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 2rem 0 1rem;
        padding: 6rem 0 3rem;
        margin-top: 0; /* Suppression de la marge supérieure */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.2rem;
    }
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.mt-3 {
        margin-top: 1rem;
    }

.mb-3 {
    margin-bottom: 1rem;
}

.p-3 {
    padding: 1rem;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

/* Top bar styles */
.top-bar {
    background-color: #f5f5f5;
    color: #333;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    position: relative;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1031;
}

.top-bar .ad-text {
    display: inline-block;
    animation: slideText 20s linear infinite;
    white-space: nowrap;
    padding-right: 20px;
}

@keyframes slideText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.top-bar .ad-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.top-bar a {
    color: #4CAF50 !important;
    text-decoration: none;
    font-size: 0.8rem;
}

.top-bar a:hover {
    color: #45a049 !important;
    text-decoration: underline;
}

/* Styles pour les cartes de sections */
.featured-sections .card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.featured-sections .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.featured-sections .card-body {
    padding: 2.5rem;
}

.featured-sections .bi {
    color: var(--primary-color);
}

/* Styles pour les liens rapides */
.quick-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.quick-link-card .card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.2rem;
    height: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 157, 61, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.quick-link-card .card-body {
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quick-link-card .bi {
    font-size: 1.8rem;
    color: #009d3d;
    margin-bottom: 0.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-link-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .quick-link-card .card {
        min-height: 100px;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .quick-link-card .card {
        min-height: 80px;
        padding: 0.8rem;
    }
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: var(--primary-color);
    color: var(--white);
}

.quick-link-card:hover .bi {
    color: var(--white);
}

.quick-link-card .bi {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.quick-link-card h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-sections .card-body {
        padding: 1.5rem;
    }
    
    .quick-links .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Dashboard */
.dashboard-sidebar {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Styles pour les icônes dans la navigation */
.nav-link i {
    margin-right: 0.5rem;
}

/* Styles pour les titres */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

/* Styles pour les liens */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Styles pour les boutons */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

/* Styles pour les formulaires */
.form-control {
    border-radius: 4px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 157, 61, 0.25);
}

/* Styles pour les tables */
.table {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
}

.table th {
    background-color: var(--light-gray);
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

/* Styles pour les badges */
.badge {
    padding: 0.5em 1em;
    border-radius: 4px;
    font-weight: 500;
}

/* Styles pour les alertes */
.alert {
    border: none;
    border-radius: 4px;
    padding: 1rem;
}

.alert-success {
    background-color: rgba(0, 157, 61, 0.1);
    color: var(--primary-color);
}

.alert-warning {
    background-color: rgba(255, 235, 1, 0.1);
    color: var(--secondary-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Styles pour les modales */
.modal-content {
    border: none;
    border-radius: 8px;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1.5rem;
}

/* Styles pour les tooltips */
.tooltip {
    font-size: 0.875rem;
    position: absolute;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background-color: var(--dark-gray);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tooltip.show {
    opacity: 1;
}

.tooltip-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 9999;
}

/* Styles pour les animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Styles pour les media queries */
@media (max-width: 768px) {
    .navbar-brand img {
        max-width: 150px;
    }
    
    .nav-link {
        padding: 0.5rem;
    }
    
    .action-buttons .btn {
        width: 35px;
        height: 35px;
    }
    
    .profile-image {
        width: 35px;
        height: 35px;
    }
    
    .search-box {
        margin-right: 0.5rem;
    }
    
    .search-box .form-control {
        width: 150px;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 0.8rem;
    }
    
    .social-links a {
        margin-left: 0.5rem;
    }
    
    .navbar-brand img {
        max-width: 120px;
    }
    
    .search-box {
        display: none;
    }
    
    .action-buttons .btn {
        width: 30px;
        height: 30px;
    }
    
    .profile-image {
        width: 30px;
        height: 30px;
    }
}

/* Styles pour les derniers articles dans le footer */
.footer-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-articles li {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.footer-articles li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-articles a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-articles a:hover {
    color: #007bff;
}

.footer-articles .article-title {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.footer-articles .article-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-articles .article-date {
    color: rgba(255, 255, 255, 0.6);
}

.footer-articles .article-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-articles .article-views i {
    font-size: 0.9rem;
}

.footer-articles .no-articles {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-articles .no-articles i {
    font-size: 1.2rem;
}

/* Styles pour les témoignages */
.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.avatar-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.avatar-container img {
    transition: transform 0.3s ease;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-overlay i {
    color: white;
}

.avatar-container:hover img {
    transform: scale(1.1);
}

.avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.testimonial-content {
    position: relative;
    padding: 1rem 0;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    font-size: 3rem;
    color: rgba(0, 123, 255, 0.1);
    font-family: Georgia, serif;
}

.testimonial-rating {
    color: #ffc107;
}

/* Animation pour les statistiques */
.display-4 {
    transition: transform 0.3s ease;
}

.display-4:hover {
    transform: scale(1.1);
} 

/* Ajustement global du contenu principal pour toutes les pages */
main {
    margin-top: 0 !important; /* Supprimer la marge supérieure avec priorité */
    padding-top: 0 !important; /* Supprimer le padding supérieur avec priorité */
}

/* Réglage de tous les éléments directs de main */
main > section:first-child {
    margin-top: 0 !important;
    padding-top: 3rem;
}

main > .container:first-child,
main > .container-fluid:first-child {
    margin-top: 0 !important;
    padding-top: 3rem;
}

/* Correction spécifique pour les pages avec classe container mt-5 */
main.container.mt-5,
main.container-fluid.mt-5 {
    margin-top: 0 !important;
    padding-top: 3rem !important;
}

/* Ajustement spécifique pour les sections hero */
.hero {
    margin-top: 0 !important;
}

/* Espacement du contenu */
body {
    padding-top: 118px; /* Ajuster selon la hauteur totale du header */
}

/* Styles responsifs */
@media (max-width: 991.98px) {
    body {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    main > section:first-child,
    main > .container:first-child,
    main > .container-fluid:first-child {
        padding-top: 2rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    
    main > section:first-child,
    main > .container:first-child,
    main > .container-fluid:first-child {
        padding-top: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-top: 100px;
    }
    
    main {
        margin-top: 0;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        margin-top: 10px;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    main {
        margin-top: 0;
    }
}

.top-bar .social-links a {
    color: #4CAF50 !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.top-bar .social-links a:hover {
    color: #45a049 !important;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .top-bar {
        font-size: 0.7rem;
        padding: 0.3rem 0;
    }

    .top-bar .social-links {
        display: none;
    }

    .top-bar .col-md-6 {
        width: 100%;
        text-align: center;
    }

    .top-bar .col-md-6:last-child {
        display: none;
    }

    .navbar {
        top: 25px;
    }

    .navbar-brand img {
        max-width: 120px;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    main {
        margin-top: 80px;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 0.65rem;
    }

    .navbar {
        top: 22px;
    }

    .navbar-brand img {
        max-width: 100px;
    }

    main {
        margin-top: 70px;
    }

    .navbar .action-buttons {
        margin-top: 1rem;
    }

    .navbar .search-box {
        width: 100%;
        margin-bottom: 1rem;
    }

    .navbar .search-box .form-control {
        width: 100%;
    }
}

/* Responsive styles améliorés */
@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .navbar .search-box {
        max-width: 200px;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar .search-box {
        max-width: 100%;
        margin: 0.5rem 0;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 0.7rem;
        padding: 0.3rem 0;
    }

    .top-bar .social-links {
        display: none;
    }

    .top-bar .col-md-6 {
        width: 100%;
        text-align: center;
    }

    .top-bar .col-md-6:last-child {
        display: none;
    }

    .navbar {
        top: 25px;
    }

    .navbar-brand img {
        max-width: 120px;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    .navbar-collapse {
        background: var(--gradient-primary);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
    }

    .navbar-nav .nav-item {
        margin: 0.3rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        background: transparent;
        border: none;
        padding-left: 1rem;
    }

    .dropdown-item {
        color: var(--white);
        padding: 0.5rem 1rem;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    main {
        margin-top: 80px;
    }

    .ad-container {
        max-width: 100%;
        overflow: hidden;
    }

    .ad-text {
        font-size: 0.7rem;
        color: #4CAF50;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 0.65rem;
    }

    .navbar {
        top: 22px;
    }

    .navbar-brand img {
        max-width: 100px;
    }

    .navbar-toggler {
        padding: 0.2rem 0.4rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.85rem;
    }

    .dropdown-menu {
        font-size: 0.85rem;
    }

    main {
        margin-top: 70px;
    }

    .navbar .action-buttons {
        margin-top: 1rem;
    }

    .navbar .search-box {
        width: 100%;
        margin-bottom: 1rem;
    }

    .navbar .search-box .form-control {
        width: 100%;
    }

    .ad-text {
        font-size: 0.65rem;
        color: #4CAF50;
    }
}

/* Animation du texte publicitaire */
@keyframes slideText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .ad-text {
        animation: none;
        white-space: normal;
    }
}

.ad-text {
    color: #4CAF50;
    font-size: 0.8rem;
    white-space: nowrap;
    animation: slideText 20s linear infinite;
}

@media (max-width: 768px) {
    .ad-text {
        font-size: 0.7rem;
        color: #4CAF50;
    }
}

@media (max-width: 576px) {
    .ad-text {
        font-size: 0.65rem;
        color: #4CAF50;
    }
}

.ad-text i {
    color: #4CAF50;
    font-size: 1rem;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .ad-text i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .ad-text i {
        font-size: 0.8rem;
    }
}

/* Section Publicité pour les Auteurs */
.author-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.author-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 157, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.author-cta .container {
    position: relative;
    z-index: 2;
}

.author-content {
    position: relative;
}

.author-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00ff9d, #009d3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    display: inline-block;
}

.author-content h2:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(0, 255, 157, 0.5);
}

.author-content .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.author-stats {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.author-stats h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    position: relative;
}

.author-stats h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #00ff9d, #009d3d);
    border-radius: 2px;
}

.author-stats .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ff9d, #009d3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.author-stats .text-muted {
    font-size: 1rem;
    color: #6c757d;
}

/* Responsive styles */
@media (max-width: 992px) {
    .author-content h2 {
        font-size: 2rem;
    }
    
    .author-stats {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .author-content h2 {
        font-size: 1.8rem;
    }
    
    .author-stats .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .author-content h2 {
        font-size: 1.5rem;
    }
    
    .author-stats .display-4 {
        font-size: 1.8rem;
    }
}

.author-content .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.author-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 157, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.author-content .btn-primary {
    background: #00ff9d;
    color: #000;
    border: 2px solid #00ff9d;
    box-shadow: none;
    font-weight: 600;
}

.author-content .btn-primary:hover {
    background: #00e08d;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.author-content .btn-outline-primary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
    box-shadow: none;
    font-weight: 600;
}

.author-content .btn-outline-primary:hover {
    background: #6c757d;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Amélioration du contraste pour les icônes */
.author-content .btn i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
    color: inherit;
}

/* Responsive styles pour les boutons */
@media (max-width: 768px) {
    .author-content .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .author-content .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Animation des badges de reconnaissance */
.author-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
    position: relative;
    perspective: 1000px;
}

.author-badges::before,
.author-badges::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
}

.author-badges::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 157, 61, 0.1), transparent);
}

.author-badges::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 157, 61, 0.1), transparent);
}

.badge-item {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 157, 61, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.badge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 157, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.badge-item:hover {
    transform: translateY(-5px) rotateX(10deg) rotateY(10deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15),
                0 0 20px rgba(0, 157, 61, 0.3),
                0 0 40px rgba(0, 157, 61, 0.2);
    background: #009d3d;
    border-color: rgba(255, 255, 255, 0.4);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15),
                    0 0 20px rgba(0, 157, 61, 0.3),
                    0 0 40px rgba(0, 157, 61, 0.2);
    }
    50% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15),
                    0 0 30px rgba(0, 157, 61, 0.4),
                    0 0 60px rgba(0, 157, 61, 0.3);
    }
    100% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15),
                    0 0 20px rgba(0, 157, 61, 0.3),
                    0 0 40px rgba(0, 157, 61, 0.2);
    }
}

.badge-item:hover::before {
    transform: translateX(100%);
}

.badge-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #009d3d;
    text-shadow: 0 0 10px rgba(0, 157, 61, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.badge-item:hover i {
    transform: scale(1.2) rotate(360deg);
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: iconGlow 2s infinite;
}

@keyframes iconGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 157, 61, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 157, 61, 0.5),
                     0 0 30px rgba(0, 157, 61, 0.3);
    }
    100% {
        text-shadow: 0 0 10px rgba(0, 157, 61, 0.3);
    }
}

.badge-item span {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.badge-item:hover span {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Effet de lueur au survol */
.badge-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 157, 61, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

.badge-item:hover::after {
    opacity: 1;
}

/* Responsive styles pour les badges */
@media (max-width: 768px) {
    .badge-item {
        padding: 0.8rem 1.5rem;
    }
    
    .badge-item i {
        font-size: 1.2rem;
    }
    
    .badge-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .badge-item {
        padding: 0.7rem 1.2rem;
    }
    
    .badge-item i {
        font-size: 1rem;
    }
    
    .badge-item span {
        font-size: 0.8rem;
    }
}

/* Section Historique */
.historical-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 157, 61, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.historical-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 157, 61, 0.1) 0%, transparent 70%);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

.historical-section .container {
    position: relative;
    z-index: 1;
}

.historical-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #009d3d, #006633);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.historical-section h2:hover {
    transform: scale(1.05);
}

.historical-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #009d3d, transparent);
    animation: lineWidth 2s ease-in-out infinite;
}

@keyframes lineWidth {
    0% {
        width: 50px;
    }
    50% {
        width: 150px;
    }
    100% {
        width: 50px;
    }
}

.historical-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 157, 61, 0.1);
    transition: all 0.3s ease;
}

.historical-section p:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 157, 61, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.historical-section p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 157, 61, 0.1), transparent);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.historical-section p:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .historical-section {
        padding: 3rem 0;
    }
    
    .historical-section h2 {
        font-size: 2rem;
    }
    
    .historical-section p {
        font-size: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .historical-section h2 {
        font-size: 1.8rem;
    }
    
    .historical-section p {
        padding: 1rem;
    }
}

/* Section Derniers articles */
.latest-articles {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 157, 61, 0.03) 0%, rgba(255, 255, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.latest-articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 157, 61, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 157, 61, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #009d3d, #006633);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #009d3d, transparent);
}

.latest-articles .row {
    margin: 0 -15px;
}

.latest-articles .col-md-4 {
    padding: 0 15px;
    margin-bottom: 30px;
}

.article-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 157, 61, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ff9d, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 157, 0.1), transparent);
    transform: translateY(-100%);
    transition: transform 0.6s ease;
}

.article-card:hover::after {
    transform: translateY(100%);
}

.article-card:hover {
    transform: translateY(-5px) rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15),
                0 0 20px rgba(0, 157, 61, 0.3),
                0 0 40px rgba(0, 157, 61, 0.2);
    border-color: rgba(0, 157, 61, 0.4);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-category {
    display: inline-block;
    background: rgba(0, 157, 61, 0.1);
    color: #009d3d;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.article-card:hover .article-category {
    background: #009d3d;
    color: white;
    transform: translateY(-2px);
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.article-card:hover .article-title {
    color: #009d3d;
}

.article-excerpt {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.article-card:hover .article-excerpt {
    color: #495057;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.article-card:hover .article-meta {
    color: #495057;
}

.article-date, .article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date i, .article-author i {
    color: #009d3d;
    transition: transform 0.3s ease;
}

.article-card:hover .article-date i,
.article-card:hover .article-author i {
    transform: scale(1.2);
}

.read-more {
    color: #009d3d;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(0, 157, 61, 0.1);
    border: 1px solid rgba(0, 157, 61, 0.2);
    z-index: 2;
}

.read-more i {
    transition: transform 0.3s ease;
}

.article-card:hover .read-more {
    background: #009d3d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-card:hover .read-more i {
    transform: translateX(4px);
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 20px;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.article-card:hover .read-more::before {
    transform: translateX(100%);
}

@media (max-width: 768px) {
    .article-card {
        padding: 1.2rem;
    }
    
    .read-more {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .article-image {
        height: 160px;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.see-all-btn {
    color: #009d3d;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: 1rem 2rem;
    border-radius: 30px;
    background: rgba(0, 157, 61, 0.1);
    border: 2px solid rgba(0, 157, 61, 0.2);
    z-index: 2;
    font-size: 1.2rem;
    transform: scale(1);
}

.see-all-btn i {
    transition: transform 0.4s ease;
    font-size: 1.4rem;
}

.see-all-btn:hover {
    background: #009d3d;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 157, 61, 0.3);
}

.see-all-btn:hover i {
    transform: translateX(6px) scale(1.2);
}

.see-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 30px;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.see-all-btn:hover::before {
    transform: translateX(100%);
}

.see-all-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 157, 61, 0.2) 0%, transparent 70%);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.see-all-btn:hover::after {
    opacity: 1;
}

/* Section Témoignages - Design Minimaliste */
.testimonials {
    background: #f8f9fa;
    position: relative;
    padding: 5rem 0;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 157, 61, 0.1);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    margin-right: 1rem;
}

.testimonial-avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid rgba(0, 157, 61, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar img {
    border-color: rgba(0, 157, 61, 0.2);
}

.testimonial-info h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: #6c757d;
    font-size: 0.9rem;
}

.testimonial-text {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(0, 157, 61, 0.05);
    border-bottom: 1px solid rgba(0, 157, 61, 0.05);
}

.testimonial-text p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-text {
        padding: 1rem 0;
    }
}

/* Section Services Rapides - Design Moderne */
.quick-links {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 157, 61, 0.02) 0%, rgba(255, 255, 255, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.quick-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 157, 61, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 157, 61, 0.03) 0%, transparent 50%);
    z-index: 0;
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.quick-link-card .card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 157, 61, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.quick-link-card:hover .card {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1),
                0 0 20px rgba(0, 157, 61, 0.2);
    border-color: rgba(0, 157, 61, 0.3);
    background: #009d3d;
}

.quick-link-card .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.quick-link-card:hover .card::before {
    transform: scaleX(1);
}

.quick-link-card .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateY(-100%);
    transition: transform 0.6s ease;
}

.quick-link-card:hover .card::after {
    transform: translateY(100%);
}

.quick-link-card .bi {
    font-size: 1.8rem;
    color: #009d3d;
    margin-bottom: 0.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-link-card:hover .bi {
    transform: scale(1.2) rotate(360deg);
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.quick-link-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.quick-link-card h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.quick-link-card:hover h4 {
    color: #ffffff;
}

.quick-link-card:hover h4::after {
    width: 100%;
}

.quick-link-card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffffff;
    color: #009d3d;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transform: scale(0) rotate(-180deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-link-card:hover .badge {
    transform: scale(1) rotate(0deg);
}

@media (max-width: 768px) {
    .quick-links {
        padding: 3rem 0;
    }
    
    .quick-links h2 {
        font-size: 2rem;
    }
    
    .quick-link-card .card {
        padding: 1.5rem;
    }
    
    .quick-link-card .bi {
        font-size: 2.5rem;
    }
    
    .quick-link-card h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .quick-links h2 {
        font-size: 1.8rem;
    }
    
    .quick-link-card .card {
        padding: 1.2rem;
    }
    
    .quick-link-card .bi {
        font-size: 2rem;
    }
    
    .quick-link-card h4 {
        font-size: 1.1rem;
    }
}

.quick-links h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #009d3d, #006633);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.quick-links h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #009d3d, transparent);
}

@media (max-width: 768px) {
    .quick-links h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .quick-links h2 {
        font-size: 1.8rem;
    }
}

/* Footer Style */
.main-footer {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom, #111111, #1a1a1a);
    color: #fff;
    padding-top: 40px;
    overflow: hidden;
    border-top: 4px solid #333;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.03) 0%, transparent 150px),
                      radial-gradient(circle at 80% 70%, rgba(76, 175, 80, 0.03) 0%, transparent 150px);
    opacity: 0.6;
    z-index: 0;
    animation: pulseGradient 15s infinite alternate;
}

@keyframes pulseGradient {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.footer-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 18px 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.footer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(76, 175, 80, 0.3);
}

.footer-card:hover::before {
    opacity: 1;
}

.footer-card i {
    font-size: 28px;
    color: #6c757d;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-card:hover i {
    color: #4CAF50;
    transform: scale(1.1) rotate(5deg);
}

.footer-card h4 {
    font-size: 15px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    transition: color 0.2s ease;
}

/* Section d'avantages */
.footer-advantages {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    position: relative;
}

/* Section principale du footer */
.footer-main {
    padding: 0 0 30px;
    position: relative;
    z-index: 1;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(108, 117, 125, 0.3);
    position: relative;
    transition: all 0.2s ease;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #4CAF50;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-title:hover::after {
    width: 100%;
}

/* Articles récents */
.footer-articles {
    margin-bottom: 25px;
}

.footer-article {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(108, 117, 125, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.footer-article:last-child {
    border-bottom: none;
}

.footer-article:hover {
    transform: translateX(5px);
    padding-left: 5px;
}

.footer-article h5 {
    font-size: 14px;
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.footer-article:hover h5 {
    color: #4CAF50;
}

.footer-article .article-meta {
    display: flex;
    font-size: 12px;
    color: #6c757d;
}

.footer-article .article-meta span {
    margin-right: 12px;
}

.footer-article .article-meta i {
    margin-right: 3px;
}

/* Liens */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.footer-links li {
    margin-bottom: 6px;
    position: relative;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #4CAF50;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover {
    color: #4CAF50;
    transform: translateX(5px);
}

.footer-link:hover::before {
    width: 100%;
}

.footer-link i {
    margin-right: 5px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.footer-link:hover i {
    transform: translateX(-2px);
}

/* Contact */
.footer-contact {
    margin-bottom: 25px;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.contact-info:hover {
    transform: translateX(5px);
}

.contact-info:last-child {
    margin-bottom: 0;
}

.contact-info i {
    width: 20px;
    font-size: 15px;
    color: #6c757d;
    margin-right: 10px;
    margin-top: 3px;
    transition: all 0.2s ease;
}

.contact-info:hover i {
    color: #4CAF50;
}

.contact-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
}

/* Social links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 8px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4CAF50;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    z-index: -1;
}

.social-link:hover {
    color: #fff;
    transform: translateY(-3px);
}

.social-link:hover::before {
    transform: scale(1);
}

/* Section des moyens de paiement */
.footer-payments {
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.payment-method {
    margin: 0 8px;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-method:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.payment-method img {
    height: 25px;
    width: auto;
}

/* Copyright */
.footer-copyright {
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.copyright-text {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
}

.copyright-links a {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.copyright-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #4CAF50;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.copyright-links a:hover {
    color: #4CAF50;
}

.copyright-links a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .main-footer {
        padding-top: 30px;
    }
    
    .footer-advantages {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .footer-card {
        padding: 15px 12px;
        margin-bottom: 15px;
    }
    
    .footer-card i {
        font-size: 24px;
    }
    
    .footer-title {
        margin-bottom: 12px;
    }
    
    .footer-main {
        padding-bottom: 20px;
    }
    
    .footer-links, .footer-articles, .footer-contact {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .footer-card {
        padding: 12px 10px;
    }
    
    .footer-card i {
        font-size: 22px;
    }
    
    .footer-card h4 {
        font-size: 14px;
    }
    
    .payment-method img {
        height: 20px;
    }
    
    .footer-copyright {
        padding: 12px 0;
        font-size: 11px;
    }
}

/* Styles pour corriger les problèmes d'alignement dans le header */
.header-spacer {
    display: none; /* Masquer car on utilise padding-top sur body */
}

.header-nav {
    z-index: 1030;
    transition: all 0.3s ease;
}

/* Assurer que les éléments de la navbar s'alignent correctement */
.navbar-nav {
    align-items: center;
}

/* Optimiser l'affichage sur mobile */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
    
    .search-box {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .action-buttons {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
}

/* Ajuster la top-bar sur mobile */
@media (max-width: 767.98px) {
    .top-bar {
        display: none; /* Masquer sur les petits écrans pour gagner de l'espace */
    }
    
    body {
        padding-top: 60px; /* Quand la top-bar est masquée */
    }
    
    .header-nav {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }
}

/* Correction de l'alignement header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Top Bar */
.top-bar {
    background-color: #f5f5f5;
    color: #333;
    font-size: 0.8rem;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar .ad-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.top-bar .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.top-bar .social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Navbar */
.header-nav {
    background-color: #fff;
    padding: 10px 0;
    box-shadow: none;
}

.navbar-brand img {
    max-height: 50px;
    max-width: 180px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.8rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Espacement du contenu */
body {
    padding-top: 118px; /* Ajuster selon la hauteur totale du header */
}

/* Styles responsifs */
@media (max-width: 991.98px) {
    body {
        padding-top: 100px;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        margin-top: 10px;
        border-radius: 8px;
    }
}

/* =========================================
   3. Header
   ========================================= */

/* Structure du header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Top Bar */
.site-topbar {
    background-color: #f5f5f5;
    color: #333;
    font-size: 0.8rem;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 1032;
}

.site-topbar .ad-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: slideText 15s linear infinite;
}

@keyframes slideText {
    0% { transform: translateX(5%); }
    100% { transform: translateX(-50%); }
}

.site-topbar a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-topbar a:hover {
    color: var(--primary-color);
}

.site-topbar .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.site-topbar .social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Navigation principale */
.site-navbar {
    background-color: #fff;
    padding: 10px 0;
    position: relative;
    z-index: 1031;
}

.site-navbar .navbar-brand img {
    max-height: 50px;
    max-width: 180px;
    transition: all 0.3s ease;
}

.site-navbar .navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.8rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.site-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.site-navbar .navbar-nav .nav-link:hover::after,
.site-navbar .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.site-navbar .navbar-nav .nav-link:hover,
.site-navbar .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Espacement du contenu */
body {
    padding-top: 126px; /* Ajuster en fonction de la hauteur totale du header (topbar + navbar) */
}

/* Media queries pour le header */
@media (max-width: 991.98px) {
    body {
        padding-top: 106px; /* Ajuster pour les écrans plus petits */
    }
    
    .site-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        margin-top: 10px;
        border-radius: 8px;
        z-index: 1033;
    }
}

@media (max-width: 767.98px) {
    .site-topbar {
        display: none;
    }
    
    body {
        padding-top: 70px; /* Quand la topbar est masquée */
    }
    
    .site-navbar {
        padding: 0.7rem 0;
    }
}

/* NOUVEAU FOOTER - STYLES SIMPLES */
#simple-footer {
    background-color: #212529;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

/* Container principal */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section logo et marque */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-brand p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Réseaux sociaux */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #4CAF50;
    transform: translateY(-3px);
}

/* Liens */
.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #4CAF50;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #4CAF50;
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

/* Contact */
.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 10px;
    color: #4CAF50;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 10px 15px;
    color: #fff;
    border-radius: 4px 0 0 4px;
}

.newsletter-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #3d8b40;
}

/* Copyright */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #4CAF50;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 4px;
    }
} 