/*
Theme Name: PhysiK
Description: Theme sur-mesure pour PhysiK Physiothérapie (Châtel-Saint-Denis)
Author: 3points
Version: 1.0
Text Domain: physik
*/

/*
  Layout concept: the logo's monogram is two angled flag shapes (P over K).
  That diagonal is the page's one recurring structural device: hero shape,
  button corners, section accents - echoing the logo's own geometry rather
  than a generic rounded-everything treatment. Two angles only, matching
  the logo: ~15deg (the P flag) and ~35deg (the K legs).
*/
:root{
  --bg:#f0f1ee;
  --bg-alt:#e3e5e0;
  --fg:#1f2a16;
  --fg-soft:#51593f;
  --accent:#445d28;
  --accent-soft:#b2b69d;
  --surface:#ffffff;
  color-scheme: only light;

  --font-display:"Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:"Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 2px;
  --radius-md: 4px;
  --angle-fanion: 15deg;
  --angle-elan: 35deg;
  --ease: cubic-bezier(.22,.9,.3,1);

  /* Mobile-first type scale; desktop values restored at 761px+ */
  --fs-body:16px;
  --fs-text:16px;
  --fs-lede:17px;
  --fs-h1:31px;
  --fs-h2:26px;
  --fs-h3:19px;
  --fs-contact:18px;
  --head-gap:32px;
  --card-pad:24px 20px;
  --details-pad:18px 20px;
}
@media (min-width:761px){
  :root{
    --fs-body:17px;
    --fs-text:17.5px;
    --fs-lede:19px;
    --fs-h1:clamp(36px,5.6vw,58px);
    --fs-h2:clamp(28px,3.6vw,40px);
    --fs-h3:21px;
    --fs-contact:20px;
    --head-gap:52px;
    --card-pad:32px 28px;
    --details-pad:24px 28px;
  }
}
*{box-sizing:border-box;}
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--fg); font-family:var(--font-body);
  font-size:var(--fs-body); line-height:1.6; -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
