:root {
    --JetBrains: 'JetBrains Mono', monospace;
    --font-inter: 'Inter', sans-serif;
    --text: #E2E8F7;
    --bg: #080B14;
    --surface: #1C2333;
    --muted: #64748B;
    --electric-mint: #00E5B0;
    --mint-muted: rgba(0, 229, 176, 0.2);
    --plasma: #FFD60A;
    --lava: #FF3D5A;
    --lava-muted: rgba(255, 61, 90, 0.2);
  }
  
@font-face { font-family: PositiveSystem; src: url('fonts/PositiveSystem.otf'); } 

body {
    color: var(--text);
    font-family: var(--font-inter);
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

header {
    width: 100%;
}
  
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    width: 100%;
}


.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
  
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--electric-mint);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { 
    color: var(--text); 
}
  
.logo-text {
    font-family: PositiveSystem;
    font-size: 17px;
    font-weight: 700;
}
.logo-text span:first-child { 
    color: var(--electric-mint); 
}
.logo-text span:last-child { 
    color: var(--text); 
}
  
.button, button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    border: none;
}
  
.btn-strong {
    background-color: var(--electric-mint);
    color: black;
    cursor: pointer;
}

.btn-lava {
    background-color: var(--lava);
    color: var(--text);
}

.btn-normal {
    background: transparent;
    border-color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.button.start {
    padding: 20px;
}

h1 {
    font-size: 70px;
    font-family: PositiveSystem;
    padding: 1rem;
    font-weight: 500;
}

h1 span {
    color: var(--electric-mint);
}

.intro div {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    background-color: var(--surface);
    color: var(--muted);
    padding: 0px 30px;
    display: block;
    margin: 60px;
}

.intro ul {
    font-family: var(--JetBrains);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    list-style: none;
    padding: 0;
}

.intro li:not(:last-child)::after {
    content: "";
    margin-left: 40px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.intro strong {
    color: var(--electric-mint);
}

.thematiques {
    font-family: var(--JetBrains);
    color: var(--muted);
    width: 100%;
    margin: 0 auto 40px auto;
}

.thematiques p {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.thematiques div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

h2 {
    font-size: 30px;
    font-family: PositiveSystem;
    color: var(--text);
    font-weight: 400;
}

h3 {
    color: var(--electric-mint);
    font-family: var(--JetBrains);
    font-size: 10px;
    font-weight: 400;
}

.thematiques {
    width: 100%;
    padding: 60px;
    text-align: left;
}

.thematiques h2, .thematiques h3 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.thematiques p {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.thematiques .grid-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
}


.card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 28px 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

h4 {
    font-family: PositiveSystem;
    color: var(--text);
    font-weight: 400;
}

.cmt-ca-marche {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    text-align: left;
    margin: 60px;
}

.cmt-ca-marche p {
    font-family: var(--JetBrains);
    color: var(--electric-mint);
}

.cmt-ca-marche ul {
    list-style: none;
}

.cmt-ca-marche strong {
    color: var(--electric-mint);
}

.cmt-ca-marche .right {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 20px;
}

.current-points {
    line-height: 0px;
}

.progression {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.progression .Progression {
    color: var(--text);
}

.progress-bar {
    width: 100%;
    background-color: var(--text);
    border-radius: 10px;
    overflow: hidden;
    height: 5px;
}

.progress-bar div {
    width: 80%;
    text-align: right;
    padding: 10px 0;
    padding-right: 20px;
    background-color: var(--electric-mint);
}

.cmt-ca-marche .right h3 {
    color: var(--text);
    font-family: var(--JetBrains);
    font-size: 45px;
    font-weight: 600;
}

.cmt-ca-marche .right h4 {
    font-family: var(--JetBrains);
    font-size: 11px;
}

.cmt-ca-marche .right .questions .right, .wrong {
    padding: 10px 0px;
    padding-right: 20px;
    background-color: var(--mint-muted);
    border: 1px solid var(--electric-mint);
    width: 100%;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    height: 50px;
    align-items: center;
}

.cmt-ca-marche .right .questions .wrong {
    background-color: var(--lava-muted);
    border: 1px solid var(--lava);
    
}

.icon {
    color: var(--electric-mint);
    font-size: 14px;
}

.wrong .icon {
    color: var(--lava);
}

.cmt-ca-marche .right .questions p {
    font-family: var(--font-inter);
    color: var(--text);
}

.cmt-ca-marche .right .questions .pts-added {
    font-family: var(--JetBrains);
    color: var(--plasma);
}


.back {
    align-self: flex-end;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    padding: 20px;
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    cursor: pointer;
}

.back:hover{
    color: var(--electric-mint);
}

.login_logo{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin: 20px;
}

.login_logo .logo-text {
    font-size: 30px;
    font-family: PositiveSystem;
}
.login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    width: 100%;
    height: auto;
}
.login_info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    background-color: var(--surface);
}
.login_info h1{
    font-size: 80px;
    font-family: PositiveSystem;
    font-weight: 500;
    margin: 0 0 20px 20px;
}

.login_info .h1 span {
    color: var(--electric-mint);
}
.login_info h2 {
    font-family: var(--font-inter);
    color: var(--electric-mint);
    font-size: 20px;
    margin: 0 0 20px 20px;
}

.login_info article {
    font-style: italic;
    font-size: 20px;
    margin: 0 20px 20px 20px;
    color: var(--muted);
}

.login_info .nav-logo {
    margin-bottom: 20px;
}
.login_form {
    display: flex;
    align-items: center;
    height: 100vh;
    justify-content: center;
    flex-direction: column;
}

.login_form h3 {
    font-family: PositiveSystem;
    font-size: 35px;
    color: var(--text);
}
.mb-3 {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background-color: var(--surface);
    border: 1px solid var(--muted);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    gap: 6px;
    box-sizing: border-box;
}
.form-control:focus{
    border: 1px solid var(--electric-mint);
}


.checkbow_pwd_container{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
  
.checkbow_pwd_container input[type="checkbox"] {
    accent-color: var(--electric-mint);
    width: 14px;
    height: 14px;
    cursor: pointer;
}  

.checkbox_pwd_text {
    font-size: 14px;
    color: var(--muted);
}

#bouton-afficher {
    accent-color: var(--electric-mint);
    width: 16px;
    cursor: pointer;
}
#bouton-abonner {
    accent-color: var(--electric-mint);
    width: 16px;
    height: 16px;
}
.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: var(--muted);
}

