/* --- VARIABLES CSS --- */
/* --- VARIABLES GLOBALES --- */
:root {
    /* Uniquement les chiffres ici */
    --accent-rgb: 255, 106, 0; 
    
    --bg-main: #E8E4DB;
    --text-main: #111111;
    --text-muted: #555555;
    --nav-bg: #E8E4DB;
    --nav-border: #D5D0C5;
    --nav-separator: #B0ADA5;
    --card-bg-closed: #FAFAFA;
    --card-border: #D5D0C5;
    --hero-grad-top: rgba(232, 228, 219, 0); 
    --hero-grad-bottom: rgba(232, 228, 219, 1);
    --info-overlay: rgba(232, 228, 219, 0.60); 
    --shadow-light: rgba(0, 0, 0, 0.05);
    --logo-image: url('logo-noir.svg'); 
    --glass-bg: rgba(245, 243, 238, 0.95);
}

/* --- LE SECRET EST ICI : Le calcul se fait sur le body --- */
body {
    --accent: rgb(var(--accent-rgb));
    --shadow-strong: rgba(var(--accent-rgb), 0.15);
    
    font-family: 'Barlow', sans-serif; 
    background-color: var(--bg-main); 
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: scroll; 
    transition: background-color 0.4s ease, color 0.4s ease; 
}

body.dark-theme {
    --bg-main: #0a0a0a;
    --text-main: #f4f4f4;
    --text-muted: #aaaaaa;
    --nav-bg: #111111;
    --nav-border: #333333;
    --nav-separator: #555555;
    --card-bg-closed: #1a1a1a;
    --card-border: #333333;
    --hero-grad-top: rgba(10, 10, 10, 0);
    --hero-grad-bottom: rgba(10, 10, 10, 1);
    --info-overlay: rgba(10, 10, 10, 0.60); 
    --shadow-light: rgba(0, 0, 0, 0.2);
    /* Recalcul de l'ombre en mode sombre[cite: 7] */
    --shadow-strong: rgba(var(--accent-rgb), 0.25); 
    --logo-image: url('logo-blanc.svg'); 
    --glass-bg: rgba(17, 17, 17, 0.95);
}

/* --- RESET ET POLICES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Barlow', sans-serif; 
    background-color: var(--bg-main); 
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: scroll; 
    transition: background-color 0.4s ease, color 0.4s ease; 
}

/* --- BARRE DE SLIDE --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--nav-bg); border-left: 1px solid var(--nav-border); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { 
    background: rgba(var(--accent-rgb), 0.8); 
}



/* -------------------------------------------------------------- */



/* Thème spécifique pour la Greenhouse */
.theme-greenhouse {
    --accent-rgb: 67, 192, 92;
}



/* -------------------------------------------------------------- */





/* --- COULEURS DE SURVOL SPÉCIFIQUES --- */

/* Club Speranza devient Orange au survol */
.nav-speranza:hover { 
    color: #ff6a00 !important; 
}

/* Concept 2 devient Vert au survol */
.nav-concept2:hover { 
    color: #43c05c !important; 
}

/* Concept 3 (exemple en Bleu raider) au survol */
.nav-concept3:hover { 
    color: #00a2ed !important; 
}














/* --- BARRE DE NAVIGATION --- */
nav {
    background-color: var(--nav-bg);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom: 2px solid var(--nav-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-logo-container { flex: 1; display: flex; justify-content: flex-start; }

.dynamic-logo { 
    height: 35px;
    width: 200px; 
    background-image: var(--logo-image);
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: left center;
    transition: background-image 0.4s ease;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    color: var(--text-main);
    text-decoration: none; 
    text-transform: uppercase;
    letter-spacing: 2px; 
    font-size: 18px; 
    font-weight: 600; 
    transition: color 0.3s; 
    position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:not(:last-child)::after {
    content: ""; position: absolute; right: -15px; top: 50%;
    transform: translateY(-50%); height: 18px; width: 2px; 
    background-color: var(--nav-separator);
    transition: background-color 0.4s ease;
}

.nav-spacer { flex: 1; display: flex; justify-content: flex-end; }

.theme-btn {
    background: transparent; border: 2px solid var(--text-main); color: var(--text-main);
    padding: 8px 15px; font-family: 'Barlow', sans-serif; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
    border-radius: 4px; transition: all 0.3s ease;
}
.theme-btn:hover { background-color: var(--text-main); color: var(--bg-main); }

/* --- HERO SECTION --- */
.hero-container {
    position: relative;
    height: 40vh; 
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; padding: 20px;
    z-index: 1;
}

.hero-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('club_speranza_BG.jpg');
    background-size: cover; 
    background-position: center 40%; 
    z-index: -2;
}

.hero-container::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(232, 228, 219, 0) 0%, rgba(232, 228, 219, 0.85) 60%, rgba(232, 228, 219, 1) 100%);
    z-index: -1; opacity: 1; transition: opacity 0.5s ease;
}

.hero-container::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.85) 60%, rgba(10, 10, 10, 1) 100%);
    z-index: -1; opacity: 0; transition: opacity 0.5s ease;
}

body.dark-theme .hero-container::before { opacity: 0; }
body.dark-theme .hero-container::after { opacity: 1; }

