/* ═══════════════════════════════════════════════════════════
   GSHIATSU78 — style.css
   Styles principaux : page d'accueil et composants partagés
   ═══════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════
   BASE
   ════════════════════════════════════════ */
html {
    overflow-x: hidden;
}

body {
    max-width: 1920px;
    margin: 0 auto;
    background: var(--color-extra-light);
    height: 100%;
    padding-top: 80px; /* compense le header fixe */
    font-size: 17px;
}

/* ════════════════════════════════════════
   IMAGES & MÉDIAS COMMUNS
   ════════════════════════════════════════ */
.background {
    display: block;
    width: 100%;
    height: 100%;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Toutes les images de soins */
.accueil-img,
.presentation-img {
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0, #000 7%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom,
      transparent 0, #000 11%, #000 86%, transparent 100%);
}
.shiatsu-img,
.amma-assis-img,
.reflexologie-thaie-img,
.chi-nei-tsang-img,
.infratherapie-img,
.hammam-img,
.fleurs-de-bach-img,
.gaelle-img {
    width: 20%;
    object-fit: cover;
}

.accueil-img    { aspect-ratio: 2.5; }
.presentation-img { aspect-ratio: 2.5; }

/* Coins arrondis sur les photos de soins */
.shiatsu-img,
.amma-assis-img,
.reflexologie-thaie-img,
.chi-nei-tsang-img,
.infratherapie-img,
.hammam-img,
.fleurs-de-bach-img,
.gaelle-img {
    border-radius: 14px;
}

.shiatsu-img         { aspect-ratio: 0.99610894942; }
.amma-assis-img      { aspect-ratio: 0.99610895; }
.reflexologie-thaie-img { aspect-ratio: 0.99841699; }
.chi-nei-tsang-img   { aspect-ratio: 0.99610895; }
.infratherapie-img   { aspect-ratio: 1.54682779; }
.hammam-img          { aspect-ratio: 1.0; }
.fleurs-de-bach-img  { aspect-ratio: 1.01992032; }
.gaelle-img          { aspect-ratio: 1.0; }

/* ════════════════════════════════════════
   LOGO ACCUEIL (sur l'image hero)
   ════════════════════════════════════════ */
.logo-accueil-img {
    width: 270px;
    height: 257px;
}

.logo-accueil-container {
    width: 300px;
    position: absolute;
    top: 20%;
    left: 7%;
    display: flex;
    z-index: 5;
}

.logo-accueil-img {
    width: 270px;
    position: relative;
}

.logo-accueil-nom {
    position: absolute;
    color: var(--color-dark);
    top: 50%;
    left: 85%;
    font-size: 4.5em;
}

.logo-accueil-accroche {
    font-family: 'Galeforce BTN', cursive;
    font-size: 2.05em;
    letter-spacing: .1em;
    color: var(--color-dark);
    position: absolute;
    width: 125%;
    top: 70%;
    left: 87.5%;
}

/* ════════════════════════════════════════
   SECTIONS — STRUCTURE DE BASE
   ════════════════════════════════════════ */
.page,
.page-accueil,
.page-presentation,
.page-huit-soins,
.page-fleurs-de-bach {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-extra-light);
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-accueil {
    padding-top: 0;
    padding-bottom: 0;
    width: auto;
    height: auto;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    display: block;
}

.page-accueil .background {
    display: block;
    width: 100%;
    height: auto;
}

.page-accueil .accueil-img {
    -webkit-mask-image: none;
    mask-image: none;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mobile : le hero occupe tout l'écran (image conçue comme un splash plein écran) */
@media screen and (max-width: 767px) {
    .page-accueil {
        min-height: 100vh;
        min-height: 100svh; /* hauteur stable (barre d'adresse dépliée) : évite que la
                                hauteur du hero ne change EN PLEIN GESTE de scroll — c'est
                                ce qui donnait l'impression que la page restait "collée"
                                puis se débloquait d'un coup au premier swipe. */
    }
    .page-accueil .background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
    }
    .page-accueil .accueil-img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }
}

