/* ============================================================
   MADAG — PSYCHOLOGUE | Charte graphique commune
   Palette : émeraude + stone gray | Typo : Lora + Inter
   ============================================================ */

/* --- Variables CSS ---------------------------------------- */
:root {
  --emerald-50:  #eef5ff;
  --emerald-100: #d4e8fb;
  --emerald-200: #aed1f6;
  --emerald-400: #5da8e8;
  --emerald-500: #3d95e2;
  --emerald-600: #2f89de;
  --emerald-700: #2776d7;
  --emerald-800: #1c5aa3;
  --emerald-900: #154278;

  --stone-50:  #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius-sm:  0.5rem;
  --radius-md:  1rem;
  --radius-lg:  1.5rem;
  --radius-xl:  2rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);

  --transition: 200ms ease;
  --max-w: 75rem; /* 1200px */
}

/* --- Reset & base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--stone-50);
  color: var(--stone-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.25; color: var(--stone-800); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { color: var(--stone-600); }

/* --- Layout helpers --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 1.5rem;
}

.grid-2 { display: grid; gap: 2rem; }
.grid-3 { display: grid; gap: 2rem; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 52rem; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--emerald-800); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-outline {
  background: #fff;
  color: var(--stone-700);
  border: 1.5px solid var(--stone-200);
}
.btn-outline:hover { background: var(--stone-50); border-color: var(--stone-300); }

.btn-pill { border-radius: var(--radius-full); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* --- Cards ------------------------------------------------ */
.card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--stone-100);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
/* pas de hover sur les cartes non interactives */

.card-stone {
  background: var(--stone-50);
  border-color: var(--stone-100);
}

/* Icon box inside cards */
.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--emerald-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.icon-box svg { color: var(--emerald-700); width: 1.6rem; height: 1.6rem; }

/* --- Badge ------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  align-self: flex-start;
  width: fit-content;
}
.badge-emerald { background: var(--emerald-50); color: var(--emerald-800); }
.badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--emerald-500); animation: pulse 2s infinite; }

/* --- Sections --------------------------------------------- */
section { padding-block: 5rem; }
.section-header { max-width: 42rem; margin-inline: auto; text-align: center; margin-bottom: 3.5rem; }
.section-header p { font-size: 1.1rem; margin-top: 1rem; }

/* Background variants */
.bg-white  { background: #fff; }
.bg-stone  { background: var(--stone-50); }
.bg-emerald-dark { background: var(--emerald-900); color: var(--emerald-50); }
.bg-emerald-dark h2 { color: #fff; }
.bg-emerald-dark p { color: var(--emerald-100); }

/* --- Navigation ------------------------------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding-block: 1.5rem;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  padding-block: 1rem;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo span:first-child {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--emerald-800);
  font-weight: 700;
}
.nav-logo span:last-child {
  font-size: 0.8rem;
  color: var(--stone-500);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {

  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--emerald-700); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

.nav-hamburger {
  display: flex;
  align-items: center;
  padding: 0.4rem;
  color: var(--stone-600);
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }

/* Mobile menu */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--stone-100);
  box-shadow: var(--shadow-md);
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  padding: 0.75rem 0;
  font-size: 1.05rem;
  color: var(--stone-700);
  border-bottom: 1px solid var(--stone-100);
  font-weight: 500;
}
#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:hover { color: var(--emerald-700); }

/* --- Footer ----------------------------------------------- */
footer {
  background: var(--stone-900);
  color: var(--stone-400);
  padding-block: 3rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand { font-family: var(--font-serif); font-size: 1.4rem; color: #fff; margin-bottom: 0.5rem; }
footer p, footer a { font-size: 0.9rem; line-height: 1.8; }
footer a { color: var(--stone-400); transition: color var(--transition); }
footer a:hover { color: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-copy { color: var(--stone-600); margin-top: 2rem; font-size: 0.85rem; text-align: center; }

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding-top: 10rem; padding-bottom: 7rem; } }

.hero-blob-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 45%;
  height: 50%;
  border-radius: 50%;
  background: rgba(212,232,251,0.5);
  filter: blur(60px);
  pointer-events: none;
}
.hero-blob-2 {
  position: absolute;
  top: 30%;
  left: -8%;
  width: 35%;
  height: 40%;
  border-radius: 50%;
  background: rgba(255,237,213,0.4);
  filter: blur(60px);
  pointer-events: none;
}

.hero-text { display: flex; flex-direction: column; gap: 1.5rem; position: relative; z-index: 1; }
.hero-text h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero-text h1 em { font-style: italic; color: var(--emerald-700); }
.hero-text p { font-size: 1.1rem; max-width: 36rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-img-wrap {
  position: relative;
}
.hero-img-box {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/5;
}
@media (min-width: 768px) {
  .hero-img-box { aspect-ratio: 4/3; }
  .hero-grid { grid-template-columns: 3fr 4fr; }
}
.hero-img-box img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-xl);
  max-width: 16rem;
  font-size: 0.82rem;
  color: var(--stone-600);
  line-height: 1.45;
}
.hero-badge-title { font-weight: 700; color: var(--stone-800); margin-bottom: 0.25rem; font-size: 0.85rem; }

