:root{
    --accent: #0d6efd; /* default bootstrap primary */
    --bg: #ffffff;
    --fg: #111827;
    --card-bg: #f8f9fa;
}
[data-theme="dark"]{
    --bg: #0b1220;
    --fg: #e6eef8;
    --card-bg: #0f1724;
}
html,body{height:100%;}
body{
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background:var(--bg);
    color:var(--fg);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}


/* Navbar */
.navbar-brand strong{letter-spacing:0.6px}


/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(
        180deg,
        #ffffff,
        rgba(219, 233, 255, 1)
    );
}

.hero .avatar {
    width: 320px;
    border-radius: 50%;
    box-shadow:0 10px 30px rgba(13,110,253,0.12);
    border:4px solid rgba(13,110,253,0.07);

}

.avatar{
    min-width: 320px;
    height: 320px;

}



/* === SECTION PINNÉE === */
.timeline-pin {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(
        180deg,
        #dbe9ff,
        rgba(255, 255, 255, 0.05)
    );
}

/* écran split */
.timeline-screen {
    display: flex;
    width: 100%;
    max-width: 1300px;
    margin: auto;
    gap: 4rem;
    padding: 0 2rem;

}

/* GAUCHE */
.timeline-left {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;


}

/* ligne fixe */
.timeline-line {
    position: absolute;
    left: 8px;
    top: 0;
    width: 4px;
    height: 100%;
    background: #333;
    border-radius: 2px;
}

/* ligne animée */
.timeline-line-progress {
    position: absolute;
    left: 8px;
    top: 0;
    width: 4px;
    height: 0%;
    background: var(--accent);
    border-radius: 2px;
    transform-origin: top;
}


.tl-item {
    padding-left: 2rem;
    margin: 2rem 0;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.tl-item.active {
    opacity: 1;
}

/* DROITE */
.timeline-right {
    width: 60%;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.06),
        0 1px 0 rgba(0,0,0,0.04);
}

.desc-item {
    display: none;
    max-width: 500px;
}

.desc-item.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}






/* Cards grid */
.repo-card{background:var(--card-bg);border:0;border-radius:12px;transition:transform .18s ease,box-shadow .18s ease}
.repo-card:hover{transform:translateY(-6px);box-shadow:0 10px 30px rgba(2,6,23,0.08)}


/* Projects */
.project-img{height:160px;object-fit:cover;border-top-left-radius:12px;border-top-right-radius:12px}


/* Color picker */
.color-dot{width:28px;height:28px;border-radius:8px;display:inline-block;margin-right:.5rem;cursor:pointer;border:2px solid rgba(0,0,0,0.06)}


footer{padding:2rem 0;border-top:1px solid rgba(0,0,0,0.06);margin-top:4rem}


@media (max-width:767px){
    .hero{padding:2rem 0}
    .avatar{width:120px;height:120px}
}



.mwg_effect000 {
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: grid;
    place-items: center;
}

.mwg_effect000 .header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid #323232;
    padding: 20px 25px;
    color: #BAB8B9;
}
.mwg_effect000 .header div:nth-child(2) {
    font-size: 26px;
}
.mwg_effect000 .header div:last-child {
    display: flex;
    justify-content: flex-end;
}
.mwg_effect000 .button {
    font-size: 14px;
    text-transform: uppercase;

    border-radius: 24px;
    height: 48px;
    gap: 5px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    width: max-content;
}
.mwg_effect000 .button1 {
    background-color: #232323;
}
.mwg_effect000 .button2 {
    border: 1px solid #323232;
}


.mwg_effect000 .button img {
    width: 22px;
    height: auto;
    display: block;
}

.mwg_effect000 .medias {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1vw;
}
.mwg_effect000 .medias img {
    width: 9vw;
    height: 9vw;
    object-fit: contain;
    border-radius: 4%;
    display: block;
    pointer-events: none;
    will-change: transform;
}

