:root {
    --corps-de-texte: #515151;
    --jaune: #F7CA39;
    --bleu-fonce: #2B4678;
    --blanc: #F8F8F8;
    --gris-border: #E4E4E4;
    --gris: #F1F1F1;
    --noir: #242526;
    --blanc-textes: #FAFAFA;
}

/* ================================
   CONTAINER PRINCIPAL
   ================================ */
.custom-product-container {
    width: 100%;
    max-width: 600px;
    margin: 20px 0;
}

/* ================================
   SECTION VARIATIONS
   ================================ */
.variations-container {
    margin-bottom: 30px;
}

.variation-selector {
    margin-bottom: 24px;
}

/* Classe 1 */
.variation-label {
    color: var(--corps-de-texte);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 17.64px;
    word-wrap: break-word;
    display: block;
    margin-bottom: 12px;
}

.variation-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Custom Select */
.custom-select {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.select-display {
    width: 100%;
    height: 60px;
    padding: 0 20px;
    background: var(--blanc);
    border: 1px solid var(--gris-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select.active .select-display {
    border-color: var(--bleu-fonce);
    box-shadow: 0 0 0 2px rgba(43, 70, 120, 0.1);
}

.select-indicator {
    width: 12px;
    height: 12px;
    background: var(--jaune);
    border-radius: 50%;
    margin-right: 16px;
}

.select-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Sélectionnez une option : */
.selected-value {
    color: var(--corps-de-texte);
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 16.38px;
    word-wrap: break-word;
}

.value-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-arrow {
    width: 6px;
    height: 10px;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.custom-select.active .select-arrow {
    transform: rotate(90deg);
}

/* Dropdown Options */
.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    border: 1px solid var(--gris-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.custom-select.active .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 16px 20px;
    color: var(--corps-de-texte);
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 16.38px;
    word-wrap: break-word;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.select-option:hover {
    background-color: rgba(43, 70, 120, 0.05);
}

.select-option.selected {
    background-color: var(--jaune);
    color: var(--bleu-fonce);
    font-weight: 600;
}

.select-option:first-child {
    border-radius: 16px 16px 0 0;
}

.select-option:last-child {
    border-radius: 0 0 16px 16px;
}

/* Help Section */
.help-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.help-link:hover .help-text {
    color: var(--bleu-fonce);
}

/* Quelle classe choisir */
.help-text {
    color: var(--corps-de-texte);
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-decoration: underline;
    line-height: 16.38px;
    word-wrap: break-word;
}

.help-icon {
    width: 30px;
    height: 30px;
    position: relative;
}

.help-icon-bg {
    width: 30px;
    height: 30px;
    background: var(--bleu-fonce);
    border-radius: 50%;
}

/* ? */
.help-icon-question {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--corps-de-texte);
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 16.38px;
    word-wrap: break-word;
}

/* ================================
   SECTION PRIX ET ACTIONS
   ================================ */
.price-action-container {
    width: 100%;
    padding: 24px 20px;
    background: var(--gris);
    border-radius: 24px;
    border: 1px solid rgba(43, 70, 120, 0.46);
    margin: 20px 0;
}

.price-action-content {
    width: 100%;
    max-width: 535px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Section Prix */
.price-section {
    max-width: 473px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* À partir de */
.price-label {
    color: var(--bleu-fonce);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 22.40px;
    word-wrap: break-word;
}

/* 760,00€ */
.price-main {
    color: var(--jaune);
    font-size: 26px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    line-height: 28.60px;
    word-wrap: break-word;
}

/* HT */
.price-ht {
    color: var(--jaune);
    font-size: 20px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    line-height: 22px;
    word-wrap: break-word;
}

/* - */
.price-separator {
    color: var(--bleu-fonce);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 22.40px;
    word-wrap: break-word;
}

/* 912,00€ */
.price-ttc {
    color: var(--jaune);
    font-size: 20px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    line-height: 22px;
    word-wrap: break-word;
}

/* TTC */
.price-ttc-label {
    color: var(--jaune);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 22.40px;
    word-wrap: break-word;
}

/* Section Actions */
.action-section {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Sélecteur de quantité */
.quantity-selector {
    width: 86px;
    height: 44px;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid rgba(43, 70, 120, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
}

.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.qty-btn:hover {
    opacity: 0.7;
}

.minus-icon {
    width: 10px;
    height: 1.6px;
    background: var(--bleu-fonce);
}

/* 01 */
.qty-display {
    color: var(--bleu-fonce);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 17.64px;
    word-wrap: break-word;
    min-width: 20px;
    text-align: center;
}

.plus-icon {
    width: 9px;
    height: 9px;
    background: var(--bleu-fonce);
    position: relative;
}

.plus-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 9px;
    background: var(--gris);
}

.plus-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 1px;
    background: var(--gris);
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-add-cart,
.btn-quote {
    height: 44px;
    padding: 2px 8px 2px 20px;
    border-radius: 30px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart {
    background: var(--jaune);
}

.btn-quote {
    background: var(--noir);
}

/* Ajouter au panier */
.btn-add-cart .btn-text {
    color: var(--bleu-fonce);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 17.64px;
    word-wrap: break-word;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

/* Demander un devis */
.btn-quote .btn-text {
    color: var(--blanc-textes);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 17.64px;
    word-wrap: break-word;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.btn-icon {
    width: 30px;
    height: 30px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}

/* Icônes des boutons */
.cart-icon-bg,
.quote-icon-bg {
    width: 30px;
    height: 30px;
    background: var(--blanc);
    border-radius: 50%;
}

.cart-wheel {
    position: absolute;
    width: 2.33px;
    height: 2.33px;
    background: var(--bleu-fonce);
    border-radius: 50%;
    top: 19.67px;
}

.cart-wheel-1 {
    left: 10.92px;
}

.cart-wheel-2 {
    left: 16.75px;
}

.cart-handle {
    position: absolute;
    width: 4.67px;
    height: 4.67px;
    left: 17.33px;
    top: 8px;
    background: var(--bleu-fonce);
}

.cart-body {
    position: absolute;
    width: 13.18px;
    height: 11.08px;
    left: 8px;
    top: 8px;
    background: var(--bleu-fonce);
}

.quote-icon-symbol {
    position: absolute;
    width: 14px;
    height: 12px;
    left: 8px;
    top: 9px;
    background: var(--noir);
}

/* Section Contact */
.contact-section {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.callback-section {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.callback-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Demander à être rappelé */
.callback-text {
    color: var(--corps-de-texte);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    text-decoration: underline;
    line-height: 17.64px;
    word-wrap: break-word;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.phone-icon {
    width: 30px;
    height: 30px;
    position: relative;
}

.phone-icon-bg {
    width: 30px;
    height: 30px;
    background: var(--bleu-fonce);
    border-radius: 50%;
}

.phone-icon-symbol {
    position: absolute;
    width: 15.6px;
    height: 13.2px;
    left: 7.2px;
    top: 8.4px;
    background: var(--blanc);
}

/* Nos experts vous répondent du lundi au vendredi, de 9h à 12h, et de 14h à 16h30. */
.contact-hours {
    width: 258px;
    opacity: 0.8;
    color: var(--corps-de-texte);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 17.64px;
    word-wrap: break-word;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

/* ================================
   ANIMATIONS ET INTERACTIONS
   ================================ */
.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 202, 57, 0.3);
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 37, 38, 0.3);
}

.quantity-selector:hover {
    border-color: var(--bleu-fonce);
}

.callback-link:hover .callback-text {
    color: var(--bleu-fonce);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .custom-product-container {
        margin: 15px 0;
    }
    
    .variation-wrapper {
        gap: 8px;
    }
    
    .custom-select {
        max-width: 100%;
    }
    
    .select-display {
        height: 50px;
        padding: 0 15px;
    }
    
    .help-section {
        justify-content: center;
    }
    
    .price-action-container {
        padding: 20px 15px;
    }
    
    .price-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .action-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        width: 100%;
    }
    
    .quantity-selector {
        align-self: flex-start;
    }
    
    .action-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .btn-add-cart,
    .btn-quote {
        flex: 1;
        min-width: 160px;
    }
    
    .callback-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-hours {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .price-action-container {
        padding: 15px 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-add-cart,
    .btn-quote {
        width: 100%;
        min-width: auto;
    }
    
    .variation-label {
        font-size: 12px;
    }
    
    .select-display {
        height: 45px;
        padding: 0 12px;
    }
    
    .selected-value {
        font-size: 12px;
    }
}

/* ================================
   ÉTATS DE CHARGEMENT
   ================================ */
.custom-product-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.custom-product-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--bleu-fonce);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================
   UTILITAIRES
   ================================ */
.hidden-select {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}