:root {
    /* Color Palette from context.md */
    --clr-inst-green: #015838;
    --clr-mint: #4CD9A3;
    --clr-pink: #FF75A0;
    --clr-ecru: #F4F7F6;
    --clr-slate: #2C3E50;
    --clr-night: #1E293B;
    
    /* Extra accents for the premium look */
    --clr-gold: #C59B27; 
    --clr-wood: #3A2318;
    --clr-wood-dark: #21130D;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-handwritten: 'Caveat', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--clr-slate);
    background-color: var(--clr-inst-green);
    overflow: hidden; /* Desktop metaphor: fixed view */
    height: 100vh;
    width: 100vw;
}

/* 1. Desk Environment & Background */
.desk-environment {
    position: relative;
    width: 100%;
    height: 100%;
    /* Deeper radial gradient for vignette effect */
    background: radial-gradient(circle at center, #016b44 10%, #013f28 60%, #001f13 100%);
    display: flex;
    flex-direction: column;
}

/* Subtle leather/wood texture overlay */
.desk-environment::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg width='150' height='150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.watermark-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vh;
    height: 70vh;
    background-image: url('../images/Logo-AS-sans-fond.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    pointer-events: none;
    /* Embossed/Debossed effect (poinçonné) on dark background */
    opacity: 0.3; /* Opacité réduite comme demandé */
    filter: brightness(0) drop-shadow(1px 2px 1px rgba(255, 255, 255, 0.15)) drop-shadow(-1px -2px 2px rgba(0, 0, 0, 0.8));
}

.desk-header {
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2.2rem 4rem 1rem 4rem;
    gap: 2rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    position: relative;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.header-logo {
    flex-shrink: 0;
}
.header-logo img.enlarged-logo {
    width: 125px;
    height: auto;
    filter: drop-shadow(2px 5px 8px rgba(0,0,0,0.6));
    transition: transform 0.3s ease;
}
.header-logo img.enlarged-logo:hover {
    transform: scale(1.05);
}

.header-titles {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
}

.header-titles h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.1;
    margin: 0;
    padding: 0;
    text-align: left;
    color: #ffffff;
}

.header-titles h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--clr-mint);
    line-height: 1.2;
    margin: 0.2rem 0 0 0;
    padding: 0;
    text-align: left;
    opacity: 0.95;
}

.header-banner-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 5px;
    min-width: 0;
    padding: 0 1.5rem;
}

.photo-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%; /* Légèrement inférieure à la barre de navigation */
    max-width: 95%;
    height: 90px;
    margin-bottom: 16px;
    perspective: 1000px;
    position: relative;
    overflow: visible;
}
.photo-banner img {
    height: 65px;
    width: auto;
    max-width: 95px;
    object-fit: cover;
    border: 3px solid #ffffff; /* Cadre blanc photo physique */
    box-shadow: 4px 10px 22px rgba(0,0,0,0.85); /* Ombrage prononcé */
    border-radius: 1px;
    transition: transform 0.3s ease, z-index 0.3s, box-shadow 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0 2px;
}
.photo-banner img:hover {
    transform: scale(1.35) rotate(0deg) translateY(-10px) !important;
    z-index: 60;
    box-shadow: 6px 18px 35px rgba(0,0,0,0.95);
}

.section-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75); /* Fin trait blanc */
    padding-bottom: 8px;
    gap: 1.2rem;
}
.section-nav a {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    transition: color 0.3s, transform 0.2s;
    position: relative;
    padding: 2px 6px;
}
.section-nav a:hover,
.section-nav a.active {
    color: var(--clr-mint);
    transform: translateY(-2px);
}
.section-nav a::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--clr-mint);
    transition: width 0.3s ease, left 0.3s ease;
}
.section-nav a:hover::after,
.section-nav a.active::after {
    width: 80%;
    left: 10%;
}

.header-contact {
    text-align: right;
    flex-shrink: 0;
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--clr-ecru);
    opacity: 0.85;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.ffgolf-quick-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-top: 5px;
}

.ffgolf-quick-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.25s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ffgolf-quick-links a:hover {
    color: var(--clr-mint);
    transform: translateX(-2px);
}

