/*===================================================
ROOT
===================================================*/

:root {
    --color1: #333333;
    --color2: #897f99;
    --color3: #9d93ad;
    --color4: #d6cfe2;
    --color5: #9993a3;
    --color6: #fff;
    --color7: #8312f4;
    --color8: #897f9982;
    --font1: 'Montserrat';
    --font2: 'Bebas Neue';
    --backgroundbutton: var(--color1);
    --textbutt: #fff;
    --font-size: 18px;
    --duration: .44s;
    --move-hover: -4px;
    --font-shadow: var(--font-size);
    --footer-h: 56px;   /* hauteur du pied de page ; le reste de l'écran va au contenu */
}


/*===================================================
ANIMATION
===================================================*/

@-webkit-keyframes rotate-center {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotate-center {
    0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes jello-horizontal {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }

    30% {
        -webkit-transform: scale3d(1.25, 0.75, 1);
        transform: scale3d(1.25, 0.75, 1);
    }

    40% {
        -webkit-transform: scale3d(0.75, 1.25, 1);
        transform: scale3d(0.75, 1.25, 1);
    }

    50% {
        -webkit-transform: scale3d(1.15, 0.85, 1);
        transform: scale3d(1.15, 0.85, 1);
    }

    65% {
        -webkit-transform: scale3d(0.95, 1.05, 1);
        transform: scale3d(0.95, 1.05, 1);
    }

    75% {
        -webkit-transform: scale3d(1.05, 0.95, 1);
        transform: scale3d(1.05, 0.95, 1);
    }

    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

@keyframes jello-horizontal {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }

    30% {
        -webkit-transform: scale3d(1.25, 0.75, 1);
        transform: scale3d(1.25, 0.75, 1);
    }

    40% {
        -webkit-transform: scale3d(0.75, 1.25, 1);
        transform: scale3d(0.75, 1.25, 1);
    }

    50% {
        -webkit-transform: scale3d(1.15, 0.85, 1);
        transform: scale3d(1.15, 0.85, 1);
    }

    65% {
        -webkit-transform: scale3d(0.95, 1.05, 1);
        transform: scale3d(0.95, 1.05, 1);
    }

    75% {
        -webkit-transform: scale3d(1.05, 0.95, 1);
        transform: scale3d(1.05, 0.95, 1);
    }

    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}


/*===================================================
COULEUR ET SURLIGNAGE DU TEXTE
===================================================*/


/* pour Firefox */

::-moz-selection {
    background-color: var(--color7);
    color: var(--color6);
}


/* pour Safari et Chrome */

::selection {
    background-color: var(--color7);
    color: var(--color6);
}


/*===================================================
GENERAL
===================================================*/

body {
    display: flex;
    justify-content: space-evenly;
    background-color: var(--color4);
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    position: relative;
    font-family: var(--font1);
    overflow: hidden;
    height: 100vh;
}

a {
    text-decoration: none !important;
    color: var(--color6) !important;
}

a,
a:hover,
a:active,
a:focus {
    color: var(--color5) !important;
}

/*===================================================
fOOTER
===================================================*/


/*footer*/

footer
/*GENERAL*/

    {
    background: var(--color2);
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    width: 100%;
    position: relative;
    height: var(--footer-h);
    box-sizing: border-box;
    color: var(--color6);
}

/* Logo + mentions de droits / crédits, sur deux petites lignes */
.firstzonefooter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    color: var(--color6);
    font-size: 11px;
    line-height: 1.35;
}

.firstzonefooter img {
    display: block;
    height: 34px;
    width: auto;
}

/* Liens : une rangée de petits liens, plus de gros boutons de 300 px */
footer .secondzonefooter {
    display: flex !important;
    flex: 1 1 auto;
    background: none;
    padding: 0;
    width: auto;
    height: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px 6px;
}

/* Sur le trieur, la barre latérale (75 px) recouvre le bord gauche de la page */
body:has(#sidebar-wrapper) footer {
    padding-left: 95px;
}

footer a.footer {
    background: var(--color1);
    color: var(--color6);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: .03em;
    padding: 5px 10px;
    white-space: nowrap;
}

footer a.footer:hover {
    -webkit-animation: jello-horizontal 0.9s both;
    animation: jello-horizontal 0.9s both;
    color: var(--color6);
}


/*===================================================
ACCUEIL - PAGES
===================================================*/

.bodyarrived
/*corpsdelapagedarrivee*/

    {
    display: flex;
    height: calc(100vh - var(--footer-h));
    overflow: hidden;
    justify-content: space-between;
}


/*navigation*/

.accueilnav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    width: 30vh;
    text-align: center;
    background: var(--color4);
}

a.homemenu img
/*image du menu*/

    {
    width: 20vh;
    padding: 40px;
}

a.logo img {
    width: 100%;
}

a.logo img:hover {
    -webkit-animation: rotate-center 0.6s ease-in-out both;
    animation: rotate-center 0.6s ease-in-out both;
}


/*effet au survol*/

a.homemenu img:hover,
.firstzonefooter img:hover {
    -webkit-animation: rotate-center 0.6s ease-in-out both;
    animation: rotate-center 0.6s ease-in-out both;
}


/*zone de droite accueil*/

.home {
    width: 100%;
    text-align: center;
    background: var(--color1);
}

.home img {
    width: 50vh;
    text-align: center;
}


/*texte general*/

.home p {
    color: var(--color6);
    font-family: var(--font1);
    font-size: 1rem;
    width: 60%;
    margin: auto;
    line-height: 1.9rem;
    padding-bottom: 2vh;
}


/*texte em*/

.home p em {
    color: var(--color4);
    font-weight: 800;
}


/*===================================================
TRIEUR RP
===================================================*/


/*GENERAL*/

body {
    overflow: hidden;
    height: 100vh;
    background: var(--color4);
}

#wrapper {
    position: relative;
}

.left {
    position: relative;
    left: 75px;
}

div#content,
div#wrapper {
    background-color: var(--color4);
}

.connectmenu
/*menudeconnection*/

    {
    border-top: 1px solid var(--color4);
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.connectmenu a
/*MENULIEN*/

    {
    color: var(--color4);
}

.connectmenu a:hover
/*MENUHOVER*/

    {
    color: var(--color2);
}

.navbar
/*bOUTONX*/

    {
    padding: .2rem !important;
}

i.bi.bi-x-lg
/*ICON*/

    {
    color: var(--color4);
}

nav
/*NAVX*/

    {
    width: 5vh;
    height: 5vh;
    padding: 0rem;
    background: var(--color1);
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl
/*ZONEDUTRIEUR*/

    {
    width: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

#sidebar-wrapper
/*MENULATERAL*/

    {
    position: fixed;
    min-height: 100%;
    margin-left: -15rem;
    transition: all 0.25s ease-out;
    background: var(--color1);
    width: 75px;
    z-index: 10;
    padding-left: 6px;
    display: flex;
    flex-direction: column;
}

#sidebar-wrapper .sidebar-heading
/*MENULATERAL*/

    {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
    width: 100%;
}

#page-content-wrapper {
    width: 100vw;
    margin-left: 4rem;
    max-height: calc(100vh - var(--footer-h));
}

body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
    margin-left: 0;
}

.active
/*ACTIVEONGLE*/

    {
    position: relative;
    background: var(--color2);
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    box-shadow: -3px 0px 3px 0px var(--color2);
}


/*barre visuel des icons*/

.nav .nav-item {
    margin: 3px 0;
}

.nav .nav-item>a {
    background: transparent;
    color: var(--color2);
    border-radius: 50% !important;
    height: 60px;
    width: 60px;
    margin: 7px;
}

.nav .nav-item.active>a {
    background: var(--color4);
    border-radius: 50% !important;
    margin: 7px;
    padding: 0px 0px;
}

.nav .nav-item.active::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 30px;
    background: var(--color1);
    right: 5px;
    top: -30px;
    border-bottom-right-radius: 50%;
    box-shadow: 7px 3px 0px 0px var(--color2);
}

