@media only screen and (max-width: 1200px) {
	
	.thead > .float_right{
		float:none;
		display:block;

        .header_before_gradient,
        .header_after_gradient {
            width: 100vw;
            position: relative;
            left: 50%;
            transform: translateX(-50%);
        }

    }

    select {
        margin-bottom:5px;
    }

    table {
        overflow:hidden;
    }

    #show_smilies td {
        display:table-cell;
    }

    .attribute_footer {
        float:none;
        margin-bottom:20px;
    }

    #footer {
        text-align:center;
        background: #0e0e0eb3 !important;
        color: #999 !important;
        clear: both !important;
        border-top: 1px solid #2d2e38 !important;
        margin: auto !important;
        padding: 30px 5px !important; /* padding latéral ajouté pour mobile */
        font-family: 'Rajdhani', sans-serif !important;
        font-weight: 500 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .footer_links a {
      font-size:12px;
      margin-right:15px;
    }

    .guestwelcomemsg {
    background-position: right;
    }

    #modcp_pages .tborder, .table_fixed {
      table-layout: fixed !important;
      white-space: normal !important;
      overflow:hidden !important;
    }

    #modcp_pages td, .table_fixed td {
        display:table-cell !important;
        overflow:hidden !important;
    }

    .show_hide_mobile_header {
        font-weight:900;cursor:pointer;
    }

    .mobile_header {
        background:#18181a;padding:8px 20px;border-bottom:1px solid #1c1d22;
    }

    .mobile_header a{
        display:block;
        padding:10px 5px;
        border-bottom:1px solid #131314;
        font-size:14px;
    }

    .mobile_header a:hover{
        background:#131314;
    }

    .mobile_header i{
        margin-right:12px;
    }

    .mobile_hide {
        display:none;
    }

    #pm_folder_list {
        max-height:700px;
        height:auto !important;
    }

    #redirect_box {
        width:90% !important;
    }

    #log_reg_table {
        width:100%;
    }

    #guest_info_header {
      margin-top:4px;
    }

    .title-img {
        margin-top:5px;
    }

    .title-img-guest {
        margin-top:2px !important;
        margin-bottom:2px;
    }

    #member_info_header {
      margin-top:-8px;
    }

    .top_links {
        display:none;
    }

    .profile-containter_extras {
    margin:0px;margin-top:-180px;
    }

    ul.tabs li {
        display:inline-block !important;
    }

    .left-sidebar {
      width:100% !important;margin-bottom:30px;
    }

    .sidebar-inner {
        padding:0px !important;
    }

    .private_home_center_text{
      position: static;top: auto;left:auto;padding:30px 0px;
    }

    .private_main_box {
        height:auto !important;
    }

    .memberlist_search_width {
        width:240px !important;
    }

    .memberlist_card {
        display:block;
        width:100%;
        box-sizing: border-box;
        margin:0px;
        margin-top:20px;
    }

    .mobile_only_tr {
        display: table-row;
    }

    .mobile_only {
        display:block;
    }

    .mobile_thread_sep {
        margin-bottom:20px;
        border-bottom:1px solid #1e1f24;
    }

    .mobile_modbit {
        float:right;
    }

    .threadlisting {
        margin-bottom:20px !important;
    }

    .threadlisting > td {
        display:inline-block;
        border-bottom:none;
        padding:0px;
        margin:0px;
        max-width:250px;
    }

    .thread_info {
        margin-left:30px !important;
    }

    .postbit_avatar {
        width:30px !important;
        height:30px !important;
    }

    .postbit_avatar_margins {
        width:30px !improtant;
        margin-left:23px;margin-right:-5px;margin-top:30px;
    }

    .post {
        margin-left:0 !important;
    }

    .mobile_no_float {
    float:none !important;
    }

    .mobile_line_break {
        display:block;
    }

    body[class*="newreply"] .tborder *[class*="trow"],
     body[class*="newthread"] .tborder *[class*="trow"],
     body[class*="editpost"] .tborder *[class*="trow"],
     body[class*="private.php send"] .tborder *[class*="trow"],
    body[class*="search.php"] .tborder *[class*="trow"],
      body[class*="avatar"] .tborder *[class*="trow"],
      body[class*="password"] .tborder *[class*="trow"],
      body[class*="email"] .tborder *[class*="trow"],
      body[class*="changename"] .tborder *[class*="trow"],
      body[class*="editsig"] .tborder *[class*="trow"],
      body[class*="contact_us"] .tborder *[class*="trow"]{
      display:block;
      width:auto;
    }

    body[class*="usercp.php options"] td[width*="50%"] {
      display:block;
      width:auto;
    }

    body {
    margin-bottom:20px !important;
    }

    .mobile_width {
        width:100% !important;
        box-sizing: border-box;
    }

    input.textbox {
      font-size: 16px !important;
      box-sizing: border-box;
      width:100% !important;
    }

    input.text {
      font-size: 16px !important;
    }

    textarea {
      font-size: 16px !important;
    }

    .textbox {
      font-size: 16px !important;
    }

    td {
      width: auto;
      #display: block;
      margin: 4px 0px;
      text-align: left;
    }

    .tcat {
        display:none;
    }

    .tcat_menu {
        display:block !important;
    }

    .red_alert {
      width:100%;box-sizing: border-box;
    }

    #panel .upper {
    padding:8px 0px;
    line-height:normal;
    height:auto;
    }

    #aboutus_page {
    width:auto;
    }

    .floating_button {
      float:none;
      display:block;
      margin-top:5px;
    }

    #backtop {
    bottom: 55px;
    right: 10px;
    }

    .desktop-td-only [class*="trow"] {
      display:none;
    }

    .mobile-td-only [class*="trow"] {
      display:table-cell;
    }

    .mobile-only {
      display:block;
    }

    .desktop-only {
      display:none;
    }

    #desktop-only {
      display:none;
    }

    .mobile-only-inl {
      display:inline-block;
    }

    .desktop-only-inl {
      display:none;
    }

    #desktop-only-table {
      display:none;
    }

    .wrapper {
      width: 98%;
      min-width: auto;
      max-width: none;
    }

    .upper .wrapper {
      padding-left:12px;
      padding-right:12px;
      box-sizing:border-box;
    }

    .upper .wrapper [style*="float:left"]{
      float:none !Important;
      display:inline-block;
    }

    .upper .wrapper [style*="float:left;margin-top:-2px;margin-left:30px"] {
      display:none;
    }

    .upper .wrapper [style*="float:right;margin-top:-8px;margin-left:15px"] {
      position:relative;
      top:4px;
    }

    .v-center {
      top:0;
    }

    #header ul.menu {
      float:right;
      position:relative;
      top:6px;
    }

    #container {
      min-width: 0 !Important;
    }

    #content {
      margin-top:10px !important;
      padding:10px;
      box-sizing:border-box;
      overflow:hidden;
    }

    .sidebar, .forums, .sidebar-pm, .forums-pm {
      float:none !Important;
      width:auto !Important;
    }

    .forums {
      margin-top:8px;
    }

    .forums td[width="25%"] {
      display:block;
      width:auto;
    }

    .post [style*="margin-left:74px"] {
       margin-left:0px !Important;
    }

    .post .avatar_style {
      width:40px !Important;
      height:40px !Important;
    }

    .post a[data-uid] {
      float:left;
      padding-right:10px;
    }

    body[class="member.php register"]   td[width*="50%"] {
     display:block;
     width:auto;
    }

    body[class*="modcp.php "]  td[valign="top"][width="240"], body[class*="modcp.php "]  td[valign="top"][width="240"] + td {
      display:block;
      width:auto;
    margin:4px 0px;
    }

    body[class="modcp.php "]  td[valign="top"][width="240"] + td .tborder:nth-of-type(2) td:nth-child(2), body[class="modcp.php "]  td[valign="top"][width="240"] + td .tborder:nth-of-type(2) td:nth-child(4) , body[class="modcp.php "]  td[valign="top"][width="240"] + td .tborder:nth-of-type(2) td:nth-child(5){
     display:none;
    }

    body[class="modcp.php "]  td[valign="top"][width="240"] + td .tborder:nth-of-type(2) td {
     text-align:left;
    }

    body[class="modcp.php "]  td[valign="top"][width="240"] + td .tborder:nth-of-type(2) td:first-child {
     width:65%;
    }

    body[class="modcp.php "]  td[valign="top"][width="240"] + td .tborder:nth-of-type(2) td:nth-child(3) {
     text-align:right;
    }

    body[class="modcp.php "]  td[valign="top"][width="240"] + td .tborder:nth-of-type(3) td:nth-child(3), body[class="modcp.php "]  td[valign="top"][width="240"] + td .tborder:nth-of-type(3) td:nth-child(4) {
     display:none;
    }

    body[class="modcp.php "]  td[valign="top"][width="240"] + td .tborder:nth-of-type(3) td:nth-child(2) {
     text-align:right;
    }

    body[class="modcp.php allreports"] td[valign="top"][width="240"] + td .tborder td.tcat:not(:first-child ){
     display:none;
    }

    body[class="modcp.php allreports"]  td[valign="top"][width="240"] + td .tborder td:not(.thead):not(.tcat) {
     display:block;
     text-align:left;
    }

    body[class="modcp.php allreports"]  td[valign="top"][width="240"] + td .tborder td:before {
     display:block;
     position:relative;
     padding-bottom:3px;
    }

    body[class="modcp.php allreports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"] {
     width:auto;
     display:block;
     border-width:0px 1px;
    }

    body[class="modcp.php allreports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(1):before {
     content:"Reported Content";
    }

    body[class="modcp.php allreports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(2):before {
     content:"Report reason";
    }

    body[class="modcp.php allreports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(3):before {
     content:"Reporter";
    }

    body[class="modcp.php allreports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(4):before {
     content:"# of Reports";
    }

    body[class="modcp.php allreports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(5):before {
     content:"Reported";
    }

    body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder td:nth-child(3) {
     display:none;
    }

    body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"] {
     border-width:0px;
    }

    body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder .tcat:nth-child(2), body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder .tcat:nth-child(4) {
     display:none;
    }

    body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder .tcat:nth-child(5) {
     text-align:right;
    }

    body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder tr, body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder td.thead{
     display:block;
     position:relative;
    }

    body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"] {
     display:block;
     text-align:left;
    }

    body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(5) {
     position:absolute;
     z-index:3;
     top:0px;
     right:0px;
    }

    body[class="modcp.php reports"] td[valign="top"][width="240"] + td .tborder td:before {
     display:block;
     position:relative;
     padding-bottom:3px;
    }

    body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(1):before {
     content:"Reported Content";
    }

    body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(2):before {
     content:"Reported Reason";
    }

    body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(3):before {
     content:"# of reports";
    }

    body[class="modcp.php reports"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(4):before {
     content:"Last Reported";
    }

    body[class="modcp.php modlogs"]  td[valign="top"][width="240"] + td .tborder:nth-of-type(1) td {
     text-align:left;
    }

    body[class="modcp.php modlogs"]  td[valign="top"][width="240"] + td .tborder td:before {
     display:block;
     position:relative;
     padding-bottom:3px;
    }

    body[class="modcp.php modlogs"]  td[valign="top"][width="240"] + td .tborder:nth-of-type(1) .tcat:not(:first-child) {
     display:none;
    }

    body[class="modcp.php modlogs"]  td[valign="top"][width="240"] + td .tborder:nth-of-type(1) td[class*="trow"] {
     display:block;
    }

    body[class="modcp.php modlogs"]  td[valign="top"][width="240"] + td .tborder:nth-of-type(1) td[class*="trow"]:nth-child(1):before {
     content:"Username";
    }

    body[class="modcp.php modlogs"]  td[valign="top"][width="240"] + td .tborder:nth-of-type(1) td[class*="trow"]:nth-child(2):before {
     content:"Date";
    }

    body[class="modcp.php modlogs"]  td[valign="top"][width="240"] + td .tborder:nth-of-type(1) td[class*="trow"]:nth-child(3):before {
     content:"Action";
    }

    body[class="modcp.php modlogs"]  td[valign="top"][width="240"] + td .tborder:nth-of-type(1) td[class*="trow"]:nth-child(4):before {
     content:"Information";
    }

    body[class="modcp.php modlogs"]  td[valign="top"][width="240"] + td .tborder:nth-of-type(1) td[class*="trow"]:nth-child(5):before {
     content:"IP";
    }

    body[class="modcp.php finduser"]  td[valign="top"][width="240"] + td .tborder:nth-of-type(1) td:nth-child(2),
    body[class="modcp.php finduser"]  td[valign="top"][width="240"] + td .tborder:nth-of-type(1) td:nth-child(3),
    body[class="modcp.php finduser"]  td[valign="top"][width="240"] + td .tborder:nth-of-type(1) td:nth-child(4) {
     display:none;
    }

    body[class="modcp.php banning"]  td[valign="top"][width="240"] + td .tborder td:before {
     display:block;
     position:relative;
     padding-bottom:3px;
    }

    body[class="modcp.php banning"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(1):before {
     content:"Username";
    }

    body[class="modcp.php banning"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(2):before {
     content:"Reason";
    }

    body[class="modcp.php banning"]  td[valign="top"][width="240"] + td .tborder: td[class*="trow"]:nth-child(3):before {
     content:"Length";
    }

    body[class="modcp.php banning"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(4):before {
     content:"Banned By";
    }

    body[class="modcp.php banning"]  td[valign="top"][width="240"] + td .tborder td.tcat:not(:first-child) {
     display:none;
    }

    body[class="modcp.php banning"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"] {
     display:block;
    }

    body[class="modcp.php editprofile"]  td[valign="top"][width="240"] + td .tborder td {
     display:block;
     width:auto;
    }

    body[class="modcp.php warninglogs"]  td[valign="top"][width="240"] + td .tborder td.tcat:not(:first-child) {
     display:none;
    }

    body[class="modcp.php warninglogs"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"] {
     display:block;
     text-align:left;
    }

    body[class="modcp.php warninglogs"]  td[valign="top"][width="240"] + td .tborder td:before {
     display:block;
     position:relative;
     padding-bottom:3px;
    }

    body[class="modcp.php warninglogs"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(1):before {
     content:"Warned User";
    }

    body[class="modcp.php warninglogs"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(2):before {
     content:"Warning";
    }

    body[class="modcp.php warninglogs"]  td[valign="top"][width="240"] + td .tborder: td[class*="trow"]:nth-child(3):before {
     content:"Date Issued";
    }

    body[class="modcp.php warninglogs"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(4):before {
     content:"Expires";
    }

    body[class="modcp.php warninglogs"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(5):before {
     content:"Issued by";
    }

    body[class="modcp.php warninglogs"]  td[valign="top"][width="240"] + td .tborder td[class*="trow"]:nth-child(6):before {
     content:"Details";
    }

    body[class="moderation.php threadnotes"]  form .tborder:not(:first-child) td.tcat:not(:first-child){
      display:none;
    }

    body[class="moderation.php threadnotes"]  form .tborder:not(:first-child) td:not(.tcat) {
     display:block;
     width:auto;
     border-width:1px 2px;
     text-align:left;
    }

    body[class="moderation.php threadnotes"]  form .tborder:not(:first-child) td:not(.tcat):before {
      display:block;
      text-align:left;
    }

    body[class="moderation.php threadnotes"]  form .tborder:nth-child(2) td[class*="trow"]:nth-child(2):before{
     content:"Date";
    }

    body[class="moderation.php threadnotes"]  form .tborder:nth-child(2) td[class*="trow"]:nth-child(3):before{
     content:"Action";
    }

    body[class="moderation.php threadnotes"]  form .tborder:nth-child(2) td[class*="trow"]:nth-child(4):before{
     content:"Information";
    }

    body[class="moderation.php threadnotes"] .tcat {
     text-align:left;
    }

    body[class="moderation.php delayedmoderation"]  .container  .tborder.delayed_mod_queue td.tcat:not(:first-child) {
     display:none;
    }

    body[class="moderation.php delayedmoderation"]  .container  .tborder.delayed_mod_queue td.tcat {
     text-align:left;
    }

    body[class="moderation.php delayedmoderation"]  .container  .tborder.delayed_mod_queue td[class*="trow"]{
     display:block;
     width:auto;
     text-align:left;
    }

    body[class="moderation.php delayedmoderation"]  .container .tborder.delayed_mod_queue td[class*="trow"]:before{
      display:block;
      text-align:left;
      position:relative;
    }

    body[class="moderation.php delayedmoderation"]  .container .tborder.delayed_mod_queue td[class*="trow"]:nth-child(2):before {
     content:"Days to perform action";
    }

    body[class="moderation.php delayedmoderation"]  .container  .tborder.delayed_mod_queue td[class*="trow"]:nth-child(3):before {
     content:"Action";
    }

    body[class="moderation.php delayedmoderation"]  .container  .tborder.delayed_mod_queue td[class*="trow"]:nth-child(4):before {
     content:"Information";
    }

    body[class="moderation.php delayedmoderation"]  .container  .tborder.delayed_mod_queue td[class*="trow"]:nth-child(5):before {
     content:"Actions";
    }

    body[class="moderation.php delayedmoderation"]  td[class*="trow"],
    body[class="moderation.php merge"]  td[class*="trow"],
    body[class="moderation.php split"]  td[class*="trow"],
    body[class="moderation.php move"]  td[class*="trow"] {
     display:block;
     width:auto;
    }

    body[class="private.php "] .box-bgs ~ .tborder.tborder td[class*="trow"]:nth-child(2),
    body[class="private.php "] .box-bgs ~ .tborder.tborder td[class*="trow"]:nth-child(4) {
        display:none;
    }

    .search_page .tborder td{
     display:block;
     width:auto;
     border-width:1px 2px;
    }

    .modal {
     width:78%;
    }

    form #message {
     width:100% !Important;
     box-sizing:border-box;
    }

    form[action*="newthread.php?fid=67"] .tborder {
       width:100% !Important;
    }

    form[action*="editpost.php"] .tborder {
       width:100% !Important;
    }

    small center {
    }

    #panel .upper .wrapper {
        display: flex;
        align-items: center;
        min-height: 70px;
        padding: 10px;
    }

    /* ===== CAS VISITEUR (non connecté) ===== */
    #panel .upper .wrapper:has(#guest_info_header) {
        flex-direction: column;
        justify-content: center;
    }

    #panel .upper .wrapper:has(#guest_info_header) #header_logo {
        max-height: 70px;   /* ajuste cette valeur selon ton goût */
        width: auto;
        height: auto;
    }

    .title-img-guest {
        order: 1;
        float: none !important;
        text-align: center;
        margin: 0 auto;
    }

    #guest_info_header {
        order: 2;
        float: none !important;
        text-align: center;
        margin-top: 8px;
    }

    /* ===== CAS CONNECTÉ ===== */
    #panel .upper .wrapper:has(#member_info_header) {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 8px;
    }

    .title-img {
        order: 1;
        float: none !important;
        margin: 0;
    }

    #member_info_header {
        order: 2;
        float: none !important;
        text-align: right;
        flex-shrink: 0;
    }

    .pagination {
        display: flex;
        flex-wrap: wrap;        /* les éléments passent à la ligne si besoin */
        align-items: center;
        gap: 4px;
        padding-top: 6px;
        font-size: 13px;
        justify-content: center;
    }

    /* Numéros de page plus compacts */
    .pagination .pagination_current,
    .pagination a {
        padding: 6px 10px;      /* plus grand pour les doigts */
        min-width: 32px;
        text-align: center;
        display: inline-block;
    }

    /* "Pages :" passe sur sa propre ligne si trop serré */
    .pagination .pages {
        width: 100%;
        padding-right: 0;
        margin-bottom: 4px;
    }

    .drop_go_page input {
        width: 70px !important;
        font-size: 16px;        /* évite le zoom auto sur iOS */
        height: 40px !important;
    }

    .drop_go_page {
        left: 50vw !important;
        transform: translateX(-50%);
        right: auto !important;
        min-width: 250px;
    }

    /* Breadcrumb pagination */
    .pagination_breadcrumb_link {
        position: relative;
    }

    .popup_menu .popup_item {
        min-width: 80px !important;
        white-space: normal;        /* permet le retour à la ligne si besoin */
    }

    /* Cible le tableau search via son select unique */
    select[name="forums[]"],
    select[name="findthreadst"],
    select[name="postdate"],
    select[name="sortby"],
    select[name="visible"] {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        margin-bottom: 8px !important;
        display: block !important;
    }

    /* Inputs search */
    input[name="keywords"],
    input[name="author"],
    input[name="numreplies"] {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }

    /* Force les tr et td en blocs */
    table.tborder:not(.tfixed) tr,
    table.tborder:not(.tfixed) td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* USERCP */

    /* On rend le tr flex en colonne pour empiler les 2 td */
    tr:has(> .usernav-spacer) {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Les 2 colonnes prennent toute la largeur */
    tr:has(> .usernav-spacer) > td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-right: 0 !important;
    }

    /* Menu nav en premier, avec espace en dessous */
    .usernav-spacer {
        margin-bottom: 15px !important;

    }

    /* USERCP action=profile */

    /* Empile les 2 colonnes du formulaire profil */
    tr:has(> td[width="50%"]) {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    tr:has(> td[width="50%"]) > td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fieldsets pleine largeur */
    fieldset.trow2 {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Inputs, selects et textareas pleine largeur */
    fieldset.trow2 input.textbox,
    fieldset.trow2 select,
    fieldset.trow2 textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }

    /* Checkboxes et radios conservent leur taille */
    fieldset.trow2 input[type="checkbox"],
    fieldset.trow2 input[type="radio"] {
        width: auto !important;
    }

    /* Selects date de naissance côte à côte (jour/mois/année) */
    tr:has(> td > select[name="bday1"]) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    /* Ligne thread en flex */
    table.tborder tr.threadlisting {
      display: flex !important;
      align-items: center !important;
      width: 100% !important;
      box-sizing: border-box !important;
      position: relative !important;
    }

    table.tborder tr.threadlisting > td {
      display: none !important;
      box-sizing: border-box !important;
    }

    table.tborder tr.threadlisting > td[width="2%"] {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 28px !important;
      flex-shrink: 0 !important;
    }

    table.tborder tr.threadlisting > td.thread_info {
      display: block !important;
      flex: 1 !important;
      min-width: 0 !important;
      overflow: hidden !important;
      margin-left: 5px !important;
    }

    .thread_status {
        flex-shrink: 0 !important;  /* empêche la compression dans un flex */
        min-width: fit-content !important;
        margin: 0 !important;       /* supprime le margin desktop */
    }

    /* Stats (commentaires) */
    table.tborder tr.threadlisting > td.mobile_modbit {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        padding: 2px 4px !important;
        white-space: nowrap !important;
        width: auto !important;
    }

    table.tborder tr.threadlisting .mobile_hide {
        display: block !important;
        position: absolute !important;
        top: 4px !important;
        right: 4px !important;
        font-size: 15px !important;
        opacity: 0.7 !important;
    }

    /* Checkbox bien dimensionnée */
    table.tborder tr.threadlisting input[type="checkbox"] {
        width: 15px !important;
        height: 15px !important;
        margin: 0 !important;
    }

    /* Compteur commentaires plus petit */
    table.tborder tr.threadlisting .threadbit_stats {
        font-size: 15px !important;
    }

    table.tborder tr.threadlisting .threadbit_stats i {
        font-size: 15px !important;
    }


    /* Table pièces jointes */
    table.tborder tr:has(> td[colspan="3"]),
    table.tborder tr#attachment_3015,
    table.tborder tr:has(> .fileupload) {
        display: block !important;
        width: 100% !important;
    }

    /* Supprime le nowrap des td inline */
    table.tborder td[style*="white-space: nowrap"] {
        white-space: normal !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    /* Zone dropzone pleine largeur */
    #dropzone {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px 0 !important;
        margin: 0 !important;
    }

    /* Boutons en colonne */
    table.tborder td[style*="white-space: nowrap"] .button {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 4px !important;
        text-align: center !important;
    }

    /* Input file pleine largeur */
    input.fileupload {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Container Select2 préfixe */
    .prefix-dropdown {
        background: #0e0e0e !important;
        border: 1px solid #2d2e38 !important;
        margin-right: 10px !important;
    }

    .prefix-dropdown .select2-results {
        background: #0e0e0e !important;
        color: #999 !important;
    }

    .prefix-dropdown .select2-result-label {
        color: #999 !important;
    }

    .prefix-dropdown .select2-highlighted {
        background: #5fb10f !important;
        color: #fff !important;
    }

    /* Tableau sondage - restaure le layout normal */
    table.tborder.tfixed {
        width: 100% !important;
        table-layout: fixed !important;
        box-sizing: border-box !important;
    }

    table.tborder.tfixed tr {
        display: table-row !important;
        width: auto !important;
    }

    table.tborder.tfixed td {
        display: table-cell !important;
        width: auto !important;
        word-break: break-word !important;
    }

    /* Cache poll-inner qui cause le "0" parasite */
    table.tborder.tfixed .poll-inner {
        display: none !important;
    }

    /* Barre de progression */
    table.tborder.tfixed .pollbar {
        overflow: visible !important;
        position: relative !important;
    }

    /* Pourcentage après la barre */
    table.tborder.tfixed .pollbar .percent {
        position: absolute !important;
        left: 100% !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        white-space: nowrap !important;
        padding-left: 6px !important;
        font-size: 11px !important;
        color: #999 !important;
    }

    /* Page MP - Select2 destinataires pleine largeur */
    #s2id_to,
    #s2id_bcc {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Textareas MP pleine largeur */
    #to, #bcc {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Éditeur SCEditor pleine largeur */
    .sceditor-container {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Barre d'outils SCEditor : retour à la ligne */
    .sceditor-toolbar {
        flex-wrap: wrap !important;
    }

    /* Colonne label "Destinataires / Objet" pleine largeur */
    td[width="200"] {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Espace entre les boutons MP */
    div[style*="text-align: center"] .button {
        margin: 4px !important;
    }

    /* Espace entre les boutons Poster Message */
    div[align="center"] .button {
        margin: 4px !important;
    }

    blockquote.mycode_quote {
        margin-inline-start: 0 !important;
        margin-inline-end: 0 !important;
        margin-block-start: 0 !important;
        margin-block-end: 0 !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        margin: 8px auto !important;
    }

    /* Container pleine largeur */
    .white_bg.radiused.box_shadowed {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Form en colonne centrée */
    .white_bg.radiused.box_shadowed form {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Select2 pleine largeur */
    #s2id_username {
        width: 100% !important;
        margin-top: 0 !important;
        order: 1 !important;
    }

    /* Bouton centré en dessous */
    .white_bg.radiused.box_shadowed input[type="submit"] {
        float: none !important;
        margin: 0 !important;
        order: 2 !important;
    }

    form {
      margin: 0 !important;
      padding: 0 !important;
    }

    blockquote.mycode_quote cite {
        display: block !important;
        position: static !important;
        margin: 0 !important;
        padding: 4px 8px !important;
        width: auto !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #shoutbox .data {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    #shoutbox .entry {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #shoutbox .entry .text {
        width: 100% !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    #shoutbox .entry .info {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Cache la ligne tcat */
    table.shoutbox-mod tr:nth-child(2) {
        display: none !important;
    }

    /* Titre avant formulaire banlist */
    table.shoutbox-mod tr:nth-child(3) td:nth-child(1)::before {
        content: "ID des utilisateurs bannis" !important;
        display: block !important;
        padding: 4px 5px !important;
        margin-bottom: 5px !important;
        font-weight: bold !important;
    }

    /* Titre avant formulaire suppression */
    table.shoutbox-mod tr:nth-child(3) td:nth-child(2)::before {
        content: "Supprimer les messages antérieurs à..." !important;
        display: block !important;
        padding: 4px 5px !important;
        margin-bottom: 5px !important;
        font-weight: bold !important;
    }

    table.shoutbox-mod tr:nth-child(3) td:nth-child(1) input[type="submit"] {
        margin-top: 8px !important;
    }

    .navigation {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        overflow: visible !important;
        width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .navigation .active {
        display: inline !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

}