/* 2. Desktop Area Layout */
.desktop-area {
    z-index: 10;
    display: flex;
    flex: 1;
    padding: 1rem 4rem 1.8rem 4rem;
    gap: 3rem;
    align-items: stretch; /* Les colonnes comblent tout l'espace vertical */
    justify-content: space-between;
    min-height: 0;
}

/* 3. Interactive Folders (Left) - Pancartes de Trou de Golf */
.folders-area {
    display: flex;
    flex-direction: column;
    width: 270px;
    margin-top: 5px;
    gap: 0.85rem;
    position: relative;
    z-index: 10;
}

.golf-signpost-item {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-decoration: none;
    padding: 6px 4px;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    position: relative;
}

.golf-signpost-item:hover {
    transform: translateX(10px);
}

.signpost-structure {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 72px;
    flex-shrink: 0;
}

/* Panneau en bois texturé */
.signpost-board {
    width: 72px;
    height: 52px;
    background: linear-gradient(145deg, #5c3924 0%, #3e2415 55%, #29150b 100%);
    border: 2px solid #24130a;
    border-radius: 4px;
    box-shadow: 
        4px 8px 18px rgba(0, 0, 0, 0.75), 
        inset 0 1px 2px rgba(255, 255, 255, 0.25), 
        inset 0 -2px 3px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    position: relative;
    z-index: 2;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='wood'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.08 0.01' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 0.12 0' /%3E%3C/filter%3E%3Crect width='120' height='120' fill='%234a2c1a'/%3E%3Crect width='120' height='120' filter='url(%23wood)'/%3E%3C/svg%3E");
}

.golf-signpost-item:hover .signpost-board {
    box-shadow: 
        6px 14px 24px rgba(0, 0, 0, 0.85), 
        inset 0 1px 3px rgba(255, 255, 255, 0.35), 
        inset 0 -2px 4px rgba(0, 0, 0, 0.7);
    border-color: rgba(76, 217, 163, 0.4);
}

/* Illustration centrale du trou */
.signpost-img {
    max-width: 60px;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.golf-signpost-item:hover .signpost-img {
    transform: scale(1.06);
}

/* Deux poteaux verticaux sous le panneau */
.signpost-posts {
    display: flex;
    justify-content: space-between;
    width: 48px;
    height: 18px;
    margin-top: -2px;
    position: relative;
    z-index: 1;
}

.signpost-post {
    width: 7px;
    height: 100%;
    background: linear-gradient(to right, #24130b, #4a2d1a 45%, #1d0f08);
    border-radius: 0 0 2px 2px;
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Titre textuel directement sur le feutre vert */
.signpost-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.85);
    line-height: 1.25;
    transition: color 0.3s ease, transform 0.2s ease;
}

.golf-signpost-item:hover .signpost-label {
    color: var(--clr-mint);
    transform: translateX(2px);
}

/* 4. News Cards (Papiers posés - Center) */
.news-cards-area {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* 4b. Detailed Calendar View (Center) */
.calendar-view-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding: 0.5rem 0.5rem;
    position: relative;
    z-index: 10;
    max-height: calc(100vh - 210px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.calendar-main-title {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: clamp(1.15rem, 3.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(76, 217, 163, 0.3);
    text-transform: uppercase;
}

.calendar-table-container {
    width: 100%;
    max-width: 960px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(10, 30, 18, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    box-sizing: border-box;
}

.calendar-table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.calendar-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

.calendar-table-transparent {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85);
}

.calendar-table-transparent th,
.calendar-table-transparent td {
    padding: 9px 12px;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    vertical-align: middle;
}

.calendar-table-transparent th.col-date,
.calendar-table-transparent td:first-child {
    white-space: nowrap;
    min-width: 140px;
}

.calendar-table-transparent th:last-child,
.calendar-table-transparent td:last-child {
    border-right: none;
}

.calendar-table-transparent thead th {
    background: rgba(0, 0, 0, 0.5);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
}

.calendar-table-transparent tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: background-color 0.2s ease;
}

.calendar-table-transparent tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Prochaine compétition mise en gras */
.calendar-table-transparent tbody tr.row-next-comp {
    font-weight: 700;
    background: rgba(76, 217, 163, 0.22);
    border-left: 3px solid var(--clr-mint);
    border-bottom: 1px solid rgba(76, 217, 163, 0.45);
}

.calendar-table-transparent tbody tr.row-next-comp td {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

/* Pastilles Zones Drapeaux */
.flag-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    min-width: 55px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.flag-blue {
    background: rgba(0, 122, 255, 0.4);
    border: 1px solid rgba(0, 122, 255, 0.85);
    color: #ffffff;
}

.flag-pink {
    background: rgba(255, 45, 85, 0.4);
    border: 1px solid rgba(255, 45, 85, 0.85);
    color: #ffffff;
}

.flag-green {
    background: rgba(52, 199, 89, 0.4);
    border: 1px solid rgba(52, 199, 89, 0.85);
    color: #ffffff;
}

.flag-yellow {
    background: rgba(255, 204, 0, 0.4);
    border: 1px solid rgba(255, 204, 0, 0.85);
    color: #ffffff;
}

.flag-other {
    background: rgba(180, 180, 180, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

/* 4c. Detailed Results View (Center) */
.results-view-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    padding: 0.5rem 0.5rem;
    position: relative;
    z-index: 10;
    max-height: calc(100vh - 210px);
    width: 100%;
    max-width: 960px;
    box-sizing: border-box;
}

.results-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-comp-selector {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Boutons transparents pour sélectionner la compétition */
.btn-comp-tab {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
    max-width: 350px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-comp-tab:hover {
    color: #ffffff;
    border-color: rgba(76, 217, 163, 0.6);
    background: rgba(76, 217, 163, 0.1);
}

.btn-comp-tab.active {
    color: var(--clr-mint);
    border-color: var(--clr-mint);
    background: rgba(76, 217, 163, 0.2);
    font-weight: 600;
    box-shadow: 0 0 12px rgba(76, 217, 163, 0.3);
}

/* Menu déroulant transparent Brut / Net */
.results-type-select-transparent {
    background: rgba(10, 30, 18, 0.5);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(4px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: border-color 0.2s ease;
}

.results-type-select-transparent:focus,
.results-type-select-transparent:hover {
    border-color: var(--clr-mint);
}

.results-type-select-transparent option {
    background-color: #0b3d26;
    color: #ffffff;
}

/* Conteneur de défilement des séries */
.results-content-scroll {
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    border-radius: 8px;
    background: rgba(10, 30, 18, 0.35);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 1.2rem;
    box-sizing: border-box;
}

.results-content-scroll::-webkit-scrollbar {
    width: 6px;
}
.results-content-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

.results-serie-block {
    margin-bottom: 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 1.4rem;
}

.results-serie-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.results-serie-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--clr-mint);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.results-players-table {
    width: 100%;
    border-collapse: collapse;
    color: #ffffff;
    font-size: 0.88rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.results-players-table th {
    text-align: left;
    padding: 7px 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.player-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.player-row:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.player-row td {
    padding: 8px 10px;
    vertical-align: middle;
}

.player-rank {
    font-weight: 700;
    color: var(--clr-mint);
    width: 35px;
}

.player-name-cell {
    font-weight: 500;
}

.player-idx, .player-club {
    color: rgba(255, 255, 255, 0.8);
}

.player-score-cell {
    font-weight: 700;
    text-align: right;
    color: #ffffff;
    padding-right: 15px;
}

.player-expand-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.25s ease;
}

.player-row.expanded .player-expand-icon {
    transform: rotate(180deg);
    color: var(--clr-mint);
}

/* Tiroir de carte de score trou par trou */
.scorecard-drawer-tr {
    background: rgba(0, 0, 0, 0.35);
}

.scorecard-drawer {
    padding: 10px 8px 12px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.8rem;
    color: #ffffff;
    min-width: 640px;
    font-family: var(--font-body);
}

.scorecard-table th, 
.scorecard-table td {
    padding: 4px 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    vertical-align: middle;
}

.scorecard-header-cell {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #e0f0ff;
    padding: 5px 2px;
}

.scorecard-par-cell {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.scorecard-subtot {
    background: rgba(76, 217, 163, 0.15);
    font-weight: 700;
    color: var(--clr-mint);
    padding: 4px 6px;
}

/* Pastilles rondes de scores (Code Couleur Règlementaire) */
.score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.82rem;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Par : Chiffre en blanc posé directement sur le feutre vert (sans fond) */
.score-par {
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

/* Birdie (Par - 1) : Fond rond rouge */
.score-birdie {
    background: #e74c3c;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.4);
}

/* Eagle ou mieux (Par - 2 ou moins) : Fond rond orange */
.score-eagle {
    background: #e67e22;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(230, 126, 34, 0.4);
}

/* Bogey (Par + 1) : Fond rond bleu moyen */
.score-bogey {
    background: #3498db;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.4);
}

/* Double Bogey (Par + 2) : Fond rond bleu foncé */
.score-double-bogey {
    background: #20638f;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(32, 99, 143, 0.4);
}

/* Triple Bogey et + (Par + 3+) : Fond rond bleu marine très foncé */
.score-triple-bogey {
    background: #0f324a;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(15, 50, 74, 0.4);
}

/* Croix (Stableford / Pas de score) : Fond rond gris foncé */
.score-croix {
    background: #3d3d3d;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
}

/* 4d. Championnat du Club is handled via Parchment Modal (see Section 7) */


.paper-card {
    background-color: var(--clr-ecru);
    width: 340px;
    min-height: 420px;
    padding: 3rem 2.5rem;
    box-shadow: 
        10px 15px 30px rgba(0,0,0,0.4), 
        inset 0 0 40px rgba(0,0,0,0.03);
    border-radius: 2px;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: rotate(-2deg);
    /* Subtle paper texture */
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 0.04 0' /%3E%3C/filter%3E%3Crect width='200' height='200' fill='%23F4F7F6'/%3E%3Crect width='200' height='200' filter='url(%23paper)'/%3E%3C/svg%3E");
}

.paper-card.tilted-right {
    transform: rotate(3deg) translateY(30px);
}

.paper-card:hover {
    transform: translateY(-15px) rotate(0deg) scale(1.03);
    box-shadow: 15px 25px 40px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.02);
    z-index: 20;
}

.paper-pin {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, #a0a0a0, #555);
    box-shadow: 2px 4px 6px rgba(0,0,0,0.4), inset -1px -1px 3px rgba(0,0,0,0.3);
}

.paper-card h3 {
    font-family: var(--font-heading);
    color: var(--clr-inst-green);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.paper-card .date {
    font-size: 0.85rem;
    color: var(--clr-pink);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(1, 88, 56, 0.15);
    padding-bottom: 0.8rem;
}

.paper-card p {
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--clr-slate);
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--clr-night);
    color: var(--clr-ecru);
    border: none;
    padding: 0.9rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: var(--clr-inst-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 88, 56, 0.4);
}

/* 5. Notice Boards (Panneaux Dynamiques - Right) - Style Sans Fond & Expansion */
.notice-board-area {
    width: 320px;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-self: stretch; /* Comble tout l'espace vertical disponible jusqu'au bandeau sponsors */
    gap: 1.2rem;
    z-index: 10;
}

.notice-board-transparent {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    position: relative;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: flex 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Répartition par défaut : Départs compact (0.75) pour laisser place aux Résultats (1.45) */
#board-departs {
    flex: 0.75 1 0;
}
#board-resultats {
    flex: 1.45 1 0;
}

/* Expansion verticale au survol : le panneau survolé grandit, l'autre se compresse */
.notice-board-area:has(#board-departs:hover) #board-departs,
#board-departs.expanded {
    flex: 1.8 1 0;
}
.notice-board-area:has(#board-departs:hover) #board-resultats,
#board-resultats.collapsed {
    flex: 1 1 0;
}

.notice-board-area:has(#board-resultats:hover) #board-resultats,
#board-resultats.expanded {
    flex: 2.3 1 0;
}
.notice-board-area:has(#board-resultats:hover) #board-departs,
#board-departs.collapsed {
    flex: 0.6 1 0;
}

.board-dyn-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 6px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.board-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.board-main-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
    display: inline-block;
}

.score-type-header-select {
    background: rgba(1, 40, 25, 0.35);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 3px;
    padding: 2px 7px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: border-color 0.3s, background 0.3s, transform 0.2s;
}

.score-type-header-select:hover,
.score-type-header-select:focus {
    border-color: var(--clr-mint);
    background: rgba(1, 40, 25, 0.65);
    transform: translateY(-1px);
}

.comp-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.comp-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--clr-mint);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.comp-indicators {
    display: flex;
    gap: 5px;
    align-items: center;
}

.comp-pill {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.comp-pill.active {
    background: var(--clr-mint);
    transform: scale(1.25);
    box-shadow: 0 0 6px var(--clr-mint);
}

.scrollable-board-content {
    flex: 1 1 auto;
    height: auto;
    min-height: 60px;
    overflow-y: auto;
    position: relative;
    padding-right: 4px;
    /* Scrollbar invisible tout en restant manipulable au geste ou molette */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    transition: min-height 0.4s ease;
}

.scrollable-board-content::-webkit-scrollbar {
    width: 4px;
}
.scrollable-board-content::-webkit-scrollbar-track {
    background: transparent;
}
.scrollable-board-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

.departure-list-transparent,
.results-list-transparent {
    list-style: none;
    padding: 0;
    margin: 0;
}

.departure-list-transparent li,
.results-list-transparent li {
    padding: 7px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 0.92rem;
    font-weight: 300;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s, transform 0.2s;
}

.departure-list-transparent li:hover,
.results-list-transparent li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}

.departure-list-transparent li:last-child,
.results-list-transparent li:last-child {
    border-bottom: none;
}

.departure-list-transparent .dep-time {
    font-weight: 600;
    color: var(--clr-mint);
    margin-right: 8px;
}
.departure-list-transparent .dep-players {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.88rem;
}
.departure-list-transparent .dep-hole {
    font-size: 0.8rem;
    color: var(--clr-ecru);
    opacity: 0.8;
    margin-left: 6px;
}

.results-list-transparent .res-rank {
    font-weight: 700;
    color: var(--clr-mint);
    width: 22px;
}
.results-list-transparent .res-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.results-list-transparent .res-score {
    font-weight: 600;
    color: var(--clr-pink);
    margin-left: 8px;
}
.results-list-transparent .res-cat-badge {
    font-size: 0.72rem;
    opacity: 0.7;
    margin-left: 5px;
}

/* En-tête stylisé de série pour le Top 3 */
.results-list-transparent .res-series-header {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-mint);
    letter-spacing: 0.6px;
    padding: 4px 0 2px 0;
    margin-top: 6px;
    border-bottom: 1px dotted rgba(76, 217, 163, 0.35);
    list-style: none;
    display: block;
    text-transform: uppercase;
}
.results-list-transparent .res-series-header:first-child {
    margin-top: 0;
}

.category-select-transparent {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 3px;
    padding: 3px 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: border-color 0.3s, background 0.3s;
}

.category-select-transparent:hover,
.category-select-transparent:focus {
    border-color: var(--clr-mint);
    background: rgba(1, 40, 25, 0.4);
}

.category-select-transparent option {
    background: #013824;
    color: #ffffff;
}

/* 6. Partners Banner (Bottom) */
.partners-banner {
    z-index: 10;
    height: 70px;
    background-color: var(--clr-wood-dark);
    box-shadow: 0 -8px 20px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.parchment-texture {
    width: 100%;
    height: 100%;
    background-color: #E8E1D5;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.4), inset 0 -3px 10px rgba(0,0,0,0.4);
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='parchment'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.01' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 0.05 0' /%3E%3C/filter%3E%3Crect width='200' height='200' fill='%23E8E1D5'/%3E%3Crect width='200' height='200' filter='url(%23parchment)'/%3E%3C/svg%3E");
}

.scrolling-partners {
    display: flex;
    width: max-content;
    gap: 3.5rem;
    padding: 0 1.5rem;
    animation: scrollBanner 55s linear infinite;
    white-space: nowrap;
    align-items: center;
    will-change: transform;
}

.scrolling-partners:hover {
    animation-play-state: paused;
}

.sponsor-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), z-index 0.3s;
}

.sponsor-link img {
    height: 38px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0;
    filter: grayscale(100%) opacity(0.8);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.3s ease;
    flex-shrink: 0;
}

.sponsor-link:hover {
    z-index: 25;
    transform: scale(1.25);
}

.sponsor-link:hover img {
    filter: grayscale(0%) opacity(1) drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}

.sponsor-fallback-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(1, 88, 56, 0.12);
    border: 1px solid rgba(1, 88, 56, 0.35);
    border-radius: 4px;
    font-weight: 700;
    color: var(--clr-hunter);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@keyframes scrollBanner {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 7. Modals (Parchment roll down) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(1, 40, 25, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.parchment-modal {
    background-color: var(--clr-ecru);
    width: 90%;
    max-width: 850px;
    min-height: 60vh;
    max-height: 85vh;
    overflow-y: auto;
    padding: 4rem;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    /* Paper Texture */
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 0.04 0' /%3E%3C/filter%3E%3Crect width='200' height='200' fill='%23F4F7F6'/%3E%3Crect width='200' height='200' filter='url(%23paper2)'/%3E%3C/svg%3E");
    
    /* Unroll animation */
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.1);
}

.modal-overlay.active .parchment-modal {
    transform: scaleY(1);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2.8rem;
    background: none;
    border: none;
    color: var(--clr-inst-green);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--clr-pink);
    transform: rotate(90deg);
}

.modal-body h2 {
    font-family: var(--font-heading);
    color: var(--clr-inst-green);
    font-size: 2.8rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--clr-gold);
    padding-bottom: 1rem;
}

.modal-body p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--clr-slate);
}

/* Custom Scrollbar for Modal */
.parchment-modal::-webkit-scrollbar {
    width: 8px;
}
.parchment-modal::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}
.parchment-modal::-webkit-scrollbar-thumb {
    background: var(--clr-gold);
    border-radius: 4px;
}

