/* ═══════════════════════════════════════════════════════
   VIBRE ET MATCHA — style.css
   Polices actives : piles système (→ remplacement woff2 prévu)
   Cormorant Garamond → Georgia, 'Times New Roman', serif
   DM Sans → system-ui, -apple-system, 'Segoe UI', sans-serif
═══════════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  /* Palette naturelle */
  --fond:        #E5DBC8;  /* argile — fond principal */
  --fond-2:      #D6C9B2;  /* bande alternée */
  --encre:       #1A1A18;  /* texte principal, titres — 14:1 sur argile */
  --creme:       #F4F0E8;  /* texte sur fond sombre */

  /* Couleurs par activité — seuls accents du site */
  --ardoise:     #565C63;  /* gris brumeux — matcha — 5,95:1 sur crème ✓ */
  --cuivre:      #6B5744;  /* écorce — handpan — 6,01:1 sur crème ✓ */

  /* Texte secondaire */
  --gris-pierre: #5F5A50;  /* 6,0:1 sur argile ✓ — passer à --encre sur --fond-2 */

  /* Typographie */
  --ff-titre: Georgia, 'Times New Roman', serif;
  --ff-texte: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Espacement */
  --section-py: clamp(6rem, 10vw, 11rem);
  --container:  1280px;

  /* Transitions */
  --t: 420ms ease-out;
}

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

html {
  scroll-behavior: smooth;
  background: var(--fond); /* fallback si body transparent */
}

body {
  background: transparent; /* le fond photographique fixe est derrière */
  color: var(--encre);
  font-family: var(--ff-texte);
  font-size: clamp(1rem, 1.05vw, 1.1rem);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ─── GRAIN DE PAPIER ────────────────────────────────
   Texture légère en SVG turbulence inline — opacité
   volontairement très faible, visible dans la lumière.
   Aucune image externe, aucun CDN.
─────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ─── FOCUS ─── */
:focus-visible {
  outline: 2px solid var(--ardoise); /* 5,84:1 sur argile ✓ */
  outline-offset: 3px;
  border-radius: 1px;
}

/* ─── TYPOGRAPHIE ─── */
h1, h2, h3, .hero__titre, .cta__phrase, .citation {
  font-family: var(--ff-titre);
  font-weight: 400;
  line-height: 1.15;
}

h2 { font-size: clamp(1.9rem, 3.2vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw,   2rem);   }

/* ─── BOUTONS ─── */
.btn {
  display: inline-block;
  padding: .85rem 2.4rem;
  font-family: var(--ff-texte);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}

.btn--sombre {
  background: var(--ardoise);
  color: var(--creme);
  border-color: var(--ardoise);
}
.btn--sombre:hover,
.btn--sombre:focus-visible {
  background: transparent;
  color: var(--ardoise);
}

.btn--clair {
  background: var(--creme);
  color: var(--encre);
  border-color: var(--creme);
}
.btn--clair:hover,
.btn--clair:focus-visible {
  background: transparent;
  color: var(--creme);
}

.btn--discret {
  background: transparent;
  color: var(--gris-pierre);
  border-color: var(--gris-pierre);
  font-size: .78rem;
}
.btn--discret:hover,
.btn--discret:focus-visible {
  color: var(--encre);
  border-color: var(--encre);
}

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1.3rem 2.5rem;
  color: #fff;                        /* texte blanc sur fond transparent */
  transition: background var(--t), color var(--t), box-shadow var(--t);
}

/* Dégradé sombre en haut de page — lisibilité du texte blanc sur photo claire */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  bottom: -140px;                     /* fond permanent, couvre le passage de contenu */
  background: linear-gradient(
    to bottom,
    rgba(26,26,24,.72)  0%,
    rgba(26,26,24,.45) 45%,
    transparent        100%
  );
  z-index: -1;
  pointer-events: none;
  /* Pas de transition — gradient permanent, toujours visible */
}

/* Texte du header : blanc + gras + ombre discrète */
.header__nom,
.nav__link:not(.nav__link--cta),
.header__instagram {
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(0,0,0,.38);
  transition: color var(--t), text-shadow var(--t);
}

/* Barres burger : héritent de currentColor = blanc */
.nav__burger-bar {
  background: currentColor;
}

