:root{
    --fond-petit-element: rgb(88, 88, 88);
}

/* cacher champ adresse mail dans me formulaire de forum */
    
    .editer.saisie_session_email {
        display:none;
        }

/* Conteneur principal */
.top-questions {
    background-color: #ffffff; /* Fond blanc */
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

/* En-tête stylisé */
.top-questions-header {
     margin-top: 20px;
    background-color: #f25c69; 
    color: #ffffff; 
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transform: rotate(-3deg);
}

/* Liste des questions */
.top-questions ol {
    padding-left: 0; /* Supprime l'espacement par défaut */
    margin: 0;
    list-style: none; /* Supprime les puces */
}

/* Éléments de liste */
.top-questions li {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Espacement entre les questions */
    padding: 10px 0;
}


/* Numéros dans des cercles */
.top-questions .rank {
    background-color: #ffd700; 
    border-radius: 50%; 
    width: 25px; 
    height: 25px; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    font-weight: bold; 
    margin-right: 15px; 
    color: #000000; 
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
    flex-shrink: 0; 
    
}


/* Liens des questions */
.top-questions a {
    color: #0fa3b1; /* Bleu turquoise */
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    font-weight: bold;
    transition: color 0.2s ease;
}

.top-questions a:hover {
    color: #f25c69; /* Rouge rosé au survol */
    text-decoration: underline;
}

/* Nombre de commentaires */
.nombre_coms {
    font-size: 14px;
    color: #555; /* Gris neutre */
    font-weight: normal;
    margin-left: 10px; /* Espacement à gauche */
}




.main-global {
    display: flex;
   flex-wrap: nowrap;
    gap: 20px;
   
}

main {
   flex: 1 1 auto;
    padding: 20px;
}

aside {
    flex: 0 0 300px;
    max-width: 100%;
    padding: 20px;
    background-color: #ffffff;
    border-left: 2px solid #ddd;

}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .main-global {
        flex-direction: column;
    }

    aside {
        border-left: none;
        border-top: 2px solid #ddd;
    }
}


/* Calcul du nombre de réponses dans le forum */
.nbr {
    position: absolute;
    top: 0;
    right: 0;
    background-color: black;
    width: 35px;
    height: 35px;
}

/* Formulaire de question */
.question-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    margin: 20px auto 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.question-form h2 {
    color: #FF5A5F;
    font-weight: bold;
}

.question-form p {
    color: #666;
    font-size: 0.9em;
}

.question-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.question-form input[type="text"],
.question-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.checkbox-container {
    margin-top: 10px;
}

.formulaire_spip button, .formulaire_spip input[type="submit"] {
    display: inline-block;
    height: 1.875em;
    line-height: 1.875em;
    padding: 0 1em;
    background-color: #397BB4;
    border: none;
    box-shadow: none;
    text-align: center;
    text-decoration: none;
    color: #FFF !important;
    transition: background 0.3s;
    cursor: pointer;
    float: right;
}

input.text {
    font-family: inherit;
    padding: 0 .3em;
    width: 100%;
    border: 1px solid #F0EDF0;
    background: white;
    min-height: 1.875em;
    line-height: 1.875em;
}

/* Bouton pour remonter le site */
#toTop {
    position: fixed;
    bottom: 15px;
    right: 15px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    font-size: 25px;
    line-height: 45px;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    height: 50px;
}

/* Barre de recherche */
.card {
    border-radius: 50px;
   
    width: 600px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.form-control {
    border-radius: 50px 0 0 50px;
    padding: 0.5rem 1rem;
    border: none;
    height: 50px;
    width: 500px;
    flex-grow: 1;
}

.btn-search {
    background-color: #01A7A0;
    color: white;
    border-radius: 0 50px 50px 0;
    font-size: 12px;
    font-weight: bold;
    border: none;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
}




.btn-search span {
    color: white;
}

/* Header */
#header {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E1DACE;
    color: black;
    padding: 10px 20px;
    height: auto;
    position: relative;
    flex-wrap: wrap;
}

#header img {
    width: 200px;
    height: auto;
    margin: 20px 20px 20px 20px;
}

header h1 {
    font-family: 'Poppins', sans-serif; 
    font-weight: 700; 
    font-size: 24px; 
    text-transform: uppercase; 
    text-align: center; 
    padding: 10px 15px; 
    border-radius: 10px;
}