.hero-container h1 { 
    font-size: 5.5rem; 
    text-transform: uppercase; letter-spacing: 6px; font-weight: 900; 
    margin-bottom: 15px; 
    color: var(--text-main); transition: color 0.4s ease; position: relative; z-index: 2;
}

.hero-container h2 { 
    font-size: 1.4rem; 
    color: var(--accent); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    position: relative; z-index: 2;
}

/* --- TEXTES D'INDICATION --- */
.overview-text {
    text-align: center; font-size: 1.1rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 2px; 
    font-weight: 600; 
    margin-top: 20px; margin-bottom: 25px; 
    transition: color 0.4s ease;
}

.scroll-indicator {
    text-align: center; margin-top: 20px; margin-bottom: 50px; display: flex;
    flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.9rem;
    font-weight: 800; transition: color 0.4s ease; animation: bounce 2s infinite; 
}
.scroll-indicator svg { width: 18px; height: 18px; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* --- CASES INTERACTIVES --- */
.concept-grid {
    display: flex; flex-wrap: nowrap; gap: 20px; 
    padding: 0px 50px 30px 50px; 
    justify-content: center; align-items: center; width: 100%; max-width: 1700px; margin: 0 auto;
}

.card {
    background-color: var(--card-bg-closed); width: 400px; height: 550px; 
    border: 1px solid var(--card-border); border-radius: 5px; padding: 30px; 
    display: flex; flex-direction: column; cursor: pointer;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative; overflow: hidden; transform: translateZ(0); 
    box-shadow: 0 4px 15px var(--shadow-light);
}

.card::before {
    content: ''; position: absolute;
    top: -5%; left: -5%; width: 110%; height: 110%;
    background-image: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%), var(--card-bg-img, none);
    background-size: cover; background-position: center;
    opacity: 1; filter: blur(0px); transition: opacity 0.6s ease, filter 0.6s ease; z-index: 0;
}

.card > * { position: relative; z-index: 1; }

.card:hover { border-color: var(--accent); box-shadow: 0 10px 40px var(--shadow-strong); }

.card h3 { 
    margin-top: auto; margin-bottom: 0; font-size: 1.6rem; font-weight: 900; 
    text-transform: uppercase; white-space: normal; line-height: 1.2;
    transition: all 0.4s ease; text-align: center; width: 100%; color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.8); 
}

.card:hover h3 { margin-bottom: 10px; }

.card-info {
    max-height: 0; opacity: 0; overflow: hidden; transform: translateY(10px); 
    transition: all 0.4s ease; text-align: center; width: 100%; color: #eeeeee; font-size: 1.1rem;
}

.card:hover .card-info { max-height: 150px; opacity: 1; transform: translateY(0); }

.card p { font-weight: 400; line-height: 1.5; white-space: normal; }

/* --- SECTIONS INFO MULTIPLES --- */
.info-section {
    position: relative;
    min-height: 45vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 10%; 
    border-top: 2px solid var(--accent); 
    background-color: var(--bg-main); 
    overflow: hidden; 
}

/* --- Modification de l'overlay dans style.css --- */
.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--info-overlay);
    /* Utilise la variable ou 1 par défaut */
    opacity: var(--section-opacity, 1); 
    z-index: 1;
    transition: background-color 0.4s ease, opacity 0.4s ease;
}

.info-section.window-2 {
    min-height: 70vh;
    padding: 40px 2%; 
}

.info-section.window-2::before { background-color: rgba(232, 228, 219, 0.1); }
body.dark-theme .info-section.window-2::before { background-color: rgba(10, 10, 10, 0.2); }

.info-section.align-left { align-items: flex-start; text-align: left; }
.info-section.align-right { align-items: flex-end; text-align: right; }
.info-section.align-center { align-items: center; text-align: left; }

.info-content {
    position: relative;
    z-index: 2; 
    max-width: 650px; 
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.info-section.align-left .info-content { transform: translateX(-50px); }
.info-section.align-right .info-content { transform: translateX(50px); }
.info-section.align-center .info-content { transform: translateY(50px); max-width: 1850px; width: 98%; }

.info-content.is-visible {
    opacity: 1;
    transform: translate(0);
}

.info-content h2 {
    font-size: 3.5rem; text-transform: uppercase; font-weight: 900;
    letter-spacing: 3px; margin-bottom: 25px; 
    color: var(--text-main); transition: color 0.4s ease;
}

.info-content p.intro-text {
    font-size: 1.25rem; line-height: 1.8; 
    color: var(--text-main); transition: color 0.4s ease;
}

/* --- FENÊTRE TRIALS --- */
.info-section.window-trials {
    min-height: 60vh;
    background-color: var(--bg-main);
}

.info-section.window-trials::before {
    background-color: transparent; 
}

.info-section.window-trials .info-content {
    max-width: 1200px;
    width: 100%;
    text-align: left; 
}

.trials-header {
    margin-bottom: 50px;
}

.info-content h2.trials-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 25px;
    text-transform: none; 
    letter-spacing: normal;
}

.info-content h2.trials-title span {
    font-weight: 400;
    color: var(--text-muted);
}

.trials-desc {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-main);
    max-width: 1000px;
}

.trials-desc em {
    color: var(--accent);
    font-style: italic;
}

.loop-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    margin-top: 50px;
}

