/* ========================= */
/* PALETTE TJD               */
/* ========================= */
:root {
    --accent_rouge: #b30000;
    --accent_rouge_fonce: #7a0000;
    --fond_clair: #fafafa;
	--rayon: 14px;
	--ombre-douce: 0 4px 14px rgba(0,0,0,0.08);
	--ombre-douce2: 0 4px 14px rgba(0,0,0,0.08);
}

/* ========================= */
/* RESET                     */
/* ========================= */
body {
    margin: 0;
    font-family: "Noto Serif JP", serif;
    background: var(--fond_clair);
    color: #333;
}

/* ========================= */
/* ENTÊTE (2 niveaux)        */
/* ========================= */

/* Conteneur global */
.entete-tjd {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    /* Restauration de l'effet carte */
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.entete-tjd h1 {
    flex: 1;                 /* Le H1 prend toute la place disponible */
    white-space: nowrap;     /* Empêche les retours à la ligne */
    margin: 0;               /* Important pour éviter les décalages */
}

.entete-tjd .ligne-haute {
    width: 100%;
}


.menu-haut {
    margin-left: auto;       /* Pousse le menu à droite */
    display: flex;
    gap: 12px;
    white-space: nowrap;
}

/* Ligne haute : cartouche / bloc titre / menu */
.ligne-haute {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    column-gap: 20px;
}

/* Bloc central contenant titre + sous-titre */
.bloc-titres {
    text-align: center;
}

/* Titre principal */
.titre-entete {
    font-size: 2em;
    font-weight: 700;
    color: #222;
    margin: 0;
}

/* Sous-titre d'écran */
.sous-titre-entete {
    margin: 4px 0 0 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #444;
}

/* Cartouche kanji vertical */
.kanji-retour {
    writing-mode: vertical-rl;
    text-orientation: upright;
    justify-self: start;
}

.lien-kanji {
    font-size: 32px;
    font-weight: 700;
    padding: 10px 8px;
    background: #fff;
    border: 3px solid var(--accent_rouge);
    border-radius: 10px;
    color: var(--accent_rouge);
    text-decoration: none;
    box-shadow: var(--ombre_douce);
    transition: 0.2s;
}

.lien-kanji:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Menu horizontal */
.entree-menu {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--accent_rouge);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.25s;
}

.entree-menu:hover {
    background: #ffeaea;
    color: var(--accent_rouge_fonce);
}

/* ========================= */
/* PAGE D’ACCUEIL            */
/* ========================= */
.accueil-tjd {
    text-align: center;
    padding: 60px 20px 80px 20px;
}

.titre-accueil {
    font-size: 2.4em;
    margin-bottom: 10px;
    color: #222;
}

.sous-titre-accueil {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 40px;
}

/* ========================= */
/* BOUTONS D’ACCUEIL         */
/* ========================= */
.zone-boutons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.bouton-accueil {
    padding: 20px 20px;
    background: var(--accent_rouge);
    color: white;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--ombre_douce);
    transition: 0.25s;
}

.bouton-accueil:hover {
    background: var(--accent_rouge_fonce);
    transform: translateY(-3px);
}

/* ========================= */
/* TITRE DE SECTION          */
/* ========================= */
.titre-section {
    text-align: center;
    font-size: 1.9em;
    margin: 30px 0 20px 0;
    color: #222;
    font-weight: 700;
}

