/* Palette de couleurs RafaArt */
:root {
    --rafa-olive: #6B705C;
    --rafa-gold: #EAD088;
    --rafa-light: #F9F8F6;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --cf-secondary-rgb: 230, 203, 130;
}

/* Typographie et Couleurs générales */
.text-olive {
    color: var(--rafa-olive) !important;
}

.bg-olive {
    background-color: var(--rafa-olive) !important;
}

/* Cartes de Statistiques */
.stat-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.stat-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(107, 112, 92, 0.1);
    display: inline-block;
    padding-bottom: 4px;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
}

.stat-underline {
    width: 35px;
    height: 3px;
    background: #eee;
    border-radius: 5px;
}

/* Design des Cartes (Main & Sidebar) */
.custom-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-soft);
    padding: 0 10px 15px 10px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f8f8f8;
}

.card-header-flex h5 {
    font-family: 'Playfair Display', serif;
}

.view-all {
    color: var(--rafa-olive);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Tableau des Commandes */
.table thead th {
    background-color: #fcfcfc;
    color: #bbb;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    border: none;
}

.table td {
    padding: 1rem 0.5rem;
    border-color: #f9f9f9;
}

.order-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
}

/* Badges de Statut */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-confirmee {
    background: #e6f4ea;
    color: #1e7e34;
}

.status-en-attente {
    background: #fff3cd;
    color: #856404;
}

.status-expediee {
    background: #f0f0f0;
    color: #666;
}

.status-annulee {
    background: #fdecea;
    color: #d32f2f;
}

/* Profil & Coups de Coeur */
.avatar-container {
    border: 2px solid var(--rafa-gold);
    border-radius: 50%;
    padding: 3px;
}

.avatar-container.profile-avatar {
    background-color: #6B705C;
    border: 3px solid #EAD088;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.wish-item {
    transition: background 0.3s;
    cursor: pointer;
}

.wish-item:hover {
    background-color: #f8f8f8;
}

.wish-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

/* Sidebar Menu Design RafaArt */
.dashboard-sidebar-menu {
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    height: fit-content;
}

.sidebar-item {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-item a {
    color: #6c757d;
    /* Gris par défaut */
    font-weight: 500;
}

/* État Actif (comme sur l'image) */
.sidebar-item.active,
.sidebar-item:hover:not(.active) {
    background-color: #6B705C;
    border-left: 4px solid #EAD088;
}

.sidebar-item.active a {
    color: #ffffff !important;
    /* Texte Blanc */
}

.sidebar-item.active .sidebar-icon svg {
    fill: #ffffff;
    /* Icône Blanche */
}

.sidebar-item:hover a {
    color: #fff !important;
    /* Texte change en olive au survol */
}

/* Déconnexion Hover */
.sidebar-item .text-danger:hover {
    background-color: #fff5f5;
    color: #dc3545 !important;
}

.menu-text {
    font-size: 0.95rem;
}

.sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.card-header-flex .btn-icon {
    background-color: #fff;
}

.bg-secondary {
    --cf-bg-opacity: 1;
    background-color: rgba(var(--cf-secondary-rgb), var(--cf-bg-opacity)) !important;
}

.x-small {
    font-size: 0.75rem;
}

.btn-outline-olive {
    color: var(--rafa-olive);
    border-color: var(--rafa-olive);
}

.btn-outline-olive:hover {
    background: var(--rafa-olive);
    color: white;
}

.cursor-pointer {
    cursor: pointer;
}

.hover-red:hover {
    color: #dc3545 !important;
}

.pb-50 {
    padding-bottom: 50px !important;
}

.border-transparent {
    border-color: transparent !important;
}

.btn-link:hover {
    color: var(--rafa-olive) !important;
}

/* Effet au survol du bouton voir */
.hover-olive:hover {
    background-color: rgba(107, 112, 92, 0.1);
    color: var(--rafa-olive) !important;
}

/* Style spécifique pour les boutons de pagination */
.btn-white {
    background: #fff;
    color: #666;
}

.filter-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.filter-btn.active {
    border-bottom: 2px solid var(--rafa-olive);
    color: var(--rafa-olive);
    font-weight: bold;
}

/* --- Barre de recherche (Search) plus petite et stylisée --- */
.dataTables_wrapper .dataTables_filter input {
    padding-left: 38px !important;
    padding-right: 12px !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    height: 34px !important;
    width: 250px !important;
    background-color: #ffffff !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #6B705C !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(107, 112, 92, 0.1) !important;
}

/* --- Sélecteur de nombre de lignes (Length) --- */
.dataTables_wrapper .dataTables_length select {
    height: 32px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    padding: 2px 24px 2px 8px !important;
    border: 1px solid #E5E7EB !important;
}

/* --- Pagination plus petite (Mini boutons) --- */
.dataTables_wrapper .dataTables_paginate {
    padding-top: unset !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_paginate {
    float: none !important;
    width: fit-content !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 3px 10px !important;
    /* Plus petit */
    font-size: 0.75rem !important;
    /* Texte xs */
    margin-left: 2px !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    border: 1px solid #E5E7EB !important;
    color: #6B7280 !important;
    font-weight: 500 !important;
}

/* Bouton actif (Olive) */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #6B705C !important;
    color: white !important;
    border-color: #6B705C !important;
}

/* Boutons Précédent/Suivant discrets */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    border: none !important;
    background: transparent !important;
    text-decoration: underline;
    color: #6B705C !important;
}