a.nav-link.text-dark.py-2.rounded-,
a.nav-link.text-dark.py-2 {
    color: var(--color2) !important;
}

.nav .nav-item.active::after {
    position: absolute;
    content: "";
    width: 30px;
    height: 30px;
    background: transparent;
    right: 5px;
    bottom: -30px;
    border-top-right-radius: 50%;
    box-shadow: 7px -3px 0px 0px var(--color2);
}

section
/*section*/

    {
    min-height: 50rem;
    overflow: hidden;
    height: calc(100vh - var(--footer-h));
}


/*ongleaccueiltrieur*/


/*toolki +paragraphe du haut*/

img.trieurtoolki {
    width: 20vh;
    padding-bottom: 5vh;
}

.homesectiontrieur {
    text-align: center;
}


/*titre h1 accueil*/

.homesectiontrieur h1 {
    font-family: var(--font2);
    font-weight: 800;
    font-size: 2rem;
    color: var(--color1);
}


/*em accueil*/

.homesectiontrieur em {
    color: var(--color2);
    font-weight: 600;
}


/*haut accueil*/

.trieurintrotop {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3vh;
    text-align: center;
    margin-bottom: 0;
}


/*zone des carrés*/

.invitetrieurzone1,
.connectetrieur1
/* s'enregistrer, se connecter*/

    {
    display: flex;
    justify-content: space-evenly;
    padding: 3vh 0vh;
    flex-wrap: wrap;
}

.inviteenregistre,
.inviteconnect
/* s'enregistrer, se connecter*/

    {
    border: 2px solid var(--color6);
    height: 25vh;
    display: flex;
    flex-direction: column;
    width: 30%;
    justify-content: space-evenly;
    font-style: italic;
}


/*les icones*/

i.bi.bi-person-up,
i.bi.bi-door-open,
i.bi-bookmark-plus,
i.bi.bi-list-check,
i.bi.bi-person-lines-fill,
i.bi.bi-pc-display-horizontal,
i.bi.bi-question-circle {
    font-size: 5rem;
}

.inviteenregistre a,
.inviteconnect a,
.gererrp a {
    color: var(--color2);
}

.inviteenregistre a:hover,
.inviteconnect a:hover,
.gererrp a:hover {
    color: var(--color1);
}

.gererrp:hover,
.inviteenregistre:hover,
.inviteconnect:hover {
    -webkit-animation: jello-horizontal 0.9s both;
    animation: jello-horizontal 0.9s both;
}


/*zone de gestions rp raccourcis*/

.gererrp {
    border: 2px solid var(--color6);
    height: 25vh;
    display: flex;
    flex-direction: column;
    width: 15%;
    justify-content: space-evenly;
    font-style: italic;
}


/*onglets rps, forums, perso*/

.ongledajout {
    background: var(--color1);
    color: var(--color6);
    width: 80%;
    height: auto;
    position: relative;
    margin: 20px auto 0;
    padding-bottom: 0;
}

.container {
    position: relative;
    width: 660px;
    height: 300px;
    background: #f1f1f1;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.container-onglets {
    background: var(--color3);
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: space-between;
}

.onglets {
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}


/*contenu des onglets*/

.contenu {
    display: none;
    height: 48vh;
    width: 100%;
    position: relative;
    overflow: auto;
}

.ongledajout .contenu {
    max-height: 48vh;
    width: 100%;
}

.contenu h3 {
    padding: 20px;
    font-family: var(--font2);
    color: var(--color4);
}

.contenu p {
    padding: 20px;
}


.contenu p.placeholder-text {
    padding: 5px;
    margin: 0;
}

/* Animation des onglets */

.onglets.active {
    background: var(--color1);
    color: var(--color6);
    border-radius: 0 !important;
    box-shadow: 0px 0px 3px 0px var(--color1);
}

.active-contenu {
    display: block;
    animation: fade 0.5s forwards;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/*formulaires dans les onglets*/


/*general*/

form.formulairetype {
    width: 50%;
    margin: auto;
    position: relative;
}


/*boutoncommun*/

button.buttonformtype {
    padding: 10px 40px;
    font-family: var(--font2);
    font-weight: 800;
    background: var(--color5);
    border: none;
}

button.buttonformtype:hover {
    -webkit-animation: jello-horizontal 0.9s both;
    animation: jello-horizontal 0.9s both;
}


/*formulairerp*/

.formstyletop {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1vh;
}

.formstyleoption {
    width: 90%;
}

select#forum_id,
select#character_id {
    width: 90%;
    padding: 10px;
    margin: auto;
}

.formstylemiddle {
    margin-bottom: 20px;
}

.connectiontxt input {
    color: var(--color1) !important;
}

input#text1 {
    padding: 10px;
    width: 95%;
    text-align: center;
    margin: auto;
    font-style: italic;
}

input.text2,
input.text3 {
    width: 80%;
    padding: 10px;
}

.formstyletxt1 {
    margin: 0 auto 2vh;
    width: 95%;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
}


/*formulaireforum*/

input#forumname,
input#url,
input#buttonlink,
input#charactername,
input#characterurl {
    width: 60%;
    padding: 10px;
}

.formstyletexte {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2vh;
}

input#forumname,
input#indexlink,
input#button,
input#alt,
select#user_id,
input#charactername,
input#characterurl {
    padding: 10px;
    width: 65%;
}


/*formulairepersonnage*/

.formstyleperso {
    margin-bottom: 2vh;
}

.formstylecenter {
    width: 90%;
    margin: auto;
}

.formstyletxt {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2vh;
    align-items: center;
}

.formstyleperso {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2vh;
}

select#userselect {
    width: 60%;
    padding: 10px;
}


/*exemple de liste visuel rp*/

.exempleliste {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2vh;
    position: relative;
}

.article1
/*la zone pour un rp*/

    {
    background: var(--color6);
    color: var(--color1);
    height: 10vh;
    width: 100%;
    /* display: flex; */
    margin: 1vh;
    position: relative;
}

.article1 a {
    color: var(--color1) !important;
}


/*les icones*/

.iconexemple {
    width: 10%;
    display: inline-flex;
    justify-content: space-around;
}

a.exempleicone {
    color: var(--color1);
}

a.exempleicone:hover {
    color: var(--color6);
}


/*barre icone et nom du forum*/

.article1haut {
    display: flex;
    justify-content: space-between;
    background-color: var(--color4);
    padding: 2px;
    height: 30%;
}

