.fp-galerie-section { background:#fff; padding:60px 20px; }
.fp-galerie-inner { max-width:1100px; margin:0 auto; }
.fp-galerie-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
    gap:10px;
    margin-top:28px;
}
@media(max-width:600px){ .fp-galerie-grid { grid-template-columns:repeat(2,1fr); } }
.fp-galerie-item {
    position:relative;overflow:hidden;border-radius:8px;
    aspect-ratio:4/3;cursor:pointer;display:block;
    background:#111;
}
.fp-galerie-item img {
    width:100%;height:100%;object-fit:cover;
    transition:transform .4s ease;display:block;
}
.fp-galerie-item:hover img { transform:scale(1.07); }
.fp-galerie-overlay {
    position:absolute;inset:0;
    background:linear-gradient(to top,rgba(0,0,0,.75) 0%,transparent 55%);
    display:flex;flex-direction:column;justify-content:flex-end;
    padding:12px;opacity:0;transition:opacity .25s;
}
.fp-galerie-item:hover .fp-galerie-overlay { opacity:1; }
.fp-galerie-title { color:#fff;font-size:12px;font-weight:700;line-height:1.3; }
.fp-galerie-date  { color:rgba(255,255,255,.55);font-size:10px;margin-top:2px; }

/* ---- */

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes fpFadeLeft  { from { opacity:0; transform:translateX(-60px) scale(.95); } to { opacity:1; transform:none; } }
@keyframes fpFadeRight { from { opacity:0; transform:translateX(60px)  scale(.95); } to { opacity:1; transform:none; } }
@keyframes fpFadeUp    { from { opacity:0; transform:translateY(50px)  scale(.96); } to { opacity:1; transform:none; } }

.fp-anim { opacity: 0; }
.fp-anim-left.fp-anim-run  { animation: fpFadeLeft  .7s cubic-bezier(.22,1,.36,1) forwards; }
.fp-anim-right.fp-anim-run { animation: fpFadeRight .7s cubic-bezier(.22,1,.36,1) forwards; }
.fp-anim-up.fp-anim-run    { animation: fpFadeUp    .7s cubic-bezier(.22,1,.36,1) forwards; }

.fp-scroll-anim {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}
.fp-scroll-visible {
    opacity: 1;
    transform: none;
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.fp-hero {
    position: relative;
    min-height: 90vh;
    background: #040f08;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

/* Watermark */
.fp-watermark {
    position: absolute;
    top: 50%;
    left: -2%;
    transform: translateY(-50%);
    font-size: clamp(8rem, 18vw, 17rem);
    font-weight: 900;
    letter-spacing: -4px;
    color: rgba(255,255,255,.04);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
    user-select: none;
}

/* Colonne gauche */
.fp-hero-left {
    position: relative;
    z-index: 3;
    flex: 0 0 56%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 64px 32px 100px 52px;
    gap: 44px;
}

/* Stats */
.fp-hero-stats {
    display: flex;
    align-items: flex-end;
    gap: 0;
}
.fp-stat-col {
    display: flex;
    flex-direction: column;
    padding-right: 32px;
    margin-right: 32px;
    border-right: 1px solid rgba(255,255,255,.14);
}
.fp-stat-col:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.fp-stat-lbl {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-bottom: 6px;
}
.fp-stat-val {
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    font-weight: 900;
    color: #F5C518;
    line-height: 1;
}
.fp-stat-sub {
    font-size: .58rem;
    color: rgba(255,255,255,.35);
    letter-spacing: 1.5px;
    margin-top: 6px;
    text-transform: uppercase;
}

/* Bloc stats "saison en cours" : même structure que .fp-hero-stats mais
   plus compact, pour ne jamais rivaliser visuellement avec les stats
   carrière juste au-dessus. */
.fp-hero-stats-season {
    margin-top: -20px;
}
.fp-stat-col-sm {
    padding-right: 24px;
    margin-right: 24px;
}
.fp-stat-val-sm {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important;
    color: rgba(245, 197, 24, .75) !important;
}

/* Article cards dans la zone sombre */
.fp-hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}
.fp-hero-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.06);
    text-decoration: none;
    transition: background .2s, transform .25s;
    border: 1px solid rgba(255,255,255,.06);
}
.fp-hero-card:hover {
    background: rgba(255,255,255,.11);
    transform: translateY(-3px);
    text-decoration: none;
}
.fp-hero-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0a2415;
}
.fp-hero-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.fp-hero-card:hover .fp-hero-card-img img { transform: scale(1.06); }
.fp-hero-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: rgba(245,197,24,.25);
}
.fp-hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,15,8,.8) 0%, transparent 60%);
}
.fp-hero-card-body {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.fp-hero-card-cat {
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #F5C518;
}
.fp-hero-card-title {
    font-size: .78rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    letter-spacing: .3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-hero-card-date {
    font-size: .62rem;
    color: rgba(255,255,255,.38);
}
.fp-hero-card-date i { margin-right: 3px; }

/* Photo + card joueur */
.fp-hero-photo {
    position: absolute;
    right: 72px;
    bottom: 0;
    top: 0;
    width: 40%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.fp-player-card {
    position: relative;
    width: 82%;
    max-width: 360px;
    height: 88%;
    border-radius: 24px 24px 0 0;
    overflow: visible;
}
.fp-player-card-bg {
    position: absolute;
    inset: 0;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(160deg, #0a4a24 0%, #1a8c45 40%, #0D5C2E 70%, #040f08 100%);
    box-shadow: inset 0 0 60px rgba(0,0,0,.4);
}
.fp-player-card-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 24px 24px 0 0;
}
.fp-player-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp-player-badge svg { display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.fp-player-badge span {
    position: absolute;
    color: #fff;
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-top: 2px;
}
.fp-hero-photo-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,  #040f08 0%, transparent 18%, transparent 82%, #040f08 100%),
        linear-gradient(to bottom, #040f08 0%, transparent 12%);
    z-index: 3;
    pointer-events: none;
}

/* Nameplate bas gauche */
.fp-nameplate {
    position: absolute;
    bottom: 28px;
    left: 52px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.fp-nameplate-poste {
    font-size: .6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
}
.fp-nameplate-num {
    font-size: 1.35rem;
    color: rgba(255,255,255,.5);
    font-weight: 400;
    letter-spacing: 1px;
}
.fp-nameplate-num strong {
    color: #fff;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-left: 6px;
}

/* Sidebar droite */
.fp-sidebar {
    width: 72px;
    flex-shrink: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(8px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-left: 1px solid rgba(255,255,255,.07);
    margin-left: auto;
}
.fp-sb-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.fp-sb-arrow:hover { background: #0D5C2E; color: #F5C518; text-decoration: none; }
.fp-sb-disabled { opacity: .25; cursor: default; }
.fp-sb-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 0;
    color: rgba(255,255,255,.7);
    font-size: .52rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    gap: 6px;
    transition: background .2s, color .2s;
}
.fp-sb-btn i { font-size: 1.1rem; }
.fp-sb-btn:hover { background: #0D5C2E; color: #F5C518; text-decoration: none; }
.fp-sb-divider { width: 55%; height: 1px; background: rgba(255,255,255,.1); }

/* ═══════════════════════════════════════════════════
   BIO
═══════════════════════════════════════════════════ */
.fp-bio-section { background: #fff; padding: 0 0 0; }
.fp-bio-inner {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    padding: 0 20px 48px;
}
@media(max-width:900px){ .fp-bio-inner { grid-template-columns: 1fr; } }
.fp-bio-photo {
    position: relative;
    height: 380px;
    display: grid;
    grid-template-columns: 55% 45%;
    overflow: hidden;
    border-radius: 4px;
}
.fp-bio-photo-top {
    grid-column: 1 / -1;
    position: absolute;
    inset: 0;
    z-index: 2;
}
.fp-bio-photo-top img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.fp-bio-photo::before { content:''; background: #0D5C2E; grid-column: 1; }
.fp-bio-photo::after  { content:''; background: #F5C518; grid-column: 2; }
.fp-bio-text { padding: 24px 32px; display: flex; flex-direction: column; gap: 20px; }
.fp-bio-quote { font-size: clamp(.95rem,2vw,1.25rem); font-weight: 400; color: #333; line-height: 1.65; margin: 0; font-style: italic; }
.fp-bio-quote strong { color: #0D5C2E; font-style: normal; }
.fp-bio-more {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 800; letter-spacing: 2px;
    text-transform: uppercase; color: #0D5C2E; text-decoration: none;
    border-bottom: 2px solid #F5C518; padding-bottom: 3px;
    width: fit-content; transition: color .2s;
}
.fp-bio-more:hover { color: #F5C518; text-decoration: none; }
.fp-bio-more span { font-size: 1.1rem; }
.fp-quickinfo { display: flex; flex-wrap: wrap; border-top: 2px solid #f0f0f0; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.fp-qi-item { flex: 1; min-width: 140px; padding: 24px 20px; border-right: 1px solid #f0f0f0; display: flex; flex-direction: column; gap: 6px; }
.fp-qi-item:last-child { border-right: none; }
.fp-qi-lbl { font-size: .58rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #0D5C2E; }
.fp-qi-val { font-size: clamp(1.1rem,2.5vw,1.6rem); font-weight: 800; color: #111; }

/* ═══════════════════════════════════════════════════
   STATS GRANDE GRILLE
   (CSS mort — pas de markup .fp-stats-section/.fp-big-stat
   dans fiche.blade.php. Laisse en place, candidat suppression
   lors d'un nettoyage ulterieur.)
═══════════════════════════════════════════════════ */
.fp-section-title {
    font-size: clamp(1.3rem,3vw,1.8rem);
    font-weight: 900; letter-spacing: 3px;
    text-transform: uppercase; color: #fff; margin: 0 0 32px;
}
.fp-section-title--dark { color: #111; }
.fp-stats-section { background: linear-gradient(135deg, #040f08 0%, #0a2e18 100%); padding: 60px 20px; }
.fp-stats-inner { max-width: 1100px; margin: 0 auto; }
.fp-stats-big-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 32px; }
@media(max-width:680px){ .fp-stats-big-grid { grid-template-columns: repeat(2,1fr); } }
.fp-big-stat {
    background: rgba(255,255,255,.04);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 36px 20px; gap: 8px; transition: background .2s, opacity .65s ease, transform .65s ease;
}
.fp-big-stat:hover { background: rgba(255,255,255,.08); }
.fp-big-stat-ico { font-size: 1.4rem; color: rgba(255,255,255,.28); }
.fp-big-stat-val { font-size: clamp(2.5rem,5vw,4rem); font-weight: 900; color: #fff; line-height: 1; }
.fp-big-stat-lbl { font-size: .65rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.48); }
.fp-big-stat.fp-gold  .fp-big-stat-val { color: #F5C518; }
.fp-big-stat.fp-gold  .fp-big-stat-ico { color: rgba(245,197,24,.45); }
.fp-big-stat.fp-yellow .fp-big-stat-val { color: #f5c518; }
.fp-big-stat.fp-red   .fp-big-stat-val { color: #e74c3c; }
.fp-big-stat.fp-red   .fp-big-stat-ico { color: rgba(231,76,60,.45); }

/* ═══════════════════════════════════════════════════
   CARRIÈRE
═══════════════════════════════════════════════════ */
.fp-career-section { background: #fff; padding: 60px 20px; }
.fp-career-inner { max-width: 1100px; margin: 0 auto; }
.fp-chart-wrap { background: #f8f9fa; border-radius: 12px; padding: 24px; margin-bottom: 32px; }
.fp-career-table-wrap { overflow-x: auto; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.fp-career-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.fp-career-table thead tr { background: #040f08; }
.fp-career-table th { color: rgba(255,255,255,.75); font-size: .65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 14px 18px; white-space: nowrap; text-align: center; }
.fp-career-table th:first-child { text-align: left; }
.fp-career-table td { padding: 13px 18px; border-bottom: 1px solid #f0f0f0; color: #333; text-align: center; }
.fp-career-table td:first-child { text-align: left; }
.fp-career-table tbody tr:hover { background: #f8faf8; }
.fp-current-season td { background: #eaf4ee !important; font-weight: 600; }
.fp-season-badge { display:inline-block; background:#0D5C2E; color:#fff; font-size:.55rem; font-weight:700; letter-spacing:1px; padding:2px 7px; border-radius:20px; text-transform:uppercase; margin-left:6px; vertical-align:middle; }
.card-th { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:3px; font-size:.7rem; font-weight:800; }
.card-yellow { background:#f5c518; color:#222; }
.card-red { background:#e74c3c; color:#fff; }
.fp-yellow-cell { color:#c8860a; font-weight:700; }
.fp-red-cell { color:#e74c3c; font-weight:700; }

/* ═══════════════════════════════════════════════════
   DERNIERS MATCHS
═══════════════════════════════════════════════════ */
.fp-matchs-section { background: #f4f6f4; padding: 60px 20px; }
.fp-matchs-inner { max-width: 1100px; margin: 0 auto; }
.fp-matchs-list { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.fp-match-row { display: flex; align-items: center; gap: 24px; background: #fff; border-radius: 8px; padding: 16px 24px; flex-wrap: wrap; }
.fp-match-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.fp-match-date { font-size: .75rem; color: #999; width: 80px; flex-shrink: 0; }
.fp-match-teams { flex: 1; font-size: .95rem; font-weight: 600; color: #222; display: flex; align-items: center; gap: 8px; }
.fp-match-vs { color: #bbb; font-weight: 400; font-size: .85rem; }
.fp-match-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.fp-chip-min  { background: #f0f0f0; color: #555; }
.fp-chip-gold { background: #fff8e1; color: #c8860a; }
.fp-chip-green{ background: #e8f5ee; color: #0D5C2E; }
.fp-chip-yellow { background: #fff3cd; color: #856404; }
.fp-chip-red  { background: #fde8e8; color: #c0392b; }
.fp-chip-star { background: #fff8e1; color: #F5C518; }
.fp-chip-note { background: #0D5C2E; color: #fff; }

/* ============================================================
   RESPONSIVE — Fiche Joueur
   Ancien etat : un seul point de rupture (768px), photo cachee,
   .fp-hero toujours en row -> debordement/ecrasement avec la
   sidebar. Nouvel etat : 3 paliers (991 / 768 / 480), hero en
   colonne sur mobile, photo et bandeau nom reintegres au flux.
   ============================================================ */

/* ---- Tablette (<=991px) : resserre avant l'empilement mobile ---- */
@media(max-width:991px){
    .fp-hero-left { flex: 0 0 52%; padding: 48px 24px 90px 32px; }
    .fp-hero-photo { width: 46%; right: 24px; }
    .fp-watermark { font-size: clamp(6rem, 16vw, 12rem); }
}

/* ---- Mobile (<=768px) : empilement vertical complet ---- */
@media(max-width:768px){
    .fp-hero {
        flex-direction: column;
        min-height: 0;
        align-items: stretch;
    }
    .fp-hero-left {
        flex: 0 0 auto;
        width: 100%;
        padding: 32px 20px 24px;
        gap: 24px;
    }
    .fp-hero-stats { flex-wrap: wrap; row-gap: 16px; }
    .fp-hero-cards { grid-template-columns: 1fr; }

    /* La photo reintegre le flux au lieu d'un position:absolute
       etire sur toute la hauteur du hero — plus de display:none */
    .fp-hero-photo {
        position: relative;
        top: auto; right: auto; bottom: auto;
        width: 100%;
        height: 300px;
        order: 2;
    }
    .fp-player-card { width: 60%; max-width: 240px; height: 100%; }

    /* Le bandeau nom repasse dans le flux (plus de position:absolute
       qui collisionnait avec le padding reduit) */
    .fp-nameplate {
        position: relative;
        bottom: auto; left: auto;
        padding: 16px 20px 0;
        order: 3;
        align-items: center;
        text-align: center;
    }

    /* Sidebar : barre horizontale sous le nameplate au lieu d'une
       colonne de 52px accolee a un item flex:0 0 100% */
    .fp-sidebar {
        width: 100%;
        flex-direction: row;
        order: 4;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,.07);
        margin-left: 0;
    }
    .fp-sb-arrow, .fp-sb-btn { height: 48px; }
    .fp-sb-divider { width: 1px; height: 55%; }
}

/* ---- Petits telephones (<=480px) ---- */
@media(max-width:480px){
    .fp-hero-left { padding: 24px 16px 20px; gap: 18px; }
    .fp-stat-val { font-size: clamp(2.2rem, 11vw, 3rem); }
    .fp-hero-photo { height: 220px; }
    .fp-nameplate-num strong { font-size: 1.3rem; }
}
