@charset "UTF-8";

/* ------------------------------------------------------------------
   Polices hébergées sur le site (aucun appel à Google Fonts)
   Newsreader et Hanken Grotesk : licence SIL Open Font License
------------------------------------------------------------------- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
}

/* ------------------------------------------------------------------
   Cabinet du Dr Pierrick Campanini — feuille de style commune
   (pages d'accueil FR/EN et pages de rendez-vous)
------------------------------------------------------------------- */

:root {
  --paper: #f5f9fc;
  --surface: #ffffff;
  --wash: #e3eff8;
  --sky: #93c1e3;          /* bleu historique du cabinet */
  --blue: #1d5c88;         /* accent, texte et boutons */
  --blue-dark: #154766;
  --ink: #0f2530;
  --ink-soft: #4b6270;
  --line: #d3e2ec;
  --night: #0e2a3a;        /* section contact */
  --night-soft: #a9c6d9;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 72rem;
  --radius: 0.875rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.6rem;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  font: 600 1rem/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--blue);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--wash); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  color: #fff;
  background: var(--blue);
}
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- En-tête ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
  margin-right: auto;
}
.brand strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 1.75rem;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--blue); }

.lang {
  display: flex;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang a,
.lang span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
}
.lang span { background: var(--blue); color: #fff; }
.lang a:hover { color: var(--blue); }

.topbar .btn {
  min-height: 2.6rem;
  padding: 0.4rem 1.15rem;
  font-size: 0.9375rem;
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero h1 {
  font-size: clamp(2.9rem, 7.2vw, 5.4rem);
  font-weight: 350;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--blue);
}

.hero .lead {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Bande d'informations sous le titre (hero) */
.hero .facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.facts dt {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.facts dd { margin: 0; font-weight: 500; line-height: 1.45; }
.facts a { text-decoration-color: var(--sky); text-underline-offset: 0.2em; }
.facts a:hover { color: var(--blue); }

/* Portrait en médaillon : la tête dépasse du disque */
.portrait {
  --pw: min(72vw, 19rem);
  position: relative;
  justify-self: center;
  width: var(--pw);
  aspect-ratio: 1;
  margin: 2.5rem 0 0;
}
.portrait__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #2f6f9c 0%, var(--blue) 55%, var(--night) 130%);
}
.portrait__pic {
  position: absolute;
  inset: 0;
  clip-path: inset(-45% 0 0 0 round 0 0 calc(var(--pw) / 2) calc(var(--pw) / 2));
}
.portrait__pic img {
  position: absolute;
  bottom: 0;
  left: -9%;
  width: 118%;
  max-width: none;
  height: auto;
}
@media (min-width: 60.01rem) {
  .portrait { margin-right: 9rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }

.section h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 350;
}

/* Parcours */

.career {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.career__intro p:not(.eyebrow) {
  max-width: 24rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.4rem;
  width: 1.5px;
  background: var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 2.1rem 2.25rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--sky);
  border-radius: 50%;
  background: var(--surface);
}
.timeline li.is-now::before { border-color: var(--blue); background: var(--blue); }

.timeline time {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.timeline h3 {
  font-size: 1.5rem;
  font-weight: 450;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.timeline p {
  margin: 0.25rem 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
}

/* Approche */

.approach { text-align: left; }
.approach blockquote {
  max-width: 52rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.approach blockquote em {
  font-style: italic;
  color: var(--blue);
}

/* Contact */

.contact {
  background: var(--night);
  color: #fff;
}
.contact .eyebrow { color: var(--sky); }
.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.contact h2 { color: #fff; margin-bottom: 1.5rem; }
.contact__lead {
  max-width: 26rem;
  margin: 0 0 2rem;
  color: var(--night-soft);
}
.contact .btn { border-color: var(--sky); color: #fff; }
.contact .btn:hover { background: rgba(147, 193, 227, 0.14); }
.contact .btn--primary { background: var(--sky); border-color: var(--sky); color: var(--night); }
.contact .btn--primary:hover { background: #b5d5ee; border-color: #b5d5ee; }

.details {
  display: grid;
  gap: 1.75rem;
  margin: 0;
}
.details div {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(147, 193, 227, 0.22);
}
.details div:last-child { padding-bottom: 0; border-bottom: 0; }
.details dt {
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
}
.details dd { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.details dd.big {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.details a { text-decoration-color: rgba(147, 193, 227, 0.5); text-underline-offset: 0.22em; }
.details a:hover { color: var(--sky); }
.details .sub { display: block; margin-top: 0.15rem; font-size: 0.95rem; color: var(--night-soft); }

/* ---------- Pied de page ---------- */

.footer {
  padding-block: 1.75rem;
  background: var(--night);
  color: var(--night-soft);
  border-top: 1px solid rgba(147, 193, 227, 0.16);
  font-size: 0.875rem;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

/* ---------- Pages de rendez-vous ---------- */

.booking { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem); }
.booking__head { max-width: 40rem; margin-bottom: 2rem; }
.booking__head h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 350;
  margin-bottom: 1rem;
}
.booking__head p:not(.eyebrow) { margin: 0; color: var(--ink-soft); }

.booking__widget {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding: clamp(0.5rem, 2vw, 1.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 37, 48, 0.04), 0 12px 36px -18px rgba(15, 37, 48, 0.18);
}
.booking__widget iframe {
  display: block;
  width: 100%;
  min-height: 25rem;
  border: 0;
  border-radius: 0.75rem;
}

.booking__back { margin-top: 2rem; text-align: center; }

/* ---------- Apparition douce ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero .hero__main > *,
.hero .portrait,
.booking__head,
.booking__widget {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.hero .hero__main > :nth-child(2) { animation-delay: 0.06s; }
.hero .hero__main > :nth-child(3) { animation-delay: 0.12s; }
.hero .hero__main > :nth-child(4) { animation-delay: 0.18s; }
.hero .hero__main > :nth-child(5) { animation-delay: 0.24s; }
.hero .portrait { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Adaptation tablette / mobile ---------- */

@media (max-width: 60rem) {
  .nav { display: none; }
  .hero .wrap,
  .career,
  .contact .wrap { grid-template-columns: minmax(0, 1fr); }

  .hero { padding-top: 2rem; }
  .hero .facts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .topbar .wrap { gap: 0.75rem; min-height: 3.75rem; }
  .brand span { display: none; }
  .brand strong { font-size: 1.1rem; }
  .topbar .btn { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .timeline h3 { font-size: 1.3rem; }
}

