/* ==================================================================
   just-play-it.com — design system des pages vitrine & légales
   body.landing : home + pages Junban   |   body.legal : privacy/cgu
   ================================================================== */

:root {
    --ink: #14181f;
    --muted: #4b5563;
    --soft: #6b7280;
    --brand: #17803d;
    --jpi-blue: #0284c7;   /* bleu ciel du logo JPI */
    --brand-bright: #4CAF50;
    --card: rgba(255, 255, 255, 0.92);
    --radius: 22px;
    --shadow: 0 10px 40px rgba(20, 24, 31, 0.10);
    --shadow-soft: 0 4px 16px rgba(20, 24, 31, 0.07);
    --maxw: 1020px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(300deg, #9efdd5, #fdd59e, #9ef5fd);
    background-attachment: fixed;
    color: var(--ink);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------- topbar */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem clamp(1rem, 4vw, 2rem);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(20, 24, 31, 0.06);
}

.topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    margin-right: auto;   /* pousse tout le reste vers la droite */
}

.topbar .brand img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: block;
}

/* --- logo « JPI » + nom du site en écriture ludique --- */

.brand-mark {
    width: 36px;
    height: 36px;
    display: block;
    flex: none;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
    transform: rotate(-4deg);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-mark { transform: rotate(4deg) scale(1.06); }

.brand-mark text {
    font-family: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded",
        "Segoe UI Rounded", "Nunito", "Trebuchet MS", system-ui, sans-serif;
}

.brand-name {
    display: inline-flex;
    align-items: baseline;
    gap: 0.24em;
    font-family: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded",
        "Segoe UI Rounded", "Nunito", "Trebuchet MS", system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.005em;
    line-height: 1;
}

.brand-name span { display: inline-block; }
.brand-name .w1 { transform: rotate(-3deg); }
.brand-name .w2 { color: var(--jpi-blue, #0284c7); transform: rotate(2deg) translateY(-1px); }
.brand-name .w3 { transform: rotate(-2deg); }

.brand-name span,
.brand:hover .brand-name span { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.brand:hover .brand-name .w1 { transform: rotate(-3deg) translateY(-2px); }
.brand:hover .brand-name .w2 { transform: rotate(2deg) translateY(-4px); }
.brand:hover .brand-name .w3 { transform: rotate(-2deg) translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
    .brand-mark,
    .brand-name span,
    .brand:hover .brand-mark,
    .brand:hover .brand-name span { transition: none; }
}

@media (max-width: 420px) {
    .brand-name { font-size: 1.05rem; }
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.6rem);
}

.topbar nav { display: flex; align-items: center; }

.topbar nav {
    gap: clamp(0.9rem, 2vw, 1.6rem);
}

.topbar nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.topbar nav a:hover,
.topbar nav a.active { color: var(--jpi-blue); opacity: 1; }

/* ------------------------------------------------ language selector */

.language-selector { position: relative; }

.language-btn {
    background: transparent;
    border: 1.5px solid rgba(20, 24, 31, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.language-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.language-caret { font-size: 0.7rem; color: inherit; transition: transform 0.3s ease; }

.language-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(20, 24, 31, 0.06);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    overflow: hidden;
}

.language-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }

.language-option {
    display: block;
    padding: 10px 16px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
}

.language-option:hover { background: rgba(20, 24, 31, 0.05); }

.language-option.active {
    background: rgba(14, 165, 233, 0.12);
    color: var(--jpi-blue);
    font-weight: 600;
}

/* ------------------------------------------------------------ hero */

.hero {
    position: relative;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.hero-copy { text-align: left; }

.hero .presents {
    display: inline-block;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero .lead {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 1.6rem;
    max-width: 34em;
}

.hero .lead a { color: var(--brand); font-weight: 600; }

.rating {
    font-weight: 700;
    color: #a06b00;
    margin-bottom: 1.4rem;
    font-size: 1rem;
}

/* Boutons stores */
/* Bouton d'action principal : « Découvrir Junban » (hero + carte jeu) */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #101418, #2c333d);
    color: #fff;
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-button::after { content: "→"; transition: transform 0.25s ease; }

.cta-button:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cta-button:hover::after { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
    .cta-button, .cta-button::after { transition: none; }
}

.hero-cta { margin: 0; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.btn-android { background: linear-gradient(135deg, #101418, #2c333d); color: #fff; }

.btn-ios {
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    border: 1.5px solid rgba(20, 24, 31, 0.12);
}

/* Mockup téléphone */
.hero-visual { display: flex; justify-content: center; }

.app-icon {
    width: min(260px, 62vw);
    animation: float 6s ease-in-out infinite;
}

.app-icon img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 23%;
    box-shadow: 0 30px 60px rgba(20, 24, 31, 0.28);
}

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

/* --------------------------------------------------------- sections */

.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(1.6rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.section > h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 0.6rem;
}

.section > .section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 44em;
    margin: 0 auto 2rem;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 2.2rem);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.1rem;
}

.feature {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem 1.3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.feature h3 { font-size: 1.06rem; margin-bottom: 0.45rem; }

.feature p { font-size: 0.95rem; line-height: 1.55; color: var(--muted); }

/* Ambiance (galerie 3 images) */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
}

.gallery img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: block;
}

/* Studio */
.studio-card { text-align: center; }

.studio-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 42em;
    margin: 0 auto;
}

/* Blog list */
.post-list { list-style: none; display: grid; gap: 1rem; }

.post-list li {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: left;
}

.post-list time { color: var(--soft); font-size: 0.88rem; }

.post-list a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.08rem;
    transition: color 0.2s ease;
}

.post-list a:hover { color: var(--brand); }

.all-posts {
    display: inline-block;
    margin-top: 1rem;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

/* Bandeau CTA final */
.cta-band {
    text-align: center;
    background: linear-gradient(135deg, #101418, #263041);
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(2rem, 5vw, 3.2rem) clamp(1.2rem, 4vw, 2.5rem);
    box-shadow: var(--shadow);
}

.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 0.5rem; }

.cta-band p { color: rgba(255, 255, 255, 0.75); margin-bottom: 1.5rem; }

.cta-band .store-buttons { justify-content: center; }

.cta-band .btn-android { background: #fff; color: var(--ink); }

/* ------------------------------------------- contenu long (junban) */

.content-card { text-align: left; }

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.8rem 0 0.7rem;
}

.content-card h3:first-child { margin-top: 0; }

.content-card p, .content-card li {
    font-size: 1.03rem;
    line-height: 1.7;
    color: var(--muted);
}

.content-card p { margin-bottom: 1rem; }

.content-card ul { padding-left: 22px; margin-bottom: 1rem; }

.content-card li { margin-bottom: 0.45rem; }

/* Étapes numérotées façon steps */
.content-card ol {
    list-style: none;
    counter-reset: step;
    margin-bottom: 1rem;
    display: grid;
    gap: 0.6rem;
}

.content-card ol li {
    counter-increment: step;
    position: relative;
    padding: 0.7rem 1rem 0.7rem 3.1rem;
    background: rgba(76, 175, 80, 0.07);
    border-radius: 12px;
}

.content-card ol li::before {
    content: counter(step);
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--brand-bright);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-to-action {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink) !important;
    margin-top: 1.6rem;
}

/* ----------------------------------------------------------- footer */

.site-footer {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2rem clamp(1rem, 4vw, 2rem) 2.6rem;
    text-align: center;
}

.site-footer .links a {
    color: var(--ink);
    opacity: 0.75;
    text-decoration: none;
    margin: 0 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.site-footer .links a:hover { color: var(--brand); opacity: 1; }

.site-footer .copyright {
    margin-top: 0.9rem;
    color: var(--soft);
    font-size: 0.85rem;
}

/* ------------------------------------------------- pages légales */

body.legal { padding: 0 0 1px; }

.legal .container {
    max-width: 800px;
    margin: clamp(1.5rem, 4vw, 3rem) auto;
    background: #fff;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.legal h1 { font-size: 2rem; margin-bottom: 1.6rem; text-align: center; letter-spacing: -0.01em; }

.legal h2 { font-size: 1.4rem; margin: 1.8rem 0 0.8rem; }

.legal p, .legal ul { line-height: 1.7; margin-bottom: 1rem; color: var(--muted); }

.legal ul { list-style-position: inside; }

.legal li { margin-bottom: 0.5rem; }

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

/* ------------------------------------------------- animations reveal */

html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

html.js .reveal.visible { opacity: 1; transform: none; }

html.js .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .reveal:nth-child(3) { transition-delay: 0.16s; }
html.js .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ------------------------------------------------------- responsive */

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-copy { text-align: center; }

    .hero .lead { margin-left: auto; margin-right: auto; }

    .store-buttons { justify-content: center; }

    .hero-visual { order: -1; }

    .app-icon { width: min(190px, 52vw); }

    .topbar nav a { margin-left: 1rem; font-size: 0.92rem; }
}

@media (max-width: 480px) {
    .store-btn { width: 100%; justify-content: center; }
}

/* Accessibilité : pas d'animations si l'utilisateur les refuse */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .app-icon { animation: none; }

    html.js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .store-btn, .feature { transition: none; }
}

/* Compléments sections */
.studio-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.cta-band .btn-ios {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

/* ------------------------------------------------ menu sidebar mobile */

.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(20, 24, 31, 0.12);
    border-radius: 10px;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(300px, 82vw);
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    z-index: 300;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.2rem 2rem;
    overflow-y: auto;
    box-shadow: -12px 0 40px rgba(20, 24, 31, 0.15);
}

.sidebar.open { transform: none; }

.sidebar-close {
    align-self: flex-end;
    width: 42px;
    height: 42px;
    border: none;
    background: rgba(20, 24, 31, 0.05);
    border-radius: 10px;
    font-size: 1.1rem;
    color: var(--ink);
    cursor: pointer;
    margin-bottom: 0.8rem;
}

.sidebar-nav { display: flex; flex-direction: column; }

.sidebar-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid rgba(20, 24, 31, 0.06);
}

.sidebar-nav a.active { color: var(--jpi-blue); }

.sidebar-langs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

.sidebar-langs a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.55rem 0.7rem;
    border: 1.5px solid rgba(20, 24, 31, 0.1);
    border-radius: 10px;
    text-align: center;
}