.loop-card {
    flex: 1;
    min-height: 350px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.loop-card h4 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: auto; 
}

.loop-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: 40px;
}

.loop-card.light {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

body.dark-theme .loop-card.light {
    border-color: var(--card-border);
}

/* --- INVERSION DU DARK/LIGHT POUR LA CARTE CENTRALE --- */
.loop-card.dark {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

body.dark-theme .loop-card.dark {
    background-color: #FAFAFA; 
    color: #111111; 
    border: 1px solid var(--accent); 
    box-shadow: 0 10px 40px rgba(255, 106, 0, 0.2);
}

.loop-card-eyebrow {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.loop-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.loop-connector svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 1000px) {
    .loop-container {
        flex-direction: column;
    }
    .loop-card {
        width: 100%;
        min-height: auto;
    }
    .loop-connector {
        transform: rotate(90deg);
        margin: 15px 0;
    }
}

/* --- NOUVEAU LAYOUT FENÊTRE 2 --- */
.window-2-layout {
    display: flex;
    align-items: center;
    gap: 70px;
    width: 100%;
    justify-content: space-between;
}

.schema-container {
    display: flex; 
    gap: 30px; 
    flex: 2.8; 
}

.schema-column {
    flex: 1;
    background-color: var(--card-bg-closed); 
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--accent); 
    border-radius: 8px;
    padding: 50px 35px; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); 
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
}

body.dark-theme .schema-column {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5); 
}

.schema-eyebrow {
    color: var(--accent); font-size: 0.85rem; font-weight: 800;
    letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
}

.schema-title {
    font-size: 3rem; font-weight: 900; color: var(--text-main); margin: 0;
    text-transform: uppercase; transition: color 0.4s ease;
}

.schema-subtitle {
    font-size: 0.95rem; font-weight: 600; color: var(--text-muted);
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 25px; transition: color 0.4s ease;
}

.schema-text {
    font-size: 1.1rem; line-height: 1.7; color: var(--text-main); transition: color 0.4s ease;
}

.glass-panel {
    flex: 1; 
    min-width: 420px; 
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    padding: 50px; 
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
}

body.dark-theme .glass-panel {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glass-panel h2 {
    font-size: 2.5rem; margin-bottom: 20px;
}
.glass-panel p.intro-text {
    font-size: 1.15rem; margin: 0;
}

.pvp-link {
    display: inline-block; margin-top: 25px; color: var(--accent);
    font-weight: 800; font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase;
    cursor: pointer; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color 0.3s ease;
}
.pvp-link:hover { border-bottom: 2px solid var(--accent); }

@media (max-width: 1200px) { 
    .window-2-layout { flex-direction: column-reverse; } 
    .schema-container { flex-direction: column; width: 100%; }
}

/* --- POP-UP MODAL PVP --- */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease;
    justify-content: center; align-items: center;
}
.modal.show { display: flex; opacity: 1; }

.modal-content {
    background-color: var(--card-bg-closed); padding: 40px; border-radius: 5px;
    max-width: 800px; width: 90%; border-left: 6px solid var(--accent);
    position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(20px); transition: transform 0.3s ease, background-color 0.4s ease;
}
.modal.show .modal-content { transform: translateY(0); }

.close-btn {
    position: absolute; top: 20px; right: 25px; font-size: 2rem; cursor: pointer; 
    color: var(--text-muted); transition: color 0.3s; line-height: 1;
}
.close-btn:hover { color: var(--accent); }

.modal-title {
    font-size: 1.2rem; font-weight: 800; color: var(--text-main); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 20px; border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
}
.modal-title span { color: var(--accent); }
.modal-text { font-size: 1.15rem; line-height: 1.8; color: var(--text-main); }

/* --- NAVIGATION FLOTTANTE --- */
.floating-nav {
    position: fixed;
    left: 30px; 
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 1000;
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.floating-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--nav-separator);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    background-color: var(--accent);
    transform: scale(1.2);
}

.nav-dot.active {
    background-color: var(--accent);
    border: 2px solid var(--bg-main);
    transform: scale(1.3);
    box-shadow: 0 0 0 2px var(--accent);
}

body.dark-theme .nav-dot.active {
    border-color: var(--bg-main);
}

/* Infobulles avec les titres */
.dot-label {
    position: absolute;
    left: 35px; 
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--card-bg-closed);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 1px solid var(--card-border);
}

.nav-dot:hover .dot-label {
    opacity: 1;
    transform: translateY(-50%) translateX(10px); 
}

/* --- AJOUT : PROGRESSION VISUELLE (COURBE LIGNE ÉTIRÉE) --- */
.progression-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px; 
    width: 100%;
}

.progression-text {
    flex: 0 0 25%; 
    max-width: 350px;
}

.progression-visual {
    flex: 1; 
    position: relative;
    width: 100%;
    padding-top: 30px; 
    margin-left: 40px; 
}

.progression-svg {
    width: 100%;
    height: auto;
    display: block;
}

