@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');

:root {
  --ink: #f2eee7;
  --muted: #aaa59d;
  --paper: #0b0b0b;
  --soft: #141414;
  --accent: #c7a96b;
  --accent-dark: #a88952;
  --line: #2c2c2c;
  --white: #f7f4ee;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: auto;
}


/* =========================
   HEADER
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-subtitle {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}

.brand-place {
  font-size: 0.68rem;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.77rem;
  font-weight: 600;
}

.main-nav a {
  padding: 8px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.2s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px;
  background: var(--ink);
}


/* =========================
   HERO
   ========================= */

.page-hero {
  min-height: 200px;
  position: relative;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #111111;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(0, 0, 0, 0.88),
      rgba(0, 0, 0, 0.35)
    ),
    url("images/vocalys-placeholder.svg") center / cover;
}

.page-hero .container {
  position: relative;
  color: #fff;
  padding: 80px 0 65px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  font: 500 clamp(3.2rem, 7vw, 6rem) / 1 "Playfair Display", serif;
  margin: 0 0 12px;
}

h2 {
  font: 500 clamp(2.3rem, 4.5vw, 3.7rem) / 1.1 "Playfair Display", serif;
  margin: 0 0 24px;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.page-intro {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0;
}


/* =========================
   SECTIONS
   ========================= */

.section {
  padding: 90px 0;
}

.soft {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.text {
  max-width: 650px;
  color: #c2bfba;
}

.text p {
  margin-top: 0;
  margin-bottom: 20px;
}


/* =========================
   BUTTONS
   ========================= */

.button {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent-dark);
  color: #0b0b0b;
  border: 1px solid var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.button:hover {
  background: #d0b477;
}

.button-light {
  background: #f2eee7;
  color: var(--accent-dark);
  border-color: #0b0b0b;
}

.text-link {
  color: var(--accent-dark);
  font-size: 0.83rem;
  font-weight: 700;
}


/* =========================
   PROFIL
   ========================= */

/*
   La classe .profile n'est plus une grille.
   Elle sert ici de conteneur pour permettre à la
   photo de flotter à gauche et au texte de l'envelopper.
*/

.profile {
  display: block;
}

.pianiste-photo {
  float: left;
  width: 280px;
  height: auto;
  margin: 0 35px 20px 0;
  border-radius: 4px;
  display: block;
}

.pianiste-text {
  display: block;
  color: #c2bfba;
}

.pianiste-text p {
  margin-top: 0;
  margin-bottom: 20px;
}

/*
   Le titre reste correctement placé à côté
   de la photo au début du texte.
*/

.pianiste-text h2 {
  color: var(--ink);
}

/*
   Le conteneur reprend sa hauteur complète
   après le flottement de la photo.
*/

.profile::after {
  content: "";
  display: table;
  clear: both;
}


/* Ancien système de profil conservé pour les autres pages */

.profile-image {
  min-height: 420px;
  background: #181818;
}

.placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  color: #77736c;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.profile.reverse .profile-image {
  order: 2;
}


/* =========================
   CARDS
   ========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
  min-height: 230px;
}

.card-number {
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.card h3 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 1.7rem;
  margin-top: 22px;
}

.card p {
  color: var(--muted);
}


/* =========================
   CONCERTS
   ========================= */

.concert-list {
  display: grid;
  gap: 18px;
}

.concert {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 30px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.concert-date {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.day {
  font: 500 3.2rem / 1 "Playfair Display", serif;
}

.month {
  font-size: 0.72rem;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.year {
  font-size: 0.68rem;
  color: var(--muted);
}

.label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  font-weight: 700;
}


/* =========================
   ESPACE CHORISTES
   ========================= */

.access {
  background: var(--accent-dark);
  color: #0b0b0b;
  padding: 45px;
}

.access p {
  color: rgba(242, 238, 231, 0.72);
}


/* =========================
   LIENS
   ========================= */

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.link-card {
  min-height: 150px;
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.link-card span {
  font-size: 0.7rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.link-card strong {
  font: 500 1.4rem "Playfair Display", serif;
}

.link-card small {
  color: var(--muted);
}


/* =========================
   CONTACT
   ========================= */

.contact {
  background: var(--accent-dark);
  color: #0b0b0b;
}

.contact .eyebrow {
  color: rgba(242, 238, 231, 0.62);
}

.contact .split {
  align-items: center;
}

.contact .text {
  color: rgba(255, 255, 255, 0.8);
}


/* =========================
   FOOTER
   ========================= */

footer {
  background: #172122;
  color: #0b0b0b;
  padding: 45px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  align-items: end;
}

footer strong {
  letter-spacing: 0.16em;
}

footer span {
  display: block;
  margin-top: 7px;
  color: #9d9a94;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #d0ccc4;
  font-size: 0.78rem;
}

.copyright {
  color: #77736c;
  font-size: 0.7rem;
}


/* =========================
   TABLETTE
   ========================= */

@media (max-width: 950px) {

  .main-nav {
    gap: 12px;
    font-size: 0.71rem;
  }

  .split {
    gap: 45px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 720px) {

  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 8px;
    border-bottom: 1px solid var(--line);
  }

  .page-hero {
    min-height: 330px;
  }

  .page-hero .container {
    padding: 60px 0 45px;
  }

  .section {
    padding: 65px 0;
  }

  .split,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  /*
     Sur mobile, la photo ne flotte plus :
     elle se place au-dessus du texte.
  */

  .pianiste-photo {
    float: none;
    width: min(100%, 320px);
    margin: 0 auto 30px;
  }

  .profile-image {
    min-height: 280px;
  }

  .concert {
    grid-template-columns: 90px 1fr;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

}


/* =========================
   DARK / ELEGANT THEME
   ========================= */

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(199,169,107,.06), transparent 35%),
    var(--paper);
}

.site-header {
  box-shadow: 0 8px 30px rgba(0,0,0,.22);
}

.main-nav a:hover,
.main-nav a.active,
.text-link,
.label,
.card-number,
.month {
  color: var(--accent);
}

.main-nav a::after {
  background: var(--accent);
}

.card,
.concert,
.link-card {
  background: #101010;
  border-color: #292929;
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}

.card:hover,
.concert:hover,
.link-card:hover {
  border-color: rgba(199,169,107,.55);
  transform: translateY(-2px);
}

.button {
  background: var(--accent);
  color: #0b0b0b;
  border-color: var(--accent);
}

.button:hover {
  background: #d5b978;
  border-color: #d5b978;
}

.button-light {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.access,
.contact {
  background: linear-gradient(135deg, #171717, #0d0d0d);
  border-top: 1px solid #2c2c2c;
  border-bottom: 1px solid #2c2c2c;
}

footer {
  background: #050505;
  border-top: 1px solid #292929;
}

::selection {
  background: rgba(199,169,107,.35);
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .card,
  .concert,
  .link-card {
    transition: transform .25s ease, border-color .25s ease;
  }
}

/* =========================
   ACCUEIL — GRANDE BANNIÈRE PHOTO
   ========================= */

.home-hero {
  position: relative;
  min-height: min(340px, calc(100vh - 88px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #090909;
}

.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.88) 0%,
      rgba(0,0,0,.64) 32%,
      rgba(0,0,0,.18) 68%,
      rgba(0,0,0,.10) 100%
    ),
    linear-gradient(
      0deg,
      rgba(0,0,0,.38) 0%,
      transparent 45%
    );
}

.home-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 70px;
}

.home-hero h1 {
  max-width: 650px;
  margin-bottom: 14px;
  font-size: clamp(3.5rem, 8vw, 6.8rem);
  text-shadow: 0 4px 25px rgba(0,0,0,.35);
}

.home-hero .eyebrow {
  color: rgba(255,255,255,.78);
}

.home-hero-place {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}

.home-hero-baseline {
  margin: 28px 0 0;
  max-width: 430px;
  color: rgba(255,255,255,.88);
  font-size: 1.12rem;
}

@media (max-width: 720px) {
  .home-hero {
    min-height: 520px;
  }

  .home-hero-image {
    object-position: 56% center;
  }

  .home-hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(0,0,0,.84) 0%,
        rgba(0,0,0,.52) 65%,
        rgba(0,0,0,.20) 100%
      );
  }

  .home-hero-content {
    padding-top: 55px;
    padding-bottom: 55px;
  }
}



/* =========================================================
   PAGE DES CHORISTES
   ========================================================= */

.choristes-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px 70px;
}

.choristes-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.choristes-intro h1 {
    margin-bottom: 12px;
}

/* Navigation entre les pupitres */

.pupitres-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 45px;
}

