:root {
    --primary-color: #2c2c2c; /* Dark gray instead of black */
    --secondary-color: #ffffff;
    --accent-color: #333333;
    --mustard-yellow: #e1ad01;
    --text-color: #1a1a1a;
    --light-bg: #f8f8f8;
    --border-color: #eeeeee;
}

html, body {
    overflow-x: clip; /* clip doesn't break sticky like hidden does */
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(225, 173, 1, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 0, 0, 0.02) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(225, 173, 1, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 0, 0, 0.02) 0px, transparent 50%);
    background-attachment: fixed;
}

main {
    margin-left: 17.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Parallax Depth of Field */
.parallax-pieces {
    position: fixed;
    top: 0;
    left: 17.5rem; /* Offset for sidebar */
    width: calc(100% - 17.5rem);
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.parallax-piece {
    position: absolute;
    color: var(--mustard-yellow);
    opacity: 0.05;
    filter: blur(2px);
    transition: transform 0.1s linear;
}

.p1 { top: 15%; left: 5%; font-size: 12rem; filter: blur(4px); opacity: 0.03; }
.p2 { top: 40%; right: 10%; font-size: 8rem; filter: blur(2px); opacity: 0.04; }
.p3 { top: 70%; left: 15%; font-size: 6rem; filter: blur(3px); opacity: 0.04; }
.p4 { top: 85%; right: 20%; font-size: 15rem; filter: blur(6px); opacity: 0.02; }
.p5 { top: 30%; left: 50%; font-size: 10rem; filter: blur(5px); opacity: 0.03; }

.hero {
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    color: var(--primary-color);
    background: transparent;
    padding: 0 60px;
    /* Saut du Cavalier aligné à droite */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%, 30% 85%, 0 85%);
    position: relative;
    border-bottom: 4px solid var(--mustard-yellow);
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Section Transitions */
.section-crenellation {
    position: relative;
}

.section-crenellation::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: inherit;
    clip-path: polygon(
        0% 100%, 5% 100%, 5% 0%, 10% 0%, 10% 100%, 
        15% 100%, 15% 0%, 20% 0%, 20% 100%, 
        25% 100%, 25% 0%, 30% 0%, 30% 100%, 
        35% 100%, 35% 0%, 40% 0%, 40% 100%, 
        45% 100%, 45% 0%, 50% 0%, 50% 100%, 
        55% 100%, 55% 0%, 60% 0%, 60% 100%, 
        65% 100%, 65% 0%, 70% 0%, 70% 100%, 
        75% 100%, 75% 0%, 80% 0%, 80% 100%, 
        85% 100%, 85% 0%, 90% 0%, 90% 100%, 
        95% 100%, 95% 0%, 100% 0%, 100% 100%
    );
}

.section-knight-jump {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%, 30% 90%, 0 90%);
    margin-bottom: -50px;
    position: relative;
    z-index: 2;
}

.section-knight-jump-alt {
    clip-path: polygon(0 5%, 75% 5%, 75% 0, 100% 0, 100% 100%, 0 100%);
    margin-top: -30px;
    padding-top: 80px !important; /* Ajout d'espace pour libérer le texte du biseau */
}

/* Option 2: Transition Gambit (Stacking Cards) */
.section-gambit-container {
    display: block; /* On repasse en block pour le sticky */
    padding-top: 50px;
    perspective: 1000px;
}

.club-modern-section {
    position: sticky;
    top: 120px;
    margin-bottom: 300px; /* Plus d'espace pour la transition */
    height: auto;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center top;
    will-change: transform, opacity, filter;
}