/* Focus visible sur header transparent */
.header a:focus-visible,
.header button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header toujours transparent — aucun changement au scroll */

/* ─── Layout interne du header ─── */
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.header__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);   /* logo en blanc (comme dans le pied de page) */
}

.header__nom {
  font-family: var(--ff-titre);
  font-size: 1.05rem;
  letter-spacing: .03em;
  white-space: nowrap;
}

/* Nav : s'étire à droite */
.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  list-style: none;          /* supprime les puces */
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--t);
}

.nav__link:not(.nav__link--cta):hover::after,
.nav__link:not(.nav__link--cta):focus-visible::after { width: 100%; }

.nav__link--cta {
  background: var(--ardoise);
  color: var(--creme) !important;
  padding: .55rem 1.3rem;
  transition: background var(--t), color var(--t);
  font-weight: 700;
  text-shadow: none !important;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover,
.nav__link--cta:focus-visible { background: var(--encre); }

/* Icône Instagram */
.header__instagram {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color var(--t);
}
.header__instagram:hover,
.header__instagram:focus-visible { opacity: .75; }

/* Burger — masqué sur desktop */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 300;
}

/* ═══════════════════════════════════════════════════════
   FOND FIXE — couche photographique derrière le contenu
═══════════════════════════════════════════════════════ */
.fond-fixe {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  /* Repli mobile si position:fixed pose problème */
}

.fond-fixe__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.fond-fixe::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  height: 100svh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* laisse apparaître le fond fixe */
}

.hero__contenu {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--fond);
  padding: 2rem;
  max-width: 780px;
}

.hero__sur-titre {
  font-size: clamp(.75rem, 1vw, .9rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, .65);
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .75), 0 1px 3px rgba(0, 0, 0, .6); /* lisibilité sur photos claires */
}

.hero__titre {
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1.05;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .55), 0 1px 8px rgba(0, 0, 0, .35);
}

.hero__sous-titre {
  font-size: clamp(.85rem, 1.3vw, 1.1rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, .78);
  margin-bottom: 2.8rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .75), 0 1px 3px rgba(0, 0, 0, .6); /* lisibilité sur photos claires */
}

/* ═══════════════════════════════════════════════════════
   SECTIONS
   Fond opaque sur chaque section : elles couvrent l'image
   fixe derrière au fil du scroll.
═══════════════════════════════════════════════════════ */
/* ── Voile dégradé pleine largeur — remplace les blocs rectangulaires ── */
.section {
  background: transparent;
  position: relative;
  margin: 0;                          /* bord à bord, aucune marge latérale */
  padding: var(--section-py) clamp(2rem, 8vw, 12rem);
  color: var(--creme);
}

/* Dégradé vertical : transparent → encre 65 % → transparent */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent        0%,
    rgba(26,26,24,.65) 22%,
    rgba(26,26,24,.65) 78%,
    transparent        100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Tout le contenu passe devant le voile */
.section > * {
  position: relative;
  z-index: 1;
}

/* Ombre portée très discrète — décolle le texte crème sans effet visible */
.section .section__titre {
  color: var(--creme);
  text-shadow: 0 1px 18px rgba(0,0,0,.40);
}
.section p,
.section blockquote {
  text-shadow: 0 1px 10px rgba(0,0,0,.30);
}

/* Texte secondaire crème dans les sections voilées */
.section .section__accroche,
.section .section__note {
  color: rgba(244,240,232,.82);
}

/* Section duo : photos directement sur le fond fixe, pas de voile */
.section--duo {
  background: transparent;
  padding-top: clamp(4rem, 7vw, 8rem);
  padding-bottom: clamp(4rem, 7vw, 8rem);
}
.section--duo::before { display: none; }

/* Citation sur fond voilé : crème au lieu de gris-pierre */
.section .citation {
  color: rgba(244,240,232,.82);
  border-left-color: var(--cuivre);
}

/* Lien discret sur fond voilé : crème pâle */
.section .btn--discret {
  color: rgba(244,240,232,.65);
  border-color: rgba(244,240,232,.35);
}
.section .btn--discret:hover,
.section .btn--discret:focus-visible {
  color: var(--creme);
  border-color: var(--creme);
}

/* Container */
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
}

