/* ═══════════════════════════════════════════════
   Linda Convert — Réflexologie
   Mobile-first · WCAG AA · 2025
═══════════════════════════════════════════════ */

/*
  PERF — Polices de remplacement calibrées.
  Pendant que Google Fonts charge, le navigateur affiche ces polices système
  aux mêmes proportions. Le Layout Shift au moment du swap est quasi nul.
*/
@font-face {
  font-family: 'Montserrat-fallback';
  src: local('Arial'), local('Helvetica Neue');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: normal;
}
@font-face {
  font-family: 'CormorantGaramond-fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 105%;
  ascent-override: 90%;
  descent-override: 25%;
}

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

:root {
  /* ── Palette ── */
  --cream:        #f5f1e7;
  --sand:         #ddc8b3;
  --sand-light:   #e8ddd0;
  --sand-bg:      #ede6d8;
  --brown:        #4a2e18;
  --brown-mid:    #5e3f2a;
  --brown-light:  #7a5c3f;
  --white:        #ffffff;
  --text:         #3d2b1a;

  /* ── Typographie ── */
  --ff-title: 'Cormorant Garamond', 'CormorantGaramond-fallback', Georgia, serif;
  --ff-body:  'Montserrat', 'Montserrat-fallback', Arial, sans-serif;

  /* ── Espacements ── */
  --section-py: 4rem;
  --container-px: 1.25rem;
  --radius: 8px;
}

/* ─────────────────────────────────
   BASE
───────────────────────────────── */
/* scroll-behavior géré via JS avec requestAnimationFrame pour ne pas bloquer le thread principal */
html { scroll-behavior: auto; }

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────────────────────────
   NAV
───────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--container-px);
  background: rgba(245,241,231,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,175,151,.4);
  transition: box-shadow .3s;
  gap: 1rem;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(74,46,24,.1); }

.nav-logo {
  font-size: .78rem;
  letter-spacing: .25em;
  color: var(--brown);
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.nav-burger {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 26px; height: 18px;
  background: none; border: none; cursor: pointer; padding: 0;
  flex-shrink: 0;
}
.nav-burger span {
  display: block; height: 2px; background: var(--brown);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-links {
  display: none;
  flex-direction: column; gap: 0;
  list-style: none;
  position: fixed; top: 57px; left: 0; right: 0;
  background: rgba(245,241,231,.98);
  border-bottom: 1px solid rgba(201,175,151,.4);
  padding: 1rem 0 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(74,46,24,.08);
}
.nav-links.open { display: flex; }
.nav-links a {
  display: block;
  padding: .75rem var(--container-px);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brown-mid); text-decoration: none; font-weight: 600;
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--brown); background: rgba(201,175,151,.15); }

/* ─────────────────────────────────
   HERO — plein écran, même esprit que la photo
───────────────────────────────── */

/* Section = 100% de la hauteur visible, fond crème, centrage */
#hero {
  height: 100dvh;
  min-height: 500px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 4% 150px;
  position: relative;
  box-sizing: border-box;
}

/* Le cadre violet occupe tout l'espace disponible dans la section */
.hero-frame {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: visible;
  flex: 1;
}

/* L'image couvre tout le cadre */
.hero-frame-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(.92) saturate(.8);
  position: absolute;
  inset: 0;
}

/* Bloc titre : remonté haut sur l'image, tagline intégrée dans le flux */
.hero-name-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -75%);  /* remonté — nom+subtitle+tagline dans le même bloc */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  z-index: 2;
  gap: 0;
}

.hero-name {
  font-family: var(--ff-body);
  font-size: clamp(1.4rem, 5vw, 4.2rem);
  font-weight: 510;
  letter-spacing: .45em;
  color: var(--brown);
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  display: inline-block;
}

