/* Font */
@import url('https://fonts.googleapis.com/css?family=Quicksand:400,700');


/* Reset */
*{
  padding: 0;
  margin: 0;
  font-family: 'Quicksand',sans-serif;
  outline: none; border: none;
}

*, *::before, *::after{
  box-sizing: border-box;
}

html{
  background-color: #010204;
}

/*body*/
body {
  color: #ffffff;
  background-color: #010204;
  font-family: 'Quicksand',serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0;
}

/***************************************\
            slider background
\***************************************/ 
.slider {
  width: 100%;
  min-height: 100vh;
  position: relative;
  background: #000000;
  overflow: hidden;
  margin-bottom: -2px;
}

.slider-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
}

.slider-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  z-index: 2;
}


/* Animation du texte */
.wave-text {
  font-size: 5rem;
  font-weight: bold;
  animation: wave 12s ease-in-out infinite;
  opacity: 0;
  background: linear-gradient(
      180deg,
      #ffffff 50%,
      #0f1727 50%
  );
  background-size: 100% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes wave {
  0%, 15% {
      opacity: 0;
      transform: translateY(20px) rotate(-2deg);
      background-position: 0% 0%;
  }
  20% {
      opacity: 1;
  }
  35% {
      transform: translateY(-15px) rotate(2deg);
      background-position: 0% 100%;
  }
  50% {
      transform: translateY(10px) rotate(-1deg);
      opacity: 1;
      background-position: 0% 0%;
  }
  65% {
      transform: translateY(-5px) rotate(1deg);
      opacity: 1;
      background-position: 0% 100%;
  }
  75% {
      opacity: 1;
  }
  80% {
      opacity: 0;
  }
  100% {
      transform: translateY(20px) rotate(-2deg);
      opacity: 0;
      background-position: 0% 0%;
  }
}

/* Effet de flou amélioré */
.wave-text {
  text-shadow: 0 0 10px rgba(15, 23, 39, 0.3);
  transition: all 0.3s ease;
  position: relative;
}


/***************************************\
            slider background
\***************************************/ 

/***************************************\
               Navigation
\***************************************/ 


/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding: 20px 0;
}

.main-nav.visible {
    transform: translateY(0);
}

