/* ── CUSTOM PROPERTIES ───────────────────────────────────────────────────── */
:root {
  --cream: #FAF7F2;
  --terracotta: #B5654A;
  --sage: #8B9D83;
  --charcoal: #2C2824;
  --charcoal-soft: #5A5450;
  --border: #E8E2D8;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-naive: 'Caveat', cursive;

  --max-width: 1100px;
  --section-pad-v: clamp(4rem, 8vw, 6rem);
  --header-height: 64px;
}

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

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

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ── FOCUS STATES ─────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

/* ── SKIP LINK ────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  font-variation-settings: 'opsz' 80;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  font-variation-settings: 'opsz' 60;
}

h3 {
  font-family: var(--font-naive);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--font-naive);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

/* ── UTILITIES ────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section-pad {
  padding-block: var(--section-pad-v);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-header h2 {
  margin-top: 0.25rem;
}

/* ── SCROLL ANIMATIONS ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger cards within a grid */
.services-grid .fade-up:nth-child(2) { transition-delay: 0.08s; }
.services-grid .fade-up:nth-child(3) { transition-delay: 0.16s; }
.services-grid .fade-up:nth-child(4) { transition-delay: 0.08s; }
.services-grid .fade-up:nth-child(5) { transition-delay: 0.16s; }
.services-grid .fade-up:nth-child(6) { transition-delay: 0.24s; }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--terracotta);
  color: #fff;
  border: 2px solid var(--terracotta);
}

.btn-primary:hover {
  background-color: #9e5540;
  border-color: #9e5540;
}

.btn-outline {
  background-color: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}

.btn-outline:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* ── IMAGE PLACEHOLDERS ───────────────────────────────────────────────────── */
.img-placeholder {
  background-color: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.img-placeholder--hero {
  aspect-ratio: 4 / 5;
}

.img-placeholder--portrait {
  aspect-ratio: 3 / 4;
}

.placeholder-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--charcoal-soft);
  user-select: none;
}

/* ── HEADER ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--cream);
  transition: border-bottom 0.2s ease, background-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 20;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-inner nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--charcoal-soft);
  position: relative;
  transition: color 0.15s ease;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--terracotta);
  transition: width 0.2s ease;
}

.nav-list a:hover {
  color: var(--charcoal);
}

.nav-list a:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.lang-toggle {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--charcoal-soft);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-toggle:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.header-phone {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--terracotta);
}

.header-phone:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hide phone in header on small screens — it's in the hero CTA */
@media (max-width: 560px) {
  .header-phone { display: none; }
  .header-name { font-size: 0.875rem; }
}

@media (max-width: 480px) {
  .nav-list { gap: 1rem; }
  .nav-list a { font-size: 0.8rem; }
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hero-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-text h1 {
  margin-top: 0.25rem;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--charcoal-soft);
  max-width: 38ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.hero-image-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-caption {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--charcoal-soft);
  text-align: center;
}

@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    order: -1;
    max-width: 320px;
    margin-inline: auto;
    width: 100%;
  }

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

/* ── À PROPOS ─────────────────────────────────────────────────────────────── */
.apropos {
  border-top: 1px solid var(--border);
}

.apropos-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.apropos-text {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.apropos-text h2 {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.about-placeholder-note {
  display: inline-block;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--sage);
  border: 1px dashed var(--sage);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .apropos-inner {
    grid-template-columns: 1fr;
  }

  .apropos-image {
    max-width: 280px;
    margin-inline: auto;
    width: 100%;
  }
}

/* ── PRESTATIONS ──────────────────────────────────────────────────────────── */
.prestations {
  background-color: #F5F0EA;
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border: none;
}

.service-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background-color: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--terracotta);
}

.card-number {
  font-family: var(--font-naive);
  font-size: 1rem;
  font-weight: 400;
  color: var(--sage);
}

.service-card h3 {
  font-size: 1.0625rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--charcoal-soft);
  line-height: 1.65;
}

@media (max-width: 720px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

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

/* ── DÉROULEMENT ──────────────────────────────────────────────────────────── */
.deroulement {
  border-top: 1px solid var(--border);
}

.timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-step h3 {
  font-size: 1.0625rem;
}

.timeline-step p {
  font-size: 0.9375rem;
  color: var(--charcoal-soft);
  line-height: 1.65;
}

.step-number {
  width: 2.25rem;
  height: 2.25rem;
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--terracotta);
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.timeline-connector {
  flex: 0 0 clamp(1.5rem, 4vw, 3rem);
  height: 1.5px;
  background-color: var(--border);
  align-self: flex-start;
  margin-top: 1.125rem; /* aligns with vertical center of the step number circle */
}

@media (max-width: 660px) {
  .timeline {
    flex-direction: column;
    gap: 0;
  }

  .timeline-step {
    flex-direction: row;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .timeline-step .step-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-connector {
    width: 1.5px;
    height: 2rem;
    flex: none;
    /* offset to align with the centre of the number circle (2.25rem wide) */
    margin: 0 0 0 calc(1.125rem - 0.75px);
    align-self: auto;
    margin-top: 0;
  }
}

/* ── PRISE EN CHARGE ──────────────────────────────────────────────────────── */
.prise-en-charge {
  background-color: #F5F0EA;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pec-inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.pec-inner h2 {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}

.pec-inner p {
  color: var(--charcoal-soft);
  font-size: 1rem;
}

/* ── CONTACT ──────────────────────────────────────────────────────────────── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sage);
}

.contact-item address {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--charcoal);
}

.contact-phone {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 300;
  font-variation-settings: 'opsz' 40;
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--terracotta);
  transition: color 0.15s ease;
}

.contact-phone:hover {
  color: var(--terracotta);
}

.contact-item p {
  color: var(--charcoal-soft);
  font-size: 0.9375rem;
}

.contact-map {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-map iframe {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  display: block;
  width: 100%;
}

.map-link {
  font-size: 0.8125rem;
  color: var(--charcoal-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  align-self: flex-end;
}

.map-link:hover {
  color: var(--terracotta);
}

@media (max-width: 720px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 20;
}

.footer-address,
.footer-copy {
  font-size: 0.8125rem;
  color: var(--charcoal-soft);
}

.footer-copy a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--charcoal-soft);
}

.footer-copy a:hover {
  color: var(--terracotta);
}