.article1haut .icons {
    margin-left: .25rem;
}

.article1haut .icons a {
    margin-left: .25rem;
    margin-right: .25rem;
}

.fofoarticle {
    padding-right: 10px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color1);
}


/*zone chiffre, dates, url du lien, participants*/

.article1bas {
    display: flex;
    justify-content: space-between;
    padding: 0px 10px;
    height: 70%;
}

.article1gauche
/*chiffre et date*/

    {
    width: 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exemplechiffre {
    background: var(--color1);
    padding: 10px;
    color: var(--color6);
    border-radius: 100px;
    height: 70%;
}

.article1droite
/*rps et participants*/

    {
    display: flex;
    flex-direction: column;
    width: 95%;
    text-align: right;
}

.article1droite h3,
.article1droitemilieu {
    margin: 0;
    padding: 0 10px 0px;
}

.article1droite h3 a {
    color: var(--color1);
    font-family: var(--font1);
    font-size: 1rem;
    margin: 0px;
    line-height: 0px;
}

.article1droite h3 a:hover,
.article1droitemilieu a:hover {
    color: var(--color2);
    text-decoration: none;
}

.article1droitemilieu a {
    color: var(--color1);
}

.article1droitebas {
    font-style: italic;
    font-size: 12px;
}


/*Onglet trieur personnage*/

.trieurpersonnagezone
/*zonegénérale*/

    {
    width: 90%;
    margin: 0 auto 5vh;
    display: flex;
    flex-wrap: wrap;
    list-style: auto;
    justify-content: space-around;
    position: relative;
    max-height: 51.5vh;
    overflow-y: auto;
}

.forumpersonnage
/*leforum et les personnages liés*/

    {
    background: var(--color1);
    color: var(--color6);
    padding: 10px;
    width: 28%;
    margin: 5px;
    height: 50vh;
}

.forumpersonnage h3
/*titre forum*/

    {
    text-align: center;
    font-family: var(--font2);
    border-bottom: 1px solid;
    line-height: 50px;
}

.personnageduforum
/*liste perso du fofo*/

    {
    height: 85%;
    overflow: auto;
}

.name
/*nom du perso*/

    {
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
}

.name h4
/*nom du perso*/

    {
    font-size: 1.1rem;
    font-weight: normal;
    width: 80%;
}

.iconmodoperso
/*icone moderation*/

    {
    width: 12%;
    display: flex;
    justify-content: space-between;
}

.iconmodoperso a
/*icone moderation*/

    {
    color: var(--color2)
}

.iconmodoperso a:hover
/*icone moderation*/

    {
    color: var(--colorcolor6)
}


/*Onglet forum liste*/

.entetefofo img
/*image du forum*/

    {
    width: 20%;
}

.listeforum
/*liste des forums*/

    {
    width: 15%;
    background-color: var(--color1);
    margin: 1vh;
    color: var(--color6);
}

.entetefofo h3
/*titre nom du forum*/

    {
    font-size: 1rem;
}

.entetefofo
/*haut de la liste*/

    {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    text-align: center;
    justify-content: center;
}

.listefofo {
    width: 100%;
    display: inline-flex;
    justify-content: space-evenly;
    padding-bottom: 10px;
}

.iconmodofofo
/*icone*/

    {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.iconmodofofo a,
.iconmodofofo button {
    color: var(--color5);
}

.iconmodofofo button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
}

.iconmodofofo a:hover,
.iconmodofofo button:hover {
    color: var(--color6);
}


/*page FAQ/Aides /*
/*accordeon*/

.accordion {
    width: 70%;
    margin: 0 auto;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-section {
    border-bottom: 1px solid var(--color1);
}

.accordion-section:last-child {
    border-bottom: none;
}

.accordion-header {
    background-color: var(--color6);
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color1);
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--color3);
}

.accordion-content {
    display: none;
    padding: 15px;
    color: var(--color6);
    background-color: var(--color5);
}

.accordion-content p {
    margin: 0;
}

.active .accordion-content {
    display: block;
}


/*===================================================
PAGES CONNECTIONS INSCRIPTIONS
===================================================*/


/*CORPS PAGES*/

.bodyconnect {
    background: var(--color4);
    display: flex;
    height: calc(100vh - var(--footer-h));
    overflow: auto;
    flex-direction: column;
}


/*MENU NAVIGATION*/

.menu {
    position: fixed;
    top: 0;
    left: 10px;
    width: 100px;
    background: var(--color1);
    text-align: center;
}

.menu img {
    width: 80px;
}

.menu img:hover {
    -webkit-animation: rotate-center 0.6s ease-in-out both;
    animation: rotate-center 0.6s ease-in-out both;
}

.connectiontxt {
    width: 100%;
    margin: auto;
    text-align: center;
}

.connectiontxt img {
    width: 10%;
}


/*fomulaire de connexion/enregistrement*/

form#regForm,
form.loginAndRegister {
    width: 50%;
    margin: 30px auto;
    background: var(--color1);
    padding: 20px;
    color: var(--color6);
}

.formreggrpe {
    width: 100%;
    margin: 10px auto;
    display: flex;
    justify-content: space-between;
}

input#username,
input#email,
input#password,
input#confirmPassword,
input#name,
select#subject,
textarea#message {
    width: 75%;
    padding: 10px;
}

.formreggrpe.forgotmp {
    justify-content: center;
}

.formreggrpe.forgotmp a {
    color: var(--color6) !important;
}

.formreggrpe.forgotmp a:hover {
    color: var(--color4);
    text-decoration: none;
}


/*===================================================
PAGES DU FOOTER EN GENERAL
===================================================*/

.pagebasique {
    width: 80%;
    margin: 20px auto;
    text-align: center;
}

.pagebasique img {
    width: 200px;
}

.boutonpartenaire {
    width: 500px;
    display: flex;
    justify-content: center;
    margin: auto;
}

.boutonpartenaireimg {
    width: 500px;
    display: flex;
    justify-content: center;
    margin: 20px auto;
}

a.partenaireimg img {
    width: 50px;
    height: 50px;
    margin: 10px;
}


/*===================================================
FICHECRAFT
===================================================*/


/*CORPS*/

body.fichecraftbody {
    background: var(--color4);
    overflow: hidden;
}


/*menu lateral*/

aside.menufichecraft img {
    width: 50%;
}

aside.menufichecraft a {
    color: var(--color1) !important;
}

aside.menufichecraft img:hover {
    -webkit-animation: rotate-center 0.6s ease-in-out both;
    animation: rotate-center 0.6s ease-in-out both;
}

main.fichecraft {
    display: flex;
    justify-content: space-between;
}

aside.menufichecraft {
    width: 15%;
    background: var(--color1);
    position: relative;
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--color6);
}


/*bouton pour ferme*/

aside.menufichecraft .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color6)
}


/*bouton ouvert*/

.open-btn {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
}


/*bouton des fofos*/

button.fc {
    display: flex;
    background: none;
    border: none;
    width: 100%;
}

button.fc a {
    background: var(--color2);
    width: 100%;
    text-transform: uppercase;
    border: none;
    text-decoration: none;
    padding: 2px;
    Color: var(--color6);
}

button.fc:hover {
    -webkit-animation: jello-horizontal 0.9s both;
    animation: jello-horizontal 0.9s both;
}