.glass-section-card.gambit-overlap {
    width: 90%;
    margin-left: auto;
    background: #ffffff; /* Opaque pour masquer le dessous */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(225, 173, 1, 0.3);
    border-right: none;
    border-radius: 40px 0 0 40px;
    padding: 80px 60px;
    position: relative;
    box-shadow: -20px 0 50px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.club-modern-section:nth-child(even) .glass-section-card.gambit-overlap {
    background: #ffffff;
    box-shadow: -30px 0 70px rgba(0,0,0,0.15);
}

/* Effet de réduction de la carte qui est "en dessous" */
.club-modern-section.active-reveal {
    opacity: 1;
}

.hero.active {
    opacity: 1;
    transform: translateX(0);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -3px;
    background: linear-gradient(135deg, var(--primary-color) 40%, var(--mustard-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-color);
    max-width: 800px;
    margin: 0 0 0 auto;
    opacity: 0.8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

section {
    padding: 60px 0;
    transition: filter 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: filter, opacity;
    position: relative; /* Pour l'overlay de dévoilement */
    width: 90%;
    margin-left: auto;
    margin-right: 0;
}

section.out-of-focus {
    filter: blur(5px);
    opacity: 0.3;
}

/* Engine Lines Animation */
.engine-lines-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.engine-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: engineLineAnim 10s linear infinite;
}

@keyframes engineLineAnim {
    0% { stroke-dashoffset: 100; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -100; }
}

section.club-presentation {
    background: #ffffff;
    z-index: 2;
}

section.learning-app {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.card {
    background: var(--secondary-color);
    padding: 0;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--mustard-yellow);
    animation: captureVibration 0.3s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes captureVibration {
    10%, 90% { transform: translateY(-12px) scale(1.02) translate3d(-1px, 0, 0); }
    20%, 80% { transform: translateY(-12px) scale(1.02) translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translateY(-12px) scale(1.02) translate3d(-4px, 0, 0); }
    40%, 60% { transform: translateY(-12px) scale(1.02) translate3d(4px, 0, 0); }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--mustard-yellow);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
    animation: flashBorder 0.4s ease-out;
}

@keyframes flashBorder {
    0% { transform: scale(1.05); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--light-bg);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.placeholder-bishop {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--mustard-yellow);
    opacity: 0.15;
    background: linear-gradient(135deg, #f8f8f8 0%, #eeeeee 100%);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-date {
    display: inline-block;
    font-size: 0.75rem;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-source {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--mustard-yellow);
    background: rgba(225, 173, 1, 0.1);
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card h3 a:hover {
    color: var(--mustard-yellow);
}

.card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-card:hover {
    color: var(--mustard-yellow);
    gap: 12px;
}

.sidebar-left {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-100%);
    width: 17.5rem;
    height: 75vh;
    background: rgba(225, 173, 1, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--primary-color);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 999;
    box-shadow: 10px 0 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    opacity: 0;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--mustard-yellow) transparent;
}

.sidebar-left::-webkit-scrollbar {
    width: 6px;
}

.sidebar-left::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-left::-webkit-scrollbar-thumb {
    background-color: var(--mustard-yellow);
    border-radius: 20px;
}

.sidebar-left.active {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.sidebar-header {
    text-align: center;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.sidebar-header .logo img {
    max-width: 150px;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9375rem;
    padding: 0.75rem 1.875rem;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.0625rem;
    transition: all 0.3s ease;
    border-right: 0.25rem solid transparent;
}

.sidebar-nav a i {
    font-size: 1.1rem;
    color: var(--mustard-yellow);
    order: 2; /* Place l'icône à droite du texte */
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-right: 4px solid var(--primary-color);
    padding-right: 35px;
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.logo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-logo {
    width: 120px;
    height: auto;
    z-index: 2;
}

.circle-animation {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 6px solid transparent;
    border-top: 6px solid var(--mustard-yellow);
    border-right: 6px solid var(--mustard-yellow);
    border-radius: 50%;
    animation: spin 2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transition: opacity 0.5s ease;
}

/* Evaluation Bar (Scroll Progress) */
.evaluation-bar-container {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 24px;
    height: 300px;
    background: #000;
    border: 2px solid #333;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.evaluation-bar {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.evaluation-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Start at neutral 0.0 */
    background: #fff;
    transition: height 0.1s linear;
}

.evaluation-score {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--mustard-yellow);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.intro-text {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    min-height: 1.2em;
    transition: opacity 0.5s ease;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    animation: letterFadeIn 0.3s forwards;
}

@keyframes letterFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Chess Reveal Animation */
.reveal-chess {
    position: relative;
    /* overflow removed to not break sticky */
}

.reveal-chess:not(.initialized) .container {
    opacity: 0;
}

.chess-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(40, 1fr);
    grid-template-rows: repeat(40, 1fr);
    z-index: 10;
    pointer-events: none;
}

.chess-square {
    width: 100%;
    height: 100%;
    background-color: white;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chess-square.revealed {
    opacity: 0;
    transform: scale(0.8);
}

/* New Sections Styling */
.club-presentation {
    background-color: var(--secondary-color);
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sub-title {
    display: block;
    color: var(--mustard-yellow);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.presentation-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    display: block;
    font-size: 1.5rem;
    color: var(--mustard-yellow);
    margin-bottom: 10px;
}

.feature-item span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Logo 3D Animation & Presentation Visual */
.presentation-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    height: 400px;
}

.logo-3d-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.logo-3d-card {
    position: relative;
    z-index: 10;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.logo-3d-image {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.3));
    transform: translateZ(50px);
}

.logo-aura {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--mustard-yellow) 0%, transparent 65%);
    opacity: 0.15;
    border-radius: 50%;
    animation: auraPulse 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes auraPulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.4); opacity: 0.25; }
}

