@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk&display=swap');

body {
    margin: 0px;
    background-color: #F9FAFA;
    font-family: "Poppins",sans-serif;
}


.page {
    margin-left: 15%;
    margin-right: 15%;

}
.page#line h1 { margin-bottom: 14px; }

@media only screen and (max-width : 700px) {
    .page {
        margin-left: 2%;
        margin-right: 2%;
    }

    .info {
        font-size: 10px;
    }

    .auto-grid {
      --auto-grid-min-size: 4rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(var(--auto-grid-min-size), 1fr));
      grid-gap: 1rem;
    }

    .grid-container .box {
      margin-bottom: 10px;
      width: 100%;
      margin: inherit;
    }

    .gir {
      max-height: 10px;
      width: 100%;
      object-fit: contain;
    }

    #networks_summary .box {
        width: 100%; /* Chaque boîte prendra 100% de la largeur sur les petits écrans */
    }

  }

a {
    font-family: "Poppins",sans-serif;
}

p {
    font-family: "Poppins",sans-serif;
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

h1{
    font-family: "Space Grotesk",sans-serif;
}

h2{
    font-family: "Space Grotesk",sans-serif;
}

h3{
    font-family: "Poppins",sans-serif;
}

.gir{
  max-width: 100%;      /* Limite la largeur à 100% du parent */
  max-height: 30px;     /* Limite la hauteur à 30px */
  margin-left: auto;    /* Centre horizontalement */
  margin-right: auto;   /* Centre horizontalement */
  display: block;       /* Affiche l'image comme un bloc pour la centrer */
  height: auto;         /* Permet à l'image de conserver son ratio d'aspect */
}

.info {
    font-family: "Poppins",sans-serif;
    font-size: 1rem;
    margin:0;
    font-weight: 400;

}


.status{
    color:#3742fa;
    font-family: "Space Grotesk",sans-serif;
    text-transform: uppercase;
    font-weight: 600;
}

.modele{
    font-family: "Poppins",sans-serif;
    font-weight: 800;
    font-size: 22px !important;
}

.box-title {
    font-weight: bold;
    font-family: "Space Grotesk",sans-serif;
    margin:0;
    font-size: 1.5rem;
}

.energy {
    max-width: 27px;
}

/* CSS pour les boîtes */
.grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.grid-container .box {
  background-color: #F6F6F6;
  padding: 20px;
  width: calc(33.33% - 15px); /* Calcule la largeur de chaque boîte */
  margin-bottom: 20px;
  box-sizing: border-box; /* Inclure les bordures et les marges dans la largeur */
  border: solid 1px #DDDDDD;
  border-bottom: solid 4px #3626a7;
  cursor: pointer;

}

.grid-container > .box:hover {
  background-color: lightgray;
}

/* Styles pour les contenus des boîtes */
.grid-container .box .box-content {
  display: flex;
  align-items: center;
}


.icon {
  margin-right: 20px; /* Espacement entre l'icône et le texte */
  width: 80px;

}

.icon img {
  max-width: 80px;
  width: auto;
  height: auto;
}

.model-energy-icon img {
  vertical-align: middle;
  margin-left: 4px; /* optionnel pour l'espace entre texte et icône */
}




.text {
  flex-grow: 1; /* Pour que le texte occupe l'espace restant */
}

/* NEW*/

/* OLD */

# .box {
  border: 1px solid #E1E3E5;
  background-color: white;
  padding: 20px 24px;
  border-radius: 10px; 
  color: #25282d;
  box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);
  margin-bottom: 30px;
}


.box_dual{
    padding-top: 30px;
    display: flex;
    align-items: center;
}

.bloc_dual_g {
    border: 1px solid #E1E3E5;
    background-color: white;
    border-radius: 10px;
    width: 120px;
    height: 120px;
    /*border-radius: 50%;*/
    margin-right: 15px;
    background-color: white;
}