/* ── Fondu vers la section présentation ── */
.hero-fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18%;
    min-height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--color-extra-light) 100%);
    pointer-events: none;
    z-index: 4;
}

/* ════════════════════════════════════════
   BLOCS TEXTE & IMAGE (sections soins)
   ════════════════════════════════════════ */
.block-text {
    width: 32%;
    font-size: 1em;
    font-weight: 100;
    color: var(--color-text);
    text-align: justify;
    line-height: 1.5;
}

.block-text span {
    font-size: 1em;
    font-weight: bold;
}

.block-text span a {
    color: var(--color-text);
    text-decoration: none;
}

.block-img {
    width: 40%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.block-img picture {
    width: 50%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.block-img picture img {
    width: 100%;
    height: auto;
}

.titre-soin {
    font-size: 1.2em;
}

/* ════════════════════════════════════════
   SECTION PRÉSENTATION (intro)
   ════════════════════════════════════════ */
.page-presentation {
    position: relative;
    background-color: var(--color-extra-light);
    padding-top: 50px;
    padding-bottom: 10px;
}

.page-presentation .main-container {
    position: absolute;
    height: auto;
    width: 73.5%;
    left: 26%;
    top: 10%;
}

.page-presentation .main-container .block-text {
    color: var(--color-text);
    position: relative;
    width: 100%;
}

/* ── Photo cabinet dans la section présentation ── */
.page-presentation .presentation-cabinet-photo {
    position: absolute;
    width: 20%;
    height: auto;
    top: 95%;
    left: 80%;
    border-radius: 50%;
    border: solid 2px var(--color-border-img);
    overflow: hidden;
    object-fit: cover;
}

.page-presentation .block-img {
    position: absolute;
    width: 20%;
    height: auto;
    top: 95%;
    left: 80%;
    border-radius: 50%;
    border: solid 2px var(--color-border-img);
    overflow: hidden;
}

/* Citations en Galeforce BTN */
.block-text-citation {
    position: absolute;
    width: 90%;
    top: 160%;
    left: 5%;
}

.citation1,
.citation2,
.citation3,
.citation4 {
    font-family: 'Galeforce BTN', cursive;
    font-size: 1.7em;
    letter-spacing: .1em;
    color: var(--color-dark);
    position: relative;
    width: 55%;
}

.citation1 { left: 12%; }
.citation2 { left: 22%; }
.citation3 { left: 32%; }
.citation4 { left: 42%; }

/* ════════════════════════════════════════
   SECTION COMPTEUR — 8 SERVICES
   ════════════════════════════════════════ */
.page-huit-soins {
    padding-top: 10px;
}

.page-huit-soins .block-text {
    width: 57%;
    font-size: 1em;
    font-weight: 100;
    line-height: 1.5;
    display: flex;
    background-color: var(--color-back-green);
    color: var(--color-dark);
    text-align: center;
    align-items: center;
    border-radius: 10px;
}

.block-text .left {
    width: 45%;
    font-weight: bold;
    font-size: 15em;
}

.block-text .right {
    width: 55%;
    padding-right: 40px;
    padding-bottom: 40px;
}

.block-text .right .top {
    font-weight: 100;
    font-size: 7em;
    text-align: left;
    line-height: 1.30em;
}

.block-text .right .bottom {
    width: 100%;
    font-weight: 100;
    text-align: justify;
}

/* ════════════════════════════════════════
   BANDEAU NOUVEAU — Shiatsu féminin
   ════════════════════════════════════════ */
.bandeau-nouveau {
    padding: 20px 40px;
    max-width: 1920px;
    margin: 0 auto;
}

/* Grille à 2 colonnes (badge | contenu) sur desktop/tablette — le
   badge occupe toute la hauteur à gauche, le titre puis le texte
   s'empilent dans la colonne de droite, EN FACE du badge.
   Sur mobile (≤767px, voir plus bas), on repasse à 1 colonne : seuls
   le badge et le titre restent côte à côte en haut, le reste du texte
   repart du bord gauche du cadre sur toute la largeur. Les noms de
   zone (body1/body2/body3) couvrent le nombre de lignes maximum utilisé
   (3, pour le bandeau "Prochain atelier") ; une zone sans élément
   correspondant (ex. le bandeau "Nouveau", qui n'a qu'un seul
   paragraphe) ne prend simplement pas de place. */
.bandeau-nouveau-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--color-back-violet-pale);
    border: 2px solid var(--color-border-light);
    border-radius: 10px;
    padding: 18px 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 6px;
    grid-template-areas:
        "badge title"
        "badge body1"
        "badge body2"
        "badge body3"
        "badge link";
}

