/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-navy: #06324f;
    --brand-blue-dark: #07537f;
    --brand-blue: #0a6ea8;
    --brand-blue-light: #1397c9;
    --brand-cyan: #28b8d8;
    --brand-blue-soft: #eaf6fb;
    --brand-surface: #ffffff;
    --brand-text: #263238;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 58%, var(--brand-cyan) 100%);
    min-height: 100vh;
    color: #333;
    height: 100%;
    overflow: hidden;
}

.container,
.mail {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 76px auto 16px;
    padding: 16px 20px;
    flex: 1;
    height: calc(100vh - 92px);
    height: calc(100dvh - 92px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
    scrollbar-width: none;
}

.container::-webkit-scrollbar,
.mail::-webkit-scrollbar,
.forecast-left-list::-webkit-scrollbar,
.forecast-right-list::-webkit-scrollbar,
.rules-content::-webkit-scrollbar,
.phase-section::-webkit-scrollbar {
    display: none;
}

.mail,
.forecast-left-list,
.forecast-right-list,
.rules-content,
.phase-section {
    scrollbar-width: none;
}

body:not(:has(.navbar)) .container {
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    margin: 16px auto;
}

/* Header page de connexion */
header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Cacher le menu mobile par défaut */
#topnav_hamburger_icon, #topnav_responsive_menu {
    display: none;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--brand-blue);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: var(--brand-blue-soft);
}

/* -----------------------------------------------------------------------------------*/
/* ----------------------------- Bouton d'invitation ---------------------------------*/

#add-button
{
    position: fixed;
    bottom: min(5vw, 5vh);
    right: min(5vw, 5vh);
    width: fit-content;
    font-size: x-large;
    background-color: #082A3A;
    border-radius: 25%;
    color: white;
    aspect-ratio: 1/1;
    padding: 1em;
    z-index: 2;
}

#invite-user
{
    position: fixed;
    bottom: calc(50vh + -7.5em);
    right: calc(50vw + -7.5em);
    width: 15em;
    gap: 1em;
    padding: 2em;
    background-color: #082A3A;
    color: white;
    border-radius: 3%/7%;
    flex-direction: column;
    z-index: 5;
}

#invite-user > label
{
    text-align: center;
}

#invite-user > button
{
    font-size: x-large;
    width: fit-content;
    margin: auto;
    border-radius: 50%;
    aspect-ratio: 1/1;
    border: none;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2),4px 4px 6px rgba(0,0,0,0.5);
}

#send-invit
{
    background-color: white;
    color: #082A3A;
    padding: 0.3em;
}

#close-button
{
    background-color: #d30606;
    color: white;
    position: absolute;
    right: 5%;
    top: 5%;
    padding: 0.15em;
}


.admin-link {
    background: var(--brand-blue-dark);
    color: white !important;
}

.admin-link:hover {
    background: var(--brand-navy) !important;
}

/* -----------------------------------------------------------------------------------*/
/* --------------------------------- Dropdown menu -----------------------------------*/
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 1;
    margin-top: 5px;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Boxes */
.login-box, .form-box {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 500px;
    margin: 0 auto;
}

.form-box {
    max-width: 800px;
}

