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

/* BASE */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0b1220;
    color: #e5e7eb;
    line-height: 1.6;
    letter-spacing: -0.2px;
}

p {
    color: #a1a1aa;
    font-size: 0.95rem;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 50px 20px;
}

/* HERO */
.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
}

.subtitle {
    margin-top: 10px;
    color: #9ca3af;
    font-size: 0.95rem;
}

/* BADGES */
.badges {
    margin-top: 15px;
}

.badges span {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.8rem;
}

.badges.small span {
    font-size: 0.7rem;
    padding: 4px 10px;
}

/* BUTTONS */
.hero-actions {
    margin-top: 20px;
}

.cta {
    display: inline-block;
    margin: 5px;
    padding: 10px 18px;
    background: #38bdf8;
    color: #0b1220;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
}

.cta:hover {
    background: #0ea5e9;
}

.secondary {
    background: transparent;
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

/* PROJECTS */
.projects {
    margin-top: 50px;
}

.projects h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.project-card {
    background: rgba(30, 41, 59, 0.6);
    padding: 18px;
    border-radius: 10px;
    transition: 0.2s;
}

.project-card:hover {
    transform: translateY(-3px);
}

.project-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

.project-card a {
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.85rem;
}

/* ROLE */
.role {
    margin-top: 50px;
}

.role h2 {
    font-size: 1.2rem;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.role-grid div {
    background: rgba(56, 189, 248, 0.1);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
}

/* CONTACT */
.contact {
    margin-top: 50px;
    text-align: center;
}

.contact p {
    color: #9ca3af;
    margin-bottom: 10px;
}

/* FOOTER */
.footer {
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer p {
    font-size: 0.75rem;
    color: #6b7280;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    margin: 0 10px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {

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

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

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

section {
    margin-bottom: 60px;
}

h1, h2, h3 {
    letter-spacing: -0.3px;
}


h2 {
    font-size: 1.3rem;
    border-left: 3px solid #38bdf8;
    padding-left: 10px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 12px;

    backdrop-filter: blur(8px);

    transition: all 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.25);
}
.list-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.small-card {
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.12);

    padding: 12px 14px;
    border-radius: 10px;

    font-size: 0.9rem;
    color: #d1d5db;

    display: flex;
    align-items: center;
    gap: 8px;

    transition: all 0.2s ease;
}

/* bullet moderne */
.small-card::before {
    content: "▹";
    color: #38bdf8;
    font-weight: bold;
}

.small-card:hover {
    transform: translateX(3px);
    border-color: rgba(56, 189, 248, 0.35);
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);

    padding: 18px;
    border-radius: 14px;

    text-align: center;

    transition: all 0.2s ease;
}

.stat:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.25);
}

.stat h3 {
    font-size: 1.2rem;
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat p {
    font-size: 0.85rem;
    color: #a1a1aa;
}

h1, h2, h3 {
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.15rem;
    margin-bottom: 12px;

    display: flex;
    align-items: center;
    gap: 8px;
}

/* petite barre pro */
h2::before {
    content: "";
    width: 4px;
    height: 16px;
    background: #38bdf8;
    border-radius: 2px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);

    padding: 18px 16px;
    border-radius: 14px;

    transition: all 0.25s ease;

    display: flex;
    flex-direction: column;
    gap: 8px;

    min-height: 110px;
}

/* Hover subtil pro */
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.25);
}

/* TITRE (Problème / Action / Impact) */
.card h3 {
    font-size: 0.9rem;
    font-weight: 600;

    color: #38bdf8;
    letter-spacing: -0.3px;

    margin: 0;
}

/* TEXTE */
.card p {
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.4;

    margin: 0;
}

.card.problem h3 {
    color: #f87171; /* rouge doux */
}

.card.action h3 {
    color: #fbbf24; /* jaune pro */
}

.card.impact h3 {
    color: #34d399; /* vert */
}
.breadcrumb {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #38bdf8;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.visual {
    margin-top: 50px;
}

.visual h2 {
    margin-bottom: 15px;
}

/* CONTAINER SCROLL */
.visual-container {
    display: flex;
    gap: 16px;

    overflow-x: auto;
    padding-bottom: 10px;
}


/* scrollbar clean */
.visual-container::-webkit-scrollbar {
    height: 6px;
}

.visual-container::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 10px;
}

/* CARD */
.visual-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);

    flex: 0 0 400px; /* largeur fixe propre */
    max-width: 400px;

    position: relative;
    border-radius: 14px;
    overflow: hidden;

    cursor: pointer;
}