h1,h2,h3,h4{font-family:var(--font-display);text-wrap:balance;margin:0;color:var(--fg);}
h1,h2{ letter-spacing:-0.01em; }
p{margin:0;}
a{color:inherit;}
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.skip-link{ position:fixed; top:12px; left:12px; z-index:50; background:var(--accent); color:var(--bg); padding:10px 18px; border-radius:var(--radius-sm); font-weight:700; text-decoration:none; }
.skip-link:not(:focus){ width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; }
.visually-hidden{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.wrap{max-width:1180px;margin:0 auto;padding-inline:24px;}
@media (max-width:640px){ .wrap{padding-inline:18px;} }

/* ---------- nav ---------- */
header.nav{ position:sticky; top:env(safe-area-inset-top,0px); z-index:20; background:var(--bg); }
/* Barre d'admin WordPress (connecté) : le menu collant se cale dessous au lieu d'être recouvert */
.admin-bar header.nav{ top:32px; }
@media (max-width:782px){ .admin-bar header.nav{ top:46px; } }
@media (max-width:600px){ .admin-bar header.nav{ top:0; } }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-block:14px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:18px; }
.brand img{ height:52px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:28px; font-size:14px; font-weight:600; }
.nav-links a{ text-decoration:none; color:var(--fg-soft); }
.nav-links a:hover{ color:var(--accent); }
/* Desktop : liens en contrôle segmenté façon Apple, section en cours surlignée (main.js) */
@media (min-width:761px){
  .nav-inner{ max-width:1360px; }
  .nav-links{ gap:2px; padding:4px; background:var(--bg-alt); border-radius:999px; }
  .nav-links a{ padding:8px 18px; border-radius:999px; color:var(--fg-soft); transition:background-color .2s var(--ease), color .2s var(--ease), transform .16s var(--ease); }
  .nav-links a:hover{ color:var(--fg); background:color-mix(in srgb, var(--surface) 55%, transparent); }
  .nav-links a.is-active{ background:var(--surface); color:var(--fg); }
  .nav-links a:active{ transform:scale(.96); }
}
.nav-cta{ background:var(--accent); color:var(--bg); padding:10px 24px 10px 20px; border-radius:var(--radius-sm); clip-path:polygon(0 0,100% 0,calc(100% - 14px) 100%,0 100%); font-weight:700; text-decoration:none; font-size:14px; transition:filter .2s var(--ease), transform .2s var(--ease); display:inline-block; }
.nav-cta:hover{ filter:brightness(1.1); transform:translateY(-1px); }
.nav-cta:active{ transform:scale(.97); }
.nav-cta:focus-visible{ outline:3px solid var(--bg); outline-offset:-6px; }
.nav-toggle{ display:none; }
.nav-cta{ white-space:nowrap; }
.nav-cta-short{ display:none; }
@media (max-width:760px){
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; margin-right:-10px; background:none; border:none; color:var(--fg); cursor:pointer; padding:0; transition:transform .16s var(--ease); }
  .nav-toggle:active{ transform:scale(.9); }
  .nav-toggle svg{ display:block; width:22px; height:16px; }
  .nav-toggle line{ transition:transform .25s var(--ease), opacity .2s var(--ease); transform-origin:center; transform-box:fill-box; }
  .nav-toggle[aria-expanded="true"] .bar-top{ transform:translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar-mid{ opacity:0; }
  .nav-toggle[aria-expanded="true"] .bar-bot{ transform:translateY(-7px) rotate(-45deg); }
  .nav-links{ display:none; position:absolute; top:100%; left:0; right:0; background:var(--bg); flex-direction:column; align-items:stretch; gap:0; padding:8px 0; }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:14px 24px; }
  .brand{ margin-right:auto; }
  .brand img{ height:42px; }
  .nav-toggle{ order:3; flex:none; }
  .nav-cta-long{ display:none; }
  .nav-cta-short{ display:inline; }
  .nav-cta{ padding:8px 20px 8px 14px; font-size:13px; clip-path:polygon(0 0,100% 0,calc(100% - 10px) 100%,0 100%); }
}

/* ---------- hero ---------- */
.hero{ padding-top:min(9vw,72px); padding-bottom:min(11vw,96px); background:var(--accent); position:relative; clip-path:polygon(0 0,100% 0,100% 100%,0 95%); }
.hero-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center; }
@media (max-width:760px){ .hero-grid{ grid-template-columns:1fr; gap:36px; } }
.hero-photo{ aspect-ratio:5/4; overflow:hidden; background:var(--fg); clip-path:polygon(0 0,100% 0,100% 100%,9% 100%); }
@media (max-width:760px){ .hero-photo{ aspect-ratio:16/9; } }
.hero-photo img{ width:100%; height:100%; object-fit:cover; }
.hero h1{ font-size:var(--fs-h1); font-weight:700; line-height:1.05; letter-spacing:-0.01em; color:var(--bg); }
.hero .lede{ font-size:var(--fs-lede); font-weight:500; color:var(--bg); opacity:.85; margin-top:24px; max-width:44ch; }
.hero .lede strong{ color:var(--bg); font-weight:700; }
.hero .ctas{ display:flex; align-items:center; gap:22px; margin-top:36px; flex-wrap:wrap; }
.btn{ display:inline-flex; align-items:center; gap:10px; background:var(--accent); color:var(--bg); font-family:var(--font-display); font-weight:600; font-size:15px; letter-spacing:.02em; padding:15px 34px 15px 28px; text-decoration:none; border:none; cursor:pointer; border-radius:var(--radius-sm); clip-path:polygon(0 0,100% 0,calc(100% - 14px) 100%,0 100%); transition:filter .2s var(--ease), transform .16s var(--ease); }
@media (hover:hover) and (pointer:fine){
  .btn:hover{ filter:brightness(1.12); transform:translateY(-2px); }
}
.btn:active{ transform:scale(.97); }
.btn:focus-visible{ outline:3px solid var(--bg); outline-offset:-6px; }
.hero .btn{ background:var(--bg); color:var(--accent); }
.hero .btn:focus-visible{ outline-color:var(--accent); }
.btn-ghost{ display:inline-block; background:none; color:var(--fg); border-bottom:2px solid var(--accent); padding:12px 2px; font-family:var(--font-display); font-weight:700; font-size:15px; text-decoration:none; transition:color .2s var(--ease), transform .16s var(--ease); }
@media (hover:hover) and (pointer:fine){
  .btn-ghost:hover{ color:var(--accent); }
}
.btn-ghost:active{ transform:scale(.97); }
.trust-line{ margin-top:18px; font-size:14px; color:var(--fg-soft); }
.hero .trust-line{ color:var(--bg); opacity:.8; margin-top:24px; }