.login_form .btn-strong {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 15px;
    margin-top: 8px;
    cursor: pointer;
}
.login_form .btn-strong:hover {
    background-color: var(--bg);
    border-radius: 8px;
    color: var(--electric-mint);
}
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

select.form-control option {
    background-color: var(--surface);
    color: var(--text);
}


.signup_form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
    padding: 40px 50px;
    height: 100%;
    overflow-y: auto;
}

.signup_form form {
    width: 100%;
    max-width: 500px;
}

.signup_form h3 {
    font-family: PositiveSystem;
    font-size: 35px;
    color: var(--text);
    margin-bottom: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

a {
    color: var(--electric-mint);
    text-decoration: none;
}

.list_pwd {
    margin-left: 5px;
    font-family: var(--JetBrains);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    list-style: none;
    padding: 0;

}
.list_pwd .password-rules {
    list-style: none;
    padding: 5px;
    margin: 5px;
    text-align: left;
    width: 100%;
}

.list_pwd .password-rules li {
    color: var(--muted);
    list-style: none;
    margin-top: 5px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.password-rules li.valid {
    color: var(--electric-mint);
    font-weight: bold;
}
.signup_form .btn-strong {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 15px;
    margin-top: 8px;
    cursor: pointer;
}
.signup_form .btn-strong:hover{
    background-color: var(--bg);
    border-radius: 8px;
    color: var(--electric-mint);
}

.signup_p{
    text-align: center;
}

.error_container {
    background-color: var(--lava-muted);
    border: 1px solid var(--lava);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    width: 100%;
    display:flex;
    max-width: 400px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: left;
    text-align: center;
}

.error-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}
.before_error {
    color: var(--lava);
    font-weight: 400;
    font-family: PositiveSystem;
}
.input-error {
    border-color: var(--lava);
    box-shadow: 0 0 0 1px var(--lava);
}

.body_pwd_reset{
    display: flex;
    background-color: var(--bg);
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    text-align: center;
}

.body_pwd_reset .return_login_logo{
    display: flex;
    padding: 10px;
    margin: 10px;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 80px;
}

.body_pwd_reset .return_logo {
    text-align: center;
    display: flex;
    gap: 10px;
}

.body_pwd_reset .logo-text-auth {
    font-size :30px;
    display: flex;
    align-items: center;
    font-family: PositiveSystem;
}
.body_pwd_reset .logo-text-auth span:first-child{
    color:var(--electric-mint);
}
.body_pwd_reset .logo-text-auth span:last-child{
    color:var(--text);
}

.forgot_form{
    padding: 40px;
    max-width: 600px;
    box-sizing: border-box;
    width: 100%;
    flex-direction: column;
    text-align: center;
    color: var(--text);
    font-family: var(--font-inter);
}

.forgot_form h1 {
    display:flex;
    font-family: PositiveSystem;
    font-size: 35px;
    margin-bottom: 15px;
    padding: 0;
    align-items: center;
    text-align: center;
}
.forgot_form p {
    color: var(--muted);
    font-family: var(--font-inter);
    font-size: 15px;
    max-width: 600px;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.5;
}


.forgot_fom .error_container_reset{
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    text-align: center;

}
.forgot_form .reset_pwd{
    margin-bottom: 16px;
    text-align: left;
}

.forgot_form .reset_pwd .forgot_pwd_mail{
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.forgot_form .reset_pwd .form_control_email{
    width: 100%;
    background-color: var(--surface);
    border: 1px solid var(--muted);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    gap: 6px;
    box-sizing: border-box;
    margin-bottom: 15px;
}
.forgot_form .reset_pwd .form_control_email:focus {
    border: 1px solid var(--electric-mint);
}

.forgot_form .button-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin-top: 15px;
}
.forgot_form .button-row .back-btn-pwd{
    color: var(--bg);
    font-size: 12px;
    padding: 10px;
    margin-top: 8px;
    cursor: pointer;
    border-radius:8px;
    width: 100%;
    font-weight: 650;
    justify-content: center;
    background-color: var(--electric-mint);
}
.forgot_form .button-row .back-btn-pwd:hover{
    background-color: var(--bg);
    border-radius: 8px;
    border-color: 2px bold var(--electric-mint);
    color: var(--electric-mint);
}

.forgot_form .button-row .btn-submit-pwd{
    width: 100%;
    justify-content: center;
    padding: 10px;
    font-size: 12px;
    margin-top: 8px;
    cursor: pointer;
    background-color: var(--text);
    color: var(--bg);
    font-weight: 650;
}
.forgot_form .button-row .btn-submit-pwd:hover{
    background-color: var(--bg);
    border-radius: 8px;
    border-color: 2px bold var(--text);
    color: var(--text);
}


.error_container_reset {
    background-color: var(--lava-muted);
    border: 1px solid var(--lava);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    display: flex;
    max-width: 450px;
    box-sizing: border-box;
    flex-direction: column;
    text-align: center;
    margin: 0px 40px 20px 30px;
}

.error-item_reset {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}
.before_error_reset {
    color: var(--lava);
    font-weight: 400;
    font-family: PositiveSystem;
}
.error_message_reset {
    color: var(--lava);
    font-weight: 400;
    font-family: PositiveSystem;
}

.forgot_form .reset_pwd .new_pwd{
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.forgot_form .reset_pwd .form_control_reset{
    width: 100%;
    background-color: var(--surface);
    border: 1px solid var(--muted);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    gap: 6px;
    box-sizing: border-box;
    margin-bottom: 15px;
}
.forgot_form .reset_pwd .form_control_reset:focus{
    border: 1px solid var(--electric-mint);
}
.forgot_form .reset_pwd .confirm_pwd{
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.reset_pwd .password-rules {
    list-style: none;
    padding: 5px;
    margin: 5px;
    text-align: left;
    width: 100%;
}

.reset_pwd .password-rules li {
    color: var(--muted);
    list-style: none;
    margin-top: 5px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.password-rules li.valid {
    color: var(--electric-mint);
    font-weight: bold;
}


section.message_activation {
    padding-top: 100px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
section.message_activation h1{
    font-family: PositiveSystem;
    font-size: 35px;
    margin-bottom: 15px;
    padding: 10px;
}

section.message_activation h2 {
    display: flex;
    font-family: var(--font-inter);
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--electric-mint);
}

section.message_activation p{
    color: var(--muted);
    font-family: var(--font-inter);
    font-size: 15px;
    max-width: 700px;
    line-height: 2.5;
}

footer {
    padding: 2rem 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--electric-mint);
}



.plasma {
    color: var(--plasma) !important;
    border-color: var(--plasma) !important;
}

.lava {
    color: var(--lava) !important;
    border-color: var(--lava) !important;
}

.actions-a-traiter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.actions-a-traiter .btn-strong,
.actions-a-traiter .btn-lava {
    width: fit-content;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
}

.action-top {
    display: flex;
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
}

.action-number {
    font-size: 40px;
    font-family: var(--JetBrains);
}

.captcha-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    background-color: var(--surface);
}

#captcha-grid {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    grid-template-rows: repeat(2, 150px);
    width: 300px;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.captcha-piecee {
    width: 150px;
    height: 150px;
    background-size: 300px 300px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    cursor: grab;
}

.captcha-piece.selectionnee {
    opacity: 0.45;
    cursor: grabbing;
}

#captcha-grid.resolu .captcha-piece {
    border-color: var(--electric-mint);
    cursor: default;
}

.captcha-hint {
    color: var(--muted);
    font-size: 11px;
    margin: 6px 0 0;
    text-align: center;
}

.captcha-status {
    font-size: 12px;
    margin: 6px 0 0;
    text-align: center;
    font-family: var(--JetBrains);
    min-height: 16px;
}

/*.captcha-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    background-color: var(--surface);
}

.captcha-puzzle {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 8px;
}

.captcha-puzzle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

:root { --cp-top: 40px; }

.cp-square, .cp-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    top: var(--cp-top);
    background-image: url('img/rhino.jpg');
    background-size: 370px auto;
    cursor: pointer;
    border: 2px solid white;
    box-sizing: border-box;
}

.cp-square {
    background-position: -200px -40px;
    left: 10px;
}

.cp-circle {
    background-position: -90px -20px;
    left: 90px;
    border-radius: 50%;
}

.cp-target {
    position: absolute;
    left: 200px;
    width: 60px;
    height: 60px;
    border: 2px dashed var(--electric-mint);
    background-color: rgba(0, 229, 176, 0.1);
    top: var(--cp-top);
    border-radius: 4px;
    box-sizing: border-box;
}

.captcha-slidebar {
    width: 100%;
    margin-bottom: 6px;
}

.captcha-slidebar input[type="range"] {
    width: 100%;
    accent-color: var(--electric-mint);
}

.captcha-hint {
    color: var(--muted);
    font-size: 11px;
    margin: 0;
    text-align: center;
}

.captcha-status {
    font-size: 12px;
    margin: 4px 0 0;
    text-align: center;
    font-family: var(--JetBrains);
    min-height: 16px;
}*/

.nav-newsletter {
    background-color: var(--surface);
    display: flex;
    gap: 8px;
    padding: 20px 0 16px;
    width: fit-content;
}

.newsletter-redaction {
    background-color: var(--surface);
}

.btn-onglet {
    background-color: var(--surface);
    border: 1px solid var(--muted);
    color: var(--muted);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--font-inter);
}

