/*
Theme Name: Malo Emotions
Theme URI: https://malo-emotions.com
Author: Amandine Macé
Author URI: https://malo-emotions.com
Description: Thème WordPress sur mesure pour Malo Emotions, dédié à l'accompagnement en kinésiologie, bien-être et développement émotionnel pour les enfants et leurs familles.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: malo-emotions
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #C9922A;
  --gold-light:  #E8B84B;
  --gold-pale:   #FDF4E3;
  --gold-mid:    #F5E0B0;
  --emerald:     #4A9B8E;
  --emerald-dark:#2E7268;
  --emerald-pale:#E6F4F2;
  --white:       #FFFFFF;
  --cream:       #FEFCF8;
  --dark:        #1E1E1E;
  --mid:         #5A5A5A;
  --light:       #9A9A9A;
  --nav-height:  98px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--dark); padding-top: var(--nav-height); }

img { max-width: 100%; }

/* ── ACCESSIBILITÉ / CONVENTIONS WORDPRESS ── */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
  background: var(--dark); color: #fff; display: block; font-size: 0.9rem;
  padding: 1rem; position: fixed; top: 0; left: 0; z-index: 999999; clip: auto !important;
  width: auto; height: auto;
}
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  background: var(--white);
  border-bottom: 2px solid var(--gold-mid);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
}
.nav-logo a,
.nav-logo .custom-logo-link {
  text-decoration: none;
}
.nav-logo-circle {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.nav-logo img,
.nav-logo .custom-logo {
  height: 64px; width: 64px; object-fit: contain; border-radius: 50%;
  border: 2.5px solid var(--gold);
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--gold); line-height: 1.1;
}
.nav-logo-sub {
  font-size: 0.68rem; color: var(--emerald);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.86rem; color: var(--mid); text-decoration: none;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus { color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.6rem; color: var(--gold); line-height: 1;
}
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff; border: none;
  padding: 0.6rem 1.4rem; border-radius: 2rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: opacity 0.2s, transform 0.15s;
  text-decoration: none; box-shadow: 0 3px 12px rgba(201,146,42,0.35);
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 2rem 5%;
  background: linear-gradient(150deg, var(--cream) 45%, var(--emerald-pale) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; right: -120px; bottom: -120px;
  width: 600px; height: 600px; border-radius: 50%;
  border: 40px solid var(--gold-mid);
  opacity: 0.5; pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; right: 80px; top: 100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,155,142,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 540px; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--emerald);
  margin-bottom: 1.4rem;
  background: var(--emerald-pale);
  padding: 0.4rem 1rem; border-radius: 2rem;
  border: 1px solid rgba(74,155,142,0.3);
}
.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.12; color: var(--dark);
  margin-bottom: 1.4rem;
}
.hero h2 .gold { color: var(--gold); }
.hero h2 em { font-style: italic; color: var(--emerald-dark); }
.hero-desc {
  font-size: 1.05rem; line-height: 1.8;
  color: var(--mid); margin-bottom: 2.5rem; max-width: 500px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff; border: none;
  padding: 0.9rem 2.2rem; border-radius: 2rem;
  font-size: 0.95rem; font-weight: 500; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none; font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 16px rgba(201,146,42,0.4);
  display: inline-block;
}
.btn-gold:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--emerald-dark);
  border: 2px solid var(--emerald);
  padding: 0.9rem 2.2rem; border-radius: 2rem;
  font-size: 0.95rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  display: inline-block;
}
.btn-outline:hover { background: var(--emerald); color: #fff; }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--gold-mid);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--gold); font-weight: 600;
}
.stat-label { font-size: 0.82rem; color: var(--mid); margin-top: 0.1rem; }

/* ── TICKER ── */
.quote-ticker {
  background: linear-gradient(90deg, var(--emerald-dark), var(--emerald), var(--emerald-dark));
  color: #fff; padding: 0.9rem 0; overflow: hidden;
}
.ticker-track {
  display: flex; gap: 3.5rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 0.95rem; flex-shrink: 0;
}
.ticker-gem { color: var(--gold-light); flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTION GÉNÉRIQUE ── */
section { padding: 6rem 5%; }
.section-label {
  font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--emerald);
  margin-bottom: 0.7rem; font-weight: 600;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--dark); line-height: 1.2;
  margin-bottom: 1.2rem;
}
.section-title .gold { color: var(--gold); }
.section-sub {
  font-size: 1rem; color: var(--mid);
  line-height: 1.8; max-width: 520px;
}

