/* ============================================================
   MARC BLOUIN, VIOLONISTE PROFESSIONNEL
   Feuille de style principale
   Palette : noir, or, ivoire
   ------------------------------------------------------------
   Sommaire :
   1.  Variables (couleurs, polices)
   2.  Réglages de base
   3.  Conteneurs et utilitaires
   4.  Boutons
   5.  Ornements et titres de section
   6.  En-tête / navigation
   7.  Accueil (carte d'affaires)
   8.  À propos
   9.  Sections "feature" (funéraire, mariages, corporatif)
   10. Extraits audio
   11. Galerie + lightbox
   12. Témoignages
   13. Contact
   14. Pied de page
   15. Animations d'apparition
   16. Responsive (mobile)
   ============================================================ */

/* 1. VARIABLES ---------------------------------------------- */
:root {
  --noir:        #0e0e0f;
  --noir-2:      #17161a;
  --noir-3:      #201f24;
  --or:          #c9a24b;
  --or-clair:    #e8c879;
  --or-fonce:    #a9842f;
  --ivoire:      #f6f1e7;
  --ivoire-2:    #faf7f0;
  --texte:       #2c2924;
  --texte-doux:  #5b574f;
  --blanc-doux:  #f3efe6;

  --or-gradient: linear-gradient(135deg, #a9842f 0%, #e8c879 45%, #c9a24b 70%, #a9842f 100%);

  --serif:  'Cormorant Garamond', Georgia, serif;
  --script: 'Great Vibes', cursive;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max:    1180px;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --transition: .4s cubic-bezier(.22, .61, .36, 1);
}

/* 2. RÉGLAGES DE BASE --------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--texte);
  background: var(--ivoire);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

/* Lien d'évitement (clavier) */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--noir); color: var(--or);
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* 3. CONTENEURS ET UTILITAIRES ------------------------------ */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.section { padding: 92px 0; }
.section-light  { background: var(--ivoire-2); color: var(--texte); }
.feature-dark   { background: var(--noir); color: var(--blanc-doux); }
.feature-light  { background: var(--ivoire); color: var(--texte); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--or);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .01em; }
.section-lead { margin-top: 18px; color: var(--texte-doux); font-size: 1.08rem; }
.feature-dark .section-lead { color: #cfc8b8; }

/* 4. BOUTONS ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn .ico { width: 17px; height: 17px; fill: currentColor; }
.btn-gold {
  background: var(--or-gradient);
  color: #1a1407;
  box-shadow: 0 8px 22px rgba(169, 132, 47, .35);
}
.btn-gold:hover { filter: brightness(1.07); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--or); border-color: var(--or); }
.btn-outline:hover { background: var(--or); color: #1a1407; transform: translateY(-2px); }
.btn-light { background: var(--blanc-doux); color: var(--noir); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn.full { width: 100%; justify-content: center; }

/* 5. ORNEMENTS --------------------------------------------- */
.ornament {
  width: 160px; height: 16px; margin: 16px auto;
  position: relative;
}
.ornament::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}
.ornament::after {
  content: "♪"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  color: var(--or); font-size: 1rem;
  background: inherit; padding: 0 10px;
}
/* Ornement aligné à gauche dans les colonnes de texte */
.feature-text .ornament, .hero-text .ornament { margin-left: 0; margin-right: 0; }

/* 6. EN-TÊTE / NAVIGATION ----------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14, 14, 15, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 75, .18);
  transition: var(--transition);
}
.site-header.scrolled { background: rgba(14, 14, 15, .96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; color: var(--ivoire); font-weight: 600; }
.brand-sub { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--or); }

.nav ul { list-style: none; display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: .82rem; letter-spacing: .06em; color: #ded8cb;
  position: relative; padding: 4px 0; transition: color .3s;
}
.nav a:hover { color: var(--or-clair); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--or); transition: width .3s;
}
.nav a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--or); padding: 8px 16px !important;
  border-radius: var(--radius); color: var(--or) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--or); color: #1a1407 !important; }

/* Bouton menu mobile */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--or); transition: var(--transition); }

