/* ═══════════════════════════════════════════════════════════
   GSHIATSU78 — tarifs.css
   Styles de la page Tarifs des soins
   ═══════════════════════════════════════════════════════════ */

html, body {
    height: auto;
    min-height: 100%;
    background-image: url('../assets/images/tarifs/fond-tarif.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    max-width: 1920px;
    margin: 0 auto;
    color: var(--color-dark);
}

/* ── Titre de page ── */
.encart-titre {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0 10px;
}

.titre-gshiatsu {
    font-size: 2.4em;
    font-weight: bold;
    color: var(--color-dark);
    margin-bottom: 0;
}

.titre-accroche {
    font-family: 'Galeforce BTN', cursive;
    font-size: 1.5em;
    color: var(--color-dark);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.titre-tarifs {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.titre-avertissement {
    font-size: 0.85em;
    font-style: italic;
    color: var(--color-text-doux);
    text-align: center;
    max-width: 600px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.6);
    border-radius: 20px;
    margin-top: 4px;
}

/* ── Conteneur principal ── */
.tarifs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 40px;
}

/* ── Grille principale 2 colonnes ── */
.tarifs-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 90%;
    max-width: 900px;
    margin-bottom: 20px;
    align-items: stretch;
}

/* ── Bloc pleine largeur (Infrathérapie + Hammam côte à côte) ── */
.tarifs-grille-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 90%;
    max-width: 900px;
    margin-bottom: 20px;
    align-items: stretch;
}

/* ── Bloc pleine largeur (Formules) ── */
.tarifs-grille-full {
    width: 90%;
    max-width: 700px;
    margin-bottom: 40px;
}

/* ── Carte d'un soin ── */
.encart-soin {
    background-color: var(--color-price);
    color: var(--color-extra-light);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
}

/* ── Photo dans l'encart ── */
.photo-soin {
    width: 38%;
    flex-shrink: 0;
}

.photo-soin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* ── Tarifs dans l'encart ── */
.tarifs-soin {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.titre-general-soin {
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.liste-soins {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.soin {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    font-size: 0.92em;
    gap: 6px;
}

.nom-soin {
    flex: 1;
}

.tarif-soin {
    font-weight: bold;
    white-space: nowrap;
    margin-left: auto;
    padding-left: 8px;
}

/* Badge Nouveau inline */
.badge-soin {
    display: inline-block;
    background: var(--color-extra-light);
    color: var(--color-dark);
    font-size: 0.72em;
    padding: 2px 7px;
    border-radius: 10px;
    margin-right: 4px;
    vertical-align: middle;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Section Formules ── */
.encart-formules {
    background-color: var(--color-extra-light);
    border: 2px solid var(--color-border-light);
    border-radius: 18px;
    padding: 20px 24px;
}

.titre-formules {
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.sous-titre-formules {
    font-size: 0.85em;
    font-style: italic;
    color: var(--color-text-doux);
    margin-bottom: 16px;
}

.formules-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.soin-formule {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    font-size: 0.92em;
    color: var(--color-dark);
    gap: 6px;
    padding: 4px 0;
}

.soin-formule .nom-soin {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.formule-nom-rituel {
    font-weight: bold;
}

.formule-detail {
    font-size: 0.88em;
    color: var(--color-text-doux);
}

.soin-formule .tarif-soin {
    font-weight: bold;
    color: var(--color-dark);
    white-space: nowrap;
    margin-left: auto;
    padding-left: 8px;
}

/* ── Responsive ── */
@media screen and (max-width: 900px) {
    .tarifs-grille,
    .tarifs-grille-double { width: 95%; }
}

@media screen and (max-width: 720px) {
    .tarifs-grille,
    .tarifs-grille-double {
        grid-template-columns: 1fr;
    }
    .formules-grille {
        grid-template-columns: 1fr;
    }
    .encart-soin {
        flex-direction: column;
        align-items: center;
    }
    .photo-soin {
        width: 60%;
        margin: 0 auto;
    }
    .tarifs-soin { width: 100%; }
    .tarifs-grille-full { width: 95%; }
}

@media screen and (max-width: 480px) {
    .photo-soin { width: 80%; }
    .tarifs-grille-full { width: 95%; }
    .encart-formules { padding: 16px; }
}

/* ── Encart compact (Fleurs de Bach — 1 seul tarif) ── */
.encart-soin--compact {
    align-items: center;
}

.photo-soin--small {
    width: 22%;
}

/* ── Photo infrathérapie centrée verticalement (uniquement, pas toutes les cartes) ── */
.encart-soin {
    align-items: stretch;
}

.encart-soin .photo-soin {
    display: flex;
    align-items: center;
}

/* Toutes les photos gardent un ratio carré uniforme, recadrées en cover */
.photo-soin img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* ── Drainage lymphatique — 2 colonnes (séance / packs) ── */
.drainage-colonnes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    width: 100%;
}

@media screen and (max-width: 580px) {
    .drainage-colonnes {
        grid-template-columns: 1fr;
        /* Les 2 colonnes s'empilent en 1 seule : sans row-gap, l'écart entre
           "Séance 1h15" et "Pack 3 séances" (0, hérité du gap horizontal
           entre colonnes) devenait plus petit que celui entre "Pack 3
           séances" et "Pack 5 séances" (6px, géré par .liste-soins) — on
           aligne le row-gap sur ce même 6px pour un interligne uniforme. */
        gap: 6px 24px;
    }
}

/* ── Hauteur uniforme — référence zone Shiatsu ── */
.encart-soin--hauteur-ref {
    min-height: 220px;
}

/* ── Encart pleine largeur — photo réduite pour matcher la hauteur des cartes 2 colonnes ── */
.encart-soin--full {
    max-height: none;
}

.photo-soin--fixed {
    width: 18%;
    max-width: 160px;
}

.photo-soin--fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ── Photo Drainage lymphatique — même taille affichée que les photos
   des cartes 2 colonnes (Shiatsu, Réflexologies...), même si sa carte
   est en pleine largeur. Au-delà de 720px (desktop / tablette large),
   la carte Drainage occupe toute la largeur de la grille alors que les
   autres cartes se partagent cette largeur en 2 colonnes : sans cette
   règle, sa photo ressort donc nettement plus grande. On calcule ici sa
   largeur comme si elle était dans une carte à 2 colonnes.
   En dessous de 720px, toutes les cartes repassent sur une seule colonne
   et ont déjà naturellement la même largeur — aucune règle nécessaire. */
@media screen and (min-width: 721px) {
    .encart-soin--full .photo-soin {
        flex-shrink: 0;
        width: calc(0.19 * min(90vw - 36px, 900px) - 15.96px);
    }
}

@media screen and (min-width: 721px) and (max-width: 900px) {
    .encart-soin--full .photo-soin {
        width: calc(18.05vw - 23.18px);
    }
}
