/* ==========================================================================
   Feuille de style / Hoja de estilos — site psychologue
   Un seul fichier pour tout le site (FR + ES).
   Les couleurs principales sont définies ci-dessous : change-les ici et
   elles s'appliqueront partout.
   ========================================================================== */

:root {
  /* Palette — modifie ces valeurs pour changer les couleurs du site */
  --color-bg: #f8f5f0;          /* fond général, ivoire chaud */
  --color-surface: #ffffff;     /* cartes, encadrés */
  --color-text: #45403a;        /* texte principal, taupe foncé neutre (plus doux qu'un brun) */
  --color-muted: #8a8072;       /* texte secondaire, taupe clair */
  --color-accent: #8f8571;      /* couleur d'accent, beige/taupe neutre */
  --color-accent-dark: #6f6656; /* accent survolé, taupe foncé */
  --color-soft: #f2ece2;        /* bandes de fond légères, beige pâle */
  --color-border: #e7ddd0;

  --font-title: "DM Serif Display", "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(54, 47, 40, 0.08);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 18px;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.25; color: var(--color-text); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }

p { margin: 0 0 1em; text-align: justify; hyphens: auto; }

a { color: var(--color-accent-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- En-tête / barre de navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  padding: 12px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { font-family: var(--font-title); font-size: 1.2rem; font-weight: 600; text-decoration: none; color: var(--color-text); }
.brand span { color: var(--color-accent); }
.brand-logo { display: block; height: 58px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--color-text); font-size: .98rem; }
.nav-links a:hover { color: var(--color-accent-dark); }

.lang-switch { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.lang-switch a { text-decoration: none; color: var(--color-muted); padding: 2px 6px; border-radius: 6px; }
.lang-switch a.active { color: #fff; background: var(--color-accent); }

/* Icône Instagram dans la barre de navigation */
.nav-links li:has(.nav-ig) { display: flex; align-items: center; }
.nav-ig { display: inline-flex; align-items: center; color: var(--color-accent-dark); transition: color .2s ease; }
.nav-ig:hover { color: var(--color-accent); }
.nav-ig svg { width: 21px; height: 21px; display: block; position: relative; top: 1px; }

/* Petit bouton "Prendre RDV" dans la barre de navigation */
.nav-cta {
  background: var(--color-accent); color: #fff; padding: 8px 16px;
  border-radius: 999px; text-decoration: none; font-size: .92rem;
  font-weight: 600; white-space: nowrap; transition: background .2s ease;
}
.nav-cta:hover { background: var(--color-accent-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--color-text); }

/* ---------- Bouton ---------- */
.btn {
  display: inline-block; background: var(--color-accent); color: #fff;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 1rem; transition: background .2s ease;
  border: 0; cursor: pointer;
}
.btn:hover { background: var(--color-accent-dark); }
.btn-outline { background: transparent; color: var(--color-accent-dark); border: 1.5px solid var(--color-accent); }
.btn-outline:hover { background: var(--color-soft); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-text { position: relative; }
.hero .eyebrow { color: var(--color-accent-dark); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin-bottom: 14px; }
.hero p.lead { font-size: 1.15rem; color: var(--color-muted); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-photo {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-soft), #e6dcc8);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); text-align: center; padding: 20px;
  object-fit: cover;
}
/* Quand la photo est une vraie image : pas de marge ni de fond, elle remplit le cadre */
img.hero-photo, img.about-photo {
  padding: 0; display: block; background: none; object-fit: cover;
}
/* Cadrage : garde les pieds visibles sur la photo d'accueil,
   et cadre plus haut (visage/buste) sur la photo "À propos" */
img.hero-photo { object-position: center bottom; }
img.about-photo { object-position: center top; }
/* Carte Google Maps intégrée : remplit le cadre sans marge */
iframe.map-embed { padding: 0; display: block; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
#faq h2 { text-align: center; }
.section-soft { background: var(--color-soft); }
.section-lead { color: var(--color-muted); max-width: 60ch; margin-bottom: 36px; }

/* ---------- Grille de cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
/* Petit effet au survol des domaines d'accompagnement (non cliquables) */
#specialites .card,
.service-list-grid .card,
.step-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
#specialites .card:hover,
.service-list-grid .card:hover,
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(54, 47, 40, .14);
}
.card h3 { color: var(--color-accent-dark); }

/* ---------- Témoignages : carrousel ---------- */
.testimonials-carousel { position: relative; padding: 0 46px; }
.testimonials-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 10px; margin: 0; list-style: none;
  scrollbar-width: none; -ms-overflow-style: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonials-track .card {
  flex: 0 0 auto; width: calc(33.333% - 15px); scroll-snap-align: start;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--color-border);
  box-shadow: var(--shadow); color: var(--color-accent-dark);
  font-size: 1.15rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; padding: 0;
}
.carousel-btn:hover { background: var(--color-soft); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
@media (max-width: 900px) {
  .testimonials-track .card { width: calc(50% - 11px); }
}
@media (max-width: 640px) {
  .testimonials-carousel { padding: 0 40px; }
  .testimonials-track .card { width: 82%; }
}

/* ---------- FAQ (accordéon) ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; cursor: pointer; font-family: var(--font-title);
  font-size: 1.1rem; color: var(--color-text); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\2192"; color: var(--color-accent-dark); flex-shrink: 0;
  font-size: 1.2rem; transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(90deg); }
/* Anime l'ouverture/fermeture (au lieu de l'affichage instantané du navigateur) */
.faq-item .faq-answer-wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-item[open] .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-item .faq-answer-wrap > .faq-answer {
  overflow: hidden; min-height: 0;
  margin: 0; padding: 0 26px 22px 2px; color: var(--color-muted);
}

/* ---------- Services (cartes cliquables) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  position: relative; display: block; aspect-ratio: 3/4;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none;
}
.service-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.service-card:hover img { transform: scale(1.05); }
.service-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 12, .72), rgba(20, 16, 12, 0) 55%);
  display: flex; align-items: flex-end; padding: 24px;
}
.service-overlay h3 { color: #fff; margin: 0 0 4px; font-size: 1.4rem; }
.service-overlay span {
  color: #fff; font-size: .9rem; opacity: .9;
  display: inline-flex; align-items: center; gap: 6px;
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Page de service (détail) ---------- */
.service-hero { padding: 48px 0 8px; }
.service-hero .eyebrow { color: var(--color-accent-dark); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin-bottom: 10px; }
.service-hero-photo { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin: 24px 0 8px; }
.service-body { max-width: 68ch; margin: 0 auto; }
.service-body p { color: var(--color-text); text-align: justify; hyphens: auto; }
.service-body .service-intro-quote { text-align: left; }
.service-list-grid .card p { text-align: left; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--color-muted); font-size: .92rem; text-decoration: none; }
.back-link:hover { color: var(--color-accent-dark); }
.service-body h3 { margin-top: 36px; color: var(--color-accent-dark); font-size: 1.3rem; }
.service-intro-quote {
  border-left: 3px solid var(--color-accent); padding: 2px 0 2px 20px;
  font-size: 1.15rem; font-style: italic; color: var(--color-muted); margin: 18px 0;
}
.service-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 18px 0 26px; }
.service-list-grid .card { padding: 18px 20px; }
.service-list-grid .card p { margin: 0; color: var(--color-text); }
.service-cta-box {
  background: var(--color-soft); border-radius: var(--radius);
  padding: 28px 32px; margin-top: 32px;
}
.service-cta-box h3 { margin-top: 0; }
.service-cta-box p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .service-list-grid { grid-template-columns: 1fr; }
}

/* Petites étiquettes (thèmes abordés) */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 26px; padding: 0; list-style: none; }
.tag-list li {
  background: var(--color-soft); color: var(--color-accent-dark);
  border: 1px solid var(--color-border); border-radius: 999px;
  padding: 7px 16px; font-size: .88rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tag-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(54, 47, 40, .12);
}

/* Étapes du suivi, cartes numérotées côte à côte */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 28px; }
.step-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow);
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  font-family: var(--font-title); font-size: 1.15rem; margin-bottom: 14px;
}
.step-card h4 { margin: 0 0 8px; font-size: 1.02rem; color: var(--color-text); font-weight: 600; }
.step-card p { margin: 0; font-size: .92rem; color: var(--color-muted); text-align: left; }
@media (max-width: 780px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.about-photo {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius);
  background: linear-gradient(135deg, #f1e9dc, #e2d6bf);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); text-align: center; padding: 20px; object-fit: cover;
}

/* ---------- Infos pratiques / tarifs ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; gap: 20px; }
.info-list li:last-child { border-bottom: 0; }
.info-list .label { color: var(--color-muted); }
.info-list .value { font-weight: 600; }

/* ---------- Contact ---------- */
.contact-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 48px;
  margin-bottom: 40px;
}
.contact-meta-item { display: flex; align-items: center; gap: 12px; }
.contact-meta-item svg { width: 22px; height: 22px; color: var(--color-accent-dark); flex-shrink: 0; }
.contact-meta-item .meta-label {
  display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted);
}
.contact-meta-item .meta-value { display: block; font-size: .98rem; color: var(--color-text); }
.contact-meta-item a { color: inherit; text-decoration: none; }
.contact-meta-item a:hover { color: var(--color-accent-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
form.contact-form label { display: block; margin-bottom: 4px; font-size: .95rem; font-weight: 600; }
form.contact-form input,
form.contact-form textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 16px;
  border: 1px solid var(--color-border); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff;
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
img.map-embed { object-fit: cover; padding: 0; width: 100%; height: 100%; min-height: 420px; aspect-ratio: auto; }
.map-embed {
  width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius);
  background: var(--color-soft); display: flex; align-items: center;
  justify-content: center; color: var(--color-muted); text-align: center; padding: 20px;
}
@media (max-width: 780px) {
  img.map-embed { min-height: 320px; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--color-text); color: #ddd4c7; padding: 48px 0 32px; margin-top: 40px; }
.site-footer a { color: #efe6d8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #a89b89; }

/* ---------- Astuce d'édition (repère visuel) ---------- */
.edit-hint { background: #fff7e6; border: 1px dashed #e0c48c; color: #7a5c1e; padding: 4px 8px; border-radius: 6px; font-size: .8rem; }

/* ---------- Responsive / mobile ---------- */
@media (max-width: 860px) {
  .hero .container, .about, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
    padding: 12px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; }
  .nav-toggle { display: block; }
  .hero-photo { order: -1; max-width: 320px; margin: 0 auto; }
}