/* Split : texte + image côte à côte */
.section__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

/* Inversion gauche/droite */
.section__inner--inverse { direction: rtl; }
.section__inner--inverse > * { direction: ltr; }

/* Centré */
.section__inner--centre {
  text-align: center;
  max-width: 680px;
}

/* ─── Titre de section ─── */
.section__titre {
  color: var(--ardoise);
  margin-bottom: 1.6rem;
}

/* ─── Accroche ─── */
.section__accroche {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--gris-pierre);
  line-height: 1.85;
  margin-bottom: 2.2rem;
}

/* ─── Note ─── */
.section__note {
  font-size: .88rem;
  color: var(--gris-pierre);
  font-style: italic;
  margin-bottom: 2rem;
}

/* ─── Image de section ─── */
.section__image img {
  width: 100%;
  height: clamp(360px, 48vw, 580px);
  object-fit: cover;
}

/* ─── Détails chiffrés ─── */
.details {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(26, 26, 24, .1);
  border-bottom: 1px solid rgba(26, 26, 24, .1);
}

.detail {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.detail__chiffre {
  font-family: var(--ff-titre);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  line-height: 1;
  color: var(--ardoise);
}

.detail__label {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris-pierre);
}

/* ─── Citation ─── */
.citation {
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  font-style: italic;
  color: var(--gris-pierre);
  line-height: 1.65;
  margin: 1.8rem auto 2.8rem;
  max-width: 580px;
  padding-left: 1.5rem;
  border-left: 2px solid var(--cuivre);
  text-align: left;
}

/* ─── CTA finale ─── */
.cta__phrase {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--creme);
  margin-bottom: 2.2rem;
  letter-spacing: .01em;
}

.cta__tel {
  margin-top: 1.8rem;
  font-size: .9rem;
  color: rgba(244, 240, 232, .65);
}

.cta__tel-lien {
  color: var(--creme);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ═══════════════════════════════════════════════════════
   RESPIRATION — bande photo sans texte
═══════════════════════════════════════════════════════ */
.respiration {
  overflow: hidden;
  height: clamp(180px, 28vw, 380px);
}

.respiration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ═══════════════════════════════════════════════════════
   DUO — Matcha + Handpan côte à côte
   Symétrie stricte : images carrées, cartes identiques,
   même chevauchement en miroir.
═══════════════════════════════════════════════════════ */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3.5rem, 7vw, 9rem); /* écart généreux entre les deux blocs */
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
}

.duo__item {
  display: flex;
  flex-direction: column;
}

/* Image carrée — même hauteur garantie pour les deux blocs */
.duo__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
  /* Fondu radial : la photo se fond dans le fond sans bord net */
  -webkit-mask-image: radial-gradient(ellipse 88% 84% at 50% 44%, black 42%, transparent 82%);
  mask-image:         radial-gradient(ellipse 88% 84% at 50% 44%, black 42%, transparent 82%);
}

/* Base carte : layout et chevauchement, sans couleur */
.duo__carte {
  color: var(--creme);
  padding: 2rem 2rem 2.5rem;
  position: relative;
  z-index: 1;
  width: 90%;
  margin-top: -4rem;
}

/* Ardoise pour le matcha — carte vers la droite */
.duo__item:first-child .duo__carte {
  background: var(--ardoise);
  align-self: center;
}

/* Cuivre pour le handpan — miroir strict */
.duo__item:last-child .duo__carte {
  background: var(--cuivre);
  align-self: center;
}

.duo__titre {
  font-family: var(--ff-titre);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 400;
  color: var(--creme);
  line-height: 1.15;
  margin-bottom: .9rem;
}