/* ── À PROPOS ── */
.about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.about-visual { position: relative; }
.about-card {
  border-radius: 2.5rem; aspect-ratio: 4/3;
  overflow: hidden;
  border: 3px solid var(--gold-mid);
  position: relative;
  box-shadow: 0 16px 48px rgba(201,146,42,0.2);
}
.about-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-pale), var(--emerald-pale));
  font-size: 4rem;
}
.about-card::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(201,146,42,0.15);
}
.about-badge {
  position: absolute; bottom: -1rem; left: -1rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff; padding: 1.2rem 1.6rem;
  border-radius: 1.2rem; text-align: center;
  box-shadow: 0 6px 20px rgba(201,146,42,0.4);
}
.about-badge strong { display: block; font-size: 2.2rem; line-height: 1; font-family: 'Playfair Display', serif; }
.about-badge span { font-size: 0.78rem; opacity: 0.9; }
.about-text .section-sub { max-width: 100%; margin-bottom: 2rem; }
.values-list { display: flex; flex-direction: column; gap: 0.9rem; }
.value-item {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.95rem; color: var(--dark); font-weight: 400;
}
.value-pill {
  background: var(--emerald-pale);
  border: 1.5px solid rgba(74,155,142,0.4);
  color: var(--emerald-dark);
  font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 0.8rem; border-radius: 2rem;
  white-space: nowrap;
}

/* ── SERVICES ── */
.services {
  background: linear-gradient(180deg, var(--cream) 0%, var(--gold-pale) 100%);
}
.services-header { text-align: center; max-width: 580px; margin: 0 auto 3.5rem; }
.services-header .section-sub { margin: 0.8rem auto 0; }
.services-group-title {
  font-family: 'Playfair Display', serif;
  text-align: center; color: var(--emerald-dark);
  font-size: 1.25rem; max-width: 1100px; margin: 0 auto 1.5rem;
}
.services-group-title:not(:first-of-type) { margin-top: 3.5rem; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.service-card {
  background: var(--white); border-radius: 2rem;
  padding: 2.2rem; border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
  display: block; text-decoration: none; color: inherit;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.service-card.gold-top::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.service-card.emerald-top::before { background: linear-gradient(90deg, var(--emerald-dark), var(--emerald)); }
.service-card.mixed-top::before { background: linear-gradient(90deg, var(--gold), var(--emerald)); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.service-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.service-icon {
  width: 58px; height: 58px; border-radius: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.3rem;
}

.si-gold { background: var(--gold-pale); }
.si-emerald { background: var(--emerald-pale); }
.si-mix { background: linear-gradient(135deg, var(--gold-pale), var(--emerald-pale)); }
.service-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--dark); margin-bottom: 0.7rem;
}
.service-card p { font-size: 0.92rem; color: var(--mid); line-height: 1.75; margin-bottom: 1.2rem; }
.service-link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--gold); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: gap 0.2s;
}
.service-link:hover { gap: 0.6rem; }

/* ── PAGE DÉTAIL D'UNE PRESTATION : BANNIÈRE + TITRE CENTRÉ ── */
.service-banner {
  position: relative; overflow: hidden;
  min-height: 42vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 5%; text-align: center;
}
.service-content-section { padding-top: 3.5rem; }
.service-banner.gold-top { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.service-banner.emerald-top { background: linear-gradient(135deg, var(--emerald-dark), var(--emerald)); }
.service-banner.mixed-top { background: linear-gradient(135deg, var(--gold), var(--emerald)); }
.service-banner-media { position: absolute; inset: 0; }
.service-banner-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-banner-overlay {
  position: absolute; inset: 0;
  background: rgba(15,15,15,0.45);
}
.service-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #fff; line-height: 1.15;
}
.service-banner-title {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
}
.service-banner-back {
  position: relative; z-index: 1;
  display: inline-flex; margin-top: 1.4rem;
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  transition: gap 0.2s, color 0.2s;
}
.service-banner-back:hover { gap: 0.5rem; color: #fff; }
@media (max-width: 600px) {
  .service-banner { min-height: 32vh; }
}

.service-intro {
  margin-bottom: 2.5rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--gold-mid);
}
.service-back-link { margin-bottom: 1.6rem; }
.service-hero-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.6rem;
}
.service-hero-header .service-icon {
  width: 58px; height: 58px; font-size: 1.6rem; margin-bottom: 0; flex-shrink: 0;
}
.service-intro .hero-actions { margin-top: 1.6rem; }
.service-content {
  max-width: 720px; margin: 0 auto;
  font-size: 1.02rem; line-height: 1.85; color: var(--mid);
}
.service-content p + p { margin-top: 1.2em; }

