/* =============================================
   Design 8 - Bootstrap 5 responsive theme
   One Piece RPG v2
   ============================================= */

:root {
    --op-navy: #122038;
    --op-dark: #1a1a2e;
    --op-gold: #E2AD3B;
    --op-accent: #4a6fa5;   /* bleu-gris sobre pour les bordures structurelles */
    --op-light: #f1f1f1;
    --op-border: #333;
    --op-link: #122038;
}

/* === BODY === */
body {
    background-image: url("background.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

/* === NAVBAR === */
.navbar {
    background-color: rgba(18, 32, 56, 0.95) !important;
    /*border-bottom: 2px solid var(--op-accent);*/
    padding: 0.4rem 1rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    color: #e0e0e0 !important;
    font-weight: bold;
    font-size: 13px;
    padding: 0.5rem 0.75rem;
}

.navbar-nav .nav-link:hover {
    color: var(--op-gold) !important;
}

.navbar-toggler {
    border-color: rgba(160,160,160,0.4);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 1px rgba(160,160,160,0.3);
    outline: none;
}

.navbar-toggler:active {
    border: 0px;
    color: gray;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28160,160,160,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === MAIN LAYOUT === */
#layout-wrapper {
    min-height: calc(100vh - 56px);
    margin-top: 12px;
}

#layout-wrapper .row {
    flex-wrap: nowrap;
}

/* === SIDENAV (style archive) === */
.sidenav8 {
    background-color: rgba(241, 241, 241, 0.97);
    border: 2px solid black;
    border-radius: 4px;
    padding: 0;
    min-height: 100%;
    width: 16.6667%;
    flex-shrink: 0;
    overflow: hidden;
    margin-left:20px;
    box-shadow: 1px 1px 6px 0px rgba(50, 50, 50, 0.69);

}

.sidenav8.collapsed {
    width: 0 !important;
    border-right: none;
}

.sidenav8-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-header8 {
    display: block;
    padding: 5px 8px 5px 34px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    background-color: #e2e2e2;
    background-image: url("menu_onepiece.png");
    background-repeat: no-repeat;
    background-size: auto 25px;
    /*background-position: 4px center;*/
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidenav8-nav li a {
    display: block;
    padding: 5px 8px 5px 12px;
    font-size: 12px;
    font-weight: normal;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.sidenav8-nav li a:hover {
    background-color: #dce6f0;
    color: var(--op-navy);
    text-decoration: none;
}

.sidenav8-perso {
    padding: 4px 0;
    text-align: center;
    font-size: 11px;
    border-bottom: 1px solid #eee;
}

.sidenav8-perso a {
    border-bottom: none !important;
    padding: 4px 8px !important;
}

.livredor8-msg {
    font-size: 12px;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    line-height: 1.4;
}


/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    min-width: 0;
    background-color: rgba(241, 241, 241, 0.97);
    border: 2px solid black;
    border-radius: 6px;
    padding: 15px 20px;
    min-height: 500px;
    box-shadow: 1px 1px 6px 0px rgba(50, 50, 50, 0.69);

}

/* === TYPOGRAPHY === */
a {
    color: var(--op-link);
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    color: var(--op-navy);
    text-decoration: underline;
}

h1, h2, h3, h4, h5 {
    font-family: Arial, courier, tahoma, times;
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
    margin-top: 0;
}

/* === FORMS === */
fieldset {
    border: 1px solid var(--op-navy);
    padding: 10px;
    margin-bottom: 15px;
}

legend {
    border: 1px solid #333;
    background-color: #333;
    color: white;
    font-weight: bold;
    padding: 2px 8px;
    font-size: 13px;
    width: auto;
    float: none;
}

.form-control, .form-select {
    font-size: 13px;
}

.btn-op {
    background-color: var(--op-navy);
    color: white;
    border: none;
    font-weight: bold;
}

.btn-op:hover {
    background-color: #1e3a5f;
    color: white;
}

/* === FOOTER === */
.footer-op {
    background-color: rgba(18, 32, 56, 0.9);
    color: #ccc;
    font-size: 11px;
    padding: 12px 20px;
    /*border-top: 2px solid var(--op-accent);*/
    margin-top: 12px;
    text-align: center;
}

.footer-op a {
    color: #aac4e8;
    font-weight: normal;
}

.footer-op a:hover {
    color: var(--op-gold);
    text-decoration: none;
}

/* === FICHES ANNUAIRE === */
#__fiche_personnage table,
#__fiche_stats table {
    max-width: 100%;
}

#__fiche_presentation,
#__fiche_membres {
    overflow: hidden;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* === GAME-SPECIFIC ELEMENTS === */
.image_personnage {
    border: 1px solid black;
    margin: 1px;
}

.wanted {
    width: 206px;
    height: 277px;
    overflow: hidden;
}

.carte_monde {
    width: 214px;
}

.carte_monde tr { margin: -23px; padding: 0; }
.carte_monde td { margin: 0; padding: 0; }

/* Progress bars for PV/PP/EXP */
.progress {
    height: 20px;
    border-radius: 2px;
    margin: 2px 0 4px 0;
    background-color: #d9d9d9;
    border: 1px solid #bbb;
}

.progress-pv { --bs-progress-bar-bg: #4cae4c; }   /* vert, comme barre_pv.png */
.progress-pp { --bs-progress-bar-bg: #e03e3e; }   /* rouge, comme barre_force.png */
.progress-xp { --bs-progress-bar-bg: #3a8de0; }   /* bleu, comme barre_xpv.png */

/* Chat messages */
.message_tchat {
    background-color: #f1f1f1;
    border: 1px solid #333;
    margin-bottom: 10px;
}

.message_tchat tr:first-child {
    color: white;
    background-color: #333;
    border-bottom: 1px solid #333;
}

.membre_annuaire {
    background-color: #f1f1f1;
    border: 1px solid #333;
    margin-bottom: 10px;
}

.membre_annuaire td { text-align: left; }

/* Forum images */
.forum_img {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
}

/* Role colors */
.admin    { color: #E2AD3B; }
.co-admin { color: #1aabe7; }
.moderateur { color: red; }
.redacteur  { color: rgb(24, 126, 55); }
.defailleur { color: gray; }
.animateur  { color: mediumorchid; }
.mascotte   { color: #9C009C; }
.designer   { color: #875927; }
.fondateur  { color: #1b00a2; }
.banni      { text-decoration: line-through; font-weight: bold; }

/* Tooltips */
a.infobulle { position: relative; }
a.infobulle:hover { background: none; z-index: 500; }
a.infobulle span { display: none; }
a.infobulle:hover span {
    display: inline;
    position: absolute;
    white-space: nowrap;
    top: 0 !important;
    line-height: 13px;
    padding: 2px;
    border: 1px solid black;
    background-color: white;
    opacity: 0.8;
    font-size: 11px;
    font-style: normal;
    font-weight: normal;
    z-index: 500;
}

/* Alerts */
#_radio, #avert {
    text-align: left;
    padding: 3px;
    border: 1px solid red;
    color: red;
    font-size: 12px;
    margin: 5px 0;
}

#bro-yac {
    text-align: left;
    padding: 3px;
    border: 1px solid lightgreen;
    color: green;
    font-size: 11px;
    margin: 10px 0;
}

#pseudolivredor { font-weight: bold; }
.textintro { text-align: justify; }

/* Shortcuts menu */
.sidenav8-nav .raccourci_ligne {
    display: flex;
    align-items: center;
    padding: 2px 6px 2px 28px;
}

.sidenav8-nav .raccourci_ligne a {
    display: inline !important;
    padding: 0 !important;
    font-size: 12px;
    font-weight: normal;
}

.sidenav8-nav .raccourci_ligne a:first-child {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidenav8-nav .raccourci_del {
    flex-shrink: 0;
    color: #cc0000 !important;
    font-size: 14px;
    margin-left: 4px;
    text-decoration: none !important;
    font-weight: normal !important;
    cursor: pointer;
}

.sidenav8-nav .raccourci_edit-btn {
    flex-shrink: 0;
    margin-left: 4px;
    cursor: pointer;
    opacity: 0.6;
    color: black;
}

.sidenav8-nav .raccourci_edit-btn:hover { opacity: 1; }

.sidenav8-nav .raccourci_edit-form {
    display: none;
    align-items: center;
    gap: 3px;
    padding: 2px 6px 2px 10px;
}

.sidenav8-nav .raccourci_edit-form input[type="text"] {
    flex: 1;
    font-size: 11px;
    padding: 1px 3px;
    border: 1px solid #aaa;
    min-width: 0;
}

#btn_add_raccourci { font-weight: bold; font-size: 14px; padding: 0 5px; color: white !important; }

/* select / optgroup */
select {
    background-color: #333;
    color: white;
    font-size: 12px;
}

optgroup { color: white; background-color: #333; }
optgroup[label] { color: white; background: black; }

textarea { color: #122038; }

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #333;
    margin: 1em 0;
    padding: 0;
}

/* Button style for in-game buttons */
.button_perso {
    background: linear-gradient(to bottom, #263F66 5%, #122138 100%);
    border-radius: 2px;
    color: #FFFFFF;
    display: inline-block;
    font-family: arial;
    font-size: 14px;
    font-weight: bold;
    line-height: 28px;
    padding: 0 12px;
    text-decoration: none;
    width: 120px;
}

.button_perso:hover { color: #F1F1F1; }

/* Message alert */
.message_alert { background-color: #DBDBDB; }

/* Offcanvas sidebar on mobile */
.offcanvas-op {
    background-color: #f1f1f1;
    max-width: 260px;
}

/* === SIDEBAR MOBILE ACCORDÉON === */
#mobile-sidebar-wrap {
    background-color: rgba(241, 241, 241, 0.97);
}

.mobile-sidebar-toggle-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 0;
    border-bottom: 1px solid #ccc;
}

#mobile-sidebar-btn {
    width: 48px;
    height: 36px;
    background-color: var(--op-navy);
    border: 2px solid var(--op-accent);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    line-height: 1;
}

#mobile-sidebar-btn:hover {
    background-color: #1e3a5f;
}

.mobile-sidebar {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.mobile-sidebar.open {
    max-height: 3000px;
}

.mobile-sidebar a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: normal;
    color: #122038;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
}

.mobile-sidebar a:hover {
    background-color: #dce6f0;
    text-decoration: none;
}

td {
    text-align: center !important;
    vertical-align: top !important;
}


#fiche_equipage {

}
#__fiche_presentation,#__fiche_membres,#__fiche_navire,#__fiche_defis {
    max-width: 587px;
    margin-left: 151px;
}
#wanted-image {
    height:275px !important;
}
#wanted-image img.img-perso-annuaire {
    margin-bottom: 45px;
}
#wanted-image #titre span,#wanted-image #nom span,#wanted-image #prime span {
   font-size: 14px !important ;
    font-weight: bold;
}

/* Combat - liste d'attaques (design 8 uniquement) */
.attaques-combat-wrap {
    display: grid;
    justify-items: center;
}
#att_perso{
    margin-bottom: 12px;
}
.attaques-combat-col {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 48%;
    text-align: center;
}
.attaques-combat-liste {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;

    padding: 0;
}
.attaques-combat-liste > div {
    box-sizing: border-box;
    text-align: center;
    border: 1px ridge;
    box-shadow: 1px 1px 6px 0px rgba(50, 50, 50, 0.69);
    margin:1px;
}
.attaques-combat-titre {
    font-size: 12px;
    font-weight: bolder;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@media (max-width: 992px) {
    .attaques-combat-col {
        max-width: 100%;
    }
    #main8 {
        margin-inline: 5px;
    }
}
table {

    width:100%
}
.message_tchat table {
    width:100%
}
.message_tchat .membre{
    color:white

}
#__journalisation_annuaire#__journalisation_annuaire#__journalisation_annuaire   {

    @media (max-width: 700px) {
        width:100%;
    }
}