:root {
    --green: #0b7f4a;
    --green-deep: #085a35;
    --yellow: #f4d11f;
    --red: #e53a32;
    --ink: #0b1320;
    --paper: #f6f8fa;
    --line: #d9e2ec;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Barlow", "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 90% 5%, #fef8cd 0%, #ffffff 35%, #f4f8f5 100%);
}

.container {
    width: min(1160px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--yellow);
}

.brand-title {
    margin: 0;
    font-family: "Teko", sans-serif;
    letter-spacing: 0.4px;
    font-size: 30px;
    line-height: 1;
}

.brand-subtitle {
    margin: 0;
    font-size: 12px;
    color: #51606f;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 10px;
    padding: 8px 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #1f2f3d;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
    transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

.admin-link {
    background: var(--green);
    color: #fff !important;
    padding: 9px 14px;
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(5vh - 4px);
    padding: 8px 0 7px; 
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, #ffffff 0%, #f6fbf7 32%, rgba(244, 209, 31, 0.24) 51%, rgba(11, 127, 74, 0.20) 68%, rgba(11, 127, 74, 0.06) 100%),
        linear-gradient(135deg, rgba(8, 90, 53, 0.10), rgba(229, 58, 50, 0.06));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.96) 33%, rgba(255,255,255,0.70) 48%, rgba(255,255,255,0.20) 66%, rgba(255,255,255,0) 100%);
    z-index: 1;
} 

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/jouer.jpeg");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: min(100vw, 760px) auto;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 2;
    width: min(1160px, 92vw);
}

.hero-copy {
    max-width: 620px;
}

.kicker {
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--green);
    letter-spacing: 0.7px;
}

.hero h1 {
    margin: 6px 0 0;
    font-family: "Teko", sans-serif;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 0.92;
}

.hero-text {
    margin-top: 14px;
    max-width: 54ch;
    color: #35485a;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border: 0;
}

.btn-primary {
    background: linear-gradient(90deg, var(--green-deep), var(--green));
    color: #fff;
}

.btn-outline {
    border: 2px solid var(--ink);
    color: var(--ink);
}

.section {
    padding: 58px 0;
}

.section.alt {
    background: linear-gradient(180deg, #ffffff 0%, #f2f7f3 100%);
    border-top: 1px solid #edf3ee;
    border-bottom: 1px solid #edf3ee;
}

.section-head h2 {
    margin: 0;
    font-family: "Teko", sans-serif;
    font-size: 52px;
    line-height: 0.9;
}

.page-title {
    margin: 0;
    font-family: "Teko", sans-serif;
    font-size: clamp(46px, 7vw, 72px);
    line-height: 0.9;
}

.section-head p {
    margin: 8px 0 0;
    color: #4f6375;
}

.cards {
    margin-top: 22px;
    display: grid;
    gap: 14px;
}

.cards.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 16px rgba(9, 24, 39, 0.05);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 21px;
}

.card p {
    margin: 0;
    color: #4b5f71;
}

.news-card {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.news-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #eaf2ec;
}

.news-image-placeholder {
    display: grid;
    place-items: center;
    color: var(--green-deep);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.news-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-content time,
.news-detail-head {
    color: #607386;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.news-content h3 {
    margin: 0;
}

.news-content p {
    flex: 1;
}

.news-link {
    align-self: flex-start;
    margin-top: 4px;
}

.section-actions {
    margin-top: 22px;
}

.competition-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 5px solid var(--green);
}

.competition-card h3,
.competition-card p {
    margin: 0;
}

.competition-card p {
    flex: 1;
}

.competition-type {
    align-self: flex-start;
    border-radius: 999px;
    background: #eef8f1;
    color: var(--green-deep);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 6px 10px;
}

.competition-dates {
    display: grid;
    gap: 4px;
    color: #607386;
    font-size: 13px;
    font-weight: 700;
}

.competition-detail {
    max-width: 1080px;
}

.competition-hero {
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.competition-hero h1 {
    margin: 12px 0 10px;
    font-family: "Teko", sans-serif;
    font-size: clamp(44px, 7vw, 72px);
    line-height: 0.9;
}

.competition-hero p {
    max-width: 760px;
    margin: 0;
    color: #33475a;
    font-size: 18px;
    line-height: 1.6;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
}

.detail-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 16px rgba(9, 24, 39, 0.05);
}