@media (max-width: 768px) {
    .mwg_effect000 .header {
        padding: 15px;
        display: flex;
        justify-content: space-between;
    }
    .mwg_effect000 .header div:nth-child(2) {
        display: none;
    }
    .mwg_effect000 .medias {
        gap: 2vw;
    }
    .mwg_effect000 .medias img {
        width: 18vw;
        height: 18vw;
    }
}


/* ===== SKILLS HORIZONTAL SCROLL ===== */

.skills-section {
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #ffffff,
        rgba(219, 233, 255, 1)
    );
}

.skills-pin {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
}

.skills-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
}

.skills-track {
    display: flex;
    gap: 2.5rem;
    padding: 0 10vw;
}

.skill-card {
    min-width: 220px;
    height: 220px;
    background: var(--card);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform .3s ease;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.05);
}

.skill-card img {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

.skill-card span {
    font-weight: 600;
    letter-spacing: .05em;
}





/* ===== REPOS SECTION ===== */

.repos-section {
    min-height: 100vh;
    padding: 6rem 0;

    background: linear-gradient(
        180deg,
        #dbe9ff,
        rgba(255, 255, 255, 0.05)
    );
}

.repos-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.repos-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* SEARCH BAR */

.repos-search {
    max-width: 420px;
    margin: 0 auto 3rem;
}

.repos-search input {
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    border: 1px solid #ddd;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* GRID */

.repos-grid {
    row-gap: 2.5rem;
}

/* CARD */

.repo-card {
    height: 100%;
    padding: 1.4rem 1.4rem 1.2rem;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.repo-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.12);
}

/* TITLE + LANG */

.repo-card h5 {
    font-size: 1.05rem;
    font-weight: 600;
}

.repo-card small {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* DESCRIPTION */

.repo-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

/* FOOTER */

.repo-footer {
    border-top: 1px solid #eee;
    padding-top: 0.8rem;
}

.repo-footer .btn {
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
}


/* Projets  */


.projects-carousel {
    height: 100vh;
    padding: 5rem 2rem;
    background: linear-gradient(
        180deg,
        #ffffff,
        rgba(219, 233, 255, 1)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.projects-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #1e3a8a;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-container {
    display: flex;
    gap: 2rem;
    padding: 1rem;
}

.project-card {
    min-width: 280px;
    height: 360px;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-card h3 {
    font-size: 1.8rem;
    color: #1e3a8a;
}

.project-card p {
    margin-top: 0.5rem;
    color: #475569;
}

.carousel-buttons {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}

.carousel-buttons button {
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    border: none;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    cursor: pointer;
}



.main-navbar {
    top: 0;
    width: 100%;
    height: 80px;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

.nav-logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    color: #475569;
    padding: 0.2rem 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #1e3a8a;
}

.nav-cta a {
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

/* bouton qui se comporte comme un lien */
.nav-link-btn {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    color: #475569;
    position: relative;
    padding: 0.2rem 0;
}

.nav-link-btn::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.3s ease;
}

.nav-link-btn:hover::after,
.nav-link-btn.active::after {
    width: 100%;
}

.nav-link-btn.active {
    color: #1e3a8a;
}

/* PANEL PROJETS */
.projects-panel {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;

    background: white;

    z-index: 2000; /* PLUS QUE LA NAVBAR */

    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;

    pointer-events: none; /* IMPORTANT */

    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.projects-panel-inner {
    padding: 2rem 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-mini-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 14px;
    text-decoration: none;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(59,130,246,0.15);
}

.project-mini-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.project-mini-card strong {
    display: block;
    color: #1e3a8a;
}

.project-mini-card span {
    font-size: 0.85rem;
    color: #64748b;
}

/* OVERLAY */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    z-index: 998;
}

/* PANEL */
.contact-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90%;
    height: 100vh;

    background: #ffffff;
    box-shadow: -20px 0 50px rgba(0,0,0,0.15);
    padding: 2.5rem;

    transform: translateX(100%);
    z-index: 999;

    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-panel h2 {
    font-size: 2rem;
    color: #1e3a8a;
}

.contact-sub {
    color: #64748b;
    font-size: 0.95rem;
}

/* FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
}

.contact-form button {
    margin-top: 0.5rem;
    padding: 0.9rem;
    border-radius: 999px;
    border: none;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* CLOSE */
.contact-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}

/* SOCIALS */
.contact-info {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-row .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.contact-row .value {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
}

.contact-row .value:hover {
    color: #3b82f6;
}

.contact-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
}

.contact-subtitle {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #1e3a8a;
}

.contact-socials {
    margin-top: 1rem;
    display: flex;
    gap: 1.2rem;
}

.contact-socials a {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-socials a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.nav-cta button {
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    border-color: #0a53be;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}





.project-hero {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 6rem 8rem;
    gap: 4rem;
}

.project-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: #e0edff;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-hero h1 {
    font-size: 4rem;
    color: #1e3a8a;
}

.project-hero p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #475569;
}

.tech-stack {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.tech-stack span {
    padding: 0.4rem 1rem;
    border-radius: 12px;
    background: #f1f5f9;
    font-weight: 500;
}

.hero-visual img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.project-section {
    max-width: 900px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.project-section h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.feature-list li::before {
    content: "✔";
    margin-right: 0.6rem;
    color: #3b82f6;
}

.tech-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    padding: 1.5rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    text-align: center;
    font-weight: 600;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.project-footer {
    text-align: center;
    margin: 6rem 0;
}

.back-btn {
    text-decoration: none;
    font-weight: 600;
    color: #2563eb;
}

.about-section {
    height: 100vh;
    width: 100%;
    background: linear-gradient(
        180deg,
        #dbe9ff,
        rgba(255, 255, 255, 0.05)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.about-container {
    max-width: 900px;
    padding: 0 40px;
}

.about-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

.about-title span {
    display: inline-block;
    opacity: 0;
}

.about-title .highlight {
    color: #2563eb;
}

.about-line {
    width: 0;
    height: 4px;
    background: #2563eb;
    margin: 30px 0;
}

.about-text {
    font-size: 1.15rem;
    color: #334155;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
}

.interests-section {
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        #ffffff,
        rgba(219, 233, 255, 1)
    );
    padding: 120px 10%;
}

.interests-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 80px;
    text-align: center;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.interest-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-10px);
}

.interest-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.interest-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.interest-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.project-hero-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 0 8vw;
    gap: 6rem;
    background: linear-gradient(
        180deg,
        #ffffff,
        rgba(219, 233, 255, 1)
    );
}

.project-left {
    max-width: 520px;
}

.project-badge {
    display: inline-block;
    background: #e8f1ff;
    color: #2563eb;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.project-title {
    font-size: clamp(3rem, 5vw, 4.2rem);
    font-weight: 700;
    margin-bottom: 1.4rem;
    color: #0f172a;
}

.project-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 2rem;
}

.project-tech {
    display: flex;
    gap: 1.2rem;
    font-size: 0.9rem;
    color: #334155;
}

.project-right {
    display: flex;
    justify-content: center;
}

.project-image {
    width: 360px; /* 👈 image plus petite */
    height: 360px;
    background: #1e4fbf;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.project-image img {
    width: 100%;
}


.team-section {
    min-height: 100vh;
    padding: 120px 8%;
    text-align: center;
    background: linear-gradient(
        180deg,
        #dbe9ff,
        rgba(255, 255, 255, 0.05)
    );

}

.team-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.team-card {
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
    padding: 32px 20px;
    transition: transform .4s ease, box-shadow .4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.15);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.team-card span {
    font-size: .9rem;
    opacity: .7;
}


/* ===== NDI Gallery (Flip Modal) ===== */

.ndi-gallery .wrapper {
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 8%;
    background: linear-gradient(180deg, #ffffff, rgba(219, 233, 255, 1));
}

.ndi-gallery .boxes-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));  /* ✅ 4 colonnes */
    gap: 18px;
    width: min(1200px, 100%);                          /* ✅ centré + limite */
    margin: 0 auto;
    padding: 0 10px;
}

