/* ═══════════════════════════════════════════════════════════
   DUST & GLORY — home.css — Page d'accueil épique
═══════════════════════════════════════════════════════════ */

/* ══════════════ HERO ══════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center 25%;
    will-change: transform;
    transition: transform .05s linear;
}

.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(0,0,0,.3)  0%,
            rgba(0,0,0,.15) 40%,
            rgba(0,0,0,.6)  75%,
            rgba(0,0,0,.95) 100%);
}

.hero-vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 85% 85% at 50% 45%,
        transparent 30%, rgba(0,0,0,.75) 100%);
}

.hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    gap: 1.4rem;
    padding: 0 1.5rem;
    max-width: 900px;
}

/* Eyebrow */
.hero-eyebrow {
    display: flex; align-items: center; gap: .8rem;
    font-family: var(--ff-rdr); font-size: .6rem;
    letter-spacing: .45em; color: var(--red-l);
    opacity: .55; text-transform: uppercase;
}
.eyebrow-line {
    display: inline-block; width: 30px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192,57,43,.5));
}
.eyebrow-line:last-child {
    background: linear-gradient(90deg, rgba(192,57,43,.5), transparent);
}

/* Titre */
.hero-title {
    font-family: var(--ff-rdr);
    font-size: clamp(4.5rem, 16vw, 11rem);
    font-weight: normal; line-height: .92;
    letter-spacing: .03em;
    display: flex; align-items: center; justify-content: center; gap: .2em;
    filter: drop-shadow(0 8px 50px rgba(0,0,0,1));
}
.ht-dust {
    color: var(--cream);
    text-shadow: 0 2px 40px rgba(0,0,0,.9);
}
.ht-amp {
    color: var(--red-l); opacity: .55;
    font-size: .55em;
    text-shadow: 0 0 30px rgba(192,57,43,.4);
}
.ht-glory {
    background: linear-gradient(175deg,
        #ff7060 0%, var(--red-l) 25%, var(--red) 55%, var(--red-d) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 35px rgba(192,57,43,.55));
}

/* Sous-titre */
.hero-sub {
    font-family: var(--ff-body);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--cream2); line-height: 1.7;
    max-width: 500px; font-style: italic;
    text-shadow: 0 2px 12px rgba(0,0,0,.9);
    opacity: .85;
}

/* CTA */
.hero-cta {
    display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
    margin-top: .4rem;
}
.hbtn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .85rem 2rem;
    font-family: var(--ff-rdr); font-size: .78rem;
    letter-spacing: .14em; text-transform: uppercase;
    border-radius: 2px; cursor: pointer;
    transition: all .3s; text-decoration: none; border: none;
}
.hbtn-red {
    background: linear-gradient(135deg, var(--red-l) 0%, var(--red) 50%, var(--red-d) 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(192,57,43,.35);
}
.hbtn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(192,57,43,.55);
    color: #fff;
}
.hbtn-ghost {
    background: transparent;
    border: 1px solid rgba(240,224,200,.18);
    color: rgba(240,224,200,.6);
}
.hbtn-ghost:hover {
    border-color: rgba(240,224,200,.4);
    color: var(--cream);
    background: rgba(255,255,255,.04);
}
.hbtn-discord {
    background: rgba(88,101,242,.15);
    border: 1px solid rgba(88,101,242,.35);
    color: #a5aef8;
}
.hbtn-discord:hover {
    background: rgba(88,101,242,.3);
    color: #d0d4ff;
    transform: translateY(-2px);
}

/* Online badge */
.hero-online {
    display: flex; align-items: center; gap: .55rem;
    font-family: var(--ff-rdr); font-size: .66rem;
    letter-spacing: .22em; color: var(--muted);
    opacity: .5;
}
.online-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74,222,128,.5);
    animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