/* (EI) collé à droite du nom */
.hero-name-ei {
  font-size: clamp(.5rem, 1.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: .05em;
  vertical-align: baseline;
  opacity: .75;
  margin-left: -0.55em;
  text-transform: none;
}

.nav-logo-ei {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: .7;
  margin-left: -.2em;
}

.hero-subtitle {
  font-family: var(--ff-body);
  font-size: clamp(1.1rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: .55em;
  color: var(--brown);
  text-transform: uppercase;
  line-height: 1.2;
  display: block;
  margin-top: .15em;
}

/* Tagline dans le flux, sous le subtitle — mise en valeur */
.hero-tagline {
  font-family: var(--ff-title);      /* Cormorant Garamond au lieu de Montserrat */
  font-style: italic;
  font-size: clamp(.95rem, 2vw, 1.8rem);   /* plus grande */
  font-weight: 500;
  letter-spacing: .06em;             /* moins serré */
  text-transform: none;              /* plus de majuscules */
  color: var(--brown);
  line-height: 1.5;
  margin-top: 1em;
  white-space: nowrap;               /* 1 ligne desktop */
  /* Fine ligne décorative au-dessus */
  padding-top: .8em;
  border-top: 1px solid rgba(94,63,42,.25);
  width: fit-content;
}

/* Logo circulaire qui déborde en bas, centré sous le cadre */
.hero-logo-circle {
  position: absolute;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(240px, 28vw, 360px);
  height: clamp(240px, 28vw, 360px);
  border-radius: 50%;
  background: rgba(237, 224, 208);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 5;
}

.hero-logo-circle img {
  width: 150%;
  height: 150%;
  object-fit: cover;
  object-position: center;
  /* zoom en pour que le logo (petit au centre du carré crème) remplisse le cercle */
  transform: scale(1.55);
}

/* Anciens éléments hero non utilisés dans ce build — règles supprimées */

/* ─────────────────────────────────
   SECTION BASE
───────────────────────────────── */
section { padding: var(--section-py) 0; }

.container {
  width: 100%; max-width: 1080px;
  margin: 0 auto; padding: 0 var(--container-px);
}

.section-label {
  font-size: .68rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--brown-light); font-weight: 700;
  display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem;
}
.section-label::before,
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--sand); }

.section-title {
  font-family: var(--ff-title); font-style: italic;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: var(--brown); font-weight: 400; text-align: center; margin-bottom: 2.5rem;
}

/* ─────────────────────────────────
   À PROPOS
───────────────────────────────── */
#apropos { background: var(--cream); }

.apropos-grid {
  display: flex; flex-direction: column; gap: 2.5rem;
}

.apropos-img-wrap { display: flex; justify-content: center; }

.portrait-ring {
  width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sand) 0%, #c9ad94 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px rgba(74,46,24,.14), 0 0 0 5px rgba(201,175,151,.35);
  overflow: hidden; flex-shrink: 0;
}
.portrait-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.apropos-text .greeting {
  font-size: 1.1rem; font-weight: 600; color: var(--brown); margin-bottom: 1.2rem;
}
.apropos-divider { width: 40px; height: 2px; background: var(--sand); margin-bottom: 1.2rem; }
.apropos-text p { font-size: .97rem; line-height: 1.95; color: var(--brown-mid); margin-bottom: 1rem; }
.apropos-text p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────
   PRESTATIONS
───────────────────────────────── */
#prestations { background: var(--sand-bg); }

.presta-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}

.presta-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 3px 18px rgba(74,46,24,.07);
  transition: transform .32s, box-shadow .32s;
  display: flex; flex-direction: column;
}
.presta-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(74,46,24,.13); }

.presta-thumb {
  height: 200px; overflow: hidden;
  background: linear-gradient(135deg, #e8d9c8 0%, #d4bfa8 100%);
}
.presta-thumb img { width: 100%; height: 100%; object-fit: cover; }

.presta-body { padding: 1.2rem 1.1rem 1.6rem; flex: 1; }
.presta-name {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brown); font-weight: 700; margin-bottom: .6rem;
}
.presta-desc { font-size: .92rem; line-height: 1.85; color: var(--brown-mid); font-weight: 400; }

/* ─────────────────────────────────
   TARIFS
───────────────────────────────── */
#tarifs { background: var(--cream); }

.tarifs-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  max-width: 760px; margin: 0 auto;
}

