/* ============================================
   PORTFOLIO — NEW DESIGN (PREMIUM, LIQUID GLASS, BLEU)
   Sans vagues, fond épuré
   Compatible: Chrome, Edge, Firefox, Safari, Arc (WebKit)
   ============================================ */

@supports not (inset: 0) {
    .popup-background, .popup, .popup-fullscreen, #menu_defilant_bg, #galerie_backgrounds::after {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }
}

:root {
    --bg-dark: #141419;
    --bg-card: #1a1a22;
    --accent: #2aa4fe;
    --accent-soft: rgba(42, 164, 254, 0.45);
    --accent-strong: rgba(10, 52, 89, 0.85);
    --text: #ffffff;
    --text-muted: #a8e2ffe0;
    --glass: rgba(124, 124, 124, 0.12);
    --glass-border-top: rgba(255, 255, 255, 0.08);
    --glass-border-bottom: rgba(255, 255, 255, 0.18);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 20px;
    --radius-sm: 14px;
}

/* ---- GENERAL ---- */

* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    overflow-y: scroll;
    font-family: 'Inter', sans-serif;
}

#body_content {
    position: relative;
    z-index: 10;
}

/* ---- LIQUID GLASS (DA de base) ---- */

.liquid_glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    border-top: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    box-shadow: var(--shadow);
}

/* ---- FOND FIXE (SANS VAGUES) ---- */

#galerie_backgrounds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(42, 164, 254, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 80% 50%, rgba(42, 164, 254, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(42, 164, 254, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, #0d0d12 0%, #141419 50%, #0f0f14 100%);
}

#galerie_backgrounds::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(42, 164, 254, 0.03) 100%);
}

/* Enfants gardés pour style.js, sans image (fond géré par le parent) */
#galerie_backgrounds div {
    position: absolute;
    inset: 0;
    background: none;
    opacity: 0;
    pointer-events: none;
}

/* ---- HEADER FIXE (2 icônes) ---- */

#header {
    height: 56px;
    width: 100%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    padding:8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 50;
    border-radius: 28px;
    opacity: 0;
}

#header_group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

#header_group_img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#header_group_img:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.header_group_menu {
    cursor: pointer;
}

/* ---- MENU LATÉRAL ---- */

#menu_defilant_bg {
    z-index: 19;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#menu_defilant {
    width: 0%;
    max-width: 380px;
    min-width: 0;
    position: fixed;
    margin: 25px;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100vh - 50px);
    opacity: 0;
    pointer-events: none;
    transition: width 0.3s ease, opacity 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-top: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    box-shadow: var(--shadow);
    z-index: 55;
}

#menu_header {
    margin: 56px 0 20px 0;
}

#menu_header img {
    width: 48px;
    height: 48px;
}

.close-btn-menu {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    background: var(--accent-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border-top);
    box-shadow: var(--shadow);
    transition: background 0.2s ease, transform 0.2s ease;
}

.close-btn-menu:hover {
    background: var(--accent-strong);
    transform: scale(1.05);
}

.close-btn-menu svg, .close-btn svg{
    width: 18px;
    height: 18px;
}

#nav_trait {
    width: 55%;
    height: 2px;
    margin: 16px 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(42, 164, 254, 0.7), transparent);
    box-shadow: 0 0 14px rgba(42, 164, 254, 0.2);
}

#navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    gap: 12px;
    width: 70%;
}

#navigation a {
    width: 100%;
    padding: 14px 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-family: Inter, sans-serif;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    background: var(--accent-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    box-shadow: var(--shadow);
}

#navigation a:hover {
    background: var(--accent-strong);
    box-shadow: 0 6px 24px rgba(42, 164, 254, 0.2);
}

#navigation a svg {
    width: 18px;
    height: 18px;
    margin-right: 15px;
}

@media (max-width: 500px) {
    #menu_defilant {
        max-width: none;
        margin: 12px;
        height: calc(100vh - 24px);
        border-radius: 18px;
    }
    #menu_defilant_bg { height: 100vh; }
    #menu_header { margin: 44px 0 14px 0; }
    #menu_header img { width: 40px; height: 40px; }
    #navigation { width: 85%; gap: 10px; padding: 12px; }
    #navigation a { font-size: 0.7rem; padding: 12px 14px; }
    .close-btn-menu { width: 36px; height: 36px; min-width: 36px; min-height: 36px; top: 12px; right: 12px; font-size: 20px; }
}

