/*
Theme Name: Praticiens Agency
Theme URI: https://praticiens-agency.fr
Author: Praticiens Agency
Description: Theme sur mesure pour praticiens-agency.fr, plateforme de mise en relation et de promotion pour coachs et therapeutes francophones.
Version: 1.0
Requires PHP: 7.4
Text Domain: praticiens-agency
*/

:root {
  --sage: #8CA888;
  --sage-light: #E3EBE0;
  --forest: #3B5236;
  --mist: #F3F6EF;
  --clay: #C98B6B;
  --ink: #333B30;
  --ink-soft: #5C685A;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sage-light: #33422F;
    --forest: #A8C4A0;
    --mist: #1B241A;
    --ink: #E8EDE4;
    --ink-soft: #9FAE9A;
  }
}
:root[data-theme="dark"] {
  --sage-light: #33422F;
  --forest: #A8C4A0;
  --mist: #1B241A;
  --ink: #E8EDE4;
  --ink-soft: #9FAE9A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--mist);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  margin: 0;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 500; color: var(--forest); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--forest); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.btn {
  display: inline-block;
  background: var(--forest);
  color: var(--mist);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { opacity: .92; }
.trust-line { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.eyebrow { font-size: 14px; color: var(--ink-soft); max-width: 48ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--mist);
  border-bottom: 0.5px solid var(--sage);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; flex-wrap: wrap; gap: 14px; }
.logo-block a { text-decoration: none; }
.logo-block h1 { font-size: 21px; font-style: italic; font-weight: 400; margin: 0; }
.logo-block .tag { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin: 0; padding: 0; }
.main-nav a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.main-nav .btn { color: var(--mist); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 80px; background: var(--mist); }
.hero .blob {
  position: absolute; top: -140px; right: -120px;
  width: 520px; height: 520px;
  background: var(--sage-light);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  z-index: 0;
}
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(27,36,26,.86) 0%, rgba(27,36,26,.55) 55%, rgba(27,36,26,.25) 100%);
  z-index: 0;
}
.hero.has-image .blob { display: none; }
.hero.has-image h2, .hero.has-image p.sub { color: #F3F6EF; }
.hero.has-image .trust-line { color: #D6E0D2; }
.hero .container { position: relative; z-index: 1; max-width: 680px; }
.hero h2 { font-size: 42px; margin-bottom: 20px; }
.hero p.sub { font-size: 18px; color: var(--ink-soft); max-width: 52ch; margin-bottom: 28px; }

/* Trust strip */
.strip { background: var(--sage-light); padding: 26px 0; }
.strip .container { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; text-align: center; }
.strip .num { font-size: 22px; font-weight: 500; font-family: 'Fraunces', serif; color: var(--forest); }
.strip .lbl { font-size: 13px; color: var(--ink-soft); }

/* Pillars */
.pillars { padding: 80px 0; }
.pillars .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 44px; margin-top: 44px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--forest); margin-bottom: 16px; }
.pillars h3 { font-size: 20px; }
.pillars p { color: var(--ink-soft); font-size: 15px; max-width: 34ch; }

/* Steps */
.steps { background: var(--sage-light); padding: 80px 0; }
.steps .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; margin-top: 44px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--forest); color: var(--forest); font-family: 'Fraunces', serif; font-weight: 500; font-size: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: var(--mist); }
.steps h3 { font-size: 17px; }
.steps p { color: var(--ink-soft); font-size: 14px; max-width: 30ch; }

