/**
 * Modern Responsive CSS - Web-Créativité Theme 2025
 * Mobile-First Approach
 */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Colors */
    --primary-color: #2980b9;
    --secondary-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white-color: #ffffff;
    --success-color: #2ecc71;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-body: #ffffff;
    --bg-section: #ecf0f1;
    --bg-card: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);

    /* Fluid Typography - Mobile First */
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
    --font-size-xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.5rem);
    --font-size-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);

    /* Spacing - Fluid */
    --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1rem + 2.5vw, 3rem);
    --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --space-2xl: clamp(3rem, 2rem + 5vw, 6rem);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   MODERN ANIMATIONS
   =================================== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Smooth animations for those who want them */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        animation: fadeIn var(--transition-slow) ease-in;
    }

    .slide-up {
        animation: slideUp var(--transition-base) ease-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

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

/* ===================================
   BLOG COMPONENTS - RESPONSIVE
   =================================== */

/* WordPress Admin Bar Fix */
body.admin-bar #main-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar #main-header {
        top: 46px !important;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar #main-header {
        top: 0 !important;
    }
}

/* Header Desktop Fix */
@media (min-width: 769px) {
    #main-header {
        background: var(--white-color);
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    #main-header .container {
        padding: 0 2rem;
    }

    #main-header .header-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 80px;
        gap: 2rem;
    }

    #main-header .logo,
    #main-header .site-logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    #main-header .site-logo img {
        max-height: 60px;
        width: auto;
        vertical-align: middle;
    }

    #main-header .main-navigation {
        flex: 1 1 auto;
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #main-header nav ul {
        display: flex !important;
        flex-direction: row !important;
        list-style: none;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    #main-header nav ul li {
        margin: 0;
    }

    #main-header nav ul li a {
        padding: 1rem;
        color: var(--dark-color);
        text-decoration: none;
        font-weight: 600;
        transition: color var(--transition-base);
        display: block;
        border-bottom: none !important;
    }

    #main-header nav ul li a:hover {
        color: var(--primary-color);
    }

    #main-header nav ul li .btn {
        margin-left: 1rem;
    }

    /* Header CTA Button */
    #main-header .btn-header {
        margin-left: 1.5rem;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Mobile Header Button */
@media (max-width: 768px) {
    #main-header .btn-header {
        display: none;
    }

    #main-header .main-navigation .btn-header {
        display: block;
        margin: 1rem 2rem;
        text-align: center;
    }
}

