/* ============================================================
   Life'Scape — Tarifs & Horaires
   ============================================================
   Couleurs reprises du site, jamais inventées :
     #DEDBC3  parchemin (fond de page)
     #f5f3eb  crème (fond des blocs)
     #483c3c  brun du texte
     #C19A59  or des accents
   Polices : Gelasio (titres), Work Sans (courant), Montserrat (tableaux)
   ============================================================ */

.tarifs-page {
    background: #DEDBC3;
}

.tarifs-page .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Titres de section, communs --- */

.tarifs-h2 {
    font-family: Gelasio, serif;
    font-size: 34px;
    font-weight: 700;
    color: #483c3c;
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.25;
}

/* Filet doré sous chaque titre : le repère visuel des sections du site. */
.tarifs-h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    background: #C19A59;
    margin: 16px auto 38px;
}

/* --- En-tête --- */

/* 250 px en haut : c'est la valeur employée par toutes les pages du site
   (.slider-price, .escape-game-booking...). Elle dégage le bord déchiré de
   l'en-tête, qui recouvrait le fil d'Ariane avec une valeur plus faible. */
.tarifs-hero {
    padding: 250px 0 50px;
    text-align: center;
}

.tarifs-hero .breadcrum {
    text-align: left;
    margin-bottom: 30px;
}

.tarifs-hero h1 {
    font-family: Gelasio, serif;
    font-size: 46px;
    font-weight: 700;
    color: #483c3c;
    margin: 0 0 18px;
    line-height: 1.15;
}

.tarifs-hero__intro {
    font-family: 'Work Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #5c4f4f;
    max-width: 640px;
    margin: 0 auto;
}

/* --- Le barème --- */

.tarifs-bareme {
    padding: 30px 0 70px;
}

/* Grille, et non carrousel : les cinq paliers doivent se lire d'un coup
   d'œil, dans l'ordre, pour que la dégressivité saute aux yeux. `auto-fit`
   les répartit sans jamais laisser de carte orpheline sur une ligne. */
.tarifs-grille {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    align-items: stretch;
}

.tarifs-carte {
    background: #f5f3eb;
    border-radius: 12px;
    padding: 28px 18px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(72, 60, 60, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tarifs-carte:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 26px rgba(72, 60, 60, 0.14);
}

/* Le meilleur prix est signalé, pas crié : une bordure dorée et un ruban. */
.tarifs-carte--best {
    border: 2px solid #C19A59;
    padding-top: 34px;
}

.tarifs-carte__ruban {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #C19A59;
    color: #fff;
    font-family: 'Work Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.tarifs-carte__joueurs {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a7a7a;
    margin: 0 0 14px;
}

.tarifs-carte__prix {
    font-family: Gelasio, serif;
    font-size: 46px;
    font-weight: 700;
    color: #483c3c;
    line-height: 1;
    margin: 0 0 12px;
}

.tarifs-carte--best .tarifs-carte__prix {
    color: #C19A59;
}

.tarifs-carte__euro {
    font-size: 26px;
    vertical-align: super;
    margin-left: 2px;
}

.tarifs-carte__unite {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #8a7a7a;
    margin-top: 8px;
}

.tarifs-carte__total {
    font-family: 'Work Sans', sans-serif;
    font-size: 13.5px;
    color: #5c4f4f;
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(72, 60, 60, 0.12);
    line-height: 1.5;
}

.tarifs-carte__total strong {
    color: #483c3c;
    font-weight: 700;
}

.tarifs-bareme__pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
}

/* --- Notes --- */

.tarifs-note {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #5c4f4f;
    margin: 0;
    max-width: 620px;
}

.tarifs-note i {
    color: #C19A59;
    margin-right: 7px;
}

.tarifs-note a {
    color: #483c3c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tarifs-note a:hover {
    color: #C19A59;
}

.tarifs-note--centre {
    text-align: center;
    margin: 34px auto 0;
}

/* --- Bouton --- */

.tarifs-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #f5f3eb;
    background: #483c3c;
    border: 1px solid #483c3c;
    border-radius: 6px;
    padding: 15px 34px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.tarifs-cta:hover {
    background: #C19A59;
    border-color: #C19A59;
    color: #fff;
}

.tarifs-cta--secondaire {
    background: transparent;
    color: #483c3c;
}

.tarifs-cta--secondaire:hover {
    background: #483c3c;
    border-color: #483c3c;
    color: #f5f3eb;
}

/* --- Blocs en duo (réduits, horaires, modalités) --- */

.tarifs-reduits,
.tarifs-horaires,
.tarifs-modalites {
    padding: 60px 0;
}

/* Deux colonnes de MÊME hauteur : c'est le défaut le plus visible de
   l'ancienne page, où les deux encarts flottaient à des hauteurs
   différentes. `align-items: stretch` (défaut de grid) suffit, encore
   fallait-il utiliser une grille. */
.tarifs-duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    align-items: stretch;
}

.tarifs-bloc {
    background: #f5f3eb;
    border-radius: 12px;
    padding: 34px 32px;
    box-shadow: 0 4px 20px rgba(72, 60, 60, 0.08);
    display: flex;
    flex-direction: column;
}

