/*
Theme Name: PRO'MOTORS 59
Theme URI: https://promotors59.fr
Author: Votre Nom
Author URI: https://votresite.com
Description: Thème personnalisé pour PRO'MOTORS 59 - Concession automobile à Quesnoy-sur-Deûle
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: promotors59
Tags: automobile, concession, voiture, occasion, responsive, moderne

Ce thème est conçu pour PRO'MOTORS 59, spécialisé dans la vente de véhicules d'occasion et services associés.
*/

/* Variables CSS */
:root {
    --primary-color: #54C37E;
    --secondary-color: #1a1a1a;
    --text-color: #ffffff;
    --dark-bg: #121212;
    --light-bg: #1e1e1e;
    --success: #54C37E;
    --error: #f44336;
    --warning: #ff9800;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: rgba(0, 0, 0, 0.9);
    position: relative;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Header Inner */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.site-branding {
    flex: 0 0 auto;
    max-width: 300px; /* Taille augmentée pour un meilleur impact visuel */
}

.site-branding a {
    display: block;
    line-height: 0; /* Pour éviter l'espace sous l'image */
}

.site-branding img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
    flex: 1 1 auto;
    text-align: center;
    margin: 0 20px;
}
/* Bouton Contact */
.header-cta {
    flex: 0 0 auto;
    margin-left: auto; /* Pousse le bouton complètement à droite */
}

/* Navigation */
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
}

/* Galerie Véhicule */
.vehicule-single {
    padding: 40px 0;
}

.entry-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.entry-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Grille de galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    aspect-ratio: 4/3;
    background-color: var(--light-bg);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    opacity: 0.8;
}

/* Détails du véhicule */
.vehicle-details {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vehicle-details h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
}

.detail-value {
    color: var(--text-color);
    opacity: 0.9;
}

/* Liste des équipements */
.vehicle-equipment {
    margin: 40px 0;
}

.vehicle-equipment h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    list-style: none;
}

.equipment-list li {
    padding: 10px 15px 10px 35px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.equipment-list li:hover {
    background-color: rgba(0, 255, 136, 0.1);
    transform: translateX(5px);
}

.equipment-list li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 12px;
    font-weight: bold;
}

/* Description */
.vehicle-description {
    margin: 40px 0;
    line-height: 1.8;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vehicle-description h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.vehicle-description p {
    margin-bottom: 15px;
    opacity: 0.9;
}

/* Galerie en admin */
.vehicle-gallery-container {
    margin: 25px 0;
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
}

.vehicle-gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.vehicle-gallery-images .image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vehicle-gallery-images .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-gallery-images .delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.vehicle-gallery-images .image:hover .delete {
    opacity: 1;
}

.upload-gallery-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: var(--transition);
    font-size: 14px;
}

.upload-gallery-btn:hover {
    background: #00e67a;
    transform: translateY(-2px);
}

.upload-gallery-btn:active {
    transform: translateY(0);
}

/* Fancybox personnalisé */
.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, 0.95);
    --fancybox-thumbs-width: 100px;
    --fancybox-thumbs-ratio: 1;
}

.fancybox__toolbar {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
}

.fancybox__thumbs {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
}

.fancybox__button--zoom,
.fancybox__button--slideshow,
.fancybox__button--fullscreen,
.fancybox__button--thumbs {
    display: none;
}

/* Styles pour les écrans mobiles */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-list {
        grid-template-columns: 1fr;
    }
    
    .vehicle-gallery-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 2rem;
    }
    
    .vehicle-details,
    .vehicle-description {
        padding: 20px 15px;
    }
    
    .vehicle-gallery-images {
        grid-template-columns: 1fr;
    }
}
/* Styles pour les boutons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-news {
    background: #54C37E;
    color: #fff;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-news:hover {
    background: #3da866;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(84, 195, 126, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Styles pour les sections */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    padding: 4rem 0 2rem;
    color: #aaa;
}

/* Conteneur des widgets du footer */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Style de chaque colonne */
.footer-widget {
    padding: 0 1rem;
}

.footer-widget:first-child {
    padding-left: 0;
}

.footer-widget:last-child {
    padding-right: 0;
}

.footer-widget h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Style des menus du footer */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.footer-menu a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Style des informations de contact */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

/* Animation de rebond pour les icônes */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.contact-info i {
    color: var(--primary-color);
    background-color: rgba(84, 195, 126, 0.1);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

/* Effet de vague au survol */
.contact-info i::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(84, 195, 126, 0.3) 0%, rgba(84, 195, 126, 0) 70%);
    opacity: 0;
    transition: all 0.6s ease;
    border-radius: 50%;
}

