/* ==========================================================
   Ambre Guyard – Psychologue | Orée d'Anjou
   Palette : beige, rose pastel, vert pastel
   ========================================================== */

:root {
  --beige: #f7f1e8;
  --beige-dark: #ede3d4;
  --cream: #fffcf7;
  --rose: #f3d9dc;
  --rose-mid: #e5b8be;
  --rose-dark: #b0606d;
  --vert: #dbe8d6;
  --vert-mid: #a9c4a5;
  --vert-dark: #5d7d62;
  --text: #3e3a36;
  --text-light: #6d665f;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(94, 80, 66, 0.08);
  --radius: 22px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Work Sans", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--beige);
}

img { max-width: 100%; display: block; }

a { color: var(--rose-dark); }
a:hover { color: var(--vert-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px; top: 16px;
  background: var(--white);
  padding: 8px 14px;
  z-index: 1000;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  border: 2px solid var(--rose);
  box-shadow: 0 3px 10px rgba(94, 80, 66, 0.12);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--serif); font-size: 1.2rem; }
.logo-sub { font-size: 0.8rem; color: var(--text-light); letter-spacing: 0.04em; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  transition: background 0.2s;
}
.main-nav a:hover,
.main-nav a.active { background: var(--vert); color: var(--text); }
.main-nav a.nav-cta {
  background: var(--rose-dark);
  color: var(--white);
}
.main-nav a.nav-cta:hover { background: var(--vert-dark); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: 0.3s;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rose-dark); color: var(--white); }
.btn-primary:hover { background: var(--vert-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--vert-dark); border: 1.5px solid var(--vert-dark); }
.btn-secondary:hover { background: var(--vert-dark); color: var(--white); }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ---------- Héros ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
  background:
    radial-gradient(circle at 85% 20%, var(--rose) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, var(--vert) 0, transparent 45%),
    var(--cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vert-dark);
  margin-bottom: 14px;
}
.hero p.lead { font-size: 1.15rem; color: var(--text-light); max-width: 560px; }
.hero-visual {
  aspect-ratio: 1;
  border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  background: linear-gradient(145deg, var(--rose) 0%, var(--beige-dark) 50%, var(--vert) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.hero-visual svg { width: 55%; height: auto; }

.page-hero {
  padding: 70px 0 60px;
  text-align: center;
  background:
    radial-gradient(circle at 80% 10%, var(--rose) 0, transparent 40%),
    radial-gradient(circle at 15% 100%, var(--vert) 0, transparent 40%),
    var(--cream);
}
.page-hero p { max-width: 680px; margin: 0 auto; color: var(--text-light); font-size: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-rose { background: var(--rose); }
.section-vert { background: var(--vert); }
.section-title { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-title p { color: var(--text-light); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.card:hover { transform: translateY(-4px); }
.card-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.icon-rose { background: var(--rose); color: var(--rose-dark); }
.icon-vert { background: var(--vert); color: var(--vert-dark); }
.icon-beige { background: var(--beige-dark); color: var(--text); }
.card a.more { font-weight: 500; text-decoration: none; }

.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.panel-rose { background: var(--rose); box-shadow: none; }
.panel-vert { background: var(--vert); box-shadow: none; }
.values-panel { max-width: 820px; margin: 50px auto 0; }

/* ---------- Photo de présentation ---------- */
.portrait {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--rose) 0%, var(--vert) 100%);
  z-index: 0;
}
.portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--beige-dark);
}

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--vert-mid);
}

/* ---------- Prestations ---------- */
.service {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 44px;
  margin-bottom: 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service .card-icon { width: 80px; height: 80px; }
.service .card-icon svg { width: 38px; height: 38px; }

.price-box {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.price {
  font-family: var(--serif);
  font-size: 3.4rem;
  color: var(--rose-dark);
  line-height: 1;
  margin: 10px 0 14px;
}

/* ---------- Étapes ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 70px;
  margin-bottom: 34px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--rose-dark);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-list .card-icon { width: 46px; height: 46px; margin: 0; flex-shrink: 0; }
.contact-list .card-icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-weight: 500; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  text-align: center;
  padding: 70px 0;
  background: linear-gradient(120deg, var(--rose) 0%, var(--beige-dark) 50%, var(--vert) 100%);
}
.cta-band p { max-width: 600px; margin: 0 auto; }
.cta-band .btn-group { justify-content: center; }

/* ---------- Pages légales ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.todo {
  background: var(--rose);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--text);
  color: #e9e2d8;
  padding: 60px 0 24px;
  font-size: 0.95rem;
}
.site-footer a { color: #f3d9dc; text-decoration: none; }
.site-footer a:hover { color: var(--vert); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h3 { color: var(--white); font-size: 1.15rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: #bfb6aa;
}

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .grid-2 { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--beige-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 14px 20px 20px; }
  .main-nav a { padding: 12px 16px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 70px; }
  .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; padding: 30px 24px; gap: 16px; }
  .panel { padding: 28px 22px; }
  .logo-sub { display: none; }
}