.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-nav__btn {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.color-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.color-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.color-btn.active {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

/***************************************\
               Navigation
\***************************************/ 

/***************************************\
            section parametre
\***************************************/
/*section*/
section {
  padding: 300px 0;
}

.main{
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 100px;
}

h1 {
  font-size: 24px;
  font-weight: 400;
  text-align: center;
}

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.btn {
  color: #ffffff;
  padding: 0.8rem;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 6px;
  font-weight: 400;
  display: block;
  width: 100%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/***************************************\
            Cards Section
\***************************************/ 

.cards {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cards_item {
    display: flex;
    padding: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cards_item.animate {
    opacity: 1;
    transform: translateY(0);
}
/*********************************\
     Animation Apparition card
\*********************************/
/* Animation séquentielle pour chaque ligne de cards */
/* Première ligne */
.cards:nth-child(1) .cards_item:nth-child(1).animate { transition-delay: 0.1s; }
.cards:nth-child(1) .cards_item:nth-child(2).animate { transition-delay: 0.2s; }
.cards:nth-child(1) .cards_item:nth-child(3).animate { transition-delay: 0.3s; }

/* Deuxième ligne */
.cards:nth-child(2) .cards_item:nth-child(1).animate { transition-delay: 0.4s; }
.cards:nth-child(2) .cards_item:nth-child(2).animate { transition-delay: 0.5s; }
.cards:nth-child(2) .cards_item:nth-child(3).animate { transition-delay: 0.6s; }

/* Troisième ligne */
.cards:nth-child(3) .cards_item:nth-child(1).animate { transition-delay: 0.7s; }
.cards:nth-child(3) .cards_item:nth-child(2).animate { transition-delay: 0.8s; }
.cards:nth-child(3) .cards_item:nth-child(3).animate { transition-delay: 0.9s; }
/*********************************\
     Animation Apparition card
\*********************************/

@media (min-width: 56rem) {
    .cards_item {
        width: 33.3333%;
    }
}

.card {
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #000000;
    border: 1px solid #000000;
    transition: all 0.3s ease;
    margin: 5px;
    width: calc(100% - 10px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(27, 46, 156, 0.3);
    border-color: #1b2e9c;
}

.card_image {
    height: 180px;
    overflow: hidden;
    margin: 15px 15px 0 15px;
    border-radius: 12px;
}

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

.card_content {
    padding: 1.5rem;
    background-color: #000000;
    margin: 0 15px 15px 15px;
}

.card_title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: capitalize;
    margin: 0;
    margin-bottom: 0.5rem;
}

.card_text {
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.btn {
    color: #ffffff;
    padding: 0.8rem;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 6px;
    font-weight: 400;
    display: block;
    width: 100%;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #1b2e9c;
    border-color: #1b2e9c;
}

/*********************************\
        Bouton Read More
\*********************************/
/* Style pour les liens des boutons */
.card_content a {
    text-decoration: none;
    color: inherit;
}

.btn.card_btn {
    color: inherit;
}
/*********************************\
         Bouton Read More
\*********************************/

/* Ajustements existants */

.adjust-margin {
  margin-top: 20px !important;
}
.adjust-2, .adjust-4, .adjust-5, .adjust4, .adjust5 {
    margin-top: 20px;
}

.adjust5 {
    margin-top: 37px;
}

.adjust-5 {
    margin-top: 42px;
}

/* Ajout du dégradé après le slider */
.section {
    background: linear-gradient(180deg, 
        #0f1727 0%,
        #000033 100%
    );
    padding-top: 50px;
    position: relative;
    z-index: 2;
}

/* Ajustement pour une transition plus douce avec le slider */
.slider {
    margin-bottom: -2px; /* Élimine le petit espace entre le slider et la section */
}

/* Effet de transition douce entre la vidéo et le dégradé */
.section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent,
        #0f1727
    );
    z-index: 1;
}
/***************************************\
            section cards
\***************************************/

/***************************************\
          section card filter
\***************************************/

.filter-container {
    text-align: center;
    padding: 2rem 0;
    background: transparent;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
/***************************************\
          section card filter
\***************************************/
/***************************************\
                Footer
\***************************************/

/* Footer Styles */
.site-footer {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px 0;
    position: relative;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.copyright-logo {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

.footer-text {
    color: #fff;
    font-size: 14px;
}

.footer-text a {
    color: #fff;
    text-decoration: none;
}

.footer-text a:hover {
    color: #ccc;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ccc;
}

.scroll-top {
    position: absolute;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    padding: 5px 10px;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-top:hover {
    color: #ccc;
    transform: translateY(-3px);
}

/***************************************\
                Footer
\***************************************/
/***************************************\
                Responsive
\***************************************/

@media screen and (max-width: 768px) {
    /* ... autres styles existants ... */

    /* Navigation ajustée */
    .header-nav {
        width: 100%;
        padding: 10px;
    }

    .header-nav__btn {
        display: flex;
        flex-wrap: nowrap; /* Empêche le retour à la ligne */
        justify-content: center;
        gap: 8px; /* Réduit l'espace entre les boutons */
    }

    .color-btn {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap; /* Empêche le texte de passer à la ligne */
        min-width: auto; /* Permet aux boutons de se rétrécir */
    }

    /* Ajustement de la position de la navbar */
    .main-nav {
        padding: 10px 0;
    }

    .main-nav.visible {
        transform: translateY(0);
    }
}

@media only screen and (max-width: 1170px) {
    .slider-content h1 {
        font-size: 2rem; /* Ajuster la taille de la police */
    }

    .main-nav .header-nav__btn a button {
        padding: 10px 15px; /* Ajuster le padding des boutons */
    }

    .cards_item {
        width: 100%; /* Assurez-vous que les cartes prennent toute la largeur disponible */
    }

    .card_image img {
        width: 100%; /* Images fluides */
        height: auto;
    }

    .card_content {
        padding: 10px; /* Ajuster le padding des cartes */
    }

    .footer-content {
        text-align: center; /* Centrer le texte du footer */
    }
}

/***************************************\
                Responsive
\***************************************/

/* Style de la flèche de défilement */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatButton 2s ease-in-out infinite;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-down img {
    width: 30px;
    height: 30px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

@keyframes floatButton {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -10px);
    }
}

/* Styles pour la carte spéciale ASSURMER E6 */
@keyframes glowing {
    0% {
        box-shadow: 0 0 5px #fff,
                   0 0 10px #fff,
                   0 0 15px #fff;
    }
    50% {
        box-shadow: 0 0 10px #fff,
                   0 0 20px #fff,
                   0 0 30px #fff;
    }
    100% {
        box-shadow: 0 0 5px #fff,
                   0 0 10px #fff,
                   0 0 15px #fff;
    }
}

.special-card {
    background-color: #000000;
    border: 1px solid #ffffff;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: glowing 3s infinite;
    position: relative;
}

.special-card:hover {
    transform: translateY(-10px);
    animation: glowing 1.5s infinite;
}

.special-card .card_title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.special-card .card_content p {
    color: #ffffff;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.choice-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.wifi-btn, .supervision-btn, .vpn-btn {
    flex: 1;
    padding: 0.8rem;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 6px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.wifi-btn::before, .supervision-btn::before, .vpn-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.wifi-btn:hover::before, .supervision-btn:hover::before, .vpn-btn:hover::before {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.8);
}

.wifi-btn:hover, .supervision-btn:hover, .vpn-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Animation de pulsation pour les boutons */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.wifi-btn, .supervision-btn, .vpn-btn {
    animation: buttonPulse 2s infinite;
}

.btn-icon {
    font-size: 1em;
}

@media (max-width: 768px) {
    .choice-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wifi-btn, .supervision-btn, .vpn-btn {
        width: 100%;
        padding: 0.6rem;
    }
}