/* ---------- Polices (woff2 ; licences web Puanto et Beautiful Scarlet à acheter avant la mise en ligne) ---------- */
@font-face { font-family: "Puanto"; src: url("../fonts/puanto.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Beautiful Scarlet"; src: url("../fonts/beautiful-scarlet.woff2") format("woff2"); font-display: swap; }

/* ---------- Tokens de la charte ---------- */
:root {
  --terracotta: #D9845F;
  --terracotta-600: #C46F4B; /* dérivé, grands titres sur fond clair (≥ 3:1) */
  --terracotta-700: #A9532F; /* dérivé, contraste AA avec du blanc (≈ 5:1) */
  --ocre: #DBA04B;
  --rose: #EFB9AC;
  --rose-100: #F8E4DE;
  --vert: #B4C3A7;
  --creme: #F4E9E0;
  --creme-50: #FBF7F3;
  --chocolat: #6D2E18;
  --ink: #3B2A23;

  --font-title: "Puanto", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-script: "Beautiful Scarlet", "Brush Script MT", cursive;

  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(3.5rem, 8vw, 6.5rem);
  --radius-pill: 999px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme-50);
  color: var(--ink);
  font: 300 1.0625rem/1.75 var(--font-body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--terracotta-700); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--terracotta-700); outline-offset: 3px; }
[id] { scroll-margin-top: 6rem; } /* ancres non masquées par l'en-tête collant */

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { --container: 760px; }
.section { padding-block: var(--section-space); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* ---------- Éléments partagés ---------- */
.btn {
  display: inline-block;
  padding: .8em 1.8em;
  border-radius: var(--radius-pill);
  font: 400 .95rem/1.2 var(--font-body);
  text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--terracotta-700); color: #fff; }
.btn--primary:hover { background: var(--chocolat); }
.btn--outline { border: 1px solid var(--terracotta-700); color: var(--chocolat); }
.btn--outline:hover { background: var(--terracotta-700); color: #fff; }

.section-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-align: center; }
.section-title--left { text-align: left; }
.script-title { font: 400 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-script); color: var(--terracotta-600); margin-bottom: .5em; }

.ornament { display: flex; align-items: center; justify-content: center; gap: .75rem; color: var(--terracotta); margin: 1rem 0 2rem; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 4.5rem; background: currentColor; opacity: .5; }
.section-title--left + .ornament { justify-content: flex-start; }
.section-title--left + .ornament::before { display: none; }

.prose > :last-child { margin-bottom: 0; }
.prose strong { font-weight: 400; color: var(--chocolat); }
.highlight { margin-top: 1.5em; color: var(--terracotta-700); font-weight: 400; }

.icon { width: 1.75rem; height: 1.75rem; flex: none; color: var(--terracotta); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(251 247 243 / .92); backdrop-filter: blur(8px); border-bottom: 1px solid rgb(109 46 24 / .08); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }
.site-header__logo img { width: auto; height: 3.25rem; }
.nav { margin-left: auto; }
.nav__toggle { cursor: pointer; display: grid; gap: 5px; padding: .5rem; background: none; border: 0; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav__list .btn { color: #fff; }
.nav__list a[aria-current="page"] { color: var(--terracotta-700); border-bottom: 1px solid currentColor; }
.site-header__cta { display: none; }

/* Menu complet à partir de 1100px (7 entrées), tiroir en dessous */
@media (max-width: 1099px) {
  .nav nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--creme-50); padding: 1rem var(--gutter) 1.5rem; border-bottom: 1px solid rgb(109 46 24 / .08); }
  .nav__toggle[aria-expanded="true"] + nav { display: block; }
  .nav__list { display: grid; gap: 1rem; font-size: 1.05rem; }
}
@media (max-width: 599px) {
  .site-header__logo img { height: 2.75rem; }
}
@media (min-width: 1100px) {
  /* Logo à gauche, menu centré, bouton à droite */
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav { margin-left: 0; }
  .nav__toggle { display: none; }
  .nav__list { display: flex; gap: 2rem; }
  .nav__cta { display: none; }
  .site-header__cta { display: inline-block; justify-self: end; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(26rem, 70vh, 40rem); display: flex; align-items: center; background: linear-gradient(120deg, var(--creme) 0%, var(--rose-100) 60%, var(--rose) 100%); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(251 247 243 / .92) 0%, rgb(251 247 243 / .6) 45%, transparent 75%); }
.hero__inner { padding-block: 4rem; }
/* Branche décorative tant qu'aucune photo n'est choisie */
.hero:not(:has(.hero__bg))::after { content: ""; position: absolute; right: 6%; bottom: -2rem; width: clamp(9rem, 22vw, 17rem); aspect-ratio: 320 / 600; background: url("../img/branche.svg") no-repeat center / contain; opacity: .7; z-index: -1; pointer-events: none; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.2rem); max-width: 14ch; }
.hero__accent { display: block; font: 400 1.15em/1.1 var(--font-script); color: var(--terracotta-700); margin-top: .1em; }
.hero .ornament { justify-content: flex-start; }
.hero .ornament::before { display: none; }
.hero__subtitle { font-size: 1.15rem; max-width: 44ch; margin-bottom: 2rem; }

