/* =====================================================
   Jérôme Duchaine — Psychothérapeute & Stage "Dire et se dire"
   Charte visuelle partagée
   ===================================================== */

:root {
  --plum-900: #1a1020;
  --plum-800: #2a1c34;
  --plum-700: #3d2a4d;
  --plum-text: #5c4870;
  --plum-muted: #9e8ab0;

  --purple: #7B3FA0;
  --purple-dark: #6a3490;
  --purple-soft: #C896C8;
  --purple-tint: #f5eef8;
  --purple-border: #dfc4df;
  --purple-line: #ede0f0;

  --cream: #fdf8fe;
  --cream-2: #f9f0fb;
  --white: #ffffff;

  --success-bg: #edf7ee;
  --success-fg: #2e7d32;
  --success-border: #c3e6c5;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 24px rgba(123, 63, 160, 0.06);
  --shadow-card-lg: 0 12px 48px rgba(26, 16, 32, 0.1);

  --container: 1200px;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--plum-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* =================== TYPOGRAPHY =================== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--plum-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(40px, 5.5vw, 64px); }
h2 { font-size: clamp(30px, 3.5vw, 44px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
h4 { font-size: 18px; }

h1 em, h2 em, h3 em {
  color: var(--purple);
  font-style: italic;
  font-weight: 400;
}

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-bottom: 14px;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--purple-soft);
  font-weight: 400;
}
.lead {
  font-size: 17px;
  color: var(--plum-text);
  line-height: 1.8;
  font-weight: 300;
}

/* =================== LAYOUT =================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 88px 0;
}
.section.tight { padding: 64px 0; }
.section.cream { background: var(--cream); }
.section.dark { background: var(--plum-900); color: var(--cream); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark h1 em, .section.dark h2 em, .section.dark h3 em { color: var(--purple-soft); }
.section.dark .lead { color: rgba(255,255,255,0.7); }
.section.dark .kicker { color: var(--purple-soft); }

.text-center { text-align: center; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head.left {
  text-align: left;
  margin: 0 0 48px;
}

/* =================== NAV =================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--purple-line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--purple-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--plum-900);
  font-weight: 500;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--purple-soft);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--plum-text);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a.active { color: var(--purple); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--purple-soft);
  border-radius: 1px;
}
.nav-cta {
  background: var(--purple);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--purple-dark); color: white !important; }
.nav-burger {
  display: none;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-burger span {
  height: 2px;
  width: 22px;
  background: var(--plum-900);
  border-radius: 1px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 24px 32px 32px;
    gap: 20px;
    align-items: stretch;
    border-bottom: 1px solid var(--purple-line);
  }
  .nav-burger { display: flex; }
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: white;
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(123, 63, 160, 0.25);
}
.btn-ghost {
  background: transparent;
  border-color: var(--purple-border);
  color: var(--purple);
}
.btn-ghost:hover {
  background: var(--purple-tint);
  border-color: var(--purple);
}
.btn-dark {
  background: var(--plum-900);
  color: white;
}
.btn-dark:hover { background: var(--plum-700); }
.btn-light {
  background: white;
  color: var(--purple);
  border-color: white;
}
.btn-light:hover { background: var(--purple-tint); }

/* =================== HERO =================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  background: var(--cream);
}
.hero-content {
  padding: 88px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.hero-image .placeholder { height: 100%; min-height: 480px; border-radius: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 56px 32px; }
}

/* =================== TYPO ILLUSTRATIONS (en lieu de photos) =================== */
.typo-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 36px;
  background:
    radial-gradient(circle at 30% 20%, rgba(123, 63, 160, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(200, 150, 200, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
  overflow: hidden;
  min-height: 220px;
}
.typo-illustration::before {
  content: '"';
  position: absolute;
  top: 28px; left: 32px;
  font-family: var(--serif);
  font-size: 140px;
  line-height: 0.6;
  color: var(--purple-soft);
  opacity: 0.35;
  font-style: italic;
  pointer-events: none;
}
.typo-illustration .ti-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--plum-700);
  line-height: 1.35;
  max-width: 380px;
  font-weight: 400;
  position: relative;
  z-index: 1;
}
.typo-illustration .ti-text em {
  color: var(--purple);
  font-style: italic;
  font-weight: 500;
}
.typo-illustration .ti-foot {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-soft);
  font-weight: 600;
}
.typo-illustration.dark {
  background:
    radial-gradient(circle at 20% 30%, rgba(200, 150, 200, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(123, 63, 160, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, var(--plum-800) 0%, var(--plum-900) 100%);
  color: white;
}
.typo-illustration.dark::before { color: var(--purple-soft); opacity: 0.25; }
.typo-illustration.dark .ti-text { color: rgba(255,255,255,0.88); }
.typo-illustration.dark .ti-text em { color: var(--purple-soft); }
.typo-illustration.dark .ti-foot { color: var(--purple-soft); }

/* =================== PLACEHOLDERS =================== */
.placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      var(--purple-tint) 0,
      var(--purple-tint) 12px,
      var(--cream-2) 12px,
      var(--cream-2) 24px
    );
  border: 1px solid var(--purple-line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: var(--purple);
  padding: 24px;
  min-height: 200px;
}
.placeholder .ph-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--purple-border);
  margin-bottom: 8px;
}
.placeholder .ph-note {
  font-size: 11px;
  color: var(--plum-muted);
  font-family: 'Courier New', monospace;
  max-width: 240px;
}
.placeholder.dark {
  background:
    repeating-linear-gradient(
      135deg,
      #241730 0,
      #241730 12px,
      #1f1428 12px,
      #1f1428 24px
    );
  border-color: rgba(200, 150, 200, 0.15);
  color: var(--purple-soft);
}
.placeholder.dark .ph-label {
  background: var(--plum-900);
  border-color: rgba(200, 150, 200, 0.25);
  color: var(--purple-soft);
}

