/* ==========================================================================
   Finitions partagées (index, prestations, tarifs, à propos)
   Chargé après la feuille de chaque page : ces règles affinent l'existant
   sans en modifier la structure. Les tailles mobiles sont en px car le site
   passe html à 10px sous 970px.
   ========================================================================== */

:root {
    --ink: #3f4a4e;
    --slate: #4e5b60;
    --sand: #cbc5a8;
    --paper: #fafafa;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Typographie : lisibilité du texte courant ------------------------- */

.firstParagraph,
.background-paragraph {
    text-align: left;
    hyphens: manual;
}

/* --- Barre du haut : chiffres alignés ------------------------------------ */

#banner .location,
#banner .phoneNumber {
    font-family: 'glacial_indifferenceregular', sans-serif;
    letter-spacing: 0.03em;
}

/* --- Hero ----------------------------------------------------------------- */

.name-job {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.25);
}

@media screen and (min-width: 971px) {
    .navlinks {
        display: flex;
        gap: 2rem;
        padding: 0.3rem 2rem 0.5rem;
        border: 1px solid rgba(250, 250, 250, 0.16);
        border-radius: 999px;
        background-color: rgba(30, 36, 38, 0.1);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .navlinks > a {
        margin-left: 0;
    }
}

/* --- Boutons -------------------------------------------------------------- */

.moreButtonTxt,
.buttonCard {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    background-color: var(--slate);
    color: var(--paper);
    font-family: 'playfair_displayitalic', serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    box-shadow: 0 6px 18px rgba(78, 91, 96, 0.18);
    transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.moreButtonTxt:hover,
.buttonCard:hover,
.moreButton:focus-visible .moreButtonTxt,
.buttonCard:focus-visible {
    background-color: var(--sand);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(78, 91, 96, 0.22);
    transform: translateY(-2px);
    transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

/* Images rondes des cartes : zoom plus doux */
.cards-item a > div {
    transition: transform 0.5s var(--ease-out);
}

.cards-item a > div:hover {
    transform: scale(1.04);
    transition: transform 0.5s var(--ease-out);
}

/* --- Section contact (accueil) : contraste ---------------------------- */

.contact-title {
    color: var(--ink);
}

#waveContactForm ::placeholder {
    color: rgba(63, 74, 78, 0.7);
    font-size: inherit;
    font-weight: normal;
}

.input-contact input,
.big-input-contact {
    border: 1px solid rgba(250, 250, 250, 0.9);
    background-color: rgba(250, 250, 250, 0.55);
    color: var(--ink);
    font-weight: normal;
}

.input-contact input:focus,
.big-input-contact:focus {
    background-color: var(--paper);
    border-color: var(--paper);
}

.btnContact button {
    border: 0;
    border-radius: 6px;
    background-color: var(--slate);
    color: var(--paper);
    font-family: 'playfair_displayitalic', serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(78, 91, 96, 0.18);
    transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.btnContact button:hover {
    background-color: var(--ink);
    color: var(--paper);
    box-shadow: 0 10px 24px rgba(78, 91, 96, 0.25);
    transform: translateY(-2px);
    transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.form-status {
    color: var(--ink);
}

/* --- Prestations : « Les bienfaits » ------------------------------------- */

.items-container::before,
.items-container_2::before,
.massage-stretching-top-left-side::before,
.massage-stretching-bottom-left-side::before,
.massage-stretching-top-left-side_2::before,
.massage-stretching-bottom-left-side_2::before {
    border-width: 1px;
    opacity: 0.45;
}

/* Puce recréée en CSS (le caractère a été retiré du HTML) */
.massage-stretching-item::before {
    content: '• ';
}

/* Losanges beiges : déjà clairs, on les garde plus présents */
.items-container::before,
.items-container_2::before {
    opacity: 0.9;
}

.items-container ul,
.items-container_2 ul {
    isolation: isolate;
}

/* --- Tarifs : harmonisation avec la charte ---------------------------- */

.pricing {
    --pricing-ink: var(--slate);
    --pricing-tag-bg: #ebe8dc;
    --pricing-border-width: 1px;
}

.pricing__title {
    font-family: 'playfair_displayitalic', serif;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.price-card {
    border-color: rgba(78, 91, 96, 0.35);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(78, 91, 96, 0.06);
    transition: box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.price-card:hover {
    border-color: rgba(78, 91, 96, 0.6);
    box-shadow: 0 14px 36px rgba(78, 91, 96, 0.1);
}

.price-card__tag {
    left: 1.25em;
    min-width: 0;
    padding: 0.2em 0.75em;
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.price-card__title {
    font-family: 'playfair_displayitalic', serif;
    font-size: 1.45em;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.price-card__cta {
    font-size: 1.15em;
}

.good-to-know {
    border-width: 1px;
    border-radius: 6px;
}

.good-to-know-warning {
    color: #8c3b3b;
    font-size: 1em;
}

/* --- Animations d'apparition ------------------------------------------- */

[class*='reveal-'] {
    opacity: 0;
    transform: translateY(24px);
}

.reveal-visible {
    opacity: 1;
    /* translateY(0) et non none : garde le contexte d'empilement dont
       dépend le décor en losange de la page Prestations */
    transform: translateY(0);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-2 {
    transition-delay: 0.12s;
}

.reveal-3 {
    transition-delay: 0.24s;
}

.reveal-4 {
    transition-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    [class*='reveal-'],
    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }

    .moreButtonTxt,
    .buttonCard,
    .btnContact button,
    .cards-item a > div,
    .price-card {
        transition: none !important;
        transform: none !important;
    }
}

/* --- Mobile & tablette (html à 10px) ---------------------------------- */

@media screen and (max-width: 970px) {
    .firstParagraph,
    .background-paragraph,
    .protocole-list {
        font-size: 16px;
        line-height: 1.7;
    }

    .protocole-disclaimer {
        font-size: 14px;
    }

    .presentationTitle,
    .background-title {
        font-size: 28px;
        line-height: 1.25;
    }

    .card-title {
        font-size: 24px;
    }

    .card-paragraph {
        font-size: 15px;
    }

    .moreButtonTxt,
    .buttonCard {
        font-size: 15px;
        padding: 11px 24px;
    }

    .splide__slide {
        font-size: 16px;
    }

    .findMeOnSocialNetworks {
        padding-right: 12px;
        font-size: 16px;
        line-height: 1.3;
    }

    .reviewsTitle {
        font-size: 28px;
    }

    .good-to-know-title {
        font-size: 24px;
    }

    .good-to-know-paragraph {
        font-size: 16px;
    }

    .good-to-know-warning {
        font-size: 15px;
    }

    .contact-title {
        font-size: 18px;
    }

    .contact-info {
        font-size: 15px;
    }

    .btnContact button {
        width: auto;
        padding: 10px 24px;
        font-size: 15px;
    }

    /* « Les bienfaits » : une colonne lisible, losanges conservés
       (puces en losange, grand losange discret derrière chaque groupe) */
    .massage-stretching-title {
        flex-direction: column;
        gap: 14px;
        height: auto;
        padding: 0 24px;
        font-size: 24px;
        line-height: 1.25;
    }

    .massage-stretching-title::after {
        content: '';
        width: 9px;
        height: 9px;
        background-color: var(--sand);
        transform: rotate(45deg);
    }

    .items-container,
    .items-container_2 {
        margin-top: 32px;
        padding-bottom: 0;
    }

    .items-container::before,
    .items-container_2::before {
        display: none;
    }

    .items-container .massage-stretching-top,
    .items-container .massage-stretching-bottom,
    .items-container_2 .massage-stretching-top,
    .items-container_2 .massage-stretching-bottom {
        position: relative;
        display: block;
        width: min(100% - 48px, 520px);
        margin: 0 auto;
        padding: 28px 0;
    }

    /* Grand losange de fond, centré sur chaque groupe */
    .massage-stretching-top-left-side::before,
    .massage-stretching-bottom-left-side::before,
    .massage-stretching-top-left-side_2::before,
    .massage-stretching-bottom-left-side_2::before {
        display: none;
    }

    .items-container .massage-stretching-top::before,
    .items-container .massage-stretching-bottom::before,
    .items-container_2 .massage-stretching-top::before,
    .items-container_2 .massage-stretching-bottom::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: -1;
        width: min(58vw, 280px);
        aspect-ratio: 1;
        border: 1px solid var(--slate);
        opacity: 0.16;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .items-container .massage-stretching-bottom::before,
    .items-container_2 .massage-stretching-bottom::before {
        border-color: var(--sand);
        opacity: 0.6;
    }

    .massage-stretching-top-left-side,
    .massage-stretching-bottom-left-side,
    .massage-stretching-top-right-side,
    .massage-stretching-bottom-right-side,
    .massage-stretching-top-left-side_2,
    .massage-stretching-bottom-left-side_2,
    .massage-stretching-top-right-side_2,
    .massage-stretching-bottom-right-side_2 {
        width: 100%;
    }

    .massage-stretching-item {
        position: relative;
        height: auto;
        min-height: 0;
        padding: 0 0 16px 28px;
        background: none;
        font-size: 17px;
        line-height: 1.5;
    }

    .massage-stretching-item::before {
        content: '';
        position: absolute;
        top: 0.55em;
        left: 3px;
        width: 8px;
        height: 8px;
        border: 1.5px solid var(--slate);
        transform: rotate(45deg);
    }

    .massage-stretching-item:nth-child(even)::before {
        border-color: var(--sand);
        background-color: var(--sand);
    }

    .seaweed-wrap-benefits {
        padding-bottom: 32px;
    }
}

@media screen and (max-width: 637px) {
    .presentationTxt,
    .background-paragraph {
        width: calc(100% - 48px);
    }

    .presentationTitle,
    .background-title {
        font-size: 26px;
    }
}
