/* Cartes d'offres de la page Hébergement. Fichier statique : pas de recompilation du thème.
   Couleurs et rayons viennent des variables du site, donc du mode clair/sombre. */

.mdev-page-hebergement .hosting .m-container {
    max-width: 1360px;
}

.mdev-page-hebergement .hosting-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

/* 4 offres par plateforme : 4 colonnes, puis 2 x 2, puis 1 colonne (jamais de carte isolée) */
.mdev-page-hebergement .hosting-card {
    flex: 0 1 calc((100% - 60px) / 4);
    min-width: 0;
    padding: 28px 22px 22px;
    border: 1px solid var(--m-color-border);
    border-radius: 16px;
    text-align: left;
}
.mdev-page-hebergement .hosting-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--m-shadow-lg);
    border-color: var(--m-color-primary);
}
.mdev-page-hebergement .hosting-card.popular {
    border: 2px solid var(--m-color-primary);
    box-shadow: var(--m-shadow-md);
    transform: none;
}
.mdev-page-hebergement .hosting-card.popular:hover {
    transform: translateY(-4px);
    box-shadow: var(--m-shadow-lg);
}
.mdev-page-hebergement .hosting-card.popular .popular-badge {
    padding: 4px 12px;
    font-size: 12px;
}

.mdev-page-hebergement .hc-tagline {
    min-height: 2.8em;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--m-color-text-light);
}
.mdev-page-hebergement .hosting-name {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    text-align: left;
}

.mdev-page-hebergement .hosting-price {
    justify-content: flex-start;
    gap: 4px;
    margin: 0 0 8px;
}
.mdev-page-hebergement .price-current {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--m-color-text);
}
.mdev-page-hebergement .price-period {
    font-size: 15px;
}
.mdev-page-hebergement .hc-price-note {
    min-height: 20px;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--m-color-text-light);
}

/* La place reste réservée en mensuel : les cartes ne changent pas de hauteur à la bascule */
.mdev-page-hebergement .hc-saving {
    min-height: 26px;
    margin: 8px 0 0;
    visibility: hidden;
}
.mdev-page-hebergement .hc-saving.is-visible {
    visibility: visible;
}
.mdev-page-hebergement .hc-saving span {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #b2f2bb;
    color: #1b5e20;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
}

.mdev-page-hebergement .hc-divider {
    width: 100%;
    height: 0;
    margin: 20px 0;
    border: 0;
    border-top: 1px solid var(--m-color-border);
}

.mdev-page-hebergement .hc-details {
    flex-grow: 1;
    margin-bottom: 24px;
}
.mdev-page-hebergement .hc-specs {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mdev-page-hebergement .hc-specs li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    color: var(--m-color-text);
}
.mdev-page-hebergement .hc-specs-small {
    gap: 8px;
}
.mdev-page-hebergement .hc-specs-small li {
    font-size: 14px;
    font-weight: 400;
    color: var(--m-color-text-light);
}
.mdev-page-hebergement .hc-icon {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--m-color-text-light);
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mdev-page-hebergement .hc-icon-check {
    stroke: var(--m-color-success);
}

.mdev-page-hebergement .hc-extra {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--m-color-border);
}
.mdev-page-hebergement .hc-extra-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--m-color-text);
}
.mdev-page-hebergement .hc-note {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--m-color-text-light);
}

.mdev-page-hebergement .hc-hint {
    position: relative;
    border-bottom: 1px dashed var(--m-color-text-light);
    cursor: help;
}
.mdev-page-hebergement .hc-hint:focus-visible {
    outline: 2px solid var(--m-color-primary);
    outline-offset: 2px;
}
.mdev-page-hebergement .hc-hint-text {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 5;
    width: max-content;
    max-width: 220px;
    padding: 6px 10px;
    border: 1px solid var(--m-color-border);
    border-radius: var(--m-radius-md);
    background: var(--m-color-bg-card);
    box-shadow: var(--m-shadow-lg);
    font-size: 13px;
    font-weight: 500;
    color: var(--m-color-text);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
}
.mdev-page-hebergement .hc-hint:hover .hc-hint-text,
.mdev-page-hebergement .hc-hint:focus .hc-hint-text {
    opacity: 1;
    visibility: visible;
}

.mdev-page-hebergement .hosting-card .btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: auto;
}
.mdev-page-hebergement .hosting-card .hc-order {
    border: 1px solid var(--m-color-border);
    background: transparent;
    color: var(--m-color-text);
    font-weight: 600;
    text-decoration: none;
}
.mdev-page-hebergement .hosting-card .hc-order:hover {
    border-color: var(--m-color-primary);
    background: var(--m-color-primary);
    color: #fff;
}

@media (max-width: 1199px) {
    .mdev-page-hebergement .hosting-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}
@media (max-width: 640px) {
    .mdev-page-hebergement .hosting-card {
        flex-basis: 100%;
    }
    .mdev-page-hebergement .hc-tagline {
        min-height: 0;
    }
}
