@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

:root {
    --background-color: #06112e;
    --dark-bg-color: #03091a;
    --text-color: #e1e1e1;
    --cyan-color: #1e96fc;
    --accent-color: #ddff1e;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--text-color);
    font-family: 'Poppins', 'Gilroy-Regular', sans-serif;
    min-height: 100vh;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    display: block;
}

/* HEADER & NAVIGATION */

/*--- Header/Nav ---*/
.main-header {
  position: fixed;
  top: 0; left: 0; width: 100vw;
  background: rgba(6,17,46,0.97);
  z-index: 1000;
  box-shadow: 0 2px 14px #0003;
  height: 60px;
  display: flex;
  align-items: center;
}

.nav {
  max-width: 1260px;
  margin: 0 auto;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 18px;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo img {
  height: 38px;
}

/* -------- NAV LINKS -------- */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  list-style: none;
  gap: 1.7rem;
  margin: 0;
  padding: 0;
  margin-right: 30px;
  padding-left: 150px ;
  background: none;
  position: relative;
  transition: left 0.3s;
}
.nav-links li { position: relative; }
.nav-links a, .button {
  color: #fff;
  font-size: 1rem;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  display: flex;
  align-items: center;
  height: 44px;
  box-sizing: border-box;
  background: none;
  border: none;
}
.nav-links .button.yellow {
  background: var(--accent-color);
  color: #232323;
  font-weight: bold;
  white-space: nowrap;
  margin-left: 1.2rem;
  margin-right: 0.4rem;
  box-shadow: 0 1px 4px #0002;
}
.nav-links a:hover, .nav-links .button.yellow:hover {
  background: #222c;
  color: var(--cyan-color);
}
.has-megamenu > a i {
  margin-left: 4px;
  transition: transform 0.2s;
}
.has-megamenu.open > a i {
  transform: rotate(180deg);
}