.rank-node {
    position: absolute;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.rank-node img {
    width: 130px; 
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

.rank-node:hover {
    z-index: 10;
}

.rank-node:hover img {
    transform: translateY(-15px) scale(1.10);
}

.node-1 { left: 8.3%; top: 83%; }
.node-2 { left: 50%; top: 66%; }
.node-3 { left: 95.8%; top: 27%; }

/* --- AJOUT : LAYOUT DOCUMENT (FENÊTRE 4) --- */
.document-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    width: 100%;
}

.doc-preview-wrapper {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doc-image-link {
    display: block;
    width: 280px;
    aspect-ratio: 1 / 1.414; /* Format A4 Mathématique */
    background-color: var(--card-bg-closed);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
    text-decoration: none;
    position: relative;
}

.doc-image-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(255, 106, 0, 0.2);
    border-color: var(--accent);
}

.doc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-caption {
    color: var(--accent);
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 25px;
    text-align: center;
    max-width: 280px;
}

.doc-text-wrapper {
    flex: 1;
    max-width: 650px;
    text-align: left;
}

.doc-text-wrapper h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.doc-author {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.doc-author strong {
    color: var(--accent);
}

.doc-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 600;
}

.doc-credentials span.dot {
    color: var(--nav-separator);
}

.doc-credentials .highlight {
    color: var(--text-main);
    background-color: rgba(255, 106, 0, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 106, 0, 0.3);
}

.doc-body-text {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.doc-cta-text {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-main);
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1100px) {
    .progression-layout {
        flex-direction: column;
        text-align: left;
    }
    .progression-text {
        max-width: 100%;
        margin-bottom: 40px;
    }
    .progression-visual {
        padding-top: 80px; 
        margin-left: 0;
        flex: 1;
    }
    .rank-node img { width: 90px; }
    
    .document-layout {
        flex-direction: column;
        text-align: left;
        gap: 50px;
    }
    .doc-text-wrapper h2 {
        font-size: 3rem;
    }
}

/* --- TRADUCTION / LANGUES --- */
.lang-flags {
    display: flex;
    gap: 15px;
    font-size: 1rem;
    font-weight: 800;
    margin-right: 25px;
    align-items: center;
}

.flag {
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s ease, color 0.3s ease;
    color: var(--text-main);
    letter-spacing: 1px;
}

.flag:hover {
    opacity: 0.8;
    color: var(--accent);
}

.flag.active {
    opacity: 1;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

/* --- TITRES AVEC ICONES --- */
.title-with-icon {
    display: flex;
    align-items: center;
    gap: 30px; /* Plus d'espace pour que ça respire */
}

/* RÈGLE MAGIQUE : Pousse l'icône et le texte collés à droite quand on est dans une section de droite */
.info-section.align-right .title-with-icon {
    justify-content: flex-end;
    text-align: right;
}

.section-icon {
    height: 90px; /* On augmente la taille (avant : 60px) */
    width: auto;
    filter: invert(1); 
    transition: filter 0.4s ease, transform 0.4s ease;
}

body.dark-theme .section-icon {
    filter: invert(0);
}


/* --- EMFASE BOX : Bloc de contraste pour texte important --- */
.emphase-box {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.6); /* Fond sombre pour le contraste */
    padding: 12px 25px;
    border-left: 4px solid var(--accent); /* Bordure orange Arc Raiders */
    border-radius: 0 4px 4px 0;
    margin-top: 15px;
    color: #ffffff; /* Texte forcé en blanc */
    backdrop-filter: blur(8px); /* Effet de flou sur le décor derrière */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.emphase-box strong {
    color: var(--accent);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 106, 0, 0.4);
}





































/* --- LAYOUT : MENU PROJET (GAUCHE) + TEXTE (DROITE) --- */
.project-window-layout {
    display: flex;
    align-items: center;
    gap: 80px;
    width: 100%;
    justify-content: space-between;
}

.project-menu-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
}

.project-text-container {
    flex: 1.2;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* --- ANIMATION LUEUR TOURNANTE (ARC RAIDERS STYLE) --- */
.project-grid {
    display: flex;
    width: 100%;
    /* Ajoute 5px de marge interne pour que la lueur ne soit pas écrasée contre les bords */
    padding: 10px; 
}


/* --- STYLING DE LA CARTE PROJET (GREENHOUSE) --- */
.project-card {
    position: relative;
    /* 1. On supprime width: 100%, dans une grille c'est souvent inutile et ça fait déborder */
    box-sizing: border-box; 
    aspect-ratio: 16 / 9; 
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent); /* Ton contour */
    
    /* 2. L'astuce : une toute petite marge pour que la bordure ne colle pas la paroi invisible du parent */
    margin: 2px; 
    
    transition: transform 0.2s ease, border-color 0.2s ease;
}

/* CARTE PROJET UNIQUE ET PLUS GRANDE */
.project-card.large-card {
    width: 100%;
    max-width: 650px;
    height: auto; 
}

.project-card:hover {
    transform: scale(1.02);
    z-index: 10;
    /* On cache la bordure orange fixe pour laisser passer le halo tournant */
    border-color: transparent !important; 
}

/* Le faisceau lumineux MULTI-LUMIÈRES */
.project-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    aspect-ratio: 1 / 1; 
    background: conic-gradient(
        from 0deg, 
        transparent 0%, 
        transparent 25%, 
        rgba(var(--accent-rgb), 0.5) 45%, /* Lueur dynamique ici */
        rgba(138, 43, 226, 0.7) 60%,  
        rgba(255, 0, 128, 0.8) 75%,   
        rgba(170, 0, 255, 0.9) 85%,   
        rgba(255, 255, 255, 0.9) 95%, 
        #ffffff 100%                  
    );
    animation: spin-glow 3s linear infinite;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 1;
}

