/* ============================================================================
   PAGE — Tarifs
   Panneaux de prix, avis clients, bouton « Comment se déroule une séance ? ».
   ============================================================================ */

.pricing-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.7rem;
    text-transform: uppercase;
}

/* Tarifs — Panneaux de prix et textes de la page Tarifs */

.pricing-container {
    /* Espaces verticaux (la distance barre de navigation → panneaux reste inchangée ; la barre fine se place à mi-distance) :
       --pricing-above = espace déjà présent au-dessus du conteneur (feuille + marge de main) ;
       --pricing-below = espace entre le haut du conteneur et les panneaux, barre de 1 px comprise ;
       --pricing-half  = espace de chaque côté de la barre */
    --pricing-above: calc(clamp(20px, 3.4vw, 64px) + 28px);
    --pricing-below: 71px;
    --pricing-half: calc((var(--pricing-above) + var(--pricing-below) - 1px) / 2);
    display: flow-root;
    max-width: 1480px;
    margin: 0 auto;
    text-align: center;
}

.pricing-title:empty {
    display: none;
}

.pricing-title {
    letter-spacing: 0.25em;
    padding-left: 0.25em;
    margin-bottom: 14px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: stretch;
    max-width: 980px;
    margin: 0 auto;
}

/* Aspect commun des « cartes » : panneaux de prix, avis, formulaire de contact */

.pricing-plan, .review-card {
    border: 2px solid var(--border-color);
    border-radius: 0;
    background: #fdffff;
}

.pricing-plan, .review-card {
    padding: 36px 28px 28px;
}

/* Tarifs — Panneaux de prix et textes de la page Tarifs */

@media (max-width: 1024px) {
    .pricing-plan, .review-card {
        border: 1px solid var(--border-color);
        border-radius: 0;
        padding: 32px 24px 24px;
    }
}

.pricing-plan {
    /*change le style du panneau de prix*/
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-plan.recommended {
    border-color: var(--text-color);
    border-width: 1.5px;
    box-shadow: none;
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--text-color);
    color: #fdffff;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 7px 13px 7px 15px;
    white-space: nowrap;
    z-index: 2;
}

.pricing-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 14px;
}

/* Tarifs — Panneaux de prix et textes de la page Tarifs */

.pricing-desc {
    font-weight: 300;
    line-height: 1.9;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    color: var(--text-muted-strong);
    min-height: 70px;
    overflow-wrap: break-word;
}

.pricing-price-block {
    text-align: center;
    margin-top: 0px; /*28px*/
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-from {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted-aa);
}

.pricing-price {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pricing-price-value {
    position: relative;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 3.4rem;
    line-height: 1.05;
    color: var(--text-color);
}

.pricing-price.has-promo .pricing-price-value {
    color: var(--promo-color);
}

/* Tarifs — Prix en toutes lettres (« Sur Devis », sans chiffre) : plus petit qu'un prix chiffré pour tenir dans le panneau */

.pricing-price-text .pricing-price-value {
    font-size: 2.2rem;
    line-height: 1.2;
}

/* Tarifs — Panneaux de prix et textes de la page Tarifs */

.pricing-price-annot {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: normal;
    line-height: 1;
    gap: 4px;
    max-width: 180px;
}

.pricing-promo {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-color);
    line-height: 1.4;
}

.pricing-old {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.2;
    color: var(--text-color);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.pricing-price-annot.no-promo-title .pricing-old {
    font-size: 2.4rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .pricing-price-annot {
        margin-left: 14px; gap: 3px; max-width: 140px;
    }
    .pricing-price-value {
        font-size: 2.9rem;
    }
    .pricing-promo {
        font-size: 0.7rem; letter-spacing: 0.14em;
    }
    .pricing-old {
        font-size: 1.3rem;
    }
    .pricing-price-annot.no-promo-title .pricing-old {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .pricing-price-annot {
        max-width: 120px;
    }
    .pricing-promo {
        line-height: 1.25;
    }
}

/* Tarifs — Panneaux de prix et textes de la page Tarifs */

@media (max-width: 380px) {
    .pricing-price-annot {
        margin-left: 10px; gap: 2px; max-width: 85px;
    }
    .pricing-price-value {
        font-size: 2.4rem;
    }
    .pricing-promo {
        font-size: 0.66rem; letter-spacing: 0.1em;
    }
    .pricing-old {
        font-size: 1.1rem;
    }
    .pricing-price-annot.no-promo-title .pricing-old {
        font-size: 1.6rem;
    }
}

.pricing-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin-top: 28px;
}

.pricing-features {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 0;
}

.pricing-features li {
    font-size: 0.82rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: var(--text-muted-strong);
}

.pricing-divider + .pricing-features {
    margin-top: 26px;
}

/* Blocs de contenu des 4 panneaux : tout le texte justifié à gauche */

.pricing-features li {
    text-align: left;
}

/* Tarifs — Panneaux de prix et textes de la page Tarifs */

.pricing-legal {
    margin-top: 36px;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted-aa);
    line-height: 2.2;
    overflow-wrap: break-word;
}

