/* ===================================
   Template Marques - Styles
   Typographie: Open Sans
   Couleurs: Noir et Blanc
   =================================== */

/* Container principal */
.marques-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Open Sans', sans-serif;
}

/* Header et titre */
.marques-header {
    text-align: center;
    margin-bottom: 50px;
}

.marques-title {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.4;
}

.marques-intro {
    font-size: 16px;
    line-height: 1.8;
    color: #666666;
    max-width: 900px;
    margin: 0 auto 30px;
    font-weight: 400;
}

/* Barre de recherche */
.marques-search {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    border: 2px solid #000000;
    border-radius: 50px;
    background: #ffffff;
    color: #000000;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
    color: #999999;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon svg {
    display: block;
}

/* Prédictions de recherche */
.search-predictions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.prediction-item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.prediction-item:last-child {
    border-bottom: none;
}

.prediction-item:hover,
.prediction-item.active {
    background: #f9f9f9;
}

.prediction-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.prediction-text strong {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
}

.prediction-type {
    font-size: 12px;
    color: #999999;
    font-weight: 400;
}

/* Scrollbar personnalisée pour les prédictions */
.search-predictions::-webkit-scrollbar {
    width: 6px;
}

.search-predictions::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 0 8px 8px 0;
}

.search-predictions::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
}

.search-predictions::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Grille des marques */
.marques-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Carte de marque */
.marque-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.marque-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #cccccc;
}

.marque-card-inner {
    position: relative;
    width: 100%;
}

/* Face avant de la carte */
.marque-front {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #ffffff;
    transition: opacity 0.3s ease;
}

.marque-card.expanded .marque-front {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
}

/* Logo */
.marque-logo {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.marque-logo-placeholder {
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 2px dashed #cccccc;
    margin-bottom: 20px;
}

.marque-logo-placeholder span {
    font-size: 18px;
    font-weight: 600;
    color: #666666;
    text-align: center;
    padding: 20px;
}

/* Bouton d'expansion avec texte */
.expand-arrow {
    background: transparent;
    border: none;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.marque-card:hover .expand-arrow {
    opacity: 1;
    visibility: visible;
}

.expand-text {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.expand-arrow:hover .expand-text {
    color: #666666;
    transform: translateX(3px);
}

/* Contenu étendu */
.marque-expanded {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

.marque-card.expanded .marque-expanded {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0);
}

/* Bouton de fermeture avec X */
.collapse-arrow {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
    z-index: 10;
}

.collapse-arrow:hover {
    background: #f5f5f5;
    border-color: #cccccc;
}

.close-x {
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

/* Informations bijouteries */
.bijouteries-info {
    margin-top: 40px;
}

.bijouteries-intro {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.6;
}

.bijouteries-intro.no-bijouterie {
    color: #666666;
    font-style: italic;
    text-align: center;
}

/* Liste des bijouteries */
.bijouteries-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bijouteries-list li {
    margin-bottom: 12px;
}

.bijouteries-list a {
    color: #000000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.bijouteries-list a:hover {
    color: #666666;
    transform: translateX(5px);
}

/* Override des styles Elementor */
.bijouteries-list a:hover,
.bijouteries-list a:focus,
.bijouteries-list a:active,
.bijouteries-list a:visited {
    color: #666666 !important;
    background: none !important;
    background-color: transparent !important;
}

.expand-arrow:hover,
.expand-arrow:focus,
.expand-arrow:active {
    background: transparent !important;
    background-color: transparent !important;
}

/* Message aucun résultat */
.no-search-results {
    text-align: center;
    padding: 80px 20px;
}

.no-search-results p {
    font-size: 18px;
    color: #666666;
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666666;
    grid-column: 1 / -1;
}

/* ===================================
   RESPONSIVE - TABLETTE
   =================================== */

@media screen and (max-width: 1024px) {
    .marques-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .marques-title {
        font-size: 28px;
    }

    .marques-intro {
        font-size: 15px;
    }

    .marques-container {
        padding: 50px 20px;
    }
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */

@media screen and (max-width: 768px) {
    .marques-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .marques-title {
        font-size: 24px;
    }

    .marques-intro {
        font-size: 14px;
        line-height: 1.6;
    }

    .marques-container {
        padding: 40px 15px;
    }

    .marques-header {
        margin-bottom: 35px;
    }

    .search-input {
        padding: 15px 45px 15px 18px;
        font-size: 15px;
    }

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

    /* Prédictions responsive */
    .search-predictions {
        max-height: 300px;
        border-radius: 6px;
    }

    .prediction-item {
        padding: 12px 16px;
    }

    .prediction-text strong {
        font-size: 14px;
    }

    .prediction-type {
        font-size: 11px;
    }

    .marque-front {
        padding: 25px;
        min-height: 180px;
    }

    .marque-logo {
        max-width: 250px;
        height: 160px;
    }

    .marque-logo-placeholder {
        width: 250px;
        height: 160px;
    }

    /* Sur mobile, le bouton est toujours visible */
    .expand-arrow {
        opacity: 1;
        visibility: visible;
    }

    .expand-text {
        font-size: 13px;
    }

    .marque-expanded {
        padding: 25px;
    }

    .collapse-arrow {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
    }

    .close-x {
        font-size: 20px;
    }

    .bijouteries-intro {
        font-size: 15px;
    }

    .bijouteries-list a {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .marques-title {
        font-size: 20px;
    }

    .marques-intro {
        font-size: 13px;
    }

    .search-input {
        font-size: 14px;
    }

    .marque-card {
        border-width: 1px;
    }

    .bijouteries-info {
        margin-top: 30px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marque-card {
    animation: fadeIn 0.5s ease-out backwards;
}

.marque-card:nth-child(1) { animation-delay: 0.05s; }
.marque-card:nth-child(2) { animation-delay: 0.1s; }
.marque-card:nth-child(3) { animation-delay: 0.15s; }
.marque-card:nth-child(4) { animation-delay: 0.2s; }
.marque-card:nth-child(5) { animation-delay: 0.25s; }
.marque-card:nth-child(6) { animation-delay: 0.3s; }

/* Effet de focus accessible */
.expand-arrow:focus,
.collapse-arrow:focus,
.search-input:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}