/* ----------------------
   RESET & BASE
----------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    background: radial-gradient(circle at top left, #0f172a 0%, #020617 45%, #020617 100%);
    color: #e5e7eb;
    scroll-behavior: smooth;
}

/* Liens généraux */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease-in-out, background 0.25s ease-in-out, transform 0.25s ease-in-out;
}

a:focus,
a:hover {
    outline: 0;
    text-decoration: none;
}

/* Titres */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: #f9fafb;
    letter-spacing: .03em;
}

/* Boutons */
.btn {
    min-width: 160px;
    line-height: 46px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 999px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    color: #0b1120;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #22c55e, #06b6d4);
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    z-index: -1;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.5);
}

.btn-primary:hover::before,
.btn-primary:focus::before {
    opacity: 1;
}

/* ----------------------
   HEADER & NAVBAR
----------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    padding: 0;
}

.site-navigation {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    margin: 0;
    padding: 0;
}

.site-navigation .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 54px;
}

.navbar-header .navbar-toggle {
    border: none;
    background: transparent;
}

.navbar-toggle .icon-bar {
    background: #e5e7eb;
}

/* Menu principal */
.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu ul li {
    display: inline-block;
    margin-left: 24px;
}

.main-menu ul li a {
    position: relative;
    padding: 6px 10px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #cbd5f5;
}

.main-menu ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width 0.25s ease-in-out;
}

.main-menu ul li a:hover,
.main-menu ul li a:focus {
    color: #f9fafb;
}

.main-menu ul li a:hover::after,
.main-menu ul li a:focus::after {
    width: 70%;
}

/* Variante "scrolled" possible via JS (optionnel) */
.site-header.scrolled {
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

/* ----------------------
   HERO
----------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    background: url("../img/hero.jpg") no-repeat center center/cover;
    display: flex;
    align-items: stretch;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.35), transparent 55%),
        radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.35), transparent 60%),
        rgba(15, 23, 42, 0.9);
}

/* Overlay + contenu */
.hero-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 120px 15px 80px;
}

.hero-intro-box {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 32px 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.65));
    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(18px);
}

.hero-intro-box h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.job-title {
    font-size: 18px;
    margin-bottom: 24px;
    color: #e5e7eb;
}

/* ----------------------
   SECTIONS GÉNÉRALES
----------------------- */

.site-main {
    position: relative;
    z-index: 1;
}

.site-section {
    padding: 120px 0 80px;
}

.section-skills,
.section-portfolio,
.section-experience {
    padding-bottom: 120px;
}

/* Petite ligne décorative */
.img-lines {
    margin: 12px 0 36px;
    opacity: 0.9;
}

/* Titres de section centraux */
.section-title,
.text-center > h2,
.text-center > h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2,
.section-title h3,
.text-center > h2,
.text-center > h3 {
    font-size: 28px;
}

.section-title h2::after,
.section-title h3::after,
.text-center > h2::after,
.text-center > h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 80px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    transform: translateX(-50%);
}

/* ----------------------
   SECTION "A PROPOS"
----------------------- */

.section-about {
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.18), transparent 55%);
}

.section-about p {
    max-width: 720px;
    margin: 0 auto 12px;
    color: #e5e7eb;
}

/* ----------------------
   SECTION BTS (about2.facts)
----------------------- */

.facts {
    position: relative;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.24), transparent 55%);
}

.facts .section-title {
    text-align: center;
}

.facts p,
.facts h6 {
    color: #e5e7eb;
}

/* Cartes SISR / SLAM */

.spec_bts {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 18px;
}

.bts_sisr,
.bts_slam {
    flex: 1 1 280px;
    text-align: left;
    padding: 24px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
}

/* Accent lumineux sur le côté */
.bts_sisr::before,
.bts_slam::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
    z-index: -1;
}

.bts_slam::before {
    background: radial-gradient(circle at top, rgba(129, 140, 248, 0.2), transparent 55%);
}

.bts_sisr:hover::before,
.bts_slam:hover::before {
    opacity: 1;
    transform: translateY(-6%);
}