.logo-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 40%);
    pointer-events: none;
    z-index: 15;
    mix-blend-mode: soft-light;
    transform: translateZ(60px);
}

.orbital-piece {
    position: absolute;
    color: var(--mustard-yellow);
    font-size: 2rem;
    opacity: 0.3;
    animation: orbitRotate 15s linear infinite;
    z-index: 5;
}

.p-knight { animation-delay: -5s; }
.p-pawn { animation-delay: -10s; }

@keyframes orbitRotate {
    0% { transform: rotate(0deg) translateX(160px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}

/* Learning App Section */
.learning-app {
    padding: 0; /* Align right */
    margin-bottom: 60px; /* Même hauteur que l'espacement précédent (padding section) */
}

.app-card {
    background: rgba(225, 173, 1, 0.1); /* Plus clair/visible */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(225, 173, 1, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 85%;
    margin-left: auto;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
    padding: 60px 60px 60px 100px;
}

.app-content {
    text-align: right;
}

.badge {
    background: var(--mustard-yellow);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-mustard {
    background: var(--mustard-yellow);
    color: white;
    box-shadow: 0 10px 20px rgba(225, 173, 1, 0.2);
}

.btn-mustard:hover {
    background: #c99a01;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(225, 173, 1, 0.3);
    color: white;
}

.app-mockup {
    display: flex;
    justify-content: center;
}

.mockup-screen {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.chess-board-mini {
    display: grid;
    grid-template-columns: repeat(4, 40px);
    grid-template-rows: repeat(4, 40px);
    border: 2px solid #444;
    position: relative;
}

.mini-square { background: #666; }
.mini-square.dark { background: #333; }
.mini-piece {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--mustard-yellow);
    font-size: 1.5rem;
}

/* Courses Section */
.section-header-centered {
    text-align: center;
    margin-bottom: 30px;
}

.courses-grid {
    display: flex !important;
    justify-content: space-between;
    gap: 25px;
    width: 100%;
    margin: 30px 0;
}

.course-card {
    background: white;
    padding: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.course-card:hover { transform: translateY(-10px); }

.course-card-modern {
    flex: 1;
    background: white;
    padding: 40px 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.course-card-modern:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background: #fafbfc;
}

.card-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.category-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--light-bg);
    color: var(--text-muted);
}

.course-card-modern.adult .category-badge {
    background: rgba(30, 41, 59, 0.1);
    color: var(--primary-color);
}

.course-card-modern.kids .category-badge {
    background: rgba(225, 173, 1, 0.1);
    color: var(--mustard-yellow);
}

.card-modern-body {
    flex-grow: 1;
}

.card-modern-body h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.course-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.card-modern-footer {
    margin-top: auto;
}

.w-100 {
    width: 100%;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--mustard-yellow);
    margin-bottom: 20px;
}

.schedule {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.schedule i { margin-right: 8px; color: var(--mustard-yellow); }

.location-info {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    background: var(--light-bg);
    padding: 20px;
}

.location-info i { font-size: 1.2rem; color: var(--mustard-yellow); }

/* Category Sections */
.category-section {
    border-top: 1px solid var(--border-color);
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    opacity: 0.6;
}

.breadcrumbs li:after {
    content: "/";
    font-size: 0.7rem;
}

.breadcrumbs li:last-child:after {
    display: none;
}

.breadcrumbs a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--mustard-yellow);
    opacity: 1;
}

.breadcrumbs li:last-child {
    opacity: 1;
    color: var(--mustard-yellow);
}

/* Footer Modern Bevel */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 0;
    margin-top: 100px;
    position: relative;
    margin-left: 17.5rem;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
    transition: all 0.3s ease;
}

.footer-container {
    padding: 80px 40px 40px 60px;
    width: 90%;
    margin-left: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    text-align: right;
}

.footer-section h3 {
    color: var(--mustard-yellow);
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--mustard-yellow);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--mustard-yellow);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: white;
}

