/*
Theme Name: Homeorhesis
Author: Homeorhesis Coaching
Description: Thème du site Homeorhesis Coaching – coach sportif à domicile. Design sombre vert olive et orange.
Version: 4.5
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: homeorhesis
*/

:root {
  --bg: #12160f;
  --bg-2: #1a2016;
  --card: #20271b;
  --line: rgba(255,255,255,.09);
  --text: #eef1e8;
  --muted: #a3ab98;
  --olive: #677458;
  --olive-light: #9aab82;
  --orange: #ff8800;
  --radius: 22px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.wp-site-blocks *, .wp-site-blocks *::before, .wp-site-blocks *::after { box-sizing: border-box; }
.wp-site-blocks :where(h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
.wp-site-blocks img { display: block; max-width: 100%; }
.wp-site-blocks a { color: inherit; text-decoration: none; }
.wp-site-blocks p a:not(.wp-block-button__link) { color: var(--olive-light); }
.wp-site-blocks p a:not(.wp-block-button__link):hover { color: var(--orange); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.site-main section, section.hero { padding: 90px 0; scroll-margin-top: 70px; }
.site-main section.sec-tight { padding-top: 0; }
.site-main section.sec-about { padding-top: 40px; }
.site-main section.hero { padding: 140px 0 60px; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }

/* Police du site imposée : certaines extensions (Elementor, Easy Google Fonts…)
   ajoutent leurs propres polices à tout le site, on les neutralise ici. */
body, body .wp-site-blocks,
body .wp-site-blocks :is(h1, h2, h3, h4, h5, h6, p, li, a, span, strong, b, em, s, small, mark, button, summary, blockquote, figcaption, label, input, textarea) {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}
body .wp-site-blocks :is(h1, h2, h3) {
  font-weight: 500 !important; font-style: normal !important; text-transform: none !important;
  line-height: 1.12 !important; letter-spacing: -.02em !important;
}
body .wp-site-blocks h4 { font-style: normal !important; text-transform: none !important; letter-spacing: normal !important; }
/* Couleur et tailles des titres (Elementor impose des titres noirs, Easy Google Fonts des tailles fixes) */
body .wp-site-blocks :is(h1, h2, h3, h4, h5, h6) { color: var(--text); }
.wp-site-blocks :where(h2) { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.wp-site-blocks :where(h3) { font-size: 1.3rem; }
body .wp-site-blocks .legal-card h2 { letter-spacing: 0 !important; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
.dim, p.dim { color: var(--muted); }
mark.has-inline-color { background: none; }
.tag {
  display: inline-block; font-size: .78rem; padding: 6px 14px; line-height: 1.6;
  border: 1px solid rgba(255,255,255,.16); border-radius: 99px; color: #cfd6c4;
  background: rgba(18,22,15,.45);
}

/* ---------- Boutons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg);
  padding: 12px 22px; border-radius: 99px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.6; text-decoration: none;
  transition: transform .2s, background .2s;
}
.wp-block-button .wp-block-button__link::after { content: "↗"; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-orange .wp-block-button__link { background: var(--orange); color: #1a1000; }
.wp-block-button.is-ghost .wp-block-button__link { background: transparent; color: var(--text); border-color: var(--line); }
.wp-block-button.no-arrow .wp-block-button__link::after { content: none; }
.wp-block-button.is-small .wp-block-button__link { padding: 9px 18px; font-size: .85rem; }
.btns-center { justify-content: center; margin-top: 24px; }

/* ---------- En-tête ---------- */
.site-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; }
.admin-bar .site-header { top: 48px; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative;
  padding: 10px 12px 10px 18px; border-radius: 99px;
  background: rgba(18,22,15,.72); backdrop-filter: blur(12px); border: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.logo img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { padding: 8px 14px; border-radius: 99px; font-size: .9rem; color: var(--muted); transition: .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: 4px 10px; }
.logo, .nav-links a, .nav .wp-block-button__link { white-space: nowrap; }

/* ---------- Haut de page ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding: 140px 0 60px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 72% 42%, rgba(154,171,130,.28) 0%, rgba(103,116,88,.12) 28%, transparent 55%),
    radial-gradient(circle at 88% 78%, rgba(255,136,0,.16) 0%, transparent 35%),
    radial-gradient(circle at 10% 10%, rgba(103,116,88,.18) 0%, transparent 40%),
    var(--bg);
}
.hero-logo {
  position: absolute; top: 50%; right: 4%; transform: translateY(-55%);
  width: min(400px, 31vw); aspect-ratio: 1; border-radius: 50%; cursor: pointer;
}
.hero-logo img {
  width: 100%; height: 100%; object-fit: contain; opacity: .92;
  filter: drop-shadow(0 0 18px rgba(154,171,130,.22));
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s, opacity .5s;
}
.hero-logo::before, .hero-logo::after {
  content: ""; position: absolute; inset: -6%; border-radius: 50%;
  border: 1px solid rgba(154,171,130,.18);
  transition: inset .6s cubic-bezier(.2,.8,.2,1), border-color .5s, box-shadow .5s;
}
.hero-logo::after { inset: -18%; border-color: rgba(255,136,0,.12); border-style: dashed; }
/* .is-active = même effet déclenché au toucher (tablette, téléphone) */
.hero-logo:hover img, .hero-logo.is-active img {
  transform: scale(1.06) rotate(12deg); opacity: 1;
  filter: drop-shadow(0 0 30px rgba(255,136,0,.55)) drop-shadow(0 0 70px rgba(154,171,130,.35));
}
.hero-logo:hover::before, .hero-logo.is-active::before { inset: -9%; border-color: rgba(154,171,130,.45); box-shadow: 0 0 60px rgba(154,171,130,.15) inset; }
.hero-logo:hover::after, .hero-logo.is-active::after { inset: -22%; border-color: rgba(255,136,0,.5); animation: orbit 12s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-logo img, .hero-logo::before, .hero-logo::after { transition: none; }
  .hero-logo:hover img, .hero-logo.is-active img { transform: none; }
  .hero-logo::after, .hero-logo:hover::after, .hero-logo.is-active::after { animation: none !important; }
}
.hero .wrap { position: relative; z-index: 1; pointer-events: none; }
.hero-text { pointer-events: auto; max-width: min(580px, 50vw); }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin: 18px 0 20px; }
.hero-sub { color: #d5dbcc; margin-bottom: 24px; font-size: 1.05rem; }
.hero-sub strong { color: var(--text); }
.hero-actions { margin-top: 26px; }
.promo {
  display: flex; gap: 14px; align-items: center; margin-top: 8px;
  background: rgba(255,136,0,.12); border: 1px solid rgba(255,136,0,.35);
  padding: 14px 18px; border-radius: 16px; max-width: 520px;
}
.promo-big { font-size: 1.8rem; font-weight: 700; color: var(--orange); line-height: 1; }
.promo-text { font-size: .9rem; color: #f2dcc0; }

/* ---------- Cartes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card h3 { margin: 14px 0 10px; }
.card p { color: var(--muted); }
.citation { color: #cfd6c4 !important; font-style: italic; border-left: 2px solid var(--olive-light); padding-left: 14px !important; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(154,171,130,.14); color: var(--olive-light); font-size: 1.2rem; line-height: 1;
}

/* ---------- Qui suis-je ---------- */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 20px; }
.about .portrait { border-radius: var(--radius); overflow: hidden; background: var(--card); margin: 0; }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.about h2 { margin-top: 16px; }
.about .card p:not(.tag) { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ---------- Concept ---------- */
.intro { text-align: center; }
.intro h2 { max-width: 880px; margin: 20px auto 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.concept { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; text-align: left; }

/* ---------- Excuses ---------- */
.problems { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.photo-card { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 420px; background: var(--card); }
.photo-card .photo-card-img { position: absolute; inset: 0; margin: 0; }
.photo-card .photo-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.photo-card .overlay {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(18,22,15,.75); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.overlay-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px !important; color: var(--text) !important; }
.overlay-text { font-size: .85rem; }
.problems .card h2 { margin-bottom: 14px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
.mini-grid h4 { font-size: 1rem; font-weight: 600; margin: 10px 0 6px; }
.mini-grid p.dim { font-size: .9rem; }

/* ---------- Bandeau « Je viens chez vous » ---------- */
.banner {
  border-radius: 28px; overflow: hidden; position: relative; min-height: 460px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 44px; padding: 48px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,136,0,.22) 0%, transparent 38%),
    radial-gradient(circle at 70% 110%, rgba(154,171,130,.30) 0%, transparent 50%),
    linear-gradient(135deg, #1c2417 0%, #12160f 60%, #0d100b 100%);
  border: 1px solid var(--line);
}
.banner::before {
  content: ""; position: absolute; right: -260px; top: 50%; transform: translateY(-50%);
  width: 820px; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle closest-side,
    rgba(154,171,130,.10) 0 12%, transparent 12.3% 44.6%,
    rgba(154,171,130,.28) 44.8% 45%, transparent 45.2% 69.6%,
    rgba(255,136,0,.30) 69.8% 70%, transparent 70.2% 99.6%,
    rgba(154,171,130,.18) 99.8% 100%, transparent 100%);
}
.banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(238,241,232,.10) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
}
.banner > * { position: relative; z-index: 1; }
.banner h2 { max-width: 600px; }
.banner p { max-width: 560px; color: #d5dbcc; margin-top: 20px; line-height: 1.75; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { background: rgba(18,22,15,.7); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.stat .stat-num { font-size: clamp(1rem, 4.3vw, 1.6rem); line-height: 1.2; font-weight: 600; color: var(--orange); margin: 0; }
.stat .stat-label { font-size: .8333rem; line-height: 1.5; color: var(--muted); margin: 0; }

/* ---------- Forfaits ---------- */
.head-center { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.head-center h2 { margin-top: 16px; }
.head-center p.dim { margin-top: 14px; }
/* Chaque forfait = photo et fiche dans deux cadres séparés, côte à côte */
.alt { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; position: relative; }
/* Fiche forfait : nom, sous-titre, prix, liste de ce qui est inclus, bouton */
.alt .offer {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px 46px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.alt .offer h3 { font-size: 1.9rem; margin: 0; align-self: center; text-align: center; }
.offer .offer-sub { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.offer .offer-price {
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 10px; width: 100%;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line);
}
.offer-price s { color: #6f7867; font-size: 1.05rem; }
.offer-price strong { font-size: 3rem; font-weight: 600; line-height: 1; color: var(--text); letter-spacing: -.02em; }
.offer-price em { font-style: normal; color: var(--muted); font-size: .95rem; }
.offer .offer-note { color: var(--orange); font-size: .82rem; font-weight: 600; margin-top: 10px; align-self: center; text-align: center; }
.offer .offer-per { color: var(--olive-light); font-size: .88rem; font-weight: 600; margin-top: 2px; align-self: center; text-align: center; }
.offer .offer-list { list-style: none; display: grid; gap: 11px; width: 100%; margin: 24px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.offer-list li { display: flex; gap: 12px; color: #cfd6c4; font-size: .93rem; line-height: 1.5; }
.offer-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: rgba(255,136,0,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23ff8800' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.offer .offer-cond { font-size: .8rem; color: var(--muted); margin: -12px 0 24px; }
.alt .offer-chip {
  position: absolute; bottom: 18px; left: calc(50% + 18px); z-index: 2; margin: 0;
  background: rgba(18,22,15,.85); border: 1px solid rgba(255,255,255,.14); border-radius: 99px;
  padding: 7px 15px; font-size: .8rem; font-weight: 600; color: var(--text); letter-spacing: .02em;
}
.alt.photo-left .offer-chip { left: 18px; }
.alt .alt-img { position: relative; min-height: 340px; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.alt .alt-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Cadrage centré sur les visages, quelle que soit la taille d'écran */
.alt .alt-img img[src*="forfait-solo"] { object-position: 68% 34%; }
.alt .alt-img img[src*="forfait-duo"] { object-position: 54% 31%; }
.alt .alt-img img[src*="forfait-trio"] { object-position: 40% 26%; }
.sap { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-bottom: 20px; }
.sap .sap-logo { margin: 0; }
.sap .sap-logo img { width: 110px; background: #fff; border-radius: 14px; padding: 8px; }
.sap h3 { margin-top: 0; }
.sap p strong { color: var(--text); }
.sap .sap-num { margin-top: 8px; font-size: .85rem; }

/* ---------- Villes desservies ---------- */
.infos { display: grid; grid-template-columns: 1fr; gap: 20px; }
/* Chaque section : une pastille puis le titre */
.tagged { margin-top: 16px !important; }
.card .tag, .banner .tag { color: #cfd6c4; margin-top: 0; }
#villes { scroll-margin-top: 90px; margin-bottom: 30px; } /* + 20px d'écart de la grille = 50px, comme les forfaits */
.about .card { display: flex; flex-direction: column; justify-content: center; }
.about .card > p:first-child { margin-top: 0 !important; }
/* Carte et texte dans deux cadres séparés, côte à côte (le titre est dans le cadre du texte) */
.zone { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.zone > .map { height: auto; min-height: 500px; }
.zone-text h2 { margin-bottom: 14px; }
.map { height: 500px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e8e6e1; z-index: 0; }
.map .leaflet-control-attribution { font-size: 10px; }
.map .leaflet-tooltip { background: #fff; color: #1a1a1a; border: 0; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 12px; font-weight: 600; opacity: 1 !important; }
.map .leaflet-tooltip::before { display: none; }
.map .home-label { font-size: 13px; font-weight: 700; color: var(--orange); }
.map .town-label { padding: 2px 7px; border-radius: 6px; font-size: 11px; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
@media (max-width: 600px) { .map .town-label { padding: 1px 5px; font-size: 10px; } }
.map .radius-label { padding: 4px 11px; border-radius: 99px; background: var(--orange); color: #1a1000; font-weight: 700; }
.map .leaflet-tooltip.is-hidden { visibility: hidden; }
.map .leaflet-tooltip.is-forced { visibility: visible; z-index: 10; }
.gmaps-link { margin-top: 12px; font-size: .85rem; font-weight: 600; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Témoignages ---------- */
.google-badge {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  width: fit-content; max-width: 100%; margin: 0 auto 30px; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
}
/* Vrai logo « G » multicolore de Google, sur pastille blanche (la lettre du bloc reste pour les lecteurs d'écran) */
.g-logo {
  display: block; width: 42px; height: 42px; flex: none; margin: 0; border-radius: 50%; font-size: 0 !important; color: transparent;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.g-score { font-size: 2.2rem; font-weight: 600; line-height: 1; }
.g-count { font-size: .8333rem; line-height: 1.6rem; color: var(--muted); }
.stars { color: var(--orange) !important; letter-spacing: 2px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { display: flex; flex-direction: column; gap: 16px; }
.review .review-text { color: var(--text); }
.who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); font-weight: 600; color: var(--text) !important; }
.who-name { font-weight: 700; color: var(--text) !important; }
.who-src { font-size: .8333rem; line-height: 1.6rem; }
.gallery { display: flex; gap: 14px; overflow-x: auto; margin-top: 20px; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.gallery .wp-block-image { flex: none; margin: 0; scroll-snap-align: start; }
.gallery .wp-block-image img { height: 300px; width: auto; border-radius: 16px; background: var(--card); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq .wp-block-details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.3rem; line-height: 1; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .wp-block-details p { color: var(--muted); margin-top: 12px; }

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative; overflow: hidden; padding-top: 70px;
  background:
    radial-gradient(ellipse at 15% 100%, rgba(103,116,88,.35) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 90%, rgba(255,136,0,.14) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, #161c12 100%);
}
.cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta p.dim { margin: 14px 0 24px; }
.cta-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-label { font-size: .8rem; color: var(--muted); margin-bottom: 4px !important; }
.foot-grid { display: grid; grid-template-columns: repeat(2, auto); justify-content: space-between; gap: 30px; margin-top: 80px; }
.foot-title { font-size: .9rem; font-weight: 700; margin-bottom: 14px !important; }
.foot-links { list-style: none; }
.foot-links a { display: block; color: var(--muted); font-size: .9rem; padding: 3px 0; }
.foot-links a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; color: #fff !important; display: grid; place-items: center; transition: transform .2s, box-shadow .2s; }
.socials a:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.socials svg { width: 22px; height: 22px; }
.socials .fb { background: #1877f2; }
.socials .ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.socials .pin { background: #e60023; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 90px; padding: 20px 0 26px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
.legal p { color: var(--muted); }

/* ---------- Pages simples (mentions légales…) ---------- */
.page-main { padding: 130px 0 70px; }
.page-main .wp-block-post-title { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: 30px; }
.page-main .wp-block-post-content { max-width: 820px; }
.legal-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; margin-bottom: 16px; }
.legal-card h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card p + p { margin-top: 10px; }
.legal-card ul { list-style: none; }
.legal-card li { padding: 4px 0; }
.legal-card strong { color: var(--text); }

/* ---------- Animations au défilement ---------- */
/* Barre de progression de lecture */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60;
  background: linear-gradient(90deg, var(--olive-light), var(--orange));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
/* Entrée du haut de page au chargement */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-text > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-text > *:nth-child(2) { animation-delay: .12s; }
.hero-text > *:nth-child(3) { animation-delay: .24s; }
.hero-text > *:nth-child(4) { animation-delay: .36s; }
.hero-text > *:nth-child(5) { animation-delay: .48s; }
@keyframes logo-in { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
.hero-logo { animation: logo-in 1.2s cubic-bezier(.2,.8,.2,1) .2s both; translate: 0 var(--py, 0px); }
/* Apparition des blocs (classes ajoutées par le script, seulement si le JavaScript fonctionne) */
.anim .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .75s ease, transform .85s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0ms);
}
.anim .reveal.from-left { transform: translateX(-48px); }
.anim .reveal.from-right { transform: translateX(48px); }
.anim .reveal.zoom { transform: scale(.94); }
/* Téléphone et tablette : apparition en montant, sans glissement latéral */
@media (max-width: 900px) { .anim .reveal.from-left, .anim .reveal.from-right { transform: translateY(30px); } }
.anim .reveal.is-in { opacity: 1; transform: none; }
/* Parallaxe légère sur les photos des forfaits */
.alt .img, .alt .alt-img img { scale: 1.12; translate: 0 var(--py, 0px); will-change: translate; }
/* Téléphone et tablette : pas de parallaxe sur ces photos, pour garder les visages entiers */
@media (max-width: 900px) { .alt .img, .alt .alt-img img { scale: 1; translate: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .hero-logo { animation: none; }
  .anim .reveal { opacity: 1; transform: none; transition: none; }
  .alt .img, .alt .alt-img img, .hero-logo { scale: 1; translate: none; }
  .scroll-progress { display: none; }
}

/* ---------- Responsive ---------- */
/* Menu ☰ dès que la barre n'a plus la place d'afficher tous les onglets */
@media (max-width: 1180px) and (min-width: 1041px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; font-size: .85rem; }
  .nav .wp-block-button .wp-block-button__link { padding: 9px 14px; }
}
@media (max-width: 1040px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 10px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 16px; }
  .burger { display: block; }
  .nav .wp-block-buttons { margin-left: auto; } /* le bouton reste visible à côté du menu ☰ */
}
@media (max-width: 900px) {
  .site-main section, section.hero { padding: 64px 0; }
  /* Tablette et téléphone : logo au-dessus du texte, en entier, anneau qui tourne doucement */
  .hero, .site-main section.hero { flex-direction: column; justify-content: center; padding-top: 120px; }
  .hero-text { max-width: none; }
  .hero-logo {
    position: relative; top: auto; right: auto; transform: none; flex: none;
    width: min(200px, 50vw); margin: 10px auto 60px; -webkit-tap-highlight-color: transparent;
  }
  .hero-logo::after { animation: orbit 30s linear infinite; }
  .concept, .problems, .about, .alt, .reviews, .cta, .mini-grid, .zone { grid-template-columns: 1fr; }
  /* Téléphone et tablette : photo au format 3:2 pour garder les visages dans le cadre */
  .alt .alt-img { min-height: 0; aspect-ratio: 3 / 2; order: -1; }
  /* Téléphone : photo proche de sa fiche, plus d'espace entre deux forfaits */
  .alt { gap: 12px; margin-bottom: 36px; }
  .alt .offer { padding: 30px 24px 32px; }
  .alt .offer-chip, .alt.photo-left .offer-chip { top: 16px; bottom: auto; left: 16px; }
  .about .portrait { max-width: 340px; }
  .banner { padding: 34px 26px; min-height: 0; gap: 34px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 18px 16px; }
  .photo-card { min-height: 360px; }
  .map { height: 380px; }
  .zone > .map { min-height: 380px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .cta-info, .foot-grid { grid-template-columns: 1fr; }
  .sap { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .banner { padding: 30px 20px; }
}
@media (max-width: 360px) { .stat { padding: 14px 12px; } .stat .stat-num { font-size: .85rem; } }

/* Bouton « Réserver une séance » des forfaits : centré sur tous les écrans */
.alt .offer .wp-block-buttons { align-self: center; justify-content: center; }
/* « Je veux plus d'informations » : centré sur tablette et téléphone, avec une pulsation qui invite à cliquer */
@keyframes cta-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,136,0,.55); } 70% { box-shadow: 0 0 0 16px rgba(255,136,0,0); } }
.cta .wp-block-button.is-orange .wp-block-button__link, .nav .wp-block-button.is-orange .wp-block-button__link { animation: cta-pulse 2.2s ease-out infinite; }
/* Petit téléphone : bouton compact et logo sans le nom, pour que tout tienne dans la barre */
@media (max-width: 600px) {
  .nav .logo { font-size: 0; gap: 0; }
  .nav .wp-block-button .wp-block-button__link { padding: 8px 14px; font-size: .8rem; }
  .nav .wp-block-buttons { margin: 0 auto; } /* centré entre le logo et le menu ☰ */
}
@media (max-width: 900px) { .cta .wp-block-buttons { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .cta .wp-block-button__link, .nav .wp-block-button__link { animation: none !important; } }
/* Tablette : cadre de la photo du canapé moins écrasé (3:2) */
@media (min-width: 601px) and (max-width: 900px) { .photo-card { aspect-ratio: 3 / 2; } }
