/* =================================================================
   SOPHRO NANTES CONCEPT — Feuille de style unique
   Charte (prompt 1) : Vert sauge / Terracotta / Lin / Vert nuit / Anthracite
   Polices : Fraunces (titres) + Manrope (corps)
   Mobile-first. Aucun framework.
   ================================================================= */

/* ===== VARIABLES ===== */
:root {
  --sage:          #5C7458;   /* primaire / accent */
  --sage-deep:     #4E6650;   /* accent foncé (boutons, contraste AA) */
  --sage-soft:     #E7EDE3;   /* tinte claire pour fonds de cartes */
  --terracotta:    #C17A5B;   /* secondaire / chaleur */
  --terracotta-soft:#F1E2D8;  /* tinte terracotta */
  --lin:           #F5F1E8;   /* fond clair principal */
  --lin-2:         #FBF9F3;   /* fond carte sur lin */
  --nuit:          #222E27;   /* fond foncé / sections contrastées */
  --ink:           #32383A;   /* texte courant (jamais noir pur) */
  --muted:         #6C746F;   /* texte secondaire */
  --line:          rgba(34, 46, 39, .12);
  --line-light:    rgba(245, 241, 232, .16);

  --radius:        14px;
  --radius-lg:     22px;
  --shadow:        0 18px 40px -24px rgba(34, 46, 39, .45);
  --container:     1160px;
  --gutter:        clamp(20px, 5vw, 48px);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--lin);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-decoration: none; }
a:hover { color: var(--terracotta); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--nuit);
  margin: 0 0 .4em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
p  { margin: 0 0 1rem; }
strong { font-weight: 600; color: var(--nuit); }

/* ===== ACCESSIBILITÉ ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--nuit);
  color: var(--lin);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; color: var(--lin); }

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

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 8vw, 92px); }
.section--soft { background: var(--lin-2); }
.section--sage { background: var(--sage-soft); }
.section--dark { background: var(--nuit); color: var(--lin); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--lin); }
.section--dark a { color: #D9C3B4; }

.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}
.section--dark .kicker { color: var(--terracotta); }
.lead { font-size: 1.16rem; color: var(--muted); }
.section--dark .lead { color: rgba(245, 241, 232, .82); }

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--sage-deep);
  background: var(--sage-deep);
  color: var(--lin);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--nuit); border-color: var(--nuit); color: var(--lin); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--sage-deep); }
.btn--ghost:hover { background: var(--sage-deep); color: var(--lin); }
.btn--small { padding: 11px 20px; font-size: .9rem; }
.btn--light { background: var(--lin); border-color: var(--lin); color: var(--nuit); }
.btn--light:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--lin); }
.btn--block { width: 100%; justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--nuit); }
.brand:hover { color: var(--nuit); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--sage);
  color: var(--lin);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--nuit); }

.nav { display: none; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav__link { color: var(--ink); font-weight: 500; font-size: .98rem; position: relative; }
.nav__link:hover { color: var(--sage-deep); }
.nav__link[aria-current="page"] { color: var(--sage-deep); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--nuit); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: var(--lin);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 13px 4px; font-weight: 600; font-size: 1.05rem; color: var(--nuit); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; margin-top: 10px; }
.mobile-nav .btn { color: var(--lin); }

/* ===== HERO ===== */
.hero { background: var(--lin); overflow: hidden; }
.hero__inner {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  padding-block: clamp(40px, 7vw, 84px);
  align-items: center;
}
.hero__title { margin-bottom: .35em; }
.hero__title em { font-style: italic; color: var(--sage-deep); }
.hero__text { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  background: var(--sage-soft); color: var(--sage-deep);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.hero__media { position: relative; }

/* ===== PLACEHOLDERS IMAGE (provisoires — remplacés au prompt 3) ===== */
.ph {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 80% 10%, var(--terracotta-soft) 0%, transparent 55%),
    linear-gradient(150deg, var(--sage-soft), #DCE4D7 55%, var(--terracotta-soft));
  overflow: hidden;
}
.ph::after {
  content: "Photo à venir";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(34, 46, 39, .38);
}
.ph--hero   { aspect-ratio: 4 / 3; }
.ph--wide   { aspect-ratio: 16 / 10; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--tall   { aspect-ratio: 3 / 4; }

/* ===== IMAGES RÉELLES (prompt 3) ===== */
.media { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--sage-soft); }
.media--hero   { aspect-ratio: 4 / 3; }
.media--wide   { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall   { aspect-ratio: 3 / 4; }

/* ===== GRILLES & CARTES ===== */
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--lin-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--sage-deep);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card__tag {
  display: inline-block;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}

/* Étapes numérotées */
.steps { counter-reset: step; }
.step__num {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--nuit); color: var(--lin);
  font-family: var(--serif); font-size: 1.1rem;
  margin-bottom: 14px;
}