.tarifs-bloc__icone {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(193, 154, 89, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.tarifs-bloc__icone i {
    font-size: 22px;
    color: #C19A59;
}

.tarifs-bloc h3 {
    font-family: Gelasio, serif;
    font-size: 23px;
    font-weight: 700;
    color: #483c3c;
    margin: 0 0 16px;
    line-height: 1.3;
}

.tarifs-bloc h3 i {
    color: #C19A59;
    margin-right: 8px;
    font-size: 19px;
}

.tarifs-bloc__montant {
    font-family: Gelasio, serif;
    font-size: 40px;
    font-weight: 700;
    color: #C19A59;
    line-height: 1;
    margin: 0 0 16px;
}

.tarifs-bloc__montant span {
    font-size: 24px;
    vertical-align: super;
}

.tarifs-bloc__montant small {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #8a7a7a;
    margin-top: 8px;
}

.tarifs-bloc__texte {
    font-family: 'Work Sans', sans-serif;
    font-size: 15.5px;
    line-height: 1.65;
    color: #464646;
    margin: 0 0 14px;
}

/* La condition est poussée en bas : les blocs d'une même rangée gardent
   leur mention de bas de carte alignée, quel que soit le texte au-dessus. */
.tarifs-bloc__condition {
    font-family: 'Work Sans', sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
    color: #8a7a7a;
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(72, 60, 60, 0.12);
}

.tarifs-bloc__condition a,
.tarifs-bloc__texte a {
    color: #483c3c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tarifs-bloc__condition a:hover,
.tarifs-bloc__texte a:hover {
    color: #C19A59;
}

/* Bouton en pied de bloc : poussé en bas comme l'était la mention qu'il
   remplace, pour que les deux colonnes d'une même rangée gardent leur base
   alignée quel que soit le texte au-dessus. */
.tarifs-bloc__cta {
    margin-top: auto;
    align-self: flex-start;
}

/* --- Tableau des horaires --- */

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.tarifs-table tr {
    border-bottom: 1px solid rgba(72, 60, 60, 0.12);
}

.tarifs-table tr:last-child {
    border-bottom: none;
}

.tarifs-table th,
.tarifs-table td {
    font-family: Montserrat, sans-serif;
    font-size: 15.5px;
    padding: 14px 0;
    text-align: left;
}

.tarifs-table th {
    font-weight: 500;
    color: #5c4f4f;
}

.tarifs-table td {
    font-weight: 600;
    color: #483c3c;
    text-align: right;
    white-space: nowrap;
}

.tarifs-table__fort {
    color: #C19A59 !important;
}

.tarifs-bloc--vacances {
    border: 1px solid rgba(193, 154, 89, 0.4);
}

/* --- Moyens de paiement --- */

.tarifs-paiements {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(72, 60, 60, 0.12);
}

.tarifs-paiements img {
    height: 34px;
    width: auto;
}

/* --- Appel à l'action final --- */

.tarifs-final {
    position: relative;
    overflow: hidden;
    padding: 70px 0 90px;
    text-align: center;
}

/* Même traitement que la section des avis : le voile est masqué en fondu à
   ses deux extrémités, sinon `overflow: hidden` le tranche net et dessine
   une ligne en travers du parchemin. */
.tarifs-final__fumee {
    position: absolute;
    top: 0;
    left: -25%;
    width: 150%;
    height: 100%;
    background-image: url('../images/general/smoke-2-6.webp');
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
}

.tarifs-final .container {
    position: relative;
    z-index: 1;
}

.tarifs-final h2 {
    font-family: Gelasio, serif;
    font-size: 34px;
    font-weight: 700;
    color: #483c3c;
    margin: 0 0 12px;
}

.tarifs-final p {
    font-family: 'Work Sans', sans-serif;
    font-size: 16.5px;
    color: #5c4f4f;
    margin: 0 0 30px;
}

.tarifs-final__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* --- Adaptations --- */

@media (max-width: 1024px) {
    .tarifs-grille {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Le meilleur prix passe en tête de la seconde ligne plutôt que de
       terminer seul : la lecture reste ordonnée. */
    .tarifs-carte--best {
        grid-column: span 3;
    }

    .tarifs-carte--best .tarifs-carte__prix {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .tarifs-hero {
        padding: 250px 0 40px;
    }

    .tarifs-hero h1 {
        font-size: 34px;
    }

    .tarifs-h2,
    .tarifs-final h2 {
        font-size: 27px;
    }

    .tarifs-grille {
        grid-template-columns: repeat(2, 1fr);
    }

    .tarifs-carte--best {
        grid-column: span 2;
    }

    .tarifs-duo {
        grid-template-columns: 1fr;
    }

    .tarifs-bareme__pied {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .tarifs-cta {
        justify-content: center;
    }

    .tarifs-bloc {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .tarifs-grille {
        grid-template-columns: 1fr;
    }

    .tarifs-carte--best {
        grid-column: span 1;
    }
}