/*liste des boutons*/

.forumficheliste {
    display: flex;
    flex-direction: column;
    margin: 5px;
    align-items: center;
    position: relative;
}


/*section fichecraft*/

section.fichcraftmain {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ficheintro
/*zone avec toolki*/

    {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
}

.formfichearemplir
/*zone fiche*/

    {
    height: 60vh;
    overflow: auto;
}


/*formulairetypefichecraft*/

form.fichecrafttype {
    background: var(--color1);
    color: var(--color6);
    display: flex;
    flex-direction: column;
    margin: 30px auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
}

.fichetypediv {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 14px;
    width: 100%;
}

.fichetypediv label {
    flex: 0 0 180px;
    padding-top: 10px;
}

form.fichecrafttype h2 {
    font-family: var(--font2);
    color: var(--color3);
    font-size: 3rem;
}

form.fichecrafttype hr {
    border: 1px solid var(--color4);
    width: 100%;
}

.fichetypediv input,
.fichetypediv select {
    flex: 1;
    padding: 10px;
    min-width: 0;
}

.fichetypediv textarea {
    flex: 1;
    padding: 10px;
    height: 160px;
    resize: vertical;
    min-width: 0;
}


/*===================================================
FACELAIM
===================================================*/


/*ZONE ADMIN POUR SE CO*/

.adminconnect a {
    color: var(--color4);
}

.adminconnect a:hover {
    color: var(--color6);
}


/*FILTRE FACELAIM*/

.filterfacelaim {
    height: 71%;
    overflow: auto;
}


/*BOUTON DE FILTRES*/

.buttonfilter {
    display: flex;
    margin: 10px 5px;
    flex-direction: column;
    align-items: center;
}

button.filter {
    display: flex;
    background: none;
    border: none;
    width: 100%;
}

button.filter a {
    background: var(--color2);
    width: 100%;
    text-transform: uppercase;
    border: none;
    text-decoration: none;
    padding: 2px;
    Color: var(--color6);
}

button.filter:hover {
    -webkit-animation: jello-horizontal 0.9s both;
    animation: jello-horizontal 0.9s both;
}


/*LES FILTRES*/

.filterzone {
    text-align: left;
    margin-left: 10px;
}


/*FILTRES TITRES*/

.filterzone span {
    font-family: var(--font2);
    letter-spacing: 2px;
    color: var(--color6);
}


/*BORDURES SOUS TITRES*/

.filterzone hr {
    border-top: 1px solid var(--color4);
    margin: 5px 5px 5px 0;
}


/*LISTE FILTRE*/

.filterzone ul li {
    list-style: none;
}

.filterzone ul {
    padding-left: 20px;
}


/*INPUT STYLE*/

input[type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
}

input[type=checkbox] {
    -border-radius: 4px;
    height: 15px;
    width: 15px;
    background: var(--color1);
    border: 1px solid var(--color4);
}

input[type="checkbox"]:checked {
    background: var(--color3);
    margin: 0px;
    position: relative;

    &:before {
        font-family: FontAwesome;
        content: '\f00c';
        display: block;
        color: var(--color1);
        font-size: 13px;
        position: absolute;
    }
}


/*ZONE DE DROITE*/

section.facelaim {
    height: 80vh;
    position: relative;
    width: 90%;
}


/*TEXTE INTRO AVEC TOOLKI*/

.facelaimintro {
    display: flex;
    margin: auto;
    width: 70%;
    justify-content: center;
    align-items: center;
}


/*ZONE DES VAVAS*/

.avatarfacelaim {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    justify-content: center;
    margin: auto;
}

.avatarfacelaim a {
    position: relative;
    margin: 10px;
}

.avatarfacelaim img {
    width: 100px;
    height: 250px;
    display: block;
    object-fit: cover;
}

.avatarfacelaim a:hover .info {
    opacity: 1;
    visibility: visible;
}

.avatarfacelaim .watermark {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.55);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.5px;
}


/*INFOS AU HOVER*/

.info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color8);
    color: var(--color6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    text-align: center;
}


/*===================================================
RESPONSIVE DE TOUT
===================================================*/

@media screen and (max-width: 1475px) {
    .connectetrieur1 {
        padding: 2vh;
    }

    .gererrp {
        width: 18%;
    }

    i.bi.bi-person-up,
    i.bi.bi-door-open,
    i.bi-bookmark-plus,
    i.bi.bi-list-check,
    i.bi.bi-person-lines-fill,
    i.bi.bi-pc-display-horizontal,
    i.bi.bi-question-circle {
        font-size: 3rem;
    }
}

.modal-auth-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 90%
}

.connectiontxt>img {
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar fermée → bouton décalé */
#sidebarToggle.close {
    left: 10px;
}

/* Navbar : état par défaut (sidebar ouverte) */
.navbar.position-fixed {
    top: 0;
    transition: left 0.3s ease;
}

/* Navbar : sidebar fermée */
body.sb-sidenav-toggled .navbar.position-fixed {
    top: 0;
}

body.sb-sidenav-toggled .navbar.position-fixed.closed {
    left: 0;
}

body.sb-sidenav-toggled .navbar.position-fixed.open {
    left: 4.5rem0;
}

.modal-content .rp-list .article1 {
    width: 95%;
}

