/* ========= TOURNOI – V2 STYLE MODERNE ========= */

/* Optionnel mais recommandé : fond général plus doux
   À mettre plutôt dans ton layout global si tu veux l'appliquer partout.
   body { background: #f3f4f6; }
*/

.tournament-page {
    max-width: 1150px;
    margin: 24px auto 40px;
    padding: 24px 24px 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
}

/* -------- HEADER -------- */

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.tournament-header-text {
    max-width: 100%;
}

.tournament-title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 6px;
    font-weight: 800;
    text-transform: uppercase;
}

.tournament-date {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
}

.tournament-organizer {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.tournament-organizer a {
    color: #0052a5;
    font-weight: 600;
    text-decoration: none;
}
.tournament-organizer a:hover {
    text-decoration: underline;
}

/* -------- LAYOUT PRINCIPAL -------- */

.tournament-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tournament-poster {
    flex: 0 0 320px;
    max-width: 100%;
}

.tournament-poster img.frame-1 {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

.tournament-main {
    flex: 1;
    min-width: 260px;
}

/* -------- GRILLE D'INFOS -------- */

.tournament-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.tournament-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.tournament-info-icon img {
    width: 40px;
    height: auto;
    display: block;
}

.tournament-info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 2px;
}

.tournament-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.tournament-info-value a {
    color: #111827;
    text-decoration: none;
}
.tournament-info-value a:hover {
    text-decoration: underline;
}

/* -------- BLOCS TEXTE (remarques, catégories, arbitres) -------- */

.tournament-remarks,
.tournament-referees {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    margin-bottom: 14px;
}

.tournament-remarks h2,
.tournament-remarks h3,
.tournament-referees h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 700;
}

/* -------- INSCRIPTION -------- */

.tournament-registration {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #f3f4ff;
    margin-top: 8px;
}

.tournament-registration h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.tournament-registration form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}

.tournament-registration label {
    font-weight: 600;
}

.tournament-registration input[type="text"],
.tournament-registration input[name="licence"] {
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    max-width: 220px;
}

/* Bouton « Vous inscrire » : gradient Or -> Bleu */

.tournament-registration .btn.btn-primary {
    border-radius: 999px;
    padding: 9px 28px;
    border: 0;
    font-weight: 700;
    text-transform: none;
    background-image: linear-gradient(90deg, #f2c94c, #0052a5);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.35);
}
.tournament-registration .btn.btn-primary:hover {
    filter: brightness(1.05);
}

/* Messages */

.tournament-login-hint a {
    font-weight: 600;
    color: #0052a5;
}

.tournament-full {
    color: #b91c1c;
    font-weight: 700;
}

/* -------- LIEU -------- */

.tournament-location {
    margin-top: 20px;
}

.tournament-location-card {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    align-items: center;
}

.tournament-location-icon a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    color: #111827;
}

.tournament-location-icon img {
    width: 40px;
    height: auto;
}

.tournament-location-text p {
    margin: 0 0 3px;
}

/* -------- RESPONSIVE -------- */

@media (max-width: 900px) {
    .tournament-page {
        border-radius: 0;
        box-shadow: none;
        margin: 0 -12px 24px;
    }

    .tournament-layout {
        flex-direction: column;
    }

    .tournament-poster {
        flex: 1 1 auto;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .tournament-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tournament-registration form {
        flex-direction: column;
        align-items: flex-start;
    }

    .tournament-registration .btn.btn-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .tournament-location-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .tournament-location-icon {
        margin-bottom: 4px;
    }

    .tournament-location-text p {
        line-height: 1.4;
    }
}
.tournament-location-card {
    display: block; /* ou flex si tu préfères, mais on va gérer via le lien */
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.tournament-location-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #111827;
    width: 100%;
}

.tournament-location-icon img {
    width: 40px;
    height: auto;
    display: block;
}

.tournament-location-text {
    flex: 1;              /* prend tout l’espace à droite de l’icône */
    /* Si vous voulez VRAIMENT le texte aligné à droite dans la zone :
       text-align: right;
    */
}

.tournament-location-name {
    margin: 0 0 3px;
    font-weight: 700;
}

.tournament-location-text p {
    margin: 0 0 3px;
}

/* Mobile : on passe en colonne pour que ça respire mieux */
@media (max-width: 600px) {
    .tournament-location-link {
        flex-direction: column;
        align-items: flex-start;
    }
}
.tournament-registration form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}

/* Pousse le bouton complètement à droite de la ligne */
.tournament-registration .btn.btn-primary {
    margin-left: auto;
}
@media (max-width: 600px) {
    .tournament-registration form {
        flex-direction: column;
        align-items: flex-start;
    }

    .tournament-registration .btn.btn-primary {
        margin-left: 0;      /* ne plus le pousser à droite */
        width: 100%;         /* bouton pleine largeur, bien visible */
        text-align: center;
    }
}
