/* =========================================================
   So'Far So'Good — Bohème Méditerranéen
   Crème · terracotta · sauge — serif EB Garamond + Mulish
   ========================================================= */

:root {
  /* Couleurs */
  --paper:      #f7f1e6;
  --paper-2:    #efe5d4;
  --paper-3:    #e7dac5;
  --ink:        #322820;
  --ink-soft:   #6f6052;
  --ink-faint:  #9a8b79;
  --line:       rgba(50, 40, 32, 0.13);

  --terra:      #bd6a4c;
  --terra-deep: #a4553b;
  --terra-soft: #d2906f;
  --sage:       #82886a;
  --sage-deep:  #6b7156;
  --clay:       #d9b89a;

  /* Typo */
  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Mulish", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Échelle fluide */
  --step--1: clamp(0.84rem, 0.8rem + 0.18vw, 0.95rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.7rem, 1.4rem + 1.2vw, 2.6rem);
  --step-3:  clamp(2.3rem, 1.8rem + 2.4vw, 4rem);
  --step-4:  clamp(3.2rem, 2rem + 6vw, 8rem);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--terra); color: var(--paper); padding: 0.6rem 1.2rem; border-radius: 0 0 12px 12px;
  font-weight: 700; z-index: 200; transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

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

.eyebrow {
  font-size: var(--step--1); letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--terra-deep); font-weight: 700; margin-bottom: 1.1rem;
}
.eyebrow--center { text-align: center; }
.sprig { color: var(--sage); font-size: 1.1em; margin-right: 0.3em; }

.ital { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--terra); }

.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--paper-2); }

.section__head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__title {
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-3);
  line-height: 1.02; letter-spacing: 0.005em;
}
.section__sub { color: var(--ink-soft); margin-top: 0.9rem; font-size: var(--step-1); line-height: 1.45; font-family: var(--font-display); font-style: italic; }

.lead { font-size: var(--step-1); line-height: 1.55; color: #483c30; }
p + p { margin-top: 1rem; }

.grid-2 { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 0.85fr 1.15fr; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.8rem; border-radius: 100px;
  font-weight: 700; font-size: var(--step--1); letter-spacing: 0.03em;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn--solid { background: var(--terra); color: var(--paper); box-shadow: 0 10px 26px -14px rgba(164, 85, 59, 0.9); }
.btn--solid:hover { background: var(--terra-deep); transform: translateY(-2px); }
.btn--ghost { border-color: var(--terra); color: var(--terra-deep); }
.btn--ghost:hover { background: rgba(189, 106, 76, 0.08); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }
.btn__play { font-size: 0.7em; }

/* En-tête */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(247, 241, 230, 0.82);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: clamp(0.9rem, 2vw, 1.2rem); }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--paper);
  background: var(--terra);
}
.brand__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.01em; }

.nav__list { display: none; gap: clamp(1.2rem, 2.5vw, 2.1rem); }
.nav__list a { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); position: relative; padding-block: 0.3rem; transition: color 0.25s var(--ease); }
.nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--terra); transition: width 0.3s var(--ease); }
.nav__list a:hover, .nav__list a.is-active { color: var(--ink); }
.nav__list a.is-active::after { width: 100%; }
.header__cta { display: none; }

@media (min-width: 940px) {
  .nav__list, .header__cta { display: flex; }
}

.burger { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; background: none; border: none; }
.burger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--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); }
@media (min-width: 940px) { .burger { display: none; } }

.mobile-menu { position: fixed; inset: 0; z-index: 90; background: rgba(247, 241, 230, 0.98); backdrop-filter: blur(6px); display: grid; place-items: center; opacity: 0; transition: opacity 0.35s var(--ease); }
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu ul { display: grid; gap: 0.4rem; text-align: center; margin-bottom: 2rem; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem); color: var(--ink); }
.mobile-menu .btn { margin-inline: auto; }