.modal-content .rp-list {
    width: 100%;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-content.modal-rp-list {
    width: 70%;
}

.forumpersonnage.archived-section {
    width: 70%
}

.forumpersonnage.archived-section .name h4 {
    width: 40%;
}

.forumpersonnage.archived-section .name h4 {
    width: 25%;
    text-align: start;
}

.forumpersonnage.archived-section .name .forum-label {
    width: 30%;
    text-align: start;
}

.forumpersonnage.archived-section .name .iconmodoperso {
    justify-content: flex-end;
}

.forumpersonnage.archived-section .name .iconmodoperso a {
    margin-left: .25rem;
    margin-right: .25rem;
}

.modal-content .rp-list .article1droitebas {
    margin-left: 0.5rem
}

.modal-content.modal-rp-list.perso-list .forumpersonnage {
    width: 75%;
}

.container-fluid.faq-list {
    height: 51.5vh;
    overflow-y: auto;
}

/* MENTIONS LÉGALES - ajustement dans bodyconnect sans menu */
.bodyconnect .connectiontxt h1 {
    font-family: var(--font2);
    font-size: 2.5rem;
    color: var(--color1);
    margin: 20px 0;
}

.bodyconnect .connectiontxt h2 {
    font-family: var(--font2);
    font-size: 1.5rem;
    color: var(--color2);
    margin: 20px 0 10px;
    text-align: left;
}

.bodyconnect .pagebasique {
    text-align: left;
    background: var(--color1);
    color: var(--color6);
    padding: 30px 40px;
    width: 60%;
    margin: 0 auto 40px;
}

.bodyconnect .pagebasique p,
.bodyconnect .pagebasique li {
    line-height: 1.8;
}

.bodyconnect .pagebasique p {
    margin-bottom: 15px;
}

.bodyconnect .pagebasique h3 {
    font-family: var(--font2);
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: var(--color4);
    border-left: 3px solid var(--color7);
    padding-left: 12px;
    margin: 30px 0 12px;
}

.bodyconnect .pagebasique hr {
    border: none;
    border-top: 1px solid var(--color2);
    margin: 40px 0;
}

.bodyconnect .pagebasique ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.bodyconnect .pagebasique a {
    color: var(--color4);
}

.bodyconnect .pagebasique a:hover {
    color: var(--color3);
}

.bodyconnect .pagebasique strong {
    color: var(--color4);
}

.bodyconnect .pagebasique em {
    color: var(--color3);
}

.bi-list::before {
    color: var(--color6);
}

a.faq-bubble,
.faq-bubble {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color2);
    color: var(--color1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    transition: transform 0.15s ease;
}

a.faq-bubble {
    color: var(--color1) !Important;
}

.faq-bubble.profil {
    color: var(--color1) !Important;
}

a.faq-bubble:hover,
a.faq-bubble:focus,
button.faq-bubble:hover {
    color: #fff !important;
    transform: scale(1.08);
}

.faq-bubble.admin {
    right: 194px;
}

.faq-bubble:hover {
    transform: scale(1.08);
    color: #fff;
}

/* Connexion/Inscription (visiteur) ou Profil/Déconnexion (connecté)
   — jamais affichées en même temps, donc pas de conflit à partager
   les mêmes emplacements. */
.faq-bubble.connexion,
.faq-bubble.profile {
    right: 78px;
}

.faq-bubble.inscription,
.faq-bubble.logout {
    right: 136px;
}

/* Le bouton de déconnexion est un <button>, pas un <a> — on retire
   le style par défaut du navigateur pour qu'il soit identique aux
   autres bulles. */
button.faq-bubble {
    border: none;
    font: inherit;
    cursor: pointer;
}

.modal-overlay .modal-content.modal-edit-rp .form-group {
    color: var(--color6);
}

@media screen and (max-width: 901PX) {
    .connectetrieur1 {
        flex-direction: column;
        align-items: center;
    }

    .home {
        height: 60vh;
        overflow: auto;
    }
    .home img {
        margin-top: 5rem;
    }
    
    .trieurintrotop {
      flex-direction: column;
    }
    .gererrp {
        width: 100%;
        margin: 5px auto;
    }

    .inviteenregistre,
    .inviteconnect {
        width: 45%;
    }

    .fichetypediv {
        flex-direction: column;
    }

    .fichetypediv input,
    .fichetypediv select,
    .fichetypediv textarea {
        width: 100%;
    }

    .ficheintro {
        width: 100%;
        flex-direction: column;
    }

    .formfichearemplir {
        padding-bottom: 6rem;
    }
}

@media screen and (max-width: 767PX) {
    .fichetypediv label {
        flex: 0 0 0;
        padding-top: 10px;
    }

    .navbar.position-fixed.open {
        left: 4.5rem;
    }

    .navbar.position-fixed.closed {
        left: 0
    }

    .bodyarrived {
        flex-direction: column-reverse;
        height: auto;
    }

    body {
        height: auto;
        overflow: visible;
    }

    .bodyconnect {
        height: auto;
        overflow: visible;
    }

    footer {
        flex-direction: column;
        padding: 12px 16px;
        height: auto;
        gap: 8px;
    }

    .home img {
        width: 50%;
    }

    .home p {
        width: 90%;
    }

    .accueilnav {
        width: 100%;
        flex-direction: row;
    }

    a.homemenu img {
        width: 60%;
        padding: 10px;
    }

    .secondzonefooter {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .firstzonefooter {
        justify-content: center;
        text-align: left;
    }

    .invitetrieurzone1 {
        flex-direction: column;
    }

    .inviteenregistre,
    .inviteconnect {
        width: auto !important;
        margin: 2vh !important;
    }

    .formstyletexte {
        flex-direction: column;
    }

    aside.menufichecraft {
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
    }

    aside.menufichecraft.open {
        transform: translateX(0);
    }

    .open-btn {
        display: block;
    }

    section.fichcraftmain {
        width: 100%;
    }

    section.facelaim {
        width: 100%;
    }

    .facelaimintro {
        width: 90%;
        text-align: center;
    }

    .avatarfacelaim {
        display: flex;
        flex-wrap: wrap;
        width: 90%;
        justify-content: center;
        margin: auto;
    }

    #content>section {
        height: auto;
    }

    #page-content-wrapper {
        max-height: none;
        height: auto;
    }

    .ongledajout .contenu {
        max-height: none;
    }
}

@media (max-width: 767px) {
    aside.menufichecraft {
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
    }

    aside.menufichecraft.open {
        transform: translateX(0);
    }

    .open-btn {
        display: block;
    }

    section.fichcraftmain {
        width: 100%;
    }
}

@media (min-width: 768px) {
    aside.menufichecraft {
        width: 15%;
        height: 86vh;
        position: relative;
        transform: translateX(0);
        z-index: 1;
    }

    aside.menufichecraft.closed {
        width: 0;
        overflow: hidden;
    }

    .open-btn {
        display: none;
    }

    .menufichecraft.closed+.open-btn {
        display: block;
    }

    section.fichcraftmain {
        width: 90%;
        transition: margin-left 0.3s ease;
    }

    .menufichecraft.closed+section.fichcraftmain {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    #page-content-wrapper {
        margin-left: 0.5rem;
    }

    .ongledajout {
        width: 90%;
    }

    .trieurintrotop {
        flex-direction: column;
        padding-top: 5rem;
    }
    
    form.formulairetype {
        width: 90%;
    }

    .ongledajout,
    .contenu {
        height: auto;
        padding-bottom: 20px;
    }
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
    }

    body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
        margin-left: -15rem;
    }
}

@media (max-width: 680px) {
    .forumpersonnage {
        width: 100%;
    }

    .listeforum {
        width: 100%;
    }

    .onglets {
        font-size: 1rem;
    }

    input#forumname,
    input#indexlink,
    input#buttonlink,
    input#charactername,
    input#characterurl {
        padding: 10px;
        width: 100%;
    }

    .formstyleperso {
        flex-direction: column;
        align-items: center;
    }

    select#userselect {
        width: 100% !important;
        padding: 10px;
    }

    .menu {
        width: auto;
    }

    .connectiontxt {
        margin-top: 100px;
    }

    form#regForm,
    form.loginAndRegister {
        width: 90%;
    }

    .menu img {
        width: 50px;
    }
}

@media (max-width: 400px) {
    .connectiontxt {
        margin: 100px auto;
    }
}

@media (max-width: 516px) {
    .trieurintrotop {
        flex-direction: column-reverse;
    }

    .formstyletop {
        flex-direction: column;
    }

    .formstyleoption {
        width: 100%;
    }

    select#dropdown1,
    select#dropdown2 {
        width: 95%;
        margin: 10px 0px;
    }

    .formstyletxt1 {
        flex-direction: column;
    }

    input.text2,
    input.text3 {
        width: 100%;
    }
}

@media (max-width: 580px) {
    .article1 {
        height: auto;
    }

    .article1haut {
        flex-direction: column;
        height: 30%;
        align-items: center;
    }

    .iconexemple {
        width: 90%;
    }

    .article1bas {
        flex-direction: column;
        align-items: center;
    }

    .article1gauche {
        width: 100%;
        margin: 10px;
    }

    .article1droite {
        text-align: center;
        margin-bottom: 10px;
    }
}