/* ---------- section scaffolding ---------- */
section{ padding-block:min(12vw,108px); }
#avis{ padding-top:min(7vw,64px); }
.section-head{ max-width:62ch; margin-bottom:var(--head-gap); }
.section-head h2{ font-size:var(--fs-h2); font-weight:700; }
.panel{ border-radius:var(--radius-md); padding:min(8vw,64px) min(6vw,56px); }
.panel-alt{ background:var(--bg-alt); }
.panel-soft{ background:var(--accent-soft); }

/* ---------- about cabinet ---------- */
.about-grid{ display:grid; grid-template-columns:1.2fr 0.8fr; gap:56px; align-items:start; }
@media (max-width:760px){ .about-grid{ grid-template-columns:1fr; } }
.about-grid--solo{ grid-template-columns:1fr; }
.about-grid h2{ font-size:var(--fs-h2); font-weight:700; }
.about-grid p{ color:var(--fg-soft); margin-top:18px; font-size:var(--fs-text); max-width:56ch; }
.about-photo{ aspect-ratio:4/5; overflow:hidden; background:var(--accent); clip-path:polygon(0 0,100% 0,100% 100%,0 92%); }
.about-photo img{ width:100%; height:100%; object-fit:cover; transition:transform .35s var(--ease); }
.about-photo:hover img{ transform:scale(1.04); }

/* ---------- prestations (cards, grouped categories) ---------- */
.service-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:20px; align-items:start; }
@media (min-width:960px){
  .service-grid{ grid-template-columns:1.3fr 1.3fr 1fr; }
}
.service-card{ background:var(--surface); padding:var(--card-pad); border-top:4px solid var(--accent); border-radius:0 0 var(--radius-md) var(--radius-md); }
.service-card h3{ font-size:var(--fs-h3); font-weight:700; }
.service-card ul{ list-style:none; margin:18px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; }
.service-card li{ display:flex; align-items:baseline; gap:12px; color:var(--fg-soft); font-size:16px; line-height:1.4; }
.service-card li::before{ content:""; flex:none; width:10px; height:3px; background:var(--accent-soft); transform:rotate(calc(-1 * var(--angle-elan))) translateY(-3px); }
.tag-example{ color:var(--accent); font-style:italic; font-size:15px; }

/* ---------- partenaires ---------- */
#partenaires{ background:var(--bg-alt); }
.partner-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:40px 48px; }
.partner-link{ display:block; text-decoration:none; color:inherit; }
.partner-mark{ height:72px; display:flex; align-items:center; }
.partner-mark img{ max-height:72px; max-width:200px; width:auto; height:auto; object-fit:contain; }
.partner-mark--text{ height:auto; }
.partner-wordmark{ font-family:var(--font-display); font-weight:700; font-size:26px; line-height:1.1; color:var(--fg); }
.partner h3{ font-size:var(--fs-h3); font-weight:700; margin-top:18px; }
.partner p{ color:var(--fg-soft); margin-top:10px; font-size:16px; line-height:1.5; max-width:36ch; }
.partner-mark + p{ margin-top:18px; }
.partner-mark--text + p{ margin-top:10px; }
.partner-more{ display:inline-block; margin-top:14px; font-family:var(--font-display); font-weight:700; font-size:15px; color:var(--accent); border-bottom:2px solid var(--accent); padding-bottom:2px; }
@media (hover:hover) and (pointer:fine){
  .partner-mark img, .partner-wordmark{ transition:transform .2s var(--ease); }
  .partner-link:hover .partner-mark img, .partner-link:hover .partner-wordmark{ transform:translateY(-2px); }
}
.partner-link:active{ transform:scale(.98); }

