:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --bg-color: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Hero */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: var(--white);
    padding: 20px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    position: relative;
}

.logo-container img {
    max-width: 100px;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.slogan {
    font-style: italic;
    font-size: 1.2rem;
    color: #93c5fd;
    font-weight: 400;
}

/* Schedule Table */
.schedule-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: -60px;
    border: 1px solid var(--glass-border);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
}

.schedule-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-transform: uppercase;
}

.coordination-badge {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
}

thead {
    background-color: var(--primary-color);
    color: var(--white);
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
}

tr:hover {
    background-color: #f9fafb;
}

.code-couleur {
    font-weight: 600;
    color: #1d4ed8;
}

.poste {
    font-weight: 500;
    color: #4b5563;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.star-name {
    font-weight: 700;
    color: #111827;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Forms */
.form-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, background 0.3s;
}

.btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Hidden Login link */
.hidden-login {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    opacity: 0.05;
    cursor: default;
}

.hidden-login:hover {
    opacity: 0.2;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .schedule-card {
        padding: 15px;
        margin-top: -30px;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    td:before {
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }

    td:nth-of-type(1):before {
        content: "CODE COULEUR";
    }

    td:nth-of-type(2):before {
        content: "POSTE";
    }

    td:nth-of-type(3):before {
        content: "STAR";
    }
}