.detail-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.info-list {
    margin: 0;
    display: grid;
    gap: 10px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #ebf0f3;
    padding-bottom: 10px;
}

.info-list dt {
    color: #607386;
    font-weight: 700;
}

.info-list dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.team-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.team-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ebf0f3;
    border-radius: 10px;
    padding: 10px;
    font-weight: 800;
}

.team-list img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.ranking-panel {
    margin-top: 16px;
}

.muted-text {
    margin: 0;
    color: #607386;
}

.empty-state {
    margin-top: 22px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 22px;
    color: #607386;
    font-weight: 700;
}

.empty-state p {
    margin: 0;
}

.documents-head {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.documents-grid {
    margin-top: 24px;
    margin-left: auto;
    margin-right: auto;
    max-width: 920px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.document-card {
    display: grid;
    justify-items: center;
    gap: 18px;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 5px solid var(--green);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 22px rgba(9, 24, 39, 0.06);
}

.document-icon {
    width: 96px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(11, 127, 74, 0.14), rgba(244, 209, 31, 0.20)),
        #f7fbf8;
    color: var(--green-deep);
    border: 1px solid #dcebe1;
    font-family: "Teko", sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.document-content {
    min-width: 0;
    display: grid;
    justify-items: center;
}

.document-content h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.document-content p {
    margin: 0 0 14px;
    color: #4b5f71;
}

.document-viewer {
    max-width: 980px;
}

.document-viewer-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.document-viewer-head .page-title {
    margin-top: 12px;
}

.pdf-a4-shell {
    width: min(100%, 820px);
    aspect-ratio: 210 / 297;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(9, 24, 39, 0.13);
    overflow: hidden;
}

.pdf-a4-frame {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #fff;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--green-deep);
    font-weight: 800;
    text-decoration: none;
}

.news-detail {
    max-width: 920px;
}

.news-detail-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(9, 24, 39, 0.08);
    margin-bottom: 22px;
}

.news-detail-head {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.news-detail h1 {
    margin: 0 0 16px;
    font-family: "Teko", sans-serif;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 0.95;
}

.news-detail-body {
    color: #33475a;
    font-size: 18px;
    line-height: 1.7;
}

.news-detail-body p {
    margin: 0 0 16px;
}

.tag-green { border-top: 5px solid var(--green); }
.tag-yellow { border-top: 5px solid var(--yellow); }
.tag-red { border-top: 5px solid var(--red); }

.split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: start;
}

.highlights {
    margin-top: 0px;
    margin: 0;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}

.highlights li {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 6px solid var(--green);
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 700;
}

.table-wrap {
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #ebf0f3;
}

th {
    background: #f6fbf7;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.ranking {
    margin: 20px 0 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.ranking li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
    font-weight: 700;
}

.ranking li strong {
    color: var(--green);
}

.contact-form {
    margin-top: 20px;
    display: grid;
    gap: 10px;
    max-width: 760px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(11, 127, 74, 0.20);
    border-color: var(--green);
}

.site-footer {
    background: linear-gradient(110deg, #08131f, #0f2f1f);
    color: #dce6ee;
    padding: 22px 0;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer a {
    color: #fff;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: rise 0.7s ease forwards;
}

.reveal.delay-1 {
    animation-delay: 0.18s;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .split,
    .cards.three,
    .documents-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 74px 0 56px;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.90) 48%, rgba(255,255,255,0.72) 100%);
    }

    .hero::after {
        background-position: right bottom;
        background-size: min(82vw, 560px) auto;
        opacity: 0.34;
    }

    .hero h1 {
        font-size: clamp(34px, 12vw, 58px);
    }

    .team-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 880px) {
    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        right: 4vw;
        top: 76px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 12px;
        width: min(320px, 92vw);
        display: none;
        box-shadow: 0 18px 30px rgba(3, 18, 29, 0.12);
    }

    .main-nav.is-open {
        display: grid;
        gap: 10px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .document-icon {
        width: 72px;
        font-size: 24px;
    }

    .document-viewer-head {
        align-items: flex-start;
        flex-direction: column;
    }

    /* .section-head h2 {
        font-size: 42px;
    } */
}



/* le css de match_detail */
.match-hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:40px 0;
    gap:30px;
}

