/* ==============================================
   GRIFARTAIX — STYLE PRINCIPAL FINAL (COMPATIBLE MOBILE)
   ============================================== */

/* ======= VARIABLES GLOBALES ======= */
:root {
  --bg-dark: #0f0f10;
  --bg-dark-alt: #1a1a1d;
  --text-light: rgba(255, 255, 255, 0.96);
  --text-dim: rgba(255, 255, 255, 0.85);
  --gold: #D4AF37;
  --radius-xl: 1.2rem;
  --radius-xxl: 1.6rem;
}

/* ======= BASE ======= */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: #fff; }
p, small, li, label, span { color: var(--text-light); }

/* ======= NAVIGATION ======= */
.glass-nav {
  background: rgba(15, 15, 16, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 1000;
}
.nav-link-custom { color: var(--text-light)!important; font-weight: 500; }
.nav-link-custom:hover { color: var(--gold)!important; }
.brand-gold { color: var(--gold)!important; }
.logo-nav {
  height: 36px; width: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}
.logo-nav:hover { transform: scale(1.05); }

/* ==============================================
   BACKGROUND FIXE + OVERLAY (corrigé)
   ============================================== */
.section-fixed {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* ✅ fond figé */
  overflow: hidden;
  z-index: 0;
}

/* Overlay sombre */
.section-fixed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

/* Contenu visible au-dessus */
.section-fixed > * {
  position: relative;
  z-index: 1;
}

/* ===== FONDS ===== */
#hero.section-fixed { background-image: url("image/aiease_1761751232499.jpg"); }
#studio.section-fixed { background-image: url("image/aiease_1761751150310.jpg"); }
#services.section-fixed { background-image: url("image/aiease_1761675944009.jpg"); }
#galerie.section-fixed { background-image: url("image/aiease_1761678768001.jpg"); }

/* ===== Compatibilité mobile iOS ===== */
@supports (-webkit-touch-callout: none) {
  .section-fixed {
    background-attachment: scroll !important;
  }
}

/* ==============================================
   STRUCTURE / ESPACEMENT
   ============================================== */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.bg-dark-alt { background-color: var(--bg-dark-alt); }

/* ==============================================
   BOUTONS / BADGES
   ============================================== */
.badge-soft {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
}

.btn-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-xl);
  color: #000 !important;
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold)!important;
}
.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius-xl);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--bg-dark);
}
.shadow-gold { box-shadow: 0 20px 60px rgba(212, 175, 55, 0.25); }

/* ==============================================
   HERO TAGS
   ============================================== */
.hero-tags { margin-top: 1rem; flex-wrap: wrap; }
.tag-item {
  display: inline-flex; align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-light);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  line-height: 1;
  transition: all 0.3s ease;
}
.tag-item:hover {
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.3);
  color: var(--gold);
}

/* ==============================================
   MOCKUP / GALLERY / CARDS
   ============================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xxl);
  position: relative;
  z-index: 5;
}
.mockup-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  height: 220px;
  overflow: hidden;
}
.mockup-image {
  width: 100%; height: 100%;
  object-fit: contain;
  background-color: #0f0f10;
  opacity: 0.9;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.mockup-logo-wrapper:hover .mockup-image {
  transform: scale(1.05);
  opacity: 1;
}

/* ===== GALLERY ===== */
.gallery-card {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  position: relative;
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.45s;
}
.gallery-card:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }

/* ==============================================
   FORMULAIRE / CONTACT
   ============================================== */
.form-control-dark {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-light);
  border-radius: var(--radius-xl);
}

/* ==============================================
   ANIMATION REVEAL
   ============================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: all 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal-up.revealed {
  opacity: 1;
  transform: none;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 991px) {
  .section-fixed {
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center;
  }
  .section-padding {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
  .hero-tags {
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .tag-item {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
}
.text-light-emphasis {
  color: #d1d2d3 !important;
}
/* Effet de survol sur les cartes services */
.hover-glow {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-glow:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* ==============================================
   CORRECTION OFFSET NAVBAR FIXE
   ============================================== */
body {
  scroll-padding-top: 90px; /* espace pris en compte pour le scroll anchor */
}

@media (min-width: 992px) {
  body {
    scroll-padding-top: 100px; /* un peu plus d’espace sur desktop */
  }
}

/* Correction visuelle pour le haut de chaque section */
section {
  scroll-margin-top: 100px;
}
/* Espace sous la navbar pour le contenu */
header + section,
header + div {
  margin-top: 80px;
}
/* ==============================================
   LISIBILITÉ BOOSTÉE — FORCE OVERRIDE
   ============================================== */
@media (max-width: 768px) {
  html, body, p, li, span, small, label, a, .text-light-emphasis {
    color: #f5f5f5 !important;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
  }

  .glass-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }

  .section-fixed::before {
    background: rgba(0, 0, 0, 0.35) !important;
  }
}
/* ===== PRODUITS SLIDER ===== */
.product-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 1rem;
  background: rgba(255,255,255,0.03);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  opacity: 0.8;
}

.carousel-control-prev,
.carousel-control-next {
  width: 6%;
}

@media (max-width: 768px) {
  .product-img {
    height: 180px;
  }
}
.product-colors {
  width: 100%;        /* s'adapte à la largeur de la carte */
  height: auto;       /* garde les proportions */
  max-height: 120px;  /* limite la hauteur */
  object-fit: contain; /* évite la déformation */
  display: block;     /* s'assure que l'image reste en bloc */
  margin: 0 auto;     /* centre l'image horizontalement */
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .glass-card {
    padding: 1rem;        /* Réduit le padding */
    margin-bottom: 1rem;  /* Espacement entre cartes */
  }
  
  .glass-card .product-img {
    max-width: 80%;       /* Réduit la taille des images */
    height: auto;
    margin: 0 auto 0.5rem auto;
  }

  .glass-card .product-colors {
    max-width: 60%;       /* Réduit les mini-images de couleurs */
    margin: 0 auto;
  }

  .glass-card h3,
  .glass-card p,
  .glass-card .fw-semibold {
    font-size: 0.9rem;    /* Réduit les textes */
  }

  .glass-card .btn {
    font-size: 0.8rem;    /* Boutons plus petits */
    padding: 0.25rem 0.5rem;
  }
}