/* ========================= */
/* LISTE DES ATELIERS        */
/* ========================= */
.liste-ateliers {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.atelier-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.atelier-item:hover {
    border-color: var(--accent_rouge);
    background: #fff5f5;
}

.atelier-item input[type="radio"] {
    transform: scale(1.3);
    accent-color: var(--accent_rouge);
}

.atelier-nom {
    font-size: 1.1em;
    font-weight: 600;
}

/* ========================= */
/* BOUTONS                   */
/* ========================= */
.zone-boutons-atelier {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.btn-rouge {
    padding: 12px 26px;
    background: var(--accent_rouge);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.btn-rouge:hover {
    background: var(--accent_rouge_fonce);
    transform: translateY(-2px);
}

.btn-gris {
    padding: 12px 26px;
    background: #ccc;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.btn-gris:hover {
    background: #b5b5b5;
    transform: translateY(-2px);
}

/* ========================= */
/* LISTE DES CANDIDATS       */
/* ========================= */

.liste-candidats {
    max-width: 900px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.candidat-ligne {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;

    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.candidat-ligne:hover {
    border-color: var(--accent_rouge);
    background: #fff5f5;
}

.candidat-nom {
    font-weight: 700;
    font-size: 1.1em;
    flex: 1;
}

.candidat-club {
    color: #666;
    font-style: italic;
    white-space: nowrap;
}

.candidat-grade {
    font-weight: 700;
    color: var(--accent_rouge);
    white-space: nowrap;
}

.candidat-icones {
    display: flex;
    gap: 8px;
}

.icone-btn {
    background: #eee;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.icone-btn:hover {
    background: var(--accent_rouge);
    color: white;
}

.bandeau-dessus-table {
    background: #fafafa;
    border: 1px solid #e3e3e3;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.90rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 20px;
}

.bandeau-dessus-table span {
    font-weight: 600;
}

.bandeau-dessus-table .val {
    color: var(--accent_rouge);
    font-weight: 700;
}

.page {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* --- Fiche personne TJD --- */
/* --- Carte d'identité TJD --- */
.fiche-personne {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 650px;
    margin: 0 auto 30px auto;
    font-size: 0.95rem;
    border: 1px solid #e6e6e6;
}

/* Bandeau supérieur */
.fiche-header {
    background: var(--accent_rouge);
    color: #fff;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fiche-header svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.fiche-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

/* Contenu */
.fiche-content {
    padding: 22px 26px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    row-gap: 14px;
    column-gap: 20px;
}

.fiche-label {
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fiche-label svg {
    width: 18px;
    height: 18px;
    fill: var(--accent_rouge);
}

.fiche-value {
    font-weight: 700;
    color: #222;
}

/* Séparateurs doux */
.fiche-row {
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.fiche-row:last-child {
    border-bottom: none;
}

/* Mobile */
@media (max-width: 600px) {
    .fiche-content {
        grid-template-columns: 1fr;
    }
}

.bouton-retour {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: var(--rayon);
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--ombre-douce);
    transition: 0.2s;
}

.bouton-retour svg {
    width: 18px;
    height: 18px;
    fill: var(--accent_rouge);
    transition: 0.2s;
}

.bouton-retour:hover {
    background: #fff;
    border-color: var(--accent_rouge);
    color: var(--accent_rouge);
    transform: translateX(-3px);
}

.bouton-retour:hover svg {
    fill: var(--accent_rouge);
}

/* En-tête */
/* --- Tableau TJD Premium (sans icônes) --- */
.tableau-tjd {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--rayon);
    overflow: hidden;
    box-shadow: var(--ombre-douce);
    font-size: 0.9rem;
}

/* En-tête */
.tableau-tjd thead {
    background: var(--accent_rouge);
    color: #fff;
}

.tableau-tjd th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Lignes */
.tableau-tjd td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

/* Alternance */
.tableau-tjd tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Hover */
.tableau-tjd tbody tr:hover {
    background: #fff4f4;
}

/* Colonne Note mise en valeur */
.tableau-tjd td.note {
    font-weight: 700;
    text-align: right;
}

/* --- Pastilles de note TJD --- */
.notes-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.note-btn {
    padding: 4px 0;          /* plus compact */
    width: 36px;             /* ↓ largeur réduite */
    text-align: center;
    border-radius: var(--rayon);
    border: 1px solid #ccc;
    background: #f7f7f7;
    cursor: pointer;
    font-size: 0.85rem;      /* ↓ texte légèrement réduit */
    transition: 0.15s;
}

.note-btn:hover {
    background: #fff;
    border-color: var(--accent_rouge);
    color: var(--accent_rouge);
}

/* Sélectionnée */
.note-btn.active {
    background: var(--accent_rouge);
    color: #fff;
    border-color: var(--accent_rouge);
    font-weight: 700;
}

/* --- Fieldset Minimaliste --- */
.fieldset-min {
    border: 1px solid #e5e5e5;
    border-left: 4px solid var(--accent_rouge);
    border-radius: var(--rayon);
    padding: 16px 18px;
    background: #fafafa;
    margin-bottom: 20px;
}

.fieldset-min legend {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent_rouge);
    padding: 0 6px;
}

/* --- Bouton Valider (primaire) --- */
.bouton-valider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--accent_rouge);
    color: #fff;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--ombre-douce);
    transition: 0.2s;
    text-decoration: none;
}

.bouton-valider:hover {
    background: #8d0000;
    transform: translateY(-2px);
}

/* --- Bouton Annuler (secondaire) --- */
.bouton-annuler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #f3f3f3;
    color: #444;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.bouton-annuler:hover {
    background: #fff;
    border-color: var(--accent_rouge);
    color: var(--accent_rouge);
    transform: translateY(-2px);
}

.bouton-supprimer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a00000;
    background: #fff5f5;
    border: 1px solid #d8b3b3;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.15s;
}

.bouton-supprimer:hover {
    background: #ffecec;
    border-color: var(--accent_rouge);
    color: var(--accent_rouge);
}

.bouton-supprimer svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

#sous-titre-atelier {
    margin-top: 6px;               /* collé sous le trait */
    padding: 4px 10px;             /* petit coussin interne */
    display: inline-block;         /* petit bloc horizontal */
    background: #f7f7f7;           /* discret, clair */
    border: 1px solid #ddd;        /* bordure fine */
    border-radius: 4px;            /* léger arrondi */
    font-size: 0.9rem;             /* discret */
    color: #333;                   /* lisible mais sobre */
}


/* ——————————————————————————————
   ONGLET — BARRE
—————————————————————————————— */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab {
    padding: 8px 16px;
    background: #e6e6e6;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid #ccc;
}

.tab.active {
    background: #ffffff;
    border-bottom: 2px solid #b33;
}

/* ——————————————————————————————
   CONTENU DES ONGLET
—————————————————————————————— */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ——————————————————————————————
   TABLEAU PREMIUM STICKY
—————————————————————————————— */
.tableau-container {
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    max-height: 75vh;
}

.tableau-premium {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    font-size: 0.9rem;
}

/* Ligne d’en-tête sticky */
.tableau-premium thead th {
    position: sticky;
    top: 0;
    background: #fafafa;
    z-index: 3;
    padding: 8px 10px;
    border-bottom: 2px solid #ccc;
    white-space: nowrap;
}

/* Colonne de gauche sticky */
.tableau-premium tbody td:first-child,
.tableau-premium thead th:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 4;
    border-right: 1px solid #ddd;
}