.badge-nouveau-lg {
    grid-area: badge;
    display: inline-block;
    background: var(--color-dark);
    color: var(--color-extra-light);
    font-size: 0.84em;
    padding: 5px 14px;
    border-radius: 14px;
    font-weight: 600;
    white-space: nowrap;
    align-self: start;
    margin-top: 2px;
}

/* Le titre doit pouvoir se restreindre et passer à la ligne à côté du
   badge — sans min-width:0 un mot très long (ex. une URL) pousse la
   carte hors cadre sur mobile */
.bandeau-nouveau-inner h3 {
    grid-area: title;
    min-width: 0;
}

.bandeau-nouveau h3 {
    font-size: 1em;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.bandeau-nouveau p {
    font-size: 0.9em;
    color: var(--color-text-doux);
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
    margin: 0;
}

.bandeau-nouveau-inner > p:nth-of-type(1) { grid-area: body1; }
.bandeau-nouveau-inner > p:nth-of-type(2) { grid-area: body2; }
.bandeau-nouveau-inner > p:nth-of-type(3) { grid-area: body3; }

.bandeau-nouveau a {
    grid-area: link;
    color: var(--color-dark);
    text-decoration: underline;
    margin-top: 4px;
}

/* Sur mobile : le badge ne reste accolé qu'au titre (1ère rangée),
   tout le texte en dessous repart du bord gauche sur toute la largeur. */
@media screen and (max-width: 767px) {
    .bandeau-nouveau-inner {
        grid-template-areas:
            "badge title"
            "body1 body1"
            "body2 body2"
            "body3 body3"
            "link link";
    }
}

/* ════════════════════════════════════════
   GRILLE DES SERVICES
   ════════════════════════════════════════ */
.section-services {
    background: var(--color-extra-light);
    padding: 0 40px 16px; /* réduit : ce padding s'additionne avec le padding-top de
                              .section-formules juste après (48px), donnant un total de
                              88px avant la réduction — trop visible depuis que la carte
                              Infrathérapie (7ᵉ service) est seule en pleine largeur */
    max-width: 1920px;
    margin: 0 auto;
}

.services-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid var(--color-border-card);
    border-radius: 10px;
    overflow: hidden;
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border-right: 2px solid var(--color-border-card);
    border-bottom: 2px solid var(--color-border-card);
    background: var(--color-extra-light);
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.service-card:nth-child(even) { border-right: none; }
.service-card:nth-last-child(-n+2) { border-bottom: none; }
.service-card:hover { background: var(--color-back-violet-pale); }

/* 7ᵉ service (Infrathérapie), en pleine largeur sous la grille 2 colonnes —
   clôt la liste des services et amène vers "Mes rituels" juste après.
   Sélecteur combiné (.service-card.service-card--full) nécessaire pour
   l'emporter sur nth-child(even)/nth-last-child(-n+2) ci-dessus : cette
   carte est "paire" et "dernière" parmi ses propres frères (elle est seule
   à côté de .services-grid), donc ces règles s'appliquaient aussi à elle
   et supprimaient sa bordure droite et basse. */
.service-card.service-card--full {
    max-width: 1100px;
    margin: 16px auto 0;
    border: 2px solid var(--color-border-card);
    border-radius: 10px;
}

.service-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.service-info h3 {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 5px;
}

.service-info p {
    font-size: 0.85em;
    color: var(--color-text-doux);
    line-height: 1.5;
}

/* ════════════════════════════════════════
   SECTION FORMULES
   ════════════════════════════════════════ */
.section-formules {
    background: var(--color-extra-light);
    padding: 48px 40px;
    max-width: 1920px;
    margin: 0 auto;
}

.formules-header {
    max-width: 1100px;
    margin: 0 auto 28px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.formules-header h2 {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--color-text);
}

.formules-header p {
    font-size: 0.85em;
    color: var(--neutral-mid);
    margin-top: 4px;
}

.formules-header a {
    font-size: 0.85em;
    color: var(--color-dark);
    text-decoration: none;
}

.formules-header a:hover {
    text-decoration: underline;
}

.formules-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.formule-card {
    background: var(--color-back-violet-pale);
    border: 2px solid var(--color-border-light);
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.formule-card:hover {
    box-shadow: 0 4px 16px var(--color-shadow-violet);
}

.formule-prix {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.formule-nom {
    font-size: 1.1em;
    color: var(--color-dark);
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 3px;
}

.formule-duree {
    font-size: 0.84em;
    color: var(--neutral-soft);
}

/* ── Accroche rituels — violet gras légèrement plus petit que h2 ── */
.formules-accroche {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
}

/* ── Détail sous le nom du rituel ── */
.formule-detail {
    font-size: 0.85em;
    color: var(--color-light);
    font-style: italic;
    margin-bottom: 6px;
}

/* ── Pied de carte : durée — tarif centré ── */
.formule-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border-light);
    font-size: 0.95em;
    color: var(--color-dark);
    font-weight: 700;
}

/* ── Grille 3 colonnes pour les rituels ── */
.formules-grid--3col {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 900px;
    margin: 0 auto;
}

/* ════════════════════════════════════════
   SECTION À PROPOS
   ════════════════════════════════════════ */
.section-apropos {
    background: var(--color-back-light);
    padding: 56px 40px;
    max-width: 1920px;
    margin: 0 auto;
}

.apropos-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 36px;
    align-items: start;
}

