/* ==========================================================================
   1. VARIABLES DE THÈME & POLICES
   ========================================================================== */
:root {
    --win-blue: #000080;
    --win-yellow: #FFFF00;
    --win-light-blue: #BDD5FB;
    --win-green: #008000;
    --win-white: #FFFFFF;
    --win-light-grey: #E0E0E0;
    --max-menu-width: 500px;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* 1. On verrouille la racine de l'application sur mobile */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100dvh; /* Force le body à faire PILE la taille de l'écran */
    overflow: hidden; /* Empêche TOUTE la page de scroller globalement */
	background-color: var(--win-light-grey);
}

/* 2. On configure la page principale */
.app-page { /* ou le sélecteur de votre page principale */
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%; /* Prend le 100dvh du body */
}

/* 3. C'est le CONTENU qui doit scroller si le menu est trop grand */
.app-content {
    flex: 1; /* Prend tout l'espace disponible entre le header et le footer */
    overflow-y: auto; /* Le scroll se fait UNIQUEMENT ici si besoin */
    padding: 15px;
    -webkit-overflow-scrolling: touch; /* Rend le scroll fluide sur smartphone */
}

/* 4. Le footer, solide comme un roc */
.app-footer {
    flex-shrink: 0; /* Interdiction formelle au footer de se rétrécir ou de disparaître */
    background-color: var(--win-green);
    color: var(--win-white);
    text-align: center;
    padding: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}
/* Structure de la page SPA (distribue Header, Content, Footer) */
/* 1. Le Header devient le chef d'orchestre avec Flexbox */
.app-header {
    background-color: var(--win-green);
    color: var(--win-white);
    padding: 12px 15px;
    display: flex;
    align-items: center;       /* Centre VERTICALEMENT tout ce qui est dedans */
    justify-content: center;   /* Centre le titre au milieu */
    position: relative;
    min-height: 50px;          /* Donne une hauteur minimale propre au bandeau */
}

/* 2. Le titre reste indépendant */
.header-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
	align-items: center;
}

/* 3. Le bouton retour respire enfin */
.btn-back {
    position: absolute;
    left: 15px;
    /* On enlève les top: 50% et transform qui provoquaient l'étirement */
    
    background-color: white;
    color: var(--win-green);
    border: 1px solid var(--win-green);
    border-radius: 6px;
    
    /* On gère la taille proprement avec le padding interne */
    padding: 6px 12px; 
    
    /* Flexbox INTERNE au bouton pour aligner l'icône et le texte sur la même ligne */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Espace parfait de 6px entre la flèche et le mot "Retour" */
    
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1; /* Empêche le texte de sauter ou de se décaler */
}

/* Espacement et alignement de l'icône */
.btn-back-icon {
    font-size: 0.9rem;
}

/* Effet tactile au clic */
.btn-back:active {
    background-color: #e6e6e6;
}

.btn-list {
	background-color: var(--win-green); 
	margin: 0 !important; 
	width: 36px !important; 
	height: 36px !important; 
	border: 0px solid white;
	border-radius: 8px;
	display: inline-flex !important; 
	align-items: center !important; 
	justify-content: center !important;
	cursor: pointer;
	box-shadow: 3px 3px #DCDCDC;
}
.btn-list-delete {
	background-color: red; 
	margin: 0 !important; 
	width: 36px !important; 
	height: 36px !important; 
	border: 0px solid white;
	border-radius: 8px;
	display: inline-flex !important; 
	align-items: center !important; 
	justify-content: center !important;
	cursor: pointer;
	box-shadow: 3px 3px #DCDCDC;
}
.btn-list-group {
	background-color: white; 
	margin: 0 !important; 
	width: 36px !important; 
	height: 36px !important; 
	border: 0px solid white;
	border-radius: 8px;
	display: inline-flex !important; 
	align-items: center !important; 
	justify-content: center !important;
	cursor: pointer;
	box-shadow: 3px 3px #DCDCDC;
}

.btn-edit {
	background-color: transparent; 
	margin: 0 !important; 
	width: 32px !important; 
	height: 32px !important; 
	border: 0px solid white;
	border-radius: 8px;
	display: inline-flex !important; 
	align-items: center !important; 
	justify-content: center !important;
	cursor: pointer;
	box-shadow: 3px 3px #DCDCDC;
}

