:root {
  --sauge: #557D59;
  --sauge-clair: #6E9672;
  --foret: #1C3324;
  --brume: #E3EBDD;
  --papier: #F8FAF6;
  --encre: #17251C;
  --encre-douce: #46584B;
  --filet: rgba(28, 51, 36, .18);
  --filet-clair: rgba(255, 255, 255, .32);

  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gouttiere: clamp(1.25rem, 5vw, 5rem);
  --rythme: clamp(5rem, 11vw, 10rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--papier); color: var(--foret); padding: .75rem 1rem; border-radius: 4px;
}
.skip:focus { top: 1rem; }

.wrap { max-width: 82rem; margin-inline: auto; padding-inline: var(--gouttiere); }
.bloc { padding-block: var(--rythme); }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1.12;
  text-wrap: balance;
}

.tete { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.tete p { max-width: 38rem; color: var(--encre-douce); }
@media (min-width: 60rem) {
  .tete { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 4rem; }
}

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--gouttiere);
  color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.nav.est-pose {
  background: rgba(248, 250, 246, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--foret);
  box-shadow: 0 1px 0 var(--filet);
}
.nav-brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  opacity: 0; transition: opacity .3s;
}
.nav.est-pose .nav-brand { opacity: 1; }
.nav-links { display: none; gap: 2rem; margin-left: auto; font-size: 1rem; }
.nav-links a { text-decoration: none; padding-block: .25rem; border-bottom: 1px solid transparent; }
.nav-links a:hover { border-bottom-color: currentColor; }
.nav-call {
  margin-left: auto;
  padding: .55rem 1.3rem; border: 1px solid currentColor; border-radius: 99px;
  text-decoration: none; font-weight: 500; font-size: 1rem;
  transition: background-color .2s, color .2s;
}
.nav-call:hover { background: #fff; color: var(--sauge); }
.nav.est-pose .nav-call { background: var(--sauge); border-color: var(--sauge); color: #fff; }
.nav.est-pose .nav-call:hover { background: var(--foret); border-color: var(--foret); }
@media (min-width: 60rem) {
  .nav-links { display: flex; }
  .nav-call { margin-left: 0; }
}

/* Hero : la carte de visite en plein écran */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  background: var(--sauge);
  color: #fff;
}
.caduceus {
  position: absolute; left: 50%; top: 50%;
  height: min(94%, 62rem); width: auto; aspect-ratio: 800 / 760;
  transform: translate(-50%, -52%);
  color: rgba(255, 255, 255, .42);
  pointer-events: none;
}
.caduceus .trait { stroke-width: 2.4; }
.caduceus .trait > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 1.9s cubic-bezier(.6, 0, .2, 1) forwards; }
.caduceus .t-serpents > * { animation-delay: .35s; animation-duration: 2.3s; }
.caduceus .t-ailes > * { animation-delay: 1.1s; animation-duration: 1.6s; }
@keyframes tracer { to { stroke-dashoffset: 0; } }

.hero-center {
  position: relative;
  display: grid; place-items: center;
  padding: 6rem var(--gouttiere) 2rem;
  text-align: center;
}
.wordmark { display: grid; justify-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); width: 100%; }
.wordmark-name {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(3.6rem, 14.2vw, 15.5rem);
  line-height: .9; letter-spacing: -.012em;
  text-transform: uppercase; white-space: nowrap;
  animation: lever 1.3s .5s cubic-bezier(.2, .7, .2, 1) both;
}
.wordmark-sub {
  display: flex; align-items: center; justify-content: center; gap: clamp(.9rem, 3vw, 2.5rem);
  width: min(100%, 58rem);
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1rem, 2.1vw, 1.75rem);
  text-transform: uppercase; letter-spacing: .06em;
  animation: lever 1.1s 1s cubic-bezier(.2, .7, .2, 1) both;
}
.wordmark-sub::before, .wordmark-sub::after { content: ""; flex: 1; height: 2px; background: #fff; max-width: 12rem; }
@keyframes lever { from { opacity: 0; transform: translateY(.18em); } }

.hero-facts {
  position: relative;
  display: grid;
  border-top: 1px solid var(--filet-clair);
  font-size: 1.0625rem; font-weight: 500;
  animation: lever 1s 1.5s both;
}
.hero-facts li { padding: 1rem var(--gouttiere); text-align: center; }
.hero-facts li + li { border-top: 1px solid var(--filet-clair); }
@media (min-width: 48rem) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .hero-facts li { padding-block: 1.6rem; }
  .hero-facts li + li { border-top: 0; border-left: 1px solid var(--filet-clair); }
}

/* Accroche */
.accroche { padding-bottom: 0; }
.intro-lead {
  max-width: 62rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.3vw, 3.9rem);
  line-height: 1.08; letter-spacing: -.012em;
  color: var(--foret);
  text-wrap: pretty;
}