/* --- Texte info (Affichage de 1 à 5...) --- */
.dataTables_info {
    font-size: 0.75rem !important;
    color: #9CA3AF !important;
    padding-top: 0 !important;
}

/* Alignement global du footer du tableau */
.dataTables_wrapper .flex-row {
    align-items: center;
}

.relative {
    position: relative;
}

.dataTables_filter {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.search-icon-wrapper {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #9CA3AF;
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* --- Mise en page Spécifique Détails Commande --- */

/* Conteneurs et cartes */
.rounded-xl {
    border-radius: 12px !important;
}

.bg-form {
    background-color: #e0e0e0 !important;
}

.bg-light-soft {
    background-color: #F9F8F6 !important;
}

/* Barrettes de progression (Timeline) */
.transition-all {
    transition: all 0.5s ease-in-out;
}

/* Cercles d'étapes */
.rounded-circle {
    width: 35px;
    height: 35px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

/* Badge de statut personnalisé */
.badge {
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 20px;
    text-transform: capitalize;
}

/* Couleurs de fond pour les alertes discrètes */
.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.05) !important;
}

.border-danger-light {
    border-color: rgba(220, 53, 69, 0.1) !important;
}

/* Hover effects pour les articles */
.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.hover-primary:hover {
    color: var(--rafa-olive) !important;
}

/* Séparateur d'articles */
.divide-y>div:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* Typographie display (Playfair) */
.font-display {
    font-family: 'Playfair Display', serif;
}

.font-display-style {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.p-style {
    max-width: 600px;
    margin: 20px auto 0 auto;
    line-height: 1.6;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.container-width-img {
    width: 120px;
    height: 120px;
}

@media (max-width: 575.5px) {
    .container-width-img {
        width: 100%;
        height: 100%;
    }
}

/* Ajustement pour les petits écrans */
@media (max-width: 768px) {
    .dashboard-content-wrap {
        padding: 10px;
    }

    .position-relative.py-4.px-5 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

.wishlist-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wishlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Bouton blanc pour le cœur */
.btn-white {
    background-color: white;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.1);
}

.aspect-ratio-box {
    overflow: hidden;
    background-color: #f8f9fa;
}

.object-fit-cover {
    object-fit: cover;
    width: 100%;
}

.wishlist-toggle {
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.wishlist-toggle:active {
    transform: scale(0.9);
}

.wishlist-toggle.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Style spécifique pour les cartes mobiles RafaArt */
@media (max-width: 991.98px) {
    .order-mobile-card {
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        border-left: 4px solid var(--rafa-olive) !important;
        /* Ligne verte olive à gauche */
        transition: transform 0.2s ease;
    }

    .order-mobile-img {
        width: 85px;
        height: 85px;
        object-fit: cover;
        border-radius: 10px;
        background-color: #f8f9fa;
    }

    /* Ajustement de la typographie mobile */
    .order-mobile-card h6 {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    /* Filtres horizontaux défilables */
    #orderFilters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 5px;
    }

    .filter-btn {
        white-space: nowrap;
        padding: 12px 15px !important;
        flex: 0 0 auto;
    }
}

/* Forcer l'icône "œil" à être centrée */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

/* Configuration par défaut (Style ligne pour mobile > 440px) */
.mobile-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.mobile-image-container {
    flex-shrink: 0;
    margin-right: 1rem;
}

.mobile-image-container img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 10px;
}

.mobile-info-container {
    flex-grow: 1;
    min-width: 0;
}

/* --- RUPTURE SPÉCIFIQUE À 440PX --- */
@media (max-width: 440px) {

    .card-stack-440 {
        /* On supprime la bordure gauche pour le mode colonne */
        border-left: none !important;
        border-top: 4px solid var(--rafa-olive) !important;
        /* Optionnel: mettre la bordure en haut au lieu de gauche */
    }

    .card-stack-440 .mobile-content-wrapper {
        flex-direction: column !important;
        /* Image au-dessus du texte */
        align-items: center;
    }

    .card-stack-440 .mobile-image-container {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .card-stack-440 .mobile-image-container img {
        width: 100% !important;
        /* Image pleine largeur */
        height: 180px !important;
        /* Image grande */
        border-radius: 12px;
    }

    .card-stack-440 .mobile-info-container {
        width: 100% !important;
    }

    .taille-mobile {
        font-size: 0.7rem !important;
    }

    .text-wrap-440 {
        white-space: normal !important;
    }
}

.skeleton-placeholder {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 4px;
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* Tailles spécifiques pour correspondre à vos cartes */
.img-skeleton {
    width: 85px;
    height: 85px;
    border-radius: 10px;
}

.badge-skeleton {
    width: 60px;
    height: 18px;
}

.date-skeleton {
    width: 80px;
    height: 14px;
}

.title-skeleton {
    width: 120px;
    height: 20px;
}

.text-skeleton {
    width: 80px;
    height: 12px;
}

.icon-skeleton {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.price-skeleton {
    width: 70px;
    height: 20px;
}

/* Adaptation pour le mode colonne sous 440px */
@media (max-width: 440px) {
    .skeleton-loading .mobile-image-container {
        width: 100%;
    }

    .skeleton-loading .img-skeleton {
        width: 100%;
        height: 180px;
    }
}

/* --- Styles Spécifiques Page Contact --- */

.hero-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/assets/img/hero-contact.png');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.contact-container {
    max-width: 1100px;
    margin: -50px auto 50px auto;
    position: relative;
    z-index: 10;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.contact-form-side {
    padding: 50px;
}

.contact-info-side {
    background-color: var(--rafa-light);
    padding: 50px;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rafa-olive);
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.form-control-rafa {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbc6c6;
    border-radius: 10px;
    background: #fcfcfc;
    transition: all 0.3s;
}

.form-control-rafa:focus {
    border-color: var(--rafa-olive);
    outline: none;
    background: #fff;
}

.btn-rafa-send {
    background-color: var(--rafa-olive);
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-rafa-send:hover {
    opacity: 0.9;
}

@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-side {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .contact-form-side,
    .contact-info-side {
        padding: 30px;
    }
}

/* Hero & Header */
/* --- GARDER VOTRE STYLE ORIGINAL ICI --- */
:root {
    --rafa-olive: #6B705C;
    --rafa-gold: #EAD088;
    --rafa-light: #F9F8F6;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-hero {
    background: linear-gradient(rgba(40, 42, 35, 0.7), rgba(40, 42, 35, 0.7)), url('/assets/img/hero-faq.png') center/cover;
    padding: 36px 20px 100px;
    text-align: center;
    color: white;
}

.faq-hero .top-content { padding-bottom: 90px; }

.faq-breadcrumb {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 25px;
}
.faq-breadcrumb a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.faq-gold-divider { width: 100px; height: 3px; background: var(--rafa-gold); margin: 25px auto; }

/* Search Bar */
.faq-search-container {
    max-width: 800px; margin: -40px auto 0; padding: 0 20px; position: relative; z-index: 10;
}

.faq-search-bar {
    background: #fff; display: flex; align-items: center; padding: 8px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); border: 1px solid #eee;
}
.faq-search-bar input { border: none; flex-grow: 1; padding: 12px; font-size: 1rem; width: 100%; }
.faq-search-bar input:focus { outline: none; }
.btn-rafa-search { background: var(--rafa-olive); color: white; border: none; padding: 12px 30px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; }

/* Accordion */
.faq-main-content { max-width: 1000px; margin: 80px auto; padding: 0 20px; }
.faq-category-header { display: flex; align-items: center; gap: 15px; border-bottom: 2px solid var(--rafa-light); padding-bottom: 15px; margin-bottom: 30px; color: var(--rafa-olive); }
.faq-custom-details { background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; margin-bottom: 15px; transition: all 0.3s ease; }
.faq-custom-details[open] { border-color: var(--rafa-olive); box-shadow: var(--shadow-soft); }
.faq-custom-summary { padding: 22px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1.1rem; }
.faq-custom-summary::-webkit-details-marker { display: none; }
.faq-icon { transition: transform 0.3s ease; }
.faq-custom-details[open] .faq-icon { transform: rotate(180deg); color: var(--rafa-olive); }
.faq-custom-body { padding: 0 22px 22px; color: #666; line-height: 1.7; }

/* Footer CTA */
.faq-footer-cta { background: var(--rafa-light); border-radius: 20px; padding: 60px 40px; text-align: center; margin-top: 80px; }
.faq-social-icons { display: flex; justify-content: center; gap: 15px; margin: 25px 0; }
.social-link { width: 45px; height: 45px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--rafa-olive); text-decoration: none; transition: 0.3s; box-shadow: var(--shadow-soft); }
.social-link:hover { background: var(--rafa-olive); color: white; transform: translateY(-3px); }
.faq-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.btn-rafa-olive { background: var(--rafa-olive); color: white !important; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.btn-rafa-outline { background: white; border: 1px solid #ddd; padding: 15px 35px; border-radius: 50px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }

/* --- AJOUTS POUR LE RESPONSIVE --- */

@media (max-width: 768px) {
    .faq-hero { padding: 40px 15px 80px; }
    .faq-hero .top-content { padding-bottom: 40px; }
    .faq-hero h2 { font-size: 2rem !important; }
    
    .faq-search-container { margin-top: -30px; }
    .btn-rafa-search { padding: 10px 15px; font-size: 0.85rem; }
    
    .faq-main-content { margin: 50px auto; }
    .faq-custom-summary { padding: 15px; font-size: 1rem; }
    
    .faq-footer-cta { padding: 40px 20px; }
    .faq-actions { flex-direction: column; }
    .btn-rafa-olive, .btn-rafa-outline { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .faq-breadcrumb { font-size: 0.7rem; }
    .faq-search-bar input { font-size: 0.85rem; padding: 10px 5px; }
}