.intro-seo {
  max-width: 800px;
  margin: 0 auto 25px;
  text-align: center;
  color: #ccc;
  font-size: 22px;
  line-height: 1.6;
}

.site-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Desktop / tablette : taille réelle */
@media (min-width: 769px) {
    .site-logo {
        width: auto;       /* taille réelle de l’image */
        max-height: none;
    }
}

/* Mobile : limité à 70px */
@media (max-width: 768px) {
    .site-logo {
        max-height: 90px;
        width: auto;
    }
}

/* Reset rapide */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #000;
  background-image: url('images/bg_main.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  color: #fff;
  min-width: 320px;
  max-width: 1400px;
  margin: 0 auto;
}

a { text-decoration: none; }

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 5px 5px 5px 5px;
  margin: 0px 5px 0px 5px;
  background: none;
  position: relative;
}

header img {

  transition: transform 0.3s;
}

header img:hover { transform: scale(1.05); }


/* Icône jeton */
.jetons-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #f1c40f;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  color: #000;
  font-size: 12px;
}



/* Footer compact */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0px 10px 0px 10px;
  margin: 20px 10px 15px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30,30,30,0.95), rgba(60,60,60,0.95));
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
  min-height: 60px;

}

footer a {
  color: #fff;
  margin-right: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 15px;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #00ff00;
  text-shadow: 0 0 6px #00ff00, 0 0 12px #00ff00;
  transform: translateY(-2px);
  box-shadow: 0 0 10px #00ff00;
}

menu {
  margin: 0px 10px 0px 10px;
}
/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 28px;
  height: 20px;
  justify-content: space-between;
  z-index: 1001;
}
.hamburger div {
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}


/* Bloc connexion */
.login-block {
color: #00ff00;
padding: 10px;
border-radius: 15px;

max-width: 90%;
transition: transform 0.3s;
flex-shrink: 0;
background: rgba(255,255,255,0.05);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
}

.login-block form { display: flex; flex-direction: column; gap: 6px; }
.login-block input {
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.login-block input::placeholder { color: rgba(255,255,255,0.7); }

.login-block button {
  padding: 8px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
}
.login-block button:hover {
  background-color: #111;
  transform: scale(1.005);
}

@media (max-width: 768px) {
  .login-block form {
    align-items: flex-end; /* aligne les inputs à droite */
  }
  .login-block input,
  .input-passwordcon {
    width: 220px;       /* largeur réduite */
    max-width: 100%;
  }
}

/* Conteneur de l'input avec oeil */
.input-passwordcon {
  position: relative;
  display: flex;
  align-items: center;
}

/* Ajout d'espace pour l'œil */
.input-passwordcon input {
  padding-right: 35px; /* espace pour l’œil */
  flex: 1;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  border: none;
  color: #fff;
  font-size: 14px;
}

/* Placeholder */
.input-passwordcon input::placeholder {
  color: rgba(255,255,255,0.7);
}

/* Icône œil */
.input-passwordcon .toggle-passwordcon {
  position: absolute;
  right: 10px;
  cursor: pointer;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  user-select: none;
  transition: color 0.2s;
}

.input-passwordcon .toggle-passwordcon:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  header { flex-wrap: wrap; justify-content: space-between; }
  .login-block { order: 2; margin-top: 8px; margin-left: auto; margin-right: 5px; }
  nav.menu {
    flex-direction: column;
    align-items: center;
    display: none;
    width: 100%;
    position: absolute;
    top: 55px;
    left: 0;
    z-index: 1000;
    border-radius: 0;
  }
  nav.menu.active { display: flex; }
  nav.menu a {
    font-size: 16px;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 0;
  }
  .hamburger { display: flex; order: 3; }
  footer { flex-direction: column; align-items: center; text-align: center; }
  footer div { margin: 5px 0; display: flex; flex-direction: column; }
  footer a { margin: 4px 0; }
}

/* Main et blocs */
main { background: none; padding: 0; margin: 30px 10px 0 0px; }
.main-blocks { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }


