/*
 Theme Name: Astra Child
 Theme URI: http://example.com/astra-child
 Description: Astra Child Theme
 Author: Your Name
 Author URI: http://example.com
 Template: astra
 Version: 1.0.0
 Text Domain: astra-child
*/

	   
/* ===== BARRE DE RECHERCHE ===== */
#dgwt-wcas-search-input-1 {
    width: 700px;       /* change 400px to whatever width you want */
    max-width: 100%;    /* prevents it from overflowing on small screens */
    box-sizing: border-box; /* includes padding in width */
}
	   
	   
/* ===== PRIX EN ROUGE POUR TOUS LES PRODUITS ===== */

/* 1. PRODUITS NORMAUX SUR LES PAGES BOUTIQUE */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .woocommerce-Price-amount,
.woocommerce-loop-product__price {
    color: #ff0000 !important;
    font-weight: bold !important;
}

/* 2. PRODUITS DANS LE CARROUSEL */
.wpsf-product-price,
.wpsf-product .price,
.swiper-slide .price {
    color: #ff0000 !important;
    font-weight: bold !important;
}

/* 3. PRODUITS INDIVIDUELS SUR PAGE PRODUIT */
.single-product .price,
.product .price,
.woocommerce-Price-amount {
    color: #ff0000 !important;
    font-weight: bold !important;
}

