@import url(https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap);

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body#content {
    width: 100%;
    font-family: 'Instrument Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url("../images/bgt.webp");
    background-color: #14121d;
    background-repeat: no-repeat;
    background-size: 100%;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* Header styles are now in style.css (main-header) */

/* Main Content */
.works-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 80px;
    box-sizing: border-box;
    width: 100%;
}

/* Section Titles */
.section-title {
  text-align: start;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 30px 0 30px 210px;
    font-family: 'Instrument Sans', sans-serif;
}

/* Game Projects Section */
.game-projects {
    margin-bottom: 60px;
}

/* Featured Odysseus Card */
.game-featured {
    max-width: 100%;
  margin: 0 auto;   /* ✅ centers safely */
  border-radius: 10px;
  text-align: center;
}

/* ============================================
   STANDARDIZED WORK CARD STRUCTURE
   ============================================ */

/* Base card container - must be relative for absolute overlay */
.work-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #1a0e2d;
}

/* Fixed-height image with object-fit cover */
.work-card img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Absolute positioned overlay at bottom with gradient */
.work-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    /* Dark purple to transparent gradient (bottom-up) */
    background: linear-gradient(
  to bottom,
  rgba(43, 48, 76, 0.9) 100%,
  rgba(43, 48, 76, 0.9) 70%,
  rgba(43, 48, 76, 0.9) 100%
);
    z-index: 2;
}

/* Centered boxed overlay for small cards (NOT for Odysseus) */
.game-card .work-card-overlay,
.other-card .work-card-overlay {
    /* Centered box overlay - 50% width, positioned 75% on image, 25% below */
    bottom: auto;
    /* Position overlay so 75% is on image, 25% extends below */
    /* For a 300px card: overlay top should be at 75% of card height (225px) */
    /* This ensures 75% of overlay height is on image, 25% extends below */
    top: 75%;
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    width: 50%; /* Approximately 50% width */
    min-width: 140px;
    max-width: 220px;
    padding: 20px 16px;
    /* Dark purple solid background for boxed overlay */
    background-color: rgba(26, 14, 45, 0.95);
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    box-sizing: border-box;
    /* Ensure overlay doesn't extend beyond card boundaries horizontally */
    max-width: calc(100% - 40px); /* Prevent horizontal overflow */
    /* Reset base overlay properties that might conflict */
    right: auto;
}


