/* ==========================================================
   SIMPLY GOSPEL — Système de design
   Bleu nuit, or, crème. Angles droits, lenteur, retenue.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Work+Sans:wght@300;400;500&display=swap');

:root {
  /* Couleurs */
  --ink: #12141c;          /* fond principal */
  --surface: #1a1d27;      /* fond secondaire, champs */
  --line: #2a2d38;         /* filets et bordures */
  --gold: #c2a25f;         /* réservé aux actions et aux détails */
  --gold-soft: #d4b980;
  --cream: #f2efe6;        /* titres et texte fort */
  --muted: #a3a5b0;        /* texte courant */

  /* Typographie */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Espacements */
  --s-1: 0.75rem;
  --s-2: 1.5rem;
  --s-3: 3rem;
  --s-4: 6rem;
  --s-5: 10rem;

  /* Largeurs */
  --w-text: 38rem;
  --w-page: 72rem;

  --header-h: 5.5rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.55rem; font-weight: 500; }

p {
  margin: 0;
  max-width: var(--w-text);
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Mise en page ---------- */

main {
  padding-top: var(--header-h);
}

.page-home main {
  padding-top: 0;
}

.section {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: var(--s-4) var(--s-3);
}

.section-head {
  max-width: var(--w-text);
  margin-bottom: var(--s-3);
}

.section-head p {
  margin-top: var(--s-1);
}

.section-head.is-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-title {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: var(--s-4) var(--s-3) var(--s-3);
}

.page-title p {
  margin-top: var(--s-2);
  font-size: 1.1rem;
}

/* ---------- Boutons et liens ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 1rem 2.4rem;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.btn:hover {
  background: var(--gold);
  color: var(--ink);
}

.btn-solid {
  background: var(--gold);
  color: var(--ink);
}

.btn-solid:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.link {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.4s var(--ease);
}

.link:hover {
  border-color: var(--gold);
}

/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 0 var(--s-3);
  background: rgba(18, 20, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.6s var(--ease), border-color 0.6s var(--ease);
}

/* Sur l'accueil, le header est transparent tant qu'on est sur le hero */
.page-home .site-header:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.6rem;
}

.nav a {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.5rem 0;
  transition: color 0.4s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--cream);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav .btn {
  padding: 0.7rem 1.6rem;
  color: var(--cream);
}

.nav .btn::after {
  display: none;
}

.nav .btn:hover {
  color: var(--ink);
}

/* Bouton burger (mobile) */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}

.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child  { top: 26px; }

.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child  { top: 22px; transform: rotate(-45deg); }

/* ==========================================================
   ACCUEIL — HERO
   ========================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-image 2.4s var(--ease) both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(18, 20, 28, 0.55) 45%, rgba(18, 20, 28, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 var(--s-3) var(--s-4);
}

/* L'élément signature du site : le nom en très grand */
.hero-title {
  font-size: clamp(3.6rem, 11vw, 9rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  animation: hero-rise 1.6s var(--ease) 0.3s both;
}

.hero-content p {
  margin-top: var(--s-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--cream);
  animation: hero-rise 1.6s var(--ease) 0.6s both;
}

.hero-content .btn {
  margin-top: var(--s-3);
  animation: hero-rise 1.6s var(--ease) 0.9s both;
}

@keyframes hero-image {
  from { transform: scale(1.06); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes hero-rise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ---------- Accueil : intention ---------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  align-items: start;
}

.intro blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.3;
  color: var(--cream);
}

.intro-text p + p {
  margin-top: var(--s-2);
}

.intro-text .link {
  display: inline-block;
  margin-top: var(--s-3);
}

/* ---------- Accueil : cartes ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}

.card {
  display: block;
}

.card-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.03);
}

.card h3 {
  margin-top: var(--s-2);
}

.card p {
  margin-top: 0.4rem;
}

.card .link {
  display: inline-block;
  margin-top: var(--s-1);
  font-size: 0.9rem;
}

.card:hover .link {
  border-color: var(--gold);
}

/* Apparition des cartes : une seule fois, lente */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal:nth-child(2) { transition-delay: 0.15s; }
.js .reveal:nth-child(3) { transition-delay: 0.3s; }

/* ---------- Bandeau d'appel final ---------- */

.closing {
  text-align: center;
  border-top: 1px solid var(--line);
  padding: var(--s-5) var(--s-3);
}

.closing h2 {
  max-width: 20ch;
  margin: 0 auto;
}

.closing p {
  margin: var(--s-2) auto 0;
}

.closing .btn {
  margin-top: var(--s-3);
}

/* ==========================================================
   À PROPOS
   ========================================================== */

.feature-image {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.feature-image img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.story {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--s-4);
  align-items: center;
}

.story + .story {
  margin-top: var(--s-4);
}

.story.is-reversed .story-media {
  order: 2;
}

.story-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: 0.3rem;
}