/* Styles réactifs */
@media (max-width: 768px) {
    #header {
        flex-direction: column;
        align-items: center;
    }

    #header img {
        margin: auto;
    }

    #header h1 {
        font-size: 24px;
        margin: 25px;
    }

    .card {
        width: 90%;
        margin: 70px auto;
    }

    .form-control {
        width: calc(100% - 160px);
    }

    .btn-search {
        width: 150px;
    }
}

/* Menu navigation barrenav */
#menu2 {
    background-color: #2C3E50; /* Bleu nuit élégant */
    text-align: center;
    width: 100vw;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    overflow-x: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15); /* Ombre douce */
}

#menu2 ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

#menu2 li {
    margin: 0;
}

#menu2 li a {
    display: block;
    color: #ECF0F1; /* Blanc cassé pour un contraste doux */
    text-align: center;
    padding: 14px 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease; /* Transition fluide */
}

#menu2 li a:hover {
    background-color: #1ABC9C; /* Vert d'eau élégant au survol */
    color: #FFFFFF !important; /* Texte blanc pur pour un contraste parfait */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Effet d'ombre sur le lien au survol */
    border-radius: 5px; /* Coins légèrement arrondis pour adoucir */
}


@media (min-width: 768px) {
    #menu2 {
        display: flex;
    }
}

@media screen and (max-width: 350px) {
    #menu2 {
        display: none;
    }
}

@media screen and (max-width: 799px) {
    #header nav ul li a[href="#menu"] {
        display: block;
    }

    #menu2 {
        display: none;
    }
}

@media screen and (min-width: 800px) {
    #header nav ul li a[href="#menu"] {
        display: none;
    }

    #menu2 {
        display: block;
    }
}

/* Styles supplémentaires */
.saisie_texte_info {
    background: #FFF;
}

.tiles {
    margin-top: 0;
}

#nombre {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
}

.defilement {
    display: inline-block;
    position: absolute;
    left: 100%;
    animation: defilement 10s linear infinite;
}

@keyframes defilement {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100vw);
    }
}

.nombre {
    color: red;
    font-weight: bold;
    font-size: 24px;
}

/* Conteneur de recherche */
.search-container {
    /* position: absolute;
    top: 150px;
    left: 0;
    right: 0; */
}

.logoheader {
    margin-left: 100px;
}

.logoheader img {
    max-width: 500px;
    height: auto;
}

/* CSS Forum */

/* Commentaires */
.comment-content {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px; /* Ajoute un espace sous le contenu */

}

.comments-ul li > :first-child {
    margin-top: 15px;
}

div > ul > li.comment-li.comment-item.even,
div > ul > li.comment-li.comment-item.odd {
    border-top: 4px solid #0078d4;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px; /* Ajoute un espace sous chaque commentaire */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comments-items {
    list-style: none;
    padding: 0;
}

/* Réponses */
.comment-reply {
    text-align: right; /* Aligne le bouton à droite */
    margin-top: 15px; /* Ajoute de l'espace au-dessus du bouton "Répondre" */
}

.comment-reply a {
    display: inline-block;
    background-color: #0078D4; /* Bleu clair */
    color: #FFFFFF; /* Texte blanc */
    font-size: 1rem; /* Taille de la police */
    font-weight: 600; /* Texte légèrement plus gras */
    padding: 10px 20px; /* Espace interne */
    border-radius: 25px; /* Bouton arrondi */
    text-decoration: none; /* Supprime le soulignement */
    transition: all 0.3s ease-in-out; /* Animation fluide pour toutes les propriétés */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Ombre subtile */
}

.comment-reply a:hover {
    background-color: #005BB5; /* Couleur au survol plus foncée */
    transform: translateY(-2px); /* Légère élévation au survol */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre renforcée au survol */
}

.comment-reply a:active {
    background-color: #004494; /* Couleur plus sombre au clic */
    transform: translateY(0); /* Réinitialise l'élévation */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Ombre plus légère au clic */
}

/* Formulaire des commentaires */
.comment-form h2 {
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
    color: #333333;
    margin-bottom: 20px;
}

.comments {
    width: 60%;
    margin: 0 auto;
    margin-bottom: 20px; /* Ajoute un espace extérieur sous les commentaires */
    padding-bottom: 20px;

}