/* ---- HERO 100vh : Bastien Jamet / Développeur Web ---- */

#galerie {
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#me {
    margin-top: 0;
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 24px;
}

#me_h1 {
    font-family: "Sansation", sans-serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 500;
    letter-spacing: 4px;
    -webkit-text-stroke: 1px #ffffff;
    color: #ffffff00;
    position: relative;
    opacity: 0;
    text-align: center;
    line-height: 1.1;
}

#me_h3_div {
    overflow: hidden;
}

#me_h3 {
    padding-top: 16px;
    font-family: "Fira Code", monospace;
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1.35rem);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    transform: translateY(-40px);
    text-align: center;
    color: var(--text-muted);
}

#infos {
    margin: 28px 0 0 0;
    padding: 16px 20px;
    border-radius: var(--radius);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#socials button,
#socials a {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border-top);
    background-color: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    box-shadow: var(--shadow);
}

#socials button img,
#socials a img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

#socials a:hover,
#socials button:hover {
    background-color: var(--accent-strong);
    cursor: pointer;
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 28px rgba(42, 164, 254, 0.25);
}

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

.container_h1_title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 500;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text);
}

.contact_separator {
    width: 60%;
    max-width: 200px;
    height: 2px;
    margin: 0 auto 32px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(42, 164, 254, 0.7), transparent);
    box-shadow: 0 0 12px rgba(42, 164, 254, 0.15);
}

/* ---- À PROPOS ---- */

#about {
    margin-top: 150px;
    margin-bottom: 200px;
    padding: clamp(72px, 14vh, 120px) 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

#about .container_h1_title {
    text-align: center;
    margin-bottom: 8px;
}

.about_content {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-top: 24px;
    align-items: start;
    --about-block-size: 280px;
}

.about_values {
    grid-column: 1 / -1;
}

.about_presentation {
    height: var(--about-block-size);
    min-height: var(--about-block-size);
    overflow-y: auto;
    box-sizing: border-box;
}

.about_card {
    padding: 28px 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about_card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(42, 164, 254, 0.08);
}

.about_card_title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 12px 0;
    
}

.about_card_separator {
    width: 40px;
    height: 2px;
    margin-bottom: 18px;
    border-radius: 1px;
    background: var(--accent);
    opacity: 0.85;
}

.about_paragraph {
    font-family: 'Comfortaa', cursive;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.02em;
}

.about_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about_list li {
    font-family: 'Comfortaa', cursive;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-left: 0;
    display: flex;
    align-items: self-start;
}

.about_list li svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
    margin-right: 15px;
}

.about_list li span{
    font-weight: bold;
    margin-right: 5px;
}

.about_list li:last-child { margin-bottom: 0; }

.about_list li strong {
    font-family: Inter, sans-serif;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.04em;
}

.about_list li span {
    opacity: 0.9;
    font-size: 0.88rem;
}

.about_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about_badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: Inter, sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 2px solid var(--accent-color, var(--accent));
}

.about_badge_soft {
    background: rgba(42, 164, 254, 0.12);
    border-left-color: var(--accent);
}

.about_photo_placeholder {
    padding: 0;
    overflow: hidden;
    align-self: start;
    width: var(--about-block-size);
    height: var(--about-block-size);
}

.about_photo_wrap {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--accent-soft) 0%, rgba(42, 164, 254, 0.08) 100%);
    border-radius: var(--radius-sm);
}

.about_photo_text {
    font-family: Inter, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.8;
}

@media (max-width: 900px) {
    .about_content {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .about_photo_placeholder {
        justify-self: center;
        max-width: 280px;
        width: 100%;
        height: auto;
    }

    .about_photo_wrap {
        max-height: 280px;
        aspect-ratio: 1;
    }

    .about_presentation {
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 600px) {
    #about {
        padding: 48px 16px;
        margin-top: 100px;
        margin-bottom: 80px;
    }

    .about_content {
        margin-top: 20px;
        gap: 20px;
    }

    .about_card {
        padding: 22px 20px;
    }

    .about_photo_placeholder {
        padding: 0;
    }

    .about_card_title {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }

    .about_paragraph,
    .about_list li {
        font-size: 0.88rem;
    }

    .about_badges {
        gap: 6px;
    }

    .about_badge {
        padding: 5px 10px;
        font-size: 0.64rem;
    }
}

/* ---- DERNIERS PROJETS ---- */

#featured_projects {
    margin-top: 150px;
    margin-bottom: 200px;
    padding: clamp(72px, 14vh, 140px) 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
}