.bts_sisr:hover,
.bts_slam:hover {
    transform: translateY(-4px);
    box-shadow:
        0 22px 50px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(96, 165, 250, 0.4);
}

.small-text {
    font-size: 13px;
    font-weight: 400;
    color: #a5b4fc;
    margin-left: 6px;
}

/* Petits bullets */
.bts_sisr ul,
.bts_slam ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.bts_sisr ul i,
.bts_slam ul i {
    color: #38bdf8;
}

/* ----------------------
   COMPÉTENCES TECHNIQUES
----------------------- */

.section-skills {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 55%);
}

.section-skills > .container > p {
    max-width: 760px;
    margin: 0 auto 28px;
    color: #cbd5f5;
}

/* Grille des compétences */
.skills-parent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

/* Carte compétence */
.skills-card {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    border-radius: 18px;
    box-shadow:
        0 14px 36px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(148, 163, 184, 0.24);
    padding: 18px 16px;
    height: 100%;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Halo coloré au survol */
.skills-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 120deg, #22d3ee, #6366f1, #22c55e, #22d3ee);
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
    z-index: -1;
}

.skills-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.98),
        0 0 0 1px rgba(59, 130, 246, 0.6);
}

.skills-card:hover::before {
    opacity: 0.7;
}

/* Contenu image + nom */
.skills-img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
}

.skills-img img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 4px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
}

.skills-name p {
    margin: 0;
    font-weight: 600;
    color: #e5e7eb;
    font-size: 13px;
}

/* ----------------------
   OUTILS TECHNIQUES
----------------------- */

.section-skills:nth-of-type(2) {
    background: radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 55%);
}

/* ----------------------
   EXPÉRIENCES & VEILLES
----------------------- */

.section-experience {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 55%);
}

.veille-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
}

.veille-wrapper .col-md-4 {
    display: flex;
    justify-content: center;
}

/* Cartes expériences & veilles */
.experience-card,
.veille-card {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.9));
    color: #e5e7eb;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.98),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    border-radius: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 20px;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before,
.veille-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 160deg, #22d3ee, #6366f1, #22c55e, #22d3ee);
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
    z-index: -1;
}

.experience-card:hover,
.veille-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 1),
        0 0 0 1px rgba(129, 140, 248, 0.7);
}

.experience-card:hover::before,
.veille-card:hover::before {
    opacity: 0.6;
}

.same-btn {
    min-width: 200px;
    display: inline-block;
    text-align: center;
    margin-top: 10px;
}

/* ----------------------
   DIVERS
----------------------- */

/* Texte "feu" SLAM si tu veux garder l'effet */
.neon2 .feure {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: radial-gradient(circle at center, #f97316, #ea580c, #b91c1c);
    box-shadow:
        0 0 10px rgba(248, 113, 113, 0.8),
        0 0 18px rgba(239, 68, 68, 0.7);
}

/* ----------------------
   RESPONSIVE
----------------------- */

@media (max-width: 991px) {

    .site-navigation .container {
        justify-content: space-between;
    }

    .main-menu ul li {
        display: block;
        margin: 10px 0;
        text-align: right;
    }

    .hero-intro-box {
        padding: 24px 18px;
    }

    .hero-intro-box h1 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .site-section {
        padding-top: 100px;
    }

    .spec_bts {
        flex-direction: column;
    }

    .bts_sisr,
    .bts_slam {
        width: 100%;
    }

    .skills-parent {
        gap: 14px;
    }

    .skills-card {
        min-width: 140px;
    }

    .experience-card,
    .veille-card {
        text-align: center;
    }
}

/* ===========================
   SECTION PROJET (HOME)
=========================== */

.section-projet {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.15), transparent 60%);
}

.projet-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.projet-card {
    max-width: 400px;
    padding: 25px;
    border-radius: 22px;
    text-align: center;

    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(148, 163, 184, 0.25);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.projet-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 1),
        0 0 0 1px rgba(56, 189, 248, 0.6);
}

.projet-card h3 {
    margin-bottom: 10px;
}

.projet-card p {
    color: #cbd5f5;
    margin-bottom: 20px;
}