/* =========================================================
   Sophie Baubelet — Psychologue, spécialisée en neuropsychologie
   Feuille de style principale
   ========================================================= */

/* ---------- Polices (auto-hébergées, pas d'appel Google) ---------- */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Variables ---------- */
:root {
  --accent: #2f5d50;
  --accent-dark: #24473d;
  --accent-soft: #e8f0eb;
  --clay: #b5654a;
  --ink: #211f1c;
  --muted: #6b6560;
  --cream: #fbf7f1;
  --sand: #f4efe7;

  --line: rgba(33, 31, 28, 0.1);
  --line-strong: rgba(33, 31, 28, 0.18);

  --radius-sm: 16px;
  --radius: 20px;
  --radius-lg: 28px;

  --wrap: 1120px;
  --wrap-narrow: 900px;
  --gutter: clamp(20px, 5vw, 32px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* compense le header collant lors des ancres */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', 'Century Gothic', 'Avenir Next', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--clay);
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lien d'évitement pour la navigation clavier */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- Utilitaires ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: clamp(64px, 9vw, 96px);
}

.section--sand {
  background: var(--sand);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--clay {
  color: var(--clay);
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 34em;
}

.h2 {
  font-size: clamp(30px, 4.4vw, 44px);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(33, 31, 28, 0.18);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--light {
  background: var(--cream);
  color: var(--accent);
}

.btn--light:hover {
  background: #fff;
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--sm {
  font-size: 14px;
  padding: 11px 20px;
}

.btn--block {
  width: 100%;
}

/* Lien souligné animé */
.link-underline {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.3s ease, opacity 0.3s ease;
}

.link-underline:hover {
  gap: 12px;
}

.link-underline--onDark {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.link-underline--onDark:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 241, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(33, 31, 28, 0.08);
  transition: box-shadow 0.35s ease;
}

.header.is-scrolled {
  box-shadow: 0 6px 24px rgba(33, 31, 28, 0.06);
}

.header__progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--clay);
  transition: width 0.1s linear;
}

.header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.35s ease;
}

.header.is-scrolled .header__inner {
  padding-block: 10px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__name {
  font-size: 19px;
  letter-spacing: 0.01em;
}

.brand__role {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
}

.nav__link {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 3px;
  box-shadow: inset 0 -1px 0 rgba(47, 93, 80, 0);
  transition: color 0.25s ease, box-shadow 0.3s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--clay);
}

/* Bouton menu mobile */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
}

.nav-toggle__bars::before {
  transform: translateY(-6px);
}

.nav-toggle__bars::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 76px) var(--gutter) clamp(64px, 8vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 4.5vw, 56px);
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.hero__title {
  font-size: clamp(38px, 6.2vw, 64px);
  line-height: 1.05;
  font-weight: 900;
}