.duo__accroche {
  font-size: clamp(.88rem, 1vw, .96rem);
  color: rgba(244, 240, 232, .78);
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

/* Ligne de détails discrète sous la carte matcha */
.duo__stats {
  font-size: .75rem;
  letter-spacing: .07em;
  color: var(--encre);          /* encre sur crème semi-opaque = 15:1 ✓ */
  text-transform: uppercase;
  margin-top: 1rem;             /* écart propre sous la carte */
  width: 90%;
  align-self: center;
  /* Badge semi-opaque pour lisibilité sur la photo */
  background: rgba(244, 240, 232, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: .55rem 1rem;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--encre);
  color: rgba(244, 240, 232, .75);
  padding: 5rem clamp(1.5rem, 5vw, 3rem) 2.5rem;
  position: relative;
  margin: 0 clamp(1rem, 5vw, 5rem) clamp(2.5rem, 5vw, 5rem);
}

@media (min-width: 1380px) {
  .footer {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(2.5rem, 5vw, 5rem);
  }
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 2rem 4rem;
  align-items: start;
}

/* Logo footer : inversé blanc */
.footer__logo img {
  filter: brightness(0) invert(1);
  opacity: .75;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Nav footer */
.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2rem;
  row-gap: .5rem;
}

.footer__nav a {
  font-size: .82rem;
  letter-spacing: .06em;
  color: rgba(244, 240, 232, .6);
  transition: color var(--t);
}
.footer__nav a:hover,
.footer__nav a:focus-visible { color: var(--fond); }

/* Contact footer */
.footer__contact {
  font-size: .88rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer__tel {
  color: var(--creme);
  transition: color var(--t);
}
.footer__tel:hover,
.footer__tel:focus-visible { color: rgba(244, 240, 232, .7); }

.footer__email-nojs a,
.footer__email-js a {
  color: rgba(244, 240, 232, .7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Réseaux */
.footer__reseaux {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__reseaux a {
  color: rgba(244, 240, 232, .55);
  display: flex;
  align-items: center;
  transition: color var(--t);
}
.footer__reseaux a:hover,
.footer__reseaux a:focus-visible { color: var(--fond); }

/* Barre légale */
.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 240, 232, .1);
  margin-top: .5rem;
}

.footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}

.footer__legal a {
  font-size: .78rem;
  color: rgba(244, 240, 232, .4);
  transition: color var(--t);
}
.footer__legal a:hover,
.footer__legal a:focus-visible { color: var(--fond); }

.footer__copyright {
  font-size: .78rem;
  color: rgba(244, 240, 232, .3);
  margin-left: auto;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS AU SCROLL
═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 650ms ease-out, transform 650ms ease-out;
}

.reveal--droite { transform: translateX(2rem); }
.reveal--gauche  { transform: translateX(-2rem); }

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Pas d'animation si l'utilisateur le préfère */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--droite,
  .reveal--gauche {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

/* ─── Tablette / Mobile large ─── */
@media (max-width: 960px) {

  /* Menu : plein écran */
  .nav__list {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--fond);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    z-index: 250;
  }

  .nav__list.ouvert { display: flex; }

  .nav__link {
    font-size: 1.3rem;
    letter-spacing: .08em;
  }

  .nav__link--cta {
    padding: .75rem 2rem;
    font-size: 1rem;
  }

  .nav__burger { display: flex; }

  .header__instagram { display: none; } /* présent dans le footer */
}

/* ─── Mobile ─── */
@media (max-width: 680px) {

  /* Split devient empilé */
  .section__inner--split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Annuler l'inversion RTL */
  .section__inner--inverse { direction: ltr; }

  /* L'image passe au-dessus du texte sur mobile */
  .section__image { order: -1; }

  /* Détails en colonne si peu de place */
  .details { gap: 1.5rem; }

  /* .section : margin:0 permanent, pas d'override mobile */
  .footer  { margin: 0 .75rem 1.5rem; }

  .duo { grid-template-columns: 1fr; gap: 3rem; }

  .duo__carte,
  .duo__item:first-child .duo__carte,
  .duo__item:last-child .duo__carte {
    align-self: auto;
    width: 100%;
    margin-top: 0;
  }

  .duo__stats { width: 100%; align-self: auto; }

  /* Footer : tout en colonne */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__copyright { margin-left: 0; }

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
}

/* ─── Coordonnées en clair + bouton SMS (contact.html) ──────────────── */
.contact-coords { margin-top: .75rem; font-size: .88rem; }
.contact-coords__ligne { margin: .3rem 0; opacity: .8; }
.contact-coords__lien { color: inherit; text-underline-offset: 3px; }
.contact-coords__sms { margin-top: .6rem; }
.sms-only { display: none; }
@media (max-width: 767px) { .sms-only { display: inline-flex; } }