/* Alignement centré spécifique à la page d'accueil */
.content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.main-logo {
    margin: 20px 0;
}

/* Menu de navigation (Look de l'image 1) */
.menu-list {
    width: 100%;
    max-width: 500px; /* Évite que le menu soit trop large sur PC */
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #008000;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background-color: #f5f5f5;
}

.menu-icon {
    font-size: 1.2rem;
    margin-right: 15px;
}

.menu-text {
    flex: 1;
    color: #008000;
    font-weight: bold;
	font-size: 1.3rem;
}

.menu-arrow {
    color: #008000;
    font-weight: bold;
}
.menu-arrow img {
    width: 28px;
    height: 28px;
    display: block;
}

table {
    border: 1px solid var(--win-green);
    border-collapse: collapse;
}

.logo-container, .menu-container {
    width: 100%;
    max-width: var(--max-menu-width);
}

.logo-container {
    text-align: left;
    margin-bottom: 10px;
}

.my-custom-icon {
    width: 32px !important;  
    height: 32px !important; 
    margin-right: 12px !important;
    position: static !important;
    display: block !important;
    padding: 0 !important;
}

/* Texte Écrans infos */
.about-title { color: var(--win-blue) !important; font-weight: bold !important; display: block; }
.about-subtitle { color: var(--win-blue) !important; font-size: 0.85em !important; display: block; }

/* ==========================================================================
   6. GRILLES COMPACTES (TABULATOR)
   ========================================================================== */
.tabulator .tabulator-header .tabulator-col {
    background-color: var(--win-green) !important;
    color: var(--win-white) !important;    
    font-weight: 500;
}

.tabulator .tabulator-tableholder .tabulator-cell {
    background-color: white !important;
    color: var(--win-green) !important;
    font-weight: 500;
}

.tabulator .tabulator-row.tabulator-selected,
.tabulator .tabulator-row.tabulator-selected .tabulator-cell,
.tabulator .tabulator-row.tabulator-selected:hover,
.tabulator .tabulator-row.tabulator-selected:hover .tabulator-cell {
    background-color: var(--win-light-grey) !important;
    color: var(--win-green) !important;
    font-weight: bold; 
}

.tabulator-row {
    min-height: auto !important;
}

.tabulator-row .tabulator-cell {
    padding: 6px 4px !important;
    line-height: 1.3 !important;
}

/* Style de base du Dialog */
.custom-modal {
    border: none;
    border-radius: 8px;
    padding: 0;
    width: 90%;
    max-width: 450px; /* Équivalent à votre boxWidth: '40%' sur PC */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
}

/* Ne cible QUE les cellules du tableau des scores */
/* =========================================================
   Style Tabulator spécifique pour #scores-container
   ========================================================= */

/* =========================================================
   CSS 100% ISOLÉ ET SÉCURISÉ POUR #scores-container
   ========================================================= */

/* Conteneur principal */
#scores-container {
    border: 2px solid #008000;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

/* En-tête vert */
#scores-container .custom-card-header {
    background-color: #008000;
    color: #ffffff;
    font-weight: bold;
    padding: 10px;
    font-size: 14px;
}

/* Zone déroulante globale */
#scores-container .custom-card-body {
    overflow-y: auto;
    flex: 1;
}

/* Accordéon par Mois (<details> / <summary>) */
#scores-container .month-group {
    border-bottom: 1px solid #e0e0e0;
}

#scores-container .month-header {
    background-color: #f8f8f8;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #eee;
}

/* Container de la liste */
#scores-container .month-cards {
    display: flex;
    flex-direction: column;
}

/* Ligne d'un parcours (Carte) */
#scores-container .score-card-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s ease;
}

#scores-container .score-card-item:hover {
    background-color: #f5f5f5;
}

#scores-container .score-card-item.selected {
    background-color: #e0e0e0 !important;
}

/* Lignes de texte à l'intérieur de la carte */
#scores-container .score-card-line {
    font-size: 13px;
    line-height: 1.35;
    color: #333333;
}

#scores-container .score-card-line.date {
    color: #008000;
    font-weight: 500;
}

#scores-container .score-card-line.photo {
    margin-top: 2px;
}

/* Le pseudo-élément ::backdrop gère le fond grisé derrière le popup de manière native ! */
.custom-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px); /* Optionnel : floute légèrement l'arrière-plan */
}

