/* =============================================================================
   tarifs.css — Cartes Metro pour les tarifs
   =============================================================================
   Les cartes ont leur propre couleur de fond (dégradé) donc texte toujours
   en blanc à l'intérieur. Le reste s'adapte au thème dark/light.
   ============================================================================= */

.tarifs-wrap {
    --tarifs-text:      #1b1b1b;
    --tarifs-text-soft: #5a6271;
    --tarifs-bg-soft:   #f0f2f5;
    --tarifs-border:    #d8dde3;
    --tarifs-accent:    #0078d4;
}

.tarifs-wrap {
    max-width: 1100px;
    margin: 0 auto;
    color: var(--tarifs-text);
}

/* Intro */
.tarifs-intro {
    padding: 14px 18px;
    background: rgba(0, 120, 212, 0.08);
    border-left: 4px solid var(--tarifs-accent);
    border-radius: 0 6px 6px 0;
    margin: 0 0 20px;
    line-height: 1.55;
    color: var(--tarifs-text);
}

/* Alert */
.tarifs-alert {
    padding: 16px 20px;
    background: rgba(255, 185, 0, 0.12);
    border-left: 4px solid #ffb900;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

/* =============================================================================
   GRILLE DE CARTES
   ============================================================================= */
.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0 28px;
}

/* =============================================================================
   CARTE INDIVIDUELLE (avec dégradé de couleur en background)
   ============================================================================= */
.tarifs-card {
    padding: 22px 24px;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tarifs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
/* Petit motif géométrique discret en arrière-plan */
.tarifs-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

/* Header de la carte */
.tarifs-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.22);
    position: relative;
    z-index: 1;
}
.tarifs-card-icon {
    font-size: 30px;
    line-height: 1;
}
.tarifs-card-cat {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

/* Un forfait dans la carte (peut y en avoir plusieurs) */
.tarifs-forfait {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.tarifs-forfait:last-child { margin-bottom: 0; }

.tarifs-forfait-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

/* Le prix lui-même */
.tarifs-price {
    font-weight: 300;
    line-height: 1;
    margin: 6px 0 4px;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 1px;
}
.tarifs-price-int {
    font-size: 44px;
    font-weight: 200;
    letter-spacing: -1px;
}
.tarifs-price-dec {
    font-size: 22px;
    font-weight: 400;
    opacity: 0.9;
}
.tarifs-price-euro {
    font-size: 18px;
    font-weight: 400;
    margin-left: 4px;
    opacity: 0.95;
}

.tarifs-forfait-unit {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.75;
    margin-bottom: 12px;
}

/* Liste de détails (matin / midi / soir...) */
.tarifs-details {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
}
.tarifs-details li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.95);
}
.tarifs-detail-icon {
    flex-shrink: 0;
    font-size: 13px;
    width: 18px;
    text-align: center;
}
.tarifs-detail-text {
    flex: 1;
}

/* =============================================================================
   BOUTON TÉLÉCHARGEMENT
   ============================================================================= */
.tarifs-download {
    text-align: center;
    margin: 30px 0 20px;
}
.tarifs-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 26px;
    background: var(--tarifs-bg-soft);
    color: var(--tarifs-text);
    border: 2px solid var(--tarifs-border);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.tarifs-download-btn:hover {
    background: var(--tarifs-accent);
    color: #fff;
    border-color: var(--tarifs-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 212, 0.3);
}
.tarifs-download-btn span:first-child {
    font-size: 22px;
}

/* Footer note */
.tarifs-footer-note {
    margin: 18px 0 0;
    padding: 12px 16px;
    background: var(--tarifs-bg-soft);
    border-radius: 8px;
    font-size: 13px;
    color: var(--tarifs-text-soft);
    text-align: center;
}

/* =============================================================================
   MODE PAGE DIRECTE + SOMBRE
   =============================================================================
   Les cartes (avec dégradés) restent identiques car déjà colorées.
   On adapte juste les éléments hors cartes (intro, download).
   ============================================================================= */
body.page-tarifs:not(.light) .tarifs-wrap {
    --tarifs-text:      #ffffff;
    --tarifs-text-soft: rgba(255, 255, 255, 0.7);
    --tarifs-bg-soft:   rgba(255, 255, 255, 0.06);
    --tarifs-border:    rgba(255, 255, 255, 0.15);
    --tarifs-accent:    #4ba3e0;
}
body.page-tarifs:not(.light) .tarifs-card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 700px) {
    .tarifs-grid {
        grid-template-columns: 1fr;
    }
    .tarifs-card {
        padding: 18px 20px;
    }
    .tarifs-price-int {
        font-size: 36px;
    }
    .tarifs-card-cat {
        font-size: 16px;
    }
    .tarifs-download-btn {
        font-size: 13px;
        padding: 12px 20px;
    }
}