@keyframes spin-glow {
    /* Le translate(-50%, -50%) permet de garder le carré parfaitement centré pendant qu'il tourne */
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Le masque central de l'image */
.project-content {
    position: absolute;
    /* PAR DÉFAUT : 0px. L'image touche les bords, aucun contour noir visible ! */
    inset: 0px; 
    background-color: var(--card-bg-closed);
    background-size: cover;
    background-position: center;
    border-radius: 4px; 
    z-index: 1;
    display: flex;
    align-items: flex-end; 
    padding: 0; 
    /* Animation fluide pour révéler le bord au survol */
    transition: inset 0.3s ease;
}

.project-card:hover .project-content {
    /* AU SURVOL : l'image s'enfonce très légèrement (3px) pour révéler le halo */
    inset: 3px; 
}

/* LA BARRE SEMI-TRANSPARENTE */
/* --- NOUVEAU MODAL STYLE JEU (ARC RAIDERS) --- */
.game-modal {
    max-width: 1500px;
    width: 95%;
    height: 80vh;
    padding: 0;
    /* L'image sera gérée ici en HTML */
    background-color: #05080c; 
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: row;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
}

/* PANNEAU DE GAUCHE (Textes + Effet Flou) */
.game-modal-left {
    flex: 0 0 38%; 
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    background-color: rgba(5, 8, 12, 0.65); /* Noir bleuté transparent */
    backdrop-filter: blur(15px); /* Rend l'image derrière floue */
    -webkit-backdrop-filter: blur(15px); /* Pour Safari */
    border-right: 1px solid rgba(255, 255, 255, 0.1); 
}

/* PANNEAU DE DROITE (Totalement transparent pour voir l'image nette) */
.game-modal-right {
    flex: 1;
    background: transparent; 
    position: relative;
}

.game-modal-fade {
    display: none; /* On cache l'ancien dégradé */
}

/* --- TEXTES DU MODAL --- */
.game-modal-eyebrow {
    color: #8c97a8;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.game-modal-title {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.game-modal-desc {
    color: #b0bac9;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 50px;
}

.game-modal-rewards .rewards-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* --- BOUTON PURCHASE (VERSION LONGUE) --- */
.purchase-btn-game {
    margin-top: auto; 
    background-color: #ffb400; 
    color: #000000;
    border: none;
    border-radius: 50px; /* Garde la forme de pilule sur les bords */
    padding: 10px; /* Padding uniforme */
    display: flex;
    justify-content: center; /* CENTRE le groupe [E] + Texte au milieu du bouton géant */
    align-items: center;
    gap: 15px;
    font-family: 'Barlow', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    width: 100%; /* LE SECRET EST ICI : Le bouton prend toute la largeur du panneau */
}

.purchase-btn-game:hover {
    transform: scale(1.02); /* Animation très légèrement réduite pour un grand bouton */
    background-color: #ffcc33;
}

/* L'icône de touche "E" */
.key-prompt {
    background-color: #000000;
    color: #ffb400;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    /* La double bordure (jaune assombri puis noir) fidèle à ton image */
    border: 3px solid #8a6600; 
    box-shadow: inset 0 0 0 2px #000000; 
}

/* Bouton fermer en haut à droite sur l'image */
#projectModal .close-btn {
    position: absolute;
    color: #ffffff;
    right: 30px;
    top: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    z-index: 10;
}

/* Responsive pour les petits écrans */
@media (max-width: 1000px) {
    .game-modal {
        flex-direction: column;
        height: 90vh;
        overflow-y: auto;
    }
    .game-modal-left { flex: auto; }
    .game-modal-right { min-height: 400px; }
    .game-modal-fade {
        width: 100%; height: 100px; bottom: auto;
        background: linear-gradient(to bottom, #05080c 0%, transparent 100%);
    }
}




/* --- FIX AGRANDISSEMENT --- */
.game-modal-left {
    flex: 0 0 38%; 
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    background-color: rgba(5, 8, 12, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    /* Transition fluide indispensable */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
}

/* On force l'agrandissement */
.game-modal-left.expanded {
    flex: 0 0 55%; 
}


/* Style pour le nouveau titre UPGRADES */
.upgrade-section-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900; /* Plus gras */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}




/* --- SÉCURITÉ POUR LE DÉBORDEMENT --- */

.modal-state.hidden {
    display: none; /* Le !important force le masquage au démarrage */
}
.game-modal-left {
    overflow-y: auto; /* Permet de scroller le contenu s'il y a trop de texte */
}

/* Petite scrollbar discrète et élégante */
.game-modal-left::-webkit-scrollbar {
    width: 5px;
}
.game-modal-left::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* --- GRILLE D'AMÉLIORATIONS (MODIFIÉE) --- */
.upgrade-section {
    margin-bottom: 20px; /* Moins de marge pour laisser de la place au bouton */
}

.upgrade-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
}

