@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
    background: #0b0b10;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================================
   🧠 ACCUEIL BORDEAUX
========================================================= */

.home{
    background: black;
}

/* fond texte */
.background-text {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;

    filter: blur(0.2px);
}

.bg-line {
    position: absolute;
    white-space: nowrap;

    font-size: 14px;
    font-weight: 500;

    color: rgba(120, 0, 30, 0.55); /* BORDEAUX */
    text-shadow: 0 0 8px rgba(120,0,30,0.4);
}

/* gauche */
.from-left{
    left: -50%;
    animation: moveRight linear forwards;
}

/* droite */
.from-right{
    right: -50%;
    animation: moveLeft linear forwards;
}

/* anim */
@keyframes moveRight{
    from { transform: translateX(-100%); }
    to { transform: translateX(220vw); }
}

@keyframes moveLeft{
    from { transform: translateX(100%); }
    to { transform: translateX(-220vw); }
}

/* centre */
.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

/* TITRE PHASMOMEMO BORDEAUX */
.glitch {
    font-size: 80px;
    font-weight: 800;
    letter-spacing: 10px;

    text-transform: uppercase;

    background: linear-gradient(90deg, #ffffff, #7a001f, #ff0033);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 10px rgba(122,0,31,0.5),
        0 0 35px rgba(255,0,60,0.25);
}

/* sous titre */
.subtitle {
    margin-top: 10px;
    color: #cfcfcf;
}

/* menu */
.menu {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 25px;
    border: 1px solid #7a001f;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #7a001f;
    box-shadow: 0 0 25px #7a001f;
}

.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* =========================================================
   👻 ENTITÉS BORDEAUX
========================================================= */

header{
    text-align: center;
    padding: 60px 20px 30px;
}

/* TITRE ENTITÉS */
header h1 {
    font-size: 3.5rem;

    background: linear-gradient(90deg, #ffffff, #7a001f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow: 0 0 25px rgba(122,0,31,0.4);
}

/* GRID */
#ghosts-container{
    width: 95%;
    max-width: 1900px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 25px;
    padding: 40px 0 80px;
}

/* CARTES BORDEAUX */
.card{
    min-height: 340px;
    padding: 25px;

    border-radius: 22px;

    background: linear-gradient(145deg, #141015, #0f0a10);

    border: 1px solid rgba(122,0,31,0.25);

    box-shadow: 0 0 10px rgba(122,0,31,0.15);

    display: flex;
    flex-direction: column;

    transition: 0.3s;
}

.card:hover{
    transform: translateY(-8px) scale(1.02);

    border: 1px solid rgba(122,0,31,0.6);
    box-shadow:
        0 0 25px rgba(122,0,31,0.3),
        0 0 50px rgba(122,0,31,0.15);
}

/* TITRE CARTE */
.card h2{
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
}

/* trait */
.card h2::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;

    width: 55%;
    height: 3px;

    background: linear-gradient(90deg, #7a001f, transparent);
}

/* texte */
.card p{
    font-size: 0.95rem;
    margin-top: 10px;
    color: #d6d6d6;
    line-height: 1.6;
}

.card p strong{
    color: white;
}

/* =========================================================
   💀 POPUP
========================================================= */

body.modal-open{
    overflow: hidden;
}

#overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 999;
}

#overlay.active{
    opacity: 1;
    pointer-events: all;
}

.popup{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);

    width: 90%;
    max-width: 600px;

    background: rgba(20,10,12,0.95);

    border: 1px solid rgba(122,0,31,0.6);

    border-radius: 20px;
    padding: 25px;

    opacity: 0;
    transition: 0.3s;

    z-index: 1000;
}

.popup.active{
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.popup h2{
    font-size: 2rem;
    margin-bottom: 15px;
}

.popup p{
    margin: 10px 0;
    color: #ddd;
    line-height: 1.6;
}

.close-btn{
    margin-top: 20px;
    padding: 10px 15px;
    background: #7a001f;
    border: none;
    color: white;
    cursor: pointer;
}

/* =========================================================
   📱 MOBILE
========================================================= */

@media (max-width: 768px){

    .glitch{
        font-size: 45px;
    }

    #ghosts-container{
        grid-template-columns: repeat(1, 1fr);
    }
}