.hero__title .thin {
  font-size: 0.86em;
  font-weight: 900;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__actions .btn {
  font-size: 16px;
  padding: 16px 24px;
}

.hero__stats {
  display: flex;
  gap: clamp(20px, 3vw, 32px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat__label {
  font-size: 22px;
  line-height: 1.2;
}

.stat__detail {
  font-size: 13px;
  color: var(--muted);
}

/* Carte infos pratiques */
.infocard {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
}

.infocard__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cream);
  box-shadow: 0 2px 8px rgba(33, 31, 28, 0.16);
}

.infocard__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.infocard__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.infocard__item:not(:last-child) {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(47, 93, 80, 0.16);
}

.infocard__title {
  font-size: 21px;
  line-height: 1.25;
}

.infocard__detail {
  font-size: 13px;
  color: var(--muted);
}

.infocard__footer {
  margin-top: auto;
}

/* ---------- Grille de cartes (motifs) ---------- */
.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__tag {
  font-size: 15px;
  color: var(--clay);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__title {
  font-size: 24px;
  line-height: 1.25;
}

.card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.card--accent {
  background: var(--accent);
  color: #fff;
  justify-content: space-between;
  gap: 18px;
}

.card--accent .card__tag {
  color: rgba(255, 255, 255, 0.72);
}

.card--accent .card__title {
  color: #fff;
}

.card--accent .card__text {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Qui suis-je ---------- */
.about__head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.about__portrait {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cream);
  box-shadow: 0 3px 10px rgba(33, 31, 28, 0.16);
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.approach {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.approach--clay {
  border-left-color: var(--clay);
}

.approach__title {
  font-size: clamp(22px, 2.6vw, 27px);
  line-height: 1.2;
}

.approach__text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.about__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-top: 8px;
}

.about__item {
  border-top: 1px solid rgba(33, 31, 28, 0.15);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__item dt {
  font-size: 19px;
}

.about__item dd {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Le bureau (galerie) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: clamp(24px, 4vw, 32px);
}

.gallery__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gallery figure {
  margin: 0;
}

/* picture est un conteneur en ligne : il doit occuper toute la colonne */
.gallery picture {
  display: block;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  /* les photos sources sont carrées : le cadrage se fait depuis le centre */
  object-position: center;
  background: var(--sand);
}

/* Recadrage adapté à chaque format d'écran (voir aussi les media queries) */
.gallery__tall img {
  aspect-ratio: 4 / 5;
}

.gallery__short img {
  aspect-ratio: 3 / 2;
}

/* ---------- Séance (bloc sombre) ---------- */
.dark {
  background: var(--accent);
  color: #fff;
}

.dark h2,
.dark h3 {
  color: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: clamp(32px, 5vw, 48px);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__num {
  font-size: 40px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
}

.step__title {
  font-size: 21px;
}

.step__text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.detail {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 40px;
  margin-top: clamp(40px, 6vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
}

.detail__title {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
}

.detail__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail__body p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Visio + accès ---------- */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.panel {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel--soft {
  background: var(--accent-soft);
}

.panel--outline {
  border: 1px solid rgba(33, 31, 28, 0.14);
}

.panel__title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
}

.panel__title--sm {
  font-size: clamp(26px, 3vw, 34px);
}

.panel__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.panel__text--sm {
  font-size: 15px;
}

/* Carte : chargement au clic (aucun cookie tiers avant action) */
.map {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 4px;
  background: var(--sand);
  aspect-ratio: 16 / 10;
}

.map__placeholder {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: var(--sand);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s ease;
}

.map__placeholder:hover {
  background: #efe8dc;
}

.map__placeholder strong {
  font-size: 17px;
  font-weight: 500;
}

.map__placeholder span {
  font-size: 13px;
  color: var(--muted);
  max-width: 30em;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 15px;
}

.facts__row dt {
  color: var(--muted);
}

.facts__row dd {
  margin: 0;
  text-align: right;
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq__item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 4px 28px;
  transition: box-shadow 0.35s ease;
}

.faq__item[open] {
  box-shadow: 0 10px 26px rgba(33, 31, 28, 0.07);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.3s var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}

.faq__item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  padding-bottom: 24px;
  max-width: 60ch;
}

/* ---------- Appel final ---------- */
.cta {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.cta__title {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.1;
  color: #fff;
}

.cta__text {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.cta__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta__note {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

/* ---------- Pied de page ---------- */
.footer {
  border-top: 1px solid var(--line);
}

.footer__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 32px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 22px;
}

.footer__links a {
  color: var(--muted);
}

/* ---------- Animations à l'apparition ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s ease, transform 0.62s var(--ease);
  will-change: opacity, transform;
}

[data-reveal='left'] {
  transform: translate3d(-28px, 8px, 0);
}

[data-reveal='right'] {
  transform: translate3d(28px, 8px, 0);
}

[data-reveal='scale'] {
  transform: scale(0.96) translate3d(0, 16px, 0);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.lift {
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, opacity 0.7s ease;
}

.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(33, 31, 28, 0.13);
}

.dark .lift:hover {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

/* ---------- Adaptatif ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .infocard {
    max-width: 520px;
  }

  .split,
  .detail,
  .cta {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  /* Sur une seule colonne, la grande photo deviendrait démesurément haute :
     on la recadre en paysage. */
  .gallery__tall img {
    aspect-ratio: 3 / 2;
  }

  .gallery__col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 84px;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(33, 31, 28, 0.08);
    /* replié par défaut */
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    font-size: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }

  .nav__link:hover,
  .nav__link.is-active {
    box-shadow: none;
    color: var(--accent);
  }

  .nav .btn {
    margin-top: 16px;
    width: 100%;
  }
}

@media (max-width: 560px) {
  /* Sur téléphone, les photos sont affichées en carré, c'est-à-dire dans leur
     format d'origine : la pièce est visible en entier, sans recadrage. */
  .gallery__tall img,
  .gallery__short img {
    aspect-ratio: 1 / 1;
  }

  .gallery,
  .gallery__col {
    gap: 16px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .infocard,
  .card,
  .panel {
    padding: 24px;
  }

  .faq__item {
    padding-inline: 20px;
  }

  .facts__row {
    flex-direction: column;
    gap: 2px;
  }

  .facts__row dd {
    text-align: left;
  }
}

/* ---------- Préférence : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Impression ---------- */
@media print {
  .header,
  .nav-toggle,
  .cta,
  .map {
    display: none !important;
  }

  body {
    background: #fff;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
