/* ========== MYSPORT - LUXE / CHIC ========== */
:root {
  --noir: #0a0a0a;
  --noir-soft: #141414;
  --noir-light: #1c1c1c;
  --or: #c9a961;
  --or-clair: #e8c989;
  --or-fonce: #a0824a;
  --blanc: #ffffff;
  --gris: #888888;
  --gris-clair: #d4d4d4;
  --gris-fond: #f7f5f0;
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--noir);
  color: var(--blanc);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 25px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  padding: 15px 5%;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--blanc);
  text-transform: uppercase;
}

.logo span { color: var(--or); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blanc);
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--or);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--or); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--or); }

.nav-links a.nav-cta {
  background: var(--or);
  color: var(--noir);
  padding: 10px 22px;
  font-weight: 700;
  border: 1px solid var(--or);
  transition: all 0.3s ease;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover {
  background: transparent;
  color: var(--or);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--blanc);
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px,6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.9) 100%);
  z-index: 1;
}

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

.hero-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-tag::before, .hero-tag::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--or);
  vertical-align: middle;
  margin: 0 15px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  margin-bottom: 25px;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--or);
}

.hero p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--gris-clair);
  max-width: 600px;
  margin: 0 auto 45px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--or);
  background: var(--or);
  color: var(--noir);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: transparent;
  color: var(--or);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,169,97,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--blanc);
  border-color: var(--blanc);
}

.btn-outline:hover {
  background: var(--blanc);
  color: var(--noir);
}

/* ========== SCROLL INDICATOR ========== */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s ease 1.5s forwards, bounce 2s ease-in-out 2.5s infinite;
}

.scroll-down svg {
  width: 30px;
  height: 30px;
  stroke: var(--or);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== SECTIONS GÉNÉRIQUES ========== */
section {
  padding: 120px 0;
  position: relative;
}

.section-tag {
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 20px;
  display: block;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 25px;
}

.section-title .accent {
  font-style: italic;
  color: var(--or);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gris);
  max-width: 600px;
  margin-bottom: 60px;
  font-weight: 300;
  line-height: 1.8;
}

.section-head { text-align: center; margin-bottom: 80px; }
.section-head .section-subtitle { margin: 0 auto; }

/* ========== APROPOS ========== */
.apropos {
  background: var(--noir-soft);
  position: relative;
}

.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.apropos-img {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.apropos-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.apropos-img:hover img { transform: scale(1.05); }

.apropos-img::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid var(--or);
  pointer-events: none;
}

.apropos-text h2 { margin-bottom: 30px; }

.apropos-text p {
  color: var(--gris-clair);
  margin-bottom: 20px;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.9;
}

.apropos-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  padding-top: 50px;
  border-top: 1px solid rgba(201,169,97,0.2);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--or);
  font-weight: 400;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris);
  margin-top: 8px;
}

/* ========== SERVICES ========== */
.services { background: var(--noir); }

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

.service-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  cursor: pointer;
  background: var(--noir-light);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s ease;
  filter: brightness(0.5);
}

.service-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.service-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 35px;
  z-index: 2;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-content {
  transform: translateY(-10px);
}

.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--or);
  letter-spacing: 3px;
  margin-bottom: 15px;
  display: block;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--blanc);
}

.service-card p {
  color: var(--gris-clair);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 20px;
  opacity: 0;
  max-height: 0;
  transition: all 0.4s ease;
  overflow: hidden;
}

.service-card:hover p {
  opacity: 1;
  max-height: 100px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 600;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-link svg { transform: translateX(8px); }

/* ========== VALEURS / REASSURANCE ========== */
.valeurs {
  background: var(--noir-soft);
  padding: 100px 0;
}

.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.valeur-item {
  text-align: center;
  padding: 40px 25px;
  border: 1px solid rgba(201,169,97,0.2);
  transition: all 0.4s ease;
}

.valeur-item:hover {
  border-color: var(--or);
  transform: translateY(-8px);
  background: rgba(201,169,97,0.03);
}

.valeur-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 25px;
  color: var(--or);
}

.valeur-item h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.valeur-item p {
  color: var(--gris);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ========== GALERIE ========== */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 15px;
}

.galerie-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.galerie-item.tall { grid-row: span 2; }
.galerie-item.wide { grid-column: span 2; }

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.galerie-item:hover img { transform: scale(1.1); }

.galerie-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.7));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.galerie-item:hover::after { opacity: 1; }

/* ========== CTA ========== */
.cta {
  background: url('https://images.unsplash.com/photo-1518611012118-696072aa579a?w=1920&q=80') center/cover;
  position: relative;
  text-align: center;
  padding: 140px 0;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.75);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 25px;
}

.cta p {
  color: var(--gris-clair);
  margin-bottom: 40px;
  font-size: 1.1rem;
  font-weight: 300;
}

/* ========== CONTACT ========== */
.contact-section { background: var(--noir); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info {
  padding: 60px 50px;
  background: var(--noir-soft);
  border: 1px solid rgba(201,169,97,0.15);
}

.contact-info h2 { margin-bottom: 20px; }

.contact-info > p {
  color: var(--gris);
  margin-bottom: 40px;
  font-weight: 300;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-item:last-child { border-bottom: none; }

.info-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border: 1px solid var(--or);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--or);
}

