/*
 * Harmonie : surcouche de la feuille Webflow (chargée après elle par app/filtres/90-harmonie.php).
 * Une seule échelle de titres, de textes, d'espacements et de boutons, fluide de 375 à 1440 px.
 * Ni couleurs de marque, ni polices, ni mise en page changées. Retirer le filtre suffit à tout annuler.
 */
:root {
  /* Échelle modulaire : rapport 1,2 sur téléphone (base 16 px), 1,25 sur ordinateur (base 18 px). */
  --t-petit: clamp(.875rem, .853rem + .094vw, .9375rem);     /* 14 → 15 */
  --t-texte: clamp(1rem, .956rem + .188vw, 1.125rem);        /* 16 → 18 */
  --t-h4: clamp(1.1875rem, 1.12rem + .282vw, 1.375rem);      /* 19 → 22 */
  --t-h3: clamp(1.4375rem, 1.327rem + .469vw, 1.75rem);      /* 23 → 28 */
  --t-h2: clamp(2.0625rem, 1.82rem + 1.033vw, 2.75rem);      /* 33 → 44 */
  --t-h1: clamp(2.5rem, 1.884rem + 2.629vw, 4.25rem);        /* 40 → 68 */
  --lh-texte: 1.65;
  --lh-titre: 1.15;
  --mesure: 56ch;                                            /* ≈ 70 caractères en Readex Pro */
  /* Espacements verticaux */
  --esp-section: clamp(3.5rem, 2.62rem + 3.756vw, 6rem);     /* 56 → 96 */
  --esp-hero: clamp(2.5rem, 1.972rem + 2.254vw, 4rem);       /* 40 → 64 */
  /* Bouton unique */
  --bouton-h: 48px;
  --bouton-pad: .75rem 1.5rem;
  /* Couleurs existantes du site ; le gris est assombri pour le contraste AA (4,5:1) */
  --c-titre: #342b20;
  --c-texte: #504434;
  --c-gris: #6a5a4a;
  --c-accent: #9c634b;
  --neutral--800: var(--c-titre);                     /* restait le bleu marine du modèle Webflow (libellés) */
  --globals--color--texts--02: var(--c-gris);
}

/* Texte courant */
body { font-size: var(--t-texte); line-height: var(--lh-texte); }
p { font-weight: 300; text-wrap: pretty; max-width: var(--mesure); }
.text-center p, p.text-center, .text-light p, p.color-white { margin-inline: auto; }
@media (max-width: 991px) { p.text-center-tablet, .text-center-tablet p { margin-inline: auto; } }
.bdd-cookies p, .offres-bandeau p { font-weight: inherit; max-width: none; }
.text-neutral-600 { color: var(--c-gris); }
@media (max-width: 479px) { p, li { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 8 4 3; } }

/* Titres : une taille par niveau sur toutes les pages, quelle que soit la classe Webflow */
h1, h2, h3, h4, .display-10, .display-9, .display-7, .display-6 { text-wrap: balance; -webkit-hyphens: manual; hyphens: manual; }
h1, h1.display-9, .display-10 { font-size: var(--t-h1); line-height: 1.1; letter-spacing: -.01em; }
h2, .display-9 { font-size: var(--t-h2); line-height: var(--lh-titre); letter-spacing: -.005em; }
h3, .display-7, .display-6 { font-size: var(--t-h3); line-height: 1.2; font-weight: 400; }
h4 { font-size: var(--t-h4); line-height: 1.25; }
/* Titre de l'accueil : ligne assez courte pour ne jamais couper « bien- / être » (« beauté et de bien- » ≈ 8,2 em) */
.home-v1-description h1 { max-width: 7.5em; }
/* Le texte enrichi (« À propos… ») avait sa propre échelle sur tablette et téléphone */
.rich-text h1 { font-size: var(--t-h1); line-height: 1.1; }
.rich-text h2 { font-size: var(--t-h2); line-height: var(--lh-titre); }
.rich-text h3 { font-size: var(--t-h3); line-height: 1.2; }
.rich-text h4 { font-size: var(--t-h4); line-height: 1.25; }
/* Graisse unique du texte courant (Webflow mélangeait 200, 300 et 400) */
p.text-neutral-700, .rich-text li, .confidentialite li { font-weight: 300; }

/* Formulaires : libellés à l'échelle du texte, champs à 16 px au moins (pas de zoom iOS) */
label { font-size: var(--t-texte); line-height: 1.3; }
input, select, textarea { font-size: max(16px, 1em); }

