* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 15px 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.breadcrumb a {
    color: #4299e1;
    text-decoration: none;
}

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

.user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header h1 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.header p {
    color: #666;
    font-size: 1.1em;
}

.login-section {
    background: white;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 50px auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.login-form input[type="password"] {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    width: 300px;
    transition: border-color 0.3s;
}

.login-form input[type="password"]:focus {
    outline: none;
    border-color: #4299e1;
}

.btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-logout {
    background: #e53e3e;
    font-size: 14px;
    padding: 10px 20px;
}

.btn-logout:hover {
    background: #c53030;
}

.btn-home {
    background: #38a169;
    font-size: 14px;
    padding: 10px 20px;
}

.btn-home:hover {
    background: #2f855a;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #4299e1;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.search-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.search-form input[type="text"] {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #4299e1;
}

.filter-select {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.letter-btn {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.letter-btn:hover {
    background: #f7fafc;
    border-color: #4299e1;
}

.letter-btn.active {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

.letter-btn.all {
    background: #38a169;
    color: white;
    border-color: #38a169;
}

.metiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.metier-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.metier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.metier-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.rating-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
}

.stars-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.forbidden-symbol {
    font-size: 28px;
    color: #e53e3e;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
}

.forbidden-symbol:hover {
    transform: scale(1.1);
    color: #c53030;
}

.forbidden-symbol.active {
    color: #c53030;
    text-shadow: 0 0 8px rgba(197, 48, 48, 0.5);
}

.stars {
    display: flex;
    gap: 6px;
}

.star {
    font-size: 28px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.star.active {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.star:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.metier-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-small {
    padding: 10px 16px;
    font-size: 14px;
    flex: 1;
}

.btn-view {
    background: #38a169;
}

.btn-view:hover {
    background: #2f855a;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fefefe;
    margin: 2vh auto;
    /* petit offset visuel ; mets 0 si tu veux coller */
    padding: 0;
    border-radius: 15px;

    /* >>> plein écran dispo <<< */
    width: 95vw;
    /* au lieu de 95% */
    height: 95vh;
    max-width: none;
    /* enlève la contrainte 1200px */
    max-height: none;

    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.modal-header {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.close {
    color: #666;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

.modal-body {
    flex: 1;
    display: grid;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.modal-body iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.hidden {
    display: none;
}

.evaluation-date {
    font-size: 0.85em;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.modification-date {
    font-size: 0.8em;
    color: #4299e1;
    margin-top: 4px;
    font-style: italic;
}

.no-evaluation {
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

.loading {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #666;
}

.error {
    background: #fed7d7;
    color: #c53030;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pagination-btn {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.pagination-btn:hover {
    background: #f7fafc;
    border-color: #4299e1;
}

.pagination-btn.active {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

.pagination-btn:disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.results-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    color: #666;
}

.note-indicator {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.note-0 {
    background: #fed7d7;
    color: #c53030;
}

.note-1 {
    background: #feebc8;
    color: #c05621;
}

.note-2 {
    background: #fef5e7;
    color: #d69e2e;
}

.note-3 {
    background: #f0fff4;
    color: #38a169;
}

.note-4 {
    background: #e6fffa;
    color: #319795;
}

.note-5 {
    background: #e6f3ff;
    color: #3182ce;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .search-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .metiers-grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .alphabet-nav {
        gap: 5px;
    }

    .letter-btn {
        padding: 6px 8px;
        min-width: 32px;
        font-size: 14px;
    }

    .modal-content {
        width: 98vw;
        margin: 1vh auto;
        height: 98vh;
        max-width: none;
    }

    .modal-body {
        flex: 1;
        overflow: hidden;
        display: flex;
    }
}