/* En-tête du popup */
.modal-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}

.modal-header i {
    font-size: 1.3rem;
}

/* Corps du texte */
.modal-body {
    padding: 20px;
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
}

/* Pied de page et Bouton */
.modal-footer {
    padding: 10px 20px;
    text-align: right;
    border-top: 1px solid #eee;
}

.btn-modal {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    color: white;
}

/* --- Variantes de Thèmes (Couleurs) --- */

/* Thème Vert (Success / Info) */
.modal-green .modal-header { color: #2ecc71; }
.modal-green .btn-modal { background-color: #2ecc71; }
.modal-green .btn-modal:active { background-color: #27ae60; }

/* Thème Orange (Warning) */
.modal-orange .modal-header { color: #f39c12; }
.modal-orange .btn-modal { background-color: #f39c12; }
.modal-orange .btn-modal:active { background-color: #d35400; }

/* Thème Rouge (Error) */
.modal-red .modal-header { color: #e74c3c; }
.modal-red .btn-modal { background-color: #e74c3c; }
.modal-red .btn-modal:active { background-color: #c0392b; }

/* Style par défaut de votre bouton */
#btn-input-delete {
    background-color: #e74c3c; /* Rouge par exemple */
    color: white;
    opacity: 1;
    cursor: pointer;
}

/* Le CSS détecte TOUT SEUL si le bouton a l'attribut disabled="true" */
#btn-input-delete:disabled {
    background-color: #ccc;    /* Grisé */
    opacity: 0.5;              /* Semi-transparent */
    cursor: not-allowed;       /* Curseur "interdit" au survol sur PC */
}

/* Conteneur global d'un groupe (pour espacer Logiciel et Support) */
.info-group {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px; /* Crée l'espace entre les deux blocs */
}

/* L'en-tête grisé (Le fameux Divider de JQM) */
.list-header {
    background-color: #f0f0f0; /* Fond gris clair */
    color: #008000;            /* Texte vert (ou var(--app-navy) selon votre choix) */
    font-weight: bold;
    font-size: 0.85rem;
    padding: 10px 15px;
    border-top-left-radius: 8px;  /* Arrondit le haut du bloc */
    border-top-right-radius: 8px;
    border-bottom: 2px solid #008000; /* Ligne de séparation sous le titre */
    letter-spacing: 0.5px;
}

/* La carte blanche contenant les lignes */
.info-card {
    background: white;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Le conteneur de la ligne (RE-NETTOYÉ ET FORCÉ) */
.info-item {
    display: flex !important; /* Le !important sécurise contre les restes de jQuery */
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.info-item:last-child {
    border-bottom: none;
}

/* Effet de survol/clic sur la ligne */
.info-item:hover, .info-item:active {
    background-color: #f9f9fc;
}

/* L'icône de gauche */
.info-icon {
    margin-right: 15px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.info-icon img {
    width: 32px;
    height: 32px;
    display: block;
}

/* Le bloc texte au milieu */
.info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1; /* Permet au texte de prendre la place nécessaire sans pousser l'icône de droite */
}

.info-text h4 {
    color: #008000;
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0 0 3px 0;
}

.info-text p {
    color: #008000;
    font-size: 0.85rem;
    margin: 0;
}

/* L'icône d'action de droite (Le chevron bleu) */
.info-action {
    margin-left: auto !important; /* Force l'alignement tout à droite */
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-left: 10px;
}

/* L'icône d'action de droite (le chevron bleu) */
.info-action img {
    width: 24px !important;   /* Force la largeur à 32px */
    height: 24px !important;  /* Force la hauteur à 32px */
    max-width: none !important; /* Empêche un autre CSS de la brider */
    display: block;
}

/* Alignement de la barre d'outils en haut */
.form-actions-top {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 450px;
    margin: 15px auto;
}

/* Vos boutons d'action (S'adaptent à la taille de vos images add16/edit16) */
.btn-action {
    background-color: #00007d; /* Votre bleu marine win-blue */
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-action:active {
    background-color: #00005a;
}

/* Le conteneur du formulaire (la carte blanche de la section) */
.form-card {
    padding: 18px;
    box-sizing: border-box;
}

/* Structure verticale de chaque champ (Label au-dessus de l'Input) */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    text-align: left; /* Aligne les labels bien à gauche */
}

.form-group:last-child {
    margin-bottom: 0; /* Pas d'espacement inutile sous le textarea */
}

/* Les Labels */
.form-group label {
    color: var(--win-blue);
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

/* Les Inputs (Poids, Date, IMC, Textarea) */
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    box-sizing: border-box;
    color: #008000;
}

/* Alignement à droite pour les chiffres comme sur votre version d'origine */
.form-group input[type="number"] {
    text-align: right;
}

/* Style de l'IMC lorsqu'il est désactivé (disabled) */
.form-group input:disabled {
    background-color: #f2f2f2;
    border: 1px dashed #ccc;
    color: #777;
    cursor: not-allowed;
}

/* Textarea Notes */
.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* --- BARRE DE FILTRES --- */
.analysis-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.analysis-filter-bar label {
    color: var(--win-green);
	background-color: white;
    font-size: 1.1rem;
    font-weight: bold;
    white-space: nowrap; /* Évite que le mot "Période :" passe sur deux lignes */
}

/* Alignement des listbox sur la même ligne */
.filter-select-container {
    display: flex;
    gap: 10px;
    flex-grow: 1; /* Prend l'espace disponible restant */
}

.filter-select-container select {
    flex: 1; Distribue l'espace équitablement entre les deux listbox
    padding: 8px 10px;
    font-size: 1rem;
    border: 1px solid var(--win-green);
    border-radius: 6px;
    background-color: white;
    color: var(--win-green);
    height: 38px; Hauteur cohérente avec vos boutons
    cursor: pointer;
}

/* --- SYSTEME D'ONGLETS (TABS) --- */
.tabs-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* En-tête des onglets */
.tabs-header {
    display: flex;
    background-color: white;
    border-bottom: 2px solid #e1e1e8;
}

.tab-btn {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    color: #008000;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Onglet actif */
.tab-btn.active {
    color: white;
    background-color: #008000;
    border-bottom: 3px solid #008000;
    margin-bottom: -2px; /* Superpose la bordure active sur la bordure du header */
}

/* Contenu des onglets */
.tabs-content {
    padding: 15px;
}

.tab-pane {
    display: none; /* Cache tous les onglets par défaut */
}

.tab-pane.active {
    display: block; /* Affiche l'onglet actif */
}

/* --- CONTENEUR DES GRAPHIQUES (Crucial pour Chart.js) --- */
.chart-container {
    position: relative;
    width: 100%;
    height: 300px; /* Hauteur idéale fixe mais responsive pour mobile et PC */
}

/* --- 1. CONTENEUR EN LIGNE (Alignement strict) --- */
.form-group-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligne le contenu à gauche */
    gap: 12px;                  /* Espace fixe entre label et début du champ */
    margin-bottom: 6px !important;
    width: 100%;
    box-sizing: border-box;
}

/* --- 2. LABELS (Largeur fixe obligatoire pour aligner les champs) --- */
.form-group-inline label {
    width: 100px;               /* Tous les labels font EXACTEMENT 100px */
    flex-shrink: 0;             /* Ne se réduit jamais */
    margin-bottom: 0 !important;
    text-align: left;
    color: #374151 !important;  /* Couleur sobre et moderne */
    font-weight: 600;
    font-size: 14px;
	/* color: #008000; */
}

/* --- 3. CHAMPS (Remplissent TOUT le reste de la ligne) --- */
.form-group-inline input, 
.form-group-inline select,
.form-group-inline textarea {
    flex: 1;                    /* Le champ démarre immédiatement après les 100px du label */
    min-width: 0;
    width: 100%;                /* S'étire jusqu'au bord droit de la carte */
    box-sizing: border-box;
    padding: 6px 10px;
    height: 38px;
    min-height: 38px;
    font-size: 14px;
    
	color: #008000;
	
    /* Design moderne dépoussiéré */
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;         /* Coins arrondis modernes */
    transition: all 0.2s ease-in-out;
}

/* Focus propre */
.form-group-inline input:focus, 
.form-group-inline select:focus,
.form-group-inline textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #10b981;       /* Bordure verte moderne au clic */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* --- 4. OPTIMISATION DU SELECT --- */
.form-group-inline select {
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2310b981%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
    padding-right: 28px;
}

/* --- 5. TEXTAREA (Notes) --- */
.form-group-inline textarea {
    height: 42px !important;
    min-height: 42px !important;
    resize: vertical;
}

/* --- 6. CARTES COMPACTES AVEC OMBRE MODERNE --- */
.form-card-compact {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04); /* Ombre légère très propre */
}

/* --- 3. Style spécifique pour les champs NON-MODIFIABLES (Disabled / Readonly) --- */
.form-group-inline input:disabled,
.form-group-inline input[readonly],
.form-group-inline select:disabled {
    background-color: #e2e8f0 !important; /* Un gris plus soutenu (la nuance de l'image) */
    border-color: #cbd5e1 !important;    /* Bordure légèrement plus sombre */
    color: #008000 !important;          /* Garde tes valeurs en vert, c'est ton thème ! */
    opacity: 0.8;                       /* Ajoute un effet "estompé" */
    cursor: not-allowed;                 /* Curseur "interdit" au survol sur PC */
    box-shadow: none !important;         /* Enlève toute ombre ou effet de relief */
}

/* Style générique des boutons d'action */
.btn-vanilla-action {
    width: 100%; /* Prend toute la largeur de sa colonne 1/3 */
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #ced4da;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Couleurs spécifiques aux actions */
.btn-vanilla-success {
    background-color: #f8f9fa;
    color: #2e7d32; /* Vert */
}
.btn-vanilla-success:hover {
    background-color: #e8f5e9;
    border-color: #2e7d32;
}

.btn-vanilla-warning {
    background-color: #fff;
    color: #f57c00; /* Orange */
}
.btn-vanilla-warning:hover {
    background-color: #fff3e0;
    border-color: #f57c00;
}

.btn-vanilla-danger {
    background-color: #fff;
    border: 1px solid #dc3545;
    color: #dc3545; /* Rouge */
}
.btn-vanilla-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Style de base pour les scores cliquables */
.clickable-score {
    cursor: pointer; /* Change le curseur en petite main */
    text-decoration: underline dotted #28a745; /* Légère ligne pointillée vert golf */
    font-weight: bold;
}

/* Effet au clic (seulement si la case n'est pas vide) */
.clickable-score:not(.is-empty):active {
    background-color: #e2e3e5; /* Petit effet "bouton enfoncé" */
}

/* Style appliqué quand la valeur est un tiret (pas de données) */
.clickable-score.is-empty {
    cursor: default;
    text-decoration: none !important; /* Enlève les pointillés */
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5); /* Assombrit la page derrière */
}

.top3-title {
    color: #2e7d32;
    text-align: center;
    margin: 10px 0 5px 0;
    font-size: 16px;
}

.podium-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
}

.podium-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    padding: 12px 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-left: 5px solid #ccc;
}

/* Couleurs des bordures et médailles */
.podium-card.rank-1 { border-left-color: #ffd700; background: linear-gradient(90deg, #fffdf0 0%, #ffffff 100%); }
.podium-card.rank-2 { border-left-color: #c0c0c0; }
.podium-card.rank-3 { border-left-color: #cd7f32; }

.podium-badge {
    font-size: 22px;
    margin-right: 12px;
}

.podium-details {
    flex-grow: 1;
}

.podium-date {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.podium-golf {
    font-size: 14px;
    color: #1b5e20;
    font-weight: bold;
}

.podium-subtext {
    font-size: 11px;
    color: #888;
}

.podium-score {
    font-size: 22px;
    font-weight: bold;
    color: #2e7d32;
    padding-left: 10px;
}

/* -------------------------------------------- */
/* ----- Best 3 Analysis */
.best3_card {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  width: 33%;
  background-color: #E0E0E0;
  border: black 2px;
  border-radius: 5px;
  border-style: outset;
}

.best3_card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.best3_container {
  padding: 2px 16px;
}
/* -------------------------------------------- */

/* Conteneur principal qui aligne 9T et 18T */
.top3-grid-container {
    display: flex;
    flex-direction: row;        /* Côte à côte par défaut */
    gap: 20px;                 /* Espace entre la colonne 9T et 18T */
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

/* Chaque colonne (9T ou 18T) prend 50% de la largeur */
.top3-column {
    flex: 1;
    min-width: 0;              /* Empêche le débordement du texte */
}

/* Si l'écran est petit (ex: Smartphone < 600px), on repasse l'un sous l'autre */
@media (max-width: 600px) {
    .top3-grid-container {
        flex-direction: column;
    }
}
