/* ==========================================================================
   Abada Media Service — Stylesheet
   Palette inspirée du logo : Noir / Blanc / Rouge
   ========================================================================== */

:root {
  --c-black: #0a0a0a;
  --c-black-soft: #131313;
  --c-black-alt: #181818;
  --c-white: #ffffff;
  --c-white-soft: #f4f4f4;
  --c-grey: #a7a7a7;
  --c-red: #e8121c;
  --c-red-dark: #a80d14;
  --c-red-light: #ff4b52;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease: cubic-bezier(.65,0,.35,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--c-black);
  color: var(--c-white-soft);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: var(--c-red); color: var(--c-white); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-black); }
::-webkit-scrollbar-thumb { background: var(--c-red-dark); border-radius: 10px; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-red { color: var(--c-red); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-eyebrow {
  display: inline-block;
  color: var(--c-red);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 20px;
  line-height: 1.25;
}

.centered { text-align: center; display: block; }

section.about, section.services, section.portfolio,
section.testimonials, section.contact {
  padding: 120px 0;
}

/* ==========================================================================
   Progress bar
   ========================================================================== */

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-red), var(--c-red-light));
  z-index: 999;
  transition: width .1s linear;
}

/* ==========================================================================
   Scroll reveal animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.fade-up    { transform: translateY(50px); }
.reveal.fade-right  { transform: translateX(-60px); }
.reveal.fade-left   { transform: translateX(60px); }
.reveal.is-visible { opacity: 1; transform: none; }

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,18,28,.45); }
  50% { box-shadow: 0 0 0 14px rgba(232,18,28,0); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Menu toggle (mobile)
   ========================================================================== */

.menu-toggle {
  z-index: 1001;
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--c-black-alt);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 20px; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
  z-index: 940;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.navbar-overlay.show { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Navbar (top, fixed)
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 950;
  padding: 22px 0;
  background: linear-gradient(180deg, rgba(10,10,10,.75), rgba(10,10,10,0));
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.navbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  width: 150px; height: auto;
  transition: width .4s var(--ease);
}
.navbar.scrolled .logo-mark { width: 120px; }

.logo-caption {
  font-family: var(--font-heading);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--c-white);
  white-space: nowrap;
  transition: font-size .4s var(--ease);
}
.navbar.scrolled .logo-caption { font-size: .58rem; }
.logo-caption span { color: var(--c-red); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-list { display: flex; align-items: center; gap: 4px; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 15px;
  color: var(--c-grey);
  font-weight: 500;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  transition: color .3s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-link:hover { color: var(--c-white); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--c-white); }

.navbar-social {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .64rem;
  font-weight: 700;
  color: var(--c-grey);
  transition: all .3s var(--ease);
}
.social-btn:hover {
  background: var(--c-red);
  border-color: var(--c-red);
  color: var(--c-white);
  transform: translateY(-3px);
}

/* ==========================================================================
   Main content
   ========================================================================== */

.main-content {
  padding-top: 0;
}

main section[id] {
  scroll-margin-top: 96px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(232,18,28,.22), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(232,18,28,.14), transparent 50%),
    linear-gradient(160deg, rgba(10,10,10,.85) 0%, rgba(22,22,22,.6) 60%, rgba(10,10,10,.85) 100%),
    url('../assets/img/gallery/home-bak.JPG') center/cover no-repeat;
  background-size: 200% 200%, 200% 200%, 200% 200%, cover;
  background-position: 0% 0%, 0% 0%, 0% 0%, center center;
  animation: gradientShift 14s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 0%, 0% 0%, 0% 0%, center center; }
  50% { background-position: 100% 100%, 100% 100%, 100% 100%, center center; }
  100% { background-position: 0% 0%, 0% 0%, 0% 0%, center center; }
}

.hero-wave {
  position: absolute;
  left: -10%; right: -10%; bottom: -6%;
  height: 220px;
  background: linear-gradient(100deg, var(--c-red) 0%, var(--c-red) 40%, var(--c-white) 60%, var(--c-white) 100%);
  clip-path: path('M0,120 C 300,20 700,180 1100,60 C 1400,-10 1700,90 2000,40 L2000,220 L0,220 Z');
  opacity: .12;
  animation: float 8s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 6% 0 6%;
}

.hero-eyebrow {
  color: var(--c-red);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5.4vw, 3.3rem);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--c-grey);
  max-width: 520px;
  margin-bottom: 38px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .3px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(120deg, var(--c-red), var(--c-red-dark));
  color: var(--c-white);
  box-shadow: 0 10px 30px rgba(232,18,28,.35);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(232,18,28,.5);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-outline:hover {
  background: var(--c-white);
  color: var(--c-black);
  transform: translateY(-4px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 20px;
  z-index: 2;
}
.scroll-indicator span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--c-red);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scrollDown 1.8s ease infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about .section-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.about-media img {
  border-radius: 20px;
  transition: transform .6s var(--ease);
}
.about-media:hover img { transform: scale(1.05); }

