/* =========================================
   DREAMDALE 3D+ — THEME COMPLET (UI cartoon)
========================================= */

/* Variables */
:root {
    --bg1: #0d1f3b;
    --bg2: #141a33;

    --card-grad1: #1b264b;
    --card-grad2: #0f1838;

    --glow-blue: #4dc3ff;
    --glow-purple: #8b5ce6;

    --text-main: #eaf3ff;
    --text-soft: #b8c4e0;
}

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

/* BODY */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text-main);

    background: radial-gradient(circle at 50% 0%, #1d2b52, #131b33 50%, #0b1021 100%);
    background-size: 200% 200%;
    animation: dreamSky 60s ease-in-out infinite;

    position: relative;
    overflow-x: hidden;
}

/* Nuages magiques way smoother */
body::before {
    content: "";
    position: fixed;
    inset: -25%;
    pointer-events: none;
    z-index: -1;

    background:
      radial-gradient(circle at 20% 30%, rgba(119, 210, 255, 0.14), transparent 55%),
      radial-gradient(circle at 75% 20%, rgba(170, 150, 255, 0.16), transparent 55%),
      radial-gradient(circle at 35% 80%, rgba(130, 230, 180, 0.12), transparent 55%),
      radial-gradient(circle at 85% 75%, rgba(255, 200, 160, 0.13), transparent 55%);

    filter: blur(60px);
    opacity: 0.55;

    animation: cloudsMove 120s ease-in-out infinite alternate;
}

/* HEADER */
header {
    text-align: center;
    padding: 60px 20px 35px;
}

header h1 {
    font-size: 2.8rem;
    letter-spacing: 0.02em;
    text-shadow: 0 0 20px rgba(0,0,0,0.7);
    color: #cfe5ff;
}

header h2 {
    font-size: 1.05rem;
    margin-top: 8px;
    color: var(--text-soft);
}

.tagline {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

/* BOUTON DISCORD */
.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 26px;
    font-size: 1.05rem;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #6a78ff, #8ea0ff);
    text-decoration: none;
    box-shadow:
        0 4px 15px rgba(0,0,0,0.5),
        0 0 12px rgba(138,157,255,0.5);
    transition: 0.2s;
}

.btn-discord:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 10px 22px rgba(0,0,0,0.6),
        0 0 18px rgba(138,157,255,0.7);
}

/* TITRES SECTIONS */
.section-small-title {
    margin-top: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8daeff;
    font-size: 0.9rem;
}

.section-small-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 4px;
}

/* MAIN / GRID */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 15px 60px;
}

.grid {
    margin-top: 30px;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* CARTES 3D */
.card {
	position: relative;
    padding: 22px 18px 20px;
    border-radius: 22px;
    background: linear-gradient(160deg, var(--card-grad1), var(--card-grad2));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 3px 6px rgba(255,255,255,0.05),
        inset 0 -4px 8px rgba(0,0,0,0.3),
        0 10px 20px rgba(0,0,0,0.5),
        0 0 18px rgba(125,180,255,0.25);
    cursor: pointer;
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        inset 0 4px 8px rgba(255,255,255,0.06),
        inset 0 -6px 12px rgba(0,0,0,0.35),
        0 14px 26px rgba(0,0,0,0.65),
        0 0 22px rgba(100,180,255,0.35);
}

/* =========================================
   ICÔNES CARTOON 3D DREAMDALE
========================================= */
.card-icon {
    width: 74px;
    height: 74px;
    margin: -4px auto 18px; 

    /* Forme */
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;

    /* Background 3D */
    background: radial-gradient(circle at 30% 25%, 
        #ffffff 0%, 
        #def2ff 15%, 
        #8fc8ff 45%, 
        #4d7cff 70%, 
        #233a7a 100%
    );

    /* Relief interne */
    box-shadow:
        inset 3px 3px 8px rgba(255,255,255,0.45),
        inset -3px -5px 8px rgba(0,0,0,0.45),

        /* Glow externe Dreamdale */
        0 0 8px rgba(110,180,255,0.6),
        0 0 14px rgba(110,180,255,0.45),
        0 8px 18px rgba(0,0,0,0.55);

    transition: 0.28s ease;
	
	filter: drop-shadow(0 0 12px rgba(255,255,255,0.25));
}

/* Hover 3D boost */
.card:hover .card-icon {
    transform: translateY(-4px) scale(1.08);
    box-shadow:
        inset 3px 3px 8px rgba(255,255,255,0.5),
        inset -3px -5px 9px rgba(0,0,0,0.5),
        0 0 16px rgba(140,200,255,0.9),
        0 0 24px rgba(140,200,255,0.7),
        0 12px 22px rgba(0,0,0,0.65);
}

.card {
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 60%);
    pointer-events: none;
}