.story-text p:not(.story-role) {
  margin-top: var(--s-2);
}

/* ---------- Témoignages ---------- */

.testimonials {
  border-top: 1px solid var(--line);
}

/* Carrousel d'avis : 3 cartes visibles sur ordinateur, 2 sur tablette, 1 sur mobile */
.review-carousel {
  --per-view: 3;
  --gap: var(--s-2);
  outline-offset: 8px;
}

.review-viewport {
  overflow: hidden;
}

.review-track {
  display: flex;
  gap: var(--gap);
  transition: transform 1s var(--ease);
  will-change: transform;
}

.review-card {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  display: flex;
  flex-direction: column;
  padding: var(--s-3) var(--s-2) var(--s-2);
  border: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--surface), var(--ink));
  transition: border-color 0.6s var(--ease);
}

.review-card:hover {
  border-color: rgba(194, 162, 95, 0.5);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1);
}

.review-stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
}

.review-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.review-title {
  margin-top: var(--s-2);
  font-size: 1.5rem;
  line-height: 1.25;
}

.review-text {
  max-width: none;
  margin-top: var(--s-1);
  font-size: 0.98rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.review-card.is-open .review-text {
  -webkit-line-clamp: unset;
  display: block;
}

.review-more {
  align-self: flex-start;
  margin-top: 0.6rem;
  padding: 0.3rem 0;
  min-height: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  cursor: pointer;
  transition: border-color 0.4s var(--ease);
}

.review-more:hover {
  background: none;
  border-color: var(--gold);
}

.review-name {
  margin-top: auto !important;
}

.review-card > .review-text,
.review-card > .review-more {
  margin-bottom: var(--s-2);
}

.review-name {
  margin-top: var(--s-2);
  padding-top: var(--s-1);
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
}

.review-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.review-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.4s var(--ease);
}

.review-nav svg {
  width: 24px;
  height: 12px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 1;
  transition: transform 0.5s var(--ease);
}

.review-nav:hover {
  background: none;
  border-color: var(--gold);
}

.review-prev:hover svg { transform: translateX(-3px); }
.review-next:hover svg { transform: translateX(3px); }

/* Points : un trait qui s'allonge sur l'avis actif, avec la barre de progression */
.review-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-dot {
  position: relative;
  width: 14px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  transition: width 0.6s var(--ease);
}

.review-dot::before,
.review-dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
}

.review-dot::before {
  width: 100%;
  background: var(--line);
  transition: background-color 0.4s var(--ease);
}

.review-dot:hover::before {
  background: var(--muted);
}

.review-dot:hover {
  background: none;
}

.review-dot.is-active {
  width: 48px;
}

.review-dot::after {
  width: 0;
  background: var(--gold);
}

.review-dot.is-active::after {
  animation: review-progress var(--autoplay, 7s) linear forwards;
}

.review-carousel.is-paused .review-dot.is-active::after {
  animation-play-state: paused;
}

@keyframes review-progress {
  from { width: 0; }
  to   { width: 100%; }
}

