/* =========================================================================
   Sophie Richard — Psychologue · Neuropsychologue · TCC
   Site statique — CSS global
   ========================================================================= */

/* ─── Polices locales ─── */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-400.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --terracotta:       #bd4e48;
  --terracotta-light: #cc5e52;
  --terracotta-dark:  #a83c38;
  --terracotta-pale:  #f5e8e6;
  --terracotta-xpale: #faf3f2;
  --bg:     #faf8f6;
  --dark:   #2e1e18;
  --mid:    #6b3d35;
  --text:   #4a2e28;
  --muted:  #8b6560;
  --border: #e8d8d5;
  --heading-font: 'Playfair Display', Georgia, serif;
  --body-font:    'Montserrat', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ─── Typographie ─── */
h1, h2, h3 { font-family: var(--heading-font); line-height: 1.25; }

/* ─── Boutons ─── */
.btn-primary {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 26px;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(180deg, #cc5e52 0%, #bc4c40 100%);
  color: white;
  border: none;
  transition: background 0.2s ease;
}
.btn-primary:hover  { background: linear-gradient(180deg, #d4665a 0%, #c45448 100%); }
.btn-primary:active { background: linear-gradient(180deg, #b44840 0%, #a03838 100%); }

.btn-secondary {
  color: var(--terracotta);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(189,78,72,0.35);
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { color: var(--terracotta-dark); border-bottom-color: var(--terracotta-dark); }

/* ─── Navigation ─── */
nav {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark { width: 48px; height: 60px; flex-shrink: 0; }
.nav-brand {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--terracotta);
  transition: color 0.2s;
  line-height: 1.2;
}
.nav-brand small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--muted);
  text-transform: none;
}
.nav-logo:hover .nav-brand { color: var(--terracotta-dark); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--terracotta); border-bottom-color: var(--terracotta); }

.nav-cta {
  background: linear-gradient(180deg, #cc5e52 0%, #bc4c40 100%);
  color: white;
  padding: 9px 20px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.nav-cta:hover  { background: linear-gradient(180deg, #d4665a 0%, #c45448 100%); }
.nav-cta:active { background: linear-gradient(180deg, #b44840 0%, #a03838 100%); }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--dark);
}
.nav-toggle svg { display: block; }

/* ─── Séparateur ─── */
.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--terracotta), transparent);
  margin-bottom: 20px;
  border-radius: 2px;
}
.divider-white { background: linear-gradient(90deg, rgba(255,255,255,0.5), transparent); }
.divider-center { margin-left: auto; margin-right: auto; }

/* ─── Label de section ─── */
.section-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
  font-weight: 600;
}

/* ─── HERO ─── */
.hero {
  background:
    radial-gradient(ellipse at 78% 50%, rgba(189,78,72,0.08) 0%, transparent 58%),
    linear-gradient(160deg, #fdf0ee 0%, #f5e4e1 50%, #eedbd8 100%);
  padding: 88px 48px 80px;
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 100%;
}
.hero-text { flex: 1; min-width: 0; }
.hero-tag {
  display: inline-block;
  background: rgba(189,78,72,0.10);
  color: var(--terracotta);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(189,78,72,0.15);
}
.hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 18px;
}
.hero h1 em { color: var(--terracotta); font-style: italic; }
.hero-sub {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero-image {
  width: 280px;
  min-width: 220px;
  height: 340px;
  border-radius: 20px;
  background: linear-gradient(160deg, #cc6b5a 0%, #a84040 100%);
  box-shadow: 0 8px 32px rgba(189,78,72,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 20px; }
.hero-image-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ─── INFOS RAPIDES ─── */
.quick-info {
  background: linear-gradient(90deg, #fff 0%, #fdf7f6 100%);
  padding: 22px 48px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mid);
  font-weight: 500;
}
.quick-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #fce8e6, #f5d8d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
}
.quick-icon svg, .quick-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ─── SECTIONS génériques ─── */
.section {
  padding: 72px 48px;
  background: linear-gradient(180deg, #faf8f6 0%, #fff 100%);
}
.section h2 {
  font-size: clamp(1.6rem, 2.5vw, 1.875rem);
  color: var(--dark);
  margin-bottom: 18px;
  line-height: 1.3;
}
.section > p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  max-width: 640px;
}

.section-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section-2col-text h2 { margin-bottom: 18px; }
.section-2col-text p { font-size: 15px; color: var(--text); line-height: 1.85; margin-bottom: 28px; }
.section-2col-text .meta { font-size: 13px; color: var(--muted); margin-bottom: 28px; }

/* ─── APPROCHES ─── */
.approches {
  padding: 72px 48px;
  background:
    radial-gradient(ellipse at 10% 90%, rgba(189,78,72,0.05) 0%, transparent 55%),
    linear-gradient(160deg, #f7eeec 0%, #f0e2df 60%, #eedbd8 100%);
}
.approches h2 {
  font-size: clamp(1.6rem, 2.5vw, 1.875rem);
  color: var(--dark);
  margin-bottom: 36px;
  line-height: 1.3;
}
.approches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.approche-card {
  background: linear-gradient(160deg, #ffffff 0%, #fdf5f4 100%);
  border-radius: 14px;
  padding: 28px;
  border: 1px solid rgba(189,78,72,0.10);
  border-bottom: 3px solid var(--terracotta);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.approche-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(160deg, #fff 0%, #fceae8 100%);
  box-shadow: 0 8px 24px rgba(189,78,72,0.08);
}
.approche-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.approche-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(189,78,72,0.07);
  padding: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.approche-icon svg, .approche-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.approche-card h3 {
  font-family: var(--heading-font);
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--dark);
  line-height: 1.4;
}
.approche-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.approche-card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: linear-gradient(135deg, #fce8e6, #f5ddd9);
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--terracotta);
  text-decoration: none;
  margin-top: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, gap 0.2s;
}
.card-link:hover { border-bottom-color: var(--terracotta); gap: 7px; }

/* ─── POUR QUI ─── */
.pour-qui {
  padding: 72px 48px;
  background: linear-gradient(180deg, #fff 0%, #faf8f6 100%);
}
.pour-qui h2 {
  font-size: clamp(1.6rem, 2.5vw, 1.875rem);
  color: var(--dark);
  margin-bottom: 1rem;
}
.section-intro {
  color: #6b5a56;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.profils-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.profil-card {
  text-align: center;
  padding: 28px 16px;
  background: linear-gradient(160deg, #fff 0%, #fdf5f4 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.profil-card:hover {
  transform: translateY(-4px);
  border-color: rgba(189,78,72,0.35);
  background: linear-gradient(160deg, #fff 0%, #fceae8 100%);
  box-shadow: 0 8px 24px rgba(189,78,72,0.08);
}
.profil-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
}
.profil-icon img, .profil-icon svg { width: 100%; height: 100%; object-fit: contain; }
.profil-card h3 {
  font-family: var(--heading-font);
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.profil-card > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.profil-card .card-link { margin-top: 10px; }

/* ─── TARIFS ─── */
.tarifs {
  padding: 72px 48px;
  background: linear-gradient(160deg, #c85550 0%, #c4564a 45%, #be5248 100%);
  position: relative;
  overflow: hidden;
}
.tarifs::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.tarifs::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 20%, rgba(255,255,255,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.tarifs .section-label { color: rgba(255,255,255,0.65); position: relative; z-index: 1; }
.tarifs .divider { position: relative; z-index: 1; }
.tarifs h2 { color: white; margin-bottom: 36px; position: relative; z-index: 1; font-size: clamp(1.6rem, 2.5vw, 1.875rem); }
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.tarif-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.06) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: background 0.22s ease, transform 0.22s ease;
}
.tarif-card:hover {
  background: linear-gradient(160deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.10) 100%);
  transform: translateY(-3px);
}
.tarif-price {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
  line-height: 1;
}
.tarif-label { font-size: 14px; color: rgba(255,255,255,0.85); font-weight: 500; }
.tarif-note  { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 8px; }
.tarif-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 28px;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ─── RDV ─── */
.rdv {
  padding: 72px 48px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(189,78,72,0.08) 0%, transparent 55%),
    linear-gradient(180deg, #faf8f6 0%, #f5eeec 100%);
}
.rdv h2 { font-size: clamp(1.6rem, 2.5vw, 1.875rem); margin-bottom: 14px; }
.rdv > p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.rdv-note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.rdv-note a {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid rgba(189,78,72,0.3);
  transition: border-color 0.2s;
}
.rdv-note a:hover { border-bottom-color: var(--terracotta); }
.rdv-urgence { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ─── FOOTER ─── */
footer {
  background: linear-gradient(135deg, #251410 0%, var(--dark) 100%);
  color: rgba(255,255,255,0.45);
  padding: 32px 48px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
footer a:hover { color: rgba(255,255,255,0.75); border-bottom-color: rgba(255,255,255,0.3); }

/* ─── Focus accessibilité ─── */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .approches-grid { grid-template-columns: repeat(2, 1fr); }
  .profils-grid   { grid-template-columns: repeat(2, 1fr); }
  .tarifs-grid    { grid-template-columns: repeat(2, 1fr); }
  .section-2col   { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    z-index: 99;
  }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  .hero       { padding: 56px 20px 48px; flex-direction: column; gap: 32px; }
  .hero-image { width: 100%; min-width: unset; height: 300px; }
  .hero-image img { object-position: center 8%; }
  .quick-info { padding: 18px 20px; gap: 16px; flex-direction: column; }
  .section, .approches, .pour-qui, .tarifs, .rdv { padding: 48px 20px; }
  .approches-grid { grid-template-columns: 1fr; }
  .profils-grid   { grid-template-columns: repeat(2, 1fr); }
  .tarifs-grid    { grid-template-columns: 1fr; }
  footer { padding: 24px 20px; flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 480px) {
  .profils-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
}
