/* Cabinet neuropsychologie — mobile d'abord, sans framework npm */

:root {
  --brand: #00a88a;
  --brand-deep: color-mix(in srgb, var(--brand) 72%, #0a2e28);
  --ink: #15241f;
  --muted: #4d635c;
  --paper: #f3f8f6;
  --paper-2: #e7f1ed;
  --cream-line: rgba(21, 36, 31, 0.08);
  --max: 68rem;
  --header-h: 4.25rem;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--brand) 10%, #c9e8e0), transparent 55%),
    linear-gradient(180deg, #eef6f3 0%, var(--paper) 28%, #f7faf9 100%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); }
a:hover { color: var(--brand); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— En-tête / menu ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, #f7faf9 86%, transparent);
  border-bottom: 1px solid var(--cream-line);
}

.header-inner {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.nav-burger {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 0.5rem;
  border: 1px solid var(--cream-line);
  background: #fff;
}
.nav-burger span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle:checked + .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: #f7faf9;
  border-bottom: 1px solid var(--cream-line);
  padding: 1rem 1.25rem 1.25rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  animation: navIn 0.35s var(--ease);
}
.nav-toggle:checked ~ .site-nav { display: flex; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
}
.site-nav a:hover,
.site-nav a.is-active {
  background: color-mix(in srgb, var(--brand) 12%, #fff);
  color: var(--brand-deep);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  padding: 0.7rem 1.15rem;
  border-radius: 0.55rem;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 920px) {
  .nav-burger { display: none; }
  .brand-sub { max-width: none; }
  .site-nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    animation: none;
  }
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
  }
  .site-nav a { padding: 0.45rem 0.55rem; font-size: 0.92rem; }
}

/* ——— Boutons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.55rem;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-1px); background: var(--brand-deep); }
.btn.ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn.ghost:hover { background: rgba(255,255,255,0.12); }
.btn.outline {
  background: #fff;
  color: var(--brand-deep) !important;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, #c9d8d2);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ——— Hero accueil (plein écran visuel) ——— */
.hero {
  position: relative;
  min-height: min(92vh, 44rem);
  display: grid;
  align-items: end;
  color: #f4fffb;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) alternate infinite;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 28, 24, 0.25) 0%, rgba(8, 28, 24, 0.55) 45%, rgba(8, 28, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 28, 24, 0.55), transparent 55%);
}

.hero-content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 3.25rem;
  animation: riseIn 0.9s var(--ease) both;
}
.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 600;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  line-height: 1.05;
  max-width: 12ch;
}
.hero-lead {
  margin: 1rem 0 1.6rem;
  font-size: 1.08rem;
  max-width: 34rem;
  opacity: 0.92;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ——— Bandeau page intérieure ——— */
.page-hero {
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid var(--cream-line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, #eef6f3), transparent 60%),
    #eef6f3;
}
.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.1;
}
.page-hero p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.05rem;
}

/* ——— Sections ——— */
section { padding: 3rem 0; }
section.alt {
  background: color-mix(in srgb, var(--paper-2) 80%, #fff);
  border-block: 1px solid var(--cream-line);
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
}
.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.05rem;
}
.prose p { margin: 0 0 1rem; max-width: 44rem; }
.prose p:last-child { margin-bottom: 0; }

/* Motifs / raisons de consulter */
.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.reasons li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--cream-line);
  font-weight: 500;
}
.reasons li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
  transform: translateY(-0.1rem);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.reasons li:nth-child(2)::before { animation-delay: 0.2s; }
.reasons li:nth-child(3)::before { animation-delay: 0.4s; }
.reasons li:nth-child(4)::before { animation-delay: 0.6s; }
.reasons li:nth-child(5)::before { animation-delay: 0.8s; }
.reasons li:nth-child(6)::before { animation-delay: 1s; }

@keyframes pulseDot {
  0%, 100% { transform: translateY(-0.1rem) scale(1); opacity: 1; }
  50% { transform: translateY(-0.1rem) scale(1.35); opacity: 0.65; }
}

