body {
    font-family: 'Montserrat', sans-serif;
}

.tarifs-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tarifs-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #333;
}

.cartes-produits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.carte-produit {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.carte-produit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carte-produit img {
    width: 150px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.carte-produit h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 10px;
}

.carte-produit .marque {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.voir-tarifs-btn {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.voir-tarifs-btn:hover {
    background: linear-gradient(135deg, #ffae00, #ff8800);
}

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.modal-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #333;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.tarifs-table th,
.tarifs-table .title {
    padding: 12px;
    font-size: 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tarifs-table th,
.tarifs-table .prix-generique,
.prix-relife,
.prix-officiel {
    padding: 12px;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.tarifs-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.tarifs-table tr:hover {
    background: #f8f9fa;
}

.prix-generique {
    color: black;
}

.prix-officiel {
    color: black;
}

.description-generique {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.description-generique h4 {
    color: #28a745;
    margin-bottom: 10px;
}

.description-generique p {
    line-height: 1.6;
    color: #333;
}

/* Styles pour le sélecteur de réparations (boutons) */
.repair-selector {
    margin-bottom: 12px;
}

.repair-btn {
    background: transparent;
    border: 2px solid #ddd;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.repair-btn:hover {
    transform: translateY(-2px);
    border-color: #bbb;
}

.repair-btn.active {
    background: #2c3e50;
    /* couleur principale foncée */
    color: #ffffff;
    border-color: #2c3e50;
}

/* Petit ajustement pour le tableau lorsqu'une seule ligne est affichée */
.repair-details .tarifs-table tbody tr td {
    padding: 14px 10px;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .repair-btn {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .carte-produit img {
        width: 120px;
        height: 160px;
    }
}

/* Styles pour la colonne Bolt */
.prix-bolt, th.prix-bolt {
text-align: center;
    border-bottom: 1px solid #ddd;
}

/* Classe utilitaire pour cacher les éléments */
.hidden {
    display: none !important;
}

/* Ajustement responsive pour le tableau si une colonne en moins */
@media (max-width: 480px) {
    .tarifs-table th, .tarifs-table td {
        font-size: 0.95rem;
        padding: 10px 6px;
    }
}