@font-face {
  font-family: 'Defused';
  src: url('/assets/fonts/defused.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* roboto-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('/assets/fonts/roboto-v48-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/roboto-v48-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/roboto-v48-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src: url('/assets/fonts/roboto-v48-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --primary-color: #181e2a;
  --secondary-color: #232a3c;
  --accent-color: #cb751a;
  --accent-color: #ff7d00;
  --text-color: #f3f3f3;
  --glass-bg: rgba(24,30,42,0.7);
  --glass-blur: 10px;
  --success: #00e676;
  --error: #ff1744;
  --font-main: 'Roboto', Arial, sans-serif;
}

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

body {
  background: var(--primary-color);
  color: var(--text-color);
  font-family: var(--font-main);
  min-height: 100vh;
}

nav {
  background: rgba(24,30,42,0.7);
  backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  height: 58px;
}

nav .logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent-color);
  text-transform: uppercase;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 50%;
  background: #232a3c;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav ul li a:not(.social-btn) {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

nav ul li a:hover,
nav ul li.active a {
  color: var(--accent-color);
}

#server-status {
  padding: 0.2em 0.8em;
  border-radius: 1em;
  background: var(--secondary-color);
  font-size: 0.98em;
  margin-left: 0.5em;
}

.burger {
  display: none;
  font-size: 2rem;
  color: var(--accent-color);
  cursor: pointer;
}

header#hero {
  height: 80vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  background: url('/assets/img/parallax/parallax-1.jpg') center/cover no-repeat;
  position: absolute;
  width: 100%;
  height: 120%;
  top: 0;
  left: 0;
  z-index: 1;
  background-attachment: fixed;
}

.section-wave {
  position: relative;
  width: 100%;
  margin-top: -2px;
  line-height: 0;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-color);
  width: 100%;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.hero-content p {
  font-size: 1.3rem;
  margin: 1.2rem 0;
}

.hero-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 1.2em;
  border-radius: 50%;
  background: #232a3c;
  box-shadow: 0 2px 10px #0004;
}

.hero-socials {
  margin: 2em 0 0 0;
  display: flex;
  justify-content: center;
  gap: 1.5em;
}

.hero-socials .fa {
  padding: 0.7em 0;
  width: 48px;
  height: 48px;
  font-size: 1.7em;
  text-align: center;
  text-decoration: none;
  margin: 0 0.15em;
  border-radius: 50%;
  background: var(--secondary-color, #232a3c);
  color: #fff;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px #0002;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 700px) {
  .hero-socials {
    gap: 1em;
    margin-top: 1.2em;
    flex-wrap: wrap;
  }
  .social-btn {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    margin-bottom: 0.3em;
  }
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s forwards;
  text-decoration: none;
}

.social-btn:nth-child(1) { animation-delay: 0.1s; }
.social-btn:nth-child(2) { animation-delay: 0.2s; }
.social-btn:nth-child(3) { animation-delay: 0.3s; }
.social-btn:nth-child(4) { animation-delay: 0.4s; }

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

.social-btn:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 125, 0, 0.3);
  border-color: transparent;
}


.cta-btn {
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color));
  color: #181e2a;
  font-weight: 800;
  padding: 0.8em 2em;
  border: none;
  border-radius: 2em;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #0005;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s;
  display: inline-block;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color));
}

section {
  padding: 5em 0 3em 0;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.2em;
}

.gallery .container {
  max-width: 80%;
  margin: auto;
  padding: 0 1.2em;
}

h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 1.2em;
  color: var(--accent-color);
  text-align: center;
}

.planning-grid {
  display: flex;
  gap: 2em;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2em;
}

.planning-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 1em;
  padding: 2em 1.5em;
  min-width: 210px;
  text-align: center;
  box-shadow: 0 2px 8px #0002;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.1em;
  transition: transform 0.15s;
}

.planning-card:hover {
  transform: scale(1.04) translateY(-3px);
  background: var(--secondary-color);
}

.planning-card h3 {
  font-size: 1.4em;
  color: var(--accent-color);
  margin-bottom: 0.5em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.planning-time {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.6em;
}

.planning-activity {
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 0.3em;
}

.planning-note {
  font-size: 0.98em;
  color: #ccc;
  margin-bottom: 0.2em;
}

.planning-info {
  text-align: center;
  margin-top: 1.5em;
  font-size: 1.12em;
  color: var(--accent-color);
  background: var(--glass-bg);
  padding: 1em 1.5em;
  border-radius: 1em;
  box-shadow: 0 2px 8px #0002;
  transition: transform 0.15s;
}

.planning-info:hover {
  transform: scale(1.04) translateY(-3px);
  background: var(--secondary-color);
}

@media (max-width: 900px) {
  .planning-grid {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }
}

.parallax-milsim {
  background: url('/assets/img/parallax/20250630120024_1.jpg') center/cover no-repeat;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  background-attachment: fixed;
}

.milsim-content {
  position: relative;
  z-index: 2;
  padding: 3em 2em;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 1.5em;
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
}

.member-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 1em;
  padding: 1.2em;
  min-width: 170px;
  text-align: center;
  box-shadow: 0 2px 8px #0002;
  transition: transform 0.15s;
}