/* Footer Widgets Grid */
.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets .widget {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.footer-widgets .widget-title {
    color: var(--white-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.footer-widgets .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets .widget ul li {
    margin-bottom: var(--space-xs);
}

.footer-widgets .widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-widgets .widget ul li a:hover {
    color: var(--white-color);
}

/* Footer widgets responsive - 2 columns on tablet */
@media (min-width: 600px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer widgets responsive - 3 columns on desktop */
@media (min-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: var(--space-lg) 0;
}

.testimonials-track {
    display: flex;
    gap: var(--space-lg);
    transition: transform var(--transition-slow);
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.testimonial-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-rating {
    margin-bottom: var(--space-sm);
}

.testimonial-rating .star {
    color: #ffc107;
    font-size: 1.5rem;
}

.testimonial-quote {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: var(--space-md);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.testimonial-position {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.testimonial-source {
    margin-top: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.testimonial-source img {
    width: 20px;
    height: 20px;
}

/* Carousel controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.carousel-btn {
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: var(--light-color);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: scale(1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-color);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: var(--space-sm) 0;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: var(--text-color);
}

/* Reading Time */
.reading-time {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Author Bio */
.author-bio {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-section);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.author-bio-wrapper {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-info h3 {
    margin: 0 0 var(--space-xs) 0;
    color: var(--text-color);
    font-size: var(--font-size-lg);
}

.author-info h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.author-role {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-muted);
    font-style: italic;
}

.author-description {
    line-height: 1.8;
    color: var(--text-color);
}

.author-links {
    margin-top: var(--space-sm);
}

/* Social Share Buttons */
.social-share-buttons {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background: var(--bg-section);
    border-radius: var(--radius-md);
    text-align: center;
}

.social-share-buttons h4 {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-color);
    font-size: var(--font-size-base);
}

.share-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
    /* Touch-friendly minimum size */
    min-height: 44px;
    min-width: 44px;
}

.share-button:hover,
.share-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.share-button:active {
    transform: translateY(0);
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-email { background: #7f8c8d; }

/* Related Posts */
.related-posts {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.related-posts h3 {
    margin: 0 0 var(--space-lg) 0;
    color: var(--text-color);
    font-size: var(--font-size-xl);
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: var(--space-lg);
}

.related-post-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    background: var(--bg-card);
}

.related-post-item:hover,
.related-post-item:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.related-post-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.related-post-no-thumb {
    display: block;
    width: 100%;
    height: 200px;
    background: var(--bg-section) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23cccccc"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>') center/48px no-repeat;
}

.related-post-content {
    padding: var(--space-md);
}

.related-post-content h4 {
    margin: 0 0 var(--space-xs) 0;
    font-size: var(--font-size-base);
}

.related-post-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

.related-post-content h4 a:hover {
    color: var(--primary-color);
}

.related-post-meta {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    margin-bottom: var(--space-xs);
}

.related-post-excerpt {
    margin: 0;
    color: var(--text-color);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* Entry Meta */
.entry-meta {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}

.entry-meta .cat-sep {
    line-height: 1;
    align-self: center;
}

.entry-meta a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

.entry-meta a:hover {
    color: var(--primary-color);
}

/* Archive Posts */
.archive-post {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    gap: var(--space-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.archive-post:hover,
.archive-post:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.archive-post-thumbnail {
    flex: 0 0 300px;
}

.archive-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-post-content {
    flex: 1;
    padding: var(--space-lg);
}

.archive-post-title {
    margin: 0 0 var(--space-xs) 0;
    font-size: var(--font-size-xl);
}

.archive-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

.archive-post-title a:hover {
    color: var(--primary-color);
}

.archive-post-excerpt {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    /* Touch-friendly */
    min-height: 44px;
    line-height: 1.5;
}

.read-more:hover,
.read-more:focus-visible {
    background: var(--secondary-color);
    transform: translateY(-2px);
}


.widget {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.widget-title {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-color);
    font-size: var(--font-size-lg);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--space-xs);
}

/* ===================================
   MOBILE FIRST BREAKPOINTS
   =================================== */

/* Base styles are mobile (< 480px) */

/* Small devices (phones, 480px and up) */
@media (min-width: 480px) {
    .share-buttons {
        gap: var(--space-md);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .author-bio-wrapper {
        flex-direction: row;
    }

    .related-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .archive-post {
        flex-direction: row;
    }

    .archive-post-thumbnail {
        flex: 0 0 300px;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
}

/* Extra large devices (large desktops, 1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Ultra large devices (4K, 1920px and up) */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
}

/* ===================================
   MOBILE OVERRIDES (< 768px)
   =================================== */
@media (max-width: 767px) {
    .author-bio-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto;
    }

    .archive-post {
        flex-direction: column;
    }

    .archive-post-thumbnail {
        flex: none;
        height: 200px;
    }

    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .share-button {
        width: 100%;
        justify-content: center;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    /* Single post adjustments */
    .single-post {
        padding: 5rem 0 3rem 0 !important;
    }

    article.post {
        padding: 1.5rem !important;
    }
}

/* Extra small devices (< 480px) */
@media (max-width: 479px) {
    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .social-share-buttons h4 {
        font-size: var(--font-size-sm);
    }

    .author-info h3 {
        font-size: var(--font-size-base);
    }

    .single-post {
        padding: 5rem 0 3rem 0 !important;
    }

    article.post {
        padding: 1.5rem !important;
    }

    .entry-title {
        font-size: 1.75rem !important;
    }

    .entry-content {
        font-size: 0.95rem;
    }
}

/* Mobile blog improvements */
@media (max-width: 768px) {
    .single-post {
        padding: 5rem 0 3rem 0 !important;
    }

    .single-post .container {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    article.post {
        padding: 1.5rem !important;
    }

    .entry-header {
        margin-bottom: 1.5rem !important;
    }

    .entry-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    .entry-meta {
        font-size: 0.875rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .entry-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .entry-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .entry-content img {
        max-width: 100%;
        height: auto;
    }

    .entry-footer {
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
    }

    .author-bio {
        padding: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .author-bio-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto 1rem !important;
    }

    .related-posts {
        padding: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .related-posts h3 {
        font-size: 1.5rem !important;
    }

    .related-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .social-share-buttons {
        padding: 1.5rem !important;
        margin: 1.5rem 0 !important;
    }

    .share-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .share-button {
        width: 100%;
    }
}

/* Tablet blog improvements */
@media (min-width: 769px) and (max-width: 1024px) {
    .single-post .container {
        max-width: 720px !important;
    }

    article.post {
        padding: 2rem !important;
    }

    .entry-title {
        font-size: 2rem !important;
    }
}

/* ===================================
   ACCESSIBILITY & TOUCH
   =================================== */

/* Ensure interactive controls are touch-friendly (44x44px minimum) */
/* Excludes inline text links (<a>) to avoid breaking flex alignment in metadata/nav */
button, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
}

/* Touch-friendly only for nav, button-style, and standalone links */
.nav-menu a,
.share-button,
.wp-block-button__link,
.btn {
    min-height: 44px;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 0 0 2px currentColor;
    }
}

/* ===================================
   FOOTER WIDGETS GRID
   =================================== */

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget-column {
    min-width: 0;
}

.footer-widgets .widget {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: var(--space-md);
}

.footer-widgets .widget-title {
    color: var(--white-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets ul li {
    padding: var(--space-xs) 0;
}

.footer-widgets ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-widgets ul li a:hover {
    color: var(--white-color);
    padding-left: var(--space-xs);
}

.footer-widgets p,
.footer-widgets div {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Responsive footer widgets */
@media (min-width: 600px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    flex: 1;
    text-align: center;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   TESTIMONIALS CAROUSEL - MODERN
   =================================== */

/* Section testimonials */
#testimonials {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--dark-color);
    padding: var(--space-2xl) 0;
    overflow-x: hidden;
    width: 100%;
}

#testimonials h2 {
    text-align: center;
    color: var(--dark-color);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-md);
}

#testimonials h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: var(--space-lg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--space-sm) 0;
}

.testimonial-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 var(--space-sm);
    box-sizing: border-box;
}

.testimonial-item {
    background: var(--white-color);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: auto;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Guillemet décoratif moderne */
.testimonial-item::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.12;
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-item:hover {
    box-shadow: 0 15px 50px rgba(41, 128, 185, 0.15);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

/* Avatar si présent */
.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(41, 128, 185, 0.2);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rating stars */
.testimonial-rating {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    letter-spacing: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.testimonial-rating .star {
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

/* Quote text */
.testimonial-text {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-style: italic;
    color: #444;
    margin-bottom: var(--space-md);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* Author info */
.testimonial-author {
    font-weight: 700;
    color: #2980b9;
    margin-bottom: var(--space-xs);
    font-size: 1.15rem;
    margin-top: var(--space-md);
}

.testimonial-position {
    font-size: var(--font-size-sm);
    color: #7f8c8d;
    font-weight: 500;
}

/* Carousel Controls - Modern Design */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.carousel-btn {
    background: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(41, 128, 185, 0.15);
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(41, 128, 185, 0.3);
}

.carousel-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--text-muted);
    color: var(--text-muted);
    box-shadow: none;
}

/* Dots navigation */
.carousel-dots {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(41, 128, 185, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(41, 128, 185, 0.5);
    transform: scale(1.3);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: var(--radius-full);
}

/* Responsive Design */

/* Très petits écrans (< 380px) */
@media (max-width: 379px) {
    #testimonials {
        padding: var(--space-lg) 0;
        overflow-x: hidden;
    }

    #testimonials h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    #testimonials .container {
        padding: 0;
        overflow-x: hidden;
    }

    .testimonials-carousel {
        padding: var(--space-sm) 0;
        overflow: visible;
        width: 100%;
        max-width: 100vw;
    }

    .testimonial-slide {
        padding: 0;
        min-width: 100%;
        max-width: 100%;
    }

    .testimonial-item {
        padding: 0.75rem;
        margin: 0 auto;
        max-width: calc(100vw - 1rem);
        width: auto;
        box-sizing: border-box;
        overflow: visible;
    }

    .testimonial-item::before {
        font-size: 2rem;
        opacity: 0.08;
        top: 5px;
    }

    .testimonial-text {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
        white-space: normal !important;
        word-break: break-word;
        hyphens: auto;
    }

    .testimonial-rating {
        font-size: 0.9rem;
        letter-spacing: 0;
        margin-bottom: 0.5rem;
        gap: 1px;
    }

    .testimonial-author {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .testimonial-position {
        font-size: 0.75rem;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .carousel-controls {
        gap: 0.75rem;
        margin-top: 1rem;
    }
}

/* Mobile (< 640px) - 1 slide à la fois */
@media (max-width: 639px) {
    #testimonials {
        padding: var(--space-xl) 0;
        overflow-x: hidden;
    }

    #testimonials h2 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        margin-bottom: var(--space-lg);
    }

    #testimonials .container {
        padding: 0;
        overflow-x: hidden;
    }

    .testimonials-carousel {
        padding: var(--space-md) 0;
        overflow: visible;
        width: 100%;
        max-width: 100vw;
    }

    .testimonial-slide {
        min-width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .testimonial-item {
        padding: 1rem;
        min-height: auto;
        max-width: calc(100vw - 2rem);
        width: auto;
        margin: 0 auto;
        overflow: visible;
    }

    .testimonial-item::before {
        font-size: 2.75rem;
        top: 5px;
        opacity: 0.1;
    }

    .testimonial-text {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        line-height: 1.6;
        white-space: normal !important;
        word-break: break-word;
        hyphens: auto;
    }

    .testimonial-avatar {
        width: 65px;
        height: 65px;
        border-width: 3px;
        margin-bottom: 0.75rem;
    }

    .testimonial-rating {
        font-size: 1rem;
        letter-spacing: 1px;
        margin-bottom: 0.75rem;
        gap: 1px;
    }

    .testimonial-author {
        font-size: 0.95rem;
        margin-top: 0.75rem;
    }

    .testimonial-position {
        font-size: 0.8rem;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .carousel-controls {
        gap: 1rem;
        margin-top: var(--space-lg);
    }

    .carousel-dots {
        gap: 0.5rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dot.active {
        width: 24px;
    }
}

/* Tablet (640px - 1023px) - 2 slides */
@media (min-width: 640px) and (max-width: 1023px) {
    .testimonial-slide {
        min-width: 50%;
        max-width: 50%;
        padding: 0 calc(var(--space-sm) / 2);
    }

    .testimonial-item {
        padding: var(--space-lg);
        min-height: 320px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .testimonial-text {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .testimonial-author {
        font-size: 1.05rem;
    }
}

/* Desktop (>= 1024px) - 3 slides */
@media (min-width: 1024px) {
    .testimonial-slide {
        min-width: 33.333%;
        max-width: 33.333%;
        padding: 0 calc(var(--space-sm));
    }

    .testimonial-item {
        min-height: 360px;
        padding: var(--space-xl);
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .testimonial-text {
        font-size: 1rem;
        line-height: 1.75;
    }
}