/* ── CITATION ── */
.quote-block {
  background: linear-gradient(135deg, var(--dark) 0%, #2a2a1a 100%);
  text-align: center; padding: 6rem 5%;
  position: relative; overflow: hidden;
}
.quote-block::before {
  content: '\201C';
  position: absolute; top: 1rem; left: 5%;
  font-size: 10rem; color: rgba(201,146,42,0.08);
  font-family: 'Playfair Display', serif; line-height: 1;
}
.quote-block blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic; color: #fff;
  max-width: 800px; margin: 0 auto 1.5rem;
  line-height: 1.55; position: relative; z-index: 1;
}
.quote-block blockquote span { color: var(--gold-light); }
.quote-author {
  display: inline-flex; align-items: center; gap: 0.75rem;
  position: relative; z-index: 1;
}
.quote-line { width: 40px; height: 1.5px; background: var(--gold); }
.quote-block cite { font-size: 0.85rem; color: var(--light); letter-spacing: 0.12em; text-transform: uppercase; }

/* ── TÉMOIGNAGES ── */
.testimonials { background: var(--white); }
.test-header { text-align: center; max-width: 520px; margin: 0 auto 3.5rem; }
.test-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.test-card {
  background: var(--cream);
  border-radius: 1.8rem; padding: 2rem;
  border: 1.5px solid var(--gold-mid);
  position: relative;
}
.test-card::after {
  content: '\201D';
  position: absolute; top: 1rem; right: 1.2rem;
  font-size: 2.5rem; color: var(--gold-mid);
  font-family: 'Playfair Display', serif; line-height: 1;
}
.test-stars { margin-bottom: 0.8rem; }
.test-stars span { color: var(--gold); font-size: 1rem; }
.test-card p { font-size: 0.93rem; color: var(--mid); line-height: 1.75; margin-bottom: 1.5rem; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 0.8rem; }
.test-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
  border: 2px solid var(--gold-mid);
}
.test-name { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.test-role { font-size: 0.78rem; color: var(--emerald); }
.test-more { text-align: center; margin-top: 2.5rem; }

/* ── CONTACT ── */
.contact {
  background: linear-gradient(160deg, var(--emerald-pale) 0%, var(--gold-pale) 100%);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 5rem; align-items: start;
  max-width: 1050px; margin: 0 auto;
}
.contact-info .section-sub { max-width: 100%; margin-top: 1rem; margin-bottom: 2.5rem; }
.info-items { display: flex; flex-direction: column; gap: 1.3rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon {
  width: 44px; height: 44px; border-radius: 1rem;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  border: 1.5px solid var(--gold-mid);
}
.info-item strong { display: block; font-size: 0.88rem; color: var(--dark); margin-bottom: 0.15rem; font-weight: 600; }
.info-item span { font-size: 0.88rem; color: var(--mid); }
.contact-form {
  background: var(--white); border-radius: 2rem;
  padding: 2.5rem; box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; gap: 1.1rem;
  border: 2px solid var(--gold-mid);
}
.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--dark); margin-bottom: 0.3rem;
}
.contact-form form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--gold-mid); border-radius: 0.85rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem;
  color: var(--dark); background: var(--cream);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,146,42,0.12); }
.contact-form textarea { min-height: 120px; }
.form-notice {
  padding: 0.9rem 1.2rem; border-radius: 0.85rem;
  font-size: 0.88rem; line-height: 1.5;
}
.form-notice.success { background: var(--emerald-pale); color: var(--emerald-dark); border: 1.5px solid var(--emerald); }
.form-notice.error { background: #FDECEC; color: #B3261E; border: 1.5px solid #E57373; }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.65);
  padding: 2.5rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--gold); font-style: italic;
  display: flex; align-items: center; gap: 0.6rem;
}
.footer-logo img,
.footer-logo .custom-logo {
  height: 90px; width: 90px; object-fit: contain; border-radius: 50%;
  border: 1.5px solid rgba(201,146,42,0.5);
}
footer p { font-size: 0.82rem; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.82rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid, .test-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
    flex-direction: column; gap: 1.2rem;
    background: var(--cream); padding: 1.5rem 5%;
    border-bottom: 2px solid var(--gold-mid);
  }
  .nav-links.is-open { display: flex; }
  .hero-stats { gap: 1.5rem; }
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}