/* Flèche scroll */
.hero-scroll-hint {
    position: absolute; bottom: 2.2rem; left: 50%;
    transform: translateX(-50%); z-index: 2;
}
.scroll-arrow {
    width: 22px; height: 22px;
    border-right: 1.5px solid rgba(192,57,43,.4);
    border-bottom: 1.5px solid rgba(192,57,43,.4);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
    margin: 0 auto;
}
@keyframes bounce {
    0%,100%{ transform: rotate(45deg) translateY(0); opacity:.4}
    50%{ transform: rotate(45deg) translateY(6px); opacity:.9}
}

/* Reveal hero */
.reveal-hero {
    opacity: 0;
    transform: translateY(28px);
    animation: heroIn .7s ease forwards;
    animation-delay: var(--d, 0s);
}
@keyframes heroIn {
    to { opacity: 1; transform: none; }
}

/* ══════════════ PRÉSENTATION ══════════════ */
.pres {
    position: relative;
    padding: 7rem 2rem;
    overflow: hidden;
}
.pres-bg-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: brightness(.18) saturate(.4);
}
.pres-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,.92) 0%,
        rgba(0,0,0,.6)  50%,
        rgba(0,0,0,.92) 100%);
}
.pres-inner {
    position: relative; z-index: 1;
    max-width: 1080px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 3.5rem;
}

/* Header section */
.section-eyebrow {
    display: block;
    font-family: var(--ff-rdr); font-size: .65rem;
    letter-spacing: .45em; color: var(--red-l);
    opacity: .55; text-transform: uppercase; margin-bottom: .6rem;
}
.section-title {
    font-family: var(--ff-rdr);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: normal; color: var(--cream);
    letter-spacing: .06em; line-height: 1.1;
    text-shadow: 0 4px 24px rgba(0,0,0,.8);
}
.section-sep {
    display: flex; align-items: center; gap: .9rem;
    margin: .8rem 0;
}
.section-sep span {
    width: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192,57,43,.35));
}
.section-sep span:last-child {
    background: linear-gradient(90deg, rgba(192,57,43,.35), transparent);
}
.section-sep em { color: var(--red-d); font-size: .4rem; font-style: normal; opacity: .7; }
.section-sub {
    font-size: 1.1rem; color: var(--cream2);
    line-height: 1.8; max-width: 640px; opacity: .8;
}
.section-sub strong { color: var(--cream); }

/* Cartes présentation */
.pres-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.pcard {
    padding: 2rem 1.8rem;
    border: 25px solid transparent;
    border-image: url('../img/box_s_bg_1.png') 25 fill stretch;
    display: flex; flex-direction: column; gap: .7rem;
    transition: filter .3s, transform .3s;
}
.pcard:hover { filter: brightness(1.1); transform: translateY(-4px); }
.pcard-icon {
    font-size: 1.6rem; color: rgba(192,57,43,.5);
    margin-bottom: .4rem;
}
.pcard-title {
    font-family: var(--ff-rdr); font-size: .95rem;
    color: var(--cream); letter-spacing: .1em; font-weight: normal;
}
.pcard-text {
    font-size: 1rem; color: var(--muted); line-height: 1.65;
}