/*MODALE FACELAIM*/
[x-cloak] {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--color8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--color1) !important;
    color: var(--color6);
    padding: 30px;
    width: 50%;
    max-width: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.modal-content img {
    max-height: 60vh;
    object-fit: contain;
    width: 100%;
}

.modal-content p {
    font-family: var(--font2);
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--color4);
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color6);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color4);
}

.modal-download {
    display: flex;
    background: none;
    border: none;
    width: 100%;
    justify-content: center;
}

.modal-download span {
    background: var(--color2);
    width: 100%;
    text-transform: uppercase;
    text-align: center;
    padding: 5px;
    color: var(--color6);
    cursor: pointer;
    font-family: var(--font1);
    letter-spacing: 1px;
}

.modal-download:hover {
    -webkit-animation: jello-horizontal 0.9s both;
    animation: jello-horizontal 0.9s both;
}

/*RESPONSIVE MODALE*/

@media (max-width: 767px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }
}

#avatarCheck {
    display: flex;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.form-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .modal-download {
    flex: 1;
}

/* Fichcraft : le bloc du formulaire prend toute la largeur de la section */
.sheet-app {
    width: 100%;
}

/* Fichcraft : la section principale occupe toute la place à côté du menu */
section.fichcraftmain {
    flex: 1;
    min-width: 0;
}

/* Fichcraft : boutons des forums de hauteur identique, texte centré sur 2 lignes max */
button.fc a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    min-height: calc(2.6em + 8px);
    padding: 4px 8px;
}

/* Fichcraft : onglets de choix de la fiche (forums avec plusieurs groupes) */
.sheet-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.sheet-tab {
    padding: 6px 14px;
    background: var(--color2);
    color: var(--color6) !important;
    text-decoration: none;
    text-transform: uppercase;
}

.sheet-tab.is-active {
    background: var(--color7);
}

/* Fichcraft : onglets répartis sur toute la largeur */
nav.sheet-tabs {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    height: auto;
}

/* Fichcraft : onglet survolé ou actif en --color1 */
.sheet-tab:hover,
.sheet-tab.is-active {
    background: var(--color1);
}
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
}
/* Trieur : la zone des personnages suit le défilement de la page (plus de scroll interne) */
.trieurpersonnagezone {
    max-height: none;
    overflow: visible;
}

/* Trieur mobile : cartes de forum à hauteur libre, sans scroll interne */
@media (max-width: 680px) {
    .forumpersonnage {
        height: auto;
    }
    .personnageduforum {
        height: auto;
        overflow: visible;
    }
}

/* Trieur, pages Personnages et Forums : la section entière défile.
   (La zone des cartes n'a plus de scroll interne, mais la section, elle, coupait
   tout ce qui dépassait : on ne pouvait faire défiler que l'intérieur des cartes.) */
section#personnages,
section#forums {
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Trieur, pages Personnages et Forums (écrans PC) :
   la section avait min-height: 50rem (800px), plus haute que la zone visible
   (100vh moins le footer) sur les écrans de portable : le bas de la liste passait sous le footer
   et restait inaccessible. La section prend maintenant exactement la hauteur
   disponible et défile à l'intérieur. */
@media (min-width: 768px) {
    section#personnages,
    section#forums {
        min-height: 0;
        height: calc(100vh - var(--footer-h));
    }
}

/* Cartes de forum : le titre garde sa hauteur, la liste des personnages prend
   le reste et défile dedans (avant : 85% fixe, qui débordait de la carte sur
   les écrans peu hauts). */
.forumpersonnage {
    display: flex;
    flex-direction: column;
}
.forumpersonnage .personnageduforum {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-y: auto;
}
@media (max-width: 680px) {
    .forumpersonnage .personnageduforum {
        overflow: visible;
    }
}

/* Trieur : bandeau de notification (ajout, archivage, revendication, erreurs…)
   Aux couleurs des boutons du site (violet gris, angles droits) ; l'erreur reste en rouge. */
.toast-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100% - 32px);
    padding: 14px 22px;
    border-radius: 0;
    background: var(--color2);
    color: #fff;
    font-family: var(--font1), sans-serif;
    font-size: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.toast-banner.toast-error {
    background: #8a1c2b;
}
.toast-banner .toast-close {
    flex: none;
    background: none;
    border: none;
    padding: 0 0 0 4px;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
}
.toast-banner .toast-close:hover {
    opacity: 1;
}

/* Revendication d'un personnage : un bouton « Revendiquer NOM » par résultat,
   dans le même style que les autres boutons du site (fond violet gris, majuscules,
   angles droits, effet « jello » au survol). */
.claim-results {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin: .5rem 0 1rem;
    padding: .75rem;
    border: 1px dashed var(--color2);
}

.claim-results .claim-intro {
    margin: 0 0 .25rem;
    text-align: center;
}

.claim-results .claim-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: 8px 16px;
    font-family: var(--font2);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color6);
    background: var(--color2);
    border: none;
    cursor: pointer;
}

.claim-results .claim-btn:hover,
.claim-results .claim-btn:focus-visible {
    -webkit-animation: jello-horizontal 0.9s both;
    animation: jello-horizontal 0.9s both;
}

.claim-results .claim-btn:disabled {
    opacity: .6;
    cursor: wait;
    animation: none;
}

/* ---------- Retours testeuse (octobre 2026) ---------- */

/* Logo des pages d'information : cliquable, retour à l'accueil */
.connectiontxt a.logohome {
    display: inline-block;
    width: 10%;
    min-width: 80px;
}
.connectiontxt a.logohome img {
    width: 100%;
    display: block;
}

/* Message « section réservée aux membres » sur la page de connexion */
.connectiontxt .login-required {
    max-width: 520px;
    margin: 10px auto;
    padding: 10px 16px;
    background: var(--color2);
    color: var(--color6);
}
.connectiontxt .login-required a {
    color: var(--color6) !important;
    text-decoration: underline;
}

/* Inscription : le champ « Répéter le mot de passe » avait un autre identifiant que
   les autres champs et n'était donc pas à la même largeur (décalé). */
input#password_confirmation {
    width: 75%;
    padding: 10px;
}

/* Cases à cocher : coche dessinée en CSS (plus de police d'icônes à charger) et
   couleur violette bien visible quand la case est cochée. */
input[type=checkbox] {
    flex: none;
    position: relative;
    cursor: pointer;
}
input[type="checkbox"]:checked {
    background: var(--color7);
    border-color: var(--color7);
}
input[type="checkbox"]:checked:before {
    content: '';
    font-family: inherit;
    display: block;
    position: absolute;
    left: 4px;
    top: 0;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--color4);
    outline-offset: 2px;
}

/* Liste des forums : l'icône du forum était trop petite (20 % d'une carte étroite) */
.entetefofo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

/* Liste des personnages d'un forum (fenêtre) : une seule carte à hauteur libre
   (avant : chaque personnage était dans une carte de 50vh, d'où les grands vides). */
