/* fr-ui.css : bundle des feuilles promo-banner, sticky-search, autocomplete et quick-links (une seule requête bloquante au lieu de quatre) */

/* ===== promo-banner.css ===== */
/* Bandeau promotionnel - masqué par défaut */
.promo-banner {
    display: none !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 12px 0;
    text-align: center;
    width: 100%;
    position: fixed;
    top: 55px;
    left: 0;
    z-index: 999998;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Classe pour afficher le bandeau uniquement sur /fr/ */
.promo-banner.show {
    display: block !important;
}

/* Ajuster le main-container pour compenser le header fixe (55px) + bandeau (environ 40px) = 95px */
/* Appliquer uniquement quand le bandeau est visible */
body:has(.promo-banner.show) .main-container {
    padding-top: 95px !important;
}

.promo-banner .container {
    max-width: 1400px;
}

.promo-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    display: inline-block;
}

.promo-text strong {
    font-weight: 700;
    font-size: 16px;
}

.promo-date {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
    font-style: italic;
}

/* Bouton de fermeture du bandeau */
.promo-banner .container { position: relative; }
.promo-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0 !important;
}
.promo-close:hover, .promo-close:focus-visible { background: rgba(255, 255, 255, 0.15); outline: none; }
.promo-text { padding-right: 40px; }

@media (max-width: 767px) {
    .promo-banner {
        padding: 10px 0;
    }
    
    .promo-text {
        font-size: 13px;
        line-height: 1.4;
        padding-right: 36px;
    }
    
    .promo-text strong {
        font-size: 13px;
    }
    
    .promo-date {
        font-size: 13px;
        display: block;
        margin-top: 4px;
    }
    
    .promo-close {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
}

/* Styles pour le champ code promo - version simplifiée */
.promo-code-section {
    margin-bottom: 12px;
}

.promo-code-title {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 6px;
    color: #666;
    display: inline-block;
    margin-right: 10px;
}

.promo-code-input-group {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.promo-code-input {
    width: 150px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    transition: border-color 0.3s ease;
    height: 32px;
}

.promo-code-input:focus {
    outline: none;
    border-color: #f77f00;
}

.promo-code-btn {
    padding: 5px 12px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 32px;
}

.promo-code-btn:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

.promo-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.promo-code-message {
    margin-top: 6px;
    margin-left: 0;
    font-size: 12px;
    font-weight: 500;
    min-height: 16px;
    display: block;
}

/* Masquer le bloc code promo quand le code est appliqué */
.promo-code-section.hidden {
    display: none;
}

/* Styles pour l'affichage de la réduction après application du code */
.promo-discount-display {
    margin-bottom: 12px;
    padding: 8px 0;
}

.promo-discount-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.promo-discount-label {
    color: #666;
}

.promo-discount-amount {
    color: #28a745;
    font-weight: 600;
}

.promo-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    font-size: 15px;
    font-weight: 600;
}

.promo-total-label {
    color: #333;
}

.promo-total-amount {
    color: #28a745;
    font-weight: 700;
    font-size: 16px;
}

.promo-code-message.success {
    color: #28a745;
}

.promo-code-message.error {
    color: #dc3545;
}

/* Styles pour l'affichage détaillé du prix avec réduction */
.price-breakdown {
    text-align: right;
    display: inline-block;
    min-width: 200px;
}

.price-line {
    margin-bottom: 4px;
    line-height: 1.5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.price-line:last-child {
    margin-bottom: 0;
}

.price-label {
    font-size: 12px;
    color: #666;
    margin-right: 10px;
    white-space: nowrap;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

.discount-line {
    color: #28a745;
}

.discount-line .price-label {
    color: #28a745;
    font-size: 12px;
}

.price-discount-amount {
    color: #28a745;
    font-weight: 600;
    font-size: 13px;
}

.total-line {
    border-top: 2px solid #e0e0e0;
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 0;
}

.total-line .price-label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.price-discounted {
    color: #28a745;
    font-weight: 700;
    font-size: 18px;
}

@media (max-width: 767px) {
    .price-breakdown {
        min-width: auto;
        width: 100%;
    }
    
    .price-line {
        justify-content: space-between;
    }
    
    .price-label {
        font-size: 11px;
        margin-right: 5px;
    }
    
    .price-original,
    .price-discount-amount {
        font-size: 12px;
    }
    
    .total-line .price-label {
        font-size: 13px;
    }
    
    .price-discounted {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .promo-code-section {
        padding: 10px 12px;
    }
    
    .promo-code-title {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .promo-code-input-group {
        flex-direction: column;
    }
    
    .promo-code-input {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .promo-code-btn {
        width: 100%;
        padding: 7px 14px;
        font-size: 12px;
    }
    
    .promo-code-message {
        font-size: 11px;
        margin-top: 6px;
    }
}

/* ===== sticky-search.css ===== */
/* Barre de recherche sticky */
.sticky-search-bar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 997;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.sticky-search-bar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Container */
.sticky-search-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Logo */
.sticky-search-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    color: #333;
    font-size: 18px;
    white-space: nowrap;
}

.sticky-search-logo img {
    margin-right: 8px;
}

.sticky-search-logo .logo-light {
    font-weight: 300;
}

/* Wrapper de recherche */
.sticky-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 400px;
    position: relative;
}

/* Input */
.sticky-search-input {
    height: 38px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 0 18px;
    width: 100%;
    background: #f8f8f8;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.sticky-search-input:focus {
    border-color: #333;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.sticky-search-input::placeholder {
    color: #999;
}

/* Bouton reset DANS l'input - CACHÉ */
.sticky-reset-btn {
    display: none !important;
}

/* Bouton submit EXTERNE */
.sticky-submit-btn {
    background: #333 !important;
    border: none !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.sticky-submit-btn:hover {
    background: #000 !important;
    transform: scale(1.05) !important;
}

.sticky-submit-btn svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    fill: #fff !important;
}

/* Responsive - Tablette */
@media (max-width: 991px) {
    .sticky-search-logo {
        font-size: 16px;
    }
    
    .sticky-search-logo img {
        width: 28px;
        height: 28px;
    }
    
    .sticky-search-wrapper {
        flex: 0 1 350px;
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .sticky-search-bar {
        top: 50px;
        padding: 10px 0;
    }
    
    .sticky-search-bar .container {
        padding: 0 12px;
        gap: 8px;
    }
    
    .sticky-search-logo {
        display: none;
    }
    
    .sticky-search-wrapper {
        flex: 1;
    }
    
    .sticky-search-input {
        height: 38px;
        font-size: 14px;
        padding: 0 16px;
    }
    
    .sticky-submit-btn {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
    }
    
    .sticky-submit-btn svg {
        width: 15px !important;
        height: 15px !important;
        max-width: 15px !important;
        max-height: 15px !important;
    }
}

/* Icônes SVG cachées */
.sticky-svg-icons {
    display: none;
}

/* Style de l'autocomplétion */
.ui-autocomplete {
    z-index: 9999 !important;
}

/* ===== autocomplete.css ===== */
/* Style pour l'autocomplétion */
.ui-autocomplete {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-width: 100vw !important;
}

@media (max-width: 767px) {
    .ui-autocomplete {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
    }
}

.ui-autocomplete .ui-menu-item {
    padding: 0;
    background-color: #ffffff;
}

.ui-autocomplete .ui-menu-item a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.ui-autocomplete .ui-menu-item:last-child a {
    border-bottom: none;
}

.ui-autocomplete .ui-menu-item a:hover,
.ui-autocomplete .ui-menu-item a.ui-state-active {
    background-color: #f5f5f5 !important;
    border: none;
    margin: 0;
}

.autocomplete-label {
    flex: 1;
    line-height: 1.4;
    color: #333;
}

.ui-menu-item-highlight {
    font-weight: bold;
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 2px;
}

/* ===== quick-links.css ===== */
/* Section sans padding top */
.no-padding-top {
    padding-top: 0px !important;
}

/* Liste centrée */
.centered-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

/* Styles pour les liens rapides (cartes de navigation) */
.quick-link-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #333;
    text-decoration: none;
    color: #333;
}

.quick-link-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.quick-link-icon svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}

.quick-link-card:hover .quick-link-icon {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    transform: scale(1.1);
}

.quick-link-card:hover .quick-link-icon svg {
    stroke: #ffffff;
}

.quick-link-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
    text-align: center;
}

.quick-link-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 767px) {
    .quick-link-card {
        padding: 18px 12px;
    }
    
    .quick-link-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }
    
    .quick-link-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .quick-link-card h3 {
        font-size: 14px;
    }
    
    .quick-link-card p {
        font-size: 11px;
    }
}

