@media screen and (max-width: 768px) {
    .logoscript {
        width: 35px;
        height: 35px;
        border: 5px solid transparent;
  
     /* 2. Empêche la bordure de réduire la taille de l'image (l'ajoute vers l'intérieur) */
       margin-top:-2px;
    }
}




@media (max-width: 767px) {
    .mobile-hidden {
        display: none;
    }
}
@media (min-width: 768px) {
    .desktop-hidden {
        display: none;
    }
}

@media (max-width: 768px) {
    .btn-xs,
    .btn-group-xs > .btn {
        padding: 7px 8px 6px 8px !important;
        font-size: 20px !important;
        min-width: 44px !important;
        height: 44px !important;
    }
    
    .btn i.fa {
        font-size: 24px !important;
    }
}

#stay-top {
      position: -webkit-sticky;
      position: sticky;
      top: 0;
      z-index: 1000;
      border-top: 1px solid #ddd;
      }

#bouton-social {
border-radius: 50% 50% 50% 50% !important;
 z-index: 1200;
      }

#size-bouton {
font-size:18px;
 z-index: 1200;
      }

.code-block {
        position: relative;
        margin: 1.5em 0;
    }
    .code-actions {
        margin-top: 8px;
        text-align: right;
    }
    .btn-copy {
        color: rgb(255, 255, 255);
        background-color: #2E714A;
        border: 1px solid #ccc;
        padding: 6px 12px;
        border-radius: 4px;
        cursor: pointer;
    }
    .btn-copy:hover {
        background: #e41f11

    }
    .copy-success {
        transition: opacity 0.4s ease;
    }
    .copy-success.show {
        opacity: 1;
    }

.formactif {
       border-radius: 5px !important;
           border: 1px solid #DDD;
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    color: #a2a2a2 !important;
    font-size: 13px !important;
    display: block;
    width: 95%;
    height: 34px;
    padding: 6px 6px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
     }

.verticalAlign {

   vertical-align: middle!important; display : inline-block;


}


.label-cat {
    color : #fff;
    background-color: #F6BB42;
}

.badge-out {
    background-color: #37bc9b;


}


.btn-download {
  background-color: #37bc9b;
  border-color: none;
  color: #ffffff;
}

@media (max-width: 768px) {
                                 #scroly{ background-color: #fbfbfb;
                               overflow : scroll;
                                }

                                #cachetout{       visibility:hidden;

                                }

                                    }

.list-group-item { padding: 10px 22px; }
        .btn { border-radius: 5px !important; }
        .list-group-item { background-color: #e9eaed; }
        .header-content h1 {
        font-size: 26px;
        color: #1D2939;

        margin: 0;
        margin-left:36px }
        .header-content h1 i {
        margin-right: -2px;
        padding-right: 10px; }



.btn2-primary.btn2-stroke {
    border: 1px double #ccc;

    border-left:0px solid transparent;

    background-color: #f9f9f9;
    color: #205081;
}

.btn2-primary.btn2-stroke:hover {
  background-color: #2a2a2a;
  border-color: transparent;
  color: white;
}

.btn2 {
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    background-color: transparent;
    font-weight: 300;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    border-radius: 0px;
}

.btn2 {

    border-radius: 0px !important;
    display: inline-block;
    padding: 9px 11px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
}


.mini-stat-icon2 {
    width: 42px;
    height: 42px;
    display: inline-block;
    line-height: 42px;
    text-align: center;
    font-size: 22px;
    background: none repeat scroll 0% 0% #EEE;
    border-radius: 100%;
    float: left;
    margin-right: 10px;
    color: #FFF;
    }

.mini-stat-info span {
    display: block;
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 7px;

    }
/* TUTO NEW */

  #qcm-container {
    max-width: 700px;           /* ? Largeur raisonnable */
    margin: 20px auto;
    padding: 20px;
  }

  .question {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .progress {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
  }

  .qheader {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
  }

  .options label {
    display: block;
    padding: 12px 15px;
    margin: 8px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
  }

  .options label:hover {
    background: #f8f9fa;
  }

  .correct { background-color: #d4edda !important; border-color: #28a745; }
  .incorrect { background-color: #f8d7da !important; border-color: #dc3545; }

  .explanation {
    margin-top: 15px;
    padding: 15px;
    background: #e7f3ff;
    border-left: 5px solid #007bff;
    border-radius: 6px;
    display: none;
  }

  .buttons {
    text-align: center;
    margin: 30px 0;
  }

  .buttons button {
    padding: 14px 28px;
    font-size: 1.1em;
    margin: 0 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }

  #liens_titre {
      font-size: 2em; /* Taille par défaut pour les écrans plus grands */
  }

  @media (max-width: 600px) {
      #liens_titre {
          font-size: 1.3em; /* Taille pour les écrans de 600px ou moins */
      }
  }

  #corrigerBtn {
    background: #007bff;
    color: white;
  }

  #reessayerBtn {
    background: #6c757d;
    color: white;
  }

  #resultat {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
  }

  .excellent { background: #d4edda; color: #155724; }
  .moyen { background: #fff3cd; color: #856404; }
  .faible { background: #f8d7da; color: #721c24; }
#tuto-content {
    width: 100%;
    padding: 20px 30px;
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    #tuto-content {
        font-size: 14px;
        padding: 15px 20px;
    }
}

#tuto-content h2 {
    color: #0066ff;
    margin: 50px 0 25px 0;
}

#tuto-content .question {
    margin-bottom: 35px;
}

/* Style des smileys si tu veux les remplacer par tes propres images plus tard */
img[alt="sourire"], img[alt="clin d'oeil"] {
    vertical-align: middle;
}


/* fonctions snippet */

.php-func-link {
    position: relative;
    font-size: 16px !important;
    text-decoration: underline !important;
    text-decoration-style: dotted;
    text-decoration-color: #0066cc;
    text-underline-offset: 3px;
    cursor: help;
}
.php-func-link:hover {
    text-decoration: underline;
    color: #0066cc;
}
.php-func-link .tooltip {
    visibility: hidden;
    position: absolute !important;
    z-index: 2147483647 !important;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #424242;
    color: #ecf0f1;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
    min-width: 170px;
    max-width: 380px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .php-func-link .tooltip {
        max-width: 90px !important;
        padding: 10px 12px;
        font-size: 12px;
    }
}

.php-func-link:hover .tooltip {
    visibility: visible;
    opacity: 1;

}
.php-func-link .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #2c3e50;
}