/* Les cases rectangulaires et plus petites */
.upgrade-card {
    min-height: 80px; /* Remplace le carré géant par une hauteur fixe élégante */
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    flex-direction: column; /* Permet d'empiler le titre et la description */
    justify-content: center;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Conteneur pour aligner l'icône et le titre sur la même ligne */
.upgrade-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upgrade-icon {
    width: 28px;
    height: 28px;
    filter: invert(1); /* Rend l'icône blanche si ton image de base est noire */
    opacity: 0.8;
}

.upgrade-title {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- LE TEXTE CACHÉ QUI APPARAÎT AU SURVOL --- */
.upgrade-desc {
    color: #b0bac9;
    font-size: 0.85rem;
    line-height: 1.4;
    max-height: 0; /* Caché par défaut */
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.upgrade-card:hover .upgrade-desc {
    max-height: 80px; /* S'ouvre pour laisser la place au texte */
    opacity: 1;
    margin-top: 10px; /* Ajoute un espace sous le titre */
}

.upgrade-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #ffb400; /* Devient jaune */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}







/* --- LAYOUT FIXE POUR SEEDS --- */
.seeds-main-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 50px;
    /* On élargit la zone pour laisser de la place à l'expansion à droite */
    max-width: 1400px !important; 
    width: 100%;
    justify-content: flex-start !important;
}

/* On fige la largeur du panneau pour qu'il "ne bouge pas" */
.fixed-panel {
    flex: 0 0 550px; /* Largeur fixe de 550px, ne rétrécit pas, ne s'étend pas */
}

.interactive-stack {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* On aligne les ronds à gauche de leur propre colonne */
    align-items: flex-start; 
}

/* --- LOGIQUE D'EXPANSION --- */
/* --- LE ROND QUI S'ADAPTE AU TEXTE --- */
.expanding-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-main);
    border: 2px solid transparent;
    border-radius: 100px;
    height: 90px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    
    /* On force la base à 90px et on laisse le max-width gérer l'ouverture */
    width: auto;
    min-width: 90px;
    max-width: 90px;
    
    flex-shrink: 0; /* Empêche la boîte d'être écrasée */
    transition: max-width 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
}

.expanding-item:hover {
    /* On met une valeur très large, le fit-content fera le reste */
    max-width: 800px; 
    border-color: var(--accent);
}

.item-circle {
    width: 90px;
    height: 90px;
    min-width: 90px; /* Important : garde l'icône fixe */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.item-circle img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.item-box-text {
    /* On utilise padding-left pour l'espace avec l'icône et padding-right pour la fin de la pillule */
    padding: 0 40px 0 10px; 
    
    white-space: nowrap; /* Force le texte sur une seule ligne */
    opacity: 0;
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: opacity 0.4s ease;
    
    /* Empêche le texte de s'écraser pendant l'animation */
    min-width: max-content; 
}

.expanding-item:hover .item-box-text {
    opacity: 1;
    transition-delay: 0.2s;
}

/* Mode sombre */
body.dark-theme .expanding-item {
    background-color: var(--card-bg-closed);
}

/* --- LE ROND CRÈME QUI DEVIENT CASE --- */
.expanding-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-main); /* Couleur crème d'origine */
    border: 2px solid transparent;
    border-radius: 100px; /* Forme de pillule pour l'expansion */
    width: 90px;
    height: 90px;
    overflow: hidden;
    cursor: pointer;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.item-circle {
    min-width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.item-circle img {
    width: 45px;  /* Augmenté (était à 35px) */
    height: 45px; /* Augmenté (était à 35px) */
    object-fit: contain;
}

.item-box-text {
    padding-right: 30px;
    white-space: nowrap;
    opacity: 0;
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

/* --- EFFET AU SURVOL --- */
.expanding-item:hover {
    width: 450px; /* S'étend pour devenir une case */
    border-color: var(--accent); /* Bordure colorée selon la page[cite: 5] */
}

.expanding-item:hover .item-box-text {
    opacity: 1;
    transition-delay: 0.2s;
}

/* Mode sombre : on ajuste la couleur de fond[cite: 5] */
body.dark-theme .expanding-item {
    background-color: var(--card-bg-closed);
}


















/* --- CORRECTION ICÔNE FOOD --- */
.food-icon {
    /* Transforme toute l'image (contours + intérieur) en une silhouette noire pure */
    filter: brightness(0) !important; 
    border: none;
    box-shadow: none;
}
body.dark-theme .food-icon {
    /* Silhouette blanche en mode sombre */
    filter: brightness(0) invert(1) !important; 
}

/* --- SURVIVAL GASTRONOMY CARDS --- */
/* --- SURVIVAL GASTRONOMY CARDS --- */
.meals-grid {
    display: grid;
    /* On réduit la taille minimale (de 220px à 180px) pour rétrécir les cartes proportionnellement */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 40px; /* Ajoute l'espace vide voulu en dessous */
}

.meal-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 3 / 4; 
    
    background-size: contain; 
    background-repeat: no-repeat;
    
    /* LE SECRET EST ICI : 38% remonte l'image pour la centrer parfaitement au-dessus du titre */
    background-position: center 38%; 
    background-color: var(--bg-main); 
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}



.meal-card:hover {
    transform: translateY(-5px); 
    border-color: var(--accent);
}

/* La barre bleu nuit en bas (Titre) */
.meal-title-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 22, 35, 0.95); /* Fond très opaque pour bien lire */
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Petite ligne de la couleur de ta page pour séparer l'image du titre */
    border-top: 2px solid var(--accent); 
    z-index: 2;
}