.ndi-gallery .box {
    width: auto;        /* ✅ plus de vw */
    height: auto;
    padding: 0;
    border: 2px dashed rgba(59,130,246,0.35);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;  /* ✅ carré propre (tu peux mettre 4/5 si tu veux) */
}

.ndi-gallery .box-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background-position: center;
    background-size: cover;
    cursor: pointer;
}


.ndi-gallery .box-content:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 80px rgba(30, 58, 138, 0.24);
}

/* MODAL */
.ndi-gallery .modal {
    width: 100%;
    height: 100vh;
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}

.ndi-gallery .modal .content {
    width: min(90vw, 1000px);
    height: min(85vh, 800px);
    aspect-ratio: auto;   /* ✅ laisse la place s’adapter */
}

.ndi-gallery .modal .content .box-content {
    background-size: contain !important;   /* ✅ image entière */
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 20px;
}

/* Overlay */
.ndi-gallery .overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    opacity: 0;
}
.ndi-gallery {
    padding: 100px 8%;
    background: linear-gradient(180deg, #ffffff, rgba(219, 233, 255, 1));
}

.ndi-gallery .gallery-title{
    text-align: center;           /* ✅ centre le titre */
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 50px;
}

@media (max-width: 1100px) {
    .ndi-gallery .boxes-container { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
    .ndi-gallery .boxes-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ndi-gallery .boxes-container { grid-template-columns: 1fr; }
}


/* ===== MyAvatar Mask Section ===== */
.mask-section{
    padding: 110px 8%;
    background: linear-gradient(
        180deg,
        #dbe9ff,
        rgba(255, 255, 255, 0.05)
    );
}

.mask-container{ max-width: 1200px; margin: 0 auto; }
.mask-title{
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color:#0f172a;
    text-align:center;
    margin-bottom: 10px;
}
.mask-subtitle{
    text-align:center;
    max-width: 760px;
    margin: 0 auto 50px;
    color:#475569;
    line-height:1.7;
}

.mask-stage{ display:flex; justify-content:center; }
.mask-frame{
    position: relative;
    width: min(980px, 100%);
    aspect-ratio: 16/9;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 35px 90px rgba(2,6,23,0.12);
    border: 1px solid rgba(59,130,246,0.12);
}

.mask-img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit: cover; /* miniatures propres */
}

.mask-reveal{
    position:absolute;
    inset:0;
    /* masque initial : rien visible */
    clip-path: inset(0 100% 0 0);
    will-change: clip-path;
}

.mask-labels{
    position:absolute;
    left: 18px;
    right: 18px;
    top: 18px;
    display:flex;
    justify-content:space-between;
    pointer-events:none;
}

.pill{
    padding: .45rem .9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.35);
}
.pill-left{
    background: rgba(255,255,255,0.7);
    color:#0f172a;
}
.pill-right{
    background: rgba(59,130,246,0.85);
    color:#fff;
}

/* sections texte */
.project-block{
    padding: 90px 8%;
    background: linear-gradient(180deg, #ffffff, rgba(219,233,255,1));
}
.project-block.alt{ background: linear-gradient(180deg, rgba(219,233,255,1), rgba(255,255,255,0.05)); }

.container.narrow{ max-width: 1000px; margin: 0 auto; }
.feature-grid{
    margin-top: 35px;
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.feature-card{
    background:#fff;
    border-radius: 18px;
    padding: 18px 18px;
    box-shadow: 0 18px 50px rgba(2,6,23,0.08);
}
.feature-card h3{ margin:0 0 8px; color:#1e3a8a; font-size:1.05rem; }
.feature-card p{ margin:0; color:#475569; line-height:1.6; font-size:.95rem; }

.project-list{ margin-top: 18px; color:#334155; line-height: 1.8; }
.project-list code{ background:#eff6ff; color:#1d4ed8; padding:.1rem .35rem; border-radius: 6px; }

@media (max-width: 960px){
    .feature-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
    .feature-grid{ grid-template-columns: 1fr; }
}