/* ══════════════ GALERIE SNAP ══════════════ */
.snap-gallery {
    position: relative;
    height: 42vh; min-height: 260px;
    overflow: hidden;
}
.sg-track {
    display: flex; height: 100%;
    animation: sgScroll 28s linear infinite;
}
.sg-item {
    flex-shrink: 0;
    width: 35vw; min-width: 300px;
    height: 100%;
    background-size: cover; background-position: center;
    filter: brightness(.55) saturate(.7);
    transition: filter .4s;
}
.sg-item:hover { filter: brightness(.8) saturate(1); }
@keyframes sgScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-200vw); }
}
/* Dupliquer visuellement via CSS (pseudo-scroll infini) */
.sg-track::after {
    content: '';
    display: flex;
}
.sg-overlay-left {
    position: absolute; left: 0; top: 0; bottom: 0; width: 120px;
    background: linear-gradient(to right, #000 0%, transparent 100%);
    pointer-events: none; z-index: 1;
}
.sg-overlay-right {
    position: absolute; right: 0; top: 0; bottom: 0; width: 120px;
    background: linear-gradient(to left, #000 0%, transparent 100%);
    pointer-events: none; z-index: 1;
}
.sg-cta {
    position: absolute; bottom: 1.4rem; right: 2rem; z-index: 2;
    font-family: var(--ff-rdr); font-size: .7rem;
    letter-spacing: .18em; color: var(--cream2);
    background: rgba(0,0,0,.6);
    border: 1px solid rgba(192,57,43,.3);
    padding: .5rem 1.2rem; border-radius: 2px;
    transition: all .3s; text-decoration: none;
    display: flex; align-items: center; gap: .5rem;
    opacity: .7;
}
.sg-cta:hover { opacity: 1; border-color: var(--red-l); color: var(--cream); }

/* ══════════════ LIENS RAPIDES ══════════════ */
.quick-links {
    background: #000;
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(140,0,0,.15);
    border-bottom: 1px solid rgba(140,0,0,.15);
}
.ql-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: .6rem;
}
.ql-card {
    display: flex; align-items: center; gap: .7rem;
    padding: .9rem 1.8rem;
    border: 20px solid transparent;
    border-image: url('../img/hud_menu_grey_dark.webp') 20 fill stretch;
    font-family: var(--ff-rdr); font-size: .75rem;
    letter-spacing: .18em; color: rgba(240,224,200,.65);
    text-decoration: none; text-transform: uppercase;
    transition: filter .3s, color .3s;
}
.ql-card i { font-size: .9rem; color: rgba(192,57,43,.45); transition: color .3s; }
.ql-card:hover { filter: brightness(1.15); color: var(--cream); }
.ql-card:hover i { color: var(--red-l); }

/* ══════════════ DISCORD CTA ══════════════ */
.discord-cta {
    position: relative;
    padding: 7rem 2rem;
    overflow: hidden;
    text-align: center;
}
.dc-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 40%;
    filter: brightness(.15) saturate(.3);
}
.dc-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%,
        rgba(20,0,40,.3) 0%, rgba(0,0,0,.85) 100%);
}
.dc-inner {
    position: relative; z-index: 1;
    max-width: 580px; margin: 0 auto;
    display: flex; flex-direction: column;
    align-items: center; gap: 1.2rem;
}
.dc-icon {
    font-size: 2.8rem;
    color: #8891f2;
    filter: drop-shadow(0 0 18px rgba(88,101,242,.4));
}
.dc-title {
    font-family: var(--ff-rdr);
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: normal; color: var(--cream);
    letter-spacing: .06em;
}
.dc-sub {
    font-size: 1.05rem; color: var(--muted);
    line-height: 1.7; font-style: italic;
}

/* ══════════════ FOOTER ══════════════ */
.site-footer {
    background: #000;
    border-top: 1px solid rgba(140,0,0,.15);
    padding: 2rem;
}
.sf-inner {
    max-width: 1080px; margin: 0 auto;
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: space-between;
    gap: 1rem;
}
.sf-logo {
    font-family: var(--ff-rdr); font-size: 1rem;
    letter-spacing: .12em; color: var(--cream2); opacity: .7;
}
.sf-copy {
    font-size: .75rem; color: var(--muted);
    opacity: .4; text-align: center; flex: 1;
}
.sf-links {
    display: flex; gap: 1.5rem;
}
.sf-links a {
    font-family: var(--ff-rdr); font-size: .65rem;
    letter-spacing: .18em; color: var(--muted);
    opacity: .5; text-decoration: none; transition: opacity .25s;
}
.sf-links a:hover { opacity: 1; color: var(--cream2); }

/* ══════════════ REVEAL GÉNÉRIQUE ══════════════ */
.reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity .65s ease var(--d,0s), transform .65s ease var(--d,0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 900px) {
    .pres-cards { grid-template-columns: 1fr; }
    .ql-inner { gap: .4rem; }
}
@media (max-width: 600px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .sf-inner { flex-direction: column; text-align: center; }
    .sf-copy { font-size: .68rem; }
    .ql-card { padding: .75rem 1.2rem; }
}