/* variation légère au hover */
.card:hover .card-icon {
    transform: translateY(-6px) scale(1.02) rotateX(4deg) rotateY(-3deg);
    box-shadow:
        0 6px 14px rgba(0,0,0,0.7),
        0 0 16px rgba(150,210,255,0.9);
}



/* TITRES / TEXTES */
.card-title {
    text-align: center;
    font-size: 1.12rem;
    margin-bottom: 6px;
    color: #def0ff;
    text-shadow: 0 0 6px rgba(90,130,200,0.4);
}

.card-text {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-soft);
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 50;
    padding: 20px;
}

.modal-content {
    background: rgba(20,30,60,0.92);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    max-width: 450px;
    padding: 26px;
    box-shadow:
        0 0 25px rgba(0,0,0,0.7),
        0 0 28px rgba(120,150,255,0.4);
    position: relative;
    animation: pop 0.22s ease-out;
}

@keyframes pop {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Gradient de fond qui “respire” */
@keyframes auroraShift {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 100%;
    }
}

/* Nuages Dreamdale qui dérivent lentement */
@keyframes cloudDrift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(-3%, -2%, 0);
    }
    100% {
        transform: translate3d(4%, 3%, 0);
    }
}

@keyframes dreamSky {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 60%; }
    100% { background-position: 0% 100%; }
}

/* Lente dérive des nuages */
@keyframes cloudsMove {
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(-4%, -3%, 0) scale(1.05); }
    100% { transform: translate3d(5%, 4%, 0) scale(1.03); }
}


.modal-close {
    position: absolute;
    right: 20px;
    top: 14px;
    font-size: 28px;
    cursor: pointer;
    color: #d1dcff;
}

.modal-content h3 {
    margin-bottom: 10px;
    color: #e4edff;
}

.modal-content p {
    color: var(--text-soft);
    margin-bottom: 15px;
}

.modal-content img {
    width: 100%;
    border-radius: 16px;
    margin-top: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.6);
}


/* Couleurs de base différentes par bloc (optionnel) */
.card:nth-child(1) .card-icon {
    background: radial-gradient(circle at 30% 25%,
        #ffffff 0%, #ffeccc 15%, #ffc977 45%, #ff9f4a 70%, #d27a28 100%);
}

.card:nth-child(2) .card-icon {
    background: radial-gradient(circle at 30% 25%,
        #ffffff 0%, #e5f6ff 15%, #93d5ff 45%, #4a9dff 70%, #2a5fd0 100%);
}

.card:nth-child(3) .card-icon {
    background: radial-gradient(circle at 30% 25%,
        #ffffff 0%, #e9ffdd 15%, #b5ff8a 45%, #70d65a 70%, #3c8a3a 100%);
}

.card:nth-child(4) .card-icon {
    background: radial-gradient(circle at 30% 25%,
        #ffffff 0%, #f7e5ff 15%, #d5a6ff 45%, #9f6cff 70%, #5c329f 100%);
}

.card:nth-child(5) .card-icon {
    background: radial-gradient(circle at 30% 25%,
        #ffffff 0%, #ffe5f0 15%, #ffb4c4 45%, #ff7a9c 70%, #c34262 100%);
}

@media (min-width: 900px) {
    .grid {
        row-gap: 28px;  /* un peu plus d’espace vertical */
    }
}



/* FOOTER */
footer {
    text-align: center;
    padding: 18px;
    margin-top: 35px;
    font-size: 0.85rem;
    color: var(--text-soft);
}