.bloc_dual_g img {
    width: 100%;
    height: 100%;
    object-fit:fill;
}

.bloc_dual_d {
    flex-grow: 1;
}

.bloc_dual_d p {
    margin: 0;
}

#network .name, #line .name{
  color:#3626a7;
  font-family: "Poppins",sans-serif;
  text-transform: uppercase;
  font-weight: 600;
}

#network .description, #line .description{
  font-family: "Poppins",sans-serif;
  font-weight: 800;
  font-size: 22px !important;
}

.auto-grid {
  --auto-grid-min-size: 14rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--auto-grid-min-size), 1fr));
  grid-gap: 1rem;
}

.auto-grid3 {
  --auto-grid-min-size: 16rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--auto-grid-min-size), 1fr));
  grid-gap: 1rem;
}

/* NAVBAR */
.nav {
  height: 50px;
  width: 100%;
  background-color: #3626a7;
  position: relative;
}

.nav > .nav-header {
  display: inline;
}

.nav > .nav-header > .nav-title img {
  position: absolute;
  padding: 10px 10px 10px 10px;
  height: 30px;
}

.nav > .nav-btn {
  display: none;
}

.nav > .nav-links {
  display: inline;
  float: right;
  font-size: 18px;
}

.nav > .nav-links > a {
  display: inline-block;
  padding: 11px 10px 11px 10px;
  text-decoration: none;
  color: #efefef;
}

.nav > .nav-links > a:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.nav > #nav-check {
  display: none;
}


/* Style pour les liens des fiches */
.fiche-link {
  display: inline-block;
  padding: 6px 12px;
  background-color: #f1f1f1;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  font-size: 14px;
}

.fiche-link:hover {
  background-color: #3626a7;
  color: white;
  transform: translateY(-2px);  /* Effet de "décalage" au survol */
}

.fiche-link:active {
  background-color: rgb(1, 63, 129);
  transform: translateY(0);  /* Rétablit l'effet de déplacement lorsque le lien est cliqué */
}

.fiche-link:focus {
  outline: none;  /* Retirer le contour lors du focus */
  box-shadow: 0 0 0 2px rgba(6, 127, 255, 0.6) /* Ombre bleue claire pour le focus */
}

/* Responsive pour les petits écrans */
@media (max-width: 700px) {
  .fiche-link {
      padding: 5px 10px;
      font-size: 12px;
  }
}


/* Le conteneur permettant le défilement horizontal */
.table-container {
  overflow-x: auto; /* Permet de faire défiler la table horizontalement */
  -webkit-overflow-scrolling: touch; /* Meilleur défilement sur les appareils iOS */
  width: 100%;
}

table {
  width: 100%; /* La table prend toute la largeur du conteneur */
  table-layout: auto; /* Permet aux colonnes de s'ajuster au contenu */
}

th, td {
  padding: 8px 6px; /* Ajouter du padding pour éviter que le texte touche les bords */
  text-align: center; /* Aligner le texte au centre des cellules */
  white-space: nowrap; /* Empêche les retours à la ligne dans les cellules */
  word-wrap: break-word; /* Permet de couper les mots longs qui ne peuvent pas être affichés */
  overflow: hidden; /* Cache le contenu débordant */
  text-overflow: ellipsis; /* Affiche des "..." si le texte déborde */
  font-size: 1rem;

}

/* Empêcher les cellules de se chevaucher */
th, td {
  min-width: 50px; /* Définit une largeur minimale pour les colonnes */
  max-width: 200px; /* Limite la largeur des colonnes */
}

/* Adaptations supplémentaires pour les petits écrans */
@media (max-width: 768px) {
  .table-container {
      -webkit-overflow-scrolling: touch;
  }
  
  th, td {
      padding: 10px; /* Ajouter un peu plus de padding sur les petits écrans */
      font-size: 14px; /* Réduire la taille de la police si nécessaire */
      white-space: normal; /* Permettre les retours à la ligne sur les petits écrans */
  }
  
  /* Optionnel : Ajuster les largeurs des colonnes sur petits écrans */
  colgroup col:nth-child(1),
  colgroup col:nth-child(2),
  colgroup col:nth-child(3) {
      width: 100px;
  }
}