/* Hero — photo de groupe en fond, fondue dans le crème (un peu plus compact que la V1) */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 74svh; display: grid; align-items: center; text-align: center;
  padding-top: clamp(6rem, 12vw, 8rem); padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 9%; z-index: -2; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 56% at 50% 46%, rgba(247, 241, 230, 0.74), rgba(247, 241, 230, 0.34) 66%, transparent 100%),
    linear-gradient(180deg, rgba(247, 241, 230, 0.82) 0%, rgba(247, 241, 230, 0.46) 30%, rgba(247, 241, 230, 0.58) 64%, rgba(247, 241, 230, 0.95) 100%);
}
.hero__inner { max-width: 56rem; margin-inline: auto; }
.hero__title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-4); line-height: 0.98; letter-spacing: 0.005em; margin-block: 0.4rem 1.3rem; }
.hero__title .ital { font-weight: 500; }
.hero__lead { font-size: var(--step-1); color: #443629; max-width: 40ch; margin-inline: auto; line-height: 1.55; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--terra); border-radius: 20px; display: grid; justify-items: center; opacity: 0.7; }
.hero__scroll span { width: 3px; height: 8px; background: var(--terra); border-radius: 3px; margin-top: 7px; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } }

/* Intro / stats */
.section--intro { padding-top: clamp(5rem, 10vw, 8rem); }
.intro__text p { color: #4a3d31; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(1.6rem, 3vw, 2.4rem) 1rem; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
@media (max-width: 719px) { .stat:nth-child(3)::before, .stat:nth-child(odd)::before { display: none; } }
.stat__num { display: block; font-family: var(--font-display); font-style: italic; font-size: var(--step-2); color: var(--terra); line-height: 1; }
.stat__label { display: block; margin-top: 0.6rem; font-size: var(--step--1); color: var(--ink-soft); letter-spacing: 0.03em; }

/* Cartes prestations */
.cards { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2vw, 1.4rem); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(auto-fit, minmax(190px, 220px)); justify-content: center; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(5, 1fr); } .cards .card { padding: clamp(1.3rem, 1.6vw, 1.8rem); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.7rem, 2.5vw, 2.1rem); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.section--tint .card { background: var(--paper); }
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -34px rgba(50, 40, 32, 0.45); border-color: var(--clay); }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.2rem;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: rgba(189, 106, 76, 0.12); color: var(--terra); font-size: 1.2rem;
}
.card__title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }

/* Répertoire */
.grid-2--rep { align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.tags li { padding: 0.45rem 1.1rem; border: 1px solid var(--terra); border-radius: 100px; font-size: var(--step--1); color: var(--terra-deep); font-weight: 600; }

.artists { border-left: 2px solid var(--clay); padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.artists__label { font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-bottom: 1rem; }
.artists__list { display: grid; gap: 0.55rem; }
.artists__list li { font-family: var(--font-display); font-size: var(--step-1); font-weight: 400; color: var(--ink); }
.artists__list li:last-child { font-family: var(--font-body); font-size: var(--step--1); font-style: italic; color: var(--ink-soft); margin-top: 0.4rem; }

/* Vidéo */
.video { max-width: 920px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -45px rgba(50,40,32,0.6); }
.video__facade {
  width: 100%; height: 100%; display: grid; place-content: center; gap: 1rem; justify-items: center;
  background: linear-gradient(rgba(50,40,32,0.18), rgba(50,40,32,0.42)), url("../img/video.webp") center / cover no-repeat;
  border: none; color: var(--paper); transition: filter 0.4s var(--ease);
}
.video__facade:hover { filter: brightness(1.06); }
.video__play { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--terra); color: var(--paper); font-size: 1.4rem; padding-left: 5px; box-shadow: 0 14px 36px -10px rgba(164,85,59,0.7); }
.video__hint { font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* Membres — portraits en arche */
.members { display: grid; grid-template-columns: 1fr; gap: clamp(1.8rem, 4vw, 3rem) clamp(1rem, 2vw, 1.6rem); }
@media (min-width: 560px) { .members { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .members { grid-template-columns: repeat(3, 1fr); } }
.member { text-align: center; }
.member__photo {
  margin: 0 auto 1.2rem; max-width: 320px; overflow: hidden;
  border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px;
  border: 1px solid var(--line);
}
.member__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; transition: transform 0.6s var(--ease); }
.member:hover .member__photo img { transform: scale(1.04); }
.member__name { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.1; }
.member__role { color: var(--terra-deep); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.3rem; margin-bottom: 0.8rem; }
.member__bio { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; max-width: 34ch; margin-inline: auto; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.7rem, 1.5vw, 1rem); grid-auto-rows: 200px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; } }
.gallery__item { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--paper-3); }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item::after {
  content: attr(data-label); position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.4rem 1rem 0.9rem; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--paper);
  background: linear-gradient(to top, rgba(40, 30, 22, 0.78), transparent);
}
.gallery__item:hover img { transform: scale(1.06); }
@media (min-width: 760px) {
  .gallery__item--tall { grid-row: span 2; }
  .gallery__item--wide { grid-column: span 2; }
}