#featured_projects .container_h1_title {
    text-align: center;
    margin-bottom: 8px;
}

#featured_projects_container {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 72px;
    margin-top: 40px;
    align-items: stretch;
}

.featured_project {
    display: flex;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    cursor: pointer;
}

.featured_project:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(42, 164, 254, 0.5);
}

.featured_project.featured_project_reverse { flex-direction: row-reverse; }

/* Image : ratio fixe, cover, overlay discret au hover */
.featured_project_image {
    flex: 0 0 52%;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-dark);
    min-height: 280px;
    transition: transform 0.5s ease;
}

.featured_project_image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(42, 164, 254, 0.35) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured_project:hover .featured_project_image {
    transform: scale(1.03);
}

.featured_project:hover .featured_project_image::after {
    opacity: 1;
}

/* Bloc texte */
.featured_project_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    min-width: 0;
}

.featured_project_info::before {
    display: none;
}

.featured_project_info_header {
    margin-bottom: 12px;
}

.featured_project_title {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    color: var(--text);
    line-height: 1.25;
}

.featured_project_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

.featured_project_badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 6px;
    font-family: Inter, sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 2px solid var(--accent-color, var(--accent));
}

.featured_project_separator {
    width: 48px;
    height: 2px;
    margin: 16px 0 14px 0;
    border-radius: 1px;
    background: var(--accent);
    opacity: 0.8;
}

.featured_project_description {
    font-family: 'Comfortaa', cursive;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.88;
    letter-spacing: 0.02em;
    margin: 0 0 20px 0;
    line-height: 1.65;
    color: #d8d8d8;
}

/* CTA visuel (clic = ouverture popup via JS) */
.featured_project_info::after {
    content: 'Voir le projet →';
    font-family: Inter, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: auto;
    display: inline-block;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.featured_project:hover .featured_project_info::after {
    color: var(--text-muted);
}

.featured_project_links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 18px;
}

.featured_project_link {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: Inter, sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: all 0.25s ease;
    background: var(--accent-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.featured_project_link:hover {
    background: var(--accent-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(42, 164, 254, 0.2);
}

.featured_project_link.featured_project_link_secondary { background: rgba(42, 164, 254, 0.22); }
.featured_project_link.featured_project_link_secondary:hover { background: var(--accent-strong); }

/* ---- PROJETS ---- */

#projets {
    margin-bottom: 200px;
    padding: clamp(50px, 10vh, 100px) 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projet_container_box { margin: 0; }

#projet_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    width: 100%;
    max-width: 1160px;
    min-height: 200px;
    padding: 0;
    box-sizing: border-box;
}

.projet_box { transition: opacity 0.6s ease; }

.projet {
    border: none;
    cursor: pointer;
    width: 300px;
    height: auto;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.projet:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(42, 164, 254, 0.5);
}

.projet_media { position: relative; width: 100%; }

.projet_img-wrap {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background-color: var(--bg-dark);
}

.projet_img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(42, 164, 254, 0.35) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-sm);
}

.projet:hover .projet_img-wrap::after {
    opacity: 1;
}

.projet_img {
    width: 100%;
    height: 190px;
    border-radius: var(--radius-sm);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.5s ease;
}

.projet:hover .projet_img { transform: scale(1.03); }

.projet_titre_contexte {
    position: absolute;
    z-index: 1;
    color: var(--text);
    margin-top: 10px;
}

.projet_titre_contexte h4 {
    font-family: 'Maven Pro', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    padding: 4px 12px;
    font-size: 0.8rem;
}

.projet_separator {
    width: 48px;
    height: 2px;
    margin: 12px auto 10px;
    border-radius: 1px;
    background: var(--accent);
    opacity: 0.8;
}

.projet_title,
#projet_container h1 {
    text-align: center;
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
    padding: 6px 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.25;
}

