/* ====================================
   CATALOGUE COLORANTS - STYLE ENCADRÉS LIGNE
   ==================================== */

/* Variables et thème général */

.tech-sheet-btn.disabled {
    background-color: #e8e8e8;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

:root {
    --hydro-color: #0066a0;
    --lipo-color: #b45f06;
    --border-light: #eaeef2;
    --border-hover: #d0d9e0;
    --text-primary: #2c3e50;
    --text-secondary: #5a6f7d;
}

/* Structure principale */
.color-category {
    max-width: 1000px;
    margin: 2.5rem auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

/* En-têtes de catégories */
.category-label {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1rem 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 2px solid;
}

.category-label.hydro {
    color: var(--hydro-color);
    border-bottom-color: var(--hydro-color);
    background: linear-gradient(90deg, rgba(0,102,160,0.03) 0%, transparent 100%);
}

.category-label.lipo {
    color: var(--lipo-color);
    border-bottom-color: var(--lipo-color);
    background: linear-gradient(90deg, rgba(180,95,6,0.03) 0%, transparent 100%);
}

/* Lignes de produits - Style encadré */
.color-line {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.8rem;
    padding: 0.8rem 2rem;
    margin: 0.5rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
    position: relative;
}

/* Effet de surbrillance au survol */
.color-line:hover {
    border-color: var(--border-hover);
    background: #fafcfd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* Style spécifique par type */
.color-line.hydro:hover {
    border-left: 4px solid var(--hydro-color);
    padding-left: calc(2rem - 2.5px);
}

.color-line.lipo:hover {
    border-left: 4px solid var(--lipo-color);
    padding-left: calc(2rem - 2.5px);
}

/* Échantillon circulaire */
.color-swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 2px solid white;
    outline: 1px solid #e0e7ed;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.color-line:hover .color-swatch {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Zone d'information */
.color-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.color-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Badge de type */
.color-type-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: white;
    border: 1.5px solid;
}

.color-type-badge.hydro {
    color: var(--hydro-color);
    border-color: var(--hydro-color);
    background: rgba(0,102,160,0.02);
}

.color-type-badge.lipo {
    color: var(--lipo-color);
    border-color: var(--lipo-color);
    background: rgba(180,95,6,0.02);
}

/* Bouton fiche technique */
.tech-sheet-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: white;
    border: 1.5px solid #dce3e9;
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    justify-self: end;
}

.tech-sheet-btn i {
    font-size: 0.9rem;
    color: #e74c3c;
}

.color-line.hydro .tech-sheet-btn:hover {
    background: var(--hydro-color);
    border-color: var(--hydro-color);
    color: white;
}

.color-line.hydro .tech-sheet-btn:hover i {
    color: white;
}

.color-line.lipo .tech-sheet-btn:hover {
    background: var(--lipo-color);
    border-color: var(--lipo-color);
    color: white;
}

.color-line.lipo .tech-sheet-btn:hover i {
    color: white;
}

/* Définitions des couleurs */
.color-swatch[data-color="vert-pistache"] { background: #7cb342; }
.color-swatch[data-color="jaune-tartazine"] { background: #f9a825; }
.color-swatch[data-color="curcuma"] { background: #ff9800; }
.color-swatch[data-color="rose"] { background: #f06292; }
.color-swatch[data-color="framboise"] { background: #c2185b; }
.color-swatch[data-color="rouge-ponceau"] { background: #d32f2f; }
.color-swatch[data-color="carmoisine"] { background: #b71c1c; }
.color-swatch[data-color="violet"] { background: #7b1fa2; }
.color-swatch[data-color="brun-chocolat"] { background: #5d4037; }
.color-swatch[data-color="noir"] { background: #212121; }
.color-swatch[data-color="orange"] { background: #f57c00; }
.color-swatch[data-color="bleu-brillant"] { background: #1976d2; }

/* Responsive Design */
@media screen and (max-width: 768px) {
    .color-line {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .color-info {
        justify-content: center;
        text-align: center;
    }
    
    .tech-sheet-btn {
        width: 100%;
        justify-content: center;
    }
    
    .color-swatch {
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .color-category {
        margin: 1rem;
    }
    
    .color-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-label {
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
    }
}


/* Boutons de navigation par thème */
.theme-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 0 15px;
}

.theme-nav .button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex: 0 1 auto;
    min-width: 140px;
}

.theme-nav .button.alt {
    background: #1e3b8f;
    border-color: #ddd;
    color: #666;
}

.theme-nav .button.alt.small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Style spécifique pour Hydrosolubles */
.theme-nav a[href="#hydro"] {
    border-color: var(--hydro, #2E7D32);
    color: var(--hydro, #2E7D32);
}

.theme-nav a[href="#hydro"]:hover {
    background: var(--hydro, #2E7D32);
    color: white;
}

/* Style spécifique pour Liposolubles */
.theme-nav a[href="#lipo"] {
    border-color: var(--lipo, #C43E00);
    color: var(--lipo, #C43E00);
}

.theme-nav a[href="#lipo"]:hover {
    background: var(--lipo, #C43E00);
    color: white;
}

/* Version mobile */
@media screen and (max-width: 480px) {
    .theme-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .theme-nav .button {
        width: 100%;
        max-width: 250px;
    }
}