/* ===================================
   THÈME PERSONNALISÉ PROFESSIONNEL
   Design moderne et harmonisé
   =================================== */

/* ===== PALETTE DE COULEURS ===== */
:root {
    --primary-color: #636e72;
    --primary-dark: #2d3436;
    --primary-light: #95a5a6;
    --secondary-color: #2c3e50;
    --accent-color: #5a6c7d;
    --accent-hover: #485460;
    --success-color: #27ae60;
    --success-hover: #229954;
    --text-dark: #2c3e50;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --bg-lighter: #ffffff;
    --border-color: #dfe6e9;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-strong: rgba(0, 0, 0, 0.12);
}

/* ===== STYLES GLOBAUX ===== */
body {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
}

#container {
    background: #f5f6fa;
    width: 960px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ===== HEADER MODERNE ===== */
#header {
    background: linear-gradient(135deg, #2d3436 0%, #1e272e 100%);
    position: relative;
    height: 80px;
    padding: 0 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #485460;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #636e72, #95a5a6, #636e72);
}

#logo {
    height: 100%;
    transition: transform 0.3s ease;
}

#logo:hover {
    transform: scale(1.05);
}

#header #logo img {
    max-height: 70px;
    max-width: 400px;
    width: auto;
    height: auto;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#header p {
    color: #ffffff;
    margin: 0;
    padding: 15px 0 0;
    font-size: 13px;
}

#header p a {
    color: #ffffff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

#header p a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-bottom: none;
    margin-bottom: 1px;
}

/* ===== NAVIGATION MODERNE ===== */
#nav {
    margin: 0;
    padding: 0;
    height: 50px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#nav li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-block;
}

#nav li a {
    display: inline-block;
    height: 50px;
    line-height: 50px;
    padding: 0 25px;
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: none !important;
}

#nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#nav li a:hover,
#nav li a.active {
    color: var(--primary-color);
    background: rgba(99, 110, 114, 0.08);
}

#nav li a:hover::after,
#nav li a.active::after {
    width: 80%;
}

/* ===== BOUTONS MODERNES ===== */
.button,
.button:visited {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 30px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(99, 110, 114, 0.3);
    text-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: none !important;
    margin-bottom: 1px !important;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 110, 114, 0.4);
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(99, 110, 114, 0.3);
}

.green.button,
.green.button:visited {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-hover) 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.green.button:hover {
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.blue.button,
.blue.button:visited {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(99, 110, 114, 0.3);
}

.blue.button:hover {
    box-shadow: 0 6px 20px rgba(99, 110, 114, 0.4);
}

/* ===== CONTENU PRINCIPAL ===== */
#content {
    padding: 30px;
    min-height: 400px;
}

#landing_page {
    padding: 20px 0;
}

/* ===== BARRE LATÉRALE (SIDEBAR) ===== */
.sidebar {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    border: 1px solid #e9ecef;
}

.sidebar .front-page-button {
    margin-bottom: 20px;
}

.sidebar .front-page-button p {
    margin-bottom: 15px;
}

.sidebar .content {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.sidebar section {
    margin-bottom: 25px;
}

.sidebar .header {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar div a {
    color: var(--primary-dark);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.sidebar div a:hover {
    color: var(--primary-color);
    padding-left: 10px;
    border-bottom: none;
    margin-bottom: 1px;
}

/* ===== CONTENU PRINCIPAL ===== */
.main-content {
    padding: 20px;
}

.thread-body {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 8px var(--shadow);
}

.thread-body h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ===== FORMULAIRE DE RECHERCHE ===== */
.search-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.search-form input[type="text"] {
    width: 70%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 110, 114, 0.1);
}

.search-form button {
    padding: 15px 30px;
    border-radius: 0 8px 8px 0;
    margin-left: -5px;
}

/* ===== CATÉGORIES VEDETTES ===== */
.featured-category {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.featured-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px var(--shadow-strong);
    border-color: var(--primary-color);
}

.featured-category .category-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 15px 0 20px 0;
}

.featured-category i {
    color: var(--primary-color);
}

.article-headline {
    margin: 15px 0;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.article-headline:hover {
    background: rgba(99, 110, 114, 0.05);
    transform: translateX(5px);
}

.article-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.article-title a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 15px;
}

.article-title a:hover {
    color: var(--primary-color);
    border-bottom: none;
}

.article-teaser {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
}

/* ===== LIENS ===== */
a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    margin-bottom: 0;
}

h1 {
    color: #2c3e50;
    font-weight: 600;
}

/* ===== MESSAGES D'ALERTE MODERNES ===== */
#msg_notice,
.notice_bar {
    margin: 0 0 20px 0;
    padding: 15px 20px 15px 50px;
    border-radius: 8px;
    border: none;
    background: #d4edda url('../assets/default/images/icons/ok.png') 15px 50% no-repeat;
    color: #155724;
    box-shadow: 0 2px 8px rgba(21, 87, 36, 0.1);
}

#msg_warning,
.warning_bar {
    margin: 0 0 20px 0;
    padding: 15px 20px 15px 50px;
    border-radius: 8px;
    border: none;
    background: #fff3cd url('../assets/default/images/icons/alert.png') 15px 50% no-repeat;
    color: #856404;
    box-shadow: 0 2px 8px rgba(133, 100, 4, 0.1);
}

#msg_error,
.error_bar {
    margin: 0 0 20px 0;
    padding: 15px 20px 15px 50px;
    border-radius: 8px;
    border: none;
    background: #f8d7da url('../assets/default/images/icons/error.png') 15px 50% no-repeat;
    color: #721c24;
    box-shadow: 0 2px 8px rgba(114, 28, 36, 0.1);
}

/* ===== FOOTER ===== */
#footer {
    background: linear-gradient(135deg, #2d3436 0%, #1e272e 100%);
    padding: 25px 30px;
    margin-top: 30px;
    border-top: 3px solid #636e72;
    text-align: center;
    color: #95a5a6;
    font-size: 13px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

#footer a {
    color: #bdc3c7;
    font-weight: 500;
}

#footer a:hover {
    color: #ecf0f1;
    border-bottom-color: #95a5a6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    #container {
        width: 95%;
        margin: 10px auto;
    }
}

@media (max-width: 768px) {
    #header {
        height: auto;
        padding: 15px;
    }
    
    #nav {
        height: auto;
    }
    
    #nav li {
        display: block;
    }
    
    #nav li a {
        height: 40px;
        line-height: 40px;
    }
    
    .sidebar {
        margin-top: 20px;
    }
    
    .search-form input[type="text"] {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .search-form button {
        width: 100%;
        border-radius: 8px;
        margin-left: 0;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content,
.sidebar {
    animation: fadeIn 0.5s ease-out;
}

/* ===== SCROLLBAR PERSONNALISÉE ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