.projet p {
    font-family: 'Comfortaa', cursive;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.88;
    padding: 8px 0 10px 0;
    letter-spacing: 0.02em;
    color: #d8d8d8;
}

.projet ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    font-family: Inter;
    font-size: 0.85rem;
    font-weight: 500;
}

.projet_type, .projet_contexte {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.projet_view {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: left 0.5s ease, top 0.5s ease, transform 0.5s ease, background 0.25s ease;
    background: var(--accent-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border-top);
    box-shadow: var(--shadow);
}

.projet:hover .projet_view {
    left: calc(100% - 28px);
    top: 50%;
    transform: translate(-50%, -50%);
}

.projet:hover .projet_view:hover { background: var(--accent-strong); }

.projet_view img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transform: rotate(-90deg);
}

.projet_desc {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 0;
    align-items: center;
    justify-content: flex-start;
}

.projet_desc-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 6px;
    font-family: Inter, sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 2px solid var(--accent-color, var(--accent));
}

/* Tags couleurs (conservés pour script) */
#Back-end { border-left-color: #6E5494 !important; }
#C2 { border-left-color: #800080 !important; }
#CSS { border-left-color: #1574BC !important; }
#Cybersécurité { border-left-color: #1c73ff !important; }
#D3JS { border-left-color: #f69c4d !important; }
#Developpement-app { border-left-color: #f97316 !important; }
#Developpement-web { border-left-color: #aa86ff !important; }
#DevSecOps { border-left-color: #C9510C !important; }
#Digitalisation { border-left-color: #6A6A6A !important; }
#Dockerfile, #Docker { border-left-color: #2496ED !important; }
#Figma { border-left-color: #0ACF83 !important; }
#Front-end { border-left-color: #61DBFB !important; }
#FullStack { border-left-color: #67B1D9 !important; }
#HTML { border-left-color: #F35C2B !important; }
#IA { border-left-color: #8b5cf6 !important; }
#JavaScript { border-left-color: #FBB343 !important; }
#Kubernetes { border-left-color: #326CE5 !important; }
#Linux { border-left-color: #FCC624 !important; }
#Minikube { border-left-color: #FFCC00 !important; }
#MySQL { border-left-color: #4479A1 !important; }
#NodeJS { border-left-color: #43853D !important; }
#PHP { border-left-color: #807cb4 !important; }
#Power_Apps { border-left-color: #742774 !important; }
#Power_Automate { border-left-color: #0086D1 !important; }
#Power_Bi { border-left-color: #F2C811 !important; }
#Projet_scolaire { border-left-color: #22c55e !important; }
#Projet_perso { border-left-color: #f97316 !important; }
#Python { border-left-color: #3776AB !important; }
#ReactJS { border-left-color: #61dafb !important; }
#Responsive { border-left-color: #2D9CDB !important; }
#SharePoint { border-left-color: #0078D4 !important; }
#Stage { border-left-color: #2563eb !important; }
#SQL { border-left-color: #08bcf4 !important; }
#undefined { opacity: 0; }
#UX-UI { border-left-color: #FF6F61 !important; }
#Visualisation-Data { border-left-color: #38bdf8 !important; }
#YAML { border-left-color: #CB171E !important; }

.projet ul li { margin-right: 6px; }

/* ---- POPUP PROJET (compatible Safari/Arc, Firefox, Chrome, Edge) ---- */

.no-scroll { overflow: hidden !important; }

.popup-background {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.popup-background.show { display: flex; opacity: 1; }

.popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    padding: 20px;
    box-sizing: border-box;
}

.popup.show {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
    pointer-events: all;
}

/* Isolation GPU + backdrop : évite les glitches Safari/Arc sur la zone d’infos */
.popup-content {
    padding: 24px;
    max-width: 1100px;
    width: 100%;
    height: 82vh;
    max-height: 88vh;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--text);
    border-radius: var(--radius);
    background: var(--glass);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    box-shadow: var(--shadow);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
    flex-shrink: 0;
}

.popup-header { display: flex; flex-shrink: 0; }

.popup-header-title {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 0 12px;
    min-width: 260px;
}

.popup-content-icone { height: 60px; width: 60px; }

.popup-header-ligne {
    width: 55%;
    height: 2px;
    margin: 10px 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(42, 164, 254, 0.7), transparent);
}

