/**
 * TELES HOSTING - Hosting Association Modal
 * Styles pour le modal de selection d'hebergement (Option B)
 * et les boutons "Aucun hebergement" remplaces.
 */

/* Overlay du modal */
.ha-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.ha-modal-dialog {
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
}

.ha-modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.ha-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.ha-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.ha-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

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

.ha-modal-body {
    padding: 20px 24px 24px;
}

.ha-modal-domain-info {
    margin-bottom: 20px;
    font-size: 15px;
    color: #666;
}

.ha-modal-domain-info strong {
    color: #333;
    font-size: 16px;
}

/* Grille des produits */
.ha-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.ha-product-card {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.ha-product-card:hover {
    border-color: #4a90d9;
    box-shadow: 0 4px 16px rgba(74, 144, 217, 0.15);
}

.ha-product-header {
    margin-bottom: 12px;
}

.ha-product-name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.ha-product-price {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #2d8659;
}

.ha-product-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
    text-align: left;
    width: 100%;
}

.ha-product-desc strong {
    color: #444;
}

.ha-product-select {
    width: 100%;
    white-space: nowrap;
}

/* Bouton "Aucun hebergement" remplace */
.ha-hosting-btn {
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.ha-hosting-btn:hover {
    opacity: 0.85;
}

/* Body quand le modal est ouvert */
body.ha-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 600px) {
    .ha-product-grid {
        grid-template-columns: 1fr;
    }
    .ha-modal-dialog {
        max-width: 100%;
    }
}
