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

@font-face {
  font-family: "EuropaNuovaBold";
  src:
    local("EuropaNuovaBold"),
    url("assets/typo/EuropaNuovaBold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "TT_Biersal_Upright";
  src:
    local("TT_Biersal_Upright"),
    url("assets/typo/TT_Biersal_Upright.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

html {
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}
body{
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    color: #fff;
    text-align: center;
    margin: 0;
}

body::-webkit-scrollbar,
.scroll-container::-webkit-scrollbar {
    display: none;
}

body,
.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

h1{
    font-family: 'TT_Biersal_Upright';
    font-size: 6em;
    font-size: calc(2em + 2vw);
    margin: 0;
}

h2 {
    font-family: 'TT_Biersal_Upright';
}

p, button, a, span, div {
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #320EA5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: slideUp 1s ease-in-out 0.5s forwards;
}

.intro-content {
    text-align: center;
    font-size: 4em;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

@keyframes slideUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

#header{
    position: fixed;
    width: 100%;
    background: rgba(5, 5, 15, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    color: #f2f2f2;
    padding: 0;
    top: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.4s ease;
}

#header.color-section1 { background: rgba(50, 14, 165, 0.35); }
#header.color-section2 { background: rgba(80, 5, 30, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(200, 50, 80, 0.15); }
#header.color-section3 { background: rgba(18, 9, 58, 0.45); }
#header.color-section4 { background: rgba(5, 5, 15, 0.55); }
#header.color-section5 { background: rgba(158, 158, 158, 0.35); }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

/* Burger — toujours blanc */
.menu-burger { color: #fff; }

.menu-burger {
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 10000;
    -webkit-tap-highlight-color: transparent;
}

.menu-burger:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 24px rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.menu-burger .icon-bars,
.menu-burger .icon-times {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease, transform 0.3s ease;
    display: block;
}

.menu-burger .icon-times {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.7);
}

.menu-burger.open .icon-bars {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.7);
}

.menu-burger.open .icon-times {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.menu-nav {
    position: fixed;
    top: 70px;
    right: 0;
    background: rgba(5, 5, 15, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -4px 8px 32px rgba(0, 0, 0, 0.35);
    width: 25%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, background 0.4s ease, border-color 0.4s ease;
    z-index: 9998;
    display: flex;
    flex-direction: column;
}

/* Menu nav — bordure gauche colorée selon la section */
#header.color-section1 + .menu-nav { background: rgba(5, 5, 15, 0.45); border-left-color: rgba(124, 95, 245, 0.4); }
#header.color-section2 + .menu-nav { background: rgba(50, 2, 18, 0.92); border-left-color: rgba(200, 60, 90, 0.45); }
#header.color-section3 + .menu-nav { background: rgba(5, 5, 15, 0.45); border-left-color: rgba(107, 79, 160, 0.4); }
#header.color-section4 + .menu-nav { background: rgba(5, 5, 15, 0.45); border-left-color: rgba(85, 114, 244, 0.4); }
#header.color-section5 + .menu-nav { background: rgba(5, 5, 15, 0.45); border-left-color: rgba(200, 200, 200, 0.3); }

.menu-nav.active {
    max-height: calc(100vh - 70px);
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.menu-nav ul {
    list-style: none;
    padding: 40px 0;
    margin: 0;
}

.menu-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.menu-nav a {
    display: block;
    padding: 20px 25px;
    color: #f2f2f2;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 20px;
}

.menu-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Hover liens — couleur selon la section */
#header.color-section1 + .menu-nav a:hover { background: rgba(124, 95, 245, 0.4); color: #fff; }
#header.color-section2 + .menu-nav a:hover { background: rgba(180, 30, 65, 0.4); color: #fff; }
#header.color-section3 + .menu-nav a:hover { background: rgba(107, 79, 160, 0.4); color: #fff; }
#header.color-section4 + .menu-nav a:hover { background: rgba(85, 114, 244, 0.4); color: #fff; }
#header.color-section5 + .menu-nav a:hover { background: rgba(200, 200, 200, 0.4); color: #222; }

.menu-footer {
    padding: 60px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
    margin-top: auto;
}

.language-selector {
    font-size: 18px;
    color: #f2f2f2;
}

.lang-item {
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lang-item:hover {
    background: #3E5BEC;
    color: #000;
}

.lang-item.active {
    background: #3E5BEC;
    color: #000;
    font-weight: bold;
}

.lang-divider {
    margin: 0 8px;
    color: #888;
}

.scroll-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.scroll-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.scroll-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    border-color: #fff;
}

.scroll-dot.active {
    background: #fff;
    transform: scale(1.4);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.scroll-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-weight: normal;
}

.scroll-dot:hover::after {
    opacity: 1;
}

.scroll-container {
    overflow-y: scroll;
    height: 100vh;
    scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.section {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
}

.section h1 {
    max-width: 90%;
    word-wrap: break-word;
}

.section p {
    max-width: 80%;
    padding: 0 0px;
    line-height: 1.6;
    font-size: 1.2em;
}

.section-footer {
    min-height: auto;
    height: auto;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
}

/* Annuler tous les styles hérités de .section p dans le footer */
.section-footer p {
    font-size: inherit;
    max-width: none;
    padding: 0;
    line-height: inherit;
}

#section1{
    background: linear-gradient(-50deg, #320EA5, #320EA5, #320EA5, #320EA5);
    position: relative;
    overflow: hidden;
}

#stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.section1-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.section1-content img {
    transition: transform 0.55s ease, filter 0.55s ease;
    cursor: pointer;
}

.section1-content img:hover {
    transform: scale(1.07);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
}

#section2{
    background: linear-gradient(150deg, #1a0010 0%, #3a0020 30%, #5c0030 55%, #3a0020 78%, #1a0010 100%);
    overflow: hidden;
}

#section3{
    background: linear-gradient(-45deg, #12093A, #20135a, #12093A, #20135a);
}

#section4{
    background: linear-gradient(-45deg, #2a40c8, #3E5BEC, #2a40c8, #5572f4);
    color: #fff;
    overflow: hidden;
    height: auto;
    min-height: 100vh;
}

#section5{
    background: linear-gradient(-45deg, #2a2a2a, #3a3a3a, #2a2a2a, #3a3a3a);
}

.actu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
}

.actu-title {
    font-size: 4em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.actu-cards {
    display: flex;
    gap: 80px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.actu-card {
    width: 623px;
    position: relative;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    height: 450px;
}

.actu-card-anim-wrap {
    display: block; width: 100%; height: 100%;
    will-change: transform;
    filter: drop-shadow(4px 6px 14px rgba(0,0,0,0.28));
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.actu-card:hover .actu-card-anim-wrap {
    transform: scale(1.03) translateY(-6px);
}

.actu-card-inner {
    position: relative;
    width: min(623px, 100%);
    height: 450px;
    background: #ffffff;
    clip-path: path('M0 39C0 16.2 20.87 -1.73 45.09 0.134C276.61 18 411.89 22.1 565.54 3.16C590.84 0.046 613.66 18.3 613.66 42.2V401.2C613.66 424.3 592.24 442.3 567.71 440C343.99 419 215.85 418.6 47.42 438.5C22.38 441.5 0 423.3 0 399.6V39Z');
    transition: background 0.4s ease;
}

.actu-card:hover .actu-card-inner {
    background: #fafafa;
}

/* Hide old shape dividers */
.custom-shape-divider-top-1771239449,
.custom-shape-divider-bottom-1771252433 {
    display: none;
}

.actu-badge {
    position: absolute;
    top: 26px;
    left: 28px;
    background: #ED703A;
    color: #fff;
    padding: 8px 22px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.78em;
    z-index: 3;
    letter-spacing: 2px;
    font-style: italic;
    text-transform: uppercase;
}

.actu-image {
    position: absolute;
    top: 8px;
    left: 11px;
    width: 592px;
    height: 305px;
    clip-path: path('M0 39.4C0 15.8 21.92 -2.47 46.66 0.273C297.83 28.1 425.09 31 537.86 8.1C564.98 2.56 591.7 21.4 591.7 47.6V265.1C591.7 287.1 572.61 304.8 549.44 303.8C375.21 296 333.09 262.3 47.88 298.6C22.76 301.8 0 283.5 0 259.7V39.4Z');
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    margin-bottom: 0;
}

.actu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
    filter: brightness(0.9);
}

.actu-card:hover .actu-image img {
    filter: brightness(1.05);
}

.actu-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 142px;
    padding: 20px 28px 16px 28px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.actu-text {
    color: #000;
    line-height: 1.4;
    margin: 0;
    text-align: left;
    font-style: normal;
    font-weight: 700;
    font-size: 0.98em;
}

.actu-text:nth-of-type(2) {
    display: none;
}

.actu-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 12px;
    padding-top: 0;
    border-top: none;
}

.actu-logo {
    display: none;
}

.actu-date {
    color: #999;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ── Wrapper : gère les étoiles, déclenche le hover ── */
.btn-star-wrap {
    position: relative;
    display: inline-block;
}

.btn-star-wrap .star-1,
.btn-star-wrap .star-2,
.btn-star-wrap .star-3,
.btn-star-wrap .star-4,
.btn-star-wrap .star-5,
.btn-star-wrap .star-6 {
    position: absolute;
    fill: #fff;
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
    z-index: 5;
}
.btn-star-wrap .star-1 { width: 16px; top:  0px;    left:  12px;  }
.btn-star-wrap .star-2 { width: 10px; top:  2px;    left:  40px;  }
.btn-star-wrap .star-3 { width:  8px; top:  0px;    right: 50px;  }
.btn-star-wrap .star-4 { width: 12px; bottom:  0px; left:  20px;  }
.btn-star-wrap .star-5 { width:  8px; bottom:  2px; right: 30px;  }
.btn-star-wrap .star-6 { width: 14px; bottom:  0px; right: 12px;  }

.btn-star-wrap:hover .star-1 { opacity: 1; transform: translate(-16px, -14px) rotate(-20deg) scale(1.4); }
.btn-star-wrap:hover .star-2 { opacity: 1; transform: translate( -6px, -18px) scale(1.2); }
.btn-star-wrap:hover .star-3 { opacity: 1; transform: translate( 14px, -14px) rotate(15deg) scale(1.3); }
.btn-star-wrap:hover .star-4 { opacity: 1; transform: translate(-14px,  16px) rotate(-10deg) scale(1.2); }
.btn-star-wrap:hover .star-5 { opacity: 1; transform: translate(  6px,  16px) scale(1.1); }
.btn-star-wrap:hover .star-6 { opacity: 1; transform: translate( 16px,  16px) rotate(20deg) scale(1.4); }

/* ── Bouton : overflow:hidden garantit que le shimmer ne déborde pas ── */
.voir-plus-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.55);
    color: #fff;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    font-size: 0.9em;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 40px;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.voir-plus-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-15deg);
    pointer-events: none;
}

.btn-star-wrap:hover .voir-plus-btn,
.voir-plus-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(255,255,255,0.15);
}

.btn-star-wrap:hover .voir-plus-btn::after,
.voir-plus-btn:hover::after {
    animation: shimmer-btn 0.7s ease forwards;
}

@keyframes shimmer-btn {
    0%   { left: -75%; opacity: 1; }
    100% { left: 125%; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   SECTION 3 — GAME SPOTLIGHT
═══════════════════════════════════════════════════════ */

/* Particules décoratives */
.game-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gp {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: gpFloat 12s ease-in-out infinite;
}
.gp-1 { width: 350px; height: 350px; background: radial-gradient(circle, #7c4dff, transparent 70%); top: -80px; left: -80px; animation-delay: 0s; }
.gp-2 { width: 250px; height: 250px; background: radial-gradient(circle, #b39ddb, transparent 70%); bottom: 40px; right: 10%; animation-delay: -4s; }
.gp-3 { width: 180px; height: 180px; background: radial-gradient(circle, #ede7f6, transparent 70%); top: 40%; left: 55%; animation-delay: -8s; }
@keyframes gpFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.07); }
}

/* Conteneur principal */
.game-section-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 60px 60px;
}

/* Wrapper slides */
.game-slides-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
}

/* Slide individuel */
.game-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 6%;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}
.game-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Colonne infos (gauche) ── */
.game-info {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    padding-left: 2%;
}
.game-badges-row { display: flex; flex-wrap: wrap; gap: 10px; }

.game-genre-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
}

.game-title {
    font-family: 'TT_Biersal_Upright', serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1;
    color: #fff;
    margin: 0;
}

.game-desc {
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
    max-width: 820px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.game-tag {
    background: rgba(124, 77, 255, 0.2);
    border: 1px solid rgba(124, 77, 255, 0.5);
    color: #d1c4e9;
    font-size: 0.78em;
    padding: 5px 14px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* Bouton CTA (reprend le style voir-plus-btn) */
.game-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.55);
    color: #fff;
    text-decoration: none;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    font-size: 0.9em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    margin-top: 8px;
}

.game-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-15deg);
    pointer-events: none;
}

.game-cta-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(255,255,255,0.15);
}

.game-cta-btn:hover::after {
    animation: shimmer-btn 0.7s ease forwards;
}

/* Étoiles gérées par .btn-star-wrap — supprimer les anciennes règles sur .game-cta-btn */
.game-cta-btn .star-1,
.game-cta-btn .star-2,
.game-cta-btn .star-3,
.game-cta-btn .star-4,
.game-cta-btn .star-5,
.game-cta-btn .star-6 { display: none; }

/* ── Colonne artwork (droite) ── */
.game-artwork {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.game-artwork-frame {
    position: relative;
    width: min(185%, 70vw);
    max-width: 920px;
    aspect-ratio: 16/9;
    overflow: visible;
    transition: transform 0.08s ease-out;
    will-change: transform;
}

.game-artwork-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    position: relative;
    z-index: 1;
}

.game-artwork-glow {
    display: none;
}

/* ── Barre de navigation bas ── */
.game-nav-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 28px;
}

.game-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    backdrop-filter: blur(6px);
}
.game-nav-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
    transform: scale(1.1);
}