/* Cookie Banner Modern & Dynamic */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    visibility: hidden;
    pointer-events: none;
    flex-direction: column;
    gap: 16px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-banner.show {
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
    opacity: 1;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-header i {
    font-size: 1.5rem;
    color: var(--mustard-yellow);
}

.cookie-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: var(--primary-color);
}

.cookie-body p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.cookie-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.btn-cookie-accept {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie-accept:hover {
    background: var(--mustard-yellow);
    transform: scale(1.02);
}

.btn-cookie-refuse {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie-refuse:hover {
    background: #e5e5e5;
}

.cookie-settings-link {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    text-decoration: none;
    margin-top: 4px;
}

.cookie-settings-link:hover {
    color: var(--mustard-yellow);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
    }
}

/* Tournament Styles */
.tournament-poster {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
}

.poster-link {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    max-width: 300px; /* Taille réduite par défaut */
    margin: 0 auto;
}

.poster-link:hover .tournament-poster {
    transform: scale(1.02);
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poster-link:hover .poster-overlay {
    opacity: 1;
}

.poster-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay:target {
    display: flex;
}

.modal-close-area {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: default;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    text-decoration: none;
}

.tournament-layout-new .content-card h2 i,
.tournament-layout-new .info-card h3 i {
    color: var(--mustard-yellow);
}

.hero-right .container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-description {
    text-align: right;
}

.ffe-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

.ffe-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #eee;
}

.ffe-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.ffe-table tr:hover {
    background-color: #fcfcfc;
}

@media (max-width: 992px) {
    .hero-right .container {
        align-items: center;
        text-align: center;
    }
    .hero-description {
        text-align: center;
        margin: 0 auto;
    }
}

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Tournament Highlights on Home */
.tournament-highlights {
    padding: 60px 0;
    background: #fdfdfd;
}

.tournament-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tournament-cat-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.tournament-cat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.cat-header {
    padding: 30px;
    color: var(--mustard-yellow);
    text-align: center;
    background: var(--primary-color);
    border-bottom: 3px solid var(--mustard-yellow);
}

.cat-header i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cat-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.cat-rapide, .cat-blitz, .cat-amical { background: var(--primary-color); }

.cat-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.featured-mini {
    margin-bottom: 20px;
}

.status-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--mustard-yellow);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.featured-mini h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.mini-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.btn-mini {
    display: inline-block;
    padding: 8px 20px;
    background: var(--mustard-yellow);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(225, 173, 1, 0.2);
}

