/* =========================
   RESET & BASE
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f5f5f5;
  padding-top: 140px; /* desktop : header + menu */
}

/* =========================
   VARIABLES (COULEURS DU LOGO)
========================= */
:root {
  --primary: #e83e6b;
  --primary-dark: #c72e56;
  --primary-light: #ff8a9f;
  --primary-soft: rgba(232, 62, 107, 0.1);
  --dark: #0a0a0a;
  --overlay: rgba(0, 0, 0, 0.3);
  --text-light: #ffffff;
  --text-dark: #222222;
  --text-gray: #666666;
}

/* =========================
   ACCESSIBILITÉ
========================= */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 1001;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
}

:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =========================
   HEADER AVEC LOGO
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.9) !important;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-top img {
  height: 55px;
  width: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-top a:hover img {
  transform: scale(1.05);
}

/* =========================
   NAVIGATION PRINCIPALE
========================= */
.menu {
  position: fixed;
  top: 85px;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95) !important;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.menu .logo {
  display: none;
}

.menu-links {
  display: flex;
  gap: 25px;
}

.menu-links a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 18px 0;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.menu-links a:hover {
  color: var(--primary-light) !important;
  opacity: 1;
}

.menu-links a::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.menu-links a:hover::after {
  width: 100%;
}

.menu-links a.active {
  color: var(--primary) !important;
  opacity: 1;
  font-weight: 700;
}

.menu-links a.active::after {
  width: 100%;
  background: var(--primary);
}

.menu-toggle {
  display: none;
}

/* =========================
   BACKGROUNDS PAR PAGE
========================= */
.bg-home {
  background: linear-gradient(var(--overlay), var(--overlay)), 
              url("images/bg-home.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #1a1a1a;
}

.bg-about {
  background: linear-gradient(var(--overlay), var(--overlay)), 
              url("images/bg-about.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #1a1a1a;
}

.bg-visa {
  background: linear-gradient(var(--overlay), var(--overlay)), 
              url("images/bg-visa.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #1a1a1a;
}

.bg-service {
  background: linear-gradient(var(--overlay), var(--overlay)), 
              url("images/bg-service.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #1a1a1a;
}

.bg-contact {
  background: linear-gradient(var(--overlay), var(--overlay)), 
              url("images/bg-contact.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #1a1a1a;
}

.bg-default {
  background: linear-gradient(var(--overlay), var(--overlay)), 
              url("images/bg-default.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #1a1a1a;
}

/* =========================
   BANNIÈRE HERO
========================= */
.hero-banner {
  text-align: center;
  padding: 120px 20px 100px;
  color: #fff;
  background: rgba(0, 0, 0, 0.25) !important;
  margin-top: -60px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff !important;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-content .slogan {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 40px;
  color: #fff !important;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.95;
}

/* =========================
   BOUTONS
========================= */
.btn {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(232, 62, 107, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 25px 40px rgba(232, 62, 107, 0.6);
}

.btn i {
  margin-right: 10px;
}

/* =========================
   CONTENU PRINCIPAL
========================= */
main {
  background: rgba(255, 255, 255, 0.92) !important;
  max-width: 1200px;
  margin: 50px auto;
  padding: 60px 50px;
  border-radius: 30px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
  color: var(--text-dark) !important;
  backdrop-filter: blur(10px);
}

.content {
  margin-bottom: 40px;
}

.center {
  text-align: center;
}

h2 {
  margin-bottom: 30px;
  color: var(--text-dark);
  font-size: 2.8rem;
  font-weight: 800;
  padding-bottom: 15px;
  border-bottom: 4px solid var(--primary);
  display: inline-block;
  position: relative;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--primary-light);
}

p {
  margin-bottom: 25px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-gray);
  font-weight: 400;
}

/* =========================
   BADGES
========================= */
.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 40px 0 50px;
}

.badge {
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  box-shadow: 0 8px 20px rgba(232, 62, 107, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(232, 62, 107, 0.5);
}

.badge i {
  font-size: 1.1rem;
  color: white;
}

/* =========================
   CARTES SERVICES
========================= */
.services-grid, .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.service-card, .feature-card {
  background: white;
  padding: 45px 25px 35px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(232, 62, 107, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before, .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover, .feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 60px rgba(232, 62, 107, 0.15);
  border-color: var(--primary-light);
}

.service-card:hover::before, .feature-card:hover::before {
  transform: scaleX(1);
}

.service-icon, .feature-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon,
.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
  color: var(--primary-dark);
}

.service-card h3, .feature-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-weight: 700;
}

.service-card p, .feature-card p {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 0;
  font-weight: 400;
}

/* =========================
   STATISTIQUES
========================= */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  margin: 70px 0 40px;
  padding: 40px 0;
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

.stat-item {
  text-align: center;
  min-width: 170px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-8px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stat-number i {
  font-size: 2rem;
  color: var(--primary);
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-top: 8px;
}

/* =========================
   DIVIDER
========================= */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 60px 0;
}

.divider-line {
  flex: 1;
  height: 3px;
  background: var(--primary);
  opacity: 0.7;
  border-radius: 3px;
}

.divider i {
  font-size: 2rem;
  color: var(--primary);
}

/* =========================
   CONTACT INFO
========================= */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
  padding: 20px 30px;
  background: var(--primary-soft);
  border-radius: 60px;
  border: 1px solid var(--primary);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.contact-item i {
  color: var(--primary);
  font-size: 1.3rem;
}

/* =========================
   TEXTE SURBRILLÉ
========================= */
.highlight-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 30px 40px;
  border-radius: 80px;
  margin: 60px 0 20px;
  font-weight: 600;
  color: white;
  text-align: center;
  font-size: 1.4rem;
  box-shadow: 0 20px 40px rgba(232, 62, 107, 0.3);
  letter-spacing: 0.5px;
}

/* =========================
   VIDÉO DE PRÉSENTATION
========================= */
.video-presentation {
  margin: 60px 0;
  text-align: center;
}

.video-presentation video {
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary);
}

/* =========================
   RÉALISATIONS (GALERIE)
========================= */
.realisations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.realisations img {
  width: 100%;
  height: 220px;
  border-radius: 15px;
  object-fit: cover;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  cursor: pointer;
}

.realisations img:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 35px rgba(232, 62, 107, 0.2);
  border-color: var(--primary-light);
}

/* =========================
   GRILLE VIDÉOS
========================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.video-box {
  background: #0a0a0a;
  padding: 15px;
  border-radius: 20px;
  color: #fff;
  transition: all 0.4s ease;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(232, 62, 107, 0.2);
}

.video-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(232, 62, 107, 0.3);
  border-color: var(--primary);
}

.video-box strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
}

.video-box video,
.video-box iframe {
  width: 100%;
  border-radius: 12px;
}

.video-box video {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-box video.video-vertical {
  aspect-ratio: 9/16;
  object-fit: contain;
  background: #000;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.02);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.video-thumbnail:hover .play-button {
  opacity: 1;
}

.youtube-link {
  text-align: center;
  margin-top: 8px;
}

.youtube-link a {
  color: var(--primary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s;
}

.youtube-link a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* =========================
   FORMULAIRE DE CONTACT
========================= */
.contact-form,
form[name="contact"] {
  max-width: 600px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  color: var(--primary);
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(232, 62, 107, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(232, 62, 107, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 20px;
  width: 100%;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 40px rgba(232, 62, 107, 0.6);
}

.btn-submit i {
  margin-right: 10px;
}

.error-message {
  color: #ff4444;
  font-size: 0.9rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* =========================
   PAGE 404
========================= */
.error-code {
  font-size: 8rem;
  font-weight: bold;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.error-message {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: #333;
}

/* =========================
   PAGE MERCI
========================= */
.merci-message {
  font-size: 1.8rem;
  margin: 40px 0;
  color: var(--text-dark);
  line-height: 1.5;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 60px 25px 50px;
  color: #ffffff;
  background: #0a0a0a;
  margin-top: 60px;
  font-size: 1rem;
  border-top: 4px solid var(--primary);
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-social {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-5px) scale(1.1);
}

.footer-social img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(232, 62, 107, 0.3);
  transition: all 0.3s ease;
}

.footer-social a:hover img {
  box-shadow: 0 10px 25px rgba(232, 62, 107, 0.6);
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 30px 0 30px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.footer-info span {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-info i {
  color: var(--primary);
  font-size: 1.2rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  padding-top: 30px;
}

/* =========================
   WATERMARK
========================= */
.logo-watermark {
  position: fixed;
  bottom: 20px;
  right: 20px;
  opacity: 0.1;
  filter: blur(1px);
  z-index: 0;
  pointer-events: none;
}

.logo-watermark img {
  width: 180px;
}

/* =========================
   RESPONSIVE - MENU TOUJOURS VISIBLE EN COLONNE À DROITE
========================= */
@media (max-width: 768px) {
  body {
    padding-top: 80px; /* hauteur approximative du header seul */
  }
  
  .site-header {
    padding: 12px 20px;
  }
  
  .logo-top img {
    height: 45px;
  }
  
  .menu {
    position: relative; /* plus fixed pour éviter le chevauchement */
    top: 0;
    background: rgba(0, 0, 0, 0.95) !important;
    box-shadow: none;
    border-top: none;
  }
  
  .menu-container {
    flex-direction: column;
    align-items: flex-end; /* pousse les liens à droite */
    padding: 10px 20px;
  }
  
  .menu-links {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  
  .menu-links a {
    padding: 8px 0;
    font-size: 1rem;
    border-bottom: none;
  }
  
  .menu-links a::after {
    bottom: 4px;
  }
  
  .menu-toggle {
    display: none; /* on cache le bouton hamburger */
  }
  
  .hero-banner {
    padding: 60px 15px 40px;
    margin-top: 0;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content .slogan {
    font-size: 1.1rem;
  }
  
  main {
    margin: 30px 20px;
    padding: 40px 25px;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .services-grid, .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .footer-social img {
    width: 45px;
    height: 45px;
  }
  
  .footer-info {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .btn, .btn-submit {
    padding: 15px 30px;
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .badge {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .footer-social img {
    width: 40px;
    height: 40px;
  }
}