/* ============================================================
   CORRECTIONS — site J.art V7
   Date : 2026-05-10
   Fixes : 4 (boutons), 7 (fade-up), 8 (hero mariage)
   ============================================================ */

/* Masquer le CTA "Réserver ♥" de la nav (retiré 11/05) */
.nav-cta { display: none !important; }

/* ── Fix overflow horizontal global (mobile + desktop) ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; }

/* Mobile : éléments qui dépassent encore */
@media (max-width: 480px) {
  /* Stats hero accueil — passer en colonne unique */
  .hero-stats-inner { grid-template-columns: 1fr !important; padding: 1rem 1rem !important; }
  .hero-stat { padding: .55rem 0 !important; border-left: none !important; border-top: 1px solid rgba(201,169,110,.12); }
  .hero-stat:first-child { border-top: none; }
  /* Décoratif ambient — éviter overflow */
  .ambient-bg__wind, .ambient-bg__halo { max-width: 100vw; }
}

/* Parchemin : améliorer le contraste des boutons "Je réfléchis encore" et "Besoin d'en discuter ?" */
body.rec-parchment .rec-action-card {
  background: rgba(120, 85, 30, .12) !important;
  border: 1.5px solid var(--parch-gold, #b8915c) !important;
  color: var(--parch-ink, #2a1c4d) !important;
}
body.rec-parchment .rec-action-card:hover {
  background: rgba(120, 85, 30, .22) !important;
}
body.rec-parchment .rec-action-card .rec-action-card__title,
body.rec-parchment .rec-action-card .rec-action-card__sub {
  color: var(--parch-ink, #2a1c4d) !important;
}
body.rec-parchment .rec-action-card .rec-action-card__sub {
  color: var(--parch-ink-soft, #4a3520) !important;
  opacity: .85;
}

/* ─────────────────────────────────────────────────────────────────────────
   Layout "détail" générique — sidebar gauche + zone centrale.
   Inspiré de galerie.html (.gal-detail). Utilisé sur prestations.html et tarifs.html
   pour laisser passer la vidéo d'arrière-plan.
   ───────────────────────────────────────────────────────────────────────── */
.detail-layout {
  position: relative; z-index: 2;
  min-height: 100vh;
  padding: calc(var(--nav-h, 72px) + 1.5rem) 4vw 4rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  max-width: 1600px;
  margin: 0 auto;
}
.detail-side {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 1.5rem);
  align-self: start;
  max-height: calc(100vh - var(--nav-h, 72px) - 3rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.detail-side__title {
  font-size: .68rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--or);
  text-align: center; padding-bottom: .8rem;
  border-bottom: 1px solid var(--bordure);
}
.detail-side__title::before,
.detail-side__title::after {
  content: '✦'; color: var(--or-clair); font-size: .55rem;
  margin: 0 .8em; vertical-align: middle; opacity: .6;
}
.detail-card {
  display: grid; grid-template-columns: 60px 1fr;
  gap: .9rem; align-items: center;
  padding: .75rem 1rem;
  background: rgba(12,10,8,.75);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  text-decoration: none; color: var(--blanc-chaud);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease, background .3s ease;
  cursor: pointer; text-align: left;
  font-family: inherit;
  width: 100%;
}
.detail-card:hover { border-color: var(--or); transform: translateX(3px); }
.detail-card.is-active {
  border-color: var(--or-clair);
  box-shadow: 0 0 0 1px rgba(232,196,108,.30), 0 0 24px rgba(232,196,108,.18);
  background: rgba(20,16,10,.85);
}
.detail-card__thumb {
  width: 60px; height: 60px; border-radius: 6px;
  background: linear-gradient(135deg, #2a1f12, #16110a);
  display: grid; place-items: center;
  color: var(--or-clair); font-size: 1.5rem;
  border: 1px solid var(--bordure);
}
.detail-card__info { display: flex; flex-direction: column; gap: .2rem; }
.detail-card__name {
  font-family: var(--serif); font-size: 1rem;
  color: var(--blanc-chaud); line-height: 1.15;
}
.detail-card__sub {
  font-size: .72rem; color: rgba(200,180,150,.7);
  letter-spacing: .04em;
}

/* Zone centrale */
.detail-main { position: relative; }
.detail-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--nav-h, 72px) - 5rem);
  text-align: center; padding: 2rem 1rem;
}
/* Sur desktop : décaler l'empty state à gauche pour qu'il apparaisse centré
   par rapport au viewport (la sidebar prend 300px à gauche) */
@media (min-width: 901px) {
  .detail-empty {
    margin-left: calc(-300px - 1.5rem);
  }
}
.detail-empty .surtitre { color: var(--or); font-size: .75rem; letter-spacing: .25em; margin-bottom: 1rem; }
.detail-empty h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--blanc-chaud);
  line-height: 1.1; margin-bottom: 1rem;
}
.detail-empty h1 em { color: var(--or-clair); font-style: italic; }
.detail-empty p { color: var(--gris-clair); max-width: 500px; margin: 0 auto 1.5rem; font-size: 1rem; }
.detail-empty__hint {
  color: var(--or); font-size: .75rem; letter-spacing: .2em;
  text-transform: uppercase; opacity: .8;
}
.detail-empty__hint::before { content: '←  '; }