.pupitres-nav a {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;
    color: inherit;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.pupitres-nav a:hover {
    background: rgba(255,255,255,.10);
    transform: translateY(-2px);
}

/* Sections des pupitres */

.pupitre-section {
    margin: 2.5rem 0;
    scroll-margin-top: 100px;
}

.pupitre-title {
    text-align: center;
    margin: 35px 0 25px;
}

/* Grille des choristes */

.choristes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Carte individuelle */

.choriste-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 18px 25px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.choriste-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.22);
}

/* Photo ou emplacement réservé */

.choriste-photo {
    width: 120px;
    height: 150px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 6px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.08),
        rgba(255,255,255,.025)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: rgba(255,255,255,.35);
    font-size: 12px;
}

.choriste-photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Identité */

.choriste-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
}

.choriste-firstname {
    display: block;
    margin-top: 4px;
    font-weight: 400;
    opacity: .8;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .choristes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {
    .choristes-page {
        padding: 35px 18px 50px;
    }

    .choristes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .choriste-card {
        padding: 16px 10px 20px;
    }

    .choriste-photo {
        width: 95px;
        height: 120px;
    }

    .choriste-name {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .choristes-grid {
        grid-template-columns: 1fr;
    }

    .choriste-photo {
        width: 110px;
        height: 140px;
    }
}
