/* =========================================================
   BOHEM · DJ à Rennes — feuille de style
   Palette "Nuit dorée" : noir chaud, or, crème
   Pour changer une couleur partout : modifie-la juste ici 👇
   ========================================================= */
:root {
  --noir: #0E0C0A;        /* fond sombre principal */
  --nuit: #19150F;        /* fond sombre secondaire */
  --or: #C9A24A;          /* la touche de couleur */
  --or-clair: #E6CB86;    /* or pour les lueurs */
  --creme: #F4EFE6;       /* fond clair */
  --creme-2: #EAE2D3;     /* fond clair secondaire */
  --encre: #1C1814;       /* texte sur fond clair */
  --gris: #6F675B;        /* texte secondaire sur fond clair */
  --gris-nuit: #B5AC9C;   /* texte secondaire sur fond sombre */

  --titre: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --texte: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --largeur: 1140px;
  --gouttiere: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 52px); }
h3 { font-size: 28px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding-inline: var(--gouttiere); }
.surtitre {
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--or); font-weight: 500;
}
.intro { max-width: 60ch; color: var(--gris); font-size: 18px; }
.sombre .intro { color: var(--gris-nuit); }
.entete-section { display: grid; gap: 14px; margin-bottom: 48px; }

/* Grain vintage, posé sur les zones sombres */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Boutons (angles nets) ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border: 1px solid var(--or);
  font-family: var(--texte); font-size: 14px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: background .25s, color .25s, box-shadow .25s;
}
.bouton-or { background: var(--or); color: var(--noir); }
.bouton-or:hover { background: var(--or-clair); box-shadow: 0 0 24px rgba(230, 203, 134, .45); }
.bouton-ligne { background: transparent; color: var(--creme); }
.bouton-ligne:hover { background: rgba(201, 162, 74, .14); }
.clair .bouton-ligne { color: var(--encre); }

/* ---------- En-tête & menu ---------- */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.entete.defile, .entete.ouvert, .page-interne .entete {
  background: rgba(14, 12, 10, .94); border-color: rgba(201, 162, 74, .22);
  backdrop-filter: blur(8px);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; transition: opacity .4s; }
.logo img { height: 40px; width: auto; }
/* Accueil : le petit logo du menu n'apparaît qu'en descendant (le grand logo est déjà dans le bandeau) */
.accueil .entete:not(.defile):not(.ouvert) .logo { opacity: 0; pointer-events: none; }
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 34px; }
.menu a {
  color: var(--creme); text-decoration: none; font-size: 14px;
  letter-spacing: .16em; text-transform: uppercase;
}
.menu a:not(.bouton):hover, .menu a[aria-current="page"] { color: var(--or-clair); }
.menu .bouton { padding: 10px 20px; }
.burger {
  display: none; background: none; border: 1px solid rgba(201, 162, 74, .5);
  width: 46px; height: 46px; cursor: pointer; padding: 0;
}
.burger span { display: block; width: 20px; height: 1.5px; background: var(--creme); margin: 5px auto; transition: transform .25s, opacity .25s; }
.entete.ouvert .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.entete.ouvert .burger span:nth-child(2) { opacity: 0; }
.entete.ouvert .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .burger { display: block; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 28px var(--gouttiere) 34px; background: var(--noir);
    border-bottom: 1px solid rgba(201, 162, 74, .22);
    display: none;
  }
  .entete.ouvert .menu { display: flex; }
}