.detail-content { display: none; padding: 1rem 0; position: relative; }
.detail-content.is-shown { display: block; animation: detailFadeIn .5s ease; }

/* Bouton de fermeture (croix) en haut à droite du détail */
.detail-close {
  position: absolute;
  top: 0; right: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(12, 10, 8, .7);
  border: 1px solid var(--or-bord);
  color: var(--or-clair);
  font-size: 1.1rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  font-family: inherit;
  transition: var(--trans);
  z-index: 2;
}
.detail-close:hover {
  background: var(--or-pale);
  transform: rotate(90deg);
  border-color: var(--or);
}
@keyframes detailFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.detail-content__title {
  font-family: var(--serif); font-weight: 400;
  color: var(--blanc-chaud);
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1;
  margin-bottom: 1.5rem; text-align: center;
}
.detail-content__title em { color: var(--or-clair); font-style: italic; }

/* Responsive — sur mobile, le fixed devient flow normal pour éviter le chevauchement */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; gap: 1.5rem; padding: calc(var(--nav-h, 72px) + 1rem) 1.2rem 3rem; }
  .detail-side { position: static; max-height: none; }
  .detail-empty {
    position: static;
    min-height: 50vh;
    padding: 1.5rem .5rem;
  }
}

/* Masquer les 4 boutons rapides du chatbot sur toutes les pages (demande Julien 11/05) */
.chat-rapides,
#chat-rapides { display: none !important; }

/* Vidéo d'arrière-plan du chat (panneau assistant) */
.chat-fenetre-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  border-radius: inherit;
}
.chat-fenetre-bg__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
  mix-blend-mode: screen;
}
.chat-fenetre-bg__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(6,6,8,.25) 0%,
    rgba(6,6,8,.45) 60%,
    rgba(6,6,8,.70) 100%);
}
/* Tout le contenu interne du chat doit passer au-dessus de la vidéo */
.chat-fenetre > *:not(.chat-fenetre-bg) { position: relative; z-index: 1; }

