/* Styles complémentaires à Tailwind — ASBTT v4 */

.bg-flame {
    background-image: linear-gradient(100deg, #D62B1F 0%, #F2871B 55%, #F7C331 100%);
}
.text-flame {
    background-image: linear-gradient(100deg, #D62B1F 0%, #F2871B 55%, #F7C331 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    position: relative;
    transition: color .2s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: -4px;
    height: 2px;
    background-image: linear-gradient(90deg, #D62B1F, #F2871B, #F7C331);
    transition: right .25s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after {
    right: 0;
}

.card-lift {
    transition: transform .25s ease, box-shadow .25s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgb(26 26 26 / 0.18);
}

.club-photo {
    filter: saturate(.85);
    transition: filter .3s ease;
}
.club-photo:hover {
    filter: saturate(1.05);
}

.article-content {
    line-height: 1.7;
}
.article-content h2 { font-size: 1.5rem;  font-weight: 700; margin: 1.5rem 0 .6rem; }
.article-content h3 { font-size: 1.25rem; font-weight: 700; margin: 1.25rem 0 .45rem; }
.article-content p  { margin: .45rem 0; }
.article-content p:empty { min-height: 1.2em; }
.article-content ul { list-style: disc;    margin: .75rem 0 .75rem 1.5rem; }
.article-content ol { list-style: decimal; margin: .75rem 0 .75rem 1.5rem; }
.article-content li { margin: .2rem 0; }
.article-content a  { color: #D62B1F; text-decoration: underline; }
.article-content img { max-width: 100%; height: auto; border-radius: .75rem; margin: 1rem 0; }
.article-content blockquote {
    border-left: 4px solid #F2871B;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #555;
    font-style: italic;
}
.article-content table { border-collapse: collapse; margin: 1rem 0; }
.article-content table td,
.article-content table th { border: 1px solid #ddd; padding: .5rem .75rem; }

.deco-raquette {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    color: #B8B8E8;
    opacity: .14;
    line-height: 1;
}

/* Raquette décorative du hero d’accueil — toujours ancrée à droite */
.home-hero-deco {
    left: auto !important;
    right: -2.5rem;
    top: 1.5rem;
    font-size: 14rem;
    opacity: 0.16;
    transform: rotate(-12deg);
    line-height: 1;
}

@media (min-width: 1024px) {
    .home-hero-deco {
        font-size: 18rem;
    }
}

@media (max-width: 639px) {
    .home-hero-deco {
        right: -4rem;
        top: -0.5rem;
        font-size: 8rem;
        opacity: 0.12;
    }
}

/* Bandeau de page — même fond que le hero d'accueil + raquette décorative */
.bg-page-hero {
    position: relative;
    overflow: hidden;
    background-color: #1A1A1A;
    background-image:
        radial-gradient(ellipse at 70% 40%, rgba(214, 43, 31, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(242, 135, 27, 0.3) 0%, transparent 45%);
}
.bg-page-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: -1.5rem;
    top: 50%;
    width: min(20rem, 50vw);
    height: min(16rem, 40vw);
    transform: translateY(-50%) rotate(-8deg);
    background-image: url("../img/deco-raquette.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: .18;
    pointer-events: none;
}
/* Accueil : déco gérée en HTML (évite le masquage par le carrousel) */
.bg-page-hero.hero-deco-manual::after {
    content: none;
}
.bg-page-hero > *:not(.deco-raquette) {
    position: relative;
    z-index: 1;
}

/* Accueil hero — mobile */
@media (max-width: 639px) {
    .bg-page-hero.hero-deco-manual {
        overflow-x: clip;
    }
    .home-hero-title {
        font-size: 1.65rem;
        line-height: 1.15;
    }
}

/* Actions admin (icônes tableaux) */
.admin-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    line-height: 1;
    transition: background-color 0.15s, color 0.15s;
    vertical-align: middle;
    text-decoration: none;
}
button.admin-act {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.admin-act--edit { color: #F2871B; }
.admin-act--edit:hover { background: rgba(242, 135, 27, 0.12); }
.admin-act--delete { color: #D62B1F; }
.admin-act--delete:hover { background: rgba(214, 43, 31, 0.1); }
.admin-act--affiche { color: #1A1A1A; }
.admin-act--affiche:hover { background: rgba(26, 26, 26, 0.08); }
.admin-act--result { color: #B8860B; }
.admin-act--result:hover { background: rgba(247, 195, 49, 0.2); }
.admin-act--preview { color: #737373; }
.admin-act--preview:hover { background: rgba(115, 115, 115, 0.12); color: #1A1A1A; }
.admin-act-group {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

/* Modal rencontre (admin) — hauteur bornée + scroll du contenu */
.rencontre-modal-shell {
    position: relative;
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    overflow: hidden;
    box-sizing: border-box;
}
@media (min-width: 640px) {
    .rencontre-modal-shell {
        padding: 1.5rem;
    }
}
.rencontre-modal-panel {
    width: 100%;
    max-width: 42rem;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e5e5;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    overflow: hidden;
}
.rencontre-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Stats accueil */
.home-stat {
    position: relative;
    overflow: hidden;
}
.home-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-image: linear-gradient(180deg, #D62B1F 0%, #F2871B 55%, #F7C331 100%);
}
.home-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
}
