/* === BASE === */
body {
    font-family: 'Century Gothic', sans-serif;
    background-color: #f7f5f4;
    color: #181614;
    margin: 0;
    padding: 0;
}

/* === TITRES === */
h1,
h2,
h3,
h4 {
    color: #181614;
    font-weight: bold;
}

/* === BOUTONS === */
.btn-primary {
    background-color: #ED694B;
    border-color: #ED694B;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #b6553c;
    border-color: #b6553c;
    color: #ffffff;
}

.btn-secondary {
    background-color: #00ADB1;
    border: none;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #008b8e;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #181614;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: #f0f0f0;
    color: #ED694B;
    text-decoration: none;
}

.btn-outline-white i {
    margin-right: 10px;
    color: #ED694B;
    font-size: 16px;
}


/* === FORMULAIRES === */
form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid #DFDFDC;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.form-group label {
    font-weight: bold;
    color: #181614;
}

.form-control {
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: none;
    padding: 10px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #ED694B;
    outline: none;
}

.form-group label i.fa-lock {
    margin-left: 5px;
    color: #aaa;
    font-size: 0.85em;
}

form input:disabled {
    background-color: #f7f5f4;
    color: #555;
    border-color: #ddd;
}


/* === CARTES === */
.card {
    background-color: #fff;
    border: 1px solid #DFDFDC;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card h4 {
    color: #ED694B;
    font-weight: bold;
    margin-bottom: 15px;
}

/* === LIENS === */
a {
    color: #ED694B;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #b6553c;
}

/* === HEADER / FOOTER === */
header,
footer {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #DFDFDC;
}

footer {
    border-top: 1px solid #DFDFDC;
    color: #999;
}

/* === SECTIONS / ZONES NEUTRES === */
.section {
    background-color: #f7f5f4;
    padding: 40px 0;
}

/* Dashboard plus léger façon "QUIÉTUDE/SÉRÉNIS" */
.dashboard-card {
    background-color: #ffffff;
    border: 1px solid #dfdfdc;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-card:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.dashboard-card i {
    font-size: 50px;
    color: #DC8262;
    margin-bottom: 10px;
}

.dashboard-card h5 {
    color: #DC8262;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

.dashboard-card p {
    margin: 0;
    font-size: 13px;
    color: #7a6b65;
}

/* === HEADER FIXE === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #dfdfdc;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header-info {
    font-weight: bold;
    color: #181614;
}

.logout-btn {
    background-color: #ED694B;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #b6553c;
}

/* === FOOTER FIXE === */
footer {
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #dfdfdc;
    padding: 10px 20px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* === SIDEBAR === */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 18Opx;
    background-color: #ffffff;
    border-left: 1px solid #dfdfdc;
    height: calc(100% - 80px);
    padding: 20px;
    z-index: 900;
}

.sidebar a {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ED694B;
}

.sidebar a:hover {
    text-decoration: underline;
    color: #b6553c;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ED694B;
    font-size: 20px;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        right: -220px;
        top: 80px;
        height: calc(100% - 80px);
        background-color: #ffffff;
        width: 200px;
        transition: right 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .menu-toggle {
        display: inline-block;
    }
}

.breadcrumb-bar {
    margin-bottom: 20px;
    font-size: 14px;
    color: #999;
}

.breadcrumb-bar a {
    color: #ED694B;
    font-weight: bold;
    text-decoration: none;
}

.breadcrumb-bar a:hover {
    text-decoration: underline;
}

.content-wrapper {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* TABLEAU - STYLE INSTINCT PROTECTION */
.table {
    background-color: #fff;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

/* En-tête */
.table thead th {
    background-color: #ED694B;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 12px 15px;
    vertical-align: middle;
    text-align: center;
}

/* Corps du tableau */
.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
    color: #181614;
    font-size: 15px;
    background-color: #fff;
}

/* Alternance des lignes */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f7f5f4;
}

/* Supprimer le bord au bas */
.table tr:last-child td {
    border-bottom: none;
}

/* Hover sur ligne */
.table-hover tbody tr:hover {
    background-color: #f1eeed;
}

/* Arrondir les coins du tableau */
.table thead th:first-child {
    border-top-left-radius: 8px;
}

.table thead th:last-child {
    border-top-right-radius: 8px;
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Aligner l'en-tête sur la gauche sauf ID */
.table thead th:not(:first-child) {
    text-align: left;
}


/* bouton dans le tableau */
.table .btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.table .btn-primary {
    background-color: #ED694B;
    border: none;
}

.table .btn-secondary {
    background-color: #00ADB1;
    color: #fff;
    border: none;
}

.table .btn-outline-white {
    background-color: #fff;
    border: 1px solid #ccc;
}

.custom-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    margin-top: 10px;
}

.custom-file-upload label {
    background-color: #ED694B;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.custom-file-upload label:hover {
    background-color: #b6553c;
}

.custom-file-upload input[type="file"] {
    display: none;
}

.custom-file-upload .file-name {
    font-size: 14px;
    color: #181614;
    font-weight: 500;
}