/* 4 offres : 4 colonnes dès 1600px, 2x2 de 1025px à 1599px, 1 colonne en dessous (règle existante max-width: 1024px) */

@media (min-width: 1600px) {
    .pricing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0 36px;
        max-width: none;
    }
    .pricing-desc {
        margin-bottom: 10px;
    }
    @supports (grid-template-rows: subgrid) {
        .pricing-plan {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            grid-template-rows: subgrid;
            grid-row: span 7;
            justify-items: center;
            align-items: start;
        }
    }
    @supports not (grid-template-rows: subgrid) {
        .pricing-desc { min-height: 112px; }
    }
}

#pricing.active-section .pricing-plan {
    animation: pricingIn 0.4s cubic-bezier(0.33, 0, 0.2, 1) both;
}

#pricing.active-section .pricing-plan:nth-child(2) {
    animation-delay: 0.033s;
}

/* Tarifs — Panneaux de prix et textes de la page Tarifs */

#pricing.active-section .pricing-plan:nth-child(3) {
    animation-delay: 0.066s;
}

#pricing.active-section .pricing-plan:nth-child(4) {
    animation-delay: 0.1s;
}

/* Tarifs — Titre de série + barre fine : au-dessus des panneaux (à mi-distance de la barre de navigation) ; titre et barre sont justifiés à gauche, sur le bord gauche de la grille de panneaux (980 px, 480 px en colonne
   unique, pleine largeur ≥ 1600 px) ; la barre en occupe 20 %, à 15 % d'opacité */

/* Espace entre le titre de série (+ sa barre) et les panneaux dessous : réduit de 50 % (avant : 17 px + --pricing-half ; maintenant la moitié).
   Espace entre les panneaux de la série du dessus et le titre suivant : augmenté de 50 % (avant : --pricing-half − 16 px − hauteur du titre, soit 1,38 rem). */

.pricing-sep {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: calc(var(--pricing-half) - var(--pricing-above)) auto calc(var(--pricing-half) / 2 - 8.5px);
}

@media (min-width: 1600px) {
    .pricing-sep {
        max-width: none;
    }
}

@media (max-width: 1024px) {
    .pricing-sep {
        max-width: 480px;
    }
}

.pricing-bar {
    width: 20%;                   /* 20 % de la largeur de la grille de panneaux, justifiée à gauche */
    height: 1px;
    background: currentColor;
    opacity: 0.15;
}

.pricing-group-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 16px);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.2;
    letter-spacing: 0.25em;
    text-align: left;
    text-transform: uppercase;
}

/* Tarifs — Lien « Conditions générales de vente » sous la grille tarifaire */

.pricing-cgv {
    margin-top: 14px;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 2.2;
}

.pricing-cgv a {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .pricing-cgv a:hover {
        opacity: 0.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    #pricing.active-section .pricing-plan {
        animation: none;
    }
}

/* Tarifs — Panneaux de prix et textes de la page Tarifs */

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 52px;
        max-width: 480px;
        margin: 0 auto;
    }
    .pricing-plan:first-child {
        border-top: 1px solid var(--border-color);
        padding-top: 32px;
    }
    .pricing-plan.recommended {
        border: 1px solid var(--text-color);
        padding: 30px 20px 24px;
    }
    .pricing-desc {
        min-height: 0;
    }
    .pricing-price-value {
        font-size: 3.1rem;
    }
}

@media (max-width: 900px) {
    .pricing-container {
        --pricing-above: calc(clamp(20px, 3.4vw, 64px) + 22px);
    }
}

@media (max-width: 768px) {
    .pricing-container {
        --pricing-above: calc(clamp(20px, 3.4vw, 64px) + 18px);
        --pricing-below: 113px;
        padding: 0 20px 55px;
    }
    .pricing-name {
        font-size: 1.2rem;
    }
    .pricing-price-value {
        font-size: 2.9rem;
    }
    .pricing-features {
        gap: 12px;
    }
}

/* Tarifs — Carrousel d'avis clients */