/* Mobile : transformer la sphère circulaire en plein écran rectangulaire */
@media (max-width: 720px) {
  .chat-fenetre {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    padding: 1.2rem .8rem !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
  }
  .chat-photo-bubble {
    transform: scale(.55);
    transform-origin: center;
    opacity: .55;
  }
  /* Fix saisie chat : pas de débordement horizontal */
  .chat-saisie {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding-left: .8rem !important;
    padding-right: .8rem !important;
  }
  .chat-input {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ── Bulles photos flottantes dans le chat ── */
/* z-index 0 = entre la vidéo de fond (sans z-index) et le contenu (z-index:1) */
.chat-fenetre > .chat-photo-bubbles {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  border-radius: inherit;
}
.chat-photo-bubble {
  position: absolute;
  left: var(--bx, 50%);
  top:  var(--by, 50%);
  width:  var(--bs, 100px);
  height: var(--bs, 100px);
  border-radius: 50%;
  background-image: var(--bimg);
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(201, 169, 110, .6);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, .25) inset,
    0 0 20px rgba(201, 169, 110, .35),
    0 0 40px rgba(124, 58, 237, .2);
  opacity: 0;
  animation: chatBubbleLife 28s ease-in-out infinite;
  filter: saturate(.85) contrast(1.05);
  will-change: transform, opacity;
}
.chat-photo-bubble::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 55%);
  pointer-events: none;
}
/* Cycle de vie d'une bulle : entre par la gauche, dérive, sort par la droite.
   Avec 8 bulles staggerées sur un cycle de 28s, max ~5 visibles à la fois. */
@keyframes chatBubbleLife {
  0%   { opacity: 0; transform: translate(-60px, 40px) scale(.55) rotate(-8deg); }
  10%  { opacity: .92; transform: translate(0, 10px) scale(1) rotate(0deg); }
  35%  { transform: translate(25px, -25px) scale(1.05) rotate(3deg); }
  55%  { transform: translate(40px, 15px) scale(1) rotate(-3deg); }
  65%  { opacity: .92; transform: translate(55px, 0px) scale(.95) rotate(2deg); }
  72%  { opacity: 0; transform: translate(90px, -10px) scale(.6) rotate(10deg); }
  100% { opacity: 0; transform: translate(90px, -10px) scale(.6); }
}
/* Override la preference reduced-motion seulement pour ces bulles décoratives */
@media (prefers-reduced-motion: reduce) {
  .chat-photo-bubble {
    animation-duration: var(--bdur, 20s) !important;
  }
}
@media (max-width: 720px) {
  .chat-photo-bubble { transform: scale(.7); }
}

/* Vidéo d'arrière-plan globale (ajoutée 11/05) — utilisable sur n'importe quelle page */
.page-bg-video {
  position: fixed; inset: 0; z-index: -2;
  pointer-events: none; overflow: hidden;
}
.page-bg-video__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: .70;
  mix-blend-mode: screen;
  background: #060608;
}
@media (min-aspect-ratio: 16/10) {
  .page-bg-video__media { object-fit: cover; }
}
.page-bg-video__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(6,6,8,.25) 0%,
    rgba(6,6,8,.40) 50%,
    rgba(6,6,8,.65) 100%);
}

/* ---------- FIX 4 : Boutons or premium / outline or ---------- */
.btn-or-premium {
  background: var(--or);
  color: var(--noir);
  font-weight: 700;
  border: 1px solid var(--or);
  padding: .9rem 1.8rem;
  border-radius: 4px;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .3s ease, transform .2s ease, box-shadow .3s ease;
  text-decoration: none;
}
.btn-or-premium:hover {
  background: var(--or-clair);
  box-shadow: var(--ombre-or, 0 6px 20px rgba(201,169,110,.35));
  transform: translateY(-2px);
}
.btn-or-premium:disabled,
.btn-or-premium[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-or {
  background: transparent;
  color: var(--or);
  border: 1px solid var(--or-bord);
  padding: .9rem 1.8rem;
  border-radius: 4px;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all .3s ease;
  text-decoration: none;
}
.btn-outline-or:hover {
  background: var(--or-pale);
  border-color: var(--or);
  color: var(--or-clair);
}

/* ---------- FIX 7 : fade-up — fallback no-JS et reduced-motion ---------- */
/* Si JS désactivé, fade-up reste visible (no-js fallback via @media) */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Fallback de sécurité : si .visible n'a pas été ajouté après 1.5s
   (par exemple si IntersectionObserver bloqué), forcer la visibilité
   via animation CSS qui démarre automatiquement */
@keyframes fade-up-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fade-up-fallback 1.5s ease 1.5s forwards;
}
.fade-up.visible {
  /* Quand IntersectionObserver déclenche, on annule l'animation fallback */
  animation: none;
}