/* Cellules */
.tableau-premium td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

/* Alternance */
.tableau-premium tbody tr:nth-child(even) td {
    background: #fafafa;
}

/* Bordures verticales nettes */
.tableau-premium th,
.tableau-premium td {
    border-right: 1px solid #ccc;
}

/* Supprime la dernière bordure à droite */
.tableau-premium th:last-child,
.tableau-premium td:last-child {
    border-right: none;
}

/* Bordure plus marquée pour la colonne sticky */
.tableau-premium thead th:first-child,
.tableau-premium tbody td:first-child {
    border-right: 2px solid #999;
}

/* Fiche de présention */
.fiche-ligne {
    border: 1px solid #999;
    border-radius: 5px;
    padding: 8px 10px;
    margin-bottom: 10px;
    background: #fafafa;
}

.fiche-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.fiche-titre {
    font-weight: bold;
    color: #333;
}

.fiche-toggle {
    font-size: 0.9em;
    color: #555;
    padding: 2px 6px;
    border-radius: 3px;
    transition: 0.2s;
}

.fiche-toggle:hover {
    background: #e3e3e3;
}

.fiche-description {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #ddd;
    display: none;
    color: #444;
    line-height: 1.4em;
}

.fiche-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fiche-droite {
    display: flex;
    align-items: center;
    gap: 6px; /* espace entre le nombre et l’icône */
}

.fiche-icone svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.col-note {
    display: flex;
    align-items: center;      /* centre verticalement */
    justify-content: flex-end; /* aligne à droite */
    gap: 6px;                 /* espace entre nombre et icône */
}

.note-valeur {
    font-weight: bold;
    min-width: 20px;      /* évite les sauts quand le nombre change */
    text-align: right;
    color: #333;
}

.note-valeur.rouge {
    color: #c00;
}

.bloc-logo {
    justify-self: end;
}

.logo-tjd {
    height: 73px;   /* taille idéale */
    width: auto;
}