/* 7. ACCUEIL (carte d'affaires) ----------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  background: var(--noir);
  color: var(--blanc-doux);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(201, 162, 75, .16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(201, 162, 75, .10), transparent 50%),
    var(--noir);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 18px;
  border: 1px solid rgba(201, 162, 75, .25);
  pointer-events: none;
}

/* Titre caché visuellement mais lu par Google et les lecteurs d'écran */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 840px; margin: 0 auto; text-align: center;
}
.hero-card-frame {
  position: relative;
  max-width: 860px; margin: 0 auto 36px;
  padding: 12px;
  border: 1px solid rgba(201, 162, 75, .4);
  background: rgba(255, 255, 255, .02);
  box-shadow: var(--shadow);
}
.hero-card-frame img {
  width: 100%; height: auto; display: block;
  background: linear-gradient(135deg, #1c1b1f, #2b2a30);
}

.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .3em; font-size: .72rem;
  color: var(--or); margin-bottom: 18px;
}
.hero-name {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(3rem, 7vw, 5rem);
  letter-spacing: .015em;
  line-height: 1;
  background: var(--or-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.hero-title {
  font-family: var(--serif);
  text-transform: uppercase; letter-spacing: .32em;
  font-size: 1.05rem; color: var(--ivoire); margin-bottom: 22px;
}
.hero-desc { color: #d4cdbf; max-width: 600px; margin: 0 auto 32px; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* 8. À PROPOS ----------------------------------------------- */
.apropos-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: center; }
.apropos-text p { margin-bottom: 18px; font-size: 1.08rem; color: var(--texte-doux); }
.apropos-text strong { color: var(--texte); }
.apropos-signature {
  font-family: var(--serif); font-style: italic;
  font-size: 1.4rem !important; color: var(--or-fonce) !important; margin-top: 8px;
}
.apropos-points { list-style: none; display: grid; gap: 18px; }
.apropos-points li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid rgba(201, 162, 75, .25);
  border-left: 3px solid var(--or);
  border-radius: var(--radius);
}
.apropos-points .num {
  font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--or-fonce);
  min-width: 70px;
}

/* 9. SECTIONS FEATURE --------------------------------------- */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.feature-grid.reversed .feature-media { order: 2; }
.feature-media {
  position: relative; padding: 12px;
  border: 1px solid rgba(201, 162, 75, .4);
  box-shadow: var(--shadow);
}
.feature-media img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  background: linear-gradient(135deg, #1c1b1f, #2b2a30);
}
.feature-light .feature-media { background: #fff; }
.feature-text .section-eyebrow { letter-spacing: .2em; }
.feature-text .section-title { text-align: left; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.feature-text p { margin-bottom: 18px; font-size: 1.06rem; }
.feature-dark .feature-text p { color: #cfc8b8; }
.feature-text .btn { margin-top: 8px; }

/* 10. EXTRAITS AUDIO ---------------------------------------- */
.audio-category { margin-bottom: 48px; }
.audio-category:last-child { margin-bottom: 0; }
.audio-cat-title {
  font-family: var(--serif); font-weight: 500; font-size: 1.85rem;
  letter-spacing: .04em; color: var(--texte);
  text-align: center; position: relative; padding-bottom: 14px; margin-bottom: 26px;
}
.audio-cat-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 2px; background: var(--or-gradient);
}
.audio-soon {
  text-align: center; color: var(--texte-doux); font-style: italic;
  font-family: var(--serif); font-size: 1.15rem;
}
.audio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.audio-card {
  background: #fff;
  border: 1px solid rgba(201, 162, 75, .3);
  border-top: 3px solid var(--or);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  transition: var(--transition);
}
.audio-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .1); }
.audio-title {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: 1.45rem; letter-spacing: .01em;
  color: var(--texte); margin-bottom: 14px;
}
.audio-meta {
  text-transform: uppercase; letter-spacing: .18em; font-size: .7rem;
  color: var(--or-fonce); margin-bottom: 18px;
}
.audio-card audio { width: 100%; height: 40px; }

