/* ===================================================
   MBD ÉVÉNEMENTIELLE — Style principal
   Design noir + néon cyan / violet / rose
   =================================================== */

:root {
  --black: #050505;
  --surface: #0d0d0d;
  --surface-light: #111;
  --white: #fff;
  --muted: #cfcfcf;
  --cyan: #00e5ff;
  --violet: #6d00ff;
  --pink: #ff00cc;
  --radius: 20px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(90%, 1400px);
  margin-inline: auto;
}

/* ================= HEADER ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

header .container,
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-block: 14px;
}

.logo { display: block; flex-shrink: 0; }
.logo img { width: auto; height: 70px; }

nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

nav a {
  position: relative;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

nav a::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transition: width var(--transition);
}

nav a:hover { color: var(--cyan); }
nav a:hover::after { width: 100%; }

.header-buttons { display: flex; flex-shrink: 0; align-items: center; gap: 10px; }

.phone, .devis, .btn-primary, .btn-secondary, .partner-btn, .partner-link, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.phone, .devis { min-height: 46px; padding: 11px 18px; font-weight: 600; white-space: nowrap; }
.phone { border: 2px solid var(--cyan); color: var(--cyan); }
.phone:hover { background: var(--cyan); color: #000; }
.devis, .btn-primary, .btn, .partner-btn, .partner-link { border: 0; background: linear-gradient(90deg, var(--pink), var(--violet)); color: var(--white); box-shadow: 0 0 22px rgba(255, 0, 204, 0.42); }
.devis:hover, .btn-primary:hover, .btn:hover, .partner-btn:hover, .partner-link:hover { transform: translateY(-3px); box-shadow: 0 0 35px rgba(255, 0, 204, 0.65); }

/* ================= HERO / SLIDER ================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 110px 20px 60px;
  overflow: hidden;
  text-align: center;
}

.slider { position: absolute; inset: 0; z-index: 0; }
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: slideShow 18s infinite; }
.slider img:nth-child(2) { animation-delay: 6s; }
.slider img:nth-child(3) { animation-delay: 12s; }

@keyframes slideShow {
  0%, 100% { opacity: 0; }
  8%, 30% { opacity: 1; }
  38% { opacity: 0; }
}

.overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.9)); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 950px; }

.circle-light {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.3), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  animation: pulse 4s infinite;
}
@keyframes pulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.12); } }

.hero-logo { position: relative; z-index: 2; width: min(320px, 75vw); margin: auto; filter: drop-shadow(0 0 35px cyan); animation: floatLogo 5s ease-in-out infinite; }
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero h1 {
  margin-top: 30px;
  font-size: clamp(38px, 5vw, 65px);
  font-weight: 800;
  line-height: 1.08;
  background: linear-gradient(90deg, #ff0000, #ffe600, #00ff88, #00d9ff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { margin-top: 18px; color: #ddd; font-size: 22px; }
.hero-text { color: #bbb !important; font-size: 18px !important; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.btn-primary, .btn-secondary { min-height: 54px; padding: 15px 30px; }
.btn-secondary { border: 2px solid var(--cyan); color: var(--cyan); }
.btn-secondary:hover { background: var(--cyan); color: #000; box-shadow: 0 0 35px rgba(0, 229, 255, 0.55); transform: translateY(-5px); }

/* ================= SECTIONS / PRESTATIONS ================= */
.prestations, .gallery, .advantages, .stats, .contact { padding: 110px 0; }
.prestations, .stats { background: #0a0a0a; }
.gallery, .contact { background: var(--black); }
.advantages { background: #0b0b0b; }

.section-title { margin-bottom: 60px; text-align: center; }
.section-title h2 { margin-bottom: 15px; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; background: linear-gradient(90deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-title p { color: #bdbdbd; font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; }
.card, .stat { min-width: 0; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); background: rgba(255,255,255,.05); transition: transform .35s, box-shadow .35s; }
.card { padding: 38px 25px; overflow: hidden; text-align: center; }
.card:hover, .stat:hover { transform: translateY(-10px); box-shadow: 0 0 35px rgba(0,229,255,.3); }
.card i { display: block; margin-bottom: 20px; color: var(--cyan); font-size: 52px; }
.card h3 { margin-bottom: 12px; font-size: 23px; }
.card p { color: var(--muted); line-height: 1.8; }

/* ================= GALERIE ================= */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.gallery-grid img, .gallery-mosaic img { width: 100%; object-fit: cover; border-radius: 18px; cursor: pointer; transition: transform .4s, box-shadow .4s; box-shadow: 0 0 15px rgba(0,229,255,.2); }
.gallery-grid img { height: 260px; }
.gallery-grid img:hover, .gallery-mosaic img:hover { transform: scale(1.03); box-shadow: 0 0 35px rgba(255,0,204,.45); }
.gallery-mosaic { display: grid; grid-auto-rows: 220px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery-mosaic img { min-width: 0; height: 100%; }
.gallery-mosaic .big { grid-row: span 2; grid-column: span 2; }

/* ================= STATISTIQUES ================= */
.stats .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; }
.stat { padding: 38px 20px; text-align: center; }
.stat h2 { margin-bottom: 12px; color: var(--cyan); font-size: 52px; }
.stat p { color: #ddd; }

/* ================= CONTACT ================= */
.container-contact { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); align-items: stretch; gap: 40px; width: min(90%, 1400px); margin: auto; }
.contact-left { padding: 45px; border: 1px solid rgba(255,255,255,.06); border-radius: 25px; background: linear-gradient(180deg, #0d0d0d, #111); }
.contact-logo { width: 130px; margin: 0 auto 30px; }
.contact-left h2 { margin-bottom: 20px; font-size: 36px; line-height: 1.2; }
.contact-left p { color: #ccc; line-height: 1.8; }
.contact-info { margin-top: 30px; }
.contact-info p { margin-bottom: 16px; font-size: 17px; }
.contact-info i { width: 24px; margin-right: 10px; color: var(--cyan); }
.contact-right { min-width: 0; }
.contact-form { width: 100%; padding: 40px; border: 1px solid rgba(255,255,255,.1); border-radius: 25px; background: rgba(255,255,255,.05); box-shadow: 0 0 40px rgba(0,229,255,.15); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; min-width: 0; padding: 16px; outline: none; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: #111; color: var(--white); font-size: 16px; transition: border-color var(--transition), box-shadow var(--transition); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #888; }
.contact-form select { margin-bottom: 18px; }
.contact-form option { background: #111; color: #fff; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 20px rgba(0,229,255,.25); }
.contact-form textarea { min-height: 190px; margin-bottom: 25px; resize: vertical; }
.contact-form button { width: 100%; border: 0; cursor: pointer; font-size: 17px; }

/* ================= LIGHTBOX / REVEAL ================= */
.lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 30px; visibility: hidden; background: rgba(0,0,0,.95); opacity: 0; transition: opacity .4s, visibility .4s; }
.lightbox.active { visibility: visible; opacity: 1; }
.lightbox-img { max-width: 90%; max-height: 85%; border-radius: 15px; box-shadow: 0 0 40px rgba(0,229,255,.35); animation: zoom .4s; }
@keyframes zoom { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.close { position: absolute; top: 20px; right: 30px; color: var(--white); cursor: pointer; font-size: 55px; line-height: 1; transition: color var(--transition); }
.close:hover { color: var(--pink); }
.hidden { opacity: 0; transform: translateY(80px); transition: opacity 1s, transform 1s; }
.show { opacity: 1; transform: translateY(0); }

/* ================= PAGE PARTENAIRES ================= */
.partners-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  padding: 150px 20px 90px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 30%, rgba(0,229,255,.18), transparent 35%), radial-gradient(circle at 80% 60%, rgba(255,0,204,.18), transparent 35%), var(--black);
  text-align: center;
}
.partners-hero-content { position: relative; z-index: 1; max-width: 900px; }
.partners-hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 800; line-height: 1.1; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.partners-hero p { margin-top: 20px; color: #ccc; font-size: 20px; }

/* Compatible with the older partenaires.html using .hero directly. */
.hero:not(:has(.slider)) { min-height: 55vh; background: radial-gradient(circle at 20% 30%, rgba(0,229,255,.18), transparent 35%), radial-gradient(circle at 80% 60%, rgba(255,0,204,.18), transparent 35%), var(--black); }

.partners { padding: 110px 0; background: #0a0a0a; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.partner-card { position: relative; display: flex; min-height: 390px; flex-direction: column; align-items: center; justify-content: center; padding: 35px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 25px; background: linear-gradient(145deg, #111, #080808); text-align: center; transition: transform .4s, border-color .4s, box-shadow .4s; }
.partner-card::before { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,229,255,.08), transparent, rgba(255,0,204,.08)); content: ""; opacity: 0; transition: opacity .4s; }
.partner-card:hover { border-color: rgba(0,229,255,.5); box-shadow: 0 0 35px rgba(0,229,255,.2); transform: translateY(-10px); }
.partner-card:hover::before { opacity: 1; }
.partner-card > * { position: relative; z-index: 1; }
.partner-logo { display: flex; align-items: center; justify-content: center; width: 180px; height: 150px; margin-bottom: 25px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: var(--black); }
.partner-logo img { max-width: 90%; max-height: 120px; object-fit: contain; }
.partner-card h3 { margin-bottom: 8px; font-size: 24px; }
.partner-category, .partner-type { display: inline-block; margin-bottom: 15px; color: var(--cyan); font-size: 14px; font-weight: 600; letter-spacing: .05em; }
.partner-card p { margin-bottom: 20px; color: #ccc; font-size: 15px; line-height: 1.7; }
.partner-btn, .partner-link { padding: 11px 22px; }
.partner-cta, .become-partner { padding: 100px 20px; background: linear-gradient(135deg, #111, #190b19, #0a1012); text-align: center; }
.partner-cta h2, .become-partner h2 { margin-bottom: 15px; font-size: clamp(32px, 4vw, 40px); }
.partner-cta p, .become-partner p { max-width: 750px; margin: auto; color: #ccc; line-height: 1.8; }
.partner-cta .btn, .become-partner .btn { margin-top: 30px; padding: 17px 35px; }

/* ================= FOOTER ================= */
footer { padding: 40px 0; border-top: 1px solid rgba(255,255,255,.08); background: #000; text-align: center; }
.footer-logo { width: 120px; margin: 0 auto 20px; }
footer p { margin-bottom: 8px; color: #8f8f8f; }
footer a { color: var(--cyan); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ================= TABLETTE ================= */
@media (max-width: 1100px) {
  header .container, .header-content { gap: 15px; }
  nav ul { gap: 18px; }
  nav a { font-size: 14px; }
  .phone, .devis { padding: 10px 14px; font-size: 13px; }
  .cards, .stats .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .container-contact { grid-template-columns: 1fr; }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .container { width: 92%; }
  header .container, .header-content { padding-block: 9px; gap: 10px; }
  .logo img { height: 52px; }
  nav { display: none; }
  .header-buttons { margin-left: auto; gap: 7px; }
  .phone, .devis { min-height: 42px; padding: 9px 12px; font-size: 12px; }
  .phone { width: 42px; padding: 0; }
  .phone span { display: none; }
  .phone i { margin: 0; }
  .hero { padding: 100px 15px 45px; }
  .hero-logo { width: min(220px, 65vw); }
  .hero h1 { margin-top: 24px; font-size: clamp(30px, 9vw, 46px); }
  .hero p { margin-top: 15px; font-size: 17px; }
  .hero-text { font-size: 14px !important; }
  .hero-buttons { gap: 12px; margin-top: 28px; }
  .btn-primary, .btn-secondary { min-height: 50px; padding: 13px 21px; font-size: 14px; }
  .prestations, .gallery, .advantages, .stats, .contact, .partners { padding: 75px 0; }
  .section-title { margin-bottom: 40px; }
  .section-title h2 { font-size: clamp(30px, 8vw, 40px); }
  .section-title p { font-size: 15px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card { padding: 30px 20px; }
  .card i { font-size: 45px; }
  .card h3 { font-size: 21px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-mosaic { grid-auto-rows: 170px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-mosaic .big { grid-row: span 1; grid-column: span 2; }
  .stats .container { gap: 14px; }
  .stat { padding: 25px 10px; }
  .stat h2 { font-size: 38px; }
  .stat p { font-size: 13px; }
  .container-contact { width: 92%; gap: 22px; }
  .contact-left { padding: 30px 22px; }
  .contact-logo { width: 110px; }
  .contact-left h2 { font-size: 27px; }
  .contact-info p { font-size: 15px; }
  .contact-form { padding: 25px 18px; }
  .row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .contact-form input, .contact-form select, .contact-form textarea { margin-bottom: 15px; padding: 15px; }
  .contact-form textarea { min-height: 160px; }
  .lightbox { padding: 15px; }
  .lightbox-img { max-width: 96%; max-height: 80%; }
  .close { top: 15px; right: 20px; font-size: 45px; }
  .partners-hero { min-height: 55vh; padding: 125px 20px 70px; }
  .partners-hero p { font-size: 17px; }
  .partner-card { min-height: 0; padding: 30px 22px; }
  .partner-cta, .become-partner { padding: 75px 20px; }
  footer { padding: 30px 0; }
  .footer-logo { width: 100px; }
}

@media (max-width: 480px) {
  .logo img { height: 46px; }
  .devis { padding: 9px 11px; font-size: 11px; }
  .hero { padding-top: 95px; }
  .hero-logo { width: 180px; }
  .hero h1 { font-size: 29px; }
  .hero p { font-size: 15px; }
  .hero-text { font-size: 13px !important; }
  .hero-buttons { align-items: stretch; flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
  .gallery-mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-mosaic .big { grid-column: span 1; }
  .stats .container { grid-template-columns: 1fr; }
  .stat h2 { font-size: 42px; }
  .contact-left h2 { font-size: 25px; }
  .partners-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