.modal-content.modal-rp-list.perso-list .forumpersonnage {
    width: 100%;
    height: auto;
    margin: 0;
}
.modal-content.modal-rp-list.perso-list .personnageduforum {
    height: auto;
    overflow: visible;
}
.modal-content.modal-rp-list.perso-list .name {
    margin: 4px 0;
}

/* Listes déroulantes des formulaires : un nom très long ne doit pas déformer la page */
select.full-width,
.formstyleperso select {
    max-width: 100%;
    text-overflow: ellipsis;
}
.formstyleperso,
.formstylebasic {
    min-width: 0;
}

/* Inscription / connexion : libellés et champs de largeur fixe, pour que tous les champs
   soient alignés (un libellé long, comme « Répéter le mot de passe », décalait son champ). */
form.loginAndRegister .formreggrpe:not(.consent):not(.forgotmp) label {
    flex: 0 0 22%;
    text-align: left;
}
form.loginAndRegister .formreggrpe:not(.consent) input {
    flex: 0 0 75%;
    min-width: 0;
}
.modal-content.modal-rp-list.perso-list .name h4 {
    margin: 6px 0;
}

/* Accueil : fenêtre peu haute (portable, fenêtre réduite) — le texte et le menu étaient
   coupés sans aucune barre de défilement. Le panneau de texte et le menu défilent
   maintenant dans leur zone ; sur une fenêtre vraiment basse, c'est toute la page. */
.bodyarrived .home,
.bodyarrived .accueilnav {
    overflow-y: auto;
}

@media (min-width: 769px) and (max-height: 640px) {
    body:has(.bodyarrived) {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }
    body:has(.bodyarrived) .bodyarrived {
        height: auto;
        min-height: calc(100vh - var(--footer-h));
        overflow: visible;
    }
    body:has(.bodyarrived) footer {
        height: auto;
        min-height: var(--footer-h);
    }
}

/* Écrans moyens : le footer passe sur deux rangées (crédits, puis liens) */
@media (min-width: 769px) and (max-width: 1100px) {
    :root { --footer-h: 84px; }
    footer {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }
    footer .secondzonefooter { justify-content: center; flex: none; width: 100%; }
}

/* Connexion / inscription : le message d'erreur passe sur sa propre ligne, sous le champ.
   Avant, il se plaçait à côté du champ dans une colonne étroite et étirait le champ en hauteur
   (champ géant à l'écran quand l'identifiant était refusé). */
form.loginAndRegister .formreggrpe {
    flex-wrap: wrap;
    align-items: center;
}
form.loginAndRegister .formreggrpe .error-message {
    flex: 0 0 100%;
    margin-top: 6px;
    text-align: right;
    font-size: .9rem;
    color: #ffb3c0;
}
form.loginAndRegister .formreggrpe input {
    box-sizing: border-box;
}
form.loginAndRegister .formreggrpe.consent {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
}
form.loginAndRegister .formreggrpe.consent label {
    flex: 1 1 auto;
    text-align: left;
}

/* Trieur : toutes les sections (accueil, ajout, rps, personnages, forums) prennent la hauteur
   visible (100vh moins le footer) et défilent dedans. Avant, `section` avait min-height: 50rem (800 px) avec
   overflow: hidden : sur un écran de portable (768 px de haut), le bas du contenu — par exemple
   le bouton « Envoyer » du formulaire d'ajout — passait sous le footer, sans pouvoir y accéder. */