.tarif-card {
  background: var(--white); border: 1.5px solid var(--sand-light);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.tarif-card:hover { border-color: var(--brown-light); box-shadow: 0 6px 24px rgba(74,46,24,.09); }

.tarif-info { flex: 1; }
.tarif-name {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brown); font-weight: 700; margin-bottom: .2rem;
}
.tarif-dur { font-size: .78rem; color: var(--brown-light); font-weight: 500; margin-bottom: .5rem; }
.tarif-subs { list-style: none; }
.tarif-subs li {
  font-size: .82rem; color: var(--brown-mid); font-weight: 400; line-height: 1.75;
}
.tarif-subs li::before { content: '— '; color: var(--sand); }
.tarif-price {
  font-family: var(--ff-title); font-size: 2rem;
  color: var(--brown); font-weight: 400; white-space: nowrap;
}

/* ─────────────────────────────────
   FAQ
───────────────────────────────── */
#faq { background: var(--sand-bg); }

.faq-wrap { max-width: 740px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid rgba(201,175,151,.7); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: .8rem; padding: 1.1rem 0;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-q { font-size: .94rem; font-weight: 700; color: var(--brown); flex: 1; }

.faq-icon {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--sand); display: grid; place-items: center;
  transition: transform .3s, background .25s;
  color: var(--brown-light);
  font-size: .9rem; line-height: 1;
  /* Couche GPU pour la rotation — évite l'avertissement "animation non composée" */
  will-change: transform;
}
.faq-icon::after { content: '+'; font-weight: 600; }
details[open] .faq-icon { transform: rotate(45deg); background: var(--sand); }

.faq-a {
  font-size: .92rem; line-height: 1.9; color: var(--brown-mid); font-weight: 400;
  padding-bottom: 1.1rem;
  animation: fadeUp .25s ease;
}

/* ─────────────────────────────────
   CONTACT
───────────────────────────────── */
#contact { background: var(--cream); }

.contact-grid {
  display: flex; flex-direction: column; gap: 3rem;
}

/* ── Colonne gauche ── */
.contact-info {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0;
}

/* Conteneur circulaire du logo — zoom pour que le logo au centre du carré crème remplisse bien le rond */
.contact-logo-wrap {
  width: clamp(180px, 26vw, 270px);
  height: clamp(180px, 26vw, 270px);
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 2rem;
  background: rgba(237, 224, 208);
  flex-shrink: 0;
}

.contact-logo {
  width: 150%;
  height: 150%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.55);
  display: block;
}

/* Rangées Email / Téléphone */
.contact-coords { display: flex; flex-direction: column; gap: .6rem; width: 100%; }
.contact-coord-row {
  display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap;
  justify-content: center;
}
.coord-label {
  font-family: var(--ff-title); font-style: italic;
  font-size: clamp(.95rem, 2.2vw, 1.1rem); font-weight: 400;
  color: var(--brown-mid); white-space: nowrap; min-width: 90px;
}
.coord-value {
  font-family: var(--ff-body);
  font-size: clamp(.78rem, 1.8vw, .88rem); color: var(--text); font-weight: 400;
}
.coord-value a { color: inherit; text-decoration: none; }
.coord-value a:hover, .coord-value a:focus-visible { text-decoration: underline; }

/* ── Colonne droite ── */
.contact-right { display: flex; flex-direction: column; gap: 1.8rem; }