/* Formulaire SPIP */
.formulaire_spip {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.formulaire_spip input.text,
.formulaire_spip input.password,
.formulaire_spip input.date,
.formulaire_spip input[type="text"],
.formulaire_spip textarea,
.formulaire_spip input[type="password"],
.formulaire_spip input[type="search"],
.formulaire_spip select {
    font-size: 1rem;
    font-family: "Open Sans", Arial, sans-serif;
    padding: 0.5em 0.7em;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

.formulaire_spip textarea {
    min-height: 10rem;
    resize: vertical;
}

/* Boutons */
a.button,
.formulaire_spip button,
.formulaire_spip input[type="submit"] {
    display: inline-block;
    height: auto;
    padding: 10px 20px;
    background-color: #0078d4;
    border: none;
    border-radius: 5px;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

a.button:hover,
.formulaire_spip button:hover,
.formulaire_spip input[type="submit"]:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
}

/* Liens */
a:focus {
    color: #ff5722;
}

a:visited {
    color: #666666;
}

a:hover {
    color: #333333;
}

/* Sans bordure */
.form-control-borderless {
    border: none;
    background: #f0f0f0;
    border-radius: 5px;
    padding: 10px;
}

.form-control-borderless:hover,
.form-control-borderless:active,
.form-control-borderless:focus {
    border: 1px solid #0078d4;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 120, 212, 0.5);
}

/* Bouton Warning */
.btn-warning {
    margin-left: 10px;
    background-color: #f0ad4e;
    color: #fff;
    border-radius: 5px;
}

.btn-warning:hover {
    background-color: #ec971f;
}

/* Décaler les messages de deuxième degré */
.comments-ul .comments-ul {
    margin-left: 50px; /* Décalage plus marqué vers la droite */
    padding-top: 10px;
    border-left: 4px solid #0078d4; /* Bordure pour indiquer le niveau d'imbrication */
    background-color: #f0f8ff; /* Couleur plus claire pour les réponses */
    padding-left: 20px;
    border-radius: 8px; /* Coins arrondis pour une esthétique moderne */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ajout d'une ombre subtile */
    padding-bottom: 20px;
}

.comments-ul {
    margin-right: 20px; /* Ajoute un espace extérieur à droite */
    padding-right: 20px; /* Ajoute un espace intérieur à droite */
}

div > ul > li.comment-li.comment-item {
    margin-right: 20px; /* Décale l'ensemble des commentaires à gauche de la bordure */
    padding-right: 15px; /* Assure un espace suffisant entre le texte et la bordure */
}


/* Styles supplémentaires pour commentaires et blocs */
@media screen and (max-width: 1024px) {
    #main {
        margin-top: 10px;
        margin-left: 0px;
    }

    .comments {
        width: 100%;
        margin: 0px;
    }
}

.rub_10 #main .blocs_titre {
    padding-top: 25px;
    margin-top: 25px;
    border-top: solid #939393 1px;
}

.blocs_replie {
    background-position: right bottom;
}

h1 {
  font-size: 2.75em;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1em 0;
  letter-spacing: -0.035em;
  text-align: center;
}

.saisie_mot .mot_source {display: none;}


.pilule {
    background-color: lightgray;
    padding: 0.1rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.9em;
    display: inline-block;
    margin-right: 0.25rem;
}


.source {
    color: #1abc9c!important;
    font-weight: bold;
    
}

/* Supprime les puces par défaut et configure le positionnement */
.choix_mots {
    list-style: none; 
    padding: 0;
}

/* Conteneur principal */
.owl-carousel .item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Titres des cartes */
.card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Texte de la question */
.card-question {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}

/* Navigation OwlCarousel */
.owl-nav button {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
}
.owl-nav button:hover {
    background: #ff7f0e;
}
.owl-dots .owl-dot.active span {
    background: #ff7f0e;
}

.owl-carousel {
    display: flex; /* Active flexbox */
}

.owl-carousel .item {
    display: flex;
    flex: 1; /* Égalise l'espace */
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 200px; /* Hauteur minimale pour garantir une cohérence */
}
.slider-title {
    text-align: center; /* Centre le titre horizontalement */
    font-size: 30px; /* Ajuste la taille du texte */
    font-weight: bold; /* Met en gras */
    color: white; /* Couleur personnalisée (bleu clair, modifiable) */
    margin-bottom: 20px; /* Espace entre le titre et le slider */
    text-transform: uppercase; /* Texte en majuscules */
    letter-spacing: 1.5px; /* Espacement entre les lettres */
    line-height: 1.2; /* Hauteur de ligne pour améliorer la lisibilité */
}

#slider-questions {
    background-color: #2C3E50; /* Bleu profond */
    padding: 20px 0;
}

.tiles article > .image::after { background-image:none; } /* supprime la croix blanche sur les cards