.apropos-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.apropos-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--color-border-img);
    overflow: hidden;
    object-fit: cover;
    display: block;
}

.apropos-nom-label {
    font-size: 0.84em;
    color: var(--neutral-soft);
    text-align: center;
    font-style: italic;
}

.apropos-content h2 {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 14px;
}

.apropos-content p {
    font-size: 0.93em;
    color: var(--color-text-doux);
    line-height: 1.8;
    margin-bottom: 10px;
    text-align: justify;
}

.apropos-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.badge-certif {
    display: inline-block;
    border: 1px solid var(--color-border-img);
    color: var(--color-dark);
    font-size: 0.84em;
    padding: 5px 12px;
    border-radius: 14px;
    background: var(--color-back-violet-pale);
}

/* ════════════════════════════════════════
   POP-UP ATELIER
   ════════════════════════════════════════ */
.popup-atelier {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.97);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 20px 26px;
    min-width: 340px;
    max-width: 500px;
    box-shadow: 0 4px 20px var(--color-shadow-violet);
    z-index: 900;
    animation: fadeInDown 0.4s ease;
    overflow: visible;
}

/* Border beam — lumière qui tourne autour de la bordure */
.popup-atelier::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: conic-gradient(
        from var(--beam-angle, 0deg),
        transparent 0%,
        transparent 70%,
        #8a659a 78%,
        #b794c9 82%,
        #f5eef8 85%,
        #ffffff 87%,
        #f5eef8 89%,
        #b794c9 92%,
        #8a659a 96%,
        transparent 100%
    );
    z-index: -1;
    animation: border-beam-rotate 4s linear infinite;
}

.popup-atelier::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    z-index: -1;
}

@keyframes border-beam-rotate {
    0% { --beam-angle: 0deg; }
    100% { --beam-angle: 360deg; }
}

@property --beam-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 20px;
    cursor: pointer;
    color: var(--neutral-mid);
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.popup-close:hover { color: var(--color-dark); }