/* Boutons : une hauteur et un rembourrage pour tous */
.primary-button, .secondary-button, input.w-button {
  min-height: var(--bouton-h); padding: var(--bouton-pad); font-size: 1rem; line-height: 1.25;
}

/* Menu « Services » : le style en ligne de Webflow le laissait bleu marine */
.dropdown-toogle { color: var(--c-titre) !important; }
.dropdown-toogle:hover, .dropdown-toogle.w--open { color: var(--c-accent) !important; }

/* Badges des listes de soins */
.utp---badge { font-size: var(--t-petit); line-height: 1.3; letter-spacing: .06em; padding: .25em .6em; }

/* Sections : un seul rythme vertical (Webflow mélangeait 40, 50, 70, 80, 90, 100, 120 et 180 px) */
.section,
.section.top-bottom-90px, .section.bottom-90px, .section.top-70px-bottom-50px,
.section.top-large, .section.top-90px, .section.hero, .section.hero.pd-bottom-default {
  padding-top: var(--esp-section); padding-bottom: var(--esp-section);
}
.section.hero, .section.hero.pd-bottom-default { padding-top: var(--esp-hero); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ───────────── Écrans réels : héros, sections et cibles tactiles (référence : 1280×720 → 2560×1440, tablettes, téléphones) ───────────── */
:root {
  --entete: 98px;                                            /* navigation fixe : logo 50 px + 2 × 24 px */
  --hero-air: clamp(1rem, 3vh, 2.5rem);
  --hero-h: 86vh;                                            /* laisse voir 10 à 14 % de la section suivante */
}
@supports (height: 1svh) {
  /* svh : hauteur avec barres du navigateur mobile affichées, le héros ne saute pas quand elles se replient */
  :root { --hero-air: clamp(1rem, 3svh, 2.5rem); --hero-h: 86svh; --t-h1: min(clamp(2.5rem, 1.884rem + 2.629vw, 4.25rem), 12svh); }
}
@media (max-width: 767px), (max-height: 500px) {
  :root { --entete: 74px; }
  .header-wrapper { padding-top: 12px; padding-bottom: 12px; }
}

/* Héros de l'accueil : texte à gauche, photo pleine hauteur à droite (ordinateur), photo en bandeau sous le texte (tablette, téléphone) */
.home-v1-description { box-sizing: border-box; gap: var(--hero-air); padding-top: calc(var(--entete) + var(--hero-air)); }
.hero-image-full-width-right img { object-position: 50% 62%; }   /* bougies et bâtonnets */
@media (min-width: 992px) {
  .home-v1-description { min-height: var(--hero-h); justify-content: center; padding-top: calc(var(--entete) + var(--hero-air) / 2); padding-bottom: var(--hero-air); }
}
/* Tablette et téléphone en paysage : assez de largeur pour deux lignes (« …beauté et de / bien-être à Saint-Aubin »), sans couper « bien-être » */
@media (min-width: 640px) and (max-width: 991px) { .home-v1-description h1 { max-width: 13em; } }
@media (max-width: 991px) {
  .home-v1-description { padding-bottom: 0; }
  .image-wrapper.hero-image-full-width-right { margin-top: calc(var(--hero-air) * 1.5); height: clamp(180px, 36vh, 440px); height: clamp(180px, 36svh, 440px); }
  .image-wrapper.hero-image-full-width-right img { height: 100%; }
}

/* Héros des pages de soins et du bon cadeau : hauteur bornée par l'écran, photo recadrée sur son sujet */
.section.hero.pd-bottom-default { padding-top: calc(var(--entete) + var(--hero-air)); padding-bottom: calc(var(--hero-air) * 2); }
.grid-2-columns.service-single-hero-grid { padding-top: 0; row-gap: calc(var(--hero-air) * 1.5); }
.service-single-hero-grid .image-wrapper { height: clamp(320px, calc(var(--hero-h) - var(--entete) - var(--hero-air) * 3), 720px); }
@media (min-width: 992px) {
  .section.hero.pd-bottom-default { box-sizing: border-box; min-height: var(--hero-h); display: flex; align-items: center; }
  .section.hero.pd-bottom-default > .container-default { width: 100%; }
}
@media (max-width: 991px) {
  .service-single-hero-grid .image-wrapper { height: clamp(200px, 38vh, 520px); height: clamp(200px, 38svh, 520px); }
}
@media (max-width: 767px) {
  .image-wrapper.hero-image-full-width-right { height: clamp(180px, 30vh, 360px); height: clamp(180px, 30svh, 360px); }
  .service-single-hero-grid .image-wrapper { height: clamp(180px, 32vh, 360px); height: clamp(180px, 32svh, 360px); }
}
.service-single-hero-grid img[src*="Massage_Big"] { object-position: 50% 35%; }      /* mains et épaule */
.service-single-hero-grid img[src*="Pedicure_Big"] { object-position: 30% 25%; }     /* pieds en haut à gauche */
.service-single-hero-grid img[src*="Regard_Big"] { object-position: 50% 55%; }       /* yeux */
.service-single-hero-grid img[src*="facials-main"] { object-position: 45% 50%; }     /* visage */
/* Téléphone court (375×667, 320×568) ou en paysage : « Réserver » remonte sous le titre pour rester au premier écran, même avec la barre cookies */
@media (max-width: 767px) and (max-height: 740px), (max-width: 991px) and (max-height: 500px) {
  .service-single-hero-grid > div:first-child, .home-v1-description > div:last-child { display: flex; flex-direction: column; }
  .service-single-hero-grid > div:first-child > .buttons-row, .home-v1-description .buttons-row { order: -1; margin: 0 0 var(--hero-air); }
  .service-single-hero-grid > div:first-child > .overflow-hidden { order: -2; margin-bottom: var(--hero-air); }
}

/* Soins de l'accueil (7 cartes) : la dernière carte seule sur sa rangée prend toute la largeur, plus de cases vides dans le quadrillage */
.grid-3-columns.service-grid > .w-dyn-item:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 991px) {
  .grid-3-columns.service-grid > .w-dyn-item:last-child:nth-child(3n+1) { grid-column: auto; }
  .grid-3-columns.service-grid > .w-dyn-item:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
}