@media (min-width: 768px) {
    section.content-section {
        min-height: 0;
        height: calc(100vh - var(--footer-h));
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* Fenêtres (modales) : texte clair sur fond sombre. Bootstrap donne aux fenêtres une couleur
   de texte sombre : les libellés des formulaires s'y lisaient « noir sur noir ». */
.modal-content,
.modal-content label {
    color: var(--color6);
}
.modal-content .error {
    color: #ffb3c0;
}

/* Liste des personnages : les icônes (modifier, RPs, archiver) ne rentraient pas dans 12 % de
   la largeur de la carte et provoquaient une barre de défilement horizontale. */
.personnageduforum {
    overflow-x: hidden;
}
.personnageduforum .name h4 {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}
.personnageduforum .name .iconmodoperso,
.forumpersonnage.archived-section .name .iconmodoperso {
    width: auto;
    flex: none;
    gap: .5rem;
    margin-left: .5rem;
}


/* ---------------------------------------------------------------------------
   Liste des rp : code couleur par forum + affichage compact (retours de Syonah)
   --fc / --fc-soft sont posées sur chaque carte (voir Forum::colors()).
   --------------------------------------------------------------------------- */
.article1 {
    border-left: 6px solid var(--fc, var(--color4));
}
.article1haut {
    background-color: var(--fc-soft, var(--color4));
}

/* Compact : une seule ligne par rp  [forum] [n° date] [titre – personnages] [icônes] */
.rp-compact .article1 {
    height: auto;
    margin: 0 0 4px;
    display: flex;
    align-items: stretch;
}
.rp-compact .article1haut {
    display: contents;           /* icônes et forum deviennent des éléments de la ligne */
}
.rp-compact .fofoarticle {
    order: 0;
    flex: 0 0 150px;
    padding: 4px 8px;
    background: var(--fc-soft, var(--color4));
    font-size: .75rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rp-compact .article1bas {
    order: 1;
    flex: 1 1 auto;
    height: auto;
    min-width: 0;
    padding: 4px 10px;
    align-items: center;
    gap: 10px;
}
.rp-compact .article1gauche {
    width: auto;
    flex: 0 0 auto;
    gap: 10px;
}
.rp-compact .exemplechiffre {
    height: auto;
    padding: 2px 9px;
    font-size: .8rem;
}
.rp-compact .article1droite {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    text-align: left;
}
.rp-compact .article1droite h3 {
    flex: 0 1 auto;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rp-compact .article1droite h3 a { line-height: normal; font-size: .9rem; }
.rp-compact .article1droitemilieu {
    flex: 1 1 auto;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .8rem;
    opacity: .85;
}
.rp-compact .article1haut .icons {
    order: 2;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 6px;
    background: var(--fc-soft, var(--color4));
    white-space: nowrap;
}
/* Mobile : le forum et les icônes forment un bandeau, titre et personnages en dessous */
@media (max-width: 768px) {
    .rp-compact .article1 { flex-wrap: wrap; }
    .rp-compact .fofoarticle { order: 0; flex: 1 1 0; min-width: 0; }
    .rp-compact .article1haut .icons { order: 1; flex: 0 0 auto; }
    .rp-compact .article1bas { order: 2; flex: 1 1 100%; flex-direction: row; align-items: center; padding: 6px 10px; }
    .rp-compact .article1gauche { width: auto; flex-direction: column; gap: 2px; }
    .rp-compact .article1droite { width: auto; flex: 1 1 0; }
    .rp-compact .article1droite { flex-direction: column; gap: 2px; min-width: 0; }
    .rp-compact .article1droite h3,
    .rp-compact .article1droitemilieu { white-space: normal; }
}

/* Liste des rps : elle prend toute la place restante au-dessus du footer (avant : 48vh fixe,
   d'où un grand vide sous la liste sur les grands écrans). Sur petit écran on garde 48vh minimum. */
@media (min-width: 768px) {
    #roleplays .ongledajout .contenu {
        height: max(48vh, calc(72vh - 135px - (var(--footer-h) - 56px)));
        max-height: none;
    }
}

/* Fenêtres « RPs du forum / du personnage » : toujours en compact ; pas d'icônes (lecture seule) */
.rp-compact .article1haut .icons:not(:has(*)) { display: none; }
.modal-content .rp-list.rp-compact .article1 { width: 100%; }
/* Dans les fenêtres (plus étroites que la page) : titre au-dessus des personnages, sans coupure */
.modal-content .rp-list.rp-compact .fofoarticle { flex-basis: 120px; }
.modal-content .rp-list.rp-compact .article1droite { flex-direction: column; align-items: flex-start; gap: 2px; }
.modal-content .rp-list.rp-compact .article1droite h3,
.modal-content .rp-list.rp-compact .article1droitemilieu { white-space: normal; max-width: 100%; }
.modal-content .rp-list.rp-compact .article1bas { padding: 5px 10px; }

/* Compact : tout est centré verticalement sur la ligne (numéro, date, titre, personnages) */
.rp-compact .article1bas,
.rp-compact .article1gauche,
.rp-compact .article1droite { align-items: center; }
.rp-compact .article1droitebas,
.rp-compact .article1droite h3,
.rp-compact .article1droitemilieu { margin: 0; line-height: 1.2; }
.rp-compact .article1droite h3 a { display: inline-block; line-height: 1.2; }
/* Le h3 gardait la grande taille de titre (28 px) : sa ligne était plus haute que le texte du lien,
   qui se retrouvait décalé vers le bas par rapport à la date. */
.rp-compact .article1droite h3 { font-size: .9rem; }
.rp-compact .article1droite h3 a { font-size: inherit; }
@media (max-width: 768px) {
    .rp-compact .article1droite { align-items: flex-start; }
}

/* Formulaire d'ajout de rp : tout est aligné.
   - les deux listes du haut se partagent la largeur du formulaire ;
   - libellés de largeur fixe, champs alignés sur la même colonne (« Nom du RP » et « Lien du rp »
     avaient des libellés de longueurs différentes, donc des champs décalés) ;
   - le message d'erreur passe sous le champ. */
.formstyletop {
    gap: 12px;
}
.formstyleoption {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}
select#forum_id,
select#character_id {
    width: 100%;
    box-sizing: border-box;
}
.formstyletxt1 {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 4px 12px;
}
.formstyletxt1 label {
    flex: 0 0 22%;
    text-align: left;
}
input.text2,
input.text3 {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
}
.formstyletxt1 .error {
    flex: 0 0 100%;
    padding-left: calc(22% + 12px);
}
@media (max-width: 516px) {
    .formstyletxt1 { flex-direction: row; }
    .formstyletxt1 label { flex: 0 0 100%; }
    .formstyletxt1 .error { padding-left: 0; }
    input.text2, input.text3 { flex: 1 1 100%; }
}

/* Profils (comptes sur le forum) : pseudo discret à côté du nom du personnage, visible par le seul propriétaire */
.profile-badge {
    margin-left: .5rem;
    padding: 1px 6px;
    border-radius: 8px;
    background: var(--color8);
    font-size: .7rem;
    font-weight: 400;
    white-space: nowrap;
}
.profile-hint { margin: 0 0 12px; font-size: .8rem; opacity: .8; }
.modal-content .formstyletxt select.full-width { width: 256px; max-width: 100%; padding: 6px; }
.modal-content p.profile-hint {
    padding: 0;
    margin: 0 0 14px;
    font-family: var(--font1);
    font-size: .8rem;
    letter-spacing: normal;
    line-height: 1.3;
    text-align: left;
    opacity: .8;
}

/* ---- Texte trop long : défilement en boucle de droite à gauche, façon bandeau (public/js/marquee.js) ---- */
/* Repli (avant le script, ou « réduire les animations ») : une seule ligne coupée par « … » */
.marquee {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
}
.forumpersonnage > h3 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 0 0 auto;      /* la carte est en colonne flex : sans cela, overflow:hidden laisse le titre s'écraser quand la liste est longue */
}
/* Texte qui défile : bords estompés, deux copies du texte qui glissent d'une moitié de piste */
.mq-on {
    text-overflow: clip;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent);
}
.mq-track {
    display: inline-flex;
    white-space: nowrap;
    animation: mq-slide var(--mq-dur, 10s) linear infinite;
    will-change: transform;
}
.mq-item { flex: none; padding-right: 2.5em; }
.mq-on:hover .mq-track,
.mq-on:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq-slide { to { transform: translateX(-50%); } }

/* ---------- Écrans tactiles (tablettes, téléphones) ----------
   Les icônes d'action des cartes de rp (favori, modifier, archiver, répondre) ne faisaient
   que ~16×17 px, collées les unes aux autres : au doigt on ratait « Répondre » ou on tapait
   l'icône voisine (archiver !). Sur un pointeur grossier, chaque icône devient une vraie
   cible de 44×44 px (recommandation Apple/WCAG), sans rien changer à la souris. */
@media (pointer: coarse) {
    .article1haut {
        height: auto;
        align-items: center;
    }
    .article1haut .icons {
        display: inline-flex;
        gap: 2px;
    }
    .article1haut .icons a.exempleicone,
    .article1haut .icons .exempleicone {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
        font-size: 1.15em;
        touch-action: manipulation; /* pas de délai de double-tap zoom */
        -webkit-tap-highlight-color: rgba(0, 0, 0, .08);
    }
}

/* ---------- Glisser-déposer des prioritaires (public/js/fav-sort.js) ---------- */
.rp-drag-handle {
    display: flex;
    align-items: center;
    padding: 0 6px 0 0;
    font-size: 1.15em;
    cursor: grab;
    color: var(--color1);
    opacity: .7;
    touch-action: none;           /* au doigt, la poignée déplace la carte au lieu de faire défiler */
}
.rp-drag-handle:hover { opacity: 1; }
.rp-drag-handle:active { cursor: grabbing; }
.rp-drag-ghost { opacity: .35; }
.rp-drag-chosen { box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.fav-sort-hint {
    margin: 0 0 8px;
    font-size: .85rem;
    opacity: .8;
}
@media (pointer: coarse) {
    .rp-drag-handle { min-width: 44px; justify-content: center; padding: 0; }
}

/* Ordre de passage dans « Modifier le rp » (glisser-déposer + flèches) */
.edit-turn-hint { font-size: 12.5px; opacity: .75; margin: 0 0 6px; }
.edit-turn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.edit-turn-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 4px; border: 1px solid rgba(127, 127, 127, .3); border-radius: 8px; }
.edit-turn-list .turn-drag-handle { cursor: grab; padding: 0 4px; opacity: .6; touch-action: none; }
.edit-turn-list .turn-drag-handle:active { cursor: grabbing; }
.edit-turn-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color5); color: #fff; font-size: 12px; font-weight: 600; flex: none; }
.edit-turn-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-turn-current { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--color5); color: var(--color5); flex: none; }
.edit-turn-list button { background: none; border: 0; padding: 4px; cursor: pointer; color: inherit; opacity: .7; }
.edit-turn-list button:hover { opacity: 1; }
.edit-turn-list button:disabled { opacity: .2; cursor: default; }
