/* Page d'accueil — s'ajoute à style.css */

header { justify-content: center; gap: 18px; }

main {
    width: min(1000px, calc(100% - 32px));
    margin: 0 auto;
    padding: 50px 0 70px;
}

.home-logo {
    width: 170px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 43, 43, 0.5));
    animation: float 5s ease-in-out infinite;
}

main h1 {
    margin: 6px 0 4px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(60px, 13vw, 120px);
    line-height: 0.9;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 0 40px rgba(255, 43, 43, 0.45);
}

.tagline {
    margin: 0 0 46px;
    font-size: 17px;
    color: var(--muted);
}

.intro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mode-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 30px 20px 26px;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(.2, 1, .3, 1), border-color 0.3s, box-shadow 0.3s;
    animation: rise 0.5s ease both;
}

.mode-card:nth-child(2) { animation-delay: 0.08s; }
.mode-card:nth-child(3) { animation-delay: 0.16s; }

.mode-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 43, 43, 0.18), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s;
}

.mode-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 43, 43, 0.45);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 43, 43, 0.18);
    text-shadow: none;
    color: var(--text);
}

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

.mode-card > * { position: relative; }

.hover-image {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(255, 43, 43, 0.4));
    transition: transform 0.4s cubic-bezier(.2, 1.4, .4, 1);
}

.mode-card:hover .hover-image { transform: scale(1.1) rotate(-3deg); }

.mode-card h2 {
    margin: 8px 0 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: 40px;
    letter-spacing: 0.06em;
    line-height: 1.1;
    color: #fff;
}

.mode-card p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

.difficulty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.difficulty i {
    display: block;
    width: 22px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.difficulty i.on { background: var(--red); box-shadow: 0 0 8px var(--red-glow); }

.play {
    margin-top: 16px;
    padding: 10px 26px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.25s, box-shadow 0.25s;
}

.mode-card:hover .play {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 20px rgba(255, 43, 43, 0.5);
}

@media (max-width: 760px) {
    main { padding-top: 34px; }
    .home-logo { width: 120px; }
    .tagline { margin-bottom: 28px; font-size: 15px; }
    .intro { grid-template-columns: 1fr; gap: 14px; }

    .mode-card {
        display: grid;
        grid-template-columns: 90px 1fr;
        grid-template-rows: auto auto auto;
        column-gap: 16px;
        row-gap: 4px;
        align-items: center;
        text-align: left;
        padding: 18px;
    }

    .hover-image { width: 90px; grid-row: 1 / 4; }
    .mode-card h2 { margin: 0; font-size: 32px; }
    .mode-card p { margin: 0; font-size: 13px; }
    .play { display: none; }
}

.install {
    margin-top: 34px;
    animation: rise 0.5s 0.25s ease both;
}

.install-hint {
    margin: 0 auto;
    max-width: 420px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
}

/* --- Présentation du jeu (référencement) --- */
.tagline { max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.55; }

.about {
    width: min(760px, 100%);
    margin: 60px auto 0;
    text-align: left;
    line-height: 1.65;
    color: #cfc6c8;
}

.about h2 {
    margin: 40px 0 14px;
    font-family: var(--display);
    font-weight: 400;
    font-size: 34px;
    letter-spacing: 0.04em;
    color: #fff;
}

.about h2:first-child { margin-top: 0; }
.about p { margin: 0 0 14px; font-size: 16px; }
.about b { color: #fff; }

.about-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.about-steps li {
    position: relative;
    counter-increment: step;
    padding: 18px 16px 16px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
}

.about-steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    border-radius: 9px;
    font-weight: 800;
    color: #fff;
    background: var(--red);
    box-shadow: 0 0 14px var(--red-glow);
}

.about-steps strong { display: block; margin-bottom: 4px; font-size: 16px; color: #fff; }
.about-steps span { font-size: 14px; color: var(--muted); }

.faq { display: flex; flex-direction: column; gap: 8px; }

.faq details {
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    overflow: hidden;
}

.faq summary {
    position: relative;
    padding: 15px 48px 15px 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    list-style: none;
}

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

.faq summary::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--red-soft);
    border-bottom: 2px solid var(--red-soft);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s;
}

.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { background: rgba(255, 255, 255, 0.03); }
.faq details p { margin: 0; padding: 0 18px 16px; font-size: 15px; color: #cfc6c8; }

@media (max-width: 760px) {
    .about { margin-top: 44px; }
    .about h2 { font-size: 28px; }
    .about-steps { grid-template-columns: 1fr; }
}

/* =========================================================
   Accueil : enseigne du MhyTom Bluff Club
   ========================================================= */
.home-hero {
    position: relative;
    isolation: isolate;
    width: min(760px, 100%);
    margin: 4px auto 44px;
    padding: 30px 24px 34px;
}

.home-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0 8%;
    border: 1px solid rgba(215,164,95,.2);
    border-radius: 42% 42% 28px 28px / 26% 26% 28px 28px;
    background:
        linear-gradient(90deg, transparent 49.7%, rgba(215,164,95,.08) 50%, transparent 50.3%),
        linear-gradient(180deg, rgba(55,24,29,.34), rgba(10,6,7,.12));
    box-shadow: inset 0 0 40px rgba(0,0,0,.28), 0 0 50px rgba(255,25,35,.05);
}

