/* ===== SURIKATE – Style principal (nettoyé et optimisé) ===== */

/* === Variables === */
:root {
    --primary: #2c3e66;
    --primary-dark: #1a2a4a;
    --secondary: #f39c12;
    --secondary-dark: #e67e22;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --light: #f4f6f9;
    --white: #ffffff;
    --gray: #7f8c8d;
    --border: #ddd;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    line-height: 1.6;
}

/* === Navigation === */
.navbar {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

.navbar h1 a:hover {
    opacity: 0.9;
}

.nav-links a {
    color: white;
    margin-left: 1.5rem;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* === Container === */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* === Boutons (générique + dashboard) === */
.btn {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
}

.btn-small {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.2rem;
    transition: all 0.2s;
}

.btn-small:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
}

.btn-dashboard {
    display: inline-block;
    padding: 0.7rem 1.3rem;
    border: none;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    filter: brightness(1.02);
}

.btn-dashboard:active {
    transform: translateY(1px);
}

.btn-eleve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #3498db;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.2s;
}

.btn-eleve:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* === Flash messages === */
.flash {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.flash.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash.danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* === Cartes === */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

/* === Tableaux === */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

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

.zebre tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* === Info (message vide) === */
.info {
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* === Footer === */
footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    color: var(--gray);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

/* === Images SuriKate === */
.suricate-hero {
    text-align: center;
    margin: 1rem 0;
}

.suricate-hero img {
    max-width: 200px;
    height: auto;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.suricate-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.suricate-loupe {
    background-image: url('/projet22/static/image1.png');
}

.suricate-bulle {
    background-image: url('/projet22/static/image2.png');
}

.suricate-stylo {
    background-image: url('/projet22/static/image3.png');
}

.suricate-groupe {
    background-image: url('/projet22/static/image4.png');
}
.btn-note {
    font-size: 1rem;
    padding: 0.2rem 0.5rem;
    margin: 0.2rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.btn-note:hover {
    background: #2980b9;
    transform: scale(1.1);
}