/* ==========================================================================
   Carrousel d'avis clients (page Tarifs, entre la question « Comment se déroule une séance ? » et les notes)
   Panneaux : même fond, bordure, arrondi et polices que les panneaux de prix.
   Avis visibles par page : 2 (>= 1025px) / 1 (<= 1024px). La valeur --rv-per-view
   est posée par js/*.js. Chaque avis est affiché directement en entier (plus de bouton de dépliage).
   ========================================================================== */

.pricing-reviews {
    --rv-per-view: 2;
    --rv-gap: 60px;
    /* Forme d'entonnoir : largeur du carrousel par rapport à la grille des prix (0.67 = 33 % plus étroit ; 1 = pleine largeur) */
    --rv-width-ratio: 0.67;
    /* Transition du carrousel : mêmes durée et courbe d'accélération que la FAQ (--pa-open-duration / --pa-ease) */
    --rv-duration: 550ms;
    --rv-ease: cubic-bezier(0.4, 0, 0.2, 1);
    /* Couleur des étoiles : mettre par exemple #ff9500 pour des étoiles orange */
    --rv-star-color: var(--text-color);
    position: relative;
    max-width: 980px;
    margin: 72px auto 0;
    text-align: left;
}

.reviews-viewport {
    overflow: hidden;
    touch-action: pan-y;
}

.reviews-track {
    display: flex;
    gap: var(--rv-gap);
    /* Les avis sont affichés en entier : ils prennent tous la hauteur du plus long (alignés comme les panneaux de prix) */
    align-items: stretch;
    transform: translateX(calc(var(--rv-index, 0) * (100% + var(--rv-gap)) / var(--rv-per-view) * -1));
    transition: transform var(--rv-duration) var(--rv-ease);
    will-change: transform;
}

.review-card {
    flex: 0 0 calc((100% - (var(--rv-per-view) - 1) * var(--rv-gap)) / var(--rv-per-view));
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 36px;
}

/* Photo à gauche de l'avis : prend la hauteur du texte (recadrée), largeur = 36 % du panneau */

.review-photo {
    position: relative;
    flex: 0 0 36%;
    min-height: 300px;
    border-radius: 0;
    overflow: hidden;
    background: #f3f3f3;
}

.review-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-select: none;
    user-select: none;
}

.review-body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* En-tête : titre + date sur la première ligne, étoiles + nom sur la seconde */

.review-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 8px;
    align-items: start;
}

.review-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

/* Tarifs — Carrousel d'avis clients */

.review-date,
.review-author {
    color: var(--text-muted-aa);
}

.review-date {
    justify-self: end;
    text-align: right;
}

/* Lieu et compte Instagram : chacun sur sa ligne, sous les étoiles, avec son icône à gauche */

.review-author {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-meta-line {
    display: flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
}

.review-meta-icon {
    display: flex;
    flex: none;
}

.review-meta-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

a.review-meta-line {
    width: fit-content;
    transition: color 0.3s ease;
}

@media (hover: hover) {
    a.review-meta-line:hover {
        color: var(--text-color);
    }
}

a.review-meta-line:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 3px;
}

.review-date {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    line-height: 1.9;
    white-space: nowrap;
}

.review-author {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-stars {
    display: inline-flex;
    gap: 3px;
    color: var(--rv-star-color);
}

.review-star {
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linejoin: round;
}

/* Tarifs — Carrousel d'avis clients */

.review-star.is-empty {
    fill: none;
}

.review-score {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--text-muted-aa);
}

.review-text {
    font-weight: 300;
    line-height: 1.9;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    color: var(--text-muted-strong);
    overflow-wrap: break-word;
    white-space: pre-line;
}

/* Tarifs — Carrousel d'avis clients */

/* Flèches : à droite pour avancer, à gauche pour revenir (masquées en début / fin de liste) */

.reviews-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: #fdffff;
    color: var(--text-color);
    box-shadow: none;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0s linear 0s, border-color 0.25s ease, box-shadow 0.25s ease;
}

.reviews-arrow-prev {
    left: -20px;
}

.reviews-arrow-next {
    right: -20px;
}

/* Tarifs — Carrousel d'avis clients */

.reviews-arrow:disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.reviews-arrow svg {
    width: 8px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .reviews-arrow:not(:disabled):hover {
        border-color: var(--text-color);
        box-shadow: none;
    }
}

.reviews-arrow:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

/* 2 avis par page (1025 à 1599px) : la grille des prix fait 980px, le carrousel est réduit de 33 % et reste centré */

@media (min-width: 1025px) and (max-width: 1599px) {
    .pricing-reviews {
        max-width: 900px;
    }
}

/* 3 avis par page (>= 1600px) : la grille des prix occupe toute la largeur, le carrousel est réduit de 33 % et reste centré */