.team{
    flex:1;
    text-align:center;
}

.team img{
    width:120px;
    height:120px;
    object-fit:cover;
    border-radius:50%;
    border:4px solid var(--primary);
    margin-bottom:15px;
}

.team h2{
    font-size:1.3rem;
    margin:0;
}

.match-center{
    text-align:center;
}

.score{
    font-size:4rem;
    font-weight:bold;
    color:var(--primary);
}

.vs{
    font-size:3rem;
    font-weight:bold;
    color:var(--primary);
}

.match-date{
    margin-top:15px;
    font-weight:600;
}

.result-box{
    display:flex;
    justify-content:space-between;
    gap:20px;
}

.result-box div{
    flex:1;
    background:#fff;
    padding:20px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.result-box strong{
    display:block;
    font-size:2rem;
    color:var(--primary);
}


/* css du bloc joueur de home */
.player-card{
    padding:18px;
}

.player-content{
    display:flex;
    align-items:center;
    gap:18px;
}

.player-photo img{
    width:90px;
    height:90px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid var(--primary);
    flex-shrink:0;
}

.player-info{
    flex:1;
}

.player-info h3{
    margin:0 0 8px;
    font-size:1.1rem;
}

.player-info p{
    margin:4px 0;
    font-size:.95rem;
}

.player-info .btn{
    margin-top:10px;
    padding:8px 14px;
}

@media(max-width:768px){

    .player-content{
        flex-direction:column;
        text-align:center;
    }

}


/* Les css des sponsors  */
/* =========================
   SPONSORS
========================= */

.sponsor-section{
    background:#f8fafc;
    padding:80px 0;
}

.sponsor-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:25px;
    margin-top:40px;
}

.sponsor-card{
    background:#fff;
    border-radius:18px;
    padding:25px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    height:auto;
    min-height:220px;
    transition:.35s ease;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    border:1px solid rgba(0,0,0,.05);
    text-decoration:none;
    color:inherit;
    overflow:hidden;
}

.sponsor-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.sponsor-card img{
    width:100%;
    height:120px;
    object-fit:contain;
    transition:.3s;
}

.sponsor-card:hover img{
    transform:scale(1.12);
}

.sponsor-name{
    margin:0;
    font-weight:700;
    font-size:14px;
    color:#1f2f3d;
    text-align:center;
}

.sponsor-placeholder{
    width:100%;
    height:120px;
    border-radius:12px;
    background:linear-gradient(135deg, var(--green), var(--yellow));
    display:grid;
    place-items:center;
    color:#fff;
    font-family:'Teko',sans-serif;
    font-size:48px;
    font-weight:700;
}

@media (max-width:768px){

    .sponsor-grid{
        grid-template-columns:repeat(2,1fr);
        gap:18px;
    }

    .sponsor-card{
        height:120px;
        padding:18px;
    }

    .sponsor-card img{
        max-height:70px;
    }

}

@media (max-width:480px){

    .sponsor-grid{
        grid-template-columns:1fr;
    }

}

/* ─── Menu déroulant FEGUILAMPAS ─── */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #1f2f3d;
    cursor: pointer;
    position: relative;
}

/* Trait anime identique aux liens du menu */
.nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
    transition: width 0.25s ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle::after,
.nav-dropdown-toggle:focus-visible::after {
    width: 100%;
}

.dropdown-chevron {
    font-size: 9px;
    transition: transform 0.2s ease;
}

.nav-dropdown.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

/* Menu ferme par defaut */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(9, 24, 39, 0.12);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 40;
}

/* Menu ouvert au clic */
.nav-dropdown.is-open .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2f3d;
    font-weight: 700;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
    background: #f0f7f2;
    color: var(--green-deep);
}

/* Pas de trait anime sur les liens du sous-menu */
.nav-dropdown-menu a::after {
    display: none;
}

/* Petite fleche au-dessus du menu */
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
}

/* Responsive mobile */
@media (max-width: 880px) {
    .nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-dropdown-toggle {
        justify-content: space-between;
        padding: 6px 0;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--green);
        border-radius: 0;
        padding: 0 0 0 12px;
        margin: 4px 0 0 8px;
        min-width: auto;
        background: transparent;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: flex;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown-menu a {
        padding: 8px 10px;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a:focus-visible {
        background: #f0f7f2;
    }
}