/* Grille visuelle (photos d'origine) */
.visual-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
.visual-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0.35rem;
  min-height: 12rem;
}
.visual-strip img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.visual-strip figure:hover img { transform: scale(1.04); }

@media (min-width: 700px) {
  .visual-strip { grid-template-columns: 1.2fr 1fr 1fr; }
  .visual-strip figure:first-child { grid-row: span 1; min-height: 16rem; }
  .split-2 {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
  }
}

/* Prestations / liens */
.offer-list {
  display: grid;
  gap: 1.25rem;
}
.offer {
  padding: 0;
  border: 0;
  background: transparent;
}
.offer h2, .offer h3 { margin-bottom: 0.55rem; }
.offer p { margin: 0 0 0.85rem; color: var(--muted); max-width: 40rem; }
.offer a.more {
  font-weight: 650;
  text-decoration: none;
  color: var(--brand-deep);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
}

/* Étapes du bilan */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-top: 1px solid var(--cream-line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: color-mix(in srgb, var(--brand) 16%, #fff);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.95rem;
}
.steps .meta {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
}

.media-row {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.75rem;
}
@media (min-width: 700px) {
  .media-row { grid-template-columns: repeat(3, 1fr); }
}
.media-row figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0.35rem;
}
.media-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Formations */
.theme-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .theme-grid { grid-template-columns: 1fr 1fr; }
}
.theme {
  padding: 1.15rem 0;
  border-top: 1px solid var(--cream-line);
}
.theme ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

/* Tarifs */
.price-table {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--cream-line);
}
.price-row {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--cream-line);
}
@media (min-width: 700px) {
  .price-row {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1.5rem;
  }
}
.price-row strong { font-size: 1.05rem; }
.price-row .detail { color: var(--muted); font-size: 0.95rem; max-width: 36rem; }
.price-row .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-deep);
  line-height: 1;
  white-space: nowrap;
}

.note-box {
  margin-top: 1.75rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--cream-line);
  color: var(--muted);
  max-width: 42rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 3rem; }
}

.place {
  padding: 1rem 0;
  border-top: 1px solid var(--cream-line);
}
.place h3 { color: var(--brand-deep); }

.contact-form {
  display: grid;
  gap: 0.85rem;
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c9d8d2;
  border-radius: 0.5rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent);
  border-color: var(--brand);
}
.form-flash {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--brand) 14%, #fff);
  color: var(--brand-deep);
  font-weight: 600;
}
.form-error {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #991b1b;
  font-weight: 600;
}

/* Captcha */
.captcha-box {
  border: 1px dashed color-mix(in srgb, var(--brand) 35%, #c9d8d2);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem 0.25rem;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.captcha-box legend {
  padding: 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.captcha-img {
  border: 1px solid #d7e2dd;
  border-radius: 0.4rem;
  background: #f6f9fb;
}
.captcha-reload {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--brand-deep);
  border-bottom: 1px dotted color-mix(in srgb, var(--brand) 50%, transparent);
}
.captcha-hint {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Pied de page */
.site-footer {
  margin-top: 2rem;
  background:
    linear-gradient(160deg, #0d2420, #14352e 55%, #0f2a25);
  color: #d7ebe4;
  padding: 2.75rem 0 1.5rem;
  font-size: 0.92rem;
}
.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.1fr 1.3fr 0.9fr;
    gap: 2rem;
  }
}
.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #fff;
}
.footer-tag { margin: 0.25rem 0 0.75rem; opacity: 0.8; }
.footer-places { display: grid; gap: 1rem; }
.footer-places h3 {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand) 70%, #fff);
}
.footer-places p { margin: 0; opacity: 0.85; }
.site-footer a { color: #e8f7f2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.footer-copy {
  width: min(100% - 2rem, var(--max));
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  opacity: 0.6;
  font-size: 0.8rem;
}

/* Motions utilitaires */
.reveal {
  animation: riseIn 0.8s var(--ease) both;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