.btn-mini:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cat-footer-link {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.cat-footer-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.cat-footer-link a:hover {
    color: var(--mustard-yellow);
}

.no-tournament {
    text-align: center;
    font-style: italic;
    color: #bdc3c7;
    margin: 20px 0;
}

/* Next Tournament Hero Section */
.next-tournament-hero {
    padding: 60px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.hero-event-card {
    display: flex;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: none;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-event-card:hover {
    transform: translateY(-10px);
}

.hero-right {
    align-items: flex-end !important;
    text-align: right !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%, 30% 85%, 0 85%) !important;
}

.hero-event-image {
    flex: 0 0 40%;
    min-height: 400px;
    position: relative;
}

.hero-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-event-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    font-size: 5rem;
    color: var(--mustard-yellow);
}

.hero-event-content {
    flex: 1;
    padding: 50px;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-badge {
    display: inline-block;
    background: var(--mustard-yellow);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    align-self: flex-start;
}

.event-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color);
}

.event-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--mustard-yellow);
}

.event-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 35px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-actions {
    display: flex;
    gap: 20px;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-dark:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Styles pour la page Cours */
/* Styles pour la page Cours - Nouvelle Version Condensée */
.learning-pillars {
    margin-bottom: 20px;
    text-align: right;
}

.section-header-right {
    margin-bottom: 25px;
}

.section-header-right h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.pillars-grid {
    display: flex !important;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.pillar-item {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.pillar-item:hover {
    transform: translateY(-5px);
    border-color: var(--mustard-yellow);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.pillar-icon {
    font-size: 2rem;
    color: var(--mustard-yellow);
    margin-bottom: 15px;
}

.pillar-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.pillar-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Restauration Encart App Condensé */
.app-card-condensed {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr !important;
    gap: 40px;
    background: #f8fafc;
    border-radius: 24px;
    padding: 30px 60px;
    align-items: center;
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
    width: 100%;
}

.app-card-condensed .app-content {
    grid-column: 1;
    grid-row: 1;
    text-align: right !important;
    line-height: 1.2 !important;
}

.app-card-condensed .badge-premium {
    display: inline-block;
    background: rgba(225, 173, 1, 0.1);
    color: var(--mustard-yellow);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.app-card-condensed .app-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.app-card-condensed .app-content p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.app-card-condensed .condensed-list-right {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.app-card-condensed .condensed-list-right li {
    margin-bottom: 5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-card-condensed .app-actions {
    margin-top: 10px;
}

.app-card-condensed .app-mockup {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center; /* Centré dans sa colonne */
    align-items: center;
}

.app-card-condensed .chess-board-mini {
    display: grid;
    grid-template-columns: repeat(2, 65px); /* Illustration plus grande */
    grid-template-rows: repeat(2, 65px);
    border: 5px solid #334155;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    background: white;
}

.app-card-condensed .mini-square {
    width: 65px;
    height: 65px;
    background: #f1f5f9;
}

.app-card-condensed .mini-square.dark {
    background: #cbd5e1;
}

.app-card-condensed .mini-piece {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem; /* Icône plus grande */
    color: var(--mustard-yellow);
}

/* Floating Social Share */
.floating-share {
    position: fixed;
    right: 30px;
    bottom: 100px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.share-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--mustard-yellow);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(225, 173, 1, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.share-toggle:hover {
    transform: scale(1.1);
    background: #c99b01;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.floating-share:hover .share-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.share-link:hover {
    transform: scale(1.1);
}

.share-link.facebook { background: #3b5998; }
.share-link.twitter { background: #1da1f2; }
.share-link.linkedin { background: #0077b5; }
.share-link.whatsapp { background: #25d366; }

/* --- Responsive & High Resolution Optimizations --- */

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border: 2px solid var(--mustard-yellow);
    border-radius: 10px;
    z-index: 1001;
    cursor: pointer;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 1024px) {
    .mobile-nav-toggle {
        display: flex; /* Show only on mobile */
    }
}

.hamburger-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: relative;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--mustard-yellow);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Base Responsive Adjustments */
@media (max-width: 1024px) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .hero, .card, .club-modern-section, section, .out-of-focus {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    main { margin-left: 0 !important; width: 100% !important; overflow-x: clip; }
    .parallax-pieces { display: none !important; }
    .evaluation-bar-container { display: none !important; }
    section { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; padding: 40px 0 !important; }
    .container { width: 90% !important; max-width: 100% !important; padding: 0 15px !important; }
    
    .sidebar-left {
        left: 0 !important;
        top: 0 !important;
        transform: translateX(-100%) !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: 280px !important;
        border-radius: 0 !important;
        background: var(--mustard-yellow) !important; /* Yellow background on mobile */
        z-index: 2000 !important;
        padding-top: 80px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }
    
    .sidebar-left.mobile-active {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }

    .sidebar-nav a { 
        justify-content: flex-start !important; 
        flex-direction: row-reverse !important; 
        padding: 15px 25px !important; 
        border-right: none !important; 
        border-left: 4px solid transparent !important;
        color: white !important; /* White text on mobile */
    }
    .sidebar-nav a i {
        color: white !important;
        margin-left: 15px !important;
    }
    .sidebar-nav a:hover { border-left-color: white !important; background: rgba(255,255,255,0.1) !important; }

    .sidebar-header {
        padding: 10px !important;
        margin-bottom: 10px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .sidebar-header .logo img {
        max-width: 80px !important; /* Even smaller logo on mobile */
    }
    .sidebar-content {
        padding: 0 !important;
    }
    .sidebar-nav ul {
        width: 100% !important;
        padding-bottom: 60px !important;
    }
    .sidebar-nav a {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    .hero { 
        height: auto !important; 
        min-height: 300px !important;
        padding: 100px 20px 60px !important; 
        text-align: center !important; 
        align-items: center !important; 
        clip-path: none !important;
        transform: none !important;
        opacity: 1 !important;
        margin-bottom: 20px !important;
    }

    .hero h1 { font-size: 2.5rem !important; letter-spacing: -1px !important; line-height: 1.1 !important; }
    .hero-content { margin: 20px auto 0 !important; font-size: 1.1rem !important; }

    .presentation-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
    .presentation-text { text-align: center !important; }
    .presentation-features { justify-content: center !important; flex-wrap: wrap !important; }
    
    .logo-3d-container { margin: 20px auto !important; transform: scale(0.8) !important; }

    /* Fix sections transitions */
    .section-crenellation::before, .section-knight-jump, .section-knight-jump-alt {
        clip-path: none !important;
        margin: 0 !important;
        padding-top: 40px !important;
    }

    .glass-section-card.gambit-overlap {
        width: 100% !important;
        border-radius: 0 !important;
        padding: 40px 20px !important;
        margin: 0 !important;
        border: none !important;
        border-top: 4px solid var(--mustard-yellow) !important;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.2) !important; /* Ombre pour marquer la superposition */
    }

    .club-modern-section { 
        margin-bottom: 40px !important; 
        background: transparent !important;
        height: auto !important;
    }
    
    /* Stacking effect for Méthodologie (.pillars-grid) and general .grid on TABLET and MOBILE */
    .grid, .pillars-grid { 
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        overflow: visible !important;
    }
    .grid .card, .pillar-item {
        position: sticky !important;
        top: 80px !important;
        margin-bottom: 40px !important;
        opacity: 1 !important;
        transform: none !important;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.1) !important;
        background: white !important;
        padding: 30px !important;
        border-radius: 15px !important;
        border: 1px solid var(--border-color) !important;
        z-index: 10;
    }
    .grid .card:nth-child(1), .pillar-item:nth-child(1) { z-index: 11; }
    .grid .card:nth-child(2), .pillar-item:nth-child(2) { z-index: 12; }
    .grid .card:nth-child(3), .pillar-item:nth-child(3) { z-index: 13; }
    .grid .card:nth-child(4), .pillar-item:nth-child(4) { z-index: 14; }

    .site-footer { margin-left: 0 !important; clip-path: none !important; text-align: center !important; }
    .footer-container { padding: 40px 20px !important; width: 100% !important; }
    .footer-grid { grid-template-columns: 1fr !important; text-align: center !important; gap: 30px !important; }
    .social-links { justify-content: center !important; }
    .footer-bottom { text-align: center !important; }
}

/* Stacking effect for PC and Tablets ONLY */
@media (min-width: 768px) {
    .section-gambit-container, .club-page-wrapper {
        overflow: visible !important;
        min-height: 100vh;
    }
    
    .club-modern-section { 
        position: sticky !important; 
        top: 100px !important; 
        margin-bottom: 350px !important; 
        background: transparent !important;
    }

    /* 2 columns for Course CTA on PC/Tablet */
    .courses-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
        flex-direction: row !important;
        overflow: visible !important;
    }

    .course-card-modern {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
        z-index: 1 !important;
    }

    /* Reset z-index for courses on PC */
    .course-card-modern:nth-child(n) { z-index: 1 !important; }

    .club-modern-section:nth-child(1) { z-index: 100; }
    .club-modern-section:nth-child(2) { z-index: 110; }
    .club-modern-section:nth-child(3) { z-index: 120; }
    .club-modern-section:nth-child(4) { z-index: 130; }
    .club-modern-section:nth-child(5) { z-index: 140; }
    .club-modern-section:nth-child(6) { z-index: 150; }
    
    .glass-section-card.gambit-overlap {
        box-shadow: 0 -10px 30px rgba(0,0,0,0.1) !important;
    }
}

/* Courses & Coaching: Vertical Stacking on Mobile only */
@media (max-width: 767px) {
    .courses-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        overflow: visible !important;
    }
    .course-card-modern {
        position: sticky !important;
        top: 80px !important;
        margin-bottom: 40px !important;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.1) !important;
        clip-path: none !important;
    }
    .course-card-modern:nth-child(1) { z-index: 10; }
    .course-card-modern:nth-child(2) { z-index: 11; }
    .course-card-modern:nth-child(3) { z-index: 12; }
}

@media (min-width: 1025px) {
    .sidebar-left.active ~ .mobile-nav-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem !important; }
    .membership-cta-card { padding: 40px 15px !important; }
    .membership-cta-card h2 { font-size: 1.8rem !important; }
    .cta-btns { width: 100% !important; }
    .cta-btns .btn { width: 100% !important; margin-bottom: 10px !important; }
    
    .footer-membership-cta { flex-direction: column !important; text-align: center !important; gap: 20px !important; }
    .footer-membership-cta div { text-align: center !important; }
}

/* Large Screens Optimizations (2K & 4K) */
@media (min-width: 2000px) {
    .container {
        max-width: 1800px !important;
        width: 1800px !important;
    }
    
    .hero h1 { font-size: 6rem !important; }
    .hero-content { font-size: 2rem !important; max-width: 1200px !important; }
    
    .sidebar-left { width: 400px !important; }
    main { margin-left: 400px !important; }
    .parallax-pieces { left: 400px !important; width: calc(100% - 400px) !important; }
    
    h2 { font-size: 4rem !important; }
    .sub-title { font-size: 1.5rem !important; }
}

@media (min-width: 3500px) {
    .container {
        max-width: 2800px !important;
        width: 2800px !important;
    }
    
    .hero h1 { font-size: 8rem !important; }
    .hero-content { font-size: 3rem !important; max-width: 1800px !important; }
    
    .sidebar-left { width: 500px !important; }
    main { margin-left: 500px !important; }
    .parallax-pieces { left: 500px !important; width: calc(100% - 500px) !important; }
    
    h2 { font-size: 5rem !important; }
    .sub-title { font-size: 2rem !important; }
    
    .sidebar-nav ul li a { font-size: 1.8rem !important; padding: 25px 40px !important; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .floating-share {
        right: 15px !important;
        bottom: 70px !important;
    }
}

/* Back to Top Button - Always Visible */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--mustard-yellow);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    z-index: 999;
    opacity: 1;
    visibility: visible;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top:hover {
    background: var(--mustard-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

    /* Removed redundant courses-grid media query */
}

@media (max-width: 992px) {
    .hero-event-card {
        flex-direction: column !important;
    }
    .hero-event-image {
        flex: 0 0 250px !important;
        min-height: 250px !important;
    }
    .hero-event-content {
        padding: 20px !important;
    }
    .event-title {
        font-size: 1.8rem !important;
    }
}



