/**
 * CSS FICHES PRODUITS ERIC FAVRE v2 - DESIGN SOBRE ET MODERNE
 * AdaptÃ© pour Bootstrap 3.3.7
 * Sans backgrounds blancs - Coins arrondis - Progress bars custom
 */

/* ==========================================================================
   1. BASE & RESET
   ========================================================================== */

.efp-fiche-produit {
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    color: #333;
    background: transparent !important;
}

.efp-fiche-produit * {
    box-sizing: border-box;
}

/* Forcer transparent sur tab-content et tab-pane */
.efp-fiche-produit .tab-content {
    padding: 0;
    background: transparent !important;
}

.efp-fiche-produit .tab-pane {
    padding: 0 0 20px 0;
    background: transparent !important;
}

/* ==========================================================================
   2. SYSTÃˆME D'ONGLETS BOOTSTRAP 3 - MODERNE
   ========================================================================== */

.efp-fiche-produit .nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin: 0 0 30px 0;
}

.efp-fiche-produit .nav-tabs > li {
    margin-bottom: -2px;
}

.efp-fiche-produit .nav-tabs > li > a {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.efp-fiche-produit .nav-tabs > li > a:hover {
    background: #f8f8f8;
    border-color: transparent;
    border-bottom-color: #999;
    color: #000;
}

.efp-fiche-produit .nav-tabs > li.active > a,
.efp-fiche-produit .nav-tabs > li.active > a:hover,
.efp-fiche-produit .nav-tabs > li.active > a:focus {
    background: transparent;
    border: none;
    border-bottom: 3px solid #000;
    color: #000;
}

/* ==========================================================================
   3. TYPOGRAPHIE
   ========================================================================== */

.efp-fiche-produit h2 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 25px 0;
    line-height: 1.4;
}

.efp-fiche-produit h3 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 30px 0 15px 0;
}

.efp-fiche-produit h4 {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin: 20px 0 10px 0;
}

.efp-fiche-produit h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 15px 0 10px 0;
}

