/**
 * STR Reassurance v2.0 - CSS Responsive
 * Bandeau multilingue avec téléphone et avis Google
 * 
 * @author STR PERFORMANCE
 * @version 2.0.0
 */

/* ============================================
   RESET & BASE
   ============================================ */
.str-reassurance-banner,
.str-reassurance-banner * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================
   BANDEAU PRINCIPAL
   ============================================ */
.str-reassurance-banner {
    width: 100%;
    background-color: #232323;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    position: relative;
    z-index: 100;
}

/* Container */
.str-reass-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

/* ============================================
   ÉLÉMENTS INDIVIDUELS
   ============================================ */
.str-reass-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

/* Liens cliquables */
a.str-reass-item {
    cursor: pointer;
}

a.str-reass-item:hover {
    opacity: 0.85;
    text-decoration: none;
}

/* Icône SVG */
.str-reass-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.str-reass-icon svg {
    width: 18px;
    height: 18px;
}

/* Texte */
.str-reass-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.str-reass-text strong {
    font-weight: 600;
}

/* ============================================
   TÉLÉPHONE - Style spécial
   ============================================ */
.str-reass-phone {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.str-reass-phone:hover {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

/* ============================================
   AVIS GOOGLE - Étoiles
   ============================================ */
.str-reass-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.str-reass-stars svg {
    width: 14px;
    height: 14px;
    color: #fbbf24;
}

.str-reass-reviews .str-reass-text {
    gap: 5px;
}

.str-reass-count {
    opacity: 0.7;
    font-size: 11px;
}

/* ============================================
   RESPONSIVE - DESKTOP LARGE (>1200px)
   ============================================ */
@media (min-width: 1200px) {
    .str-reass-container {
        gap: 30px;
    }
    
    .str-reass-item {
        font-size: 13px;
    }
    
    .str-reass-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .str-reass-stars svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (992px - 1199px)
   ============================================ */
@media (min-width: 992px) and (max-width: 1199px) {
    .str-reass-container {
        gap: 20px;
        padding: 10px 15px;
    }
    
    .str-reass-item {
        font-size: 11px;
        gap: 6px;
    }
    
    .str-reass-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .str-reass-stars svg {
        width: 13px;
        height: 13px;
    }
    
    .str-reass-phone {
        padding: 5px 10px;
    }
}

/* ============================================
   RESPONSIVE - TABLETTE (768px - 991px)
   ============================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .str-reass-container {
        gap: 15px;
        padding: 10px;
    }
    
    .str-reass-item {
        font-size: 10px;
        gap: 5px;
    }
    
    .str-reass-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .str-reass-stars svg {
        width: 12px;
        height: 12px;
    }
    
    .str-reass-phone {
        padding: 4px 8px;
    }
    
    .str-reass-count {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (576px - 767px)
   ============================================ */
@media (min-width: 576px) and (max-width: 767px) {
    .str-reass-container {
        gap: 12px 18px;
        padding: 8px 10px;
    }
    
    .str-reass-item {
        font-size: 10px;
        gap: 4px;
    }
    
    .str-reass-icon svg {
        width: 13px;
        height: 13px;
    }
    
    .str-reass-stars svg {
        width: 11px;
        height: 11px;
    }
    
    .str-reass-phone {
        padding: 4px 8px;
    }
    
    .str-reass-count {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - MOBILE PORTRAIT (<576px)
   ============================================ */
@media (max-width: 575px) {
    .str-reass-container {
        gap: 8px 15px;
        padding: 8px;
        justify-content: center;
    }
    
    .str-reass-item {
        font-size: 9px;
        gap: 4px;
    }
    
    .str-reass-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .str-reass-stars svg {
        width: 10px;
        height: 10px;
    }
    
    .str-reass-phone {
        padding: 4px 6px;
        border-radius: 3px;
    }
    
    .str-reass-count {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - TRÈS PETIT (<420px)
   ============================================ */
@media (max-width: 419px) {
    .str-reass-container {
        gap: 6px 12px;
        padding: 6px;
    }
    
    .str-reass-item {
        font-size: 9px;
    }
    
    /* Masquer le texte descriptif, garder highlight */
    .str-reass-text {
        gap: 3px;
    }
    
    .str-reass-icon svg {
        width: 11px;
        height: 11px;
    }
    
    .str-reass-stars svg {
        width: 9px;
        height: 9px;
    }
}

/* ============================================
   COMPATIBILITÉ THÈMES
   ============================================ */
.str-reassurance-banner a {
    color: inherit;
    text-decoration: none;
    background: none;
    border: none;
}

.str-reassurance-banner a:hover,
.str-reassurance-banner a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.str-reassurance-banner svg {
    display: block;
    overflow: visible;
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */
.str-reass-item:focus-visible {
    outline: 2px solid #e85a4f;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .str-reass-item {
        transition: none;
    }
}

/* ============================================
   PRINT - Masquer à l'impression
   ============================================ */
@media print {
    .str-reassurance-banner {
        display: none !important;
    }
}