/* ---------- FIX 8 : Hero pages avec background-image ---------- */
/* Variante pour pages prestations (mariage, galerie, etc.) avec image en fond */
.page-hero--mariage .page-hero-bg {
  background-image: url('../images/backgrounds/bg-galerie.webp');
  opacity: .35;
}
.page-hero--galerie .page-hero-bg {
  background-image: url('../images/backgrounds/bg-galerie.webp');
  opacity: .35;
}
.page-hero--prestations .page-hero-bg {
  background-image: url('../images/backgrounds/bg-prestations.webp');
  opacity: .35;
}
.page-hero--tarifs .page-hero-bg {
  background-image: url('../images/backgrounds/bg-tarifs.webp');
  opacity: .35;
}
.page-hero--contact .page-hero-bg {
  background-image: url('../images/backgrounds/bg-prestations.webp');
  opacity: .25;
}
.page-hero--apropos .page-hero-bg {
  background-image: url('../images/backgrounds/bg-galerie.webp');
  opacity: .25;
}

/* Si pas de variante, le hero garde sa hauteur 38vh standard.
   Mais on ajoute un fallback gradient si la background-image rate */
.page-hero {
  background: var(--noir-2) linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.7) 100%);
}

/* ---------- BONUS : Banner galerie en cours ---------- */
.galerie-en-cours-banner {
  background: linear-gradient(135deg, rgba(201,169,110,.15), rgba(201,169,110,.05));
  border: 1px solid var(--or-bord);
  border-radius: 8px;
  padding: 1.2rem 1.6rem;
  margin: 2rem auto;
  max-width: 720px;
  text-align: center;
  color: var(--or-clair);
  font-size: .92rem;
}
.galerie-en-cours-banner strong {
  color: var(--or);
  display: block;
  margin-bottom: .4rem;
  font-size: 1rem;
}

/* ---------- BONUS : Liens sociaux désactivés (jusqu'à URL réelles) ---------- */
.social-todo {
  opacity: .5;
  pointer-events: none;
  cursor: not-allowed;
}
.social-todo::after {
  content: " (bientôt)";
  font-size: .7em;
  opacity: .6;
}

/* ============================================================
   FIX RECAPITULATIF — harmonisation noir/or & layout détail
   ============================================================ */

/* Bug du grid : le ::before du li occupe une cellule, le price tombe
   à la ligne suivante. On explicite 4 colonnes pour absorber ::before. */