/* 10b. CHAÎNE YOUTUBE --------------------------------------- */
.yt-band {
  position: relative; overflow: hidden;
  padding: 92px 0; text-align: center;
  background: var(--noir); color: var(--blanc-doux);
}
.yt-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(201, 162, 75, .18), transparent 55%),
    var(--noir);
}
.yt-bg::after {
  content: ""; position: absolute; inset: 18px;
  border: 1px solid rgba(201, 162, 75, .22); pointer-events: none;
}
.yt-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.yt-logo { display: inline-flex; margin-bottom: 18px; }
.yt-logo svg {
  width: 66px; height: 66px; fill: var(--or-clair);
  filter: drop-shadow(0 6px 18px rgba(201, 162, 75, .3));
}
.yt-title {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--ivoire); margin-bottom: 14px;
}
.yt-text { color: #d4cdbf; font-size: 1.08rem; margin-bottom: 30px; }
.yt-btn { font-size: .86rem; padding: .95rem 1.8rem; }

/* 11. GALERIE + LIGHTBOX ------------------------------------ */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-item {
  position: relative; overflow: hidden; cursor: pointer;
  border: 0; padding: 0; background: #1c1b1f;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 22%; /* garde les visages visibles sur les vignettes */
  transition: transform .6s ease, filter .4s ease;
  filter: saturate(.95);
}
.gallery-item::after {
  content: "+"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 2.4rem; color: var(--or-clair);
  background: rgba(14, 14, 15, .35);
  opacity: 0; transition: opacity .4s;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 8, 9, .94);
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw; max-height: 86vh; object-fit: contain;
  border: 1px solid rgba(201, 162, 75, .5);
  box-shadow: var(--shadow);
  animation: zoomIn .35s ease;
}
.lightbox-close, .lightbox-nav {
  position: absolute; background: none; border: 0;
  color: var(--or-clair); cursor: pointer;
  font-size: 2.6rem; line-height: 1; padding: 10px;
  transition: color .3s, transform .3s;
}
.lightbox-close:hover, .lightbox-nav:hover { color: #fff; }
.lightbox-close { top: 18px; right: 26px; font-size: 3rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* Placeholder « Photo à venir » (s'affiche quand une image manque encore) */
.img-missing img { opacity: 0; }
.img-missing { cursor: default; }
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, #17161a 0%, #232228 100%);
  border: 1px dashed rgba(201, 162, 75, .45);
  text-align: center;
}
.photo-placeholder .ph-note { font-family: var(--serif); font-size: 2.6rem; color: var(--or); line-height: 1; }
.photo-placeholder .ph-text {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .24em;
  text-transform: uppercase; color: #cfc8b8;
}

/* 12. TÉMOIGNAGES ------------------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: #fff;
  border: 1px solid rgba(201, 162, 75, .28);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
}
.testimonial::before {
  content: "\201C"; font-family: var(--serif);
  font-size: 4.5rem; color: var(--or); opacity: .35;
  position: absolute; top: 6px; left: 18px; line-height: 1;
}
.testimonial p {
  font-family: var(--serif); font-size: 1.25rem; font-style: italic;
  color: var(--texte); margin: 18px 0 16px; position: relative; z-index: 1;
}
.testimonial cite {
  font-style: normal; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--or-fonce);
}

/* 13. CONTACT ----------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.contact-line {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: var(--noir-2);
  border: 1px solid rgba(201, 162, 75, .25);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-line:not(.static):hover { border-color: var(--or); transform: translateX(4px); }
.contact-line .ico { width: 26px; height: 26px; fill: var(--or); flex-shrink: 0; }
.contact-line span { color: #d4cdbf; font-size: .95rem; }
.contact-line strong { color: var(--ivoire); letter-spacing: .04em; }
.map-embed iframe { width: 100%; height: 220px; border: 0; border-radius: var(--radius); }

.contact-form {
  background: var(--noir-2);
  border: 1px solid rgba(201, 162, 75, .25);
  border-radius: var(--radius);
  padding: 34px;
  display: grid; gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--or);
}
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .95rem;
  background: var(--noir); color: var(--blanc-doux);
  border: 1px solid rgba(201, 162, 75, .3);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--or);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, .15);
}
.field textarea { resize: vertical; }
.form-note { font-size: .85rem; color: var(--or-clair); min-height: 1em; text-align: center; }

/* 14. PIED DE PAGE ------------------------------------------ */
.site-footer { background: #0a0a0b; color: #cfc8b8; padding: 48px 0 24px; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding-bottom: 28px; border-bottom: 1px solid rgba(201, 162, 75, .2);
}
.footer-name { font-family: var(--serif); font-size: 1.7rem; color: var(--or-clair); }
.footer-sub { font-size: .82rem; letter-spacing: .08em; color: #9a9486; }
.footer-contact { display: grid; gap: 6px; text-align: right; }
.footer-contact a { color: #d4cdbf; transition: color .3s; }
.footer-contact a:hover { color: var(--or-clair); }
.footer-copy { text-align: center; font-size: .76rem; color: #7d7869; margin-top: 22px; letter-spacing: .05em; }

/* 15. ANIMATIONS D'APPARITION ------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Respect des préférences d'accessibilité (mouvement réduit) */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 16. RESPONSIVE -------------------------------------------- */
@media (max-width: 960px) {
  .hero-card { grid-template-columns: 1fr; gap: 38px; text-align: center; }
  .hero-photo { max-width: 360px; margin: 0 auto; }
  .hero-text .ornament, .hero-actions { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .apropos-grid, .feature-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid.reversed .feature-media { order: 0; }
  .feature-media { max-width: 460px; margin: 0 auto; }
  .feature-text .section-title, .feature-text { text-align: center; }
  .feature-text .ornament { margin-left: auto; margin-right: auto; }
  .feature-text .btn { display: inline-flex; }
  .audio-grid, .gallery, .testimonials { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  /* Menu mobile */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: 72px; right: 0;
    width: min(80vw, 320px); height: calc(100vh - 72px);
    background: rgba(14, 14, 15, .98);
    border-left: 1px solid rgba(201, 162, 75, .2);
    transform: translateX(100%); transition: transform .4s ease;
    padding: 30px;
  }
  .nav.open { transform: translateX(0); }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav a { display: block; padding: 12px 0; font-size: 1rem; width: 100%; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 64px 0; }
  .audio-grid, .gallery, .testimonials { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-contact { text-align: center; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
}