#illustration-container {
  padding-top: 20px;
  overflow-x: auto; /* Active le défilement horizontal si nécessaire */
  width: 100%; /* Largeur du conteneur qui s'ajuste à son parent */
  max-width: 100%; /* La largeur peut se dilater selon le contenu, pas de limite ici */
  margin: 0 auto; /* Centrer le conteneur sur la page */
  text-align: center; /* Centrer le contenu horizontalement */
}

#illustration-image {
  height: 200px; /* Limiter la hauteur à 200px */
  width: auto; /* La largeur s'ajuste automatiquement pour garder les proportions */
  display: inline-block; /* Permet de centrer l'image au sein du conteneur */
}

/* Style pour le carrousel */
.photo-carousel {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
}

.carousel-item {
  margin: 10px;
}

.carousel-img {
  max-width: 200px;
  max-height: 200px;
  cursor: pointer;
  object-fit: cover;
}

/* Modale */
/* Style pour la modale */
.modal {
  display: none; /* Initialement cachée */
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
  overflow: auto;
  padding: 10px;
}

/* Contenu de la modale */
.modal-content {
  background-color: white;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #888;
  position: relative;
  text-align: center;
  border-radius: 10px;
  width: 100vh;
  max-width: 95%; /* Limite la largeur à 95% de la fenêtre */
  max-height: 100%; /* Limite la hauteur à 90% de la fenêtre */
  overflow: hidden;
}

/* Image dans la modale */
.modal-img {
  width: 100%; /* L'image prend toute la largeur du conteneur */
  height: auto; /* Maintien des proportions de l'image */
  max-width: 100%; /* Limite la largeur de l'image pour ne pas déborder */
  max-height: 80vh; /* Limite la hauteur de l'image à 80% de la fenêtre */
  object-fit: contain; /* Garder l'image dans son conteneur sans déformation */
}

/* Détails de la photo */
.photo-details {
  margin-top: 15px;
  text-align: left;
  color: #333;
  line-height: 1em;
}

/* La croix de fermeture */
.close {
  color: #aaa;
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 25px;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


@media (max-width:600px) {
  .nav {
    position: sticky;
    top:0;
    z-index: 1000;
  }
  .nav > .nav-btn {
    display: inline-block;
    position: absolute;
    right: 0px;
    top: 0px;
  }
  .nav > .nav-btn > label {
    display: inline-block;
    width: 50px;
    height: 50px;
    padding: 13px;
  }
  .nav > .nav-btn > label:hover,.nav  #nav-check:checked ~ .nav-btn > label {
    background-color: rgba(0, 0, 0, 0.3);
  }
  .nav > .nav-btn > label > span {
    display: block;
    width: 25px;
    height: 10px;
    border-top: 2px solid #eee;
  }
  .nav > .nav-links {
    position: absolute;
    display: block;
    width: 100%;
    background-color: #333;
    height: 0px;
    transition: all 0.3s ease-in;
    overflow-y: hidden;
    top: 50px;
    left: 0px;
  }
  .nav > .nav-links > a {
    display: block;
    width: 100%;
  }
  .nav > #nav-check:not(:checked) ~ .nav-links {
    height: 0px;
  }
  .nav > #nav-check:checked ~ .nav-links {
    height: calc(100vh - 50px);
    overflow-y: auto;
  }
}

/* PAGINATION */
.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination a {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 5px;
  background-color: #f1f1f1;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
  background-color: #3626a7;
  color: white;
}

.pagination a.active {
  background-color: #3626a7;
  color: white;
  font-weight: bold;
}

