/* ---------- Base ---------- */
    html { scroll-behavior: smooth; }
    body {
      background: #0a0a0a;
      color: #f4efe6;
      font-family: 'Inter', system-ui, sans-serif;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    ::selection { background: #c9a86a; color: #0a0a0a; }

    /* ---------- Scrollbar ---------- */
    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-track { background: #0a0a0a; }
    ::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: #c9a86a; }

    /* ---------- Grain de film ---------- */
    .film-grain::before {
      content: ""; position: fixed; inset: 0;
      pointer-events: none; z-index: 9999;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
      opacity: .35; mix-blend-mode: overlay;
    }

    /* ---------- Light leaks ---------- */
    .leak {
      position: absolute; pointer-events: none;
      background: radial-gradient(ellipse at center, rgba(201,168,106,0.18), transparent 60%);
      filter: blur(60px);
    }

    /* ---------- Typographies ---------- */
    .h-display { font-family: 'Playfair Display', serif; font-weight: 500; letter-spacing: -0.01em; }
    .h-heading { font-family: 'Cinzel', serif; }
    .eyebrow {
      font-family: 'Cinzel', serif; font-size: .72rem;
      letter-spacing: 0.4em; text-transform: uppercase; color: #c9a86a;
    }

    /* ---------- Hero – fond cinématique ---------- */
    .hero-bg {
      position: relative;
      background:
        radial-gradient(ellipse at 70% 30%, rgba(80,30,60,0.35), transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(20,40,90,0.4), transparent 60%),
        linear-gradient(180deg, #050508 0%, #0a0a10 60%, #060609 100%);
    }
    /* Image cinématique en arrière-plan ultra-discrète */
    .hero-imgbg {
      position: absolute; inset: 0;
      background-image: url('photos/17.jpg');
      background-size: cover; background-position: center;
      opacity: .14;
      mix-blend-mode: screen;
      filter: blur(2px) saturate(1.2);
    }
    .hero-vignette::after {
      content: ""; position: absolute; inset: 0;
      background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.92) 100%);
      pointer-events: none;
    }
    /* Aura dorée centrale – remplace l'ancien logo géant qui se superposait */
    .hero-aura {
      position: absolute; top: 50%; left: 50%;
      width: 70vmin; height: 70vmin;
      transform: translate(-50%, -50%);
      pointer-events: none; z-index: 0;
      background:
        radial-gradient(circle at center,
          rgba(226,200,137,0.18) 0%,
          rgba(201,168,106,0.10) 25%,
          rgba(120,90,180,0.06) 55%,
          transparent 75%);
      filter: blur(40px);
      animation: auraPulse 9s ease-in-out infinite;
    }
    @keyframes auraPulse {
      0%,100% { opacity: .8; transform: translate(-50%, -50%) scale(1); }
      50%     { opacity: 1;  transform: translate(-50%, -50%) scale(1.08); }
    }

    /* ---------- Logo (badge gold) – glow & flottement ---------- */
    @keyframes logoGlow {
      0%,100% { filter: drop-shadow(0 0 30px rgba(201,168,106,0.35)) drop-shadow(0 0 80px rgba(201,168,106,0.18)); }
      50%     { filter: drop-shadow(0 0 60px rgba(201,168,106,0.55)) drop-shadow(0 0 140px rgba(226,200,137,0.28)); }
    }
    .logo-glow { animation: logoGlow 7s ease-in-out infinite; }

    @keyframes logoFloat {
      0%,100% { transform: translateY(0) rotate(0deg); }
      50%     { transform: translateY(-10px) rotate(1deg); }
    }
    .logo-float { animation: logoFloat 14s ease-in-out infinite; }

    /* ---------- Indicateur de scroll ---------- */
    @keyframes scrollDot {
      0% { transform: translateY(0); opacity: 0; }
      40%{ opacity: 1; }
      100%{ transform: translateY(20px); opacity: 0; }
    }
    .scroll-dot { animation: scrollDot 2s ease-in-out infinite; }

    /* ---------- Reveal — fade-in CSS pur (n'a pas besoin de JS) ---------- */
    @keyframes revealFadeUp {
      from { opacity: 0; transform: translateY(40px); }
      to   { opacity: 1; transform: none; }
    }
    @keyframes revealFadeScale {
      from { opacity: 0; transform: scale(.96); }
      to   { opacity: 1; transform: scale(1); }
    }
    .reveal {
      opacity: 0;
      animation: revealFadeUp 1.2s cubic-bezier(.16,.84,.3,1) 0.15s forwards;
    }
    .reveal-scale {
      opacity: 0;
      animation: revealFadeScale 1.2s cubic-bezier(.16,.84,.3,1) 0.15s forwards;
    }
    /* Si le JS observer fonctionne et ajoute .in, on s'assure que c'est fixé */
    .reveal.in, .reveal-scale.in { opacity: 1; transform: none; animation: none; }

    /* ---------- Boutons ---------- */
    .btn {
      position: relative; display: inline-flex; align-items: center; gap: .65rem;
      padding: 0.95rem 1.7rem;
      font-family: 'Cinzel', serif;
      font-size: .78rem; letter-spacing: .25em; text-transform: uppercase;
      border-radius: 999px;
      transition: all .5s cubic-bezier(.16,.84,.3,1);
      will-change: transform, box-shadow;
    }
    .btn-primary {
      background: linear-gradient(135deg, #c9a86a 0%, #e2c889 50%, #b08a4a 100%);
      color: #0a0a0a;
      box-shadow: 0 10px 40px -10px rgba(201,168,106,0.45);
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 20px 60px -10px rgba(201,168,106,0.7), 0 0 0 1px rgba(226,200,137,0.4) inset;
    }
    .btn-ghost {
      color: #f4efe6;
      border: 1px solid rgba(244,239,230,0.25);
      background: rgba(255,255,255,0.02);
      backdrop-filter: blur(10px);
    }
    .btn-ghost:hover {
      border-color: rgba(226,200,137,0.7);
      background: rgba(226,200,137,0.06);
      box-shadow: 0 0 30px rgba(226,200,137,0.2);
      transform: translateY(-2px);
    }
    .btn .btn-arrow { display: inline-block; transition: transform .4s ease; }
    .btn:hover .btn-arrow { transform: translateX(4px); }

    /* ---------- Lien menu ---------- */
    .nav-link {
      position: relative;
      font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
      color: #d8d4cc; transition: color .3s ease;
      font-family: 'Cinzel', serif;
    }
    .nav-link:hover { color: #c9a86a; }
    .nav-link::after {
      content: ""; position: absolute; left: 0; bottom: -6px;
      width: 0; height: 1px; background: #c9a86a; transition: width .4s ease;
    }
    .nav-link:hover::after { width: 100%; }

    /* ---------- Navbar ---------- */
    #navbar { transition: background-color .5s ease, backdrop-filter .5s ease, padding .5s ease, border-color .5s ease; }
    #navbar.scrolled {
      background: rgba(10,10,10,0.78);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(255,255,255,0.05);
      padding-top: .65rem; padding-bottom: .65rem;
    }

    /* ---------- Galerie marquee horizontale infinie ---------- */
    .marquee {
      position: relative; overflow: hidden;
      mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
      -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    }
    .marquee-track {
      display: flex; gap: 1.75rem; width: max-content;
      animation: marqueeScroll 90s linear infinite;
      will-change: transform;
    }
    .marquee:hover .marquee-track { animation-play-state: paused; }
    @keyframes marqueeScroll {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }

    /* ---------- Carte photo galerie ---------- */
    .gcard {
      position: relative;
      flex: 0 0 auto;
      width: clamp(240px, 26vw, 360px);
      aspect-ratio: 2 / 3;
      border-radius: 14px;
      overflow: hidden;
      cursor: pointer;
      transform-style: preserve-3d;
      transition: transform .6s cubic-bezier(.16,.84,.3,1), box-shadow .6s ease;
      box-shadow: 0 10px 40px -15px rgba(0,0,0,0.8);
      background: #1a1a1f;
    }
    .gcard:hover { box-shadow: 0 25px 70px -20px rgba(201,168,106,0.45), 0 0 0 1px rgba(226,200,137,0.25); }
    .gcard img {
      width: 100%; height: 100%; object-fit: cover;
      transition: transform 1.4s cubic-bezier(.16,.84,.3,1), filter .6s ease;
      filter: saturate(0.97) contrast(1.03);
    }
    .gcard:hover img { transform: scale(1.06); filter: saturate(1.08) contrast(1.06); }
    .gcard-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
      opacity: 0; transition: opacity .5s ease;
      display: flex; align-items: flex-end; padding: 1.25rem;
    }
    .gcard:hover .gcard-overlay { opacity: 1; }
    .gcard-overlay .gcard-meta {
      transform: translateY(10px); transition: transform .5s ease;
      font-family: 'Cinzel', serif; letter-spacing: .2em; font-size: .72rem;
    }
    .gcard:hover .gcard-overlay .gcard-meta { transform: translateY(0); }
    .gcard-watermark {
      position: absolute; right: 10px; bottom: 10px;
      width: 42px; height: 42px; opacity: .55;
      pointer-events: none; mix-blend-mode: screen;
    }

    /* ---------- Filtres galerie ---------- */
    .filter-btn {
      font-family: 'Cinzel', serif;
      font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
      padding: .55rem 1.2rem;
      color: #b8b4ac; border: 1px solid rgba(255,255,255,0.1);
      border-radius: 999px; background: transparent;
      transition: all .4s ease;
    }
    .filter-btn:hover { color: #f4efe6; border-color: rgba(226,200,137,0.4); }
    .filter-btn.active { color: #0a0a0a; background: #c9a86a; border-color: #c9a86a; box-shadow: 0 0 30px rgba(201,168,106,0.4); }

    /* ---------- Service cards ---------- */
    .svc {
      position: relative; padding: 2.25rem 1.75rem;
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 18px;
      background: linear-gradient(160deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 100%);
      transition: transform .6s cubic-bezier(.16,.84,.3,1), border-color .6s ease, box-shadow .6s ease, background .6s ease;
      overflow: hidden;
    }
    .svc::before {
      content: ""; position: absolute; top: -50%; left: -50%;
      width: 200%; height: 200%;
      background: radial-gradient(circle at center, rgba(226,200,137,0.08), transparent 60%);
      opacity: 0; transition: opacity .6s ease;
    }
    .svc:hover {
      transform: translateY(-6px);
      border-color: rgba(226,200,137,0.35);
      box-shadow: 0 30px 60px -25px rgba(0,0,0,0.7), 0 0 40px -10px rgba(201,168,106,0.25);
      background: linear-gradient(160deg, rgba(226,200,137,0.04) 0%, rgba(255,255,255,0) 100%);
    }
    .svc:hover::before { opacity: 1; }
    .svc-icon {
      width: 56px; height: 56px;
      display: grid; place-items: center;
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(201,168,106,0.18), rgba(226,200,137,0.05));
      border: 1px solid rgba(226,200,137,0.18);
      color: #e2c889;
      transition: transform .6s cubic-bezier(.16,.84,.3,1);
    }
    .svc:hover .svc-icon { transform: rotate(-6deg) scale(1.05); }

    /* ---------- Inputs ---------- */
    .field {
      width: 100%;
      background: rgba(255,255,255,0.025);
      border: 1px solid rgba(255,255,255,0.08);
      color: #f4efe6;
      padding: 1rem 1.1rem;
      border-radius: 12px;
      font-family: 'Inter', sans-serif; font-size: .95rem;
      transition: all .4s ease;
    }
    .field:focus {
      outline: none;
      border-color: rgba(226,200,137,0.5);
      background: rgba(226,200,137,0.04);
      box-shadow: 0 0 0 4px rgba(226,200,137,0.08);
    }
    .field::placeholder { color: #7a7770; }
    /* Options du <select> : forcer texte noir sur fond clair (le natif est illisible sur fond sombre) */
    select.field option {
      color: #0a0a0a;
      background: #f4efe6;
    }
    select.field option:checked {
      background: #c9a86a;
      color: #0a0a0a;
    }

    /* ---------- WhatsApp flottant ---------- */
    .wa-float {
      position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 60;
      width: 58px; height: 58px;
      border-radius: 50%;
      background: linear-gradient(135deg, #25D366, #128C7E);
      display: grid; place-items: center;
      color: #fff;
      box-shadow: 0 10px 30px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.6);
      animation: waPulse 2.6s ease-in-out infinite;
      transition: transform .3s ease;
    }
    .wa-float:hover { transform: scale(1.08); }
    @keyframes waPulse {
      0%,100% { box-shadow: 0 10px 30px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.45); }
      50%     { box-shadow: 0 10px 30px rgba(37,211,102,0.45), 0 0 0 18px rgba(37,211,102,0); }
    }

    /* ---------- Lightbox ---------- */
    #lightbox {
      position: fixed; inset: 0; z-index: 100;
      background: rgba(5,5,8,0.97);
      backdrop-filter: blur(20px);
      display: none; opacity: 0;
      transition: opacity .5s ease;
    }
    #lightbox.open { display: flex; opacity: 1; }
    #lightbox .lb-content {
      margin: auto;
      position: relative;
      display: inline-flex; flex-direction: column; align-items: center;
    }
    /* Wrapper qui prend exactement la taille de l'image affichée */
    #lightbox .lb-img-wrap {
      position: relative;
      display: inline-block;
      line-height: 0;
      border-radius: 6px;
      overflow: hidden;
      box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    }
    #lightbox img {
      max-width: 92vw; max-height: 86vh;
      width: auto; height: auto;
      display: block;
      transition: opacity .35s ease;
      /* Anti-téléchargement : empêche le drag et la sélection */
      -webkit-user-drag: none;
      user-select: none;
      -webkit-user-select: none;
      -webkit-touch-callout: none; /* iOS : empêche menu long-press */
    }
    /* Couche de protection : watermark tuilé + logo central */
    #lightbox .lb-watermark {
      position: absolute; inset: 0;
      pointer-events: none;
      background-image: url('logo.png');
      background-repeat: repeat;
      background-size: 160px 160px;
      background-position: center;
      opacity: .14;
      mix-blend-mode: screen;
    }
    #lightbox .lb-watermark::after {
      content: ""; position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: min(45%, 320px); height: min(45%, 320px);
      background-image: url('logo.png');
      background-size: contain;
      background-position: center;
      background-repeat: no-repeat;
      opacity: .55;
      mix-blend-mode: screen;
      filter: drop-shadow(0 0 20px rgba(201,168,106,0.4));
    }
    .lb-btn {
      position: absolute; top: 50%; transform: translateY(-50%);
      width: 54px; height: 54px; border-radius: 50%;
      display: grid; place-items: center;
      background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
      color: #f4efe6; cursor: pointer;
      transition: all .3s ease;
    }
    .lb-btn:hover { background: rgba(226,200,137,0.18); border-color: rgba(226,200,137,0.5); }
    .lb-prev { left: 24px; } .lb-next { right: 24px; }
    .lb-close {
      position: absolute; top: 24px; right: 24px;
      width: 48px; height: 48px; border-radius: 50%;
      display: grid; place-items: center;
      background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
      color: #f4efe6; cursor: pointer; transition: all .3s ease;
    }
    .lb-close:hover { background: rgba(255,255,255,0.15); transform: rotate(90deg); }
    .lb-meta {
      position: absolute; left: 0; right: 0; bottom: -40px;
      text-align: center; color: #c8c8d0;
      font-family: 'Cinzel', serif; font-size: .75rem; letter-spacing: .25em;
    }

    /* ---------- Mobile menu ---------- */
    #mmenu {
      position: fixed; inset: 0; z-index: 70;
      background: rgba(8,8,10,0.97);
      backdrop-filter: blur(20px);
      display: none; opacity: 0;
      transition: opacity .4s ease;
    }
    #mmenu.open { display: flex; opacity: 1; }

    /* ---------- Particles canvas ---------- */
    #stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

    /* ---------- Décorateur de séparateur ---------- */
    .divider {
      display: inline-flex; align-items: center; gap: 1rem;
      color: #c9a86a; font-family: 'Cinzel', serif;
      font-size: .68rem; letter-spacing: .4em; text-transform: uppercase;
    }
    .divider::before, .divider::after {
      content: ""; height: 1px; width: 60px;
      background: linear-gradient(90deg, transparent, #c9a86a, transparent);
    }

    /* ---------- À propos – portrait artistique ---------- */
    .portrait-wrap {
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      transform: perspective(1000px);
      transition: transform .8s cubic-bezier(.16,.84,.3,1);
    }
    .portrait-wrap img { width: 100%; height: 100%; object-fit: cover; }
    .portrait-wrap::after {
      content: ""; position: absolute; inset: 0;
      background: linear-gradient(180deg, transparent 0%, rgba(10,10,10,0.45) 100%);
      pointer-events: none;
    }
    .portrait-frame {
      position: absolute; inset: 0;
      box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
      border-radius: 20px; pointer-events: none;
    }

    /* ---------- Reduce motion ---------- */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; }
      html { scroll-behavior: auto; }
    }

    /* ---------- Responsive helpers ---------- */
    @media (max-width: 768px) {
      .gcard { width: 70vw; }
    }