@media (min-width: 1600px) {
    .pricing-reviews {
        --rv-gap: 36px; max-width: calc(100% * var(--rv-width-ratio));
    }
}

/* Tarifs — Carrousel d'avis clients */

/* 1 avis à la fois : même largeur et même style de panneau que la version mobile des prix */

@media (max-width: 1024px) {
    .pricing-reviews {
        --rv-gap: 24px; max-width: 760px;
    }
}

/* Petits écrans : la photo passe au-dessus du texte */

@media (max-width: 700px) {
    .pricing-reviews {
        max-width: 480px;
    }
    .review-card {
        flex-direction: column;
        gap: 22px;
    }
    .review-photo {
        flex: none;
        width: 100%;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 900px) {
    .pricing-reviews {
        margin-top: 56px;
    }
}

/* Carrousel d'avis : comme pour la FAQ, la règle globale « prefers-reduced-motion » (haut du fichier)
   couperait la transition ; on la rétablit pour garder le glissement doux avec accélération. */

@media (prefers-reduced-motion: reduce) {
    .reviews-track {
        transition: transform var(--rv-duration) var(--rv-ease) !important;
    }
}

/* Tarifs — Bouton « Comment se déroule une séance ? » sous les panneaux de prix (même survol que le bouton
   Envoyer de la page Contact) ; gris très clair (luminosité 84 %) pour ne pas couper la page entre les panneaux et
   les avis */

/* ==========================================================================
   Page Tarifs : bouton qui renvoie vers « Méthode », centré sous les panneaux
   Largeur : la moitié de la grille des panneaux (jamais plus étroit que son texte) ;
   la grille fait 4 colonnes (≥ 1600 px), 2 x 2 (1025–1599 px), 1 colonne (≤ 1024 px)
   Réglage rapide : --pricing-btn-tone = teinte du bouton (gris de luminosité 84 %), --pricing-btn-ink = couleur du texte
   ========================================================================== */

.pricing-method {
    --pricing-btn-tone: hsl(0, 0%, 84%);
    --pricing-btn-ink: var(--text-color);
    max-width: 980px;
    margin: 40px auto 0;
}

.pricing-method-btn {
    --btn-fade: 0.8s;   /* ← durée du fondu au survol des boutons « Comment se déroule une séance ? » (Tarifs) et « Poser une question » (Méthode) */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: fit-content;
    min-width: 50%;
    max-width: 100%;
    min-height: 28px;
    margin: 0 auto;
    padding: 4px 24px;
    box-sizing: border-box;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    line-height: 1.6;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    color: var(--pricing-btn-ink);
    background: #fdffff;
    border: 1px solid var(--pricing-btn-tone);
    border-radius: 1;
	border-color: color-mix(in srgb, var(--text-color) 50%, transparent);   /* cadre fin noir à 5 % de luminosité, opacité 50 % au repos */
    cursor: pointer;
    transition: background-color var(--btn-fade, 0.8s) ease, color var(--btn-fade, 0.8s) ease, border-color var(--btn-fade, 0.8s) ease !important;   /* !important : une autre règle (ex. « réduire les animations » dans global.css) ne peut plus la raccourcir ; la bordure aussi, car sur Méthode elle change au survol */
    touch-action: manipulation;
}

.pricing-method-btn svg {
    flex: none;
    display: block;
    width: 28px;
    height: 10px;
}

@media (hover: hover) {
    .pricing-method-btn:hover {
        background: #0d0d0d;
		color: #fdffff;
    }
}

.pricing-method-btn:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 3px;
}

@media (min-width: 1600px) {
    .pricing-method {
        max-width: none;
    }
}

@media (max-width: 1024px) {
    .pricing-method {
        max-width: 480px;
        margin-top: 36px;
    }
}

@media (max-width: 768px) {
    .pricing-method-btn {
        min-height: 24px;
        padding: 3px 16px;
        gap: 14px;
        letter-spacing: 0.2em;
    }
}

@media (max-width: 480px) {
    .pricing-method-btn {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
    }
}

.r-1-1 { --r: 1;    aspect-ratio: 1 / 1; }

.r-5-4 { --r: 1.25; aspect-ratio: 5 / 4; }

.r-3-2 { --r: 1.5;  aspect-ratio: 3 / 2; }

.r-4-5 { --r: 0.8;  aspect-ratio: 4 / 5; }

.r-3-4 { --r: 0.75; aspect-ratio: 3 / 4; }

.r-2-3 { --r: 0.6667; aspect-ratio: 2 / 3; }

@keyframes pricingIn {
    from { opacity: 0; transform: translateY(calc(-1 * var(--mm-shift, 5vh))); }
    to { opacity: 1; transform: none; }
}