.sidebar-langs a.active {
    background: rgba(14, 165, 233, 0.12);
    color: var(--jpi-blue);
    border-color: rgba(14, 165, 233, 0.4);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 31, 0.4);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.open { opacity: 1; visibility: visible; }

body.no-scroll { overflow: hidden; }

@media (max-width: 820px) {
    .topbar nav { display: none; }
    .topbar .language-selector { display: none; }
    .menu-btn { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar, .sidebar-overlay { transition: none; }
}

/* ------------------------------------------------ tableau comparatif */

.table-wrap { overflow-x: auto; }

.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.compare th, .compare td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(20, 24, 31, 0.08);
    color: var(--muted);
}

.compare thead th {
    color: var(--ink);
    font-size: 1.05rem;
    border-bottom: 2px solid rgba(20, 24, 31, 0.15);
}

.compare tbody th { font-weight: 600; color: var(--ink); }

.compare td.win {
    color: var(--brand);
    font-weight: 700;
    background: rgba(76, 175, 80, 0.07);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: none; }

/* ------------------------------------------------------ FAQ accordéon */

.faq { display: grid; gap: 0.8rem; max-width: 760px; margin: 0 auto; }

.faq details { padding: 0; overflow: hidden; }

.faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1.1rem 1.4rem;
    list-style: none;
    position: relative;
    color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--brand);
    transition: transform 0.25s ease;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p {
    padding: 0 1.4rem 1.2rem;
    color: var(--muted);
    line-height: 1.65;
}