.game-counter {
    font-size: 0.9em;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    min-width: 60px;
    text-align: center;
}
.game-counter span:first-child { color: #fff; font-size: 1.2em; }
.game-counter-sep { margin: 0 4px; }

.game-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}
.game-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 1.5px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.game-dot:hover  { background: rgba(255,255,255,0.7); transform: scale(1.2); }
.game-dot.active { background: #fff; transform: scale(1.35); border-color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .game-section-inner { padding: 70px 30px 40px; }
    .game-slide { flex-direction: column-reverse; gap: 30px; position: relative; inset: auto; }
    .game-slides-wrapper { flex-direction: column; }
    .game-artwork-frame { transform: none; max-width: 100%; }
    .game-info { align-items: flex-start; text-align: left; }
    .game-desc { max-width: 100%; }
}
@media (max-width: 600px) {
    .game-section-inner { padding: 60px 20px 30px; }
    .game-title { font-size: 2rem; }
    .game-tags { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .menu-nav { width: 50%; }
    .actu-cards { flex-direction: column; gap: 50px; }
    .actu-card { width: 360px; }
    .actu-card-inner { width: 360px; height: 226px; clip-path: path('M0 19.7C0 8.1 9.9 -0.9 21.4 0.07C131.2 9.1 195.7 11.2 318.9 1.6C331.4 0.6 341 8.9 341 21.3V196.5C341 207.8 330.7 216.7 319.5 215.6C197.8 204.2 124.2 203.9 27.3 215.2C13.1 216.8 0 207 0 192.6V19.7Z'); }
    .actu-image { width: 342px; height: 152px; left: 9px; top: 5px; clip-path: path('M0 19.7C0 7.9 12.6 -1.2 26.9 0.14C171.9 13.9 245.4 15.5 310.3 4.04C325.9 1.28 341 10.7 341 23.7V131.8C341 143.3 330 151.9 316.6 151.3C216.5 146.5 192.2 130 27.6 149.4C13.1 151.2 0 141.9 0 129.8V19.7Z'); }
    .actu-content { height: 70px; padding: 8px 20px; }
    .actu-card:hover { transform: translateY(-10px) scale(1.02); }
    .actu-title { font-size: 1.8em; padding-top: 0; }
    .section p { max-width: 90%; font-size: 1em; }
    h1 { font-size: calc(1.5em + 2vw); }
}

@media (max-width: 480px) {
    .menu-nav { width: 70%; }
    .header-content { padding: 0 20px; }
    .scroll-nav { left: 10px; }
    .actu-title { font-size: 1.5em; }
    .actu-card { width: 320px; }
    .actu-card-inner { width: 320px; height: 246px; }
    .actu-image { width: 302px; height: 165px; }
    .section p { max-width: 95%; font-size: 0.9em; padding: 0 10px; }
}

.custom-shape-divider-top-1771239449 {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top-1771239449 svg {
    position: relative;
    display: block;
    width: calc(170% + 1.3px);
    height: 40px;
}

.custom-shape-divider-top-1771239449 .shape-fill {
    fill: #FFFFFF;
}

.custom-shape-divider-bottom-1771252433 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    overflow: hidden;
    line-height: 1;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1771252433 svg {
    position: relative;
    display: block;
    width: calc(180% + 1.3px);
    margin-top: 168px;
    height: 30px;
}

.custom-shape-divider-bottom-1771252433 .shape-fill {
    fill: #FFFFFF;
}

/* =============================================
   Logo nav avec hover stars
   ============================================= */
@keyframes logo-pulse {
  0%   { filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
  15%  { filter: drop-shadow(0 0 6px rgba(255,255,255,0.6)); }
  30%  { filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
  100% { filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
}

.logo-hover-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  cursor: pointer;
  isolation: isolate;
}

.logo-hover-wrap a img { animation: logo-pulse 4s ease-in-out infinite; }

.logo-hover-wrap .star-1,
.logo-hover-wrap .star-2,
.logo-hover-wrap .star-3,
.logo-hover-wrap .star-4,
.logo-hover-wrap .star-5,
.logo-hover-wrap .star-6 {
  opacity: 0;
}

/* ✅ Etoiles en BLANC avec drop-shadow blanc */
.logo-hover-wrap:hover .star-1 { top: -60%; left: -20%; filter: drop-shadow(0 0 6px #ffffff); z-index: 2; opacity: 1; }
.logo-hover-wrap:hover .star-2 { top: -20%; left: 5%;  filter: drop-shadow(0 0 6px #ffffff); z-index: 2; opacity: 1; }
.logo-hover-wrap:hover .star-3 { top: 50%;  left: 20%; filter: drop-shadow(0 0 6px #ffffff); z-index: 2; opacity: 1; }
.logo-hover-wrap:hover .star-4 { top: 25%;  left: 75%; filter: drop-shadow(0 0 6px #ffffff); z-index: 2; opacity: 1; }
.logo-hover-wrap:hover .star-5 { top: 20%;  left: 105%; filter: drop-shadow(0 0 6px #ffffff); z-index: 2; opacity: 1; }
.logo-hover-wrap:hover .star-6 { top: 0%;   left: 55%; filter: drop-shadow(0 0 6px #ffffff); z-index: 2; opacity: 1; }

/* =============================================
   UIverse silent-lizard-44 — HOVER STARS EFFECT
   ============================================= */
.star-1 {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 16px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
  pointer-events: none;
}
.star-2 {
  position: absolute;
  top: 45%;
  left: 45%;
  width: 10px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);
  pointer-events: none;
}
.star-3 {
  position: absolute;
  top: 40%;
  left: 40%;
  width: 4px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);
  pointer-events: none;
}
.star-4 {
  position: absolute;
  top: 20%;
  left: 40%;
  width: 6px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 0.8s cubic-bezier(0, 0.4, 0, 1.01);
  pointer-events: none;
}
.star-5 {
  position: absolute;
  top: 25%;
  left: 45%;
  width: 10px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 0.6s cubic-bezier(0, 0.4, 0, 1.01);
  pointer-events: none;
}
.star-6 {
  position: absolute;
  top: 5%;
  left: 50%;
  width: 4px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 0.8s ease;
  pointer-events: none;
}



.fil0 {
  fill: #fffdef;
}

/* ✅ Etoiles du logo nav en BLANC */
.logo-hover-wrap .star-1 path,
.logo-hover-wrap .star-2 path,
.logo-hover-wrap .star-3 path,
.logo-hover-wrap .star-4 path,
.logo-hover-wrap .star-5 path,
.logo-hover-wrap .star-6 path {
  fill: #ffffff;
}

/* =============================================
   UIverse nasty-moth-15 — DARK/LIGHT TOGGLE
   ============================================= */
.toggle-cont {
  --primary: #54a8fc;
  --light: #d9d9d9;
  --dark: #121212;
  --gray: #414344;
  position: relative;
  z-index: 10;
  width: fit-content;
  height: 50px;
  border-radius: 9999px;
  margin: 20px auto 0;
}
.toggle-cont .toggle-input {
  display: none;
}
.toggle-cont .toggle-label {
  --gap: 5px;
  --width: 50px;
  cursor: pointer;
  position: relative;
  display: inline-block;
  padding: 0.5rem;
  width: calc((var(--width) + var(--gap)) * 2);
  height: 100%;
  background-color: var(--dark);
  border: 1px solid #777777;
  border-bottom: 0;
  border-radius: 9999px;
  box-sizing: content-box;
  transition: all 0.3s ease-in-out;
}
.toggle-label::before {
  content: "";
  position: absolute;
  z-index: -10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 1.5rem);
  height: calc(100% + 1.5rem);
  background-color: var(--gray);
  border: 1px solid #777777;
  border-bottom: 0;
  border-radius: 9999px;
  transition: all 0.3s ease-in-out;
}
.toggle-label::after {
  content: "";
  position: absolute;
  z-index: -10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% -100%, rgb(58,155,252) 0%, rgba(12,12,12,1) 80%);
  border-radius: 9999px;
}
.toggle-cont .toggle-label .cont-icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: var(--width);
  height: 50px;
  background-image: radial-gradient(circle at 50% 0%, #666666 0%, var(--gray) 100%);
  border: 1px solid #aaaaaa;
  border-bottom: 0;
  border-radius: 9999px;
  box-shadow: inset 0 -0.15rem 0.15rem var(--primary), inset 0 0 0.5rem 0.75rem var(--second);
  transition: transform 0.3s ease-in-out;
  overflow: clip;
}
.cont-icon .sparkle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: calc(var(--width) * 1px);
  aspect-ratio: 1;
  background-color: var(--light);
  border-radius: 50%;
  transform-origin: 50% 50%;
  rotate: calc(1deg * var(--deg));
  transform: translate(-50%, -50%);
  animation: sparkle calc(100s / var(--duration)) linear calc(0s / var(--duration)) infinite;
}
@keyframes sparkle {
  to {
    width: calc(var(--width) * 0.5px);
    transform: translate(2000%, -50%);
  }
}
.cont-icon .icon {
  width: 1.1rem;
  fill: var(--light);
}
.toggle-cont:has(.toggle-input:checked) {
  --checked: true;
}
@container style(--checked: true) {
  .toggle-cont .toggle-label {
    background-color: #41434400;
    border: 1px solid #3d6970;
    border-bottom: 0;
  }
  .toggle-cont .toggle-label::before {
    box-shadow: 0 1rem 2.5rem -2rem #0080ff;
  }
  .toggle-cont .toggle-label .cont-icon {
    overflow: visible;
    background-image: radial-gradient(circle at 50% 0%, #045ab1 0%, var(--primary) 100%);
    border: 1px solid var(--primary);
    border-bottom: 0;
    transform: translateX(calc((var(--gap) * 2) + 100%)) rotate(-225deg);
  }
  .toggle-cont .toggle-label .cont-icon .sparkle {
    z-index: -10;
    width: calc(var(--width) * 1.5px);
    background-color: #acacac;
    animation: sparkle calc(100s / var(--duration)) linear calc(10s / var(--duration)) infinite;
  }
  @keyframes sparkle {
    to {
      width: calc(var(--width) * 1px);
      transform: translate(5000%, -50%);
    }
  }
}

.theme-toggle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 25px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.theme-label-text {
  display: none;
}

.toggle-cont {
  transform: scale(0.65);
  transform-origin: center top;
  margin-bottom: -12px;
}

/* =============================================
   DARK / LIGHT MODE
   ============================================= */
body.light-mode #section1 { background: linear-gradient(-50deg, #5b30e8, #7b52f0); }
body.light-mode #section2 { background: linear-gradient(150deg, #1a0010 0%, #3a0020 30%, #5c0030 55%, #3a0020 78%, #1a0010 100%); }
body.light-mode #section3 { background: linear-gradient(-45deg, #2a1a6a, #3b2480); }
body.light-mode #section4 { background: linear-gradient(-45deg, #e8ddd8, #ccc9c7); color: #222; }
body.light-mode #section4 h1, body.light-mode #section4 p { color: #222; }
body.light-mode #section5 { background: linear-gradient(-45deg, #c0c0c0, #d8d8d8); color: #222; }
body.light-mode #section5 h1, body.light-mode #section5 p { color: #222; }

body.light-mode #header { background: rgba(232, 221, 216, 0.3); }
body.light-mode #header.color-section1 { background: rgba(91, 48, 232, 0.35); }
body.light-mode #header.color-section2 { background: rgba(80, 5, 30, 0.55); }
body.light-mode #header.color-section3 { background: rgba(42, 26, 106, 0.45); }
body.light-mode #header.color-section4 { background: rgba(232, 221, 216, 0.35); }
body.light-mode #header.color-section5 { background: rgba(192, 192, 192, 0.35); }

body.light-mode .menu-nav { background: #f0f0f0; }
body.light-mode .menu-nav a { color: #222; }
body.light-mode .menu-nav li { border-bottom-color: #ddd; }
body.light-mode .theme-label-text { color: #333; }
body.light-mode .theme-toggle-wrapper { border-top-color: #ddd; }
body.light-mode .menu-footer { border-top-color: #ddd; }
body.light-mode .language-selector { color: #222; }
body.light-mode .lang-divider { color: #555; }

body.light-mode .actu-card { background: none; }
body.light-mode .actu-text { color: #111; }
body.light-mode .actu-text:nth-of-type(2) { color: #555; }
body.light-mode .actu-date { color: #888; }
body.light-mode .actu-footer { border-top-color: #eee; }

body.light-mode .game-title,
body.light-mode .game-desc { color: #fff; }

body.light-mode .scroll-dot { background: rgba(0,0,0,0.3); border-color: rgba(0,0,0,0.5); }
body.light-mode .scroll-dot.active { background: rgba(0,0,0,0.8); border-color: rgba(0,0,0,0.8); }
body.light-mode .scroll-nav { background: rgba(255,255,255,0.25); }

#section1, #section2, #section3, #section4, #section5,
#header, .menu-nav, .actu-card, .scroll-nav, .scroll-dot {
  transition: background 0.4s ease, color 0.4s ease;
}

/* =============================================
   SECTION 4 — HISTOIRE / TIMELINE
   ============================================= */

#section4 {
    color: #1a1a1a;
    overflow: hidden;
}

/* Étoiles décoratives flottantes */
.histoire-star {
    position: absolute;
    fill: #1a1a1a;
    opacity: 0.07;
    pointer-events: none;
}
.histoire-star-a {
    width: 180px;
    top: 8%;
    left: -40px;
    transform: rotate(-15deg);
}
.histoire-star-b {
    width: 90px;
    bottom: 12%;
    right: 5%;
    transform: rotate(30deg);
}
.histoire-star-c {
    width: 50px;
    top: 40%;
    right: 18%;
    transform: rotate(10deg);
}

.histoire-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    gap: 40px;
    padding: 0 20px;
}

.histoire-header {
    text-align: center;
}

.histoire-header h1 {
    color: #1a1a1a;
    letter-spacing: 2px;
}

.histoire-intro {
    color: #4a4a4a;
    font-size: 1.1em;
    margin-top: 16px;
    font-style: italic;
}

/* Timeline */
.histoire-timeline {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Ligne verticale centrale */
.histoire-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: linear-gradient(to bottom, transparent, #1a1a1a 10%, #1a1a1a 90%, transparent);
    transform: translateX(-50%);
    opacity: 0.2;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
}

/* Alternance gauche/droite — inversée */
.timeline-item:nth-child(odd) .timeline-year {
    text-align: left;
    order: 3;
}
.timeline-item:nth-child(odd) .timeline-dot {
    order: 2;
}
.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    order: 1;
}

.timeline-item:nth-child(even) .timeline-year {
    text-align: left;
    order: 1;
}
.timeline-item:nth-child(even) .timeline-dot {
    order: 2;
}
.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    order: 3;
}

.timeline-year {
    font-family: 'TT_Biersal_Upright', serif;
    font-size: 2em;
    color: #320EA5;
    opacity: 0.7;
    line-height: 1;
}

.timeline-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.timeline-dot svg {
    width: 18px;
    height: 18px;
    fill: #320EA5;
    filter: drop-shadow(0 0 6px rgba(50,14,165,0.35));
    transition: transform 0.4s ease;
}

.timeline-item:hover .timeline-dot svg {
    transform: rotate(45deg) scale(1.3);
}

.timeline-content h2 {
    font-family: 'TT_Biersal_Upright', serif;
    font-size: 1.3em;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.9em;
    color: #4a4a4a;
    line-height: 1.6;
    max-width: none;
    padding: 0;
}

/* Section 4 — textes sur fond bleu */
#section4 .histoire-header h1,
#section4 .histoire-content h1  { color: #fff; }
#section4 .histoire-intro        { color: rgba(255,255,255,.75); }
#section4 .timeline-year         { color: rgba(255,255,255,.45); opacity: 1; }
#section4 .timeline-content h2   { color: #fff; }
#section4 .timeline-content p    { color: rgba(255,255,255,.68); }
#section4 .histoire-timeline::before { background: linear-gradient(to bottom, transparent, rgba(255,255,255,.3) 10%, rgba(255,255,255,.3) 90%, transparent); }
#section4 .timeline-dot svg      { fill: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.5)); }
#section4 .histoire-star         { fill: rgba(255,255,255,.18); }
#section4 .histoire-image-slot   { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.07); }
#section4 .histoire-image-placeholder { color: rgba(255,255,255,.3); }
#section4 .histoire-image-placeholder svg { fill: rgba(255,255,255,.15); }

/* Glow + reflet qui passe sur le bloc au survol */
#section4 .timeline-content {
    padding: 10px 14px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

#section4 .timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-15deg);
    opacity: 0;
    transition: none;
}

#section4 .timeline-item:hover .timeline-content {
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 30px rgba(180,200,255,0.18), 0 0 8px rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

#section4 .timeline-item:hover .timeline-content::after {
    opacity: 1;
    animation: shimmer-bloc 0.7s ease forwards;
}

@keyframes shimmer-bloc {
    0%   { left: -75%; opacity: 1; }
    100% { left: 125%; opacity: 1; }
}
body.light-mode .histoire-header h1 { color: #fff; }
body.light-mode .histoire-intro { color: rgba(255,255,255,0.78); }
body.light-mode .timeline-year { color: rgba(255,255,255,0.5); }
body.light-mode .timeline-content h2 { color: #fff; }
body.light-mode .timeline-content p { color: rgba(255,255,255,0.68); }
body.light-mode .histoire-timeline::before { background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3) 10%, rgba(255,255,255,0.3) 90%, transparent); }

@media (max-width: 700px) {
    .histoire-timeline::before { left: 20px; }
    .timeline-item {
        grid-template-columns: 20px 1fr;
        grid-template-rows: auto auto;
        gap: 10px 16px;
    }
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        order: unset;
    }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        grid-column: 1;
        grid-row: 1 / span 2;
        order: unset;
    }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        order: unset;
    }
}


/* =============================================
   SECTION 5 — FOOTER v5 — Minimal centré
   ============================================= */

#section5 {
    color: #fff;
    min-height: auto;
    height: auto;
    padding: 70px 40px 50px;
    justify-content: center;
    overflow: hidden;
}




/* ═══════════════════════════════════════════════════════════
   PAGES INTÉRIEURES — Additions au CSS existant
   ═══════════════════════════════════════════════════════════ */

/* ── Layout de base ────────────────────────────────────────── */

body.actu-page    { background: linear-gradient(150deg, #1a0010 0%, #3a0020 30%, #5c0030 55%, #3a0020 78%, #1a0010 100%) fixed; overflow-y: auto; }
body.games-page   { background: #12093A; overflow-y: auto; }
body.histoire-page {
    background: linear-gradient(-45deg, #2a40c8, #3E5BEC, #2a40c8, #5572f4);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    overflow-y: auto;
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
body.legal-page   { background: #12093A; overflow-y: auto; }

.page-wrapper { padding-top: 70px; min-height: 100vh; }
body.actu-page .page-wrapper { min-height: unset; }

/* ── Hero commun aux pages intérieures ─────────────────────── */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 40px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}
.page-hero h1 {
    font-family: 'TT_Biersal_Upright', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    color: #fff;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
    margin: 0;
}
.page-hero .hero-lead {
    color: rgba(255,255,255,.78);
    font-size: 1.05em;
    font-style: italic;
    max-width: 500px;
    position: relative;
    z-index: 2;
    padding: 0;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    pointer-events: none;
}
body.actu-page     .page-hero { background: transparent; padding: 60px 40px 40px; }
body.actu-page     .page-content { padding-top: 20px; }
body.actu-page     .page-hero::after { display: none; }
body.actu-page     .hero-star { display: none; }
body.actu-page     #header { background: rgba(80, 5, 30, 0.55) !important; backdrop-filter: blur(14px) !important; -webkit-backdrop-filter: blur(14px) !important; border-bottom: 1px solid rgba(200, 50, 80, 0.15) !important; }
body.actu-page     #header + .menu-nav { background: rgba(50, 2, 18, 0.92) !important; border-left-color: rgba(200, 60, 90, 0.45) !important; }
body.actu-page     #header + .menu-nav a:hover { background: rgba(180, 30, 65, 0.4) !important; color: #fff !important; }
body.games-page    .page-hero { background: transparent; }
body.games-page    .page-hero::after { display: none; }
body.histoire-page .page-hero { background: transparent; }
body.histoire-page .page-hero::after { background: transparent; }
body.legal-page    .page-hero { background: linear-gradient(-45deg, #320EA5, #4a1fd4, #2a0d8f); }
body.legal-page    .page-hero::after { background: linear-gradient(to bottom, transparent, #12093A); }

/* ── Étoiles filigrane dans les héros ──────────────────────── */

.hero-star { position: absolute; fill: #fff; pointer-events: none; }
.hero-star-a { width: 260px; top: -50px; right: -60px;  opacity: .07; transform: rotate(20deg);  }
.hero-star-b { width: 110px; bottom: 30px; left: 4%;    opacity: .07; transform: rotate(-15deg); }
.hero-star-c { width:  50px; top: 35%;   left: 18%;     opacity: .06; transform: rotate(35deg);  }
.hero-star-d { width:  35px; top: 25%;   right: 20%;    opacity: .06; transform: rotate(-10deg); }

/* ── Section intérieure (contenu, fond légèrement plus sombre) */

.page-content {
    padding: 70px 40px 100px;
    position: relative;
}
body.actu-page     .page-content { background: transparent; }
body.games-page    .page-content { background: transparent; }
body.histoire-page .page-content { background: transparent; }
body.legal-page    .page-content { background: #12093A; }

/* ── Divider label (ligne + texte + ligne) ─────────────────── */

.section-divider-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: .75em;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 48px;
}
.section-divider-label::before,
.section-divider-label::after {
    content: '';
    height: 1px;
    background: rgba(255,255,255,.15);
    width: 80px;
}

/* ── Filtres (page actu) ───────────────────────────────────── */

.actu-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}
.filter-btn {
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    font-size: .8em;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: background .3s, border-color .3s, transform .2s;
}
.filter-btn:hover { background: rgba(255,255,255,.2); border-color: #fff; transform: translateY(-2px); }
.filter-btn.active { background: #fff; color: #ED703A; border-color: #fff; }

/* ── Grille d'articles ─────────────────────────────────────── */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 36px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
    cursor: pointer;
    text-align: left;
}
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,.28);
}

/* Featured = pleine largeur, 2 colonnes internes */
.article-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.article-card.featured .article-thumb { aspect-ratio: auto; height: 100%; min-height: 280px; border-radius: 0; }
.article-card.featured .article-title { font-size: 1.8em; }
.article-card.featured .article-excerpt { -webkit-line-clamp: 5; }

.article-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: #f0e0d0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .article-thumb img { transform: scale(1.04); }

.thumb-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #f5d5b8, #edd0b0);
    display: flex; align-items: center; justify-content: center;
}
.thumb-placeholder svg { width: 48px; fill: rgba(237,112,58,.3); }

.article-body { padding: 22px 24px 24px; }

.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.article-tag { font-size: .72em; letter-spacing: .1em; text-transform: uppercase; color: #ED703A; font-weight: 700; }

.article-title {
    font-family: 'TT_Biersal_Upright', serif;
    font-size: 1.35em;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.2;
}
.article-excerpt {
    font-size: .88em; color: #666; line-height: 1.6;
    max-width: 100%; padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-footer-bar {
    display: flex; align-items: center; justify-content: flex-end;
    margin-top: 18px; padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.read-more {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .8em; letter-spacing: .1em; text-transform: uppercase;
    color: #ED703A; text-decoration: none;
    transition: gap .2s;
}
.read-more:hover { gap: 10px; }

/* ── Page Games — layout 2 colonnes ───────────────────────── */

.game-page-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 40px;
}
.game-page-info {
    display: flex; flex-direction: column;
    gap: 24px; text-align: left;
}

/* Badges statut */
.game-status-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.game-status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.65);
    font-size: .78em; letter-spacing: .1em; text-transform: uppercase;
    padding: 7px 16px; border-radius: 50px;
}
.status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #ED703A;
    animation: pulse-status 2s ease-in-out infinite;
}
@keyframes pulse-status { 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* Artwork placeholder page games */
.game-page-visual { display: flex; align-items: center; justify-content: center; }
.game-artwork-placeholder {
    width: 100%; aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1a0f4e, #2d1a7a);
    border-radius: 20px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px;
    color: rgba(255,255,255,.25);
    font-size: .82em; letter-spacing: .1em; text-transform: uppercase;
    box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.07);
}
.game-artwork-placeholder svg { width: 50px; fill: rgba(255,255,255,.12); }

/* Coming soon */
.coming-soon-section { padding: 0 40px 80px; max-width: 1200px; margin: 0 auto; }
.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.coming-soon-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px; padding: 32px 28px; text-align: left;
    transition: background .3s, border-color .3s;
}
.coming-soon-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.coming-soon-card svg { width: 28px; fill: rgba(255,255,255,.2); margin-bottom: 16px; display: block; }
.coming-soon-card h3 {
    font-family: 'TT_Biersal_Upright', serif;
    font-size: 1.4em; color: rgba(255,255,255,.5); margin-bottom: 8px;
}
.coming-soon-card p {
    font-size: .82em; color: rgba(255,255,255,.3);
    line-height: 1.5; padding: 0; max-width: 100%;
}

/* ── Page Histoire — sections spécifiques ──────────────────── */

.manifeste-section {
    padding: 80px 40px;
    max-width: 900px; margin: 0 auto;
    display: flex; flex-direction: column;
    align-items: center; gap: 24px; text-align: center;
}
.manifeste-eyebrow {
    font-size: .75em; letter-spacing: .2em;
    text-transform: uppercase; color: rgba(255,255,255,.4);
}
.manifeste-quote {
    font-family: 'TT_Biersal_Upright', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff; line-height: 1.25; margin: 0;
}
.manifeste-body {
    font-size: 1em; color: rgba(255,255,255,.72);
    line-height: 1.8; max-width: 680px; padding: 0;
}
.manifeste-divider {
    width: 60px; height: 3px;
    background: rgba(255,255,255,.25);
    border-radius: 2px;
}

/* Valeurs */
.values-section { padding: 0 40px 80px; max-width: 1400px; margin: 0 auto; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px; padding: 36px 28px; text-align: left;
    transition: background .3s, transform .4s cubic-bezier(.16,1,.3,1);
}
.value-card:hover { background: rgba(255,255,255,.12); transform: translateY(-6px); }
.value-card-star {
    width: 32px; fill: rgba(255,255,255,.35);
    margin-bottom: 20px; display: block;
    transition: fill .3s;
}
.value-card:hover .value-card-star { fill: #fff; }
.value-card h3 {
    font-family: 'TT_Biersal_Upright', serif;
    font-size: 1.4em; color: #fff; margin-bottom: 10px;
}
.value-card p { font-size: .88em; color: rgba(255,255,255,.65); line-height: 1.65; padding: 0; max-width: 100%; }

/* Timeline histoire (override couleurs sombres pour fond bleu) */
.timeline-section { padding: 0 40px 80px; max-width: 860px; margin: 0 auto; }
.timeline-section .timeline-year { color: rgba(255,255,255,.45); opacity: 1; }
.timeline-section .timeline-dot svg { fill: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,.5)); }
.timeline-section .timeline-content h2 { color: #fff; }
.timeline-section .timeline-content p { color: rgba(255,255,255,.68); }
.timeline-section .histoire-timeline::before {
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.3) 10%, rgba(255,255,255,.3) 90%, transparent);
    opacity: 1;
}

/* Images studio */
.studio-images-section { padding: 0 40px 80px; max-width: 1100px; margin: 0 auto; }
.image-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.image-slot {
    border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    aspect-ratio: 4/3;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px; color: rgba(255,255,255,.3);
    font-size: .8em; letter-spacing: .1em; text-transform: uppercase;
    transition: background .3s, border-color .3s;
}
.image-slot:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.image-slot svg { width: 36px; fill: rgba(255,255,255,.15); }
.image-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-slot.wide { grid-column: 1 / -1; aspect-ratio: 16/7; }

/* ── Page footer (réutilise .footer-wrapper etc.) ──────────── */

.page-footer {
    padding: 100px 20px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
body.actu-page     .page-footer { background: linear-gradient(-45deg, #2a2a2a, #3a3a3a, #2a2a2a, #3a3a3a); padding-top: 60px; }
body.games-page    .page-footer { background: linear-gradient(-45deg, #2a2a2a, #3a3a3a, #2a2a2a, #3a3a3a); }
body.histoire-page .page-footer { background: linear-gradient(-45deg, #2a2a2a, #3a3a3a, #2a2a2a, #3a3a3a); }
body.legal-page    .page-footer { background: linear-gradient(-45deg, #2a2a2a, #3a3a3a, #2a2a2a, #3a3a3a); }

/* ── Responsive pages ──────────────────────────────────────── */
@media (max-width: 900px) {
    .game-page-detail { grid-template-columns: 1fr; gap: 40px; }
    .values-grid      { grid-template-columns: 1fr; }
    .image-duo        { grid-template-columns: 1fr; }
    .image-slot.wide  { grid-column: 1; }
    .article-card.featured { grid-template-columns: 1fr; }
    .article-card.featured .article-thumb { min-height: 200px; }
    .game-page-detail, .coming-soon-section { padding-left: 20px; padding-right: 20px; }
    .manifeste-section, .values-section, .timeline-section, .studio-images-section { padding-left: 20px; padding-right: 20px; }
    .page-hero { padding: 80px 20px 60px; }
    .page-content { padding: 50px 20px 80px; }
}
@media (max-width: 700px) {
    .timeline-section .histoire-timeline::before { left: 20px; }
    .timeline-section .timeline-item {
        grid-template-columns: 20px 1fr;
        grid-template-rows: auto auto;
        gap: 8px 14px;
    }
    .timeline-section .timeline-item:nth-child(odd) .timeline-year,
    .timeline-section .timeline-item:nth-child(even) .timeline-year  { grid-column:2; grid-row:1; text-align:left; order:unset; }
    .timeline-section .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-section .timeline-item:nth-child(even) .timeline-dot   { grid-column:1; grid-row:1/span 2; order:unset; }
    .timeline-section .timeline-item:nth-child(odd) .timeline-content,
    .timeline-section .timeline-item:nth-child(even) .timeline-content { grid-column:2; grid-row:2; text-align:left; order:unset; }
}

/* ── Footer pages — centrage ────────────────────────────────── */
.page-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── Section Équipe (page histoire) ─────────────────────────── */
.team-section {
    padding: 0 40px 80px;
    max-width: 1100px;
    margin: 0 auto;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}
.team-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 36px 24px 28px;
    text-align: center;
    transition: background .3s, transform .4s cubic-bezier(.16,1,.3,1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.team-card:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-6px);
}
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 2px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color .3s;
}
.team-card:hover .team-avatar { border-color: rgba(255,255,255,.5); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar svg { width: 32px; fill: rgba(255,255,255,.25); }
.team-name {
    font-family: 'TT_Biersal_Upright', serif;
    font-size: 1.25em;
    color: #fff;
    line-height: 1.1;
}
.team-role {
    font-size: .8em;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    padding: 0;
    max-width: 100%;
}
.team-socials {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.team-social {
    color: rgba(255,255,255,.35);
    font-size: .9em;
    text-decoration: none;
    transition: color .2s, transform .2s;
}
.team-social:hover { color: #fff; transform: translateY(-2px); }

@media (max-width: 900px) {
    .team-section { padding-left: 20px; padding-right: 20px; }
}

/* ── Section équipe ────────────────────────────────────────── */

.equipe-section { padding: 0 40px 80px; max-width: 1100px; margin: 0 auto; }

.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}

.membre-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 36px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    transition: background .3s, transform .4s cubic-bezier(.16,1,.3,1);
}
.membre-card:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-6px);
}
.membre-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 2px solid rgba(255,255,255,.2);
    display: block;
    position: relative;
    overflow: hidden;
    transition: border-color .3s;
}
.membre-card:hover .membre-avatar { border-color: rgba(255,255,255,.5); }
.membre-avatar svg { width: 32px; fill: rgba(255,255,255,.25); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.membre-avatar img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.membre-name {
    font-family: 'TT_Biersal_Upright', serif;
    font-size: 1.2em;
    color: #fff;
    line-height: 1.1;
}
.membre-role {
    font-size: .78em;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    padding: 0; max-width: 100%;
}
.membre-socials { display: flex; gap: 10px; margin-top: 4px; }
.membre-social-link {
    color: rgba(255,255,255,.35);
    font-size: .9em;
    text-decoration: none;
    transition: color .2s, transform .2s;
}
.membre-social-link:hover { color: #fff; transform: translateY(-2px); }

@media (max-width: 900px) {
    .equipe-section { padding-left: 20px; padding-right: 20px; }
    .equipe-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}

/* ── Alias histoire-star → utilise les règles originales ligne ~1330 ── */

/* ── Image placeholder section4 ─────────────────────────── */

.histoire-image-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px;
    color: rgba(0,0,0,.25);
    font-size: .82em; letter-spacing: .1em; text-transform: uppercase;
}
.histoire-image-placeholder svg {
    width: 48px;
    fill: rgba(0,0,0,.12);
}

/* ── Layout 2 colonnes section histoire (index) ─────────── */

/* ── Layout 2 colonnes section histoire (index) ─────────── */

.histoire-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    max-height: calc(100vh - 140px);
}

/* La colonne gauche peut scroller si trop haute */
.histoire-wrapper {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 10px;
}
.histoire-wrapper::-webkit-scrollbar { display: none; }

/* Section4 : pas de limite de hauteur */
#section4 .histoire-layout { max-height: none; align-items: center; }
#section4 .histoire-wrapper { max-height: none; overflow-y: visible; }

/* Réduire l'espacement de la timeline pour qu'elle rentre */
.histoire-layout .timeline-item {
    padding: 8px 0;
}
.histoire-layout .histoire-header h1 {
    font-size: clamp(1.6rem, 2.5vw, 2.5rem);
}
.histoire-layout .histoire-intro {
    font-size: 0.9em;
    margin-top: 6px;
}
.histoire-layout .histoire-wrapper {
    gap: 20px;
}
.histoire-layout .timeline-content h2 {
    font-size: 1em;
    margin-bottom: 3px;
}
.histoire-layout .timeline-content p {
    font-size: 0.8em;
    line-height: 1.45;
}

.histoire-image-slot {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.04);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(100vh - 200px);
}

.histoire-image-slot img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .histoire-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
        max-height: none;
    }
    .histoire-wrapper {
        max-height: none;
        overflow-y: visible;
    }
    .histoire-image-slot {
        max-height: none;
    }
}

/* ── Section 4 (L'Esprit) : timeline zigzag → colonne simple sur mobile ── */
@media (max-width: 1024px) {
    #section4 .histoire-layout { padding: 30px 20px; }
    #section4 .histoire-timeline::before { left: 15px; top: 0; height: 100%; }
    #section4 .timeline-item {
        grid-template-columns: 30px 1fr;
        gap: 0 12px;
    }
    #section4 .timeline-item:nth-child(odd) .timeline-dot,
    #section4 .timeline-item:nth-child(even) .timeline-dot { order: 1; }
    #section4 .timeline-item:nth-child(odd) .timeline-content,
    #section4 .timeline-item:nth-child(even) .timeline-content { order: 2; text-align: left; }
    #section4 .timeline-item:nth-child(odd) .timeline-year,
    #section4 .timeline-item:nth-child(even) .timeline-year { display: none; }
}

/* ── Histoire layout : tailles un peu plus grandes ─────── */
.histoire-layout .timeline-item    { padding: 13px 0; }
.histoire-layout .histoire-header h1 { font-size: clamp(2.4rem, 3.5vw, 4rem); }
.histoire-layout .histoire-intro   { font-size: 1em; margin-top: 10px; white-space: normal; text-align: center; }
.histoire-layout .histoire-wrapper { gap: 26px; }
.histoire-layout .timeline-content h2 { font-size: 1.6em; margin-bottom: 8px; }
.histoire-layout .timeline-content p  { font-size: 1.05em; line-height: 1.6; }

#section4 .histoire-layout {
    display: flex; flex-direction: column; align-items: center;
    gap: 16px; max-width: 1200px; padding: 30px 80px; width: 100%;
}
#section4 .histoire-wrapper { width: 100%; max-width: 1200px; gap: 0; }
#section4 .histoire-header {
    margin-bottom: 4px; text-align: center;
    width: 100%; display: flex; flex-direction: column; align-items: center;
}
#section4 .histoire-header h1 { text-align: center; }
#section4 .histoire-intro { text-align: center; white-space: normal; font-style: italic; color: rgba(255,255,255,0.85); }
#section4 .histoire-timeline { width: 100%; }
#section4 .timeline-item { padding: 5px 0; }
#section4 .timeline-content { max-width: 700px; }
#section4 .timeline-content p { font-size: 0.85em; line-height: 1.35; }
.histoire-btn-wrap { margin-top: -5px; }
#section4 .histoire-btn .fil0 { fill: #fff; }

/* ── Étoiles filigrane — base commune ──────────────────── */
.section-star {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Section 2 — Actu (bordeaux, étoiles rouge rosé) */
#section2 .section-star { fill: rgba(220,60,100,0.07); }
#section2 .section-star-a { width: 320px; top: -40px; right: -60px; transform: rotate(15deg); }
#section2 .section-star-b { width: 120px; bottom: 20px; left: 3%;  transform: rotate(-20deg); }
#section2 .section-star-c { width:  55px; top: 40%;   left: 20%;  transform: rotate(35deg); }
#section2 .section-star-d { width:  40px; top: 20%;   right: 22%; transform: rotate(-10deg); }

/* Section 3 — Games (navy, étoiles blanches violacées) */
#section3 .section-star { fill: rgba(255,255,255,.05); }
#section3 .section-star-a { width: 380px; bottom: -100px; left: -80px;  transform: rotate(-20deg); }
#section3 .section-star-b { width: 140px; top: 10%;      right: -20px; transform: rotate(25deg); }
#section3 .section-star-c { width:  60px; top: 55%;      right: 30%;   transform: rotate(10deg); }
#section3 .section-star-d { width:  35px; top: 15%;      left: 15%;    transform: rotate(-30deg); }

/* Section 5 — Footer (gris, étoiles blanches) */
#section5 .section-star { fill: rgba(255,255,255,.07); }
#section5 .section-star-a { width: 200px; top: -60px;  right: -40px; transform: rotate(20deg); }
#section5 .section-star-b { width:  90px; bottom: 10px; left: 5%;   transform: rotate(-15deg); }
#section5 .section-star-c { width:  45px; top: 40%;    left: 25%;   transform: rotate(40deg); }

/* Section 4 — filigrane section-star (fond bleu) */
#section4 .section-star { fill: rgba(255,255,255,.06); }
#section4 .section-star-a { width: 300px; bottom: -60px; right: -50px; transform: rotate(20deg); }
#section4 .section-star-b { width: 130px; top: 10%;     left: -20px;  transform: rotate(-15deg); }
#section4 .section-star-c { width:  55px; bottom: 25%;  left: 30%;    transform: rotate(30deg); }
#section4 .section-star-d { width:  40px; top: 20%;     right: 8%;    transform: rotate(-25deg); }

/* ── Colonne droite histoire (image + bouton) ──────────── */
.histoire-right-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.histoire-btn {
    text-decoration: none;
    align-self: center;
}

/* Override fil0 fill pour les étoiles du bouton sur fond bleu */
#section4 .histoire-btn .fil0 { fill: #fff; }

@media (max-width: 900px) {
    .histoire-right-col { width: 100%; }
}
.footer-watermark {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'TT_Biersal_Upright', serif;
    font-size: clamp(60px, 10vw, 130px);
    color: rgba(255,255,255,0.04);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.15em;
    line-height: 1;
}
.footer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
/* Grille */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
    justify-items: center;
}

/* Colonnes */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.footer-col-identity {
    gap: 12px;
    align-items: flex-start;
    text-align: left;
}

/* Contact */
.footer-contact {
    margin: 0;
    padding: 0;
}
.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9em;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    transition: color 0.25s ease;
}
.footer-contact a i {
    font-size: 0.9em;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    transition: color 0.25s ease;
}
.footer-contact a:hover { color: #fff; }
.footer-contact a:hover i { color: rgba(255,255,255,0.8); }

/* Sponsors */
.footer-sponsors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.footer-sponsor-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: rgba(255,255,255,0.05);
    padding: 4px 6px;
}
.footer-sponsor-logo--rect { height: 36px; }
.footer-sponsor-logo:hover { opacity: 1; transform: scale(1.05); }

/* Grille sponsors */
.footer-sponsors {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.footer-sponsor-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: rgba(255,255,255,0.07);
    padding: 6px 8px;
}

.footer-sponsor-logo--rect {
    height: 48px;
    border-radius: 6px;
}

.footer-sponsor-logo:hover {
    opacity: 1;
    transform: scale(1.07);
}

.footer-logo {
    width: 70px;
    opacity: 0.9;
    transition: transform 0.4s ease;
    align-self: flex-start;
}

.footer-studio-name {
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    font-size: 1em;
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: #fff;
    text-align: left;
    max-width: none;
    padding: 0;
}

.footer-city {
    font-size: 0.8em;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: none;
    padding: 0;
    text-align: left;
}

/* Contact email */
.footer-contact {
    margin: 0;
    padding: 0;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9em;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    transition: color 0.25s ease;
}

.footer-contact a i {
    font-size: 0.9em;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    transition: color 0.25s ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-contact a:hover i {
    color: rgba(255,255,255,0.8);
}


/* Label de colonne */
.footer-col-label {
    font-size: 0.7em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
}

/* Nav verticale */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9em;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    transition: color 0.25s ease, padding-left 0.25s ease;
    text-align: left;
    display: block;
}

.footer-p {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 10px;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    transition: color 0.25s ease, padding-left 0.25s ease;
    text-align: center;
    display: block;
}

.footer-nav a:hover {
    color: #fff;
    padding-left: 6px;
}

/* Réseaux avec label texte */
.footer-col-social {
    align-items: flex-start;
    text-align: left;
}

.footer-col-nav {
    align-items: flex-start;
    text-align: left;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88em;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-social-link i,
.footer-social-link .x-logo-icon {
    width: 16px;
    text-align: center;
    font-size: 0.95em;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.25s ease;
}

.footer-social-link:hover .x-logo-icon {
    opacity: 1;
}

.footer-social-link:hover {
    color: #fff;
    padding-left: 4px;
}

/* Barre du bas */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-bottom-line {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.footer-bottom-content {
    display: none; /* copy et rights remontés dans la barre du bas */
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

/* © 2025 à gauche */
.footer-copy,
.footer-copy span {
    display: inline;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    color: rgba(255,255,255,0.3);
    padding: 0;
    max-width: none;
}

.footer-copy {
    font-size: 0.78em;
    display: block;
    position: absolute;
    left: 0;
}

/* Tous droits réservés. à droite */
.footer-rights {
    display: block;
    position: absolute;
    right: 0;
    font-size: 0.78em;
    color: rgba(255,255,255,0.3);
    padding: 0;
    max-width: none;
}
.footer-legal-links a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    font-size: 0.75em;
    letter-spacing: 0.08em;
    transition: color 0.25s;
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }
.footer-legal-links span {
    color: rgba(255,255,255,0.15);
    font-size: 0.75em;
}

/* ══════════════════════════════════════════════════════
   PAGES LÉGALES (Mentions légales / CGU / CGV)
══════════════════════════════════════════════════════ */

/* Grille de contenu centrée */
.legal-grid {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Lien retour */
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.82em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 32px;
    transition: color 0.3s, gap 0.3s;
}
.legal-back:hover { color: #fff; gap: 14px; }
.legal-back i { font-size: 0.9em; }

/* Bloc article */
.legal-article {
    padding: 32px 36px;
    background: rgba(255,255,255,0.04);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.3s, background 0.3s;
}
.legal-article:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
}
.legal-article h2 {
    font-family: 'TT_Biersal_Upright', serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 18px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 1px;
}
.legal-article p {
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    font-size: 0.9em;
    line-height: 1.85;
    color: rgba(255,255,255,0.65);
    margin: 0 0 12px 0;
    max-width: 100%;
    padding: 0;
}
.legal-article p:last-child { margin-bottom: 0; }
.legal-article strong { color: rgba(255,255,255,0.92); }
.legal-article a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s;
}
.legal-article a:hover { color: #fff; }
.legal-article ul {
    margin: 10px 0 14px 18px;
    padding: 0;
    list-style: none;
}
.legal-article ul li {
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    font-size: 0.9em;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
}
.legal-article ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 5px;
    height: 5px;
    background: #a78bfa;
    border-radius: 50%;
}

/* Nav liens légaux dans le footer des pages légales */
.legal-page-footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.legal-page-footer-nav a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    font-size: 0.8em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.25s;
}
.legal-page-footer-nav a:hover,
.legal-page-footer-nav a.active { color: #a78bfa; }
.legal-page-footer-nav .nav-dot {
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-block;
}
.legal-page-copy {
    color: rgba(255,255,255,0.22);
    font-size: 0.78em;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    text-align: center;
    padding: 0;
    max-width: none;
}

@media (max-width: 700px) {
    .legal-article { padding: 24px 20px; }
    .legal-article h2 { font-size: 1.25rem; }
    .legal-page-footer-nav { gap: 16px; }
}

/* ── Timeline section hover (identique section4) ─────────── */
.timeline-section { padding: 0 40px 80px; max-width: 860px; margin: 0 auto; }
.timeline-section .timeline-year { color: rgba(255,255,255,.45); opacity: 1; }
.timeline-section .timeline-dot svg { fill: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,.5)); }
.timeline-section .timeline-content h2 { color: #fff; }
.timeline-section .timeline-content p { color: rgba(255,255,255,.68); }
.timeline-section .histoire-timeline::before {
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.3) 10%, rgba(255,255,255,.3) 90%, transparent);
    opacity: 1;
}
.timeline-section .timeline-content {
    padding: 10px 14px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.timeline-section .timeline-content::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-15deg);
    opacity: 0;
    transition: none;
}
.timeline-section .timeline-item:hover .timeline-content {
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 30px rgba(180,200,255,0.18), 0 0 8px rgba(255,255,255,0.08);
    transform: translateY(-2px);
}
.timeline-section .timeline-item:hover .timeline-content::after {
    opacity: 1;
    animation: shimmer-bloc 0.7s ease forwards;
}
.timeline-section .timeline-item:hover .timeline-dot svg {
    transform: rotate(45deg) scale(1.3);
}

/* ── Partenaires footer ───────────────────────────────────── */
.footer-partners-section {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    /* Pas de border-top — la footer-bottom-line au-dessus suffit */
}
.footer-partners-label {
    font-size: 0.7em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}
.footer-partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 40px;
}
.footer-partner {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;
    font-size: 0.8em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.footer-partner img { height: 48px; width: auto; object-fit: contain; }
.footer-partner-placeholder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: rgba(255,255,255,0.3);
    font-size: 0.75em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'EuropaNuovaBold', Arial, sans-serif;

}

/* ── Legal page styles ───────────────────────────────────── */
body.legal-page   { background: #12093A; overflow-y: auto; }
body.legal-page    .page-hero { background: linear-gradient(-45deg, #320EA5, #4a1fd4, #2a0d8f); }
body.legal-page    .page-hero::after { background: linear-gradient(to bottom, transparent, #12093A); }
body.legal-page    .page-content { background: #12093A; }
body.legal-page    .page-footer { background: linear-gradient(-45deg, #2a2a2a, #3a3a3a, #2a2a2a, #3a3a3a); }
.legal-grid { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.legal-back { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.82em; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 32px; transition: color 0.3s, gap 0.3s; }
.legal-back:hover { color: #fff; gap: 14px; }
.legal-article { padding: 32px 36px; background: rgba(255,255,255,0.04); border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); transition: border-color 0.3s, background 0.3s; }
.legal-article:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.legal-article h2 { font-family: 'TT_Biersal_Upright', serif; font-size: 1.5rem; color: #fff; margin: 0 0 18px 0; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.1); letter-spacing: 1px; }
.legal-article p { font-family: 'EuropaNuovaBold', Arial, sans-serif; font-size: 0.9em; line-height: 1.85; color: rgba(255,255,255,0.65); margin: 0 0 12px 0; padding: 0; }
.legal-article p:last-child { margin-bottom: 0; }
.legal-article strong { color: rgba(255,255,255,0.92); }
.legal-article a { color: #a78bfa; text-decoration: none; transition: color 0.2s; }
.legal-article a:hover { color: #fff; }
.legal-article ul { margin: 10px 0 14px 18px; padding: 0; list-style: none; }
.legal-article ul li { font-family: 'EuropaNuovaBold', Arial, sans-serif; font-size: 0.9em; line-height: 1.8; color: rgba(255,255,255,0.65); margin-bottom: 6px; padding-left: 16px; position: relative; }
.legal-article ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; background: #a78bfa; border-radius: 50%; }
.legal-page-footer-nav { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 20px; }
.legal-page-footer-nav a { color: rgba(255,255,255,0.35); text-decoration: none; font-family: 'EuropaNuovaBold', Arial, sans-serif; font-size: 0.8em; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.25s; }
.legal-page-footer-nav a:hover, .legal-page-footer-nav a.active { color: #a78bfa; }
.legal-page-footer-nav .nav-dot { width: 3px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 50%; display: inline-block; }
.legal-page-copy { color: rgba(255,255,255,0.22); font-size: 0.78em; font-family: 'EuropaNuovaBold', Arial, sans-serif; text-align: center; padding: 0; max-width: none; }
.footer-legal-links { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-legal-links a { color: rgba(255,255,255,0.3); text-decoration: none; font-family: 'EuropaNuovaBold', Arial, sans-serif; font-size: 0.75em; letter-spacing: 0.1em; transition: color 0.25s; }
.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }
.footer-legal-links span { color: rgba(255,255,255,0.15); font-size: 0.75em; }

/* ── Timeline section — hover identique section4 ─────────── */
.timeline-section { padding: 0 40px 80px; max-width: 860px; margin: 0 auto; }
.timeline-section .timeline-year { color: rgba(255,255,255,.45); opacity: 1; }
.timeline-section .timeline-dot svg { fill: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,.5)); }
.timeline-section .timeline-content h2 { color: #fff; }
.timeline-section .timeline-content p { color: rgba(255,255,255,.68); }
.timeline-section .histoire-timeline::before { background: linear-gradient(to bottom, transparent, rgba(255,255,255,.3) 10%, rgba(255,255,255,.3) 90%, transparent); opacity: 1; }
.timeline-section .timeline-content { padding: 10px 14px; border-radius: 14px; position: relative; overflow: hidden; transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.timeline-section .timeline-content::after { content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); transform: skewX(-15deg); opacity: 0; transition: none; }
.timeline-section .timeline-item:hover .timeline-content { background: rgba(255,255,255,0.07); box-shadow: 0 0 30px rgba(180,200,255,0.18), 0 0 8px rgba(255,255,255,0.08); transform: translateY(-2px); }
.timeline-section .timeline-item:hover .timeline-content::after { opacity: 1; animation: shimmer-bloc 0.7s ease forwards; }
.timeline-section .timeline-item:hover .timeline-dot svg { transform: rotate(45deg) scale(1.3); }

/* ── Partenaires footer ───────────────────────────────────── */
.footer-partners-section { padding-top: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer-partners-label { font-size: 0.7em; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.footer-partners-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; }
.footer-partner { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.35); text-decoration: none; font-family: 'EuropaNuovaBold', Arial, sans-serif; font-size: 0.8em; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-partner img { height: 52px; width: auto; object-fit: contain; }

/* ── Legal page styles ───────────────────────────────────── */
body.legal-page { background: #12093A; overflow-y: auto; }
body.legal-page .page-hero { background: linear-gradient(-45deg, #320EA5, #4a1fd4, #2a0d8f); }
body.legal-page .page-hero::after { background: linear-gradient(to bottom, transparent, #12093A); }
body.legal-page .page-content { background: #12093A; }
body.legal-page .page-footer { background: linear-gradient(-45deg, #2a2a2a, #3a3a3a, #2a2a2a, #3a3a3a); }
.legal-grid { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.legal-back { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.82em; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 32px; transition: color 0.3s, gap 0.3s; }
.legal-back:hover { color: #fff; gap: 14px; }
.legal-article { padding: 32px 36px; background: rgba(255,255,255,0.04); border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); transition: border-color 0.3s, background 0.3s; }
.legal-article:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.legal-article h2 { font-family: 'TT_Biersal_Upright', serif; font-size: 1.5rem; color: #fff; margin: 0 0 18px 0; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.1); letter-spacing: 1px; }
.legal-article p { font-family: 'EuropaNuovaBold', Arial, sans-serif; font-size: 0.9em; line-height: 1.85; color: rgba(255,255,255,0.65); margin: 0 0 12px 0; padding: 0; }
.legal-article p:last-child { margin-bottom: 0; }
.legal-article strong { color: rgba(255,255,255,0.92); }
.legal-article a { color: #a78bfa; text-decoration: none; }
.legal-article a:hover { color: #fff; }
.legal-page-footer-nav { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 20px; }
.legal-page-footer-nav a { color: rgba(255,255,255,0.35); text-decoration: none; font-family: 'EuropaNuovaBold', Arial, sans-serif; font-size: 0.8em; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.25s; }
.legal-page-footer-nav a:hover, .legal-page-footer-nav a.active { color: #a78bfa; }
.legal-page-footer-nav .nav-dot { width: 3px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 50%; display: inline-block; }
.legal-page-copy { color: rgba(255,255,255,0.22); font-size: 0.78em; font-family: 'EuropaNuovaBold', Arial, sans-serif; text-align: center; padding: 0; max-width: none; }
.footer-legal-links { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-legal-links a { color: rgba(255,255,255,0.3); text-decoration: none; font-family: 'EuropaNuovaBold', Arial, sans-serif; font-size: 0.75em; letter-spacing: 0.1em; transition: color 0.25s; }
.footer-legal-links a:hover { color: rgba(255,255,255,0.7); }
.footer-legal-links span { color: rgba(255,255,255,0.15); font-size: 0.75em; }

/* ═══════════════════════════════════════════════════════════
   HISTOIRE PAGE — OVERRIDES & AMÉLIORATIONS
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Étoiles en fond qui défilent avec la page ──────────── */
body.histoire-page .page-wrapper {
    position: relative; /* ancrage pour les étoiles absolues */
}
.histoire-stars-bg {
    position: absolute;  /* défile avec la page, pas fixe */
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.histoire-stars-bg svg {
    position: absolute;
    fill: #fff;
    opacity: 0.055;
}
/* Tout le contenu au-dessus des étoiles */
body.histoire-page .page-wrapper > *:not(.histoire-stars-bg) {
    position: relative;
    z-index: 1;
}
body.histoire-page #header {
    position: fixed; /* garder le header fixe */
    z-index: 9999;
}

/* ── 2. Hero lead sur une seule ligne ──────────────────────── */
.page-hero .hero-lead {
    white-space: nowrap;
    max-width: none;
}

/* ── 3. Texte "Notre histoire" justifié et centré sur la page ── */
.manifeste-section {
    align-items: center; /* section bien centrée */
}
.manifeste-body {
    text-align: justify;
    width: 100%;
    max-width: 680px;
}

/* ── 4. Timeline : textes normaux, plus larges ──────────────── */
.timeline-section {
    max-width: 1100px; /* élargi vs 860px original */
    padding: 0 40px 80px;
    margin: 0 auto;
}
.timeline-section .timeline-content h2,
.timeline-content h2 {
    font-size: 1.5em !important;
    line-height: 1.2;
    margin-bottom: 8px;
}
.timeline-section .timeline-content p,
.timeline-content p {
    font-size: 0.92em !important;
    line-height: 1.65;
}

/* ── 5. Titres de sections — taille modérée ─────────────────── */
.section-divider-label {
    font-size: 1.5em;
    letter-spacing: .12em;
}
.manifeste-eyebrow {
    font-size: 1.5em;
    letter-spacing: .12em;
}
.section-divider-label::before,
.section-divider-label::after {
    flex-shrink: 0;
    width: 50px;
}

/* ── 6. Images responsive dans leur rond ────────────────────── */
.membre-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: block; /* neutralise le flex qui empêche l'image de remplir */
}
.membre-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.membre-avatar svg {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 32px;
    fill: rgba(255,255,255,.25);
}

/* ── 7. Cartes équipe plus grandes + LinkedIn avec fond carré ── */
.equipe-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
}
.membre-card {
    padding: 48px 32px 36px;
    gap: 18px;
    border-radius: 24px;
}
.membre-name {
    font-size: 1.5em;
}
.membre-role {
    font-size: .88em;
}
.membre-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    font-size: 1em;
    color: rgba(255,255,255,.65);
    transition: background .25s, color .25s, transform .25s, border-color .25s;
    text-decoration: none;
}
.membre-social-link:hover {
    background: rgba(255,255,255,.28);
    border-color: rgba(255,255,255,.5);
    color: #fff;
    transform: translateY(-3px);
}

/* ── 8. Texte des cartes valeurs plus grand ─────────────────── */
.value-card p {
    font-size: 1.02em !important;
    line-height: 1.72;
}

@media (max-width: 900px) {
    .equipe-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
    .membre-avatar { width: 100px; height: 100px; }
    .section-divider-label, .manifeste-eyebrow { font-size: 1.1em; }
    .page-hero .hero-lead { white-space: normal; max-width: 90vw; }
    .timeline-section { max-width: 100%; }
}

/* ═══════════════════════════════════════
   ANIMATIONS D'APPARITION
   ═══════════════════════════════════════ */
@keyframes revealUp    { from { opacity:0; transform:translateY(36px); } to { opacity:1; transform:translateY(0); } }
@keyframes revealLeft  { from { opacity:0; transform:translateX(-36px); } to { opacity:1; transform:translateX(0); } }
@keyframes revealRight { from { opacity:0; transform:translateX(36px); } to { opacity:1; transform:translateX(0); } }

.reveal { opacity: 0; }
.reveal.visible {
    animation-duration: 0.85s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible.anim-up    { animation-name: revealUp; }
.reveal.visible.anim-left  { animation-name: revealLeft; }
.reveal.visible.anim-right { animation-name: revealRight; }
.reveal.d1 { animation-delay: 0.12s; }
.reveal.d2 { animation-delay: 0.26s; }
.reveal.d3 { animation-delay: 0.40s; }
.reveal.d4 { animation-delay: 0.54s; }
.reveal.d5 { animation-delay: 0.68s; }


/* ═══════════════════════════════════════════════════════════
   FILIGRANE ÉTOILES — pages intérieures
   ═══════════════════════════════════════════════════════════ */

.fili-star {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

body.actu-page .fili-star    { fill: rgba(255, 255, 255, 0.04); }
body.games-page .fili-star,
body.legal-page .fili-star   { fill: rgba(255, 255, 255, 0.035); }

.fili-s1 { width: 420px; top:  60px;  right: -120px; }
.fili-s2 { width: 270px; top:  480px; left:   -90px; }
.fili-s3 { width: 160px; top:  920px; right:   50px; }
.fili-s4 { width: 100px; top: 1280px; left:    70px; }
.fili-s5 { width: 200px; top: 1600px; right:  -40px; }

/* ═══════════════════════════════════════════════════════════
   GAMES PAGE — espace profond, gradient animé
   ═══════════════════════════════════════════════════════════ */

body.games-page {
    background: linear-gradient(-45deg, #080516, #12093A, #0d0a28, #17103f);
    background-size: 400% 400%;
    animation: gamesShift 18s ease infinite;
}
@keyframes gamesShift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}
body.games-page .page-hero         { background: transparent; }
body.games-page .page-hero::after  { display: none; }
body.games-page .page-content      { background: transparent; }
body.games-page .page-wrapper      { overflow: hidden; position: relative; }
body.games-page .fili-star         { fill: rgba(255, 255, 255, 0.035); }

/* Carte Let's GO — cadrage haut de l'image */
.actu-card.d2 .actu-image img {
    object-position: center top;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE MOBILE — toutes pages
   ═══════════════════════════════════════════════════════════ */

/* ── 768px ─────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Nav */
    .menu-nav { width: 75%; }
    .scroll-nav { display: none; }

    /* Index — logo hero */
    .section1-content img { width: min(380px, 80vw) !important; }

    /* Index — actu cards */
    .actu-cards { flex-direction: column; align-items: center; gap: 32px; }
    .actu-card  { width: min(460px, 90vw); height: auto; }
    .actu-card-inner {
        width: 100%; height: auto; min-height: 320px;
        clip-path: none !important;
        border-radius: 20px;
    }
    .actu-image {
        width: 100%; height: 200px;
        clip-path: none !important;
        border-radius: 16px 16px 0 0;
        left: 0; top: 0;
    }
    .actu-content { height: auto; padding: 16px 20px 20px; }
    .actu-title   { font-size: 1.8em; }

    /* Index — section 3 (jeux) */
    .game-section-inner { padding: 80px 20px 40px; }
    .game-slide  { flex-direction: column-reverse; gap: 24px; }
    .game-info   { align-items: flex-start; text-align: left; }
    .game-desc   { max-width: 100%; }

    /* Pages intérieures — hero + content */
    .page-hero    { padding: 80px 20px 50px; }
    .page-content { padding: 40px 20px 70px; }

    /* Article actu détail */
    .article-layout { grid-template-columns: 1fr !important; }

    /* Footer — grille 3-col → 1-col */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-col-identity { align-items: center; text-align: center; }
    .footer-col-nav,
    .footer-col-social   { align-items: center; text-align: center; }
    .footer-nav  { align-items: center; }
    .footer-nav a { text-align: center; }
    .footer-socials { align-items: center; }
    .footer-copy  { position: static; margin-bottom: 4px; }
    .footer-rights { position: static; }
    .footer-legal-links { flex-direction: column; gap: 8px; }

    /* Carrière */
    .carriere-hero { padding: 100px 20px 50px !important; }
    .c-section     { padding: 40px 20px !important; }
    .c-process     { padding: 0 20px 48px !important; }
    .c-cta         { padding: 0 20px 60px !important; flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ── 480px ─────────────────────────────────────────────────── */
@media (max-width: 480px) {

    /* Nav pleine largeur */
    .menu-nav { width: 100%; }
    .header-content { padding: 0 16px; }

    /* Index — logo hero encore plus petit */
    .section1-content img { width: min(260px, 75vw) !important; }

    /* Index — actu cards */
    .actu-card { width: 92vw; }
    .actu-title { font-size: 1.4em; }
    .voir-plus-btn { font-size: 0.8em; padding: 14px 32px; }

    /* Hero titre principal */
    h1 { font-size: calc(1.4em + 2vw); }
    .page-hero h1 { font-size: clamp(2rem, 10vw, 4rem); }
    .page-hero .hero-lead { font-size: 0.9em; white-space: normal !important; }
    .page-hero { padding: 70px 16px 40px; }
    .page-content { padding: 32px 16px 60px; }

    /* Section 5 / footer */
    #section5 { padding: 50px 16px 40px; }
    .footer-wrapper { gap: 32px; }
    .footer-partners-grid { gap: 16px 24px; }
    .footer-partner img { height: 36px; }

    /* Btn voir plus index */
    .section-voir-plus { padding: 0 16px 40px; }

    /* Equipe / membre cards */
    .equipe-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .membre-card { padding: 28px 16px 24px; }

    /* Timeline */
    .timeline-section { padding: 0 16px 60px; }

    /* Legal */
    .legal-article { padding: 20px 16px; }
    .legal-grid    { gap: 16px; }

    /* Carrière step num */
    .c-step-num { width: 32px; height: 32px; font-size: 0.65rem; }
    .c-open-message { flex-direction: column; gap: 16px; padding: 24px 16px; }

    /* Footer legal links */
    .footer-legal-links { gap: 6px; }
    .footer-copy, .footer-rights { font-size: 0.7em; }
}

/* ── 360px ─────────────────────────────────────────────────── */
@media (max-width: 360px) {
    .section1-content img { width: 72vw !important; }
    .actu-title { font-size: 1.2em; }
    .page-hero h1 { font-size: clamp(1.8rem, 9vw, 3rem); }
    .equipe-grid { grid-template-columns: 1fr; }
}

/* ── Burger mobile — agrandir la zone de tap ── */
@media (max-width: 768px) {
    .menu-burger {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    .menu-burger .icon-bars,
    .menu-burger .icon-times {
        font-size: 22px;
    }
}