.info-icon svg { width: 22px; height: 22px; }

.info-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 5px;
}

.info-value {
  color: var(--blanc);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
}

.contact-map {
  height: 600px;
  border: 1px solid rgba(201,169,97,0.15);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.5) brightness(0.85);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--noir-soft);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(201,169,97,0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 25px;
  font-weight: 600;
}

.footer-col p, .footer-col a {
  color: var(--gris);
  font-size: 0.9rem;
  line-height: 2;
  font-weight: 300;
  transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--or); }
.footer-col ul { list-style: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  text-align: center;
  color: var(--gris);
  font-size: 0.85rem;
  font-weight: 300;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blanc);
  margin-bottom: 20px;
}

.footer-logo span { color: var(--or); }

/* ========== PAGE INNER HEADER ========== */
.page-header {
  position: relative;
  height: 60vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 0;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.6), rgba(10,10,10,0.9));
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 2;
  padding: 0 5%;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 15px;
}

.page-header .breadcrumb {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--or);
}

.page-header .breadcrumb a:hover { color: var(--blanc); }

/* ========== SERVICES PAGE DETAIL ========== */
.service-detail {
  padding: 100px 0;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.service-block:last-child { margin-bottom: 0; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-block-img {
  height: 550px;
  overflow: hidden;
  position: relative;
}

.service-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-block-img::after {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(201,169,97,0.4);
}

.service-block-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-block-content .service-tag {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--or);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.service-block-content p {
  color: var(--gris-clair);
  margin-bottom: 25px;
  font-weight: 300;
  line-height: 1.9;
}

.service-features {
  list-style: none;
  margin-top: 30px;
}

.service-features li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--gris-clair);
  font-weight: 300;
}

.service-features li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--or);
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* ========== ADMIN ========== */
.admin-body {
  background: var(--noir);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-box {
  background: var(--noir-soft);
  border: 1px solid rgba(201,169,97,0.2);
  padding: 60px 50px;
  max-width: 480px;
  width: 100%;
}

.admin-box h2 {
  text-align: center;
  margin-bottom: 10px;
}

.admin-box .subtitle {
  text-align: center;
  color: var(--gris);
  font-size: 0.9rem;
  margin-bottom: 35px;
  font-weight: 300;
}

.admin-form input {
  width: 100%;
  padding: 14px 18px;
  background: var(--noir);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--blanc);
  font-size: 14px;
  margin-bottom: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.admin-form input:focus {
  outline: none;
  border-color: var(--or);
}

.admin-form button {
  width: 100%;
  padding: 14px;
  background: var(--or);
  color: var(--noir);
  border: none;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.admin-form button:hover {
  background: var(--or-clair);
}

.admin-panel {
  display: none;
  max-width: 700px;
  width: 100%;
  background: var(--noir-soft);
  border: 1px solid rgba(201,169,97,0.2);
  padding: 60px 50px;
}

.admin-panel.visible { display: block; }

.admin-panel h2 { margin-bottom: 15px; }

.admin-panel > p {
  color: var(--gris-clair);
  margin-bottom: 35px;
  font-weight: 300;
}

.admin-card {
  background: var(--noir);
  border: 1px solid rgba(201,169,97,0.15);
  padding: 35px;
  margin-bottom: 25px;
}

.admin-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--or);
}

.admin-card p {
  color: var(--gris-clair);
  margin-bottom: 20px;
  font-weight: 300;
  font-size: 0.95rem;
}

.admin-card label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 8px;
}

.logout-btn {
  background: transparent;
  color: var(--gris);
  border: 1px solid rgba(255,255,255,0.1);
}
.logout-btn:hover { background: rgba(255,255,255,0.05); color: var(--blanc); }

.error-msg {
  background: rgba(220,53,69,0.1);
  border: 1px solid rgba(220,53,69,0.3);
  color: #f88;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 13px;
  text-align: center;
  display: none;
}
.error-msg.visible { display: block; }

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: revealFallback 1s ease 0.5s forwards;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .valeurs-grid { grid-template-columns: repeat(2, 1fr); }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .apropos-grid, .service-block { grid-template-columns: 1fr; gap: 50px; }
  .service-block.reverse { direction: ltr; }
  .apropos-img, .service-block-img { height: 450px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: var(--noir);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(201,169,97,0.15);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 16px; }

  .navbar { padding: 18px 5%; }
  .navbar.scrolled { padding: 12px 5%; }
  .logo { font-size: 22px; letter-spacing: 3px; }

  .hero { min-height: 600px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; }

  .services-grid { grid-template-columns: 1fr; }
  .valeurs-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .galerie-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .galerie-item.tall, .galerie-item.wide { grid-row: auto; grid-column: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 35px; text-align: center; }
  .apropos-stats { grid-template-columns: 1fr; gap: 25px; }
  .contact-info { padding: 40px 30px; }
  .contact-map { height: 400px; }

  .admin-box, .admin-panel { padding: 40px 25px; }
}

@media (max-width: 480px) {
  .valeurs-grid { grid-template-columns: 1fr; }
  .hero-tag::before, .hero-tag::after { width: 25px; }
  .hero-tag { font-size: 11px; letter-spacing: 4px; }
}