.about-badge {
  position: absolute;
  bottom: 22px; left: 22px;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(232,18,28,.4);
  border-radius: 14px;
  padding: 14px 20px;
  text-align: center;
  animation: float 5s ease-in-out infinite;
}
.about-badge strong { display: block; font-size: 1.6rem; color: var(--c-red); font-family: var(--font-heading); }
.about-badge span { font-size: .72rem; color: var(--c-grey); text-transform: uppercase; letter-spacing: 1px; }

.about-text p {  margin-bottom: 16px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.stat-item {
  padding: 18px 12px;
  background: var(--c-black-alt);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  text-align: center;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.stat-item:hover { transform: translateY(-6px); border-color: var(--c-red); }
.stat-number, .stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--c-white);
}
.stat-suffix { color: var(--c-red); }
.stat-item p { font-size: .74rem; color: var(--c-grey); margin-top: 6px; }

/* ==========================================================================
   Services
   ========================================================================== */

.services { background: var(--c-black-soft); }

.services-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--c-black-alt);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 36px 28px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(232,18,28,.12), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(232,18,28,.5);
}
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-red), var(--c-red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform .4s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }
.service-icon svg { width: 26px; height: 26px; color: var(--c-white); stroke: var(--c-white); }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--c-white);
  margin-bottom: 10px;
  position: relative;
}
.service-card p { color: var(--c-grey); font-size: .92rem; position: relative; }

/* ==========================================================================
   Portfolio
   ========================================================================== */

.portfolio-slider {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--c-black-alt);
}

.portfolio-track {
  display: flex;
  transition: transform .7s var(--ease);
}

.portfolio-item {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.portfolio-item a { display: block; width: 100%; height: 100%; position: relative; }

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.04); }

.portfolio-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(10,10,10,.65);
  color: var(--c-white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.portfolio-control:hover { background: var(--c-red); border-color: var(--c-red); }
.portfolio-prev { left: 18px; }
.portfolio-next { right: 18px; }

.portfolio-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}
.portfolio-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: width .3s var(--ease), background .3s var(--ease);
}
.portfolio-dot.active {
  width: 24px;
  border-radius: 8px;
  background: var(--c-red);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials { background: var(--c-black-soft); }

.testimonial-slider {
  max-width: 720px;
  margin: 50px auto 0;
  text-align: center;
}
.testimonial-track {
  display: flex;
  transition: transform .6s var(--ease);
}
.testimonial-slide {
  min-width: 100%;
  padding: 10px 20px;
}
.quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--c-white);
  line-height: 1.6;
  margin-bottom: 30px;
}
.quote::before { content: '\201C'; color: var(--c-red); }
.quote::after { content: '\201D'; color: var(--c-red); }

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testimonial-author img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-red);
}
.testimonial-author strong { display: block; color: var(--c-white); }
.testimonial-author span { font-size: .8rem; color: var(--c-grey); }

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
}
.ts-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
  color: var(--c-white);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.ts-btn:hover { background: var(--c-red); border-color: var(--c-red); }

.ts-dots { display: flex; gap: 8px; }
.ts-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.ts-dot.active { background: var(--c-red); width: 22px; border-radius: 6px; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  margin-top: 50px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.contact-info-item svg {
  width: 24px; height: 24px;
  color: var(--c-red);
  stroke: var(--c-red);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-info-item strong { display: block; color: var(--c-white); margin-bottom: 4px; }
.contact-info-item span { color: var(--c-grey); font-size: .92rem; }

.contact-form {
  background: var(--c-black-alt);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .8rem;
  color: var(--c-grey);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--c-black);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: .92rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(232,18,28,.18);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.btn-submit {
  width: 100%;
  position: relative;
  gap: 10px;
}
.btn-submit .btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--c-white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-submit.loading .btn-label { opacity: .6; }
.btn-submit.loading .btn-spinner { display: inline-block; }

.form-feedback {
  margin-top: 16px;
  font-size: .88rem;
  text-align: center;
  min-height: 20px;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.form-feedback.show { opacity: 1; }
.form-feedback.success { color: #2ecc71; }
.form-feedback.error { color: var(--c-red-light); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 34px 5%;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--c-white);
  margin-bottom: 8px;
  font-size: .9rem;
}
.footer-logo span { color: var(--c-red); }
.footer p { color: var(--c-grey); font-size: .82rem; }

/* ==========================================================================
   Scroll-to-top
   ========================================================================== */

.scroll-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-red);
  color: var(--c-white);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 800;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all .4s var(--ease);
  animation: pulseGlow 2.4s ease infinite;
}
.scroll-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { transform: translateY(-5px); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about .section-inner, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin: 0 auto 30px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }

  .navbar-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(300px, 82%);
    background: linear-gradient(180deg, var(--c-black-soft), var(--c-black));
    border-left: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 0 60px rgba(0,0,0,.6);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    padding: 100px 30px 30px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 960;
  }
  .navbar-nav.open { transform: translateX(0); }

  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav-link { width: 100%; padding: 12px 6px; font-size: .9rem; }
  .nav-link::after { left: 6px; right: 6px; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
}

@media (max-width: 480px) {
  section.about, section.services, section.portfolio,
  section.testimonials, section.contact { padding: 80px 0; }
}
