* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* ================= GLOBAL ================= */

body {
  background: #ffffff;
  color: #222;
}

/* ================= HEADER ================= */

header {
  position: fixed;
  width: 100%;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(15px);
  background: rgba(255,255,255,0.9);
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

header {
  padding: 20px 40px; 
}

.logo {
  display: flex;
  align-items: center;
}

/* LOGO HEADER */
.logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

/* FORCE LOGO SIZE */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* IMPORTANT : pas de limite cachée */
.logo img {
  height: 60px !important;
  width: auto !important;
  max-height: none !important;
  object-fit: contain;
}
/* LOGO IMAGE FIX */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  color: #333;
  text-decoration: none;
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8B1E1E, transparent);
  transform: translateX(-50%);
  transition: 0.4s;
}

nav a:hover,
nav a.active {
  color: #8B1E1E;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* BURGER */
.burger {
  display: none;
  font-size: 25px;
  color: #8B1E1E;
}

/* ================= HERO ================= */

.hero {
  height: 100vh;
  background: url("dashboard.jpg") center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.content {
  position: relative;
  text-align: center;
  color: white;
}

.content h1 {
  font-size: 55px;
}

#goGallery {
  margin-top: 20px;
  padding: 12px 30px;
  background: linear-gradient(45deg,#8B1E1E,#A52A2A);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  color: white;
}

/* ================= STATS ================= */

/* ================= STATS PREMIUM ================= */

.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
  flex-wrap: wrap;
}

/* CARD */
.stat-box {
  width: 220px;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139,30,30,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

/* glow animé */
.stat-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(139,30,30,0.15);
  transform: rotate(25deg);
  transition: 0.6s;
}

.stat-box:hover::before {
  left: 130%;
}

/* hover */
.stat-box:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 50px rgba(139,30,30,0.2);
}

/* compteur */
.stat-box h2 {
  font-size: 50px;
  color: #8B1E1E;
  text-shadow: 0 0 15px rgba(139,30,30,0.3);
}

/* texte */
.stat-box p {
  margin-top: 10px;
  font-size: 15px;
  opacity: 0.7;
}

/* animation apparition */
.stat-box {
  opacity: 0;
  transform: translateY(40px);
}

.stat-box.show {
  opacity: 1;
  transform: translateY(0);
  transition: 0.6s ease;
}

/* ================= GALLERY ================= */

.gallery {
  padding: 80px 20px;
  background: white;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ================= TITRE GALERIE ================= */

.gallery h2 {
  margin-bottom: 50px; /* espace avec les cards */
  position: relative;
  display: inline-block;
  color:#A52A2A;
  padding-bottom: 12px;
}

/* TRAIT ANIMÉ */
.gallery h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8B1E1E, transparent);
  box-shadow: 0 0 15px #8B1E1E;
  animation: lineGlowGallery 2s ease-in-out infinite;
}

/* ANIMATION */
@keyframes lineGlowGallery {
  0% {
    width: 0%;
    opacity: 0;
  }
  50% {
    width: 80%;
    opacity: 1;
  }
  100% {
    width: 0%;
    opacity: 0;
  }
}
/* ================= CARD ================= */

.card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(139,30,30,0.08);
  transition: 0.4s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(139,30,30,0.18);
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: 0.5s ease;
}

.card:hover img {
  transform: scale(1.12);
}

/* INFO IMAGE */
.card:not(.video-card) .info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: white;
}

/* ================= VIDEO CARD ================= */

.video-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.video-card video {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.video-card .info {
  background: white;
  padding: 12px;
}

.play-btn {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: rgba(139,30,30,0.9);
  color: white;
  cursor: pointer;
  z-index: 10;
}

.contact-btn {
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 25px;
  border: none;
  background: #8B1E1E;
  color: white;
  cursor: pointer;
}

/* ================= FOOTER ================= */

.footer {
  background: #ffffff;
  color: #222;
  padding: 80px 20px 20px;
  border-top: 1px solid rgba(139,30,30,0.1);
}


.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}
.footer-box h2,
.footer-box h3 {
  color: #8B1E1E;
}

/* ================= FIX FOOTER COMPLET ================= */

/* titres */
.footer-box h2,
.footer-box h3 {
  position: relative;
  margin-bottom: 20px;
  color: #8B1E1E;
}

/* trait animé */
.footer-box h2::after,
.footer-box h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8B1E1E, transparent);
  box-shadow: 0 0 12px rgba(139,30,30,0.6);
  animation: lineGlow 2s infinite;
}

/* animation */
@keyframes lineGlow {
  0% { width: 0; opacity: 0; }
  50% { width: 60px; opacity: 1; }
  100% { width: 0; opacity: 0; }
}

/* texte */
.footer-box p {
  opacity: 0.7;
  line-height: 1.6;
}

/* liens */
.footer-box ul {
  list-style: none;
}

.footer-box ul li {
  margin-bottom: 10px;
}

.footer-box ul li a {
  color: #222;
  text-decoration: none;
  transition: 0.3s;
}

.footer-box ul li a:hover {
  color: #8B1E1E;
  text-shadow: 0 0 8px rgba(139,30,30,0.4);
}

/* socials */
.socials {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.socials a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139,30,30,0.05);
  color: #8B1E1E;
  transition: 0.3s;
}

.socials a:hover {
  background: #8B1E1E;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(139,30,30,0.4);
}

/* newsletter */
.newsletter {
  display: flex;
  margin-top: 10px;
}

.newsletter input {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(139,30,30,0.2);
  outline: none;
  border-radius: 30px 0 0 30px;
}

.newsletter button {
  padding: 12px 18px;
  border: none;
  background: #8B1E1E;
  color: white;
  cursor: pointer;
  font-weight: bold;
  border-radius: 0 30px 30px 0;
  transition: 0.3s;
}

.newsletter button:hover {
  background: #A52A2A;
  box-shadow: 0 0 15px rgba(139,30,30,0.6);
}

/* bottom */
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(139,30,30,0.2);
  opacity: 0.6;
}
/* ================= RESPONSIVE ================= */

/* TABLET */
@media (max-width: 1024px) {

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    flex-wrap: wrap;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .content h1 {
    font-size: 40px;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  .burger {
    display: block;
  }

  nav {
    position: fixed;
    right: -100%;
    top: 70px;
    width: 250px;
    height: 100vh;
    background: white;
    transition: 0.3s;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .content h1 {
    font-size: 28px;
  }

  .hero {
    height: 80vh;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .newsletter {
    flex-direction: column;
  }

  .newsletter input {
    border-radius: 30px;
    margin-bottom: 10px;
  }

  .newsletter button {
    border-radius: 30px;
  }

  .socials {
    justify-content: center;
  }
}

@keyframes lineGlow {
  0% {
    width: 0;
    opacity: 0;
  }
  50% {
    width: 60px;
    opacity: 1;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .footer-box .logo {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

