/* 2. SECTION HÉROS (IMAGE DE FOND) */

.ark-hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../images/ArkFond2.jpg'); 
    background-size: cover;
    margin: 0;
    background-attachment: fixed;

     /* AJOUTS POUR L'ALIGNEMENT */
    display: flex;
    flex-wrap: wrap;       /* Permet de passer à la ligne (3 blocs dessus, 3 dessous) */
    justify-content: center; /* Centre les blocs horizontalement */
    gap: 20px;  
    padding: 20px;
    box-sizing: border-box;          /* Espace régulier entre les blocs */
    padding-top: 200px;
    
}

 .ark-hero p {
    font-size: 0.9rem;
    margin-top: 5px;
    text-align: left;
}
 #ligne {
    text-align: center;
    color: rgb(0, 255, 128);
 }
 .ark-hero h3 {
    font-size: 1.2rem;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.8);
   
    padding-bottom: 2px;
    text-align: center;
}
.ark-hero h4 {
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
    padding-bottom: 2px;
}   
     


.box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(0, 255, 255, 0.3);
  border-left: 4px solid #00d1ff;
  border-radius: 15px;
  color: #ffffff;
  padding: 15px;
  box-sizing: border-box;

  /* Alignement interne */
  display: flex;
  flex-direction: column;
  
  /* Gestion de la taille */
 
  overflow: hidden; /* Empêche le texte de sortir de la box fixe */
  position: relative;
  transition: all 0.3s ease;
  overflow-y: auto;
  scroll-margin-top: 2000px; /* Ajuste la valeur selon la hauteur de ton header */

}

.box-content {  /* centrage image */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%; /* ou une hauteur fixe si nécessaire */
}
    
        


.box:hover {
    transform: translateY(-5px); /* La boîte monte légèrement */
    background: rgba(255, 255, 255, 0.15); /* Fond un peu plus clair */
    border-color: #00f3ff; /* Bordure plus vive */
    
    /* Effet de halo (glow) cyan intense */
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4), 
                inset 0 0 10px rgba(0, 243, 255, 0.2);
    color: #ffffff; /* Évite que le texte change de couleur au survol */
    
}


.conteneur {
  display: grid;
  /* 3 colonnes de largeur égale */
  grid-template-columns: repeat(4, 1fr); 
  /* Définit une hauteur de base pour chaque ligne (ajustable) */
  grid-auto-rows: 300px; 
  grid-gap: 20px;
  width: 95%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 80vh;
}

/* Une box standard (1x1) */
.une {
  grid-column: span 2;
  grid-row: span 2;
}

/* Une box deux fois plus haute (1x2) */
.deux {
  grid-column: span 1;
  grid-row: span 1;
}
.trois {
  grid-column: span 1;
  grid-row: span 1;
}

.quatre {
  grid-column: span 2;
  grid-row: span 2;
}

.cinq {
  grid-column: span 2;
  grid-row: span 2;
}

.six {
  grid-column: span 2;
  grid-row: span 1;
}
.sept {
  grid-column: span 2;
  grid-row: span 2;
}
.huit {
  grid-column: span 2;
  grid-row: span 2;
}
.neuf {
  grid-column: span 2;
  grid-row: span 1;
}

/* Le conteneur de votre bouton */
.votre-bloc-parent {
    display: flex;
    flex-direction: column;
    height: 100%; /* Important pour que le bloc ait une hauteur définie */
}

.lien-total {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none; /* ne bloque plus les clics */
}

.ark-btn {
    z-index: 2;
}

/* Style du bouton Ark */
.ark-btn {
    display: block;
    margin-top: auto;

    background: rgba(0, 209, 255, 0.2);
    color: #00d1ff;
    text-decoration: none;
    text-align: center;
    padding: 10px;
    border: 1px solid #00d1ff;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}


.ark-btn:hover {
    background: #00d1ff;
    color: #000;
    box-shadow: 0 0 5px rgba(0, 209, 255, 0.6);
}

.scroll-content {
    flex-grow: 1;       /* Prend toute la place libre */
    overflow-y: auto;   /* Active le scroll vertical si nécessaire */
    margin: 10px 0;     /* Espace avec le titre et le bouton */
    padding-right: 5px; /* Petit espace pour ne pas coller à la barre de scroll */
}

/* PERSONNALISATION DE LA BARRE DE SCROLL (Optionnel mais plus joli) */
.scroll-content::-webkit-scrollbar {
    width: 5px;
}

.scroll-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.scroll-content::-webkit-scrollbar-thumb {
    background: #00d1ff; /* Couleur cyan comme ton thème */
    border-radius: 10px;
}

.scroll-content::-webkit-scrollbar-thumb:hover {
    background: #00f3ff;
}

/* Style pour indiquer que c'est cliquable */
.clickable {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.clickable:hover {
    transform: scale(1.02); /* Petit effet au survol */
}

/* Fond noir de l'agrandissement */
.overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px); /* Flou d'arrière-plan futuriste */
    justify-content: center;
    align-items: center;
}


/* L'image agrandie */
.overlay img {
    max-width: 100%;
    max-height: 100%;
    border: 2px solid #00d1ff; /* Bordure néon style Ark */
    box-shadow: 0 0 30px rgba(0, 209, 255, 0.5);
}

/* Bouton fermer */
.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #00d1ff;
    font-size: 50px;
    cursor: pointer;
}

.warning-text {  /* UPour mettre le texte en rouge ajouter ca <p class="warning-text"></p>au html */
    color: #ff4d4d; /* Un rouge vif mais lisible */
    font-weight: bold; /* Pour que le conseil ressorte bien */
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}


.zoomable {
    cursor: zoom-in;
    transition: 0.3s;
}

.zoomable:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}


/* Tablette : on passe à 2 colonnes si l'écran est trop petit */
@media (max-width: 900px) {
  .conteneur {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    grid-auto-rows: min-content; /* On laisse la hauteur s'adapter au texte */
  }
  
  .box {
    grid-column: span 1 !important; /* On force tout sur 1 colonne si besoin */
    grid-row: span 1 !important;
  }
}

@media (max-width: 600px) {
  .conteneur {
    grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
  }
}