/* ---------- Accueil : grand bandeau vidéo ---------- */
.bandeau {
  position: relative; min-height: clamp(560px, 92vh, 860px);
  display: flex; align-items: flex-end;
  background: radial-gradient(ellipse at 50% 120%, #3A2A12 0%, var(--noir) 60%);
  color: var(--creme); overflow: hidden;
}
/* Ordre des calques : vidéo de fond < voile < faisceaux < contenu < grain.
   Le contenu ne crée pas de calque à part, pour que le logo animé se fonde dans le décor. */
.bandeau > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.bandeau::before { /* voile sombre pour la lisibilité */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(14,12,10,.55) 0%, rgba(14,12,10,.25) 40%, rgba(14,12,10,.92) 100%);
}
/* Faisceaux de lumière */
.faisceaux { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.faisceaux span {
  position: absolute; top: -10%; width: 34vw; max-width: 440px; height: 130%;
  background: linear-gradient(180deg, rgba(230,203,134,.32), rgba(230,203,134,0) 75%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  filter: blur(6px); transform-origin: 50% 0; mix-blend-mode: screen;
  animation: balayage 9s ease-in-out infinite alternate;
}
.faisceaux span:nth-child(1) { left: 6%;  transform: rotate(-18deg); }
.faisceaux span:nth-child(2) { left: 38%; transform: rotate(6deg); animation-delay: -3s; opacity: .7; }
.faisceaux span:nth-child(3) { right: 4%; transform: rotate(20deg); animation-delay: -6s; }
@keyframes balayage {
  from { rotate: -9deg; }
  to   { rotate: 9deg; }
}
.bandeau .conteneur { position: relative; padding-block: 140px 72px; display: grid; gap: 22px; }
/* Logo animé : la vidéo a un fond noir, le mode "screen" le rend transparent */
.logo-scene { width: min(820px, 100%); margin: 0; line-height: 0; }
.logo-anime {
  width: 100%; height: auto; aspect-ratio: 1060 / 540;
  margin: -10% 0 -8% -9.4%;   /* recale les lettres sur l'alignement du texte */
  mix-blend-mode: screen; cursor: pointer;
}
/* Le texte du bandeau arrive une fois le logo construit */
.apres { animation: arrivee .9s ease 1.4s both; }
.boutons.apres { animation-delay: 1.7s; }
@keyframes arrivee { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bandeau .accroche { font-size: clamp(18px, 2.2vw, 22px); max-width: 46ch; color: #E8E0D2; }

/* ---------- Sections ---------- */
section { padding-block: clamp(72px, 10vw, 120px); }
.sombre { background: var(--noir); color: var(--creme); }
.sombre-2 { background: var(--nuit); color: var(--creme); }
.clair { background: var(--creme); }
.clair-2 { background: var(--creme-2); }

/* Prestations */
.prestations { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.carte { position: relative; display: flex; flex-direction: column; background: var(--noir); color: var(--creme); min-height: 300px; overflow: hidden; text-decoration: none; }
.carte:first-child { grid-row: span 2; min-height: 520px; }
.carte .photo { position: absolute; inset: 0; z-index: 0; transition: transform .6s ease; }
.carte:hover .photo { transform: scale(1.04); }
.carte::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,12,10,.05) 30%, rgba(14,12,10,.88) 100%);
}
.carte-texte { position: relative; z-index: 2; margin-top: auto; padding: 28px; display: grid; gap: 8px; }
.carte .etiquette { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--or-clair); }
.carte p { color: #DDD4C5; max-width: 42ch; }
.carte .lien { margin-top: 8px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--or-clair); }
.carte:hover .lien { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 760px) {
  .prestations { grid-template-columns: 1fr; }
  .carte:first-child { grid-row: auto; min-height: 380px; }
}

/* Emplacements photo : si l'image n'existe pas encore, un dégradé doré s'affiche à la place */
:root { --fond-photo: radial-gradient(ellipse at 30% 20%, #4A3716 0%, #1E1810 55%, #0E0C0A 100%); }
.photo {
  background-color: var(--nuit);
  background-image: var(--fond-photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Styles musicaux : défilé de genres, piloté à la souris (voir js/main.js) */
.genres {
  position: relative; overflow: hidden; margin-top: 8px; padding-block: 26px;
  border-block: 1px solid rgba(201, 162, 74, .28);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.genres-piste { display: flex; gap: 48px; width: max-content; animation: defile 38s linear infinite; will-change: transform; }
.js .genres-piste { animation: none; } /* avec JavaScript, c'est main.js qui fait défiler */
.genres span { font-family: var(--titre); font-size: clamp(30px, 4.4vw, 50px); font-style: italic; white-space: nowrap; color: var(--creme); transition: color .3s; }
.genres span:nth-child(even) { color: var(--or); font-style: normal; }
.genres span:hover { color: var(--or-clair); }
@keyframes defile { to { transform: translateX(-50%); } }

/* Bords en fondu + flèches qui s'allument du côté survolé */
.genres::before, .genres::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 1;
  pointer-events: none; display: flex; align-items: center;
  font-family: var(--titre); font-size: 72px; line-height: 1; padding-bottom: 8px;
  color: transparent; transition: color .3s, text-shadow .3s;
}
.genres::before { left: 0;  content: "‹"; justify-content: flex-start; padding-left: var(--gouttiere); background: linear-gradient(90deg, var(--noir) 35%, rgba(14,12,10,0)); }
.genres::after  { right: 0; content: "›"; justify-content: flex-end;   padding-right: var(--gouttiere); background: linear-gradient(270deg, var(--noir) 35%, rgba(14,12,10,0)); }
.genres.vers-gauche::before, .genres.vers-droite::after { color: var(--or-clair); text-shadow: 0 0 16px rgba(230, 203, 134, .7); }

/* Points forts */
.atouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.atout { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--or); }
.atout p { color: var(--gris); font-size: 16px; }
@media (max-width: 900px) { .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .atouts { grid-template-columns: 1fr; } }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.galerie .photo { aspect-ratio: 4 / 5; max-width: 100%; }
.galerie .photo:nth-child(2) { margin-top: 48px; }
@media (max-width: 640px) {
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie .photo:nth-child(2) { margin-top: 0; }
  .galerie .photo:nth-child(3) { grid-column: span 2; aspect-ratio: 16 / 9; }
}

/* Bandeau d'appel */
.appel { text-align: left; }
.appel .conteneur { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.appel h2 { max-width: 14ch; }
.appel h2 em { color: var(--or); }

/* ---------- Pages internes ---------- */
.titre-page {
  background: var(--noir); color: var(--creme);
  padding-block: 160px 72px;
}
.titre-page .conteneur { display: grid; gap: 16px; }
.titre-page h1 { font-size: clamp(46px, 8vw, 88px); text-shadow: 0 0 30px rgba(201, 162, 74, .3); }

.duo { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.duo .photo { aspect-ratio: 4 / 5; }
.texte-long { display: grid; gap: 20px; max-width: 62ch; }
.texte-long p { color: #3A342C; }
.texte-long h2 { margin-bottom: 4px; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } .duo .photo { aspect-ratio: 4 / 3; } }

.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; counter-reset: etape; }
.etape { display: grid; gap: 10px; align-content: start; }
.etape::before {
  counter-increment: etape; content: "0" counter(etape);
  font-family: var(--titre); font-size: 44px; color: var(--or); line-height: 1;
}
.etape p { color: var(--gris-nuit); }
@media (max-width: 760px) { .etapes { grid-template-columns: 1fr; } }

/* Contact */
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact {
  display: grid; gap: 10px; align-content: start; padding: 30px;
  background: var(--noir); color: var(--creme); text-decoration: none;
  border: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.contact:hover { border-color: var(--or); box-shadow: 0 0 30px rgba(201, 162, 74, .22); }
.contact .etiquette { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--or-clair); }
.contact strong { font-family: var(--titre); font-size: 28px; font-weight: 600; overflow-wrap: anywhere; }
.contact span:last-child { color: var(--gris-nuit); font-size: 15px; }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; } }

.liste-devis { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.liste-devis li { padding-left: 26px; position: relative; }
.liste-devis li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--or); }

.legal { display: grid; gap: 28px; max-width: 70ch; }
.legal h2 { font-size: 30px; }
.legal p { color: #3A342C; }

/* ---------- Pied de page ---------- */
.pied { background: var(--noir); color: var(--gris-nuit); padding-block: 64px 32px; font-size: 15px; }
.pied .conteneur { display: grid; gap: 40px; }
.pied-haut { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.pied h3 { font-family: var(--texte); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--or); font-weight: 500; margin-bottom: 14px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--or-clair); }
.pied .logo { display: inline-block; margin-bottom: 12px; }
/* Petit logo animé du pied de page (la vidéo déborde un peu pour laisser la place à la lueur) */
.logo-pied { position: relative; width: 111px; height: 40px; }
.logo-pied-anime {
  position: absolute; left: -13px; top: -19px; width: 134px; max-width: none; height: auto;
  mix-blend-mode: screen; pointer-events: none;
}
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(201, 162, 74, .2); font-size: 13px; }
@media (max-width: 760px) { .pied-haut { grid-template-columns: 1fr; } }

/* ---------- Apparition douce au défilement ---------- */
.js .apparait { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .apparait.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .apparait { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