/* ---------- Texte + image ---------- */
.text-image__inner { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.arch { margin: 0; aspect-ratio: 3 / 4; max-width: 400px; width: 100%; justify-self: center; border-radius: 999px 999px 0 0; overflow: hidden; background: linear-gradient(180deg, var(--rose-100), var(--creme)); display: grid; place-items: center; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch .arch__placeholder { width: 35%; height: auto; opacity: .5; }
.text-image__media { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.text-image__media::after { content: ""; position: absolute; left: -14%; bottom: -5%; width: 42%; aspect-ratio: 220 / 290; background: url("../img/rameau.svg") no-repeat center / contain; pointer-events: none; }
.text-image--reverse .text-image__media::after { left: auto; right: -14%; transform: scaleX(-1); }
@media (min-width: 900px) {
  .text-image__inner { grid-template-columns: 2fr 3fr; }
  .text-image--reverse .text-image__media { order: 2; }
}

/* ---------- Liste avec icônes ---------- */
.benefits { background: #fff; }
.benefits__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 2rem 1.5rem; }
.benefits__item { display: flex; align-items: center; gap: 1rem; font-size: .95rem; line-height: 1.4; }
.picto { width: 3.5rem; height: 3.5rem; flex: none; color: var(--terracotta-600); }
.picto .f { fill: var(--rose); fill-opacity: .55; stroke: none; }
.picto .f2 { fill: var(--ocre); fill-opacity: .3; stroke: none; }
.picto .a { fill: var(--ocre); stroke: none; }

/* ---------- Prestation ---------- */
.service { display: grid; background: var(--creme); }
.service__card, .service__aside { padding: var(--section-space) var(--gutter); }
.service__aside { background: var(--rose-100); position: relative; overflow: hidden; isolation: isolate; }
.service__aside::after { content: ""; position: absolute; right: -1.5rem; bottom: -1rem; width: 13rem; aspect-ratio: 320 / 600; background: url("../img/branche.svg") no-repeat center / contain; opacity: .75; z-index: -1; pointer-events: none; }
.service__image { min-height: 18rem; background: linear-gradient(160deg, var(--vert), var(--creme)); }
.service__image img { width: 100%; height: 100%; object-fit: cover; }
.service__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid rgb(109 46 24 / .12); }
.service__meta span { display: flex; align-items: center; gap: .6rem; }
.service__price { font: 400 1.8rem/1 var(--font-title); color: var(--ink); }
@media (min-width: 900px) {
  .service { grid-template-columns: 1.2fr .8fr 1.2fr; }
  .service__card, .service__aside { padding-inline: clamp(2rem, 4vw, 4rem); }
}

/* ---------- Témoignages ---------- */
.testimonials { background: #fff; }
.testimonials__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .testimonials__list { grid-template-columns: repeat(3, 1fr); } }
.testimonial { margin: 0; font-family: var(--font-title); font-size: 1.15rem; line-height: 1.6; }
.testimonial::before { content: "“"; display: block; font-size: 3rem; line-height: 1; color: var(--terracotta); }
.testimonial footer { margin-top: 1rem; font: 300 .9rem var(--font-body); }
.testimonial__source { display: block; margin-top: .2rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--terracotta-700); }
.testimonials__more { text-align: center; margin: 3rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--creme); padding-top: 4rem; }
.site-footer__inner { display: grid; gap: 2.5rem; align-items: center; }
.site-footer__logo { width: 220px; }
.site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; font-size: .95rem; }
.site-footer__contact li { display: flex; align-items: center; gap: .75rem; }
.site-footer__contact .icon { width: 1.25rem; height: 1.25rem; }
.site-footer__contact a { color: var(--ink); }
.site-footer__booking-title { font-family: var(--font-title); font-size: 1.2rem; }
.site-footer__legal a { color: var(--chocolat); }
.site-footer__legal { text-align: center; font-size: .8rem; padding: 2rem var(--gutter); margin: 2rem 0 0; border-top: 1px solid rgb(109 46 24 / .1); }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: auto 1fr auto; gap: 4rem; }
}

/* ---------- Pages intérieures ---------- */
.page-intro { padding: clamp(3rem, 7vw, 5rem) 0 1rem; text-align: center; background: linear-gradient(180deg, var(--creme) 0%, var(--creme-50) 100%); }
.page-intro__title { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.page-intro__text { font-size: 1.1rem; max-width: 46ch; margin: 0 auto 1rem; }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem) var(--section-space); }