/* Fields / tags */
.fields { padding: 72px 0; text-align: center; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.tags span, .tags a { background: var(--sage-light); color: var(--forest); font-size: 14px; padding: 8px 18px; border-radius: 20px; text-decoration: none; }
.tags a { border: 1px solid var(--forest); background: transparent; }

/* Testimonial */
.testimonial { background: var(--forest); color: var(--mist); padding: 90px 0; text-align: center; }
.testimonial blockquote { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; font-size: 27px; max-width: 640px; margin: 0 auto 22px; line-height: 1.45; }
.testimonial cite { font-style: normal; font-size: 14px; opacity: .85; }

/* CTA final */
.cta-final { background: var(--sage-light); padding: 80px 0; text-align: center; }
.cta-final h2 { font-size: 30px; max-width: 480px; margin: 0 auto 26px; }

/* Footer */
.site-footer { padding: 48px 0 30px; border-top: 0.5px solid var(--sage); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; margin-bottom: 32px; }
.site-footer h3 { font-family: 'Nunito Sans', sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.site-footer a { display: block; font-size: 14px; color: var(--ink-soft); text-decoration: none; margin-bottom: 8px; }
.site-footer .base { font-size: 13px; color: var(--ink-soft); border-top: 0.5px solid var(--sage); padding-top: 20px; }

/* Generic content pages (page.php) */
.page-hero { padding: 64px 0 20px; }
.page-hero h1 { font-size: 34px; max-width: 640px; }
.page-content { padding: 20px 0 80px; }
.page-content .entry-content { max-width: 680px; font-size: 16px; }
.page-content .entry-content h2 { font-size: 24px; margin-top: 1.4em; }
.page-content .entry-content h3 { font-size: 19px; margin-top: 1.2em; }
.page-content .entry-content img { margin: 24px 0; border-radius: 12px; }
.page-content .entry-content ul, .page-content .entry-content ol { padding-left: 1.3em; }

/* Metier template extra CTA block */
.metier-cta { background: var(--sage-light); padding: 64px 0; text-align: center; margin-top: 40px; }
.metier-cta h2 { font-size: 26px; max-width: 480px; margin: 0 auto 22px; }

/* Annuaire grid */
.annuaire-grid { padding: 40px 0 80px; }
.annuaire-grid .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 36px; }
.praticien-card { display: block; text-decoration: none; color: var(--ink); background: var(--mist); border: 0.5px solid var(--sage); border-radius: 14px; overflow: hidden; }
.praticien-card .pc-frame { position: relative; line-height: 0; aspect-ratio: 4 / 3; background: var(--sage-light); overflow: hidden; }
.praticien-card .pc-frame img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.praticien-card .pc-body { padding: 16px 18px 20px; }
.praticien-card h3 { font-size: 17px; margin-bottom: 4px; }
.praticien-card .pc-meta { font-size: 13px; color: var(--ink-soft); }
.praticien-card .pc-badge { display: inline-block; background: var(--sage-light); color: var(--forest); font-size: 12px; padding: 3px 10px; border-radius: 14px; margin-top: 8px; }
.annuaire-empty { padding: 60px 0; text-align: center; color: var(--ink-soft); }

/* Single praticien */
.praticien-hero { padding: 56px 0 20px; }
.praticien-hero .pp-frame { position: relative; line-height: 0; width: 180px; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; background: var(--sage-light); margin-bottom: 24px; }
.praticien-hero .pp-frame img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.praticien-hero h1 { font-size: 30px; margin-bottom: 6px; }
.praticien-hero .pp-meta { font-size: 15px; color: var(--ink-soft); margin-bottom: 20px; }
.praticien-content { padding: 10px 0 70px; max-width: 640px; }

/* Contact Form 7 styling */
.contact-hero { padding: 64px 0 10px; text-align: left; }
.contact-hero h1 { font-size: 32px; max-width: 560px; }
.contact-form-wrap { padding: 20px 0 80px; max-width: 560px; }
.wpcf7-form label { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; margin-top: 18px; }
.wpcf7-form label:first-child { margin-top: 0; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form textarea {
  width: 100%; font-family: 'Nunito Sans', sans-serif; font-size: 16px; color: var(--ink);
  background: var(--mist); border: 0.5px solid var(--sage); border-radius: 10px; padding: 12px 14px;
}
.wpcf7-form textarea { min-height: 140px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--forest); }
.wpcf7-form .wpcf7-submit { margin-top: 24px; }
.wpcf7-not-valid-tip { color: #A32D2D; font-size: 13px; margin-top: 4px; }
.wpcf7-response-output { border-radius: 10px !important; padding: 12px 16px !important; font-size: 14px; margin-top: 20px !important; }

/* 404 */
.error404-wrap { padding: 100px 0; text-align: center; }
.error404-wrap h1 { font-size: 32px; }

@media (max-width: 640px) {
  .hero h2 { font-size: 30px; }
  .hero { padding: 60px 0 56px; }
  .hero .blob { width: 340px; height: 340px; top: -80px; right: -100px; }
  .testimonial blockquote { font-size: 21px; }
  .cta-final h2, .metier-cta h2 { font-size: 24px; }
  .pillars, .steps, section { padding-top: 56px; padding-bottom: 56px; }
  .page-hero h1 { font-size: 26px; }
}
