/* ==========================================================
   Black Sphère Awards — styles complémentaires à Tailwind
   ========================================================== */

:root {
  --gold: #ff6502;
  --gold-light: #ff6502;
  --gold-dark: #d95300;
}

html { scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ---------- Sphère (logo) ---------- */
.sphere {
  display: inline-block;
  background: radial-gradient(circle at 32% 28%, #ff8a3d 0%, #ff7a26 18%, #d95300 42%, #170f47 72%, #000 100%);
  box-shadow: inset -6px -8px 18px rgba(0,0,0,.8), 0 0 25px rgba(255,101,2,.35);
}
.shadow-gold { box-shadow: 0 10px 40px -10px rgba(255,101,2,.6); }

/* ---------- Texte doré ---------- */
.text-gold-gradient {
  background: linear-gradient(120deg, #ff6502 0%, #ff6502 35%, #ff8a3d 55%, #f25c00 75%, #d95300 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: #080321;
  background: linear-gradient(135deg, #ff6502, #ff6502 50%, #d95300);
  box-shadow: 0 10px 30px -10px rgba(255,101,2,.7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(255,101,2,.9); filter: brightness(1.08); }
.btn-outline { color: #ff6502; border: 1px solid rgba(255,101,2,.55); background: rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.btn-outline:hover { background: var(--gold); color: #080321; }

/* ---------- Header ---------- */
#header.scrolled { background: rgba(5,2,24,.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,101,2,.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,2,24,.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(8,3,33,.55); border: 1px solid rgba(255,101,2,.3); backdrop-filter: blur(10px);
}
.count-box span { font-family:"Montserrat",sans-serif; font-size: 2rem; font-weight: 700; color: #ff6502; 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(255,101,2,.9); }
.marquee { animation: marquee 140s 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(255,101,2,.2); background: #0f0836; }
.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%, #3a1a0a, #0f0836 70%); }

/* ---------- Valeurs & chiffres ---------- */
.value-card { padding: 1.5rem; border-radius: 1.25rem; background: linear-gradient(160deg, rgba(255,101,2,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,101,2,.18); transition: transform .4s, border-color .4s; }
.value-card:hover { transform: translateY(-6px); border-color: rgba(255,101,2,.5); }
.value-icon { width: 48px; height: 48px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: rgba(255,101,2,.12); border: 1px solid rgba(255,101,2,.35); color: var(--gold-light); }
.stat { background: #080321; padding: 2.5rem 1rem; text-align: center; }
.stat .counter { font-family:"Montserrat",sans-serif; font-size: 3.2rem; font-weight: 700; color: #ff6502; 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(255,101,2,.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(217,83,0,.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; } }

/* « Voir plus » : catégories restantes */
.category-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s ease; }
.category-more > ul { overflow: hidden; min-height: 0; padding-top: 0; }
.category-more.open { grid-template-rows: 1fr; }
.category-more.open > ul { padding-top: 2rem; }
.more-cat { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: 1.1rem; background: linear-gradient(160deg, rgba(255,101,2,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,101,2,.18); }
.more-cat-icon { width: 44px; height: 44px; flex: none; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: rgba(255,101,2,.12); border: 1px solid rgba(255,101,2,.35); color: var(--gold-light); }

/* ---------- 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(255,101,2,.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(255,101,2,.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: #080321; border: 2px solid var(--gold); box-shadow: 0 0 15px rgba(255,101,2,.6); }

/* ---------- Témoignages ---------- */
.testimonial { padding: 2rem; border-radius: 1.5rem; background: linear-gradient(160deg, rgba(255,101,2,.08), rgba(255,255,255,.015)); border: 1px solid rgba(255,101,2,.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(255,101,2,.06); }
.field.error { border-color: #ef4444; }
select.field option { background: #0f0836; }
.social-btn { width: 48px; height: 48px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,101,2,.4); color: var(--gold-light); transition: all .3s; }
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { background: var(--gold); color: #080321; 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; }
}