/* Blocs 1,2,3 */
.block {

  width: 420px;
  max-width: 420px;
  background: #1f2123;
  border-radius: 15px;
  padding: 2px 15px 10px 15px; 
  margin: 0 auto 10px auto; 
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Bloc 4 */
.full-width-block {
  width: 1380px; 
  max-width: 1380px; 
  margin: 0 auto 10px auto; 
  background: #1f2123; 
  border-radius: 15px; 
  padding: 15px 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
.full-width-block .title-block { margin-top: -5px; }
.full-width-block .block-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.full-width-block .block-content img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
.full-width-block .block-content .text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: #fff;
  justify-content: flex-start;
}
.full-width-block .block-content .text-content h3 { margin-bottom: 10px; font-size: 20px; }
.full-width-block .block-content .text-content p { color: #aaa; font-size: 16px; line-height: 1.5; }

/* Titres blocs 1,2,3 et 4 */
.title-block { margin-top: 5px; margin-bottom: 8px; text-align:center; }
.title-block h1 {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
  background: linear-gradient(90deg, #ffcc00, #ff6f61);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 10px 0;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}
.title-block h2 { margin-bottom: 8px; }
.title-separator { width: 100%; height: auto; margin: 0 0 10px 0; display: block; }






/* Ligne bas blocs */
.bottom-separator { width: 100%; border: 0; border-top: 2px solid #000; margin: 10px 0; }

/* Wrapper et images blocs internes */
.wrapper.hline2 { display: flex; gap: 10px; margin-bottom: 8px; align-items: center; }
.wrapper.hline2 img.img1 { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.wrapper.hline2 .box { flex: 1; }

/* Texte coloré selon bloc */
.txt_block1 { color: #fab600; font-size: 14px; }
.txt_block2 { color: #9fc603; font-size: 14px; }
.txt_block3 { color: #00f1fa; font-size: 14px; }

/* Boutons plus et inscription */
.btn-plus, .btn-inscription { text-decoration:none; font-weight:bold; transition: all 0.3s; }
.btn-plus { color:#fff; } .btn-plus:hover { color:#00ff00; }
.btn-inscription { color:#fff; } .btn-inscription:hover { color:#f1242a; }

/* Responsive blocs */
@media (max-width: 1390px){ .full-width-block { width: calc(100% - 10px); max-width: calc(100% - 10px); }  }
@media (max-width: 950px){ .main-blocks { justify-content: center; } }
@media (max-width: 410px){ 
  .main-blocks { flex-direction: column; align-items: center; } 
  .block { width: 320px; }

}
@media(max-width:768px){ 
  .full-width-block { width:100%; flex-direction:column; align-items:center; margin:5px 10px; } 
  .full-width-block .block-content { flex-direction: column; align-items:center; } 
  .full-width-block .block-content .text-content{text-align:left;} 
}

/* Conteneur du formulaire centré */






/* Menu parent */
nav.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 10px;
  margin: 8px 10px 0px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30,30,30,0.95), rgba(60,60,60,0.95));
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.menu-item {
  position: relative;
}

.menu-item > a {
  color: #fff;
  font-weight: bold;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-block;
  transition: all 0.3s ease;
}

.menu-item > a:hover {
  color: #00ff00;
  text-shadow: 0 0 8px #00ff00, 0 0 14px #00ff00;
  transform: translateY(-3px);
  box-shadow: 0 0 12px #00ff00;
}

/* Flèche */
.menu-item .arrow {
  font-size: 12px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

/* Sous-menu */
.menu-item .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1f2123;
  border-radius: 10px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  z-index: 999;
}

/* Sous-menu visible */
.menu-item.active .submenu {
  max-height: 500px; /* assez grand pour contenir les liens */
  opacity: 1;
}

/* Lien sous-menu */
.menu-item .submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.menu-item .submenu a:hover {
  color: #00ff00;
  text-shadow: 0 0 8px #00ff00, 0 0 14px #00ff00;
  background: rgba(0,255,0,0.05);
}

/* Rotation flèche */
.menu-item.active > a .arrow {
  transform: rotate(180deg);
}

/* Responsive mobile */
@media(max-width:768px) {
  nav.menu {
    flex-direction: column;
    align-items: center;
    display: none;
    width: 100%;
    position: absolute;
    top: 55px;
    left: 0;
    border-radius: 0;
  }
  nav.menu.active { display: flex; }

  .menu-item .submenu {
    position: relative;
    max-height: 0;
    width: 100%;
    border-radius: 0;
  }

  .menu-item.active .submenu {
    max-height: 500px;
  }

  .menu-item .submenu a {
    padding-left: 40px; /* indentation pour montrer hiérarchie */
  }
}

/* Sous-menu desktop */
@media(min-width:769px) {
  .menu-item .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f2123;
    border-radius: 10px;
    overflow: hidden;
    max-height: none; /* plus besoin de slide */
    opacity: 1;
    display: none;    /* caché par défaut */
    z-index: 999;
  }

  .menu-item:hover .submenu {
    display: block;   /* apparait au hover */
  }

  .menu-item .submenu a {
    padding: 10px 20px;
    display: block;
    font-size: 16px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .menu-item .submenu a:hover {
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00, 0 0 14px #00ff00;
    background: rgba(0,255,0,0.05);
  }

  /* Rotation flèche au hover desktop */
  .menu-item:hover > a .arrow {
    transform: rotate(180deg);
  }
}




.groups-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.group-card {
    flex: 1 1 calc(50% - 20px);
    display: flex;
    background: #1f2123;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s;
}
.group-card:hover { transform: scale(1.01); }

.group-logo {
    width: auto;          /* taille réelle par défaut */
    max-width: 200px;     /* ne dépasse pas 400px */
    height: auto;         /* garde les proportions */
    border-radius: 10px;
    margin-right: 20px;
    object-fit: contain;  /* l'image garde ses proportions sans déformation */
}

.group-info {
    flex: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.group-info h3 { color: #00f1fa; margin-bottom:10px; }
.group-info p { margin:3px 0; }
.group-info .etat { font-weight:bold; color:#f1242a; }

.ranking-list { list-style:none; padding-left:0; margin-top:5px; width:200px; max-width: 100%; }
.ranking-list li { padding:6px 10px; border-radius:6px; margin-bottom:4px; background: #222; display:flex; justify-content: space-between; font-weight:bold; transition: background 0.3s; }
.ranking-list li:nth-child(1) { background:#ffd700; color:#000; }
.ranking-list li:nth-child(2) { background:#c0c0c0; color:#000; }
.ranking-list li:nth-child(3) { background:#cd7f32; color:#000; }

/* Bouton noir avec hover plus clair */
.btn-more { 
    background:#000; 
    color:#fff; 
    padding:6px 12px; 
    border:none; 
    border-radius:6px; 
    cursor:pointer; 
    font-weight:bold; 
    margin-top:10px; 
    transition: background 0.3s;
}
.btn-more:hover { background:#333; }



@media(max-width:1200px){ .group-card { flex:1 1 100%; } }
@media(max-width:768px){ 
    .group-card { flex-direction:column; align-items:center; } 
    .group-logo { margin-right:0; margin-bottom:15px; } 
    .group-info{text-align:center; align-items:center;} 
    .ranking-list { width:100%; }
}



/* Modale générale */
.modal {
    display: none;
    position: fixed;
    top:0; left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.8); /* Fond noir semi-transparent */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: auto;
}

.modal-content {
    background: #000; /* Fond noir */
    padding: 20px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: #fff;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-close:hover {
    color: #f1242a;
}

.modal-ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    color: #fff;
}

.modal-ranking-table th, .modal-ranking-table td {
    padding: 8px 10px;
    text-align: left;
}

/* Ligne d'en-tête en gris foncé */
.modal-ranking-table thead th {
    background: #333;
    color: #fff;
    border-radius: 6px;
}

/* Alternance des lignes : gris clair et gris foncé */
.modal-ranking-table tbody tr:nth-child(odd) {
    background: #444; /* gris foncé */
    color: #ddd;
}

.modal-ranking-table tbody tr:nth-child(even) {
    background: #666; /* gris clair */
    color: #fff;
}

/* Hover pour améliorer la lecture */
.modal-ranking-table tbody tr:hover {
    background: #555;
    cursor: default;
}

@media(max-width:768px){ 
    .group-card { 
        flex-direction: column; 
        align-items: center; 
    } 
    .group-logo {
        margin-right: 0;
        margin-bottom: 15px;
        width: auto;        /* taille réelle si plus petite que 400px */
        max-width: 340px;   /* limite à 400px si plus grande */
        height: auto;       /* garde les proportions */
    } 
    .group-info {
        text-align:center; 
        align-items:center; 
        width: 100%; /* force la colonne info à avoir la même largeur que le logo */
        max-width: 340px; /* optionnel : limiter la largeur pour garder proportion */
    } 
    .ranking-list { 
        width:200px; 
    }
}




/* Bloc rejoindre un groupe */
.join-group-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.join-group-card {
    flex: 1 1 calc(50% - 20px);
    background: #1f2123;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    text-align: center;
    color: #fff;
    max-width: 600px;
}

.join-group-card h3 {
    color: #00f1fa;
    margin-bottom: 15px;
}

.join-group-card p {
    color: #ccc;
}

.join-group-card input {
    width: 80%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 16px;
}

.btn-join-group {
    background:#000;
    color:#fff;
    padding:10px 20px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}

.btn-join-group:hover {
    background:#333;
}

.join-group-message {
    margin-top: 15px;
    font-weight: bold;
    color: #9fc603;
}

/* Responsive : pleine largeur */
@media(max-width: 768px){
    .join-group-card {
        flex: 1 1 100%;
        max-width: 90%;
    }
}




.group-create-card {
    width: 48%;
    background: #1f2123;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    color: #fff;
    margin: auto;
    margin-top: 25px;
}

.group-create-card h3 {
    color: #00f1fa;
    text-align: center;
    margin-bottom: 15px;
}

.create-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.create-form label {
    font-weight: bold;
    color: #9fc603;
}

.create-form input {
    padding: 8px;
    border-radius: 8px;
    border: none;
    width: 100%;
}

.cost-info {
    background:#292b2d;
    padding:10px;
    border-radius:10px;
    margin-bottom:15px;
    text-align:left;
}

.cost-info span {
    color:#9fc603;
    font-weight:bold;
}

@media(max-width: 900px){
    .group-create-card {
        width: 100%;
    }
}