/* ---------- avis ---------- */
.avis-panel{ max-width:620px; margin-inline:auto; text-align:center; }
.avis-panel h2{ font-size:var(--fs-h2); font-weight:700; }
.avis-panel p{ color:var(--fg-soft); margin-top:16px; font-size:var(--fs-body); }
.avis-panel .btn-ghost{ display:inline-block; margin-top:24px; }

/* ---------- confiance (text only) ---------- */
.conf-block{ max-width:72ch; }
.conf-block h2{ font-size:var(--fs-h2); font-weight:700; }
.conf-block .bio{ color:var(--fg-soft); margin-top:18px; font-size:var(--fs-text); }
.cv{ margin:28px 0 0; display:grid; gap:14px; }
.cv-row{ display:grid; grid-template-columns:150px 1fr; gap:4px 20px; align-items:baseline; }
@media (max-width:640px){ .cv-row{ grid-template-columns:1fr; } }
.cv dt{ font-family:var(--font-display); font-weight:700; font-size:15px; color:var(--accent); }
.cv dd{ margin:0; color:var(--fg); font-size:var(--fs-text); }
.badge-line{ margin-top:18px; font-family:var(--font-display); font-weight:700; font-size:13px; color:var(--accent); }

/* ---------- faq ---------- */
.faq{ max-width:760px; }
details{ background:var(--bg-alt); padding:var(--details-pad); margin-bottom:14px; border-radius:var(--radius-md); transition:background-color .2s var(--ease), transform .2s var(--ease); }
@media (hover:hover) and (pointer:fine){
  details:hover{ transform:translateY(-2px); }
}
details summary{ cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:20px; font-family:var(--font-display); font-weight:700; font-size:17px; }
details summary::-webkit-details-marker{ display:none; }
details summary::after{
  content:"+"; font-size:22px; color:var(--accent); flex:none; line-height:1;
  transition:transform .3s var(--ease);
}
details[open] summary::after{ transform:rotate(135deg); }
details p{ color:var(--fg-soft); margin-top:14px; font-size:16px; }
/* paragraphes longs justifiés sur grand écran ; sur mobile la colonne est trop étroite (mots coupés, trous) */
@media (min-width:761px){
  .about-grid p, .conf-block .bio, details p{ text-align:justify; }
}

/* ---------- rdv ---------- */
.rdv-block{ max-width:760px; margin-inline:auto; text-align:center; }
.rdv-block p{ color:var(--fg-soft); margin-top:16px; font-size:var(--fs-body); }
.booking-frame{ margin-top:40px; border-radius:var(--radius-md); overflow:hidden; background:var(--surface); min-height:320px; }
.booking-frame iframe{ display:block; width:100%; border:none; }
.booking-fallback{ margin-top:16px; font-size:14px; color:var(--fg-soft); }
.rdv-block .booking-call{ margin-top:32px; }
.contact-alt{ margin-top:40px; display:flex; justify-content:center; }
.contact-line{ display:flex; align-items:center; gap:14px; font-size:var(--fs-contact); font-weight:600; }
.contact-line-label{ font-weight:400; color:var(--fg-soft); font-size:16px; }
.copy-btn{ border:none; background:var(--bg-alt); color:var(--fg); font-family:var(--font-display); font-size:12.5px; font-weight:700; padding:12px 14px; min-height:44px; cursor:pointer; border-radius:var(--radius-sm); transition:background-color .2s var(--ease), color .2s var(--ease), transform .16s var(--ease); }
@media (hover:hover) and (pointer:fine){
  .copy-btn:hover{ background:var(--accent); color:var(--bg); transform:translateY(-1px); }
}
.copy-btn:active{ transform:scale(.97); }