/* Différents états avec nuances de vert */
.wpsf-product .condition-box.premium,
.swiper-slide .condition-box.premium {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.wpsf-product .condition-box.good,
.swiper-slide .condition-box.good {
    background: linear-gradient(135deg, #20c997, #17a2b8) !important;
}

.wpsf-product .condition-box.fair,
.swiper-slide .condition-box.fair {
    background: linear-gradient(135deg, #17a2b8, #6f42c1) !important;
}

/* Positionnement dans le carousel */
.wpsf-product-info,
.swiper-slide .product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* S'assurer que le texte de l'état reste vert et non rouge */
.wpsf-product .condition-box,
.swiper-slide .condition-box {
    color: white !important; /* Important pour écraser toute autre couleur */
}

/* Styles spécifiques pour WooCommerce carousel */
.wpsf-product .woocommerce-product-attributes .condition,
.swiper-slide .product_condition {
    background: #28a745 !important;
    color: white !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    margin-top: 10px !important;
}

/* Si l'état est dans un élément <span> spécifique */
.wpsf-product span.condition,
.swiper-slide span.condition {
    background: #28a745 !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    margin: 5px 0 !important;
}

/* Pour les attributs de produit */
.wpsf-product .product_meta .condition,
.swiper-slide .woocommerce-product-attributes .condition {
    background: #28a745 !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
}

/* ===== OPTIMIZED REVIEWS - FASTER LOADING ===== */

/* Grille des reviews - simplified */
.glsr-reviews {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
    list-style: none;
}

/* Chaque carte de review - simplified */
.glsr-reviews li.glsr-review {
    border: 2px solid #6FA743;
    border-top: 5px solid #6FA743; /* Use border-top instead of ::before */
    border-radius: 12px;
    background: #F8F4ED;
    box-shadow: 0 5px 15px rgba(46, 89, 132, 0.08);
    
    /* Simplify transitions - only transform */
    will-change: transform; /* Hint to browser for optimization */
}

/* Remove the slow ::before pseudo-element */
.glsr-reviews li.glsr-review::before {
    display: none !important;
}

/* Simplify hover effect */
.glsr-reviews li.glsr-review:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(46, 89, 132, 0.12);
    border-color: #5a8c35;
}

/* Simplify review card */
.my-review-card {
    padding: 25px;
    background: rgba(111, 167, 67, 0.1);
    border-radius: 10px;
    height: 100%;
    
    /* Remove transition - not necessary */
}

/* Simplify separator */
.review-separator {
    height: 1px;
    background: #6FA743;
    opacity: 0.3;
    margin: 20px 0;
    border: none;
}

/* Remove unnecessary hover on card */
.glsr-reviews li.glsr-review:hover .my-review-card {
    background: rgba(111, 167, 67, 0.1); /* Keep same color */
}

/* Remove complex alignments unless needed */
.reviews-container {
    width: 100%;
}

/* RESPONSIVE - optimized */
@media (max-width: 1300px) {
    .glsr-reviews {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1000px) {
    .glsr-reviews {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 700px) {
    .glsr-reviews {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 15px;
        padding: 0 15px;
    }
    
    /* Disable hover on mobile for better performance */
    .glsr-reviews li.glsr-review:hover {
        transform: none;
    }
}

/* ===== CARD NOTE GLOBALE - VERSION COMPACTE ===== */

.global-rating-card.compact {
    max-width: 280px !important;
    padding: 20px !important;
    background: #F8F4ED !important;
    border: 2px solid #6FA743 !important;
    border-radius: 12px !important;
    text-align: center !important;
    margin: 0 auto !important;
    box-shadow: 0 4px 12px rgba(46, 89, 132, 0.1) !important;
}

.global-rating-card.compact .rating-title {
    color: #2E5984 !important;
    font-size: 16px !important;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.global-rating-card.compact .rating-main {
    margin: 20px 0 !important;
}

.global-rating-card.compact .rating-number {
    font-size: 42px !important;
    font-weight: bold !important;
    color: #2E5984 !important;
    line-height: 1 !important;
    margin-bottom: 8px !important;
}

.global-rating-card.compact .rating-stars {
    color: #6FA743 !important;
    font-size: 22px !important;
    letter-spacing: 3px !important;
    margin: 10px 0 !important;
}

/* CORRECTION POUR LE SOUS-TITRE "Avec 4,5 /5" */
.global-rating-card.compact .rating-subtitle {
    color: #2E5984 !important;
    opacity: 0.8 !important;
    font-size: 13px !important;
    margin-top: 5px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
}

.global-rating-card.compact .rating-subtitle .rating-text {
    white-space: nowrap !important;
}

.global-rating-card.compact .rating-subtitle .rating-value {
    font-weight: bold !important;
    color: #2E5984 !important;
    white-space: nowrap !important;
}

.global-rating-card.compact .rating-subtitle .rating-max {
    white-space: nowrap !important;
}

/* Alternative plus simple sans flex */
.global-rating-card.compact .rating-subtitle.simple {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.global-rating-card.compact .rating-label {
    color: #6FA743 !important;
    font-weight: bold !important;
    font-size: 14px !important;
    margin-top: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.global-rating-card.compact .verified-badge {
    background: rgba(111, 167, 67, 0.15) !important;
    color: #6FA743 !important;
    padding: 10px 20px !important;
    border-radius: 30px !important;
    font-weight: bold !important;
    font-size: 13px !important;
    margin-top: 20px !important;
    display: inline-block !important;
    border: 1px solid rgba(111, 167, 67, 0.3) !important;
}

.global-rating-card.compact .verified-badge .check {
    margin-right: 8px !important;
    font-size: 16px !important;
}

/* Hover effect */
.global-rating-card.compact:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(46, 89, 132, 0.15) !important;
    border-color: #5a8c35 !important;
}


/* Contact Info - style standardisé, remplacé par css/contact-info.css (chargé après) */
.contact-info {
    background: linear-gradient(135deg, #F8F4ED 0%, #eef3e4 100%);
    border-radius: 28px;
    padding: 45px;
    box-shadow: 0 12px 34px rgba(46, 89, 132, 0.09);
    border: none;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* La décoration ::before de .contact-info est définie dans css/contact-info.css (chargé après) */

.contact-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2E5984;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(111, 167, 67, 0.2);
    position: relative;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #6FA743, #8BC34A);
    border-radius: 2px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 45px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Effet de surbrillance au survol */
.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(111, 167, 67, 0.1), transparent);
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #6FA743;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(111, 167, 67, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6FA743, #8BC34A);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(111, 167, 67, 0.25);
}

.contact-item:hover .contact-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(111, 167, 67, 0.35);
}

.contact-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2E5984;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.contact-text a {
    color: #2E5984;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    position: relative;
    padding-left: 24px;
}

.contact-text a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background: #6FA743;
}

.contact-text a:hover {
    color: #6FA743;
    padding-left: 30px;
}

.contact-text a:hover::before {
    width: 24px;
}

.contact-text p {
    color: #5D7592;
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

.schedule {
    font-size: 15px;
    color: #6FA743;
    margin-top: 8px;
    font-weight: 500;
    display: inline-block;
    background: rgba(111, 167, 67, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(111, 167, 67, 0.2);
}

/* Animations */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* Responsive */
@media (max-width: 768px) {
    .contact-info {
        padding: 30px;
        border-radius: 16px;
    }
    
    .contact-info h2 {
        font-size: 26px;
        margin-bottom: 28px;
        padding-bottom: 16px;
    }
    
    .contact-item {
        padding: 20px;
        gap: 18px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin: 0 auto;
    }
    
    .contact-text a {
        padding-left: 0;
        text-align: center;
    }
    
    .contact-text a::before {
        display: none;
    }
    
    .contact-text a:hover {
        padding-left: 0;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .social-link {
        padding: 14px 20px;
    }
}

/* Effet de brillance sur les bordures */
.contact-info {
    position: relative;
}

.contact-info::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6FA743, #8BC34A, #6FA743);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.1;
    filter: blur(5px);
}


.mission-statement {
    background: #F8F4ED;
    border-radius: 20px;
    padding: 20px;
    border: 2px solid #6FA743;
    position: relative;
    overflow: hidden;
    margin: 40px auto;
    max-width: 1500px;
}

/* La décoration ::before/::after de .mission-statement est définie dans css/mission-about.css (chargé après) */

.mission-title {
    color: #2E5984;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.mission-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #6FA743;
    border-radius: 2px;
}

.mission-content {
    text-align: center;
}

.mission-paragraph {
    color: #2E5984;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-paragraph:first-of-type {
    font-weight: 600;
    font-size: 20px;
}

.mission-paragraph:last-of-type {
    color: #5D7592;
    font-size: 17px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .mission-statement {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .mission-title {
        font-size: 28px;
    }
    
    .mission-paragraph {
        font-size: 16px;
    }
    
    .mission-paragraph:first-of-type {
        font-size: 18px;
    }
}


/* À propos - Même style que mission-statement */
.about-statement {
    background: #F8F4ED;
    border-radius: 20px;
    padding: 50px;
    border: 2px solid #6FA743;
    position: relative;
    overflow: hidden;
    margin: 40px auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* La décoration ::before/::after de .about-statement est définie dans css/mission-about.css (chargé après) */

.about-title {
    color: #2E5984;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #6FA743;
    border-radius: 2px;
}

.about-content {
    text-align: center;
    width: 100%;
}

.about-subtitle {
    color: #2E5984;
    font-size: 28px;
    font-weight: 700;
    margin: 30px 0 20px;
}

.about-paragraph {
    color: #2E5984;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.about-paragraph.highlight {
    background: rgba(111, 167, 67, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #6FA743;
    text-align: center;
    font-weight: 600;
}

.grades-title,
.why-title {
    color: #2E5984;
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(111, 167, 67, 0.2);
}

/* Grille des grades */
.grades-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.grade-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.grade-card:hover {
    transform: translateY(-5px);
}

.grade-header {
    padding: 20px;
    color: white;
    font-weight: 700;
}

.grade-header.premium {
	background: rgba(75, 156, 48, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #6FA743;
    text-align: center;
    font-weight: 600;
}

.grade-header.good {
    background: rgba(75, 156, 48, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #6FA743;
    text-align: center;
    font-weight: 600;
}

.grade-header.fair {
    background: rgba(75, 156, 48, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #6FA743;
    text-align: center;
    font-weight: 600;
}

.grade-header.basic {
    background: rgba(75, 156, 48, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #6FA743;
    text-align: center;
    font-weight: 600;
}

.grade-title {
    margin: 0;
    font-size: 20px;
    text-align: center;
}

.grade-details {
    padding: 20px;
    text-align: left;
}

.grade-details p {
    margin-bottom: 10px;
    color: #5D7592;
    line-height: 1.5;
    font-size: 14px;
}

.grade-details strong {
    color: #2E5984;
}

/* Avantages */
.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.benefit-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid rgba(111, 167, 67, 0.1);
}

.benefit-card:hover {
    border-color: #6FA743;
    box-shadow: 0 8px 25px rgba(111, 167, 67, 0.1);
}

.benefit-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.benefit-title {
    color: #2E5984;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit-text {
    color: #5D7592;
    font-size: 14px;
    line-height: 1.5;
}



/* Style principal du bouton SureForm */
.srfm-btn-frontend.srfm-button.srfm-submit-button {
    background-color: #6FA743 !important;
    border-color: #6FA743 !important;
    color: white !important;
    border: 2px solid #6FA743 !important;
}

/* Effet au survol */
.srfm-btn-frontend.srfm-button.srfm-submit-button:hover {
    background-color: #5D8F3A !important;
    border-color: #5D8F3A !important;
    color: white !important;
}

/* Style pendant le chargement (quand le formulaire est soumis) */
.srfm-btn-frontend.srfm-button.srfm-submit-button.srfm-button-loading {
    background-color: #5D8F3A !important;
    border-color: #5D8F3A !important;
    opacity: 0.8 !important;
}

/* Style du loader (petit cercle de chargement) */
.srfm-loader {
    border-color: white !important;
}





/* ===== FEATURES SECTION STYLES ===== */
/* Le bloc Hero a été déplacé et modernisé dans css/hero-section.css (source unique) */

/* ===== STYLES GLOBAUX ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2E5984;
    line-height: 1.6;
    background: linear-gradient(180deg, #F8F4ED 0%, #eef3e4 45%, #eaf1e6 100%);
    background-attachment: fixed;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== INDIVIDUAL FRAME FOR EACH FEATURE ITEM - style pilule moderne ===== */
.feature-frame {
    background: #fff;
    border-radius: 20px;
    border: none;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 6px 18px rgba(46, 89, 132, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(46, 89, 132, 0.14);
}

.feature-content {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-icon {
    font-size: 18px;
    color: #6FA743 !important;
    height: 50px;
    width: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9); /* Fond blanc pour contraster avec le fond vert */
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #6FA743;
    position: relative;
    margin-bottom: 12px;
}

/* Icône personnalisée de roue crantée */
.gear-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.gear-icon:before,
.gear-icon:after {
    content: "";
    position: absolute;
    background: #6FA743;
    border-radius: 2px;
}

.gear-icon:before {
    width: 9px;
    height: 9px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #6FA743;
    border-radius: 50%;
}

.gear-icon:after {
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    background: 
        linear-gradient(0deg, transparent 45%, #6FA743 45%, #6FA743 55%, transparent 55%),
        linear-gradient(90deg, transparent 45%, #6FA743 45%, #6FA743 55%, transparent 55%),
        linear-gradient(45deg, transparent 45%, #6FA743 45%, #6FA743 55%, transparent 55%),
        linear-gradient(135deg, transparent 45%, #6FA743 45%, #6FA743 55%, transparent 55%);
    border-radius: 50%;
}

.feature-text {
    font-size: 12px;
    color: #2E5984 !important; /* Texte en bleu */
    font-weight: 600;
    line-height: 1.3;
    display: inline; /* Changement important */
    white-space: nowrap; /* Empêche le retour à la ligne */
}

.feature-highlight {
    color: #2E5984 !important; /* Texte en bleu */
    font-weight: 700;
    display: inline; /* Changé de 'block' à 'inline' */
    font-size: 13px;
    white-space: nowrap; /* Empêche le retour à la ligne */
}

@keyframes rotateGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hover effects */
.feature-frame:hover .feature-icon {
    transform: scale(1.08);
    background: white; /* Blanc pur au survol */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-frame:hover .feature-highlight {
    color: #1E4A7A; /* Bleu plus foncé au survol */
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .feature-content {
        padding: 18px 12px;
    }
    
}

@media (max-width: 768px) {
    .page-container {
        padding: 20px 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
        gap: 10px;
    }

    .feature-content {
        padding: 16px 12px;
    }

    .feature-icon {
        height: 45px;
        width: 45px;
        min-width: 45px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .gear-icon {
        width: 18px;
        height: 18px;
    }

    .gear-icon:after {
        width: 18px;
        height: 18px;
    }

    .gear-icon:before {
        width: 8px;
        height: 8px;
    }

    .feature-text {
        font-size: 11px;
        white-space: normal; /* Permet le retour à la ligne sur mobile si nécessaire */
    }
    
    .feature-highlight {
        font-size: 12px;
        display: inline; /* Toujours inline */
    }
}

@media (max-width: 480px) {
    .features-grid {
        max-width: 260px;
        gap: 8px;
    }
    
    .feature-content {
        padding: 14px 10px;
    }
    
    .feature-icon {
        height: 40px;
        width: 40px;
        min-width: 40px;
        font-size: 15px;
    }
    
    .feature-text {
        white-space: nowrap; /* Garde sur une ligne */
    }
}

/* Apply contact page styling to WooCommerce My Account navigation */
.woocommerce-MyAccount-navigation {
    background: #F8F4ED !important;
    border-radius: 28px !important;
    padding: 0 !important;
    box-shadow: 0 12px 34px rgba(46, 89, 132, 0.09) !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Green decorative bar at top */
.woocommerce-MyAccount-navigation::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 6px !important;
    background: linear-gradient(90deg, #6FA743, #8BC34A) !important;
    border-radius: 28px 28px 0 0 !important;
}

/* Remove default WooCommerce list styling */
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Style each navigation item like contact items */
.woocommerce-MyAccount-navigation-link {
    border-bottom: 2px solid rgba(111, 167, 67, 0.12) !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.woocommerce-MyAccount-navigation-link:last-child {
    border-bottom: 0 !important;
}

/* Style links */
.woocommerce-MyAccount-navigation-link a {
    padding: 24px 30px !important;
    display: block !important;
    color: #2E5984 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    background: transparent !important;
    position: relative !important;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

/* Hover effect */
.woocommerce-MyAccount-navigation-link a:hover {
    background: rgba(111, 167, 67, 0.08) !important;
    color: #6FA743 !important;
    padding-left: 40px !important;
}

/* Active item styling */
.woocommerce-MyAccount-navigation-link.is-active a {
    background: rgba(111, 167, 67, 0.14) !important;
    color: #6FA743 !important;
    font-weight: 700 !important;
}

/* Add left border for active item */
.woocommerce-MyAccount-navigation-link.is-active::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 4px !important;
    background: #6FA743 !important;
}

/* Add icon before each link (optional) */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: '📊 ' !important;
}

.woocommerce-MyAccount-navigation-link--orders a::before {
    content: '📦 ' !important;
}

.woocommerce-MyAccount-navigation-link--downloads a::before {
    content: '⬇️ ' !important;
}

.woocommerce-MyAccount-navigation-link--downloads {
    display: none !important;
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: '🏠 ' !important;
}

.woocommerce-MyAccount-navigation-link--payment-methods a::before {
    content: '💳 ' !important;
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: '👤 ' !important;
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: '🚪 ' !important;
}

/* Add the glow border effect */
.woocommerce-MyAccount-navigation::after {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, #6FA743, #8BC34A, #6FA743) !important;
    border-radius: 22px !important;
    z-index: -1 !important;
    opacity: 0.1 !important;
    filter: blur(5px) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation {
        border-radius: 16px !important;
    }
    
    .woocommerce-MyAccount-navigation-link a {
        padding: 20px 25px !important;
        font-size: 16px !important;
    }
    
    .woocommerce-MyAccount-navigation-link a:hover {
        padding-left: 30px !important;
    }
}


/* Style the dashboard content to match the navigation */
.woocommerce-MyAccount-content {
    background: #F8F4ED !important;
    border-radius: 28px !important;
    padding: 32px !important;
    box-shadow: 0 12px 34px rgba(46, 89, 132, 0.09) !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 24px;
}

/* Green decorative bar at top */
.woocommerce-MyAccount-content::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 6px !important;
    background: linear-gradient(90deg, #6FA743, #8BC34A) !important;
    border-radius: 28px 28px 0 0 !important;
}

/* Style the text inside */
.woocommerce-MyAccount-content p {
    color: #2E5984 !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
}

.woocommerce-MyAccount-content strong {
    color: #6FA743 !important;
    font-weight: 700 !important;
}

.woocommerce-MyAccount-content a {
    color: #6FA743 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    position: relative !important;
}

.woocommerce-MyAccount-content a:hover {
    text-decoration: underline !important;
}

/* Glow border effect */
.woocommerce-MyAccount-content::after {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, #6FA743, #8BC34A, #6FA743) !important;
    border-radius: 22px !important;
    z-index: -1 !important;
    opacity: 0.1 !important;
    filter: blur(5px) !important;
}

/* Mise en page centrée, en flex, avec un espacement contrôlé */
body.woocommerce-page.woocommerce-account .entry-content div.woocommerce {
    max-width: 1300px;
    margin: 10px auto 40px;
}

@media (min-width: 768px) {
    body.woocommerce-page.woocommerce-account .entry-content div.woocommerce {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 30px;
    }

    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content {
        vertical-align: top !important;
    }

    .woocommerce-MyAccount-navigation {
        width: 30% !important;
        flex: 0 0 30%;
    }

    .woocommerce-MyAccount-content {
        width: 65% !important;
        flex: 0 0 65%;
        margin-top: 0 !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-MyAccount-content {
        padding: 30px !important;
        border-radius: 16px !important;
        margin-left: 0 !important;
        margin-top: 30px !important;
    }
    
    .woocommerce-MyAccount-content p {
        font-size: 16px !important;
    }
}

/* Style the "Ajouter un moyen de paiement" button with white text */
.woocommerce-MyAccount-content .button {
    color: white !important;
    background-color: #6FA743 !important;
    border: 2px solid #6FA743 !important;
    padding: 12px 24px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 15px !important;
    transition: all 0.3s ease !important;
}

/* Hover effect */
.woocommerce-MyAccount-content .button:hover {
    background-color: #5A8C35 !important;
    border-color: #5A8C35 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(111, 167, 67, 0.3) !important;
}


/* ===== WOOCOMMERCE PRODUCT PAGE - LARGER IMAGE & BEIGE BACKGROUND ===== */

/* Main product container - 2 column layout */
.single-product div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    align-items: start;
}

/* Product images - LARGER SIZE WITH BEIGE BACKGROUND */
.woocommerce-product-gallery {
    width: 100% !important;
    max-width: 650px; /* Increased for larger image */
}

.woocommerce-product-gallery__wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #6FA743;
    background: #F8F4ED; /* BEIGE BACKGROUND */
}

/* Larger main image with beige background */
.woocommerce-product-gallery__image {
    max-height: 550px; /* Increased height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F4ED; /* BEIGE BACKGROUND */
}

.woocommerce-product-gallery__image img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 550px !important; /* Increased height */
    height: auto !important;
    object-fit: contain; /* Keep aspect ratio */
    padding: 25px; /* Increased padding */
}

/* Product summary section */
.summary.entry-summary {
    background: #F8F4ED;
    border-radius: 28px;
    padding: 40px;
    border: none;
    position: relative;
    box-shadow: 0 12px 34px rgba(46, 89, 132, 0.09);
    max-width: 600px;
}

/* Green decorative bar at top */
.summary.entry-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #6FA743, #8BC34A);
    border-radius: 28px 28px 0 0;
}

/* Product title */
.product_title {
    font-size: 32px !important;
    color: #2E5984 !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
}

/* Price styling */
.price {
    font-size: 28px !important;
    color: #ff0000 !important;
    font-weight: 800 !important;
    margin: 20px 0 !important;
    display: block !important;
}

/* Condition and color badges */
.summary.entry-summary > div:has(div[style*="color: #4B9C30"]) {
    background: rgba(111, 167, 67, 0.1) !important;
    padding: 15px !important;
    border-radius: 10px !important;
    margin: 15px 0 !important;
    border: 1px solid rgba(111, 167, 67, 0.2) !important;
    text-align: center !important;
}

/* Stock availability */
.ast-stock-detail {
    background: rgba(111, 167, 67, 0.1) !important;
    padding: 12px !important;
    border-radius: 8px !important;
    border-left: 4px solid #6FA743 !important;
    margin: 20px 0 !important;
    font-weight: 600 !important;
}

.stock.in-stock {
    color: #6FA743 !important;
    font-weight: 700 !important;
}

/* Add to cart form */
form.cart {
    margin: 25px 0 !important;
    padding-top: 25px !important;
    border-top: 2px solid rgba(111, 167, 67, 0.2) !important;
}

/* Add to cart button */
.single_add_to_cart_button {
    background: linear-gradient(135deg, #6FA743 0%, #5A8C35 100%) !important;
    color: white !important;
    padding: 16px 35px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    width: 100% !important;
    margin-top: 15px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #5A8C35 0%, #4A742B 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(111, 167, 67, 0.3) !important;
}

/* PayPal button wrapper */
.ppc-button-wrapper {
    margin: 25px 0 !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 10px !important;
    border: 2px solid #f0f0f0 !important;
    text-align: center !important;
}

/* Tabs section - full width below */
.woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 60px !important;
    background: #F8F4ED;
    border-radius: 28px;
    padding: 40px;
    border: none;
    box-shadow: 0 12px 34px rgba(46, 89, 132, 0.09);
}

/* Tab navigation */
.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid rgba(111, 167, 67, 0.2) !important;
    padding-bottom: 10px !important;
    margin-bottom: 30px !important;
}

.woocommerce-tabs ul.tabs li {
    margin-right: 30px !important;
}

.woocommerce-tabs ul.tabs li a {
    color: #2E5984 !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    padding: 10px 0 !important;
    position: relative !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #6FA743 !important;
}

.woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #6FA743;
    border-radius: 2px;
}

/* Tab content */
.woocommerce-Tabs-panel {
    color: #2E5984 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

.woocommerce-product-attributes {
    width: 100% !important;
}

.woocommerce-product-attributes th {
    background: rgba(111, 167, 67, 0.1) !important;
    color: #2E5984 !important;
    font-weight: 600 !important;
    padding: 15px !important;
    border: 1px solid rgba(111, 167, 67, 0.2) !important;
}

.woocommerce-product-attributes td {
    padding: 15px !important;
    border: 1px solid rgba(111, 167, 67, 0.2) !important;
}

.woocommerce-product-attributes a {
    color: #6FA743 !important;
    font-weight: 600 !important;
}

/* Related products section */
.related.products {
    grid-column: 1 / -1;
    margin-top: 60px !important;
}

.related.products h2 {
    text-align: center !important;
    color: #2E5984 !important;
    font-size: 32px !important;
    margin-bottom: 40px !important;
    font-weight: 700 !important;
}

.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    list-style: none !important;
}

/* Responsive design */
@media (max-width: 1200px) {
    .single-product div.product {
        gap: 30px;
    }
    
    .woocommerce-product-gallery {
        max-width: 550px;
    }
    
    .woocommerce-product-gallery__image {
        max-height: 500px;
    }
    
    .woocommerce-product-gallery__image img {
        max-height: 500px !important;
        padding: 20px;
    }
    
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .single-product div.product {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 800px;
    }
    
    .woocommerce-product-gallery {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .woocommerce-product-gallery__image {
        max-height: 550px;
    }
    
    .woocommerce-product-gallery__image img {
        max-height: 550px !important;
        padding: 25px;
    }
    
    .summary.entry-summary {
        max-width: 100%;
    }
    
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .single-product div.product {
        padding: 20px 15px;
        gap: 30px;
    }
    
    .woocommerce-product-gallery__image {
        max-height: 450px;
    }
    
    .woocommerce-product-gallery__image img {
        max-height: 450px !important;
        padding: 20px;
    }
    
    .summary.entry-summary {
        padding: 25px;
    }
    
    .product_title {
        font-size: 26px !important;
    }
    
    .price {
        font-size: 24px !important;
    }
    
    .single_add_to_cart_button {
        padding: 15px 30px !important;
        font-size: 16px !important;
    }
    
    .woocommerce-tabs {
        padding: 30px;
    }
    
    .related.products ul.products {
        grid-template-columns: 1fr !important;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .woocommerce-product-gallery__image {
        max-height: 400px;
    }
    
    .woocommerce-product-gallery__image img {
        max-height: 400px !important;
        padding: 15px;
    }
    
    .summary.entry-summary {
        padding: 20px;
    }
    
    .product_title {
        font-size: 22px !important;
    }
    
    .price {
        font-size: 20px !important;
    }
    
    .single_add_to_cart_button {
        padding: 14px 25px !important;
        font-size: 15px !important;
    }
    
    .woocommerce-tabs {
        padding: 25px 20px;
    }
    
    .woocommerce-tabs ul.tabs li {
        margin-right: 15px !important;
    }
    
    .woocommerce-tabs ul.tabs li a {
        font-size: 16px !important;
    }
}

/* For very tall screens, make image even larger */
@media (min-height: 800px) {
    .woocommerce-product-gallery__image {
        max-height: 650px;
    }
    
    .woocommerce-product-gallery__image img {
        max-height: 650px !important;
    }
}