/* Modals Illustrations & Links */
.modal-illustration {
    width: 75%;
    max-width: 580px;
    max-height: 52vh;
    object-fit: contain;
    height: auto;
    margin: 1.5rem auto 0 auto;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
    border-radius: 6px;
}

.modal-links-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1.5rem;
}

.btn-modal-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(1, 88, 56, 0.15);
    color: var(--clr-inst-green);
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 6px;
    border: 1px solid rgba(1, 88, 56, 0.35);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-modal-link:hover {
    background: var(--clr-inst-green);
    color: #ffffff;
    border-color: var(--clr-inst-green);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-modal-link span:last-child {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.btn-modal-link:hover span:last-child {
    transform: translateX(4px);
}

/* Championnat du Club Modal Styles */
.modal-champ-intro {
    font-size: 1.05rem;
    color: var(--clr-slate);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.6;
}

.modal-champ-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    margin-top: 1rem;
}

.modal-champ-col {
    background: rgba(1, 88, 56, 0.05);
    border: 1px solid rgba(1, 88, 56, 0.2);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
}

.modal-champ-col-title {
    font-family: var(--font-heading);
    color: var(--clr-inst-green);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--clr-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-champ-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.modal-champ-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(1, 88, 56, 0.22);
    border-radius: 6px;
    color: var(--clr-hunter);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.22s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.modal-champ-btn:hover {
    background: var(--clr-inst-green);
    color: #ffffff;
    border-color: var(--clr-inst-green);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(1, 88, 56, 0.25);
}

.modal-champ-btn .btn-arrow {
    transition: transform 0.2s ease;
    font-weight: 700;
}

.modal-champ-btn:hover .btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .modal-champ-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .desk-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .header-brand {
        flex-direction: column;
        text-align: center;
    }
    .header-titles {
        align-items: center;
        text-align: center;
    }
    .header-titles h1, .header-titles h2 {
        text-align: center;
    }
    .header-banner-area {
        width: 100%;
        margin-top: 10px;
    }
    .photo-banner {
        flex-wrap: wrap;
        height: auto;
        gap: 8px;
    }
    .photo-banner img {
        height: 50px;
        margin: 0 2px;
    }
    .section-nav {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .header-contact {
        text-align: center;
        align-self: center;
        margin-top: 10px;
    }
    .ffgolf-quick-links {
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .desktop-area {
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        padding: 2rem 1.5rem;
    }
    body {
        overflow-y: auto;
    }
    .desk-environment {
        height: auto;
        min-height: 100vh;
    }
    .folders-area {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
        margin-top: 0;
    }
    .golf-signpost-item {
        margin-bottom: 0;
    }
    .notice-board-area {
        width: 100%;
        max-width: 600px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    .notice-board-transparent {
        flex: 1;
        min-width: 280px;
    }
    .calendar-view-area,
    .results-view-area {
        width: 100%;
        max-width: 100%;
        max-height: none;
        padding: 0.5rem 0;
    }
    .calendar-table-container,
    .results-content-scroll {
        max-height: 520px;
    }
}