.visual-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.25);
}



/* LEGEND */
.visual-card p {
    font-size: 0.8rem;
    color: #9ca3af;
    padding: 10px;
    line-height: 1.4;
}


.visual-card {
    min-width: 280px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);

    border-radius: 14px;
    overflow: hidden;

    transition: transform 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

/* IMAGE WRAPPER (important pour zoom propre) */
.visual-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #020617;
    cursor: zoom-in;
}

/* HOVER GLOBAL */
.visual-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(56, 189, 248, 0.3);
}
.visual-card:hover img {
    transform: scale(1.05);
    position: relative;
    z-index: 10;
}

.visual-card {
    overflow: visible; /* clé */
}
.visual-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: 0.3s;
}

.visual-card:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .visual-card {
        flex: 0 0 240px;
    }

    .visual-card img {
        height: 150px;
    }
}
.about p {
    line-height: 1.7;
    margin-bottom: 12px;
}


.about {
    margin-top: 60px;
    padding: 28px 24px;

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;

    backdrop-filter: blur(8px);

    font-size: 1.05rem;
    font-weight: 500;
    color: #e5e7eb;

    line-height: 1.6;
    margin-bottom: 12px;
}

/* TITRE SECTION */
.about h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f9fafb;

    margin-bottom: 16px;
}



/* PARAGRAPHE */
.about-content p {
    color: #9ca3af;
    font-size: 0.92rem;
    line-height: 1.6;

    margin-bottom: 10px;
}

/* GRID EXPERIENCE / FORMATION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;

    margin-top: 20px;
}

/* CARD */
.about-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);

    padding: 14px;
    border-radius: 12px;

    transition: all 0.25s ease;
}

/* HOVER SUBTIL (important UX) */
.about-item:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.25);
}

/* LABEL (EXP / FORMATION) */
.about-item .label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: #38bdf8;

    display: block;
    margin-bottom: 8px;
}

/* TEXTE INTERNE */
.about-item p {
    font-size: 0.88rem;
    color: #d1d5db;
    line-height: 1.4;

    margin: 4px 0;
}

.about .intro.highlight {
    background: rgba(56, 189, 248, 0.08);
    border-left: 3px solid #38bdf8;

    padding: 12px 14px;
    border-radius: 10px;

    color: #e5e7eb;
    font-weight: 500;
}
/* ========================= */
/* CHANGEOVER SPECIFIC       */
/* ========================= */

/* HERO plus impactant */
.hero {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.hero h1 {
    font-size: 2.2rem;
    line-height: 1.3;
}

/* Triptych plus équilibré */
.triptych {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

/* Section spacing amélioré */
.section {
    margin-top: 50px;
}

/* Accent industriel (subtil mais pro) */
.section h2 {
    color: #f3f4f6;
}

/* CTA plus premium */
.contact .cta {
    margin-top: 15px;
    padding: 12px 22px;
    font-size: 0.9rem;
}

/* ========================= */
/* VISUAL BOOST (IMPORTANT)  */
/* ========================= */

/* effet glass + profondeur */
.visual-card {
    backdrop-filter: blur(6px);
}

/* overlay gradient pro */

.visual-card::before {
    content: "Voir en grand";
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.7rem;
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 6px;
    color: #e5e7eb;
    opacity: 0;
    transition: 0.2s;
}

.visual-card:hover::before {
    opacity: 1;
}
/* ========================= */
/* MICRO INTERACTIONS        */
/* ========================= */

/* cards plus vivantes */
.small-card:hover {
    background: rgba(56, 189, 248, 0.12);
}

/* stat plus lisible */
.stat h3 {
    letter-spacing: -0.2px;
}

/* ========================= */
/* RESPONSIVE AMÉLIORÉ       */
/* ========================= */

@media (max-width: 768px) {

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

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

    .list-cards {
        grid-template-columns: 1fr;
    }

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


.visual-card img {
    cursor: zoom-in;
}



.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(0,0,0,0.98);

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

    z-index: 999999; /* ultra safe */
}

/* 🔥 IMAGE VRAIMENT FULL */
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;

    object-fit: contain;

    transition: transform 0.2s ease;
    cursor: zoom-in;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    overflow: auto; /* 🔥 permet scroll si zoom */
    display: flex;
    justify-content: center;
    align-items: center;
}




.project-card {
    position: relative;
}

.project-card::after {
    content: "Cas réel";
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 4px 6px;
    border-radius: 6px;
}