/* =========================
   RESET GLOBAL
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #020b1f;
    color: white;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 8%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(2, 11, 31, 0.9);
    backdrop-filter: blur(10px);

    z-index: 1000;

    border-bottom: 1px solid rgba(88, 166, 255, 0.2);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;

    color: #58a6ff;
    text-decoration: none;

    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
}

.brand:hover {
    opacity: 0.85;
    transition: 0.3s;
}

.nav-logo {
    width: 90px;
    height: 70px;
    object-fit: contain;
}

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

nav a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #58a6ff;
}

/* =========================
   HERO / ACCUEIL
========================= */

.hero {
    min-height: 100vh;

    background:
        radial-gradient(circle at top right, rgba(13, 91, 215, 0.8), transparent 35%),
        linear-gradient(135deg, #020b1f, #031b45, #020b1f);

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 120px 20px 60px;
}

.hero-content {
    max-width: 1200px;
}

.logo {
    width: 350px;
    max-width: 80%;

    margin-bottom: 30px;

    transform: translateX(14px);

    filter: drop-shadow(0 0 25px rgba(88, 166, 255, 0.7));
}

.hero h1 {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: 8px;

    margin-bottom: 15px;
}

.hero p {
    color: #8ec5ff;
    font-size: 1.4rem;

    margin-bottom: 40px;
}

/* =========================
   BOUTON
========================= */

.btn {
    display: inline-block;

    padding: 14px 35px;

    border: 1px solid #58a6ff;
    border-radius: 30px;

    color: white;
    text-decoration: none;

    transition: 0.3s;
}

.btn:hover {
    background: #58a6ff;
    color: #020b1f;
}

/* =========================
   SECTIONS GÉNÉRALES
========================= */

.section {
    min-height: 70vh;
    padding: 120px 10%;
    text-align: center;
}

.section h2 {
    font-size: 2.8rem;
    color: #58a6ff;
    margin-bottom: 30px;
}

.section p {
    max-width: 800px;
    margin: auto;

    font-size: 1.2rem;
    line-height: 1.8;

    color: #dbeafe;
}

.dark {
    background: #061735;
}

.section-intro {
    margin-bottom: 40px;
}

/* =========================
   SECTION QUI SUIS-JE ?
========================= */

.about-container {
    margin-top: 50px;

    display: grid;
    grid-template-columns: 2fr 1fr;

    gap: 60px;
}

/* Grand bloc texte à gauche */
.about-text {
    background: rgba(88, 166, 255, 0.05);

    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 20px;

    padding: 40px;

    text-align: left;
}

.about-text h3 {
    color: #58a6ff;

    margin-bottom: 20px;

    font-size: 1.8rem;
}

.about-text p {
    margin: 0;
    max-width: none;
    line-height: 1.9;
}

/* Colonne de droite contenant CV + TryHackMe */
.about-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Cartes CV et TryHackMe */
.about-card {
    min-height: 240px;

    background: rgba(88, 166, 255, 0.05);

    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 20px;

    padding: 30px;

    text-decoration: none;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;

    transition: 0.3s;
}

/* Effet au survol des cartes */
.about-card:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.08);
}

/* 
   Wrapper autour du logo.
   Il sert à placer le halo bleu derrière l'image.
*/
.logo-wrapper {
    position: relative;

    width: 220px;
    height: 160px;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* 
   Halo bleu derrière les logos.
   Tu peux agrandir ou réduire le halo avec width/height.
*/
.logo-wrapper::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 260px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(88, 166, 255, 0.28) 0%,
        rgba(88, 166, 255, 0.14) 35%,
        rgba(88, 166, 255, 0.05) 60%,
        transparent 80%
    );

    z-index: 0;
}

/* Logo visible par-dessus le halo */
.about-logo {
    position: relative;
    z-index: 1;

    width: 150px;
    height: 150px;

    object-fit: contain;
}

/* Texte des cartes */
.about-card h3 {
    color: #58a6ff;

    font-size: 1.1rem;

    margin: 0;

    text-align: center;
}

/* =========================
   ARTICLES / SE TENIR AU COURANT
========================= */

.articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-top: 50px;
}

.article-card {
    background: rgba(2, 11, 31, 0.75);

    border: 1px solid rgba(88, 166, 255, 0.35);
    border-radius: 18px;

    padding: 30px;

    text-align: left;

    box-shadow: 0 0 25px rgba(0, 80, 200, 0.25);

    transition: 0.3s;
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(88, 166, 255, 0.8);
}

.article-logo {
    width: 120px;
    height: 120px;

    object-fit: contain;

    display: block;

    margin: 0 auto 20px auto;

    transition: 0.3s;
}

.article-card:hover .article-logo {
    transform: scale(1.05);
}

.article-tag {
    display: inline-block;

    margin-bottom: 15px;

    padding: 6px 12px;

    border-radius: 20px;

    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;

    font-size: 0.85rem;
    font-weight: bold;
}

.article-card h3 {
    color: white;

    font-size: 1.5rem;

    margin-bottom: 15px;
}

.article-card p {
    font-size: 1rem;
    line-height: 1.6;

    color: #dbeafe;

    margin: 0;
}

.article-card a {
    display: inline-block;

    margin-top: 25px;

    color: #58a6ff;

    text-decoration: none;

    font-weight: bold;
}

.article-card a:hover {
    text-decoration: underline;
}

/* =========================
   CONTACT
========================= */

.mail {
    display: inline-block;

    margin-top: 25px;

    color: #58a6ff;

    text-decoration: none;

    font-size: 1.3rem;
}

.mail:hover {
    text-decoration: underline;
}

/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    padding: 25px;

    background: #010714;

    color: #8ec5ff;
}

/* =========================
   MOBILE / RESPONSIVE
========================= */

@media (max-width: 800px) {

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin: 5px 10px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .logo {
        width: 220px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .articles {
        grid-template-columns: 1fr;
    }
}