.btn-onglet.active {
    background-color: var(--bg);
    color: var(--text);
}

textarea {
    font-family: var(--font-inter);
}

.newsletter-redaction {
    background-color: var(--bg2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 28px;
}





.newsletter-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-inter);
    font-size: 14px;
    margin-top: 20px;
}

.newsletter-table thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-table th {
    text-align: left;
    padding: 12px 16px;
    font-family: var(--JetBrains);
    font-size: 11px;
    color: var(--electric-mint);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.newsletter-table td {
    padding: 16px;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-table tbody tr:hover {
    background-color: var(--surface);
}

.btn-modifier {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modifier:hover {
    border-color: var(--electric-mint);
    color: var(--electric-mint);
}





.user-index {
    text-align: left;
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
    width: 100%;
    align-self: stretch;
}

.user-index h2 {
    color: var(--electric-mint);
    font-size: 14px;
}

.user-index h4 {
    color: var(--text);
    font-family: var(--JetBrains);
    font-size: 32px;
}

.statistiques {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.statistiques .card {
    height: 100px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    padding: 16px 20px;
}

.user-index .card p {
    color: var(--electric-mint);
    margin: 0;
    padding: 0;
}

.statistiques-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-buttons {
    display: flex;
    gap: 10px;
}




.user-sidebar {
    width: 200px;
    height: 100vh;
    background: var(--surface);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-right: 1px solid var(--surface);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nav .menu_principal_user{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: block;
    unicode-bidi: isolate;

}
.haut_barre_laterale {
    padding: 10px 20px 30px 20px;
}

.haut_barre_laterale img {
    width: 120px;
}

.section_menu {
    margin-bottom: 10px;
}

.section_menu .h3 {
    color: var(--electric-mint);
    font-family: var(--JetBrains);
    font-size: 11px;
    padding: 10px 20px 5px 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section_menu ul {
    list-style: none;
}

.section_menu ul li a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 20px;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease;
}

.section_menu ul li a:hover {
    color: var(--text);
    background: var(--bg);
}

.info_utilisateur {
    margin-top: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar {
    width: 35px;
    height: 35px;
    background: var(--lava-muted);
    border: 1px solid var(--lava);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lava);
    font-size: 12px;
    font-weight: bold;
    font-family: var(--JetBrains);
}

.lien_actif {
    color: var(--text) !important;
    background: var(--bg);
    border-left: 3px solid var(--electric-mint);
}

.lien_deconnexion {
    color: var(--lava);
    text-decoration: none;
    font-size: 12px;
    font-family: var(--JetBrains);
}

.lien_deconnexion:hover {
    color: var(--text);
    text-decoration: underline;
}











.page_user {
    min-height: 100vh;
    margin-left: 200px;
    padding: 32px;
    background: var(--bg);
    color: var(--text);
}

.bloc_creation_fiche {
    max-width: 900px;
}

.alerte_fiche {
    background: var(--mint-muted);
    color: var(--electric-mint);
    border: 1px solid rgba(0, 229, 176, 0.35);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    font-family: var(--JetBrains);
    margin-bottom: 18px;
}

.switch_creation {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
}

.switch_btn {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-family: var(--JetBrains);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.switch_btn:hover {
    color: var(--text);
    background: var(--bg2);
}

.switch_btn_actif {
    color: var(--text);
    background: var(--bg2);
    border-color: rgba(255, 255, 255, 0.20);
}

.message_fiche {
    width: 100%;
    max-width: 900px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.message_fiche_erreur {
    background: var(--lava-muted);
    border: 1px solid var(--lava);
    color: #ffb3c0;
}

.message_fiche_succes {
    background: var(--mint-muted);
    border: 1px solid var(--electric-mint);
    color: #9ff5df;
}

.form_creation_fiche {
    width: 100%;
}

.groupe_fiche {
    margin-bottom: 14px;
}

.groupe_fiche h2 {
    color: var(--electric-mint);
    font-family: var(--JetBrains);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.champ_fiche {
    margin-bottom: 18px;
}

.champ_fiche label {
    display: block;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 8px;
}

.champ_fiche input,
.champ_fiche select,
.champ_fiche textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--surface);
    color: var(--text);
    border-radius: 9px;
    padding: 13px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.champ_fiche input::placeholder,
.champ_fiche textarea::placeholder {
    color: rgba(226, 232, 247, 0.35);
}

.champ_fiche input:focus,
.champ_fiche select:focus,
.champ_fiche textarea:focus {
    border-color: var(--electric-mint);
    box-shadow: 0 0 0 3px rgba(0, 229, 176, 0.10);
}

.champ_fiche textarea {
    min-height: 260px;
    resize: vertical;
}

.actions_fiche {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.btn_fiche {
    display: inline-block;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-family: var(--JetBrains);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn_fiche_annuler {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.btn_fiche_annuler:hover {
    background: var(--bg2);
}

.btn_fiche_valider {
    background: var(--electric-mint);
    color: #081018;
}

.btn_fiche_valider:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 229, 176, 0.20);
}










#chat-box {
  width: 440px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 500px;
}

#chat-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--electric-mint);
  padding: 14px 18px;
  font-family: var(--JetBrains);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

#messages {
  height: 360px;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-other {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 9px 13px;
  border-radius: 16px 16px 16px 4px;
  max-width: 75%;
  font-size: 14px;
  line-height: 1.5;
}

.msg-me {
  align-self: flex-end;
  background: var(--electric-mint);
  color: var(--bg);
  padding: 9px 13px;
  border-radius: 16px 16px 4px 16px;
  max-width: 75%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.msg-meta {
  font-family: var(--JetBrains);
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.45;
}

#input-zone {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--surface);
}

#input-zone input {
  flex: 1;
  padding: 9px 14px;
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-inter);
  font-size: 14px;
  outline: none;
}

#input-zone input:focus {
  border-color: var(--electric-mint);
}

#input-zone button {
  background: var(--electric-mint);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

#input-zone button:hover {
  opacity: 0.85;
}

#chat-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 40px;
}

#liste-users {
  width: 180px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  height: 500px;
}

.user-item {
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}

.user-item:hover {
  background: var(--bg);
  color: var(--electric-mint);
}

.user-item-actif {
  color: var(--electric-mint);
  border-left: 3px solid var(--electric-mint);
}






.fiche_listing_section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0 40px 0;
}