.popup-label {
    font-size: 0.72em;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-atelier h3 {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.popup-meta {
    display: flex;
    gap: 18px;
    font-size: 0.85em;
    color: var(--color-text-doux);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.popup-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-popup {
    display: inline-block;
    background: linear-gradient(135deg, #9b72b0 0%, #7a4f8a 30%, #8a659a 50%, #6a3d7a 70%, #9b72b0 100%);
    background-size: 300% 300%;
    animation: liquid-btn-popup 4s ease infinite;
    color: var(--color-extra-light);
    padding: 9px 22px;
    border-radius: 20px;
    font-size: 0.88em;
    font-family: 'Questrial', sans-serif;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(138,101,154,0.25);
}

@keyframes liquid-btn-popup {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.btn-popup::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateY(-50%) skewX(-15deg);
    animation: liquid-shine-popup 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquid-shine-popup {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

.btn-popup:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 6px 20px rgba(138,101,154,0.4), 0 0 15px rgba(138,101,154,0.2);
}

/* ════════════════════════════════════════
   BANDEAU ATELIER (bas de page)
   ════════════════════════════════════════ */
.bandeau-atelier {
    background: var(--atelier-bg);
    border-top: 1px solid var(--atelier-border);
    padding: 18px 40px;
    max-width: 1920px;
    margin: 0 auto;
}

.bandeau-atelier-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.bandeau-atelier-titre {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 3px;
}

.bandeau-atelier-meta {
    font-size: 0.85em;
    color: var(--neutral-mid);
}

/* ════════════════════════════════════════
   SECTION CARTE / PLAN
   ════════════════════════════════════════ */
.page-map {
    position: relative;
    display: flex;
    background: var(--color-extra-light);
    padding: 40px;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 14px;
    overflow: hidden;
}

/* Le div Leaflet doit avoir une hauteur explicite */
#map-leaflet {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 14px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
}

.informations {
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-dark);
    padding: 20px;
}

.informations-overlay {
    position: absolute;
    top: 46%;
    left: 80%;
    width: 20%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.informations-logo-societe {
    width: 80%;
    object-fit: cover;
    aspect-ratio: 1.05309735;
}

.informations-nom-societe {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--color-dark);
    margin-top: 8px;
}

.informations-texte-adresse,
.informations-texte-telephone,
.informations-texte-email {
    font-size: 0.9em;
    color: var(--color-dark);
    text-align: center;
    margin-top: 4px;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.page-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-footer-bg);
    color: var(--color-extra-light);
    padding: 20px 0 0;
}

.reseaux-sociaux {
    width: 60%;
    height: 70px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.reseau-social-item {
    color: var(--color-extra-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.footer-social-img {
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

.footer-social-img:hover { opacity: 0.8; }

/* Icône itinéraire (mobile uniquement) */
.map-class {
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Visible uniquement sur écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .map-class { display: flex; }
}

.copyright-mentions-legales {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
    height: 50px;
    align-items: center;
    color: var(--color-extra-light);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 12px;
}

.footer-copyright,
.footer-mentions-legales {
    display: flex;
    font-size: .78em;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
}

.footer-mentions-legales a {
    color: var(--color-extra-light);
    text-decoration: none;
}

.footer-mentions-legales a:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════
   PAGES DE SOINS (structure commune)
   ════════════════════════════════════════ */
.page-soin-header {
    background: var(--color-back-violet-pale);
    padding: 40px 40px 30px;
    border-bottom: 1px solid var(--color-border-light);
}

.page-soin-header .breadcrumb {
    font-size: 0.84em;
    color: var(--neutral-mid);
    margin-bottom: 12px;
}

.page-soin-header .breadcrumb a {
    color: var(--neutral-mid);
    text-decoration: none;
}

.page-soin-header .breadcrumb a:hover { text-decoration: underline; }

.page-soin-header h1 {
    font-size: 2em;
    color: var(--color-dark);
    font-weight: 700;
    margin-bottom: 6px;
}

.page-soin-header .sous-titre {
    font-size: 1em;
    color: var(--color-light);
    font-style: italic;
}

.avertissement-medical {
    text-align: center;
    font-size: 0.85em;
    color: var(--neutral-mid);
    font-style: italic;
    padding: 16px 40px;
    border-top: 1px solid var(--color-border-light);
}

.btn-rdv-cta {
    display: inline-block;
    background: var(--color-dark);
    color: var(--color-extra-light);
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 0.95em;
    font-family: 'Questrial', sans-serif;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.btn-rdv-cta:hover {
    background: var(--color-dark-hover);
    transform: translateY(-2px);
}

/* ════════════════════════════════════════
   UTILITAIRES
   ════════════════════════════════════════ */
.page-txt-img .block-text { order: 1; }
.page-txt-img .block-img  { order: 2; }

/* Fleurs de Bach */
.page-fleurs-de-bach { padding-bottom: 15px; }

/* ════════════════════════════════════════
   RESPONSIVE — TABLETTE (≤1024px)
   ════════════════════════════════════════ */
@media screen and (max-width: 1360px) {
    .citation1, .citation2, .citation3, .citation4 { font-size: 1.55em; }
    .page-presentation .block-img { width: 19%; }
    .page-presentation .presentation-cabinet-photo { width: 19%; }
    .block-text-citation { top: 120%; }
    .logo-accueil-container { width: 274px; }
    .logo-accueil-img { width: 247px; height: 236px; }
    .logo-accueil-nom { font-size: 4.28em; }
    .logo-accueil-accroche { font-size: 1.87em; }
    .block-text .left { font-size: 12em; }
    .block-text .right .top { font-size: 5em; }
    .formules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 1024px) {
    .block-text .left { font-size: 9em; }
    .block-text .right .top { font-size: 4em; }
    .citation1, .citation2, .citation3, .citation4 { font-size: 1.10em; }
    .logo-accueil-nom { font-size: 3.74em; }
    .logo-accueil-accroche { font-size: 1.43em; }

    .page,
    .page-fleurs-de-bach {
        flex-direction: column;
    }

    .block-text { width: 80%; }
    .block-img  { width: 80%; }

    .page-txt-img .block-text { order: 2; }
    .page-txt-img .block-img  { order: 1; }

    .map-container { width: 75%; }
    .informations  { width: 25%; }
    .informations-overlay { left: 77.5%; }
    .informations-texte-adresse,
    .informations-texte-telephone { font-size: .9em; }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   ════════════════════════════════════════ */
@media screen and (max-width: 768px) {
    .section-formules { padding: 32px 20px; }
    .formules-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .formules-grid--3col { grid-template-columns: repeat(2, 1fr) !important; }
    .section-services { padding: 0 20px 16px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { border-right: none !important; }
    .service-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--color-border-card) !important; }
    .service-card:last-child { border-bottom: none !important; }
    /* La carte Infrathérapie (service-card--full) n'est pas un item de la
       grille interne : les 3 règles juste au-dessus (pensées pour les
       séparateurs entre cartes de la grille) la privaient aussi de sa
       bordure droite et basse. On la restaure explicitement ici. */
    .service-card.service-card--full {
        border-right: 2px solid var(--color-border-card) !important;
        border-bottom: 2px solid var(--color-border-card) !important;
    }
    .bandeau-nouveau { padding: 16px 20px; }
    .bandeau-atelier { padding: 16px 20px; }
    .section-apropos { padding: 36px 20px; }
    .apropos-inner { grid-template-columns: 1fr; text-align: center; }
    .apropos-photo-col { margin: 0 auto; }
    .apropos-badges { justify-content: center; }
}

@media screen and (max-width: 750px) {
    .page-map {
        flex-direction: column;
        align-items: center;
    }

    .map-container {
        width: 100%;
        height: 400px;
    }

    .informations-overlay {
        position: static;
        width: 100%;
        padding: 20px;
    }

    .informations {
        width: 100%;
        padding: 20px;
    }

    .logo-accueil-nom { font-size: 3.0em; }
    .logo-accueil-accroche { font-size: 1.08em; }
    .block-text .left { font-size: 8em; }
    .block-text .right .top { font-size: 2.5em; }
}

/* ══════════════════════════════════════════════
   SECTION PRÉSENTATION — flux normal empilé
   Applicable mobile ET tablette : le positionnement en
   pourcentages absolus (pensé pour desktop) casse dès que
   le texte s'enroule sur plus de lignes qu'en desktop.
   ══════════════════════════════════════════════ */
@media screen and (max-width: 1279px) {
    .page-presentation {
        padding: 30px 20px;
    }

    .page-presentation .background {
        display: none; /* l'image de fond n'est pas adaptée à un rendu empilé */
    }

    .page-presentation .main-container {
        position: static;
        width: 100%;
        left: 0;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .page-presentation .main-container .block-text {
        width: 100%;
        text-align: left;
        font-size: 0.95em;
        line-height: 1.7;
    }

    .page-presentation .presentation-cabinet-photo {
        position: static;
        width: 140px;
        height: 140px;
        top: 0;
        left: 0;
        border: 3px solid var(--color-border-img);
        margin: 0 auto;
    }

    .block-text-citation {
        position: static;
        width: 100%;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .citation1, .citation2, .citation3, .citation4 {
        position: static;
        width: 100%;
        left: 0 !important;
        font-size: 1.2em;
        text-align: left;
    }
}

/* Tablette uniquement : on a la place pour retrouver l'effet décalé du desktop,
   contrairement au mobile où l'espace est trop restreint.
   Largeur réduite à 70% pour que left + width ne dépasse jamais 100%
   (27% + 70% = 97%, sans quoi les citations débordaient du conteneur
   et cassaient la mise en page tablette). */
@media screen and (min-width: 768px) and (max-width: 1279px) {
    .citation1, .citation2, .citation3, .citation4 {
        position: relative;
        width: 70%;
    }
    .citation1 { left: 6%  !important; }
    .citation2 { left: 13% !important; }
    .citation3 { left: 20% !important; }
    .citation4 { left: 27% !important; }
}

@media screen and (max-width: 767px) {
    .popup-atelier {
        min-width: 280px;
        left: 16px;
        right: 16px;
        transform: none;
        width: calc(100% - 32px);
    }

    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-12px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .formules-grid { grid-template-columns: 1fr 1fr; }
    .formules-grid--3col { grid-template-columns: 1fr !important; }
    .logo-accueil-nom { font-size: 2.50em; }

    /* ══════════════════════════════════════════════
       SECTION 8 SOINS — empilement vertical du chiffre et du texte
       ══════════════════════════════════════════════ */
    .page-huit-soins {
        padding: 0 20px;
    }

    .page-huit-soins .block-text {
        width: 100%;
        flex-direction: column;
        padding: 20px;
        border-radius: 14px;
    }

    .block-text .left {
        width: 100%;
        font-size: 4.5em;
        line-height: 1;
    }

    .block-text .right {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .block-text .right .top {
        font-size: 1.6em;
        text-align: center;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .block-text .right .bottom {
        text-align: center;
        font-size: 0.92em;
    }
}


/* ════════════════════════════════════════
   CORRECTIONS BANDE GRISE & HERO
   ════════════════════════════════════════ */

/* Supprimer le padding-top du body — géré dynamiquement par script.js */
html, body {
    padding-top: 0 !important;
}

/* Valeur de repli pour le décalage sous le header fixe, le temps que
   script.js calcule la valeur exacte. Avant cette valeur de repli, le
   contenu démarrait à 0 jusqu'à ce que le JS s'exécute — et comme ce
   calcul attendait le chargement COMPLET de la page (toutes les images),
   le délai pouvait devenir net sur une connexion réelle (plus lente
   qu'en local) : la page semblait "collée" en haut puis se décalait
   brusquement d'un coup, donnant l'impression qu'on ne pouvait pas
   scroller. Ces valeurs correspondent à la hauteur réelle du header
   (73px / 56px sous 420px) moins les mêmes 15px que script.js retire. */
main {
    padding-top: 58px;
}

@media screen and (max-width: 420px) {
    main {
        padding-top: 41px;
    }
}

/* Le hero est en position relative pour contenir le bandeau absolu */
/* ── Détail sous le nom du rituel ── */
.formule-detail {
    font-size: 0.84em;
    color: var(--color-light);
    margin-bottom: 2px;
    font-style: italic;
}