.pagination a.prev, .pagination a.next {
  font-weight: bold;
}

.pagination a.prev:hover, .pagination a.next:hover {
  background-color: #3626a7;
}

/* Responsive pour petits écrans */
@media (max-width: 600px) {
  .pagination a {
      padding: 6px 12px;
      font-size: 12px;
  }
}


.ligne-icon {
  width: auto;
  height: 2rem;
  margin-right: 5px;
  vertical-align: middle;
}

.ligne-txt-line {
  padding: 5px 10px;
  border-radius: 5px;
}

.ligne-txt-bg {
  color: #000000;
}

.box a {
    text-decoration: none;
    outline: none;
}


.ligne-badge {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;           /* Ajuste la taille ici */
    font-weight: bold;
    border-radius: 10px;
    letter-spacing: 1px;
}

.network-lines-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 6px;  /* espace entre les badges/icônes */
    margin-bottom: 18px;
    align-items: center;
}
.network-lines-list a {
    text-decoration: none;      /* enlève le soulignement */
    outline: none;              /* enlève le contour bleu au focus (optionnel) */
}

.network-lines-list a:visited,
.network-lines-list a:active,
.network-lines-list a:hover,
.network-lines-list a:focus {
    text-decoration: none;
    outline: none;
}


@media only screen and (max-width:700px) {
    .network-lines-list {
        gap: 6px 3px;
    }
    .ligne-txt-line {
        font-size: 0.95rem;
        padding: 4px 7px;
    }
}


/* MODELES NETWORK*/


.box.model-summary-box {
    background: #F6F6F6;
    border: 1px solid #DDD;
    border-bottom: 4px solid #3626a7;
    border-radius: 10px;
    color: #25282d;
    box-shadow: 0 2px 5px rgba(60,60,60,0.04);
    margin-bottom: 4px;   /* Réduit la marge verticale entre box */
    padding: 12px 6px 10px 8px; /* Réduit un peu les paddings aussi */
    display: flex;
    align-items: center;
    min-width: 180px;
}
.box.model-summary-box .box-content {
    display: flex;
    align-items: center;
    width: 100%;
}
.box.model-summary-box .energy {
    max-width: 27px;
    margin-left: 5px;
    vertical-align: middle;
}
.box.model-summary-box .modele {
    font-family: "Poppins",sans-serif;
    font-weight: 800;
    font-size: 1.2em !important;
    margin-bottom: 4px;
}

.model-summary-count {
    margin-top: 4px;
    margin-bottom: 2px;
    position: relative;
}
.model-summary-ratio {
    position: absolute;
    top: -15px;
    right: 0;
    font-size: 0.84em;
    color: #566;
    font-weight: 500;
    background: rgba(255,255,255,0.8);
    padding: 0 6px;
    border-radius: 8px 8px 0 8px;
}
.model-progress-bar {
    width: 100%;
    height: 12px;
    margin-top: 7px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}
.model-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #26b135 20%, #38a1f7 100%);
    border-radius: 5px 0 0 5px;
    transition: width 0.4s;
}
@media (max-width: 700px) {
    .box.model-summary-box { padding: 10px 3px 6px 6px; }
}




