/* ==========================================================
   Black Sphère Awards — styles complémentaires à Tailwind
   ========================================================== */

:root {
  --gold: #d4af37;
  --gold-light: #f5e3a1;
  --gold-dark: #a8841a;
}

html { scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ---------- Sphère (logo) ---------- */
.sphere {
  display: inline-block;
  background: radial-gradient(circle at 32% 28%, #fff6d0 0%, #e2c35c 18%, #a8841a 42%, #1a1a1a 72%, #000 100%);
  box-shadow: inset -6px -8px 18px rgba(0,0,0,.8), 0 0 25px rgba(212,175,55,.35);
}
.shadow-gold { box-shadow: 0 10px 40px -10px rgba(212,175,55,.6); }

/* ---------- Texte doré ---------- */
.text-gold-gradient {
  background: linear-gradient(120deg, #f5e3a1 0%, #d4af37 35%, #fff2c2 55%, #c9a227 75%, #a8841a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Boutons ---------- */
.btn-gold, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 5px;
  font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  transition: all .35s ease;
}
.btn-gold {
  color: #0a0a0a;
  background: linear-gradient(135deg, #f5e3a1, #d4af37 50%, #a8841a);
  box-shadow: 0 10px 30px -10px rgba(212,175,55,.7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(212,175,55,.9); filter: brightness(1.08); }
.btn-outline { color: #f5e3a1; border: 1px solid rgba(212,175,55,.55); background: rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.btn-outline:hover { background: var(--gold); color: #0a0a0a; }

/* ---------- Header ---------- */
#header.scrolled { background: rgba(5,5,5,.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(212,175,55,.15); }
.nav-link { position: relative; color: #e5e5e5; transition: color .3s; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--gold); transition: width .35s; }
.nav-link:hover, .nav-link.active { color: var(--gold-light); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.mobile-link { color: #fff; transition: color .3s; }
.mobile-link:hover { color: var(--gold); }
.burger-line { display: block; width: 20px; height: 1.5px; background: var(--gold-light); transition: transform .35s, opacity .35s; }
#menuBtn.open .burger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
#menuBtn.open .burger-line:nth-child(2) { opacity: 0; }
#menuBtn.open .burger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
#mobileMenu { background: rgba(5,5,5,.98); }
#mobileMenu.open { transform: translateX(0); }

/* ---------- Hero ---------- */
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  transition: opacity 1.6s ease, transform 7s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-dot { width: 28px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); transition: all .4s; }
.hero-dot.active { background: var(--gold); width: 48px; }

.count-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 70px; height: 82px; border-radius: 1rem;
  background: rgba(10,10,10,.55); border: 1px solid rgba(212,175,55,.3); backdrop-filter: blur(10px);
}
.count-box span { font-family:"Montserrat",sans-serif; font-size: 2rem; font-weight: 700; color: #f5e3a1; line-height: 1; }
.count-box small { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: #a3a3a3; margin-top: .35rem; }
@media (min-width: 640px) { .count-box { width: 96px; height: 104px; } .count-box span { font-size: 2.8rem; } .count-box small { font-size: .65rem; } }

.text-gold-200\/90 { color: rgba(245,227,161,.9); }
.marquee { animation: marquee 35s linear infinite; width: max-content; }
@keyframes marquee { to { transform: translateX(-50%); } }

.particle { position: absolute; bottom: -10px; border-radius: 50%; background: var(--gold-light); opacity: 0; animation: rise linear infinite; box-shadow: 0 0 8px var(--gold); }
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

/* ---------- Titres de sections ---------- */
.section-kicker { display: flex; align-items: center; gap: .75rem; font-size: .75rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.section-kicker::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.section-title { margin-top: 1rem; font-family:"Montserrat",sans-serif; font-weight: 700; font-size: 2.6rem; line-height: 1.05; color: #fff; }
@media (min-width: 640px) { .section-title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .section-title { font-size: 4.2rem; } }

/* ---------- Images encadrées ---------- */
.img-frame { position: relative; overflow: hidden; border-radius: 1.5rem; border: 1px solid rgba(212,175,55,.2); background: #121212; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.img-frame:hover img { transform: scale(1.07); }

/* Image de secours si une photo ne charge pas */
img.img-fallback { object-fit: cover; background: radial-gradient(circle at 30% 25%, #3a2f10, #121212 70%); }

/* ---------- Valeurs & chiffres ---------- */
.value-card { padding: 1.5rem; border-radius: 1.25rem; background: linear-gradient(160deg, rgba(212,175,55,.08), rgba(255,255,255,.02)); border: 1px solid rgba(212,175,55,.18); transition: transform .4s, border-color .4s; }
.value-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.5); }
.value-icon { width: 48px; height: 48px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.35); color: var(--gold-light); }
.stat { background: #0a0a0a; padding: 2.5rem 1rem; text-align: center; }
.stat .counter { font-family:"Montserrat",sans-serif; font-size: 3.2rem; font-weight: 700; color: #f5e3a1; line-height: 1; }
.stat p { margin-top: .5rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #a3a3a3; }
@media (min-width: 1024px) { .stat .counter { font-size: 4.2rem; } }

/* ---------- Catégories ---------- */
.cat-card { position: relative; display: block; height: 340px; border-radius: 1.5rem; overflow: hidden; border: 1px solid rgba(212,175,55,.15); cursor: pointer; text-align: left; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease, filter 1s; filter: grayscale(35%); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.95) 10%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.1)); transition: background .5s; }
.cat-card:hover img { transform: scale(1.1); filter: grayscale(0); }
.cat-card:hover::after { background: linear-gradient(to top, rgba(0,0,0,.95) 10%, rgba(168,132,26,.35) 70%, rgba(0,0,0,.05)); }
.cat-card .cat-body { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 1.5rem; }
.cat-card .cat-num { position: absolute; z-index: 2; top: 1.25rem; left: 1.5rem; font-family:"Montserrat",sans-serif; font-size: 1.1rem; color: var(--gold-light); letter-spacing: .1em; }
.cat-card .cat-desc { max-height: 0; opacity: 0; overflow: hidden; transition: all .5s ease; }
.cat-card:hover .cat-desc, .cat-card:focus-visible .cat-desc { max-height: 90px; opacity: 1; margin-top: .5rem; }
@media (hover: none) { .cat-card .cat-desc { max-height: 90px; opacity: 1; margin-top: .5rem; } }
@media (min-width: 1024px) { .cat-card.wide { grid-column: span 2; } }

/* ---------- Présélections (nominés) ---------- */
.preselect-item { position: relative; display: block; width: 100%; aspect-ratio: 1/1; overflow: hidden; cursor: zoom-in; animation: fadeUp .6s ease both; border: 1px solid rgba(212,175,55,.4); }
.preselect-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s; }
.preselect-item:hover img { transform: scale(1.05); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Galerie ---------- */
.gallery-item { position: relative; display: block; width: 100%; border-radius: 1.1rem; overflow: hidden; cursor: zoom-in; break-inside: avoid; border: 1px solid rgba(212,175,55,.12); margin-bottom: 1rem; }
.gallery-item img { width: 100%; display: block; transition: transform 1s, filter .6s; }
.gallery-item::after { content: "＋"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--gold-light); background: rgba(0,0,0,.5); opacity: 0; transition: opacity .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
#lightbox.open { display: flex; }

/* ---------- Timeline ---------- */
.timeline-item { position: relative; padding-left: 2rem; }
.timeline-dot { position: absolute; left: -9px; top: 4px; width: 17px; height: 17px; border-radius: 9999px; background: #0a0a0a; border: 2px solid var(--gold); box-shadow: 0 0 15px rgba(212,175,55,.6); }

/* ---------- Témoignages ---------- */
.testimonial { padding: 2rem; border-radius: 1.5rem; background: linear-gradient(160deg, rgba(212,175,55,.08), rgba(255,255,255,.015)); border: 1px solid rgba(212,175,55,.18); }
.testimonial p { font-family:"Montserrat",sans-serif; font-size: 1.45rem; font-style: italic; color: #f5f5f5; line-height: 1.4; }
.testimonial figcaption { margin-top: 1.5rem; display: flex; align-items: center; gap: .9rem; font-size: .9rem; }
.testimonial figcaption img { width: 52px; height: 52px; border-radius: 9999px; object-fit: cover; border: 2px solid var(--gold); }
.testimonial small { color: #a3a3a3; }

/* ---------- Formulaire & réseaux ---------- */
.field { width: 100%; padding: .95rem 1.15rem; border-radius: .9rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #fff; outline: none; transition: border-color .3s, background .3s; }
.field::placeholder { color: #737373; }
.field:focus { border-color: var(--gold); background: rgba(212,175,55,.06); }
.field.error { border-color: #ef4444; }
select.field option { background: #121212; }
/* iOS zoome au focus si font-size < 16px */
input, select, textarea { font-size: 16px; }
.social-btn { width: 48px; height: 48px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(212,175,55,.4); color: var(--gold-light); transition: all .3s; }
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { background: var(--gold); color: #0a0a0a; transform: translateY(-3px); }

/* ---------- Footer ---------- */
.footer-title { font-family:"Montserrat",sans-serif; font-size: 1.4rem; color: #fff; margin-bottom: 1.1rem; }
.footer-link { transition: color .3s; }
.footer-link:hover { color: var(--gold-light); }
#toTop.show { opacity: 1; pointer-events: auto; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity: 1; transform: none; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