/* ---------- legal pages ---------- */
.legal{ padding-block:min(14vw,110px) min(12vw,96px); }
.legal-content{ max-width:72ch; }
.legal-content h1{ font-size:clamp(28px,3.6vw,42px); font-weight:700; margin-bottom:40px; }
.legal-body h2{ font-size:20px; font-weight:700; margin-top:40px; margin-bottom:12px; }
.legal-body h2:first-child{ margin-top:0; }
.legal-body p{ color:var(--fg-soft); margin-top:14px; font-size:16.5px; line-height:1.7; }
.legal-body a{ color:var(--accent); text-decoration:underline; }
.legal-body em{ color:var(--fg-soft); }

/* ---------- page « Bientôt ouvert » (coming-soon.php) ---------- */
.soon{ min-height:100svh; display:flex; flex-direction:column; }
.soon > .wrap{ width:100%; }
.soon-top{ padding-block:28px; }
.soon-logo{ height:56px; width:auto; }
.soon-hero{ background:var(--accent); text-align:center; padding-block:min(16vw,120px) min(14vw,110px); clip-path:polygon(0 0,100% 0,100% 100%,0 94%); }
.soon-inner{ max-width:640px; display:flex; flex-direction:column; align-items:center; }
.soon-hero h1{ font-size:var(--fs-h1); font-weight:700; line-height:1.05; color:var(--bg); }
.soon-hero .lede{ font-size:var(--fs-lede); color:var(--bg); opacity:.85; margin-top:22px; max-width:40ch; }
.soon-hero .btn{ background:var(--bg); color:var(--accent); margin-top:34px; font-size:17px; }
.soon-hero .btn:focus-visible{ outline-color:var(--accent); }
.soon-info{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:32px 56px; padding-block:min(12vw,88px); flex:1; }
.soon-info h2{ font-size:var(--fs-h3); font-weight:700; }
.soon-info p{ color:var(--fg-soft); margin-top:10px; font-size:var(--fs-text); }
.soon-legal{ display:flex; gap:20px; }
.soon-legal a{ text-decoration:none; }
.soon-legal a:hover{ text-decoration:underline; }

/* ---------- footer ---------- */
footer{ background:var(--bg-alt); color:var(--fg); }
.foot-top{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:32px; padding-block:56px; }
.foot-brand{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.foot-brand img{ height:48px; width:auto; opacity:.92; }
.foot-brand .addr{ font-size:14px; opacity:.72; font-family:var(--font-body); }
.foot-links{ display:flex; gap:28px; flex-wrap:wrap; font-size:14px; }
.foot-links a{ text-decoration:none; opacity:.78; }
.foot-links a:hover{ opacity:1; }
.foot-bottom{ padding-block:20px; font-size:12.5px; opacity:.7; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.foot-credit{ background:var(--bg); }
.foot-credit-inner{ display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px 18px; padding-block:28px; text-decoration:none; color:var(--fg); }
.foot-credit-label{ font-family:var(--font-display); font-size:15px; color:var(--fg-soft); }
.foot-credit-inner img{ height:30px; width:auto; transition:transform .2s var(--ease); }
.foot-credit-tag{ font-size:13px; color:var(--fg-soft); }
@media (hover:hover) and (pointer:fine){
  .foot-credit-inner:hover img{ transform:translateY(-2px); }
  .foot-credit-inner:hover .foot-credit-label{ color:var(--fg); }
}
@media (max-width:640px){
  .foot-credit-inner{ flex-direction:column; gap:10px; padding-block:24px; }
  .foot-credit-inner img{ height:26px; }
}

/* ---------- reveal (motion disabled: sections visible immediately) ---------- */
.reveal{ opacity:1; transform:none; }

/* Empêche la coupure d’un nom de lieu au tiret (ex. Châtel-St-Denis) */
.nowrap { white-space: nowrap; }