.quotes-source {
  margin-top: var(--s-3);
  font-size: 0.95rem;
}

/* ==========================================================
   PRESTATIONS
   ========================================================== */

.events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3) var(--s-2);
}

.event-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.event:hover .event-media img {
  transform: scale(1.03);
}

.event h3 {
  margin-top: var(--s-2);
}

.event p {
  margin-top: 0.3rem;
}

.cities {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.cities p {
  margin: 0 auto;
  max-width: 44rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  color: var(--cream);
}

/* ---------- Vidéos ---------- */

.videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3) var(--s-2);
}

.video:first-child {
  grid-column: 1 / -1;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.8s var(--ease), transform 1.2s var(--ease);
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
}

.video-play span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--cream);
  border-radius: 50%;
  transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}

.video-play svg {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  fill: var(--cream);
  transition: fill 0.5s var(--ease);
}

.video-frame:hover .video-thumb {
  opacity: 0.9;
  transform: scale(1.02);
}

.video-frame:hover .video-play span {
  background: var(--gold);
  border-color: var(--gold);
}

.video-frame:hover .video-play svg {
  fill: var(--ink);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video h3 {
  margin-top: var(--s-2);
  font-size: 1.35rem;
}

.videos-more {
  margin-top: var(--s-3);
}

/* ==========================================================
   CONTACT
   ========================================================== */

.contact {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: var(--s-4);
  align-items: start;
}

.contact-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--s-2));
  padding-top: var(--s-2);
  border-top: 1px solid var(--gold);
}

.contact-aside h2 {
  font-size: 1.6rem;
  font-weight: 500;
}

.contact-aside dl {
  margin: var(--s-2) 0 0;
}

.contact-aside dt {
  font-size: 0.9rem;
  margin-top: var(--s-2);
}

.contact-aside dd {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
}

.contact-aside dd a:hover {
  color: var(--gold);
}

/* ==========================================================
   NOUS REJOINDRE
   ========================================================== */

.join {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  align-items: center;
}

.join-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.join-text p + p {
  margin-top: var(--s-2);
}

.join-text .btn {
  margin-top: var(--s-3);
}

/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s-4) var(--s-3) var(--s-3);
}

.footer-inner {
  max-width: var(--w-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-3);
}

.footer-brand .brand {
  font-size: 1.8rem;
}

.footer-brand p {
  margin-top: var(--s-1);
  font-size: 0.95rem;
}

.footer-col h2 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: var(--s-1);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.4rem;
}

.footer-col a {
  font-size: 0.95rem;
  transition: color 0.4s var(--ease);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: var(--w-page);
  margin: var(--s-4) auto 0;
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 960px) {
  :root {
    --s-3: 2rem;
    --s-4: 4.5rem;
    --s-5: 6rem;
  }

  .intro,
  .story,
  .contact,
  .join {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }

  .story.is-reversed .story-media {
    order: 0;
  }

  .contact-aside {
    position: static;
  }

  .review-carousel {
    --per-view: 2;
  }

  .cards,
  .events {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-2);
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
  }

  .nav a {
    font-family: var(--serif);
    font-size: 2rem;
    letter-spacing: 0;
    color: var(--cream);
  }

  .nav a::after {
    display: none;
  }

  .nav .btn {
    font-family: var(--sans);
    font-size: 0.9rem;
    margin-top: var(--s-2);
  }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
  }

  .nav-open {
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  :root {
    --s-3: 1.5rem;
    --header-h: 4.5rem;
  }

  .brand {
    font-size: 1.3rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .hero {
    height: 88vh;
  }

  .cards,
  .events,
  .videos {
    grid-template-columns: 1fr;
  }

  .card-media {
    aspect-ratio: 4 / 3;
  }

  .review-carousel {
    --per-view: 1;
  }

  .review-dot.is-active {
    width: 32px;
  }

  .feature-image img {
    aspect-ratio: 4 / 3;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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

  html {
    scroll-behavior: auto;
  }

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