/* Présentation : Care by R, c'est qui ? */
.intro-titre { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.intro-grid { display: grid; gap: 3rem; }
.portrait { margin: 0; max-width: 26rem; }
.portrait img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 643 / 857; object-fit: cover;
  border-radius: 4px;
}
.intro-side { display: grid; gap: 1.25rem; align-content: start; max-width: 36rem; color: var(--encre-douce); }
@media (min-width: 60rem) {
  .intro-grid { grid-template-columns: minmax(0, 1fr) 1.25fr; gap: 6rem; align-items: center; }
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.btn {
  display: inline-block; padding: .9rem 1.5rem; border-radius: 99px;
  border: 1px solid var(--sauge);
  font-weight: 500; text-decoration: none; line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-plein { background: var(--sauge); color: #fff; }
.btn-plein:hover { background: var(--foret); border-color: var(--foret); }
.btn-contour { color: var(--foret); border-color: var(--filet); }
.btn-contour:hover { border-color: var(--foret); }

/* Soins */
.soins { background: var(--brume); }
.familles { display: grid; gap: 3.5rem; }
.famille { border-top: 2px solid var(--foret); padding-top: 1.5rem; }
.famille > p { margin-top: .75rem; color: var(--encre-douce); max-width: 26rem; }
.famille ul { margin-top: 1.75rem; }
.famille li { padding: .85rem 0; border-top: 1px solid var(--filet); }
@media (min-width: 60rem) {
  .familles { grid-template-columns: repeat(3, 1fr); gap: 3.5rem; }
  .famille { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 0; }
  .familles { grid-template-rows: auto auto 1fr; }
}

/* Déroulement : une vraie séquence, donc numérotée */
.etapes { display: grid; gap: 2.5rem; counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1rem; }
.etapes li::before {
  content: counter(etape);
  grid-row: span 2;
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: 5rem; line-height: .8; color: var(--sauge);
}
.etapes p { margin-top: .6rem; color: var(--encre-douce); }
@media (min-width: 60rem) {
  .etapes { grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--filet); }
  .etapes li { display: block; padding: 2.5rem 2rem 0 0; position: relative; }
  .etapes li + li { padding-left: 2rem; border-left: 1px solid var(--filet); }
  .etapes li::before { display: block; font-size: 7rem; margin-bottom: 2rem; }
}

/* Prise en charge */
.charge { background: var(--foret); color: #EEF3EA; }
.charge-grid { display: grid; gap: 4rem; }
.charge-texte { display: grid; gap: 1.5rem; align-content: start; }
.charge-texte p { max-width: 36rem; color: #C5D2C3; }
.charge-sous-titre { margin-top: 1rem; color: #fff; }
.reperes { display: grid; gap: 2.5rem; align-content: start; }
.repere { border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 1.5rem; }
.repere p { margin-top: .7rem; color: #C5D2C3; max-width: 30rem; }
.repere a { display: inline-block; margin-top: 1rem; text-underline-offset: .25em; }
.repere a:hover { color: #fff; text-decoration-thickness: 2px; }
@media (min-width: 60rem) {
  .charge-grid { grid-template-columns: 1.25fr 1fr; gap: 7rem; }
}

/* Zone */
.zone { background: var(--sauge); color: #fff; }
.zone h2 { max-width: 16ch; }
.communes {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 3.25rem);
  line-height: 1.22;
  text-wrap: pretty;
}

/* Questions */
.questions-grid { display: grid; gap: 3rem; }
@media (min-width: 60rem) {
  .questions-grid { grid-template-columns: 1fr 1.25fr; gap: 6rem; align-items: start; }
  .questions-grid h2 { position: sticky; top: 7rem; }
}
.faq details { border-top: 1px solid var(--filet); }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1rem; height: 1rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  color: var(--sauge);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 3rem 1.6rem 0; color: var(--encre-douce); max-width: 38rem; }

/* Contact */
.contact { background: var(--foret); color: #EEF3EA; }
.contact h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); color: #C5D2C3; }
.numero {
  display: block; width: fit-content;
  margin-top: 1.5rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 10.2vw, 10.5rem);
  line-height: 1; letter-spacing: -.02em; white-space: nowrap;
  color: #fff; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
  transition: background-size .45s cubic-bezier(.2, .7, .2, 1);
}
.numero:hover, .numero:focus-visible { background-size: 100% 2px; }
.contact-bas {
  display: grid; gap: .75rem;
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .28);
  color: #C5D2C3;
}
.contact-bas a { color: #fff; text-underline-offset: .25em; }
@media (min-width: 60rem) {
  .contact-bas { grid-template-columns: repeat(3, auto); justify-content: space-between; }
}

/* Pied de page */
.pied { background: #142619; color: #A9B9A8; font-size: 1rem; padding-block: 2.5rem 6.5rem; }
.pied-grid { display: grid; gap: .75rem; }
.pied-marque { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
@media (min-width: 60rem) {
  .pied { padding-bottom: 2.5rem; }
  .pied-grid { grid-template-columns: auto 1fr auto; gap: 3rem; align-items: baseline; }
}

/* Bouton d'appel fixe sur mobile */
.appel-mobile {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40;
  padding: 1rem; border-radius: 99px;
  background: var(--sauge); color: #fff; text-align: center; text-decoration: none; font-weight: 600;
  box-shadow: 0 10px 30px rgba(20, 38, 25, .35);
  transform: translateY(160%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.appel-mobile.est-visible { transform: none; }
@media (min-width: 60rem) { .appel-mobile { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .caduceus .trait > * { stroke-dashoffset: 0; }
}