.contact-info li:hover i::after {
    transform: scale(2);
    opacity: 1;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-info li:hover i {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(360deg);
    animation: bounce 1s ease;
    box-shadow: 0 6px 12px rgba(84, 195, 126, 0.3);
}

/* Style des icônes sociales */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Style des horaires */
.opening-hours {
    margin-top: 1.5rem;
}

.opening-hours h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.opening-hours h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.opening-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opening-hours li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.opening-hours .day {
    color: #ddd;
    margin-right: 10px;
}

.opening-hours .hours {
    color: #aaa;
}

.contact-section {
    margin-bottom: 1.5rem;
}

.contact-section h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Animation de pulsation */
@keyframes pulse {
    0% {
        transform: rotate(15deg) scale(1);
        box-shadow: 0 10px 30px rgba(84, 195, 126, 0.3);
    }
    100% {
        transform: rotate(15deg) scale(1.05);
        box-shadow: 0 15px 40px rgba(84, 195, 126, 0.5);
    }
}

/* Styles pour le badge d'expérience */
.experience-badge {
    position: absolute;
    top: 4rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #4a934a);
    color: white;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(84, 195, 126, 0.3);
    transform: rotate(15deg);
    animation: pulse 2s infinite alternate;
    transition: all 0.3s ease;
}

.experience-badge:hover {
    transform: rotate(0deg) scale(1.1);
    animation: none;
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-align: center;
    max-width: 80%;
    line-height: 1.2;
}

/* Responsive pour le badge d'expérience */
@media (max-width: 992px) {
    .experience-badge {
        width: 120px;
        height: 120px;
        top: 2rem;
        right: 1rem;
    }
    
    .experience-badge .years {
        font-size: 2rem;
    }
    
    .experience-badge .text {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .experience-badge {
        position: relative;
        top: 0;
        right: 0;
        margin: 0 auto 2rem;
        transform: none;
        animation: none;
        width: 140px;
        height: 140px;
    }
    
    .experience-badge:hover {
        transform: scale(1.05);
    }
}

/* Section Pourquoi nous choisir */
.why-choose-us {
    position: relative;
    background-color: #000000;
    color: #fff;
    padding: 6rem 0;
    overflow: hidden;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.why-choose-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    color: #333;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(84, 195, 126, 0.15);
}

.why-choose-icon {
    width: 80px;
    height: 80px;
    background: rgba(84, 195, 126, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.why-choose-card:hover .why-choose-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.why-choose-icon i {
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.why-choose-card:hover .why-choose-icon i {
    color: #fff;
}

.why-choose-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 0.8rem;
}

.why-choose-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.why-choose-card:hover h3::after {
    width: 80px;
}

.why-choose-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Badge d'expérience */
.experience-badge {
    position: absolute;
    top: 4rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #4a934a);
    color: white;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(84, 195, 126, 0.3);
    transform: rotate(15deg);
    animation: pulse 2s infinite alternate;
    transition: all 0.3s ease;
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-align: center;
    max-width: 80%;
    line-height: 1.2;
}

.experience-badge .decorative-dot {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.experience-badge .dot-1 {
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
}

.experience-badge .dot-2 {
    bottom: 15px;
    left: 15px;
    width: 15px;
    height: 15px;
}

/* Animation de pulsation */
@keyframes pulse {
    0% {
        transform: rotate(15deg) scale(1);
        box-shadow: 0 10px 30px rgba(84, 195, 126, 0.3);
    }
    100% {
        transform: rotate(15deg) scale(1.05);
        box-shadow: 0 15px 40px rgba(84, 195, 126, 0.5);
    }
}

/* Styles pour le bouton */
.why-choose-us .btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Boutons du header */
.header-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-news, .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 44px;
    padding: 0 24px;
    border: none;
    border-radius: 22px; /* Plus arrondi */
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.btn-news {
    background: #54C37E;
    color: #000 !important;
}

.btn-primary {
    background: #54C37E;
    color: #000 !important;
}

.btn-news:hover, .btn-primary:hover {
    background: #3da866;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1199px) {
    .why-choose-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .experience-badge {
        width: 120px;
        height: 120px;
    }
    
    .experience-badge .years {
        font-size: 2rem;
    }
    
    .experience-badge .text {
        font-size: 0.8rem;
    }
}

@media (max-width: 991px) {
    .why-choose-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .why-choose-card {
        padding: 2rem 1.5rem;
    }
    
    .experience-badge {
        top: 2rem;
        right: 1rem;
        width: 100px;
        height: 100px;
    }
    
    .experience-badge .years {
        font-size: 1.8rem;
    }
    
    .experience-badge .text {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .why-choose-us {
        padding: 4rem 0;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .experience-badge {
        position: relative;
        top: 0;
        right: 0;
        margin: 0 auto 2rem;
        transform: none;
        animation: none;
        width: 120px;
        height: 120px;
    }
    
    .experience-badge:hover {
        transform: scale(1.05);
    }
    
    .why-choose-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .why-choose-card {
        padding: 1.5rem 1rem;
    }
    
    .why-choose-icon {
        width: 70px;
        height: 70px;
    }
    
    .why-choose-icon i {
        font-size: 1.8rem;
    }
    
    .why-choose-card h3 {
        font-size: 1.3rem;
    }
    
    .why-choose-card p {
        font-size: 0.95rem;
    }
}

/* Section Avis Clients */
.testimonials {
    position: relative;
    background-color: #f8f9fa;
    padding: 4rem 1rem;
    overflow: hidden;
}

.testimonials-slider {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding: 0 80px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin: 0 0 1rem 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Limite à 5 lignes maximum */
    -webkit-box-orient: vertical;
    line-clamp: 5; /* Version standard */
    text-overflow: ellipsis;
    max-height: 8em; /* Hauteur maximale en fonction de la taille de police et du line-height */
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    overflow: hidden;
}

.author-avatar i {
    font-size: 1.5rem;
    color: #666;
}

.author-info h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.author-info p {
    margin: 0.2rem 0 0;
    color: #888;
    font-size: 0.9rem;
}

/* Contrôles de navigation */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.testimonial-nav.prev {
    left: 0;
}

.testimonial-nav.next {
    right: 0;
}

/* Indicateurs de pagination */
.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #e0e0e0;
    margin: 0 5px;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Animation pour le défilement */
@keyframes fadeIn {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 991px) {
    .testimonial-content {
        padding: 2rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .testimonials {
        padding: 4rem 0;
    }
    
    .testimonial-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .testimonial-content {
        padding: 1.8rem 1.5rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .author-avatar i {
        font-size: 1.3rem;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .testimonial-rating {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .testimonial-dots .dot {
        width: 10px;
        height: 10px;
    }
}

/* Section Services */
.services-section {
    padding: 5rem 0;
    background-color: #000000;
    color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.service-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    cursor: default;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-title {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-description {
    color: #bbbbbb;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}


/* Section Blog */
.blog-posts {
    margin: 2rem 0;
}

.service-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: rgba(84, 195, 126, 0.1);
    border-color: rgba(84, 195, 126, 0.3);
}

.service-card:hover .service-icon {
    color: #54C37E !important;
    transform: scale(1.1);
}

.service-card:hover .service-title {
    color: #54C37E;
}

.btn-service {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: #fff;
    color: var(--primary-color) !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.service-card:hover .btn-service {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.btn-service:hover {
    background: var(--secondary-color);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* Pages légales */
.legal-page-wrapper {
    padding: 4rem 0;
    background-color: #f9f9f9;
    min-height: calc(100vh - 400px); /* Hauteur minimale pour pousser le footer vers le bas */
}

.legal-content {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.legal-title {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    font-size: 2.2rem;
}

.legal-content h2 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
}

.legal-content p, 
.legal-content ul, 
.legal-content ol {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: #444;
}

.legal-content ul, 
.legal-content ol {
    padding-left: 2rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-last-update {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-style: italic;
    color: #777;
    font-size: 0.9rem;
}

/* Barre du bas du footer */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: #777;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.separator {
    color: #555;
}

/* Style responsive */
@media (max-width: 991px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widget:last-child {
        grid-column: 1 / -1;
        padding: 2rem 0 0;
    }
}

@media (max-width: 767px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-widget {
        padding: 0 !important;
    }
    
    .footer-widget:not(:last-child) {
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
}

/* Utilitaires */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
/* Styles pour les articles individuels */
.single-post-article {
    max-width: 100%;
    margin: 0;
    padding: 1rem;
    background: #fff;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.entry-content {
    max-width: 100% !important;
    overflow: visible !important;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 1.5em 0 0.8em;
    line-height: 1.4;
}

.entry-content a {
    color: #e30613;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #b3050f;
}

.entry-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.3;
}

.entry-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1rem;
}

.entry-meta i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

.entry-content {
    line-height: 1.8;
    margin: 2rem 0;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.tags-links {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.tags-links a {
    display: inline-block;
    background: rgba(84, 195, 126, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.tags-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Styles pour la navigation entre les articles */
.nav-links {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.3rem;
}

.nav-title {
    display: block;
    font-weight: 500;
    color: var(--primary-color);
}

/* Styles pour les commentaires */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    margin-right: 1rem;
}

.comment-metadata {
    font-size: 0.8rem;
    color: #aaa;
}

.comment-content {
    line-height: 1.6;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.comment-respond {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.comment-form-comment textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.form-submit .submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.form-submit .submit:hover {
    background: #3a8a5c;
    transform: translateY(-2px);
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