/* --- Process steps ---------------------------------------- */
.process-steps { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  border: 1.5px solid var(--stone-100);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--emerald-700);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.step-card h3 { margin-bottom: 0.5rem; }

/* --- Service cards (tarifs) ------------------------------- */
.service-row {
  background: #fff;
  border: 1.5px solid var(--stone-100);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
/* pas de hover sur les lignes de tarif non interactives */
@media (min-width: 768px) {
  .service-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.service-info { flex: 1; }
.service-info h3 { margin-bottom: 0.35rem; }
.service-price {
  text-align: left;
  border-top: 1.5px solid var(--stone-100);
  padding-top: 1rem;
  min-width: 8rem;
}
@media (min-width: 768px) {
  .service-price { text-align: right; border-top: none; border-left: 1.5px solid var(--stone-100); padding-top: 0; padding-left: 1.5rem; }
}
.service-price .price { font-family: var(--font-serif); font-size: 1.75rem; color: var(--emerald-800); font-weight: 700; }
.service-price .duration { font-size: 0.85rem; color: var(--stone-500); }

/* --- Info box --------------------------------------------- */
.info-box {
  background: var(--emerald-50);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  color: var(--emerald-800);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- FAQ -------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--stone-200); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  font-weight: 600;
  color: var(--stone-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  gap: 1rem;
}
.faq-question:hover { color: var(--emerald-700); }
.faq-icon { flex-shrink: 0; transition: transform var(--transition); font-size: 1.25rem; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 1.25rem; color: var(--stone-600); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* --- Blog cards ------------------------------------------- */
.blog-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--stone-100);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-cover { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 0.82rem; color: var(--stone-400); margin-bottom: 0.5rem; }
.blog-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.blog-card p { font-size: 0.92rem; flex: 1; }
.blog-tag {
  display: inline-block;
  background: var(--emerald-100);
  color: var(--emerald-800);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--emerald-700);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: gap var(--transition);
}
.blog-card:hover .blog-link { gap: 0.6rem; }

/* --- Contact form ----------------------------------------- */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--stone-700); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--stone-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  color: var(--stone-800);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.form-group textarea { resize: vertical; min-height: 7rem; }
.form-checkbox { display: flex; gap: 0.75rem; align-items: flex-start; }
.form-checkbox input[type="checkbox"] { width: 1.1rem; height: 1.1rem; flex-shrink: 0; margin-top: 0.15rem; accent-color: var(--emerald-700); }
.form-checkbox label { font-size: 0.88rem; color: var(--stone-600); font-weight: 400; }

/* Contact info rows */
.contact-info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-md);
  background: var(--emerald-100);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 1.2rem; height: 1.2rem; }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.hours-table tr { border-bottom: 1px solid var(--stone-100); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 0.6rem 0; color: var(--stone-600); }
.hours-table td:first-child { font-weight: 600; color: var(--stone-800); width: 50%; }
.hours-table .closed { color: var(--stone-400); }

/* Alert / success message */
.alert-success {
  background: var(--emerald-50);
  border: 1.5px solid var(--emerald-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  color: var(--emerald-800);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

/* --- Checklist -------------------------------------------- */
.checklist { display: flex; flex-direction: column; gap: 0.75rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-icon { color: var(--emerald-500); flex-shrink: 0; margin-top: 0.1rem; }
.check-icon svg { width: 1.1rem; height: 1.1rem; }

/* --- Photo gallery ---------------------------------------- */
.photo-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-grid img { border-radius: var(--radius-xl); width: 100%; height: 18rem; object-fit: cover; box-shadow: var(--shadow-md); }

/* --- CTA section ------------------------------------------ */
.cta-section {
  text-align: center;
  padding-block: 5rem;
  background: var(--emerald-900);
  color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: var(--emerald-100); max-width: 36rem; margin-inline: auto; margin-bottom: 2rem; font-size: 1.05rem; }

/* --- Utilities -------------------------------------------- */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.pt-6 { padding-top: 1.5rem; }

.font-serif { font-family: var(--font-serif); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; font-weight: bold; }
.text-2xl { font-size: 1.5rem; }
.text-emerald { color: var(--emerald-700); }
.text-stone-400 { color: var(--stone-400); }
.text-stone-500 { color: var(--stone-500); }
.text-stone-600 { color: var(--stone-600); }
.text-white { color: #fff; }

.border-t { border-top: 1px solid var(--stone-200); }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.hidden { display: none; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 767px) {
  section { padding-block: 3.5rem; }
  .hero { padding-top: 6rem; padding-bottom: 3rem; }
  .hero-badge { display: none; }
  .hero-img-wrap { margin-bottom: 1rem; order: -1; }
}
