/* =========================
   GENERAL RESET and BODY
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* =========================
   HEADER and NAVIGATION
   ========================= */
header {
    background-color: #111;
    padding: 20px 0;
    border-bottom: 4px solid #D20000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
nav ul li a.active {
    color: #FFD700 !important;  /*important make it to appear on top of other elements.*/ 
    border-bottom: 2px solid #FFD700;
    text-shadow: 0 0 10px #FFD700;
}

nav ul li a:hover {
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700;
}

/* =========================
   MAIN CONTENT
   ========================= */
main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(210, 0, 0, 0.2);
}

h2, h3 {
    color: #D20000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #FFD700;
    display: inline-block;
}
h1 {
    color: #D20000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

h4 {
    color: #6cffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

h4 a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* =========================
   IMAGES & GALLERY
   ========================= */
img {
    max-width: 100%;
    border-radius: 4px;
}

.galerie-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.galerie-container img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border: 3px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

.galerie-container img:hover {
    transform: scale(1.05);
    border-color: #FFD700;
    filter: grayscale(67%); 
}

/* =========================
   TABLES
   ========================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #fff;
}

th {
    background-color: #D20000;
    color: #ffffff;
    padding: 15px;
    border: 1px solid #444;
    text-transform: uppercase;
}

td {
    padding: 12px;
    border: 1px solid #444;
    background-color: #222;
}

tr:hover td {
    background-color: #333;
}

/* =========================
   FORMS & BUTTONS
   ========================= */
form {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    color: #FFD700;
    font-weight: bold;
}

input, textarea {
    padding: 10px;
    background-color: #000;
    border: 1px solid #555;
    color: #fff;
}

button {
    background-color: #D20000;
    color: #fff;
    padding: 12px 20px;
    border: 2px solid #D20000;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background-color: #000;
    color: #FFD700;
    border-color: #FFD700;
}

/* FOOTER  */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #111;
    border-top: 4px solid #FFD700;
    color: #888;
}
/* =========================
   DELETE BUTTON STYLES
   ========================= */
.img-wrapper {
    position: relative; 
    display: inline-block;
}

.delete-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #D20000; 
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.delete-btn:hover {
    opacity: 1;
    background-color: #ff0000;
    cursor: pointer;
}
/* =========================
   Donnes, show'fix' color and down color too
   ========================= */

.dataTables_length select, .dataTables_filter input {
    background-color: #000 !important;
    color: #ffffff !important;
    border: 1px solid #555;
}

.dataTables_length label, .dataTables_filter label {
    color: #ffffff !important;
}

/*This gonna be for PArtenaires images and etc */

#part2 {
    display: flex;
    flex-direction: column;
}

.person {
    display: flex;
    align-items: center; 
    margin-bottom: 30px;
    gap: 20px; 
}

.person img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #333;
    flex-shrink: 0; 
}

.person-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.text {
    color: #d11414;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.text h4 {
    display: inline; 
    margin: 0 0 0 10px;
    font-size: 0.9em;
}

.text a {
    color: #00d4ff; 
    text-decoration: none;
}

.text a:hover {
    color: #00a8cc;
}

.person p {
    background-color: #1a1a1a; 
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #D20000; 
    border-right: 3px solid #D20000;
    color: #ddd;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
}