.listing_header {
    margin-bottom: 24px;
}

.listing_subtitle {
    color: var(--muted);
    margin-top: 6px;
    font-size: 14px;
}

.grille_fiches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.carte_fiche {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fiche_meta_top,
.fiche_meta_bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fiche_meta_bottom {
    color: var(--muted);
    font-size: 13px;
}

.fiche_card_title {
    font-size: 22px;
    line-height: 1.2;
    color: var(--text);
    margin: 0;
}

.fiche_card_excerpt {
    color: #c9d3e3;
    font-size: 14px;
    line-height: 1.7;
}

.fiche_like_count {
    color: var(--lava);
    font-family: var(--JetBrains);
    font-size: 13px;
}

.btn_voir_fiche {
    display: inline-block;
    margin-top: auto;
    text-decoration: none;
    background: var(--electric-mint);
    color: #081018;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--JetBrains);
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn_voir_fiche:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.detail_fiche_section {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 0 40px 0;
}

.fiche_detail_header {
    margin-bottom: 24px;
}

.retour_lien_fiche {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--electric-mint);
    text-decoration: none;
    font-family: var(--JetBrains);
    font-size: 13px;
}

.fiche_detail_title {
    font-size: 38px;
    line-height: 1.1;
    margin: 14px 0 14px 0;
    color: var(--text);
}

.fiche_meta_bottom_detail {
    margin-top: 8px;
}

.fiche_contenu_box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 26px;
    color: var(--text);
    line-height: 1.9;
    font-size: 15px;
    white-space: normal;
}

@media (max-width: 768px) {
    .fiche_detail_title {
        font-size: 28px;
    }

    .fiche_contenu_box {
        padding: 18px;
    }
}