/* ============================================
   SERVICES GRID SECTION - HOVER TO REVEAL
   ============================================ */

/* Section Container */
.services-grid-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.services-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(128, 49, 1, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(128, 49, 1, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Section Heading */
.services-grid-section .section-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

/* .services-grid-section .sub-heading {
    color: #803101;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
} */

.services-grid-section h2 {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
}

.services-grid-section .section-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Grid Layout - 3 COLONNES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

/* Service Card - ÉTAT INITIAL GRIS */
.service-card {
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid #d0d0d0;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    cursor: pointer;
}

/* Top Border Animation */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #803101, #b54708);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* HOVER - Card devient blanche et s'élève */
.service-card:hover {
    background: #ffffff;
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(128, 49, 1, 0.15);
    border-color: rgba(128, 49, 1, 0.2);
    min-height: 500px;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Service Icon - GRIS par défaut */
.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #999999, #b8b8b8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-icon i {
    font-size: 32px;
    color: #ffffff;
    transition: transform 0.5s ease;
}

/* HOVER - Icône devient colorée et tourne */
.service-card:hover .service-icon {
    background: linear-gradient(135deg, #803101, #b54708);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(128, 49, 1, 0.3);
}

.service-card:hover .service-icon i {
    transform: scale(1.2);
}

/* Service Title */
.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.5s ease;
}

.service-card:hover h3 {
    color: #803101;
}

/* Service Subtitle */
.service-subtitle {
    font-size: 14px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: block;
    transition: color 0.5s ease;
}

.service-card:hover .service-subtitle {
    color: #803101;
}

/* Service Description - VISIBLE tout le temps mais grisée */
.service-description {
    font-size: 16px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: color 0.5s ease;
}

.service-card:hover .service-description {
    color: #666;
}

/* Service Features List - CACHÉE par défaut */
.service-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HOVER - Features apparaissent */
.service-card:hover .service-features {
    max-height: 400px;
    opacity: 1;
}

.service-features li {
    font-size: 15px;
    color: #444;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    transform: translateX(-10px);
    opacity: 0;
}

.service-card:hover .service-features li {
    transform: translateX(0);
    opacity: 1;
}

.service-card:hover .service-features li:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:hover .service-features li:nth-child(2) {
    transition-delay: 0.15s;
}

.service-card:hover .service-features li:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card:hover .service-features li:nth-child(4) {
    transition-delay: 0.25s;
}

.service-card:hover .service-features li:nth-child(5) {
    transition-delay: 0.3s;
}

.service-card:hover .service-features li:nth-child(6) {
    transition-delay: 0.35s;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li i {
    color: #803101;
    margin-right: 12px;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Service Link - CACHÉ par défaut */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #803101;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

/* HOVER - Link apparaît */
.service-card:hover .service-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.service-link i {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.service-link:hover {
    color: #b54708;
    gap: 12px;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Entry Animations */
.service-card {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Medium Screens (768px to 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid-section h2 {
        font-size: 36px;
    }
}

/* Tablets and Small Screens (below 768px) */
@media (max-width: 767px) {
    .services-grid-section {
        padding: 60px 0;
    }

    .services-grid-section h2 {
        font-size: 28px;
    }

    .services-grid-section .section-description {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .service-card {
        padding: 30px 20px;
        min-height: 240px;
    }

    .service-card:hover {
        min-height: 450px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 28px;
    }

    .service-description {
        font-size: 15px;
    }

    .service-features li {
        font-size: 14px;
        padding: 8px 0;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 479px) {
    .services-grid-section {
        padding: 40px 0;
    }

    .services-grid-section h2 {
        font-size: 24px;
    }

    .service-card {
        padding: 25px 15px;
        min-height: 220px;
    }

    .service-card:hover {
        min-height: 420px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-icon {
        width: 55px;
        height: 55px;
    }

    .service-icon i {
        font-size: 24px;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus States */
.service-card:focus-within {
    outline: 2px solid #803101;
    outline-offset: 4px;
}

.service-link:focus {
    outline: 2px solid #803101;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Styles pour la section À propos optimisée */
.value-propositions {
    margin: 20px 0 30px;
}

.value-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #803101;
}

.value-item h4 {
    color: #803101;
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-item h4 i {
    font-size: 1.2rem;
}

.value-item p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Amélioration des statistiques */
.site-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.site-stats p {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.stat-date {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #803101;
    margin-top: 5px;
}


/* Section Services Détaillés - Version Simple et Professionnelle */
.detailed-services-section {
    padding: 80px 0;
    background: #fafafa;
}

/* .detailed-services-section .sub-heading {
    color: #803101;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
} */

.detailed-services-section h2 {
    color: #222;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Grille des services */
.detailed-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Carte de pôle */
.service-pole-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-pole-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* En-tête du pôle */
.pole-header {
    background:  #32a7ad; 
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pole-icon {
    font-size: 24px;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pole-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
}

/* Items de service */
.service-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 25px;
}

.service-item:last-child {
    border-bottom: none;
}

.service-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.service-title h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    flex: 1;
    line-height: 1.4;
    padding-right: 15px;
}

/* Bouton accordéon */
.accordion-toggle {
    background: #f5f5f5;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #803101;
    flex-shrink: 0;
}

.accordion-toggle:hover {
    background: #803101;
    color: white;
}

.accordion-toggle.active {
    background: #803101;
    color: white;
    transform: rotate(180deg);
}

/* Contenu déroulant */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 200px;
}

.accordion-content p {
    margin: 15px 0 0 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 992px) {
    .detailed-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detailed-services-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .detailed-services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .detailed-services-section {
        padding: 60px 0;
    }
    
    .detailed-services-section h2 {
        font-size: 24px;
    }
    
    .section-description {
        font-size: 15px;
    }
    
    .pole-header {
        padding: 20px;
    }
    
    .pole-header h3 {
        font-size: 18px;
    }
    
    .service-item {
        padding: 18px 20px;
    }
}

@media (max-width: 480px) {
    .pole-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .pole-icon {
        margin: 0 auto;
    }
    
    .service-title h4 {
        font-size: 15px;
    }
}






/* Section Témoignages Slider - Responsive 2/1 */
.testimonial-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* .testimonial-section .sub-heading {
    color: #803101;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
} */

.testimonial-section h2 {
    color: #222;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.testimonial-section .section-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Slider Container */
.testimonial-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.slider-containerre {
    position: relative;
    min-height: 350px;
    overflow: hidden;
}

/* Groupes de slides */
.slide-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    transition: transform 0.6s ease, opacity 0.6s ease;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.slide-group.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

.slide-group.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.slide-group.next {
    transform: translateX(100%);
    opacity: 0;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.5s ease forwards;
    animation-delay: 0.3s;
}

.slide-group.active .testimonial-card {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop: 2 cartes côte à côte */
.testimonial-card.desktop-card {
    width: calc(50% - 15px);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-quote {
    color: #803101;
    font-size: 22px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.testimonial-content {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    margin: 0;
    color: #222;
    font-size: 16px;
    font-weight: 600;
}

.author-role {
    color: #803101;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-top: 5px;
}

/* Navigation */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.nav-btn {
    background: white;
    border: 2px solid #eaeaea;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #803101;
    font-size: 18px;
}

.nav-btn:hover {
    background: #803101;
    border-color: #803101;
    color: white;
    transform: scale(1.1);
}

/* Dots Navigation */
.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #803101;
    transform: scale(1.2);
}

.dot:hover {
    background: #b34700;
}

/* ========== RESPONSIVE ========== */

/* Tablette (768px - 992px) */
@media (max-width: 992px) {
    .testimonial-slider {
        max-width: 800px;
        padding: 0 30px;
    }
    
    .slider-containerre {
        min-height: 320px;
    }
    
    .testimonial-card {
        padding: 30px;
    }
    
    .testimonial-content {
        font-size: 15px;
    }
}

/* Mobile (≤ 768px) - 1 témoignage par slide */
@media (max-width: 768px) {
    /* Masquer la deuxième carte sur mobile */
    .testimonial-card.desktop-card {
        display: none;
    }
    
    /* Afficher seulement la première carte */
    .testimonial-card.desktop-card:first-child {
        display: flex;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Ajuster la hauteur du container */
    .slider-containerre {
        min-height: 400px;
    }
    
    /* Ajuster la navigation */
    .slider-nav {
        gap: 20px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .testimonial-section {
        padding: 60px 0;
    }
    
    .testimonial-section h2 {
        font-size: 28px;
    }
}

/* Petit mobile (≤ 480px) */
@media (max-width: 480px) {
    .testimonial-section h2 {
        font-size: 26px;
    }
    
    .testimonial-slider {
        padding: 0 20px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .testimonial-content {
        font-size: 14px;
    }
    
    .author-image {
        width: 50px;
        height: 50px;
    }
    
    .author-info h5 {
        font-size: 15px;
    }
    
    .author-role {
        font-size: 13px;
    }
    
    .slider-containerre {
        min-height: 450px;
    }
}

/* Grand écran (> 1200px) */
@media (min-width: 1200px) {
    .testimonial-slider {
        max-width: 1300px;
    }
    
    .slider-containerre {
        min-height: 380px;
    }
}
/* Animation des cartes */
.testimonial-card {
    animation: cardFadeIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation des groupes de slides */
.slide-group {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pour les transitions sur mobile */
@media (max-width: 768px) {
    .slide-group.active {
        animation: slideInMobile 0.6s ease forwards;
    }
    
    @keyframes slideInMobile {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}






/* Effet de particules en arrière-plan */
.detailed-services-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(128, 49, 1, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(128, 49, 1, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(128, 49, 1, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}
/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-icon,
    .service-icon i,
    .service-features,
    .service-features li,
    .service-link,
    .service-card::before {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch Devices - Activer l'état hover au tap */
@media (hover: none) and (pointer: coarse) {
    .service-card:active {
        background: #ffffff;
        transform: translateY(-10px);
        min-height: 500px;
    }
    
    .service-card:active .service-features {
        max-height: 400px;
        opacity: 1;
    }
    
    .service-card:active .service-link {
        opacity: 1;
        transform: translateY(0);
    }
}