/* Featured Odysseus Card - larger height */
.odysseus-card {
    max-width: 900px;
    border-radius: 12px;
    background: linear-gradient(135deg, #243750 0%, #4a90e2 50%, #6bb3ff 100%);
    margin: 0 auto;
}

.odysseus-card img {
    height: 450px; /* Fixed height for featured card */
}

.odysseus-overlay {
    padding: 15px 30px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(
      to bottom,
      rgba(34, 39, 67, 0.9) 100%,
      rgba(34, 39, 67, 0.9) 70%,
      rgba(34, 39, 67, 0.9) 100%,
    );
    
    
}

.odysseus-title {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    font-family: 'Instrument Sans', sans-serif;
}

.discover-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Merged Discover Button - Elegant Design */
.discover-btn-merged {
    display: inline-flex;
    align-items: center;
    gap: 0;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    height: 50px;
    padding: 0;
    z-index: 1;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

/* Expanding White Background on Hover - Step 1 */
.discover-btn-merged::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 25px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.discover-btn-merged:hover::before {
    transform: scaleX(1);
}

/* Icon Container - White Circular Background */
.discover-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin: 0;
    transition: border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease 0.2s,
                width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.discover-btn-merged:hover .discover-icon-container {
    border-radius: 25px 0 0 25px;
    background-color: transparent;
    width: 50px;
    height: 50px;
}

/* Short Arrow Icon - Default State */
.discover-arrow-short {
    position: absolute;
    font-size: 22px;
    color: #3F2E7A;
    font-weight: 700;
    line-height: 1;
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Full Arrow Icon - Hover State */
.discover-arrow-full {
    position: absolute;
    font-size: 22px;
    color: #3F2E7A;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transform: translateX(-4px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text - White by default */
.discover-text {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    font-family: 'Instrument Sans', sans-serif;
    white-space: nowrap;
    padding: 0 20px 0 12px;
    position: relative;
    z-index: 2;
    transition: color 0.4s ease, transform 0.3s ease;
}

.discover-btn-merged:hover .discover-text {
    transform: translateX(1px);
}

/* Hover State - Step 2: Arrow Replacement */
.discover-btn-merged:hover .discover-arrow-short {
    opacity: 0;
    transform: translateX(4px) scale(0.9);
    transition-delay: 0.2s;
}

.discover-btn-merged:hover .discover-arrow-full {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 0.2s;
}

.discover-btn-merged:hover .discover-text {
    color: #3F2E7A;
    transition-delay: 0.15s;
}

/* Legacy styles for backward compatibility */
.discover-btn.circular {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1a2f5a;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.discover-btn.circular:hover {
    background-color: #2a4f7a;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.play-icon {
    font-size: 16px;
    line-height: 1;
    color: #fff;
}

.discover-more-text {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    font-family: 'Instrument Sans', sans-serif;
    white-space: nowrap;
    padding: 10px 20px;
    background-color: #1a2f5a;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.discover-more-text:hover {
    background-color: #2a4f7a;
}

/* Small Game Cards Grid - 3 CARTES PAR LIGNE - MÊME TAILLE QUE OTHER-WORKS */
.game-small-grid {
    margin: 40px auto 0;  /* Centré comme other-works */
    padding: 0 20px;  /* Même padding que other-works */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    row-gap: 80px;
    align-items: start;
    position: relative;
    width: calc(100% - 40px);  /* Même calcul que other-works */
    box-sizing: border-box;
    max-width: 1000px;  /* Même max-width que other-works */
    overflow: visible;
    padding-bottom: 50px;
}

/* Small Game Cards - MÊME TAILLE que other-cards */
.game-card {
    border-radius: 12px;
    aspect-ratio: 1;
    width: 100%;
    height: auto;
    overflow: visible !important;
    position: relative;
    /* Pas de max-width ici, les cartes s'adaptent à la grille */
}

/* Override work-card overflow for game cards to allow overlay extension */
.game-card.work-card {
    border-radius: 24px !important;
    overflow: visible !important;
}

.game-card img {
    border-radius: 24px;  /* Même radius que carte */
    width: 100%;
    height: 100%;
    object-fit: cover;    /* Image nette arrondie */
}

/* Card name styling - used in overlay */
.card-name {
    font-size: 16px;
    color: #fff;
    font-weight: 300;
    font-family: 'Instrument Sans', sans-serif;
    text-align: center;
    margin: 0;
}

/* Small Discover Button - Elegant Design */
.discover-btn-small-merged {
    display: inline-flex;
    align-items: center;
    gap: 0;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    height: 36px;
    padding: 0;
    z-index: 1;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 18px;
    transition: all 0.3s ease;
}

/* Expanding White Background on Hover - Step 1 */
.discover-btn-small-merged::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 18px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.discover-btn-small-merged:hover::before {
    transform: scaleX(1);
}

/* Icon Container - White Circular Background (Small) */
.discover-icon-container-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background-color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin: 0;
    transition: border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease 0.2s,
                width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.discover-btn-small-merged:hover .discover-icon-container-small {
    border-radius: 18px 0 0 18px;
    background-color: transparent;
    width: 36px;
    height: 36px;
}

/* Short Arrow Icon - Default State (Small) */
.discover-arrow-short-small {
    position: absolute;
    font-size: 14px;
    color: #3F2E7A;
    font-weight: 700;
    line-height: 1;
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Conteneurs fixes */
.discover-icon-container,
.discover-icon-container-small {
    position: relative;
    width: 16px;  /* Légèrement plus large pour confort */
    height: 16px;
    display: inline-block;
}

/* TOUS les SVG : base + forcée */
.discover-arrow-short,
.discover-arrow-full,
.discover-arrow-short-small,
.discover-arrow-full-small {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 12px !important;     /* Base 12px normale */
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    object-fit: contain !important;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Normale visible + petite */
.discover-arrow-short,
.discover-arrow-short-small {
    opacity: 1;
    width: 12px !important;    /* 12px */
    height: 12px !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Hover : grande */
.discover-icon-container:hover .discover-arrow-short,
.discover-icon-container-small:hover .discover-arrow-short-small {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.discover-icon-container:hover .discover-arrow-full,
.discover-icon-container-small:hover .discover-arrow-full-small {
    opacity: 1;
    width: 16px !important;    /* 16px hover */
    height: 16px !important;
    transform: translate(-50%, -50%) scale(1.2) !important; /* +20% slide */
}


/* Full Arrow Icon - Hover State (Small) */
.discover-arrow-full-small {
    position: absolute;
    font-size: 14px;
    color: #3F2E7A;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transform: translateX(-3px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text - White by default (Small) */
.discover-text-small {
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.8px;
    font-family: 'Instrument Sans', sans-serif;
    white-space: nowrap;
    padding: 0 14px 0 8px;
    position: relative;
    z-index: 2;
    transition: color 0.4s ease, transform 0.3s ease;
}

.discover-btn-small-merged:hover .discover-text-small {
    transform: translateX(1px);
}

/* Hover State - Step 2: Arrow Replacement (Small) */
.discover-btn-small-merged:hover .discover-arrow-short-small {
    opacity: 0;
    transform: translateX(3px) scale(0.9);
    transition-delay: 0.2s;
}

.discover-btn-small-merged:hover .discover-arrow-full-small {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 0.2s;
}

.discover-btn-small-merged:hover .discover-text-small {
    color: #3F2E7A;
    transition-delay: 0.15s;
}

/* Legacy styles for backward compatibility */
.discover-btn-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-family: 'Instrument Sans', sans-serif;
    border: none;
}

.discover-btn-small:hover {
    background-color: #2a1f4d;
    transform: translateY(-2px);
}

.discover-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    color: #1a0e2d;
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
    font-weight: 600;
}

.discover-btn-text {
    color: #fff;
}

.plus-icon {
    position: absolute;
    right: 20px; /* Changed from -70px to prevent overflow */
    top: 55%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6bb3ff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    font-family: 'Instrument Sans', sans-serif;
    text-shadow: 0 0 10px rgba(107, 179, 255, 0.5);
}

/* Other Works Section */
.other-works {
    align-items: flex-start !important; /* Gauche au lieu de center */
    text-align: left; 
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.other-works .section-title {
    text-align: left !important;
    padding-left: 180px !important;     /* Zéro espace */
    margin-left: 0 !important;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.other-works-text {
    text-align: left !important;
    font-size: 18px;
    line-height: 1.2;
    color: #ffffff;
    max-width: 1150px;
    margin: 0 0 50px 0;
    font-weight: 300;
    font-family: 'Instrument Sans', sans-serif;
    text-align: left;
    padding: 0 20px;
    padding-left: 180px;
    box-sizing: border-box;
}

.other-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    row-gap: 80px;  /* Même espacement entre les lignes que game-small-grid */
    margin: 0 auto 40px;
    max-width: 1000px;
    width: calc(100% - 40px);
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Other Works Cards - fixed square dimensions */
.other-card {
    aspect-ratio: 1;
    overflow: visible !important; /* Allow overlay to extend below (25% below image) */
    position: relative;
}

/* Override work-card overflow for other cards to allow overlay extension */
.other-card.work-card {
    border-radius: 24px !important;
    overflow: visible !important;
}

/* SUPPRIMÉ: .other-card.bottom-left - Film reste sur la même ligne */

.other-card img {
    border-radius: 24px;
    height: 100%; /* Fill card height, overlay will cover bottom */
    width: 100%;
    object-fit: cover;
}

.discover-icon-container {
    width: 50px !important;
    height: 50px
}
/* Footer styles are now in style.css (decorative-footer) */

/* Responsive Design */
@media (max-width: 1200px) {
    .odysseus-card {
        max-width: 100%;
    }
    
    .game-small-grid {
        padding-left: 100px; /* Reduce padding on smaller screens */
    }
    
    .plus-icon {
        right: 10px; /* Keep inside viewport */
    }
}

@media (max-width: 968px) {
    .works-main {
        padding: 0 20px 60px;
    }
    
    .game-small-grid {
        padding-left: 0; /* Remove left padding on smaller screens */
        justify-content: center;
    }
    
    .other-works-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        padding: 0 10px;
    }
    
    .other-card.bottom-left {
        grid-column: 1;
        margin-top: 30px;
    }
    
}

@media (max-width: 768px) {
    .works-main {
        padding: 0 20px 60px;
    }
    
    .section-title {
        font-size: 20px;
        margin: 20px 0 20px 0;
        gap: 8px;
    }
    
    .section-title-star {
        width: 18px;
        height: 18px;
    }
    
    .game-projects {
        margin-bottom: 60px;
    }
    
    .game-featured {
        max-width: 100%;
        margin: 0;
    }
    
    /* Allow odysseus card overlay to overflow downward on mobile */
    .odysseus-card.work-card {
        overflow: visible !important;
    }
    
    .odysseus-card img {
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }
    
    .odysseus-title {
        font-size: 32px;
    }
    
    /* CTA strip: wider width, centered, half on card half below */
    .odysseus-overlay {
        width: 75% !important;
        padding: 16px 20px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        position: absolute;
        bottom: 0;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(40px);
        border-radius: 24px;
    }
    
    .odysseus-title {
        text-align: center;
        margin-bottom: 0;
    }
    
    .discover-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .discover-btn-merged {
        height: 44px;
    }
    
    .discover-icon-container {
        width: 44px;
        height: 44px;
    }
    
    .discover-text {
        font-size: 11px;
        padding: 0 16px 0 10px;
    }
    
    .discover-btn.circular {
        width: 100px;
        height: 100px;
        font-size: 10px;
    }
    
    .game-small-grid {
        display: grid;  /* Grid au lieu de flex */
        grid-template-columns: repeat(2, 1fr);  /* 2 colonnes sur mobile */
        padding-left: 0;
        padding-right: 0;
        gap: 16px;
        margin-top: 60px;
        padding-bottom: 40px;
    }
    
    .game-card {
        width: 100%;  /* Prend toute la largeur de la colonne */
        height: auto;
        aspect-ratio: 1;
        overflow: hidden !important; /* Keep overlay inside card on mobile */
    }
    
    .game-card img {
        height: 100%;
        width: 100%;
    }
    
    /* Position overlay at bottom for mobile small cards */
    .game-card .work-card-overlay {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 12px;
        gap: 8px;
        background-color: rgba(26, 14, 45, 0.95);
        border-radius: 0 0 12px 12px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Hide DISCOVER text on small cards, show only arrow */
    .discover-text-small {
        display: none;
    }
    
    .discover-icon-container-small {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    
    .discover-btn-small-merged {
        height: 32px;
        padding: 0;
    }
    
    .card-name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .plus-icon {
        display: none; /* Hide plus icon on mobile */
    }
    
    .other-works-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        padding: 0 10px;
        gap: 16px;
    }
    
    .other-card {
        overflow: hidden !important; /* Keep overlay inside card on mobile */
    }
    
    /* Position overlay at bottom for mobile other cards */
    .other-card .work-card-overlay {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 8px 12px;
        gap: 8px;
        background-color: rgba(26, 14, 45, 0.95);
        border-radius: 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Hide DISCOVER text on other cards, show only arrow */
    .other-card .discover-text-small {
        display: none;
    }
    
    .other-card.bottom-left {
        grid-column: auto;
        margin-top: 0;
    }
    
    
    .other-works-text {
        padding: 0 10px;
    }
    
    /* Center "Some other works" title on mobile */
    .other-works .section-title {
        text-align: center;
        justify-content: center;
    }
    
    /* Add bottom spacing for footer to avoid overlap with bottom navbar */
    .decorative-footer {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {

    .footer-info-block { 
        left: 15px; bottom: 15px; 
        font-size: 200px;
        max-width: 80vw;
    }

    .works-main {
        padding: 0 15px 50px;
    }
    
    .section-title {
        font-size: 20px;
        margin: 15px 0 15px 0 ;
    }
    
    .section-title-star {
        width: 16px;
        height: 16px;
    }
    
    /* Allow odysseus card overlay to overflow downward on mobile */
    .odysseus-card.work-card {
        overflow: visible !important;
    }
    
    .odysseus-card img {
        max-height: 300px;
    }
    
    .odysseus-title {
        font-size: 24px;
    }
    
    /* CTA strip: wider width, centered, half on card half below */
    .odysseus-overlay {
        width: 75% !important;
        padding: 14px 16px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: absolute;
        bottom: 0;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(35px);
        border-radius: 20px;
    }
    
    .odysseus-title {
        text-align: center;
        margin-bottom: 0;
    }
    
    .discover-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .discover-btn-merged {
        height: 40px;
    }
    
    .discover-icon-container {
        width: 40px;
        height: 40px;
    }
    
    .discover-text {
        font-size: 10px;
        padding: 0 12px 0 8px;
    }
    
    .discover-btn.circular {
        width: 80px;
        height: 80px;
        font-size: 8px;
    }
    
    .discover-more-text {
        font-size: 12px;
    }
    
    .game-small-grid {
        gap: 12px;
        grid-template-columns: repeat(2, 1fr);  /* Garde 2 colonnes */
    }
    
    .game-card {
        width: 100%;  /* Prend toute la largeur de la colonne */
    }
    
    .game-card .work-card-overlay {
        padding: 10px 8px;
        gap: 4px;
    }
    
    .card-name {
        font-size: 13px;
    }
    
    .discover-icon-container-small {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .discover-btn-small-merged {
        height: 28px;
    }
    
    .game-card,
    .other-card {
        max-width: 100%;
    }
    
    /* Ensure overlay styling is consistent at smaller screens */
    .other-card .work-card-overlay {
        padding: 6px 10px;
        gap: 6px;
        border-radius: 0;
    }
    
    .work-card-overlay h4 {
        font-size: 18px;
    }
    
    /* Center "Some other works" title on smaller mobile */
    .other-works .section-title {
        text-align: center;
        justify-content: center;
    }
    
    /* Add bottom spacing for footer to avoid overlap with bottom navbar */
    .decorative-footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* ============================================
   MOBILE TOUCH EVENT FIXES
   ============================================ */

/* Ensure all interactive elements are touchable */
.discover-btn,
.discover-btn.circular,
.discover-btn-small,
.discover-more-text,
.discover-btn-text,
.work-card-overlay a {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .odysseus-overlay .discover-text {
        font-size: 14px !important; /* **+27% (11→14px)** */
        letter-spacing: 1.2px !important;
        padding: 0 18px 0 12px !important;
    }
}

@media (max-width: 480px) {
    .odysseus-overlay .discover-text {
        font-size: 13px !important; /* **+18%** */
    }
}

/* Fix cercle blanc icône mobile UNIQUEMENT */
@media (max-width: 768px) {
    .discover-icon-container {
        width: 32px !important;  /* ✅ Cercle parfait */
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
    
    .discover-btn-merged {
        height: 32px !important; /* Conteneur parent */
    }
}

@media (max-width: 480px) {
    .discover-icon-container {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }
}

@media (max-width: 768px) {
    .card-name {
        font-size: 13px !important; /* **-19% (16→13px)** */
        margin-bottom: 2px !important;
    }
}

@media (max-width: 480px) {
    .card-name {
        font-size: 12px !important; /* **-25%** */
    }
}

@media (max-width: 768px) {
    .other-works .section-title {
        text-align: left !important;
        margin-left: 20px !important; /* **Gauche mobile** */
        padding-left: 0 !important;
        width: auto !important;
    }
    
    .other-works-text {
        padding-left: 20px !important;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    .other-works .section-title,
    .other-works-text {
        margin-left: 15px !important;
        padding-left: 15px !important;
    }
}

@media (max-width: 768px) {
    .other-works {
        margin-top: 20px !important; /* **Réduit (60→20px)** */
    }
    
    .other-works .section-title {
        margin-top: 0 !important; /* **Zéro marge haut titre** */
        margin-bottom: 15px !important;
    }
}

@media (max-width: 480px) {
    .other-works {
        margin-top: 15px !important; /* **Ultra-compact** */
    }
}

@media (max-width: 768px) {
    .game-projects {
        margin-bottom: 20px !important; /* 60px → 20px */
    }
}

@media (max-width: 480px) {
    .game-projects {
        margin-bottom: 10px !important; /* encore plus serré petit mobile */
    }
}

@media (max-width: 768px) {
    .other-works .section-title {
        margin-left: 10px !important; /* **20→10px gauche** */
    }
    
    .other-works-text {
        padding-left: 10px !important; /* **Même gauche** */
    }
}

@media (max-width: 480px) {
    .other-works .section-title,
    .other-works-text {
        margin-left: 5px !important; /* **Quasi-bord gauche** */
        padding-left: 5px !important;
    }
}
@media (max-width: 768px) {
    .work-projects .card .overlay,
    .work-card-overlay,
    [class*="work"] .overlay {
        border-bottom-left-radius: 10px !important;
        border-bottom-right-radius: 10px !important;
    }
}
/* ============================================
   CARTE ODYSSEUS - LARGEUR 72% AVEC HAUTEUR D'ORIGINE
   ============================================ */

/* Largeur en pourcentage */
.odysseus-card {
    max-width: 72% !important;
    margin: 0 auto;
}

/* Garder la hauteur d'origine de 450px */
.odysseus-card img {
    height: 450px !important;
}

/* Mobile - Un peu plus large */
@media (max-width: 768px) {
    .odysseus-card {
        max-width: 95% !important;
    }
    
    /* Réduire la hauteur sur mobile pour que ça reste proportionnel */
    .odysseus-card img {
        height: 300px !important;
    }
}