/* -----------------------------------------------------------------------------------*/
/* ---------------------------------- Formulaires ------------------------------------*/
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-blue);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Boutons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--brand-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 110, 168, 0.34);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9em;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.info-text {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* Links */
.links {
    text-align: center;
    margin-top: 20px;
}

.links a {
    color: var(--brand-blue);
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

/* Dashboard */
.welcome-title {
    text-align: center;
    color: white;
    font-size: 2em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score {
    font-size: 3em;
    color: var(--brand-blue);
    font-weight: bold;
    margin: 0;
}

.rank {
    font-size: 3em;
    color: #28a745;
    font-weight: bold;
    margin: 0;
}

h1, h2, .section-title {
  background: transparent !important;
}

/* Section Matchs à pronostiquer */
.matches-to-predict-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.matches-to-predict-section h2 {
    color: var(--brand-blue);
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid var(--brand-blue);
    padding-bottom: 10px;
}

.matches-predict-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-predict-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.match-predict-card:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 2px 8px rgba(10, 110, 168, 0.16);
}

.match-info-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.match-title {
    font-weight: 600;
    color: #333;
}

.match-date {
    color: #666;
    font-size: 0.85em;
}

.match-predict-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.team-name {
    font-weight: 500;
    color: #333;
    min-width: 80px;
    text-align: center;
    font-size: 0.9em;
}

.score-input-compact {
    width: 45px;
    height: 45px;
    font-size: 1.3em;
    text-align: center;
    border: 2px solid var(--brand-blue);
    border-radius: 6px;
    font-weight: bold;
}

.score-input-compact:focus {
    outline: none;
    border-color: var(--brand-blue-dark);
    box-shadow: 0 0 0 2px rgba(10, 110, 168, 0.2);
}

.separator {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--brand-blue);
    margin: 0 5px;
}

.btn-validate-compact {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-validate-compact:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-validate-compact:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.match-details-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75em;
    color: #666;
    gap: 10px;
}

.deadline-info {
    color: #dc3545;
    font-weight: 600;
}

.no-matches-message {
    text-align: center;
    padding: 40px;
}

.success-box {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 30px;
}

.success-box h3 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.success-box p {
    color: #155724;
    margin-bottom: 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.dashboard-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Tables */
.matches-table, .forecasts-table, .rankings-table, .admin-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.matches-table thead, .forecasts-table thead, .rankings-table thead, .admin-table thead {
    background: var(--brand-blue);
    color: white;
}

.matches-table th, .forecasts-table th, .rankings-table th, .admin-table th,
.matches-table td, .forecasts-table td, .rankings-table td, .admin-table td {
    padding: 15px;
    text-align: left;
}

.matches-table tbody tr:nth-child(even), 
.forecasts-table tbody tr:nth-child(even),
.rankings-table tbody tr:nth-child(even),
.admin-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.matches-table tbody tr:hover,
.forecasts-table tbody tr:hover,
.rankings-table tbody tr:hover,
.admin-table tbody tr:hover {
    background: #e9ecef;
}

.score-highlight {
    background: #fff3cd;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-processed {
    background: #d4edda;
    color: #155724;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

/* Match info */
.match-info {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.match-info h2 {
    color: var(--brand-blue);
    margin-bottom: 15px;
}

/* Forecast form */
.forecast-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.score-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.team-score {
    text-align: center;
}

.team-score label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.team-score input {
    width: 80px;
    height: 80px;
    font-size: 2em;
    text-align: center;
    border: 3px solid var(--brand-blue);
    border-radius: 10px;
}

.vs {
    font-size: 2em;
    font-weight: bold;
    color: var(--brand-blue);
}

/* Rankings */
.ranking-filters {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.current-user {
    background: #fff3cd !important;
}

.you-badge {
    background: var(--brand-blue);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 10px;
}

.rank-cell {
    font-weight: bold;
    font-size: 1.2em;
}

.medal {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

.medal-1 {
    background: gold;
}

.medal-2 {
    background: silver;
}

.medal-3 {
    background: #cd7f32;
}

.score-cell {
    color: var(--brand-blue);
}

/* Rules */
.rules-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.rules-section {
    margin-bottom: 40px;
}

.rules-section h2 {
    color: var(--brand-blue);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--brand-blue);
    padding-bottom: 10px;
}

.rules-section p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.rules-section ul {
    margin-left: 25px;
    line-height: 1.8;
}

.rules-section li {
    margin-bottom: 10px;
}

.highlight {
    background: #fff3cd;
    padding: 15px;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    font-weight: 600;
}

.points-list, .deadline-list {
    list-style: none;
    margin-left: 0;
}

.points-list li, .deadline-list li {
    background: #f8f9fa;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid var(--brand-blue);
}

/* Admin */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-number {
    font-size: 2.5em;
    color: var(--brand-blue);
    font-weight: bold;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.admin-card h3 {
    color: var(--brand-blue);
    margin-bottom: 10px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.forecast-done {
    color: #28a745;
    font-weight: 600;
    margin-right: 10px;
}

.forecast-pending {
    color: #ffc107;
    font-weight: 600;
}

.forecast-missed {
    color: #dc3545;
    font-weight: 600;
}

.locked-badge {
    color: #6c757d;
    font-weight: 600;
}

.deadline-active {
    color: #28a745;
    font-weight: bold;
}

.deadline-passed {
    color: #dc3545;
    font-weight: bold;
}

.deadline-passed-row {
    background: #f8f9fa !important;
    opacity: 0.7;
}

.warning-message {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 4px solid #ffc107;
    font-weight: 600;
}

.forecast-locked {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.team-score-display {
    width: 80px;
    height: 80px;
    font-size: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #6c757d;
    border-radius: 10px;
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.locked-info {
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-blue);
    flex-wrap: wrap;
    gap: 10px;
}

.phase-deadline {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

.phase-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.phase-section h2 {
    color: var(--brand-blue);
    margin: 0;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

/* Footer */
.site-footer {
    background: transparent;
    box-shadow: none;
    width: 0;
    height: 0;
    margin: 0;
    position: static;
}

.footer-container {
    display: none;
}

.site-footer p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.forecast-layout {
    display: flex;
    gap: 24px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.forecast-left,
.forecast-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.forecast-left {
    width: 62%;
}

.forecast-right {
    width: 38%;
}

.forecast-left h2,
.forecast-right h2 {
    margin: 0 0 16px 0;
    flex-shrink: 0;
}

.forecast-left-list,
.forecast-right-list {
    overflow-y: auto;
    min-height: 0;
    padding-right: 6px;
    flex: 1;
}

/* Scroll invisible */
.forecast-left-list::-webkit-scrollbar,
.forecast-right-list::-webkit-scrollbar {
    display: none;
}

.forecast-left-list,
.forecast-right-list {
    scrollbar-width: none;
}

.match-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.match-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.match-phase {
    background: #f3f3f3;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.match-meta p {
    margin: 6px 0;
    font-size: 0.95rem;
}

.inline-forecast-form {
    margin-top: 16px;
}

.score-input-inline {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
}

.team-score-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-score-box input {
    width: 90px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}

.score-separator {
    font-size: 1.4rem;
    font-weight: bold;
    padding-bottom: 8px;
}

.forecast-saved {
    background: #eeeeee;
    border-color: #d0d0d0;
}

.forecast-locked {
    opacity: 0.92;
}

.locked-block {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f8f8;
}

.locked-info {
    margin: 8px 0 0;
    color: #666;
}

.real-score-block {
    margin-top: 16px;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    background: #f7f7f7;
}

.real-score-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #666;
}

.real-score {
    font-size: 2rem;
    font-weight: bold;
}

.deadline-passed {
    color: #c0392b;
    font-weight: bold;
}

.deadline-active {
    color: #27ae60;
    font-weight: bold;
}

.match-row {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.match-row.forecast-saved {
    background: #e9e9e9;
    border-color: #cfcfcf;
}

.match-row-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.match-row-info {
    flex: 1;
    min-width: 240px;
}

.match-row-teams {
    font-size: 1rem;
    margin-bottom: 4px;
}

.vs-inline {
    margin: 0 8px;
    color: #777;
    font-weight: normal;
}

.match-row-meta {
    font-size: 0.9rem;
    color: #666;
}

.match-row-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.team-inline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-inline label {
    font-size: 0.8rem;
    color: #555;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-inline input {
    width: 62px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
    font-size: 0.95rem;
}

.score-separator {
    font-size: 1.2rem;
    font-weight: bold;
    padding-bottom: 8px;
}

.match-row-locked {
    font-size: 0.9rem;
    color: #666;
}

.locked-score {
    font-weight: 600;
}

@media (max-width: 900px) {
    .match-row-main {
        flex-direction: column;
        align-items: stretch;
    }

    .match-row-form {
        justify-content: flex-start;
    }
}

@media (max-width: 1024px) {
    .forecast-layout {
        flex-direction: column;
    }

    .forecast-left,
    .forecast-right {
        width: 100%;
    }
}

.toast-notification{
    position: fixed;
    top: 15%;
    left: 2%;

    padding: 12px 18px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
    color: white;

    z-index: 9999;

    box-shadow: 0 6px 15px rgba(0,0,0,0.25);

    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast-notification.success{
    background: #27ae60;
}

.toast-notification.error{
    background: #e74c3c;
}

.toast-hide{
    opacity: 0;
    transform: translateY(-10px);
}

/* Responsive */
/* @media (max-width: 768px) { */
@media (max-width: 1220px) { 
    
    .container,
    .mail {
        max-width: 800px;
        width: calc(100% - 24px);
        margin: 72px auto 12px;
        padding: 12px;
        height: calc(100vh - 84px);
        height: calc(100dvh - 84px);
    }

        .forecast-layout {
        flex-direction: column;
    }

    .forecast-left,
    .forecast-right {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .score-input {
        flex-direction: column;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .match-predict-inline {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .team-name {
        min-width: auto;
        width: 100%;
    }
    
    .btn-validate-compact {
        width: 100%;
        margin-top: 5px;
    }
    
    .match-info-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .match-details-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .welcome-title {
        font-size: 1.5em;
    }
    
    /* Responsive pour Mes Pronostics */
    .two-columns-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .history-table {
        font-size: 0.75em;
    }
    
    .history-table th,
    .history-table td {
        padding: 8px 5px;
    }
    
    .match-predict-inline {
        flex-wrap: wrap;
    }
    
    .team-name-small {
        min-width: auto;
    }
    
    .btn-validate-small {
        width: 100%;
        margin-top: 5px;
    }

/* Cacher le menu classique */
    #topnav_menu {
        display: none;
    }

    /* Activer l'icône hamburger */
    #topnav_hamburger_icon {
        display: block;
        position: relative;
        width: 33px;
        height: 28px;
        z-index: 100;
        cursor: pointer;
    }

    #topnav_hamburger_icon span {
        display: block;
        position: absolute;
        height: 4px;
        width: 100%;
        background: #333; /* Couleur des barres */
        border-radius: 3px;
        transition: .25s ease-in-out;
    }

    /* Positionnement des 3 barres */
    #topnav_hamburger_icon span:nth-child(1) { top: 0; transform-origin: left top; }
    #topnav_hamburger_icon span:nth-child(2) { top: 12px; transform-origin: left center; }
    #topnav_hamburger_icon span:nth-child(3) { top: 24px; transform-origin: left bottom; }

    /* Animation vers le "X" quand ouvert */
    #topnav_hamburger_icon.open span:nth-child(1) { transform: rotate(45deg); width: 110%; }
    #topnav_hamburger_icon.open span:nth-child(2) { width: 0%; opacity: 0; }
    #topnav_hamburger_icon.open span:nth-child(3) { transform: rotate(-45deg); width: 110%; }

    /* Le menu qui glisse */
    #topnav_responsive_menu {
        display: block;
        position: fixed;
        right: 0;
        top: 0;
        width: 50%;
        height: 100%;
        z-index: 99;
        transform: translate(100%, 0);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        background: #ededed; /* Fond du menu mobile */
    }

    #topnav_responsive_menu.open {
        transform: translate(0, 0);
    }

    #topnav_responsive_menu ul {
        list-style: none;
        padding: 80px 0 0 0;
        text-align: center;
    }

    #topnav_responsive_menu li {
        padding: 15px 0;
    }

    #topnav_responsive_menu a {
        text-decoration: none;
        font-size: 1.2rem;
        color: #333;

    }
    /* Admin */
    .admin-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 645px) {
     
}