.popup-content h1 {
    font-family: 'Maven Pro', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.popup-content p {
    font-family: 'Comfortaa', cursive;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    opacity: 0.9;
    letter-spacing: 0.02em;
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    background: var(--accent-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border-top);
    box-shadow: var(--shadow);
    transition: background 0.2s ease, transform 0.2s ease;
}

.close-btn:hover { background: var(--accent-strong); transform: scale(1.05); }

.popup-details {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    margin: 16px 0 0 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Scrollbars : WebKit (Safari, Arc, Chrome) */
.popup-details::-webkit-scrollbar { width: 6px; }
.popup-details::-webkit-scrollbar-track { background: var(--bg-dark); border-radius: 6px; }
.popup-details::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }
.popup-details::-webkit-scrollbar-thumb:hover { background: var(--accent-soft); }

/* Scrollbars : Firefox */
.popup-details {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-dark);
}

.popup-detail-img { display: flex; flex-direction: column; width: 100%; max-width: 720px; justify-content: center; align-items: center; }

.popup-main-image-wrap { position: relative; }

.popup-main-image {
    width: 100%;
    max-width: 720px;
    border-radius: var(--radius-sm);
    transition: 200ms ease;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    background: var(--bg-dark);
    margin-top: 25px;
}

.popup-main-image-fullscreen-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 26px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
}

.popup-main-image-fullscreen-icon svg { width: 100%; height: 100%; max-width: 26px; max-height: 16px; color: inherit; }

.popup-fullscreen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(13, 13, 18, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.popup-fullscreen .popup-fullscreen-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2001;
    cursor: pointer;
    min-width: 88px;
    height: 42px;
    padding: 0 18px;
    font-size: 0.72rem;
    font-family: Inter, sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--accent-soft);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: background 0.2s ease, transform 0.2s ease;
}

.popup-fullscreen .popup-fullscreen-close:hover { background: var(--accent-strong); transform: translateY(-2px); }

.popup-fullscreen.show { opacity: 1; }

.popup-fullscreen .popup-fullscreen-main {
    max-width: 94vw;
    max-height: calc(94vh - 80px);
    object-fit: contain;
    border-radius: var(--radius-sm);
    pointer-events: none;
}

.popup-fullscreen-mini {
    position: absolute;
    bottom: 20px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--glass);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-top: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    box-shadow: var(--shadow);
}

.popup-fullscreen-mini img {
    width: 56px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-fullscreen-mini img:hover {
    border-color: rgba(42, 164, 254, 0.6);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 12px rgba(42, 164, 254, 0.2);
}

.popup-fullscreen-mini img.active {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(42, 164, 254, 0.35);
}

.popup-mini-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--glass);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-top: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    box-shadow: var(--shadow);
    margin: 12px 0;
}

.popup-mini-images img {
    width: 56px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-mini-images img:hover {
    border-color: rgba(42, 164, 254, 0.6);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 12px rgba(42, 164, 254, 0.2);
}

.popup-mini-images img.active {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(42, 164, 254, 0.35);
}

.popup-detail-desc {
    width: 100%;
    max-width: 720px;
    margin: 20px 24px;
    text-align: start;
}

.popup-detail-desc h2 {
    margin: 0 0 12px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text);
}

.popup-detail-desc h2.popup-section-title {
    margin-bottom: 8px;
}

.popup-detail-desc h2.popup-section-title + .popup-tags {
    margin-top: 0;
}

.popup-detail-desc .popup-section-separator {
    width: 40px;
    height: 2px;
    margin-bottom: 18px;
    border-radius: 1px;
    background: var(--accent);
    opacity: 0.85;
}

.popup-detail-desc h2.popup-section-title-links {
    margin-top: 50px;
}

.popup-desc-highlight {
    margin: 20px 0 28px 0;
    padding: 20px 24px;
    border-radius: var(--radius);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    box-shadow: var(--shadow);
}

.popup-desc-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.62rem;
    color: var(--text-muted);
    opacity: 0.85;
}

.popup-desc-highlight h3 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
}

.popup-desc-highlight p {
    margin: 0;
    font-family: 'Comfortaa', cursive;
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.95;
    color: var(--text-muted);
    text-align: justify;
}

.popup-desc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup-desc-list li {
    position: relative;
    padding-left: 18px;
    font-family: 'Comfortaa', cursive;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: left;
}