/* Références */
.section--refs { padding-block: clamp(3rem, 6vw, 4.5rem); }
.refs { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.2rem, 4vw, 3rem); margin-top: 1.8rem; }
.refs li { font-family: var(--font-display); font-size: var(--step-1); font-weight: 400; color: var(--ink-soft); font-style: italic; }

/* Avis */
.testimonial { max-width: 760px; margin-inline: auto; text-align: center; position: relative; padding-top: 1rem; }
.testimonial__quote { font-family: var(--font-display); font-size: 6rem; line-height: 0.4; color: var(--clay); display: block; height: 2.2rem; }
.testimonial p { font-family: var(--font-display); font-size: var(--step-2); font-style: italic; font-weight: 400; line-height: 1.35; color: var(--ink); }
.testimonial footer { margin-top: 1.6rem; display: flex; flex-direction: column; align-items: center; }
.testimonial cite { font-style: normal; color: var(--terra-deep); font-weight: 700; letter-spacing: 0.02em; }
.testimonial footer span { font-size: var(--step--1); color: var(--ink-soft); }

/* Contact */
.grid-2--contact { align-items: start; }
@media (min-width: 820px) { .grid-2--contact { grid-template-columns: 1fr 1fr; } }
.contact__direct { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact__direct li { display: grid; gap: 0.15rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.contact__k { font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.contact__direct a { color: var(--ink); font-size: var(--step-1); transition: color 0.25s var(--ease); }
.contact__direct a:hover { color: var(--terra); }
.socials { display: flex; gap: 1.2rem; margin-top: 1.8rem; }
.socials a { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); border-bottom: 1.5px solid transparent; padding-bottom: 2px; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.socials a:hover { color: var(--terra); border-color: var(--terra); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; box-shadow: 0 26px 50px -40px rgba(50,40,32,0.5); }
.form__grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.form__row { display: grid; gap: 0.45rem; }
.form label { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.03em; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  width: 100%; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; color: var(--ink); font: inherit; font-size: var(--step--1);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--terra); background: var(--paper); box-shadow: 0 0 0 3px rgba(189,106,76,0.14); }
.form textarea { resize: vertical; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--terra) 50%), linear-gradient(135deg, var(--terra) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form__note { font-size: var(--step--1); color: var(--terra-deep); min-height: 1.2em; font-weight: 600; }
.form__note.is-error { color: #b04a3a; }

/* Pied de page */
.site-footer { background: var(--paper-3); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__inner { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; } }
.footer__brand .brand__mark { margin-bottom: 0.8rem; }
.footer__name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.footer__tag { color: var(--ink-soft); font-size: var(--step--1); }
.footer__nav { display: grid; gap: 0.6rem; align-content: start; }
.footer__nav a, .footer__contact a { color: var(--ink-soft); font-size: var(--step--1); transition: color 0.25s var(--ease); }
.footer__nav a:hover, .footer__contact a:hover { color: var(--terra); }
.footer__contact { display: grid; gap: 0.6rem; align-content: start; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-block: 1.6rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: var(--step--1); }

/* Révélation au scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