/* HOMEPAGE */
/* HERO large bandeau */
.accueil-hero {
  width: 100%;
  min-height: 350px;
  background-size: cover;
  background-position: center 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accueil-hero-overlay {
  width: 100%;
  background: rgba(20,37,79,0.50);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 350px;
}
.accueil-hero-content {
  text-align: center;
  color: #fff;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 46px 10px 40px 10px;
}
.accueil-title {
  font-family: 'Space Grotesk',sans-serif;
  font-size: 2.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.accueil-sub {
  font-size: 1.2rem;
  opacity: .96;
  margin-bottom: 24px;
}
.accueil-box-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 52px auto 40px auto;
  max-width: 1000px;
  flex-wrap: wrap;
}

.accueil-box {
  background: #F6F6F6;
  border: solid 1px #DDDDDD;
  border-bottom: solid 4px #3626a7;
  border-radius: 10px;
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 305px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 18px 22px 18px;
  box-sizing: border-box;
  text-align: left;
  transition: box-shadow .16s;
}

.accueil-box:hover {
  background: #ECEFF1;
  box-shadow: 0 6px 22px rgba(26,77,191,.085);
}

@media (max-width: 700px) {
  .accueil-box-row {
    justify-content: center;
  }
}

.accueil-icon {
  font-size: 2.3rem;
  color: #3626a7;
  margin-bottom: 9px;
}

/* STATISTIQUES */
.accueil-statsbar {
  width: 100%;
  background: linear-gradient(90deg, #3626a7 0%, #657ed4 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 30px 0 18px 0;
  font-size: 1.1rem;
  margin: 0 0 40px 0;
  flex-wrap: wrap;
  border-radius: 0 0 14px 14px;
}
.accueil-statsbar > div {
  text-align: center;
  color: #fff;
}
.accueil-statsbar .info {
  color: #fffb96;
  font-family: "Space Grotesk",sans-serif;
  font-size: 2.09rem;
  font-weight: 700;
  margin-bottom: 2px;
}

/* ACTUALITÉS */
.accueil-actus {
  margin: 0 auto 35px auto;
  max-width: 1080px;
  padding: 0 6px;
}
.accueil-actus-list {
  padding-left: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.accueil-actus-list li {
  background: #f6fafd;
  border-radius: 10px;
  border: 1px solid #e1e3e5;
  box-sizing: border-box;
  padding: 16px 18px 14px 18px;
  min-width: 180px;
  max-width: 350px;
  flex: 1 1 250px;
  font-size: 1.02rem;
}
@media (max-width: 700px) {
  .accueil-actus-list {
    justify-content: center;
  }
}

/* DISCORD BLOC */
.accueil-discord {
  width: 100%;
    box-sizing: border-box; /* crucial pour inclure padding dans width */
  background: linear-gradient(90deg,#5865F2 68%,#8ea8fc 100%);
  color: #fff;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 10px 46px 10px;
  box-shadow: 0 6px 28px rgba(54,83,236,0.08);
}
.accueil-discord-content {
  width: 100%;
  max-width: 700px;
  text-align: center;
}
.accueil-discord-icon {
  font-size: 3.2rem;
  margin-bottom: 15px;
  color: #fff;
  display: block;
}
.accueil-discord-title {
  font-size: 1.33rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.accueil-discord-text {
  font-size: 1.11rem;
  margin-bottom: 18px;
}
.accueil-discord-btn {
  background: #fff;
  color: #5865F2 !important;
  border-radius: 8px;
  font-weight: 700;
  padding: 14px 38px;
  font-size: 1.10rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border: none;
  display: inline-block;
  text-decoration: none;
}
.accueil-discord-btn:hover {
  background: #e6ebfd;
  color: #233adb !important;
}
@media (max-width:700px) {
  .accueil-discord {padding: 24px 4px;}
  .accueil-discord-title {font-size:1.13rem;}
  .accueil-discord-text {font-size:0.98rem;}
}

/* BOUTON HOME */
.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: left;
  margin-top: 20px;
  padding: 13px 28px 13px 18px;
  background-color: #3626a7;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  font-size: 1em;
  max-width: 70%;
  gap: 5px
}
.btn-home:hover {
  background-color: #657ed4;
  color: white;
}
.btn-home:active {
  background-color: rgb(1, 63, 129);
  transform: translateY(0);
}
.btn-home:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(6, 127, 255, 0.6);
}
.btn-home-arrow {
  font-size: 1.55em;
  transition: transform 0.18s;
  margin-left: 6px;
}
.btn-home:hover .btn-home-arrow {
  transform: translateX(4px) scale(1.12);
}