.rec-list li {
  grid-template-columns: 14px 1fr auto auto !important;
  align-items: center;
  gap: 1rem;
  padding: .65rem 0 .65rem .25rem;
}
.rec-list li::before {
  margin-right: 0 !important; /* le gap fait le travail */
  font-size: 1.1em;
  line-height: 1;
}
.rec-list .duration {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rec-list .price {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* TOTAL TTC : passer du mauve à l'or pour cohérence charte noir/or */
.rec-total__label {
  color: #c9a96e !important; /* var(--or) */
  font-weight: 600;
}
.rec-total {
  border-top-color: rgba(201,169,110,.35) !important;
  margin-top: 1rem !important;
  padding-top: 1.4rem !important;
}
.rec-total__amount {
  text-shadow: 0 2px 18px rgba(201,169,110,.4) !important;
}

/* Sous-titre "Options choisies" plus visible */
.rec-subtitle {
  margin-top: 1.8rem !important;
  margin-bottom: 1rem !important;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(201,169,110,.18);
}

/* Resume rows : meilleurs séparateurs */
.rec-resume__row {
  border-bottom-color: rgba(201,169,110,.18) !important;
}
.rec-resume__row span:first-child {
  letter-spacing: .02em;
}

/* Cards : padding plus généreux et hover doux */
.rec-card {
  transition: border-color .35s ease, box-shadow .35s ease;
}
.rec-card:hover {
  border-color: rgba(232,196,108,.32);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(232,196,108,.05) inset;
}

/* Si la liste d'options affichée est concatenée, ajouter un retour
   visuel propre via line-height et lettre-spacing */
[data-rec="options"],
.rec-options-list {
  line-height: 1.7;
  letter-spacing: .01em;
}

/* ============================================================
   PLACEHOLDERS PHOTOS prestation (en attendant vraies photos)
   ============================================================ */

/* Quand une carte tarif a la classe --placeholder, on affiche un bel
   espace propre avec une icône appareil photo + nom de prestation */
.tar-card__photo--placeholder {
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(232,196,108,.10) 0%, rgba(20,12,40,.85) 100%) !important;
}
.tar-card__photo--placeholder::after {
  content: '📷';
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  opacity: .25;
  filter: grayscale(.5) sepia(1) hue-rotate(-15deg);
  pointer-events: none;
}
.tar-card__placeholder-label {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.4rem;
  font-style: italic;
  color: rgba(232,196,108,.55);
  letter-spacing: .04em;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  z-index: 2;
}

/* Quand une vraie image <img> est ajoutée, on neutralise les styles
   placeholder (le HTML n'aura plus la classe --placeholder) */
.tar-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   BOUTONS TYPÉS — Charte visuelle admin
   - .btn-bleu : actions importantes/structurelles (Modifier, Enregistrer, Activer)
   - .btn-noir : actions neutres / secondaires (Aperçu, Retour, Voir)
   - .btn-rouge : actions destructives (Supprimer, Réinitialiser)
   ═══════════════════════════════════════════════════════════════════ */
.btn-bleu,
.btn-noir,
.btn-rouge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-bleu svg, .btn-noir svg, .btn-rouge svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Bleu : actions importantes */
.btn-bleu {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(59,130,246,.22);
}
.btn-bleu:hover {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(59,130,246,.32);
  transform: translateY(-1px);
}
.btn-bleu:active { transform: translateY(0); }
.btn-bleu:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Noir : actions neutres */
.btn-noir {
  background: #14141a;
  color: #e8e0d0;
  border: 1px solid rgba(232,224,208,.18);
}
.btn-noir:hover {
  background: #1c1c24;
  border-color: rgba(232,224,208,.32);
  transform: translateY(-1px);
}
.btn-noir:active { transform: translateY(0); }
.btn-noir:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Rouge : destructeurs */
.btn-rouge {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.btn-rouge:hover { background: #dc2626; border-color: #dc2626; transform: translateY(-1px); }
.btn-rouge:active { transform: translateY(0); }

/* Versions ghost (contour seulement) — utiles dans les cartes denses */
.btn-bleu-ghost {
  background: transparent;
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,.5);
  padding: .65rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .18s ease;
  display: inline-flex; align-items: center; gap: .45rem;
  text-decoration: none;
}
.btn-bleu-ghost:hover { background: rgba(59,130,246,.10); border-color: #3b82f6; color: #93c5fd; }

.btn-noir-ghost {
  background: transparent;
  color: #c9c0b0;
  border: 1px solid rgba(232,224,208,.22);
  padding: .65rem 1.15rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .18s ease;
  display: inline-flex; align-items: center; gap: .45rem;
  text-decoration: none;
}
.btn-noir-ghost:hover { background: rgba(255,255,255,.04); border-color: rgba(232,224,208,.40); }

/* ════════════════════════════════════════════════════════════
   FIX boutons CTA dashboard : bleu → or (charte J.art)
   Override de la classe .btn-bleu utilisée dans admin-dashboard.html
   sur les 6 cartes (Apparence/Accueil/Prestations/Galeries/Réservation/
   Contact/Assistant). Conserve la sémantique du nom mais en or charte.
   ════════════════════════════════════════════════════════════ */
.btn-bleu,
.btn-primary,
.btn-modifier,
.btn-gerer,
.btn-configurer,
.ad-card__footer .btn-bleu,
.ad-feature__actions .btn-bleu,
.action-card .btn,
.dashboard-card .btn-action {
  background: linear-gradient(135deg, #c4a35b 0%, #e8b986 100%) !important;
  color: #0a0a0a !important;
  border: 1px solid #c4a35b !important;
  font-weight: 600 !important;
  transition: all .25s ease !important;
}
.btn-bleu:hover,
.btn-primary:hover,
.btn-modifier:hover,
.btn-gerer:hover,
.btn-configurer:hover,
.ad-card__footer .btn-bleu:hover,
.ad-feature__actions .btn-bleu:hover,
.action-card .btn:hover,
.dashboard-card .btn-action:hover {
  background: linear-gradient(135deg, #e8b986 0%, #c4a35b 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196, 163, 91, .35);
}

/* ════════════════════════════════════════════════════════════
   MODALE Mot de passe (admin-dashboard.html)
   ════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: #141418;
  border: 1px solid #c4a35b;
  border-radius: 12px;
  padding: 2rem;
  width: min(440px, 92vw);
  color: #f1f1f3;
  font-family: inherit;
}
.modal-card h3 { color: #c4a35b; margin-top: 0; font-family: var(--serif, 'Bodoni Moda', serif); font-weight: 500; }
.modal-card label {
  display: block; margin: 1rem 0;
  font-size: .9rem; color: #a7a7b3;
}
.modal-card input {
  width: 100%; padding: .6rem .8rem; margin-top: .3rem;
  background: #0a0a0a; border: 1px solid #2a2a33;
  border-radius: 6px; color: #fff;
  font-family: inherit; font-size: .92rem;
}
.modal-card input:focus { outline: none; border-color: #c4a35b; }
.modal-actions {
  display: flex; gap: .8rem; justify-content: flex-end;
  margin-top: 1.5rem;
}
.modal-actions button {
  padding: .55rem 1.1rem;
  border: 1px solid #2a2a33; background: #0a0a0a; color: #f1f1f3;
  border-radius: 6px; cursor: pointer; font-family: inherit; font-size: .88rem;
}
.modal-actions button:hover { border-color: #c4a35b; }
.modal-hint {
  font-size: .8rem; color: #8a8a95;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid #2a2a33;
  line-height: 1.5;
}



/* === FIX-NAV-BURGER-MOBILE-2026-05-27 === */
/* 1) Anti-débordement horizontal global */
html, body { overflow-x: hidden; max-width: 100vw; }

/* 2) Bascule en burger PLUS TÔT (au lieu de 720px) car la nav dépassait à 1280px */
@media (max-width: 1280px) {
  .nav > a, .nav > .nav-cta, .nav > .header-cta, .nav > ul { display: none !important; }
  .nav { gap: 0 !important; padding: 0 16px !important; justify-content: space-between !important; }
  .hamburger { display: flex !important; position: relative !important; }
  /* Espace client en CTA -> réduire en mode tablette */
  .nav-cta, .header-cta { display: none !important; }
}

/* 3) Sur desktop large : resserrer la nav pour qu'elle tienne entre 1100 et 1400px */
@media (min-width: 1281px) and (max-width: 1500px) {
  .nav { gap: 16px !important; }
  .nav a { font-size: 14px !important; letter-spacing: 0.08em !important; }
  .nav-cta, .header-cta { padding: 8px 14px !important; font-size: 13px !important; }
}

/* 4) Burger toujours visible et bien placé (à droite, dans l'écran) */
.hamburger {
  right: 16px !important;
  left: auto !important;
  z-index: 1001;
}

/* 5) Bouton assistant : plus petit et avec marge sur mobile */
@media (max-width: 720px) {
  .assistant-bubble, .jart-assistant-bubble, [class*="assistant-bubble"] {
    width: 56px !important;
    height: 56px !important;
    bottom: 16px !important;
    right: 16px !important;
  }
  .assistant-bubble svg, .jart-assistant-bubble svg { width: 24px !important; height: 24px !important; }
  /* badge "EN ATTENTE" hors écran sur mobile -> masquer */
  .assistant-status-badge, [class*="status-badge"] { display: none !important; }
}

/* 6) Nav mobile (panneau ouvert) : occuper l'écran sans déborder */
@media (max-width: 1280px) {
  .nav-mobile, .nav.is-open, .mobile-menu {
    width: 100% !important;
    max-width: 100vw !important;
    right: 0 !important;
    left: auto !important;
  }
}
/* === FIN FIX-NAV-BURGER-MOBILE-2026-05-27 === */


/* fix nav-links alias */
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; list-style: none; padding: 0; margin: 0 auto 0 auto; flex-wrap: nowrap; }
.nav-links li { list-style: none; }
.nav-links a, .nav-liens a, header nav a { font-size: .78rem; letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; color: var(--gris-clair, #c9c9c9) !important; transition: color .25s ease; text-decoration: none; }
.nav-links a:hover, .nav-links a.active, .nav-liens a:hover, .nav-liens a.active, header nav a:hover, header nav a.active { color: var(--or, #d4af72) !important; }
@media (max-width: 900px) {
  .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(6,6,8,.96); flex-direction: column; padding: 2rem; gap: 1.5rem; z-index: 998; }
  .nav-links.open { display: flex; }
}


/* fix readability legales (cgv, politique, mentions) */
body .container ul, body .container ol, body .container li { color: var(--gris-clair, #a7a7b3) !important; line-height: 1.8; }
body .container ul li, body .container ol li { margin: .4rem 0; font-size: .97rem; }
body .container li strong { color: var(--blanc-chaud, #e8e0d0); }
body .container li em { color: var(--gris-clair, #a7a7b3); font-style: italic; }
/* Exception : ne pas appliquer aux nav-links */
/* removed: was forcing inherit which broke nav color */


/* fix parrainage overlap signature artistique */
.parrainage-bg-video { z-index: 0 !important; }
.parrainage-bg-video video { opacity: .08 !important; filter: blur(2px) saturate(.7) brightness(.7); }
.parrainage-bg-video::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(6,6,8,.65) 0%, rgba(6,6,8,.85) 60%, rgba(6,6,8,.95) 100%); pointer-events: none; z-index: 1; }
body main, body .container, .parrainage-etapes, .parrainage-hero, .parrainage-form, .parrainage-avantages, section { position: relative; z-index: 2; }
header.header { z-index: 100 !important; }


/* fix presta-btn-grid reservation */
.presta-btn-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin: .6rem 0 1.2rem; }
.presta-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1rem; background: rgba(20,16,10,.55); border: 1px solid rgba(212,175,114,.25); border-radius: 12px; color: var(--blanc-chaud, #e8e0d0); font-size: .85rem; font-family: var(--sans, Inter); letter-spacing: .04em; cursor: pointer; transition: all .2s ease; }
.presta-btn:hover { background: rgba(212,175,114,.12); border-color: rgba(212,175,114,.55); transform: translateY(-1px); }
.presta-btn.active { background: linear-gradient(180deg, rgba(212,175,114,.18), rgba(212,175,114,.06)); border-color: var(--or, #c4a358); color: var(--or, #c4a358); box-shadow: 0 0 0 1px rgba(196,163,88,.3) inset, 0 8px 20px rgba(196,163,88,.15); }
@media (max-width: 600px) {
  .presta-btn-grid { grid-template-columns: repeat(2, 1fr); }
  .presta-btn { font-size: .8rem; padding: .7rem .5rem; }
}