.contact-title {
  font-family: var(--ff-title); font-style: italic;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--brown); font-weight: 400; line-height: 1.1;
  text-align: center;
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-status {
  min-height: 1.2rem;
  font-size: .9rem;
  color: var(--brown-mid);
  margin-top: -.2rem;
}
.form-status-error {
  color: #9a3d2d;
}
.form-status:empty,
.form-status-error:empty {
  display: none;
}
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-label {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brown); font-weight: 700;
}
.form-control {
  background: var(--white); border: 1.5px solid var(--sand-light);
  border-radius: var(--radius); padding: .85rem 1.1rem;
  font-family: var(--ff-body); font-size: .95rem; color: var(--text);
  outline: none; transition: border-color .22s, box-shadow .22s; resize: none;
  width: 100%;
}
.form-control:focus { border-color: var(--brown); box-shadow: 0 0 0 3px rgba(74,46,24,.12); }
.form-control::placeholder { color: #b09880; }

.form-btn {
  align-self: flex-start; padding: .88rem 2.4rem;
  background: var(--brown); color: var(--cream);
  border: none; border-radius: 3px;
  font-family: var(--ff-body); font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  cursor: pointer; transition: background .25s;
  min-height: 44px;
}
.form-btn:hover,
.form-btn:focus-visible { background: var(--brown-mid); }
.form-btn:disabled {
  cursor: wait;
  opacity: .8;
}

/* ─────────────────────────────────
   FOOTER
───────────────────────────────── */
footer {
  background: var(--brown);
  color: rgba(245,241,231,.75);
  padding: 1.8rem var(--container-px);
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center;   /* centré */
  gap: .6rem 2rem;
  width: 100%;
}
.footer-copy { white-space: nowrap; }
.footer-sep { opacity: .35; }
.footer-link { color: rgba(245,241,231,.75); text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

/* ─────────────────────────────────
   ANIMATIONS
───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ─────────────────────────────────
   MOBILE — hero ajustements petits écrans
───────────────────────────────── */
@media (max-width: 480px) {
  #hero { padding: 65px 3% 130px; }

  .hero-name { letter-spacing: .3em; white-space: normal; text-align: center; }
  .hero-subtitle { letter-spacing: .4em; }

  /* Tagline 2 lignes sur mobile */
  .hero-tagline { white-space: normal; }

  .hero-logo-circle { bottom: -110px; width: 220px; height: 220px; }
}

/* ─────────────────────────────────
   TABLETTE ≥ 640px
───────────────────────────────── */
@media (min-width: 640px) {
  :root {
    --section-py: 5rem;
    --container-px: 2rem;
  }

  #hero { padding: 70px 4% 150px; }

  /* Tagline 2 lignes tablette */
  .hero-tagline { white-space: normal; }

  .hero-logo-circle { bottom: -130px; width: 260px; height: 260px; }

  .apropos-grid { gap: 3rem; }
  .portrait-ring { width: 250px; height: 250px; }

  .presta-grid { grid-template-columns: repeat(2, 1fr); }
  .presta-thumb { height: 185px; }

  .tarifs-grid { grid-template-columns: repeat(2, 1fr); }
  .tarif-card.wide { grid-column: span 2; }

  .contact-grid { gap: 3.5rem; }
}

/* ─────────────────────────────────
   DESKTOP ≥ 960px
───────────────────────────────── */
@media (min-width: 960px) {
  :root {
    --section-py: 6.5rem;
    --container-px: 2.5rem;
  }

  /* Nav desktop */
  nav { padding: 1.1rem var(--container-px); }
  .nav-burger { display: none; }
  .nav-links {
    display: flex !important;
    flex-direction: row; gap: 2rem;
    position: static;
    background: none; border: none; box-shadow: none; padding: 0;
    backdrop-filter: none;
  }
  .nav-links a { padding: 0; }

  #hero { padding: 75px 5% 170px; }

  /* (EI) desktop : -4rem compense le grand letter-spacing */
  .hero-name-ei { margin-left: -4rem; }
  /* Tagline 1 seule ligne sur desktop : on masque le <br> */
  .hero-tagline br { display: none; }
  .hero-tagline { white-space: nowrap; }

  .hero-logo-circle { bottom: -160px; width: 320px; height: 320px; }

  /* À Propos desktop */
  .apropos-grid {
    flex-direction: row;
    align-items: center; gap: 5rem;
  }
  .apropos-img-wrap { flex-shrink: 0; }
  .portrait-ring { width: 280px; height: 280px; }

  /* Prestations desktop */
  .presta-grid { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
  .presta-thumb { height: 170px; }

  /* Contact desktop */
  .contact-grid { flex-direction: row; align-items: flex-start; gap: 4rem; }
  .contact-info { flex: 0 0 260px; align-items: center; text-align: center; padding-top: 1rem; }
  .contact-coord-row { justify-content: flex-start; text-align: left; }
  .contact-right { flex: 1; }
  .contact-title { text-align: left; }
}

/* ─────────────────────────────────
   LARGE ≥ 1200px
───────────────────────────────── */
@media (min-width: 1200px) {
  .presta-thumb { height: 185px; }
  #hero { padding: 75px 6% 170px; }
}