.popup-desc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 2px;
    border-radius: 1px;
    background: var(--accent);
    opacity: 0.8;
}

.popup-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 0;
    margin: 0;
}

.popup-tags p {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 6px;
    font-family: Inter, sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 2px solid var(--accent-color, var(--accent));
}

.popup-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; width: 100%; }

.popup-link-btn { text-decoration: none; display: flex; align-items: center; justify-content: center; }

.buttons-footer { display: flex; align-items: center; justify-content: center; }

.buttons-footer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px;
    border-radius: var(--radius-sm);
    background: var(--glass);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    box-shadow: var(--shadow);
}

.view-projet, .view-code {
    text-transform: uppercase;
    margin: 0;
    width: 180px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--accent-soft);
    font-family: Inter, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 2px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    box-shadow: var(--shadow);
}

.view-code { background: rgba(42, 164, 254, 0.22); }

.view-projet:hover, .view-code:hover {
    background: var(--accent-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(42, 164, 254, 0.2);
}

.popup-detail-lang { display: flex; justify-content: center; align-items: center; margin: 24px; flex-wrap: wrap; gap: 12px; }

.popup-lang-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    padding: 10px 16px;
    gap: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    box-shadow: var(--shadow);
}

.language_projet { padding: 4px; }

.popup-detail-lang p { opacity: 1; font-size: 0.72rem; color: var(--text-muted); }

.lang_trait { width: 2px; height: 18px; background: rgba(168, 226, 255, 0.5); }

/* ---- CONTACT ---- */

#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: clamp(56px, 12vh, 120px) 24px;
}

#contact_box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 720px;
    width: 100%;
}

#contact h1 { margin: 0 0 12px 0; }

#contact_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 32px;
    width: 100%;
}

#contact_container_box {
    background: var(--accent-soft);
    border-top: 1px solid var(--glass-border-top);
    border-bottom: 1px solid var(--glass-border-bottom);
    border-radius: var(--radius-sm);
    padding: 20px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    cursor: pointer;
    min-height: 72px;
    box-sizing: border-box;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

#contact_container_box:hover {
    background: var(--accent-strong);
    box-shadow: 0 8px 28px rgba(42, 164, 254, 0.2);
    transform: translateY(-2px);
}

#contact_copy_btn svg{
    width: 18px;
    height: 18px;
}

#contact_container_box:hover #contact_det p { color: var(--text-muted); }

.contact_container_img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

#contact_det {
    flex: 1;
    min-width: 0;
}

#contact_det h2 {
    font-family: Inter, sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px 0;
    opacity: 0.95;
}

#contact_det p {
    font-weight: 500;
    font-size: 0.95rem;
    font-family: Inter, sans-serif;
    color: var(--text-muted);
    margin: 0;
    transition: color 0.25s ease;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

#contact_container_box button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

#contact_container_box:hover button {
    background: rgba(255, 255, 255, 0.14);
}

#contact_container_box button img {
    width: 18px;
    height: 18px;
    opacity: 0.85;
    filter: brightness(0) invert(1);
}

#contact_container_box button:hover img {
    opacity: 1;
}

/* 5e carte en pleine largeur sur 2 colonnes */
#contact_container_box:nth-child(5) {
    grid-column: 1 / -1;
}

#copied {
    margin-top: 24px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.68rem;
    font-family: Inter, sans-serif;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: opacity 0.35s ease;
    opacity: 0;
    color: var(--text-muted);
    background: rgba(22, 163, 74, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow);
}

#version {
    padding: 24px;
    text-align: center;
}

#version p {
    font-size: 0.75rem;
    font-family: Inter;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    color: var(--text-muted);
}

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

@media (max-width: 1000px) {
    #featured_projects { padding: 48px 20px; }
    #featured_projects_container {
        gap: 40px;
        margin-top: 28px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
    .featured_project { flex-direction: column !important; width: 100%; }
    .featured_project_image {
        flex: none;
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 9;
        height: auto;
    }
    .featured_project_info { flex: none; padding: 22px 20px; width: 100%; }
    .featured_project_title { font-size: 1.2rem; }
    .featured_project_description { font-size: 0.85rem; }
}

@media (max-width: 1245px) {
    #projet_container { width: min(1155px, calc(100vw - 40px)); }
}