.text-block--creme { background: var(--creme); }
.text-block--rose { background: var(--rose-100); }
.prose h2, .prose h3 { margin: 1.8em 0 .6em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose ul { padding-left: 1.2em; }
.prose--legal { font-size: 1rem; }

/* Liste des soins */
.soins-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.soin-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.soin-card__link { color: inherit; text-decoration: none; display: grid; gap: 1.25rem; justify-items: center; }
.soin-card__link:hover .soin-card__title { color: var(--terracotta-700); }
.soin-card__title { font-size: 1.7rem; transition: color .2s; }
.soin-card__summary { max-width: 34ch; margin: 0; }
.arch--small { max-width: 260px; }
.soin-card .soin-meta { justify-content: center; }

.soin-meta { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; font-size: .95rem; }
.soin-meta li { display: flex; align-items: center; gap: .5rem; }
.soin-meta .icon { width: 1.25rem; height: 1.25rem; }
.soin-meta__price { font: 400 1.6rem/1 var(--font-title); }

/* Page d'un soin */
.soin-intro { text-align: left; }
.soin-intro .ornament { justify-content: flex-start; }
.soin-intro .ornament::before { display: none; }
.soin-intro .page-intro__text { margin-inline: 0; }
.soin-intro__inner { display: grid; gap: 3rem; align-items: center; }
.soin-intro__back { font-size: .9rem; margin-bottom: 1.5rem; }
.soin-intro__back a { color: var(--ink); }
@media (min-width: 900px) { .soin-intro__inner { grid-template-columns: 3fr 2fr; } }

/* Grille tarifaire */
.prices__list { list-style: none; margin: 0; padding: 0; }
.prices__row { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid rgb(109 46 24 / .12); }
.prices__row a { color: var(--ink); font: 400 1.3rem var(--font-title); text-decoration: none; }
.prices__row a:hover { color: var(--terracotta-700); }
.prices__duration { font-size: .95rem; }
.prices__price { font: 400 1.4rem var(--font-title); min-width: 4ch; text-align: right; }
.prices__note { margin-top: 2rem; font-size: .95rem; text-align: center; }

/* FAQ */
.faq__list { display: grid; gap: .75rem; }
.faq__item { background: #fff; border: 1px solid rgb(109 46 24 / .1); border-radius: 1rem; }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.5rem; position: relative; font: 400 1.15rem/1.4 var(--font-title); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 1.5rem; top: 50%; translate: 0 -50%; font: 300 1.5rem var(--font-body); color: var(--terracotta); transition: rotate .2s; }
.faq__item[open] summary::after { rotate: 45deg; }
.faq__answer { padding: 0 1.5rem 1.25rem; }

/* Formations (frise) */
.timeline__list { list-style: none; margin: 0; padding: 0 0 0 2rem; border-left: 1px solid rgb(196 111 75 / .4); display: grid; gap: 2.5rem; }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: calc(-2rem - 6px); top: .45rem; width: 11px; height: 11px; border-radius: 50%; background: var(--creme-50); border: 1px solid var(--terracotta-600); box-shadow: 0 0 0 4px var(--creme-50); }
.timeline__year { display: inline-block; font-size: .85rem; letter-spacing: .08em; color: var(--terracotta-700); margin-bottom: .25rem; }
.timeline__name { font-size: 1.35rem; }
.timeline__school { margin: .3rem 0 0; font-size: .95rem; opacity: .85; }
.timeline__text { margin: .6rem 0 0; }

/* Appel à l'action */
.cta { text-align: center; background: var(--rose-100); }
.cta__text { font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- Formulaire de contact ---------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 3fr 2fr; gap: 5rem; } }
.contact__aside { background: var(--creme); border-radius: 1.5rem; padding: 2rem; align-self: start; }
.contact__aside .site-footer__contact { margin: 1.5rem 0; }
.contact__alt { font-size: .95rem; margin: 1.75rem 0 0; }
.contact--booking .contact__aside .site-footer__contact { margin-bottom: 0; }
@media (min-width: 900px) {
  .contact--booking .contact__form { grid-column: 1; grid-row: 1; }
  .contact--booking .contact__aside { grid-column: 2; grid-row: 1; }
}
.form-row { display: grid; gap: 0 1.5rem; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { margin-bottom: 1.5rem; }
.form-field label { display: block; margin-bottom: .4rem; font-weight: 400; }
.form-optional { font-size: .85rem; opacity: .75; }
.form-field input, .form-field textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid rgb(59 42 35 / .35); border-radius: .75rem;
}
.form-field textarea { resize: vertical; min-height: 10rem; }
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--terracotta-700); outline-offset: 1px; border-color: transparent; }
.form-field [aria-invalid="true"] { border-color: #A12B1E; }
.form-error { color: #A12B1E; font-size: .9rem; margin: .4rem 0 0; }
.form-legal { font-size: .85rem; margin-bottom: 1.5rem; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 1rem; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.notice p:last-child { margin: 0; }
.notice--error { background: #FBE9E5; border: 1px solid #A12B1E; }
.notice--error a { color: #A12B1E; }
.notice--success { background: var(--creme); display: flex; gap: 1rem; align-items: center; font-size: 1.1rem; }

/* ---------- Apparition au défilement ---------- */
.js-reveal [data-reveal] { opacity: 0; translate: 0 1.5rem; transition: opacity .8s ease, translate .8s ease; }
.js-reveal [data-reveal].is-visible { opacity: 1; translate: 0 0; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