/* Hero à une colonne (pages simples) */
.hero-single {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 0.5rem;
}

.hero-single .hero-copy { text-align: center; }

/* --------------------------------------- bouton Télécharger (topbar) */

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #101418, #2c333d);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(20, 24, 31, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(20, 24, 31, 0.3);
}

.btn-download .store-icon {
    width: 16px;
    height: 16px;
    flex: none;
}

.btn-download .store-icon + .store-icon { margin-left: -3px; }

/* Version pleine largeur dans le menu mobile */
.sidebar-download {
    justify-content: center;
    margin-top: 1.4rem;
    padding: 13px 18px;
    font-size: 1rem;
}

@media (max-width: 820px) {
    .topbar nav { display: none; }
    .topbar .language-selector { display: none; }
    .topbar .btn-download { display: none; }
    .menu-btn { display: flex; }
}

/* Sur très petits écrans, le libellé du bouton laisse place aux icônes */
@media (max-width: 380px) {
    .sidebar-download .store-icon { width: 18px; height: 18px; }
}

/* Icônes dans les boutons de téléchargement des pages */
.store-btn { justify-content: center; }

.store-btn .store-icon {
    width: 18px;
    height: 18px;
    flex: none;
}

/* ------------------------------------------ galerie de captures à flèches */

.slider-wrap {
    position: relative;
}