.meal-title, .meal-qty {
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* La description qui apparaît au survol avec le FLOU */
.meal-hover-desc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Prend toute la hauteur au-dessus de la barre de titre (env 55px) */
    height: calc(100% - 55px); 
    
    /* Fond sombre ultra-transparent + Filtre de flou derrière */
    background-color: rgba(18, 22, 35, 0.4); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); /* Pour Safari */
    
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.meal-card:hover .meal-hover-desc {
    opacity: 1;
}






/* --- STYLING DE LA CARTE PROJET (GREENHOUSE) --- */
.project-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Le fameux ratio rectangulaire */
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px); /* Petit effet au survol */
    border-color: var(--accent); /* Bordure orange */
}

/* L'image de fond prend toute la place */
.project-content {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* La barre bleu nuit façon Arc Raiders */
.project-title-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 22, 35, 0.85); /* Bleu foncé semi-transparent */
    backdrop-filter: blur(4px); /* Petit effet de flou derrière la barre */
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Le texte du titre */
.project-label {
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-weight: 800; /* Bien gras */
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* --- SECTION REQUIREMENT (MODAL) --- */ -------------------
.requirement-section {
    margin-top: 30px;
}

.requirement-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* La boîte qui englobe l'image, le texte et le bouton */
.requirement-box {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espace entre la ligne d'autorisation et le bouton */
}

/* Conteneur de l'image et du texte */
.requirement-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Style de l'image / icône */
.req-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.05); /* Petit fond subtil */
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Texte de l'autorisation */
.req-text {
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    color: #d0d0d0;
    font-weight: 500;
}

/* Ajustement du bouton purchase pour qu'il prenne bien l'espace dans la boîte */
.requirement-box .purchase-btn-game {
    margin-top: 0; /* On retire le margin automatique s'il y en avait un */
    width: 100%;
}



/* --- ITEM SLOT WITH RARITY SYSTEM --- */

/* Base Structure */
.item-slot {
    position: relative;
    width: 86px; 
    height: 86px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    /* We'll set the border and background color via rarity classes below */
    border: 2px solid transparent; 
    background-color: transparent; 
}

/* The dark overlay that creates the "cutout" effect */
.item-slot::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 75%; 
    border-bottom-left-radius: 50% 80%; 
    z-index: 1;
}

/* Main Item Image */
.main-item-img {
    position: absolute;
    top: -5%; 
    left: 0;
    width: 100%;
    height: 80%; 
    object-fit: contain;
    z-index: 2;
    transform: scale(1.15); 
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6));
}

/* Bottom Dark Bar */
.item-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%; 
    background-color: #0b1019;
    z-index: 3;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    padding-left: 6px; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sub-item Icon (e.g., Diamond, Ammo, Plus) */
.sub-item-icon {
    height: 60%;
    width: auto;
    object-fit: contain;
}

/* --- RARITY MODIFIERS --- */

/* Legendary (Yellow) */
.item-slot.rarity-legendary {
    border-color: #ffcc00;
    background-color: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}