@media (max-width: 1195px) {
    #projet_container { width: 770px; }
}

@media (max-width: 820px) {
    #projets { margin: 20vh 0; }
}

@media (max-width: 800px) {
    #projet_container { width: 630px; }
    .projet{width: 250px;}
    .projet_img{height: 150px;}
}

@media (max-width: 775px) {
    #contact_container { grid-template-columns: 1fr; width: 435px;}
}

@media (max-width: 768px) {
    #header { width: calc(100% - 24px); margin: 12px auto 0; }
    #featured_projects { padding: 40px 16px; }
    #featured_projects_container { gap: 32px; margin-top: 24px; max-width: 440px; }
    .featured_project_image { aspect-ratio: 16 / 9; }
    .featured_project_info { padding: 18px 16px; }
    .featured_project_title { font-size: 1.1rem; }
    .featured_project_description { font-size: 0.82rem; }
    .featured_project_badge { font-size: 0.62rem; padding: 4px 9px; }
}

@media (max-width: 760px) {
    .popup-main-image { margin-top: 0; }
    .popup-detail-desc {
        padding: 15px;
        margin: 20px 0;
        box-sizing: border-box;
    }
}

@media (max-width: 640px) {
    #projet_container { flex-direction: column; align-items:center ; justify-content: center; width: auto;}
    .projet{width: 250px;}
}

@media (max-width: 600px) {
    #me_h1 { font-size: 2.25rem; }
    #me_h3 { letter-spacing: 0.2em; transform: translateY(-35px); }
    .container_h1_title { font-size: 1.25rem; letter-spacing: 0.15em; }
    #featured_projects { padding: 32px 14px; }
    #featured_projects_container { gap: 28px; margin-top: 20px; max-width: 380px; }
    .featured_project_image { aspect-ratio: 16 / 9; }
    .featured_project_info { padding: 16px 14px; }
    .featured_project_title { font-size: 1rem; }
    .featured_project_description { font-size: 0.8rem; }
    .featured_project_separator { margin: 10px 0 10px 0; }
    .featured_project_badge { font-size: 0.6rem; padding: 4px 8px; }
    #projets { padding-left: 16px; padding-right: 16px; box-sizing: border-box; align-items: center; }
    #projet_container { padding: 0 12px; }
    #projet_container h1 { font-size: 1.25rem; }
    .projet { max-width: 380px; }
    .projet ul { flex-direction: column; }
    .projet ul li { margin-left: 0; margin-bottom: 10px; }
    .projet ul li:last-child { visibility: hidden; position: absolute; }
    .popup-content { padding: 18px; height: 88vh; }
    .popup-header { flex-direction: column; align-items: center; }
    .popup-content-icone { width: 50px; height: 50px; }
    .popup-header-title { align-items: center; }
    .popup-detail-desc { margin: 16px; }
    #contact_container { grid-template-columns: 1fr; width: 375px;}
}

@media (max-width: 550px) {
    #projet_container h1 { font-size: 1.2rem; }
    #projet_container { padding: 0 10px; }
}

@media (max-width: 480px) {
    #me_h1 { font-size: 1.9rem; }
    #infos { margin-top: 20px; padding: 12px 16px; }
    #socials button, #socials a { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
    #featured_projects { padding: 28px 12px; }
    #featured_projects_container { gap: 24px; margin-top: 18px; max-width: 340px; }
    .featured_project_image { aspect-ratio: 16 / 9; }
    .featured_project_info { padding: 14px 12px; }
    .featured_project_title { font-size: 0.95rem; }
    .featured_project_description { font-size: 0.78rem; }
    .projet { max-width: 340px; }
    #contact_container { margin-top: 24px; gap: 12px; }
    .contact_container_img { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
    #contact_det h2 { font-size: 0.65rem; }
    #contact_det p { font-size: 0.88rem; }
    #contact_container { width: 335px;}
    #contact_container_box button { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }
    #contact_container_box button img { width: 16px; height: 16px; }
}

/* Scrollbars globales : WebKit (Safari, Arc, Chrome) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(42, 164, 254, 0.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-soft); }

/* Scrollbars globales : Firefox */
html { scrollbar-width: thin; scrollbar-color: rgba(42, 164, 254, 0.5) var(--bg-dark); }