.member-card:hover {
  transform: scale(1.04) translateY(-3px);
  background: var(--secondary-color);
}

.member-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.7em;
  border: 3px solid var(--accent-color);
}

#recruitment .cta-btn {
  display: block;
  margin: 1.3em auto 0 auto;
  text-align: center;
}

#recruitment .container {
  text-align: center;
}

#recruitment h2 {
  font-family: 'Defused', 'Roboto', Arial, sans-serif;
  font-size: 2.3em;
  letter-spacing: 0.08em;
}

footer {
  text-align: center;
  color: #888;
  padding: 2em 0 1em 0;
  background: var(--secondary-color);
  font-size: 0.97em;
  margin-top: 2em;
}

@media (max-width: 950px) {
  header#hero {
    height: 60vh;
    min-height: 320px;
  }
  .hero-content h1 {
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--accent-color);
  }
  .container {
    padding: 0 0.4em;
  }
  .milsim-content {
    padding: 2em 0.7em;
  }
  nav ul {
    /* display: none;  <-- SUPPRIME cette ligne ! */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--glass-bg);
    position: absolute;
    top: 58px;
    right: 0;
    left: 0;
    z-index: 100;
    padding: 1em 0;
    height: auto;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-30px) scale(0.98);
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
  }
  nav ul.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  nav ul li {
    width: 100%;
    margin: 0.6em 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
  }
  nav ul.open li {
    opacity: 1;
    transform: translateY(0);
  }
  nav ul li a {
    width: 100%;
    display: block;
    font-size: 1.2em;
  }
  .burger {
    display: block;
  }
  nav ul.open li:nth-child(1) { transition-delay: 0.07s; }
  nav ul.open li:nth-child(2) { transition-delay: 0.14s; }
  nav ul.open li:nth-child(3) { transition-delay: 0.21s; }
  nav ul.open li:nth-child(4) { transition-delay: 0.28s; }
  nav ul.open li:nth-child(5) { transition-delay: 0.35s; }
  nav ul.open li:nth-child(6) { transition-delay: 0.42s; }
  nav ul.open li:nth-child(7) { transition-delay: 0.49s; }
  nav ul.open li:nth-child(8) { transition-delay: 0.56s; }
}

.about-flex {
  display: flex;
  gap: 2em;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.about-video {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-text {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 540px;
  font-size: 1.12em;
  color: var(--text-color);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 1em;
  padding: 1.5em;
  box-shadow: 0 2px 8px #0002;
  transition: transform 0.15s;
}


.about-text:hover {
  transform: scale(1.04) translateY(-3px);
  background: var(--secondary-color);
}

.about-text p {
  margin-bottom: 1.1em;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .about-flex {
    flex-direction: column;
    gap: 1.3em;
    align-items: stretch;
  }
  .about-video, .about-text {
    max-width: 100%;
  }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5em;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0.7em;
    box-shadow: 0 2px 8px #0003;
    transition: box-shadow 0.2s;
}

.gallery-item:hover .gallery-thumb {
    box-shadow: 0 4px 16px #0005;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(10,16,32,0.96);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 1em;
    box-shadow: 0 4px 32px #000a;
}

.lightbox .close {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 2.5em;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

.lightbox .arrow {
    position: absolute;
    top: 50%;
    font-size: 3em;
    color: var(--accent-color);
    cursor: pointer;
    user-select: none;
    z-index: 10;
    padding: 0 0.2em;
    background: rgba(24,30,42,0.7);
    border-radius: 0.3em;
    transition: background 0.2s;
}

#lightbox-img {
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1);
  opacity: 1;
}
#lightbox-img.fade-in {
  opacity: 0.2;
  animation: fadeInLightbox 0.35s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fadeInLightbox {
  from { opacity: 0.2; }
  to   { opacity: 1; }
}


.lightbox .arrow.left { left: 40px; transform: translateY(-50%); }
.lightbox .arrow.right { right: 40px; transform: translateY(-50%); }

.lightbox .arrow:hover { background: var(--accent-color); color: #fff; }

@media (max-width: 700px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .lightbox .close { top: 12px; right: 18px; }
    .lightbox .arrow.left { left: 8px; }
    .lightbox .arrow.right { right: 8px; }
}


.lang-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  color: #fff;
  font-weight: 700;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

.lang-btn:hover, .lang-btn:focus {
  background: var(--accent-color2, #ff7d00);
  color: #fff;
  outline: none;
}

.flag-icon {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px #0002;
}

.arrow {
  font-size: 0.8em;
  margin-left: 4px;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: var(--secondary-color, #232a3c);
  border-radius: 8px;
  box-shadow: 0 6px 24px #0003;
  min-width: 130px;
  z-index: 100;
  padding: 8px 0;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px);}
  to { opacity: 1; transform: translateY(0);}
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  padding: 8px 18px;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.18s;
}

.lang-menu a:hover {
  background: var(--accent-color, #00ffe7);
  color: #181e2a;
}

.lang-dropdown.open .lang-menu {
  display: block;
}