.home-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 18%;
    right: 18%;
    bottom: 8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 12px rgba(215,164,95,.28);
}

.bar-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    padding: 7px 13px;
    color: var(--gold-soft);
    border: 1px solid rgba(215,164,95,.2);
    border-radius: 999px;
    background: rgba(0,0,0,.32);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.bar-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 5px #fff, 0 0 12px var(--red), 0 0 22px var(--red);
    animation: neonPulse 2.8s ease-in-out infinite;
}

.home-logo {
    display: block;
    margin: 0 auto -4px;
    filter:
        drop-shadow(0 0 3px rgba(255,255,255,.55))
        drop-shadow(0 0 16px rgba(255,36,45,.7))
        drop-shadow(0 0 40px rgba(255,20,31,.28));
}

.hero-kicker {
    margin: 0 0 3px;
    color: var(--gold);
    font-family: var(--display);
    font-size: 16px;
    letter-spacing: .28em;
    text-transform: uppercase;
}

main h1 {
    color: #fff8f5;
    text-shadow:
        0 0 3px #fff,
        0 0 9px #ff6066,
        0 0 24px rgba(255,28,38,.88),
        0 0 62px rgba(255,16,27,.52);
}

.tagline { max-width: 620px; margin-bottom: 15px; }
.tagline strong { color: #fff; letter-spacing: .04em; }

.hero-facts {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #b9aaac;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero-facts i {
    width: 4px;
    height: 4px;
    transform: rotate(45deg);
    background: var(--red);
    box-shadow: 0 0 9px var(--red);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    color: var(--gold-soft);
    font-family: var(--display);
    font-size: 16px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.section-heading::before,
.section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(215,164,95,.35));
}

.section-heading::after { transform: scaleX(-1); }

.mode-card {
    padding-top: 42px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.035), transparent 40%),
        radial-gradient(circle at 50% 27%, rgba(120,7,15,.18), transparent 46%),
        linear-gradient(180deg, rgba(28,15,18,.98), rgba(11,7,8,.98));
    border-color: rgba(215,164,95,.13);
    border-radius: 8px 8px 24px 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,.46), inset 0 1px rgba(255,255,255,.05);
}

.mode-card::after {
    content: "TABLE 0" counter(mode-table);
    position: absolute;
    top: 13px;
    left: 16px;
    color: rgba(241,212,158,.58);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
}

.intro { counter-reset: mode-table; }
.mode-card { counter-increment: mode-table; }

.mode-card::before {
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent),
        radial-gradient(circle at 50% 31%, rgba(255,35,45,.24), transparent 62%);
}

.mode-card:hover {
    transform: translateY(-10px) rotate(.25deg);
    border-color: rgba(255,73,81,.52);
    box-shadow: 0 34px 70px rgba(0,0,0,.58), 0 0 0 1px rgba(255,44,53,.1), 0 0 42px rgba(255,28,38,.18);
}

.mode-card:nth-child(2):hover { transform: translateY(-10px) rotate(-.25deg); }

.mode-card h2 {
    font-size: 46px;
    text-shadow: 0 0 3px rgba(255,255,255,.5), 0 0 18px rgba(255,35,45,.42);
}

.play {
    min-width: 116px;
    border-color: rgba(215,164,95,.2);
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: .14em;
}

.mode-card:hover .play {
    background: linear-gradient(180deg, #ff454d, #9d0911);
    box-shadow: 0 0 8px rgba(255,255,255,.18), 0 0 24px rgba(255,35,45,.58);
}

.support {
    background:
        linear-gradient(135deg, rgba(215,164,95,.09), transparent 38%),
        linear-gradient(180deg, rgba(29,17,17,.97), rgba(12,8,8,.97));
    border-color: rgba(215,164,95,.28);
    box-shadow: 0 25px 65px rgba(0,0,0,.48), inset 0 0 0 7px rgba(215,164,95,.025);
}

.about h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(215,164,95,.16);
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; }
    48% { opacity: .9; }
    50% { opacity: .5; }
    52% { opacity: 1; }
}

@media (max-width: 760px) {
    .home-hero { margin-bottom: 30px; padding: 20px 12px 26px; }
    .home-hero::before { inset: 0; border-radius: 34% 34% 20px 20px / 18% 18% 20px 20px; }
    .hero-kicker { font-size: 13px; letter-spacing: .2em; }
    .hero-facts { gap: 7px; font-size: 9px; }
    .section-heading { margin-bottom: 12px; font-size: 13px; }

    .mode-card {
        grid-template-columns: 82px 1fr;
        padding: 28px 16px 16px;
        border-radius: 6px 6px 18px 18px;
    }
    .hover-image { width: 82px; }
    .mode-card h2 { font-size: 35px; }
    .mode-card::after { top: 9px; left: 14px; }
}

/* --- 4e mode : Last Call (18+) --- */
.intro { grid-template-columns: repeat(4, 1fr); }
.mode-card .age-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    border-radius: 999px;
    background: rgba(255, 43, 43, 0.25);
    border: 1px solid rgba(255, 43, 43, 0.6);
}

@media (max-width: 1000px) and (min-width: 761px) {
    .intro { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .intro { grid-template-columns: 1fr; }
    .mode-card .age-badge { top: 10px; right: 10px; }
}