/* ===== Ajouts SEO / UX (audit septembre 2026) ===== */
/* Prix et appel à l'action visibles sans défiler sur mobile */
.mobile-price { display: none; }
@media (max-width: 991px) {
    .mobile-price {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px 16px;
        margin: 0 auto 22px;
        padding: 12px 16px;
        border: 1px solid #e6e6e6;
        border-radius: 8px;
        background: #fff;
        max-width: 520px;
    }
    .mobile-price .mp-old { color: #999; text-decoration: line-through; font-size: 15px; }
    .mobile-price .mp-new { color: #000; font-size: 22px; font-weight: 700; }
    .mobile-price .mp-cta { display: inline-block; background: #f77f00; color: #fff !important; font-weight: 600; padding: 10px 18px; border-radius: 6px; text-decoration: none; }
}
/* Image produit : espace réservé (évite le décalage de mise en page) */
.bloka .phot { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: contain; }
/* Maillage : autres départements de la région */
.dept-links { margin: 10px auto 30px; max-width: 900px; text-align: center; }
.dept-links h2 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.dept-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dept-links li a { display: inline-block; padding: 6px 12px; border: 1px solid #ddd; border-radius: 20px; font-size: 14px; color: #222; background: #fff; text-decoration: none; }
.dept-links li a:hover { border-color: #f77f00; color: #f77f00; }
/* Bloc réassurance paiement */
.reassurance { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: #444; margin: -10px auto 26px; }
.reassurance span::before { content: "¹3"; color: #2e7d4f; font-weight: 700; margin-right: 6px; }