/* -------- BURGER MENU -------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
  margin-left: 10px;
  margin-right: 10px;
}
.burger span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 4px 0;
  background: var(--accent-color);
  border-radius: 2px;
  transition: .25s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg);}
.burger.active span:nth-child(2) { opacity: 0;}
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg);}

/* -------- MEGA MENU -------- */
.has-megamenu { position: relative; }
.mega-box {
  display: none;
  position: absolute;
  left: 50%; top: 48px;
  transform: translateX(-50%);
  background: #172c49f6;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px #0005;
  min-width: 400px;
  max-width: 700px;
  padding: 26px 36px;
  z-index: 200;
}
.has-megamenu:hover .mega-box,
.has-megamenu:focus-within .mega-box,
.has-megamenu.open .mega-box {
  display: block;
}
.mega-box .content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 42px;
}
.mega-box .row {
  min-width: 200px;
}
.mega-box .row header {
  font-size: 1.07rem;
  color: var(--accent-color,#ffcc1e);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.1px;
}
.mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-links li a {
  color: #fff;
  font-size: 1.06rem;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
  transition: background 0.14s, color 0.15s;
  background: none !important;
}
.mega-links li a:hover { color: var(--accent-color); background: #2222; }

/* -------- BOUTONS GLOBAL -------- */
.button {
  display: inline-block;
  padding: 0.6em 1.4em;
  border: none;
  border-radius: 7px;
  background: var(--accent-color, #ffcc1e);
  color: #232323;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: filter .18s, box-shadow .18s;
  box-shadow: 0 1px 4px #0002;
  text-align: center;
  text-decoration: none;
}
.button:hover,
.button:focus {
  filter: brightness(0.88);
  color: #fff;
  outline: none;
}

.button.yellow:hover {
  box-shadow: 0 6px 32px #b6ec3a99, 0 1px 2px #0003;
  filter: brightness(1.13);
  color: #232323;
  transform: translateY(-2px) scale(1.045);
  transition: all 0.16s;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 1135px) {
  .nav { padding: 0 5px; }
  .mega-box { min-width: 240px; padding: 12px 6vw; }
  .mega-box .content { gap: 20px;}
}
@media (max-width: 1109px) {
  .main-header, .nav { height: 52px; }
  .logo img { height: 26px; }
  .burger { display: flex; margin-right: 14px;}
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0; left: -110vw;
    width: 89vw;
    height: 100vh;
    background: #0e1838f7;
    padding: 62px 0 0 16px;
    gap: 1.1rem;
    z-index: 1010;
    transition: left .3s;
    box-shadow: 0 0 0 #0000;
    flex: none;
  }
  .nav-links.show { left: 0; }
  body.menu-open { overflow: hidden; }
  .mega-box {
    position: static;
    box-shadow: none;
    border-radius: 8px;
    background: #162447e9;
    min-width: unset; max-width: unset;
    padding: 10px 2vw;
    margin: 7px 0 0 0;
    left: unset; top: unset; transform: none;
  }
  .mega-box .content { flex-direction: column; gap: 8px;}
  .mega-box .row { min-width: unset;}
  .nav-links .button.yellow { margin-left: 0; }
}
@media (max-width: 600px) {
  .nav { padding: 0 1vw; }
  .nav-links { width: 97vw; padding-left: 2vw;}
  .burger { margin-right: 3vw; }
}


/* HERO SECTION */

.hero.index {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image:url(../image/first_bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 120px 24px 64px 24px;
    position: relative;
}

.hero.gm {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image:url(../image/gmod.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 120px 24px 64px 24px;
    position: relative;
}

.hero.mc {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image:url(../image/first_bg_pixours.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 120px 24px 64px 24px;
    position: relative;
}

.hero.fivem {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image:url(../image/gta.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 120px 24px 64px 24px;
    position: relative;
}

.hero.vps {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image:url(../image/vps.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 120px 24px 64px 24px;
    position: relative;
}
.hero.web {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image:url(../image/web.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 120px 24px 64px 24px;
    position: relative;
}

.hero-content {
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 720px;
    margin: auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.desc {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

/* OFFERS SECTION */

.offers-section {
    background: #07112F;
    padding: 50px 0 32px 0;
}

.title-section {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 36px;
    position: relative;
    color: var(--accent-color);
}

.offers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1080px;
    margin: auto;
}

.offers article {
    background: var(--dark-bg-color);
    border-radius: 18px;
    box-shadow: 0 8px 24px #0005;
    padding: 30px 22px 30px 22px;
    min-width: 220px;
    max-width: 270px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .17s, box-shadow .18s;
}

.offers article:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 16px 30px #0007;
}

.offers article img {
    height: 60px;
    margin-bottom: 14px;
}

.offers article h3 {
    margin: 8px 0 10px 0;
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.offers article ul {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
}

.offers article li {
    font-size: 1rem;
    margin-bottom: 4px;
}

/* POURQUOI NOUS CHOISIR */

.why-section {
    background: #091b36;
    padding: 40px 0 64px 0;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.card {
    background: #131f36;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px #0003;
    padding: 30px 28px;
    min-width: 190px;
    max-width: 250px;
    text-align: center;
    transition: box-shadow .2s;
}

.card i {
    font-size: 2.1rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    margin-top: 3px;
    font-weight: 700;
}

.card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* PARTNERS */

.partners-section {
    padding: 38px 0;
    background: #06112e;
    text-align: center;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 14px;
}

.partners-logos img {
    height: 56px;
    opacity: 0.9;
    filter: drop-shadow(0 3px 10px #0003);
}

/* FOOTER */

.footer {
    background: #03091a;
    color: #b8c2d0;
    padding: 28px 0 12px 0;
}

.parts {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    max-width: 1280px;
    margin: auto;
    padding: 0 32px;
    justify-content: space-between;
}

.part {
    min-width: 170px;
}

.title-footer {
    font-size: 1.23rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 8px;
}

.footer a {
    color: #b8c2d0;
    opacity: 0.9;
    font-size: 1rem;
    transition: color .2s;
}

.footer a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.info-kp {
    max-width: 1280px;
    margin: 24px auto 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    font-size: 0.96rem;
    color: #8994ac;
    opacity: 0.75;
    flex-wrap: wrap;
}

.info-kp .right {
    margin-left: auto;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .offers, .cards, .partners-logos, .parts {
        flex-wrap: wrap;
        gap: 22px;
        justify-content: center;
    }
    .offers article, .card {
        min-width: 220px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 10px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-content {
        padding: 0 2px;
    }
    .title-section {
        font-size: 1.5rem;
    }
    .offers, .cards, .partners-logos, .parts {
        gap: 14px;
    }
    .footer {
        padding: 20px 0 6px 0;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 84px 6px 30px 6px;
    }
    .offers article, .card, .part {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        padding: 18px 7px;
    }
    .footer {
        padding: 12px 0 4px 0;
    }
    .info-kp {
        flex-direction: column;
        gap: 7px;
    }
}

/* Ajoute ici tes styles custom si besoin, ou je t’aide à modulariser pour chaque page 😉 */
/* Ajoute tout en bas de ton CSS */

/* Nav et burger fixes & clean */
.nav {
  position: relative;
  background: transparent;
  height: 80px;
  width: 100%;
  z-index: 50;
}

/* Responsive nav */
@media (max-width: 900px) {
  .nav-links {
    flex-direction: column;
    position: fixed;
    background: #06112ef9;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    padding-top: 110px;
    z-index: 999;
    gap: 2.5rem;
    display: none;
    align-items: flex-start;
    transition: left .3s;
  }
  .nav-links.show {
    display: flex;
  }
  .burger {
    display: block;
    z-index: 1001;
    position: relative;
  }
  .main-header {
    position: fixed;
    width: 100vw;
    left: 0; top: 0;
    z-index: 1100;
  }
}

/* Offres en colonne sur mobile */
@media (max-width: 900px) {
  .offers {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
  .offers article {
    width: 90vw;
    max-width: 370px;
  }
}

/* Espace Client bouton toujours inline */
.nav-links li:last-child {
  margin-left: auto;
}
@media (max-width: 900px) {
  .nav-links li:last-child {
    margin-left: 0;
  }
}


.about-section {
  width: 100%;
  background: #0d1830;
  padding: 54px 0 44px 0;
  display: flex;
  justify-content: center;
}
.about-container {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 52px;
  align-items: center;
  padding: 0 24px;
}
.about-image img {
  width: 230px;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 2px 12px #0005;
  display: block;
}
.about-text {
  flex: 1;
}
.about-text h2 {
  font-size: 2.2rem;
  color: var(--accent-color, #ffcc1e);
  margin-bottom: 16px;
  margin-top: 0;
}
.about-text p {
  font-size: 1.09rem;
  margin-bottom: 12px;
  color: #e9e9e9;
  line-height: 1.6;
}
.about-values {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px 0;
}
.about-values li {
  margin-bottom: 5px;
  font-size: 1.04rem;
}
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    gap: 26px;
    text-align: center;
  }
  .about-image img {
    margin: 0 auto;
  }
  .about-text h2 { font-size: 1.55rem; }
}