/* Autres premières sections (contact, confidentialité, 404) : jamais sous la navigation fixe */
.section.top-large, .section.top-90px.confidentialite, .section.hero:not(.pd-bottom-default) { padding-top: calc(var(--entete) + var(--hero-air) * 2); }

.card._404-not-found-card { padding-top: clamp(2rem, 7vh, 6.875rem); padding-bottom: clamp(2rem, 6vh, 3.625rem); }

/* Fenêtre de réservation Salonized : dans l'écran à toutes les tailles (Webflow : 800 px de large, 100vw, 95svh + 8svh) */
.pop-up-salonized { z-index: 1000; width: 100%; height: 100vh; height: 100dvh; }   /* au-dessus du bandeau d'offre (999) */
.pop-up-salonized .code-embed { box-sizing: border-box; width: min(800px, 100% - 24px); height: 100vh; height: 100dvh; padding-top: max(56px, 8vh); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.pop-up-salonized .close { display: flex; align-items: center; min-height: 44px; padding: 0 12px; margin: 0; top: max(6px, env(safe-area-inset-top)); right: 12px; }

/* Cibles tactiles de 44 px au moins */
.list-nav-menu .link, .dropdown-toogle { min-height: 44px; display: flex; align-items: center; }
.hamburger-menu { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
@media (max-width: 991px) {
  .list-nav-menu { row-gap: 8px; }   /* liens de 44 px : même rythme qu'avant */
  /* Menu ouvert : défile dans l'écran au lieu de passer sous le bord ou sous la carte cookies */
  .nav-menu-wrapper { max-height: calc(100vh - var(--entete) - 40px); max-height: calc(100dvh - var(--entete) - 40px); overflow-y: auto; overscroll-behavior: contain; }
  body:has(> .bdd-cookies:not([hidden])) .nav-menu-wrapper { padding-bottom: 170px; }
}
a.logo-link { min-height: 44px; }
.flex-horizontal > a[href^="tel:"], .flex-horizontal > a[href^="mailto:"] { min-height: 44px; display: inline-flex; align-items: center; }   /* contact */
/* Bon cadeau : boutons radio (style en ligne de Webflow : libellé de 16 px de haut) */
.w-embed > div:has(> input[type="radio"]) { min-height: 44px; }
.w-dyn-items:has(input[type="radio"]) { row-gap: 4px; }   /* rangées de 44 px : même rythme qu'avant */
.w-embed input[type="radio"] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--c-accent); }
.w-embed input[type="radio"] + label[for] { display: flex; align-items: center; min-height: 44px; height: auto !important; margin: 0 !important; line-height: 1.3 !important; cursor: pointer; }