/* =================== CARDS =================== */
.card {
  background: white;
  border: 1px solid var(--purple-line);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.25s ease;
}
.card:hover {
  border-color: var(--purple-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.card-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--plum-900);
  margin-bottom: 10px;
  font-weight: 500;
}
.card-desc {
  font-size: 14px;
  color: var(--plum-text);
  line-height: 1.75;
  font-weight: 300;
}

/* =================== GRIDS =================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* =================== STATS BAND =================== */
.stats-band {
  background: var(--plum-900);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  text-align: center;
  padding: 8px 16px;
}
.stat + .stat { border-left: 1px solid rgba(200, 150, 200, 0.18); }
.stat-num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--purple-soft);
  font-weight: 500;
  font-style: italic;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  font-weight: 500;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: none; }
  .stat:nth-child(2) { border-left: 1px solid rgba(200, 150, 200, 0.18); }
  .stat:nth-child(3), .stat:nth-child(4) { margin-top: 28px; border-top: 1px solid rgba(200, 150, 200, 0.18); padding-top: 28px; }
  .stat:nth-child(4) { border-left: 1px solid rgba(200, 150, 200, 0.18); }
}

/* =================== PILL / TAG =================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.pill-soft { background: var(--purple-tint); color: var(--purple); border: 1px solid var(--purple-border); }
.pill-success { background: var(--success-bg); color: var(--success-fg); border: 1px solid var(--success-border); }
.pill-muted { background: #f0f0f0; color: #999; }

/* =================== FORMS =================== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--plum-700);
  letter-spacing: 0.4px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 14px;
  padding: 13px 16px;
  border: 1px solid var(--purple-line);
  border-radius: 10px;
  background: white;
  color: var(--plum-900);
  transition: border 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123, 63, 160, 0.12);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.field .hint {
  font-size: 11px;
  color: var(--plum-muted);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--plum-text);
  line-height: 1.5;
  margin-bottom: 16px;
}
.checkbox-row input { margin-top: 3px; flex-shrink: 0; }

/* =================== FOOTER =================== */
.footer {
  background: var(--plum-900);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .brand-mark {
  width: 52px; height: 52px;
  background: white;
}
.footer-brand .brand-name { color: white; font-size: 22px; }
.footer-brand p {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  line-height: 1.8;
  max-width: 320px;
}
.footer h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--purple-soft);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s ease;
}
.footer ul a:hover { color: white; }
.footer .footer-contact {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
}
.footer .footer-contact strong { color: white; font-weight: 500; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(200,150,200,0.15);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal a + a { margin-left: 18px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =================== BREADCRUMB / PAGE HEADER =================== */
.page-header {
  background: var(--cream);
  padding: 80px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--purple-line);
}
.page-header .breadcrumb {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-soft);
  font-weight: 600;
  margin-bottom: 16px;
}
.page-header h1 { margin-bottom: 14px; }
.page-header .tagline { display: block; margin-top: 6px; }

/* =================== UTILITIES =================== */
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }

.divider {
  width: 60px;
  height: 1px;
  background: var(--purple-soft);
  margin: 16px auto;
  display: block;
}

/* =================== FEATURE ROW =================== */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--purple-line);
}
.feature-row:last-child { border-bottom: none; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--purple-tint);
  border: 1px solid var(--purple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
}
.feature-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--plum-900);
}
.feature-text p {
  font-size: 13px;
  color: var(--plum-text);
  line-height: 1.7;
  font-weight: 300;
}

/* =================== ANIMATIONS =================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease-out backwards; }

/* =================== RESPONSIVE TWEAKS =================== */
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .container { padding: 0 24px; }
  .card { padding: 24px; }
}