.efp-fiche-produit p {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.efp-fiche-produit strong {
    font-weight: 700;
    color: #000;
}

.efp-fiche-produit ul {
    margin: 15px 0;
    padding-left: 20px;
}

.efp-fiche-produit li {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.efp-fiche-produit a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.efp-fiche-produit a:hover {
    color: #4c5fd5;
    text-decoration: none;
}

/* ==========================================================================
   4. TABLEAUX - COMPOSITION
   ========================================================================== */

.efp-fiche-produit .table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: transparent;
}

.efp-fiche-produit .table th {
    background: #f5f5f5;
    padding: 14px 12px;
    text-align: center;
    font-weight: 700;
    border: 1px solid #e0e0e0;
    color: #000;
}

.efp-fiche-produit .table td {
    padding: 14px 12px;
    border: 1px solid #e0e0e0;
    background: transparent;
}

.efp-fiche-produit .table tr:nth-child(even) td {
    background: #fafafa;
}

.efp-fiche-produit .table tr:hover td {
    background: #f0f0f0;
}

/* ==========================================================================
   5. AVIS CLIENTS - RATING BOX
   ========================================================================== */

.efp-fiche-produit .rating-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.efp-fiche-produit .rating-big {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    line-height: 1;
    margin-bottom: 10px;
}

.efp-fiche-produit .rating-big span {
    font-size: 28px;
    font-weight: 400;
    color: #666;
}

.efp-fiche-produit .rating-box p {
    margin: 8px 0;
    font-size: 14px;
}

/* ==========================================================================
   6. INSIGHTS AVIS CLIENTS - STYLE SIMPLE SANS PROGRESS BARS
   ========================================================================== */

/* Header vert pÃ¢le pour "Ce que les utilisateurs apprÃ©cient" */
.efp-fiche-produit .panel-heading-success {
    background: #e8f5e9 !important;
    border-color: #c8e6c9 !important;
    color: #2e7d32 !important;
}

/* Style liste insights simple */
.efp-fiche-produit .insight-list-simple {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.efp-fiche-produit .insight-list-simple li {
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #e8e8e8 !important;
}

.efp-fiche-produit .insight-list-simple li:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.efp-fiche-produit .insight-list-simple strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.5;
}

.efp-fiche-produit .insight-percentage {
    display: inline !important;
    font-size: 13px;
    color: #4caf50;
    font-weight: 600;
    margin: 0 !important;
}

.efp-fiche-produit .insight-quotes {
    font-size: 13px;
    color: #666;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   7. BADGES (pour chiffres clÃ©s)
   ========================================================================== */

.efp-fiche-produit .badge {
    background: #4caf50;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
}

/* ==========================================================================
   8. PANELS BOOTSTRAP 3 - SANS BACKGROUND BLANC
   ========================================================================== */

.efp-fiche-produit .panel {
    border-radius: 6px;
    box-shadow: none;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    background: transparent;
}

.efp-fiche-produit .panel-default > .panel-heading {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 18px;
    border-radius: 6px 6px 0 0;
}

.efp-fiche-produit .panel-body {
    padding: 18px;
    font-size: 14px;
    line-height: 1.7;
    background: #fafafa;
    border-radius: 0 0 6px 6px;
}

/* ==========================================================================
   9. WELL BOOTSTRAP 3 - SANS BACKGROUND BLANC
   ========================================================================== */

.efp-fiche-produit .well {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: none;
    padding: 25px;
    margin: 25px 0;
}

/* ==========================================================================
   10. ENCADRÃ‰S CONSEILS - USAGE BOX & INFO BOX
   ========================================================================== */

.efp-fiche-produit .usage-box {
    background: #f0f7ff;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 25px 0;
}

.efp-fiche-produit .usage-box h4 {
    color: #1976d2;
    margin-top: 0;
}

.efp-fiche-produit .info-box {
    background: #fff9e6;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 25px 0;
}

.efp-fiche-produit .info-box h4 {
    color: #f57c00;
    margin-top: 0;
}

/* ==========================================================================
   11. HIGHLIGHTS - POINTS CLÃ‰S
   ========================================================================== */

.efp-fiche-produit .highlight-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.efp-fiche-produit .highlight-list li {
    background: #f8f8f8;
    border-left: 4px solid #000;
    padding: 14px 18px !important;
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 0 4px 4px 0;
}

.efp-fiche-produit .highlight-list strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

@media (min-width: 768px) {
    .efp-fiche-produit .highlight-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   12. SCIENTIFIC BOXES - RECHERCHES
   ========================================================================== */

.efp-fiche-produit .scientific-intro {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.8;
}

.efp-fiche-produit .effect-box {
    background: #f8f9fa;
    border-left: 4px solid #333;
    border-radius: 4px;
    padding: 20px 25px;
    margin: 20px 0;
}

.efp-fiche-produit .effect-box h4 {
    color: #000;
    margin: 0 0 12px 0;
}

.efp-fiche-produit .effect-box p {
    margin: 10px 0;
}

/* ==========================================================================
   13. RÃ‰FÃ‰RENCES SCIENTIFIQUES
   ========================================================================== */

.efp-fiche-produit .refs-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 25px;
    margin: 30px 0;
}

.efp-fiche-produit .refs-box h3 {
    margin-top: 0;
}

.efp-fiche-produit .refs-box ol {
    padding-left: 30px;
    margin: 15px 0 0 0;
    list-style-type: decimal;
    list-style-position: outside;
}

.efp-fiche-produit .refs-box li {
    font-size: 13px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 18px;
    display: list-item;
}

.efp-fiche-produit .efp-ref-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
}

.efp-fiche-produit .efp-ref-link:hover {
    text-decoration: underline;
    color: #000;
}

.efp-fiche-produit .pubmed-btn {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.efp-fiche-produit .pubmed-btn:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   14. LIST-GROUP - QUALITÃ‰ FABRICATION
   ========================================================================== */

.efp-fiche-produit .list-group-item {
    border-color: #e0e0e0;
    border-radius: 0;
    padding: 14px 18px;
    font-size: 14px;
    background: transparent;
    transition: background 0.2s ease;
}

.efp-fiche-produit .list-group-item:first-child {
    border-radius: 6px 6px 0 0;
}

.efp-fiche-produit .list-group-item:last-child {
    border-radius: 0 0 6px 6px;
}

.efp-fiche-produit .list-group-item:hover {
    background: #f8f8f8;
}

.efp-fiche-produit .list-group-item .glyphicon {
    margin-right: 12px;
    font-size: 14px;
}

/* ==========================================================================
   15. FAQ - QUESTIONS FRÃ‰QUENTES
   ========================================================================== */

.efp-fiche-produit .faq-item {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .efp-fiche-produit .nav-tabs > li {
        float: none;
        display: block;
        margin-bottom: 0;
    }
    
    .efp-fiche-produit .nav-tabs > li > a {
        margin-right: 0;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
    }
    
    .efp-fiche-produit .nav-tabs > li.active > a {
        border-bottom: 3px solid #000;
    }
    
    .efp-fiche-produit .rating-big {
        font-size: 40px;
    }
    
    .efp-fiche-produit h2 {
        font-size: 18px;
    }
    
    .efp-fiche-produit .thumbnail {
        margin-bottom: 15px;
    }
}

/* ==========================================================================
   17. UTILITAIRES
   ========================================================================== */

.efp-fiche-produit .text-center {
    text-align: center;
}

.efp-fiche-produit .text-muted {
    color: #666;
}

.efp-fiche-produit .text-success {
    color: #4caf50;
}

/* Espacement rÃ©duit pour Ã©viter grands blancs */
.efp-fiche-produit .row {
    margin-bottom: 0;
}

.efp-fiche-produit .row + h2,
.efp-fiche-produit .row + h3 {
    margin-top: 35px;
}

/* ==========================================================================
   18. GOOGLE RATING - LOGO + Ã‰TOILES + SCORE + AVIS (VERSION SPAN)
   ========================================================================== */

/* Carte Google cliquable */
.efp-fiche-produit .google-rating-card {
    display: block;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px 20px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.efp-fiche-produit .google-rating-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: #4285F4;
    text-decoration: none;
}

/* Container logo + Ã©toiles */
.efp-fiche-produit .google-logo-stars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Logo Google SVG */
.efp-fiche-produit .google-logo-svg {
    width: 110px;
    height: auto;
    display: block;
}

/* Container Ã©toiles */
.efp-fiche-produit .stars-container {
    display: flex;
    gap: 4px;
    font-size: 28px;
    line-height: 1;
}

/* Ã‰toiles dorÃ©es */
.efp-fiche-produit .star {
    color: #FBBC04;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Score 4.8/5 */
.efp-fiche-produit .google-rating-score {
    font-size: 32px;
    font-weight: 600;
    color: #202124;
    font-family: 'Roboto', Arial, sans-serif;
    margin: 8px 0 5px 0;
    line-height: 1;
    display: block;
}

/* Texte "652 avis clients" */
.efp-fiche-produit .google-text-avis {
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    font-family: 'Roboto', Arial, sans-serif;
    margin-top: 0;
    display: block;
}

/* Espacement aprÃ¨s la row des rating boxes */
.efp-fiche-produit .row.rating-boxes-row {
    margin-bottom: 30px !important;
}

/* Responsive mobile */
@media (max-width: 767px) {
    .efp-fiche-produit .google-rating-card {
        min-height: 160px;
        padding: 20px 15px;
    }
    
    .efp-fiche-produit .google-logo-svg {
        width: 90px;
    }
    
    .efp-fiche-produit .stars-container {
        font-size: 24px;
        gap: 3px;
    }
    
    .efp-fiche-produit .google-rating-score {
        font-size: 28px;
    }
    
    .efp-fiche-produit .google-text-avis {
        font-size: 13px;
    }
    
    /* Aligner rating-box */
    .efp-fiche-produit .rating-box {
        margin-bottom: 0;
        min-height: 160px;
        padding: 15px;
    }
    
    .efp-fiche-produit .rating-big {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .efp-fiche-produit .rating-big span {
        font-size: 24px;
    }
    
    .efp-fiche-produit .rating-box p {
        margin: 5px 0;
        font-size: 13px;
    }
}

/* Forcer mÃªme hauteur sur desktop */
@media (min-width: 768px) {
    .efp-fiche-produit .rating-box,
    .efp-fiche-produit .google-rating-card {
        min-height: 200px;
    }
}
/* ==========================================================================
   19. PRODUITS Ã€ ASSOCIER - SECTIONS CÃ”TE Ã€ CÃ”TE (NOUVEAU)
   ========================================================================== */

/* Wrapper flex pour les 2 sections */
.efp-fiche-produit .efp-products-sections-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

/* Chaque section avec bordure fine */
.efp-fiche-produit .efp-products-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
}

.efp-fiche-produit .efp-products-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* ROW FLEX pour forcer produits sur mÃªme ligne */
.efp-fiche-produit .efp-products-section .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 15px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Produits - TOUJOURS cÃ´te Ã  cÃ´te */
.efp-fiche-produit .efp-products-section .col-md-6,
.efp-fiche-produit .efp-products-section .col-md-3,
.efp-fiche-produit .efp-products-section .col-sm-6 {
    width: 48% !important;
    float: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* LIMITER TAILLE IMAGES PRODUITS */
.efp-fiche-produit .efp-products-section .thumbnail {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    margin-bottom: 0;
    overflow: hidden;
    height: 100%;
}

.efp-fiche-produit .efp-products-section .thumbnail:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.efp-fiche-produit .efp-products-section .product-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    object-fit: contain;
}

.efp-fiche-produit .efp-products-section .caption {
    text-align: center;
    padding: 10px 0 0 0;
}

.efp-fiche-produit .efp-products-section .caption h5 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.efp-fiche-produit .efp-products-section .caption p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* DESKTOP : Les 2 sections cÃ´te Ã  cÃ´te (â‰¥992px) */
@media screen and (min-width: 992px) {
    .efp-fiche-produit .efp-products-sections-wrapper {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        gap: 20px;
    }
    
    .efp-fiche-produit .efp-products-section {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        min-width: 0;
    }
}

/* MOBILE : Produits superposÃ©s (< 576px) */
@media screen and (max-width: 575px) {
    .efp-fiche-produit .efp-products-section .row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 20px;
    }
    
    .efp-fiche-produit .efp-products-section .col-md-6,
    .efp-fiche-produit .efp-products-section .col-md-3,
    .efp-fiche-produit .efp-products-section .col-sm-6 {
        width: 100% !important;
    }
    
    .efp-fiche-produit .efp-products-section .product-img {
        max-width: 200px;
    }
}

/* Clearfix dÃ©sactivÃ© (flexbox gÃ¨re tout) */
.efp-fiche-produit .efp-products-section .row:after {
    content: none;
    display: none;
}

/* Force la fermeture complète des accordéons */
.panel-body.collapse {
    height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: none !important;
}

.panel-body.collapse.in {
    height: auto !important;
    padding: 15px !important;
    overflow: visible !important;
}