.item-slot.rarity-legendary::before {
    /* Dégradé sombre avec une très légère teinte jaune/marron */
    background: linear-gradient(135deg, #2a2415 0%, #121008 100%);
}

/* Epic (Purple) */
.item-slot.rarity-epic {
    border-color: #b22687;
    background-color: #b22687;
    box-shadow: 0 0 10px rgba(178, 38, 135, 0.2);
}
.item-slot.rarity-epic::before {
    /* Dégradé sombre avec une teinte violette */
    background: linear-gradient(135deg, #28152a 0%, #110812 100%);
}

/* Rare (Blue) */
.item-slot.rarity-rare {
    border-color: #00a2ed;
    background-color: #00a2ed;
    box-shadow: 0 0 10px rgba(0, 162, 237, 0.2);
}
.item-slot.rarity-rare::before {
    /* Dégradé sombre avec une teinte bleutée */
    background: linear-gradient(135deg, #15222a 0%, #081012 100%);
}

/* Uncommon (Green) */
.item-slot.rarity-uncommon {
    border-color: #27b63f;
    background-color: #27b63f;
    box-shadow: 0 0 10px rgba(39, 182, 63, 0.2);
}
.item-slot.rarity-uncommon::before {
    /* Dégradé sombre avec une teinte verdâtre */
    background: linear-gradient(135deg, #152a1a 0%, #08120a 100%);
}

/* Common (Grey) */
.item-slot.rarity-common {
    border-color: #7b7b7b;
    background-color: #7b7b7b;
    box-shadow: 0 0 10px rgba(123, 123, 123, 0.2);
}
.item-slot.rarity-common::before {
    /* Dégradé sombre grisâtre classique */
    background: linear-gradient(135deg, #222225 0%, #0f0f11 100%);
}













/* --- SECTION HELP SPERANZA --- */

/* Image de fond pour la section */
.help-speranza-bg {
    background: url('Speranza.webp') center/cover no-repeat !important;
    --section-opacity: 0.6; /* Fond sombre pour faire ressortir les cases */
}

#section-concept-4 {
    padding-left: 3% !important;  /* Pousse le contenu jusqu'au bord gauche (au lieu de 10%) */
    padding-right: 3% !important; /* Pareil à droite pour équilibrer */
}

/* 2. On autorise le conteneur à prendre toute cette nouvelle place */
.dual-box-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 60px;
    width: 100%;
    max-width: 1800px !important; /* On passe de 1400px à 1800px pour couvrir les grands écrans */
    justify-content: flex-start; /* On force l'alignement pour que ça démarre bien à gauche */
    align-items: center; 
    padding: 30px 0; 
}

/* 3. On donne un appétit d'ogre à la case de gauche */
.left-modifier-box {
    flex: 2.8; /* La case blanche va maintenant prendre 2.8 fois plus de place que la case de droite */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: none !important;
    border-right: 4px solid var(--accent);
}

/* 4. On garde la case de droite compacte */
.right-info-box {
    flex: 1; /* Reste à 1, ce qui permet à la case de gauche de la pousser vers la droite */
    text-align: left;
    padding: 40px;
}

/* Adaptation pour les petits écrans */
@media (max-width: 1100px) {
    .dual-box-layout {
        flex-direction: column-reverse !important;
    }
    .left-modifier-box, .right-info-box {
        width: 100%;
    }
}


/* --- BOUNTY BOARD (CONTRATS & DONATIONS) --- */

.donation-board-container {
    background-color: #ffffff !important; /* Fond blanc comme sur l'image */
    display: flex;
    flex-direction: row; /* Met le contrat à gauche et la donation à droite */
    padding: 20px !important;
    gap: 30px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #000; /* Texte noir sur fond blanc */
    
}

/* --- COLONNE GAUCHE : DAILY CONTRACT --- */
.daily-contract-panel {
    background-color: #8c9199; /* Gris du fond du contrat */
    border-radius: 12px;
    padding: 15px;
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contract-header-pill {
    background-color: #0a0b10;
    color: #fff;
    text-align: center;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.contract-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.difficulty-tag {
    background-color: #ff3333; /* Rouge pour Hard, tu peux changer en vert/bleu pour normal */
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    align-self: flex-start;
}

.contract-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
}

.contract-desc {
    font-size: 0.85rem;
    color: #333;
    margin: 0;
}

.contract-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mini-bar-bg {
    flex-grow: 1;
    height: 14px;
    border: 1px solid #ccc;
    border-radius: 50px;
    background: #fff;
}

.mini-bar-fill {
    height: 100%;
    background: #000;
    border-radius: 50px;
}

.mini-progress-text {
    font-weight: 800;
    font-size: 0.9rem;
}

.contract-rewards-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rewards-label {
    font-size: 0.8rem;
    font-weight: 800;
}

.reward-icons {
    display: flex;
    gap: 10px;
}

.reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.reward-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 5px;
}

.btn-yellow-accept {
    background-color: #ffcc00;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-yellow-accept:hover { background-color: #e6b800; }

/* --- COLONNE DROITE : WEEKLY DONATION --- */
.weekly-donation-panel {
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-tags-row {
    display: flex;
    gap: 10px;
}

.tag-yellow { background-color: #70d81b; color: #000; padding: 6px 60px; font-weight: 800; font-size: 0.8rem; }
.tag-black { background-color: #0a0b10; color: #fff; padding: 4px 15px; font-weight: 800; font-size: 0.8rem; border-radius: 50px; }

.donation-lore {
    font-style: italic;
    font-size: 0.95rem;
    color: #444;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin: 0;
}

.progress-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon { width: 40px; height: 40px; }
.progress-section-title h4 { margin: 0; font-size: 1.2rem; font-weight: 900; }

/* La grosse barre de l'image */
.big-progress-wrapper {
    background-color: #8c9199; /* Gros contour gris */
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.big-progress-track {
    background-color: #ffffff; /* Intérieur blanc */
    height: 35px;
    border-radius: 50px;
    overflow: hidden;
}

.big-progress-fill {
    background-color: #ffcc00; /* Remplissage jaune Arc */
    height: 100%;
}

.progress-numbers {
    text-align: right;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Liste des Buffs */
.donation-buffs ul {
    margin: 0;
    padding-left: 20px;
    color: #222;
}

.donation-buffs li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.donation-separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

/* Bouton See the program */
.btn-pill-black {
    background-color: #0a0b10;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-pill-black:hover { transform: scale(1.02); }

/* Faire respirer la case principale */
.donation-board-container {
    padding: 35px !important; /* Plus de padding intérieur */
    gap: 45px; /* Plus d'espace entre la gauche et la droite */
}

/* On donne plus de place à la colonne de droite pour étirer la barre */
.daily-contract-panel { width: 35%; }
.weekly-donation-panel { width: 65%; }


/* --- TIMER & INFO BUBBLE --- */
.weekly-timer-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: -5px; /* Le rapproche légèrement de la barre grise */
}

.timer-text {
    font-weight: 800;
    color: #ff3333; /* Rouge alerte pour le timer, ou noir si tu préfères */
    font-size: 0.85rem;
}

/* La bulle 'i' */
.info-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #ccc;
    color: #000;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    font-family: serif;
    cursor: help;
    position: relative;
}

/* L'infobulle qui apparaît au hover */
.info-bubble::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0a0b10;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.info-bubble:hover::after {
    opacity: 1;
    visibility: visible;
}

/* --- BUFFS --- */
.buffs-condition {
    font-weight: 900;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #000;
}