/* ===== SPLIT (texte + média) ===== */
.split { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.split__media .ph { box-shadow: var(--shadow); }

/* ===== TÉMOIGNAGES ===== */
.quote {
  background: var(--lin-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}
.quote__text { font-family: var(--serif); font-size: 1.14rem; font-style: italic; color: var(--nuit); margin-bottom: 16px; }
.quote__meta { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.quote__who { font-weight: 700; color: var(--ink); font-style: normal; }

/* ===== TARIFS ===== */
.pricing { width: 100%; border-collapse: collapse; background: var(--lin-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pricing caption { text-align: left; color: var(--muted); font-size: .9rem; padding: 0 0 12px; caption-side: top; }
.pricing th, .pricing td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pricing thead th { background: var(--sage-soft); color: var(--nuit); font-family: var(--sans); font-weight: 700; font-size: .92rem; letter-spacing: .03em; }
.pricing tbody tr:last-child td { border-bottom: 0; }
.pricing .price { font-family: var(--serif); font-size: 1.2rem; color: var(--sage-deep); white-space: nowrap; font-weight: 600; }

/* ===== BANDEAU CTA ===== */
.cta-band { background: var(--nuit); color: var(--lin); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); text-align: center; }
.cta-band h2 { color: var(--lin); }
.cta-band p { color: rgba(245, 241, 232, .82); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }

/* ===== FORMULAIRE ===== */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--nuit); }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--lin-2);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--sage); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field--row { display: flex; align-items: flex-start; gap: 10px; }
.field--row input { width: auto; margin-top: 4px; }
.field--row label { font-weight: 400; font-size: .88rem; color: var(--muted); }
.form__note {
  font-size: .85rem;
  color: var(--muted);
  background: var(--terracotta-soft);
  border-radius: 10px;
  padding: 12px 14px;
}

/* ===== INFOS CONTACT / HORAIRES ===== */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: grid; gap: 2px; }
.info-list .label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours .day { font-weight: 600; color: var(--nuit); }

/* ===== CARTE (iframe) ===== */
.map-embed { border: 0; width: 100%; height: 340px; border-radius: var(--radius); filter: saturate(.9); }

/* ===== FOOTER ===== */
.site-footer { background: var(--nuit); color: rgba(245, 241, 232, .78); padding-block: clamp(40px, 6vw, 64px) 0; }
.site-footer a { color: rgba(245, 241, 232, .82); }
.site-footer a:hover { color: var(--terracotta); }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 36px; }
.site-footer__brand { font-family: var(--serif); font-size: 1.25rem; color: var(--lin); margin-bottom: 12px; }
.site-footer__title { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lin); margin-bottom: 14px; }
.site-footer__col a { display: block; padding: 5px 0; }
.site-footer__credit { border-top: 1px solid var(--line-light); padding-block: 22px; font-size: .88rem; }
.site-footer__credit a { color: var(--terracotta); font-weight: 600; }

/* ===== PAGE MENTIONS LÉGALES ===== */
.legal { max-width: 760px; margin-inline: auto; padding-block: clamp(40px, 7vw, 80px); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal a.back { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* ===== UTILITAIRES ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =================================================================
   RESPONSIVE — tablette ≥ 768px
   ================================================================= */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-first .split__media { order: -1; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .contact-cols { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* =================================================================
   RESPONSIVE — desktop ≥ 1024px
   ================================================================= */
@media (min-width: 1024px) {
  .nav { display: flex; }
  .burger { display: none; }
  .mobile-nav { display: none !important; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