.slider-wrap .slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    /* Pas de scroll-snap : il empêchait le défilement déclenché par les flèches.
       Le glissement tactile reste naturel sans lui. */
    padding: 0.5rem 0.25rem 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.slider-wrap .slider::-webkit-scrollbar { display: none; }

.slider-wrap .slider img {
    flex: 0 0 auto;
    width: min(240px, 62vw);
    height: auto;
    border-radius: 18px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.5);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(20, 24, 31, 0.1);
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.slider-wrap.has-arrows .slider-arrow { display: flex; }

.slider-arrow:hover { background: #fff; }

.slider-arrow:disabled { opacity: 0.3; cursor: default; }

.slider-prev { left: -6px; }
.slider-next { right: -6px; }

@media (min-width: 1100px) {
    .slider-prev { left: -20px; }
    .slider-next { right: -20px; }
}

@media (prefers-reduced-motion: reduce) {
    .slider-wrap .slider { scroll-behavior: auto; }
}

/* La galerie a déjà sa propre respiration : on évite d'empiler les marges
   avec la section de texte qui suit. */
.section-gallery {
    padding-bottom: 0;
}

/* ------------------------------------------- portfolio de jeux (home) */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.2rem;
}

.game-card {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    text-align: left;
}

.game-card > img {
    width: 104px;
    height: 104px;
    flex: none;
    border-radius: 23%;
    box-shadow: var(--shadow-soft);
}

.game-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.game-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.game-card .rating { font-size: 0.95rem; margin-bottom: 0.9rem; }

.game-card .cta-button { font-size: 1rem; padding: 10px 20px; }

@media (max-width: 520px) {
    .game-card { flex-direction: column; text-align: center; }
    .game-card > img { width: 88px; height: 88px; }
}

/* ---------------------------------------------- section studio (home) */

.studio-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(1.2rem, 3vw, 2.4rem);
    text-align: left;
}

.studio-text h2 { text-align: left; }

.studio-card p { margin: 0 0 0.9rem; max-width: none; }

.studio-illu {
    width: 100%;
    height: auto;
    border-radius: 18px;
}

@media (max-width: 720px) {
    .studio-card { grid-template-columns: 1fr; }
    .studio-illu { order: -1; }
}

/* Rythme vertical homogène : ~56 px entre deux sections, quel que soit l'écran */
.landing main > .section {
    padding-top: 0;
    padding-bottom: clamp(1rem, 2.2vw, 1.75rem);
}

.landing main > .section + .section {
    padding-top: clamp(1rem, 2.2vw, 1.75rem);
}

/* La galerie porte déjà sa propre respiration interne */
.landing main > .section-gallery { padding-bottom: 0; }

/* Animation du hero (page Junban) — SVG intégré */
.hero-anim {
    width: min(460px, 100%);
    line-height: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(20, 24, 31, 0.2);
}

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

@media (max-width: 820px) {
    .hero-anim { width: min(400px, 92%); }
}
