/* --- Modernisation page entreprise (inspiration igloo.inc, style uniforme clair) --- */
.section.modern {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    margin: 48px auto;
    padding: 48px 36px;
    max-width: 950px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.section.modern:hover {
    transform: translateY(-2px);
}

.section.modern:not(:last-child) {
    margin-bottom: 56px;
}

.section.modern h2 {
    font-size: 2.2rem;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-shadow: none;
}

.section.modern .card {
    background: #f8fafc;
    border-radius: 1.5rem;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section.modern .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16);
}

.section.modern ul {
    padding-left: 1.2em;
    margin-bottom: 0;
}

.section.modern li {
    margin-bottom: 0.7em;
    font-size: 1.08em;
    color: var(--text-secondary);
}

.section.modern .image-placeholder,
.section.modern img {
    margin: 2rem auto 1rem auto;
    border-radius: 1.5rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.8);
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section.modern .image-placeholder {
    min-height: 220px;
    color: var(--muted);
    font-size: 1.1em;
    border: 2px dashed rgba(148, 163, 184, 0.5);
    border-radius: 1.5rem;
}

.section.modern ul,
.section.modern ol {
    border-radius: 1.5em;
    padding: 1em 1.5em;
    background: rgba(226, 232, 240, 0.65);
}

.section.modern .caption {
    text-align: center;
    color: var(--muted);
    font-size: 0.98em;
    margin-bottom: 0;
}

/* Variables CSS - palette finale */
:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --surface-3: #e2e8f0;
    --text: #0f172a;
    --text-secondary: #475569;
    --muted: #64748b;
    --line: #cbd5e1;
    /* Unified accent palette */
    --accent: #2563eb;
    --accent-2: #1d4ed8;
    --accent-3: #7c3aed;
    --ring: rgba(37, 99, 235, .16);
    --shadow: 0 14px 40px rgba(15, 23, 42, .1);
    /* Typography tokens */
    --font-sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    --font-mono: SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Courier New', monospace;
    --heading-weight: 700;
    --body-size: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--body-size);
    color: var(--text);
    line-height: 1.6;
    background:
        radial-gradient(60% 40% at 15% 10%, rgba(37, 99, 235, .08), transparent 60%),
        radial-gradient(40% 35% at 85% 20%, rgba(124, 58, 237, .06), transparent 60%),
        radial-gradient(50% 45% at 50% 90%, rgba(15, 23, 42, .04), transparent 65%),
        linear-gradient(180deg, #f8fafc, #eff6ff 70%, #f8fafc);
    background-color: var(--bg);
}

/* Heading & typography harmony */
h1, h2, h3, h4 {
    margin: 0 0 0.6rem 0;
    font-weight: var(--heading-weight);
    color: var(--text);
}

h1 { font-size: clamp(1.6rem, 1.8rem + 1.2vw, 2.4rem); line-height:1.05 }
h2 { font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); letter-spacing:0.04em }
h3 { font-size: 1rem }

a { color: var(--accent-2); text-decoration: none }
a:hover, a:focus { text-decoration: underline }

/* Improve footer/link contrast */
.footer, .footer a { color: var(--muted) }

/* Make buttons consistent */
.button { font-family: var(--font-sans); font-weight:600 }

img {
    max-width: 100%;
    display: block
}

/* Header & nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.logo {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: .2px;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 22px;
    color: var(--text);
    opacity: .9;
}

.nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent);
}

.nav-item--has-sub a {
    position: relative;
}

.nav-item--has-sub {
    position: relative;
}

.nav-submenu {
    display: none !important; /* completely hide the submenu */
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
}

.nav-submenu li {
    padding: 0;
}

.nav-submenu a {
    display: block;
    padding: 8px 14px;
    border-radius: 0;
    opacity: 0.9;
}

.nav-submenu a:hover,
.nav-submenu a:focus {
    background: rgba(148, 163, 184, 0.18);
}

.nav-item--has-sub:hover .nav-submenu,
.nav-item--has-sub:focus-within .nav-submenu {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    opacity: .8;
    padding: 8px 10px;
    border-radius: 2em;
    position: relative
}

.nav-links a:hover,
.nav-links a:focus {
    opacity: 1;
    background: rgba(255, 255, 255, .06)
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .22s ease, left .22s ease
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    left: 0;
    width: 100%
}

.mobile-menu {
    border-top: 1px solid var(--line);
    background: rgba(22, 27, 40, .45)
}

.mobile-menu ul {
    margin: 0;
    padding: 10px 20px;
    list-style: none
}

.mobile-menu a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, .06)
}

.hidden {
    display: none
}

/* Hero */
.hero {
    max-width: 1100px;
    margin: 64px auto;
    padding: 0 20px 30px 20px;
    text-align: center
}

.stage {
    position: relative
}

.stage--grid .stage__grid {
    position: absolute;
    inset: -20px;
    opacity: .06;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 28px 28px;
    filter: blur(.6px)
}

.stage__comet {
    position: absolute;
    left: -10%;
    top: -40px;
    width: 140%;
    height: 120px;
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, .12), transparent);
    transform: rotate(2deg);
    animation: comet 8s linear infinite
}

@keyframes comet {
    0% {
        transform: translateY(-20px) rotate(2deg)
    }

    50% {
        transform: translateY(40px) rotate(2deg)
    }

    100% {
        transform: translateY(-20px) rotate(2deg)
    }
}

.badges {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    justify-content: center;
    list-style: none;
    padding: 0
}

.badge {
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-weight: 600
}

.hero h1 {
    font-size: 46px;
    line-height: 1.1;
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: -.02em
}

.accent {
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.subtitle {
    font-size: 18px;
    color: var(--muted);
    margin: 0 auto 24px;
    max-width: 700px
}

/* Buttons */
.cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap
}

.button {
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: .2s ease, box-shadow .2s ease, transform .2s ease;
    box-shadow: none
}

.button:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px)
}

.button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--ring)
}

.button.primary {
    background: linear-gradient(180deg, var(--accent), #00b8d1);
    border-color: var(--accent);
    color: #fff
}

/* Contact / Form styles (uniform look) */
.contact-form {
    max-width: 720px;
    margin: 0.6rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-row {
    display: flex;
    gap: 12px;
}
.contact-row input {
    flex: 1 1 0;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 1rem;
}
.contact-form textarea { min-height: 120px; resize: vertical }
.contact-form .button.primary {
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 12px;
}

/* Contact page wrapper */
.contact-page {
    max-width: 900px;
    margin: 48px auto;
    padding: 24px;
}

/* Sections */
.section {
    max-width: 1100px;
    margin: 56px auto;
    padding: 0 20px
}

/* Marquee */
.marquee {
    overflow: hidden;
    position: relative
}

.marquee__track {
    display: grid;
    grid-auto-flow: column;
    gap: 28px;
    white-space: nowrap;
    animation: scrollX 18s linear infinite;
    opacity: .85
}

.marquee__track span {
    color: var(--muted);
    font-weight: 600
}

@keyframes scrollX {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* Split band */
.band {
    position: relative;
    padding: 40px 0
}

.band--mesh::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: radial-gradient(60% 50% at 10% 10%, rgba(124, 92, 255, .08), transparent 60%),
        radial-gradient(40% 40% at 90% 20%, rgba(0, 229, 255, .08), transparent 60%);
    filter: blur(20px)
}

.split {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 24px;
    align-items: center
}

.split__media {
    position: relative;
    min-height: 200px
}

.glow-orb {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(60% 60% at 50% 40%, rgba(0, 229, 255, .18), transparent 70%),
        radial-gradient(40% 40% at 60% 60%, rgba(124, 92, 255, .18), transparent 72%);
    border: 1px solid rgba(255, 255, 255, .08)
}

/* Stat grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px
}

.stat {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    background: rgba(255, 255, 255, .03)
}

.stat__value {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent)
}

.stat__label {
    font-size: 12px;
    color: var(--muted)
}

/* Tiles */
.tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

.tile {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .25s ease, border-color .25s ease
}

.tile:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 255, .35)
}

/* Feature list */
.feature-list {
    display: grid;
    gap: 16px
}

.hscroll {
    grid-auto-flow: column;
    grid-auto-columns: min(88%, 920px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px
}

.hscroll>.feature {
    scroll-snap-align: start
}

/* Callout */
.callout {
    width: 100%;
    padding: 24px 0
}

.callout__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    backdrop-filter: blur(8px)
}

.callout .cta {
    margin-top: 10px
}

/* Futuristic headings */
h1,
h2,
h3 {
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: .02em
}

.feature {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    backdrop-filter: blur(8px)
}

.feature__media {
    min-height: 160px;
    border-radius: 12px;
    overflow: hidden
}

/* Make feature images small, centered and contained */
.feature__media img {
    display: block;
    max-height: 72px;
    max-width: 72px;
    width: auto;
    height: auto;
    margin: 20px auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .3));
}

.media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 229, 255, .15), rgba(124, 92, 255, .12));
    border: 1px solid rgba(255, 255, 255, .08)
}

.feature__body h3 {
    margin: 0 0 8px
}

.feature__body .button {
    margin-top: 8px
}

/* Expériences marquantes (page Bilan) : image large à gauche et texte centré */
.section--xp .feature {
    grid-template-columns: 1.1fr 1.3fr;
}

.section--xp .feature__media {
    min-height: 200px;
}

.section--xp .feature__media img {
    width: 100%;
    height: auto;
    max-height: 220px;
    margin: auto;
    object-fit: cover;
}

.section--xp .feature__body {
    text-align: center;
}

@media (max-width: 900px) {
    .section--xp .feature {
        grid-template-columns: 1fr;
    }
}

/* Reveal on scroll (basic) */
.reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInUp .6s ease forwards
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:900px) {
    .split {
        grid-template-columns: 1fr
    }

    .tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .feature {
        grid-template-columns: 1fr
    }
}

@media(max-width:640px) {
    .tiles {
        grid-template-columns: 1fr
    }
}

.section h2 {
    font-size: 28px;
    margin: 0 0 16px;
    letter-spacing: -.01em;
    position: relative
}

.section h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    opacity: .9
}

/* Paragraphs */
p {
    margin: 0
}

/* Cards & grids */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

.card {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, .35);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04))
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

.project {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: var(--surface)
}

.project .link {
    color: var(--accent);
    text-decoration: none
}

.project .link:hover {
    text-decoration: underline
}

/* Center titles in skill and project cards */
.card h3,
.project h3 {
    text-align: center
}

/* Timeline */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--line)
}

.timeline li {
    position: relative;
    padding: 10px 0 10px 16px
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent)
}

.timeline .time {
    font-weight: 600;
    margin-right: 6px
}

/* Lists */
.list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted)
}

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    margin-top: 56px;
    padding: 28px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.footer p {
    margin: 6px 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, .03);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, .06);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 6px 0 8px 0;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    opacity: .9;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-meta {
    color: var(--muted);
    font-size: 13px;
}

/* Responsive */
@media(max-width:900px) {

    .grid,
    .projects {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .hero h1 {
        font-size: 40px
    }
}

@media(max-width:640px) {
    .nav-links {
        display: none
    }

    .nav-toggle {
        display: block
    }

    .grid,
    .projects {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 34px
    }
}

/* --- Thème sombre désaturé & correctifs --- */

/* Correctif listes dans section.modern (accolade précédente mal fermée) */
.section.modern ul,
.section.modern ol {
    border-radius: 1.5em;
    padding: 1em 1.5em;
    background: rgba(35, 47, 70, 0.18);
}

/* Accents sobres */
.accent {
    color: var(--accent);
    -webkit-background-clip: initial;
    background-clip: initial;
}

/* Bouton primaire sans dégradé vif */
.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #161b28;
}

/* Effets visuels neutres */
.stage__comet {
    background: linear-gradient(90deg, transparent, rgba(139, 166, 191, .10), transparent);
}

.band--mesh::before {
    background: radial-gradient(60% 50% at 10% 10%, rgba(139, 166, 191, .06), transparent 60%),
        radial-gradient(40% 40% at 90% 20%, rgba(127, 147, 168, .06), transparent 60%);
}

.glow-orb {
    background: radial-gradient(60% 60% at 50% 40%, rgba(139, 166, 191, .12), transparent 70%),
        radial-gradient(40% 40% at 60% 60%, rgba(127, 147, 168, .12), transparent 72%);
}

.media-placeholder {
    background: linear-gradient(135deg, rgba(139, 166, 191, .12), rgba(127, 147, 168, .10));
}

.tile:hover {
    border-color: rgba(139, 166, 191, .30);
}

.card:hover {
    border-color: rgba(139, 166, 191, .30);
}

/* Skills section */
.skills {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    align-items: start;
}

.skills__left {
    display: grid;
    gap: 16px;
}

.skills__pills {
    display: none;
}

.skills__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.skill {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 14px;
}

.skill__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.skill__name {
    color: var(--text);
}

.skill__level {
    color: var(--muted);
    font-size: .95em;
}

.skill__desc {
    color: var(--muted);
    font-size: .95em;
    margin-top: 6px;
}

.progress {
    height: 12px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
}

.progress>span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    border-radius: 999px;
}

.skills__right {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
}

.skills__title {
    margin: 0 0 10px;
    text-align: center;
    color: var(--accent-2);
}

.softskills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.softskills li {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    text-align: center;
    color: var(--text);
}

@media (max-width: 900px) {
    .skills {
        grid-template-columns: 1fr;
    }
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    color: var(--text);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    box-shadow: 0 2px 8px #0004;
}

.icon-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 166, 191, .3);
}

.icon-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.tiles--certs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 650px;
    margin: 0 auto;
    justify-items: center;
}

.cert {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    text-align: center;
}

.cert-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 6px;
}

/* Larger, colored icons for the skills tiles */
.tiles--skills .cert-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    color: var(--accent-2);
}

.cert-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cert-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.cert span {
    color: var(--muted);
    font-size: .95em;
}

@media (max-width: 900px) {
    .tiles--certs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tiles--certs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* About */
.about {
    display: grid;
    gap: 16px;
}

.about__intro p {
    margin: 0;
}

.quickfacts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

.quickfact {
    display: flex;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 10px 12px;
}

.quickfact__label {
    color: var(--muted);
    min-width: 120px;
}

.quickfact__value {
    color: var(--text);
}

@media (max-width: 900px) {
    .quickfacts {
        grid-template-columns: 1fr;
    }
}

/* Sub navigation for realisations */
.subnav {
    display: inline-flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
}

.subnav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
}

.subnav a:hover {
    background: rgba(255, 255, 255, .06);
}

/* Improve feature text spacing so buttons don't overlap text */
.feature__body p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.feature__body p strong {
    color: var(--accent-2);
    font-weight: 600;
}

.feature__body .button {
    margin-top: 6px;
    display: inline-block;
}

/* Contact block spacing adjustments */
#contact.section.modern {
    padding-top: 16px;
    padding-bottom: 16px;
}

#contact .cta {
    gap: 14px;
    margin-top: 8px;
}

#contact p {
    margin-bottom: 8px;
}

.contact-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 640px) {
    .contact-row {
        grid-template-columns: 1fr;
    }
}

.contact-form input,
.contact-form textarea {
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    padding: 8px 10px;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

/* Skill logos next to names */
.skill__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.skill__logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: saturate(90%);
}

/* Skill icon sizing and clarity */
.skill__label {
    gap: 10px;
}

.skill__logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5));
}

@media (max-width: 640px) {
    .skill__logo {
        width: 24px;
        height: 24px;
    }
}

/* Larger skill icons */
.skill__label {
    gap: 12px;
}

.skill__logo {
    width: 36px;
    height: 36px;
}

@media (max-width: 640px) {
    .skill__logo {
        width: 30px;
        height: 30px;
    }
}

/* Skill pill with left media bubble */
.skill {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.skill__media {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 2px 8px #0004;
}

.skill__media img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.skill__content {
    display: grid;
    gap: 6px;
}

@media (max-width: 640px) {
    .skill {
        grid-template-columns: 58px 1fr;
        gap: 12px;
    }

    .skill__media {
        width: 52px;
        height: 52px;
    }

    .skill__media img {
        width: 30px;
        height: 30px;
    }
}

/* Centrage propre des logos de compétences via grid */
.skill__media {
    display: grid;
    place-items: center;
    align-content: center;
}

.aboutme-text {
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Additional typographic harmony */
.logo {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
}

.nav-links a {
    font-size: 0.98rem;
    padding: 8px 12px;
}

.subtitle { font-size: 1rem; margin-bottom: 18px }

.aboutme-text { font-size: 1rem; line-height:1.6 }

.footer-meta { font-size: 0.92rem; color: var(--muted) }

/* make section headings balanced */
.section h2 { font-size: 1.4rem; margin-bottom: 0.9rem }

/* small screens adjustment */
@media (max-width: 640px) {
    .nav-links { display: none }
    .nav-toggle { display: inline-block }
    .logo { font-size: 1rem }
    .subtitle { font-size: 0.95rem }
}

/* Parcours / expériences sur la page d'accueil */
.resume-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.resume-grid--timeline {
    position: relative;
}

.resume-grid--timeline::before {
    display: none !important;
}

@media (max-width: 900px) {
    .resume-grid {
        grid-template-columns: 1fr;
    }
}

.resume-card {
    border-radius: 18px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 18px 16px;
}

.resume-card__title {
    margin: 0 0 10px;
}

.resume-card__list {
    list-style: disc inside; /* show bullet points */
    padding-left: 1rem;
    margin: 0;
    color: var(--muted);
}

.resume-card__list li {
    margin-bottom: 0.6rem;
}

.resume-card__meta {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.resume-card__detail {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Progress row with status label */
.progress-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}

.skill__status {
    color: var(--muted);
    font-size: .95em;
    white-space: nowrap;
}

/* Remove extra margin if social row missing */
.footer .footer-links {
    margin-top: 4px;
}

/* Make skills full-width (no empty right column) and lengthen progress */
.skills {
    grid-template-columns: 1fr;
}

.progress {
    height: 14px;
}

/* Skills: two-column layout with smaller bubbles */
.skills__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

@media (max-width: 900px) {
    .skills__list {
        grid-template-columns: 1fr;
    }
}

.skill {
    grid-template-columns: 56px 1fr;
    padding: 12px;
}

.skill__media {
    width: 48px;
    height: 48px;
}

.skill__media img {
    width: 28px;
    height: 28px;
    display: block;
}
/* Icônes dans les tuiles d'outils (page Bilan) */
.tool-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.tool-tile img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

.tool-tile span {
    display: block;
}

/* Source tiles grid */
.source-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.source {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.source img {
    width: 40%;
    height: 40%;
    object-fit: contain;
    place-self: center;
}

/* Allow SVG badges inside source tiles */
.source svg {
    width: 40%;
    height: 40%;
    display: block;
    place-self: center;
}

@media (max-width: 900px) {
    .source-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .source-tiles {
        grid-template-columns: 1fr;
    }
}

/* Reusable hero title (base) */
.hero--title {
    color: var(--accent-2);
    text-shadow: 0 2px 16px #000a;
    letter-spacing: 1px;
}

/* Simple, sober headings inherit body font */
h1,
h2,
h3 {
    font-family: inherit;
    letter-spacing: 0;
    font-weight: 700;
}

/* Center hero titles */
.hero,
.section.hero {
    text-align: center;
}

.hero--title {
    display: inline-block;
    margin-bottom: .6em;
}

/* ============================
   Thème sombre uniforme (override)
   Palette très sobre / peu colorée
   ============================ */

:root {
    --bg: #020617;
    --surface: #050816;
    --surface-2: #0b1120;
    --surface-3: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --line: #1f2937;
    --accent: #9ca3af;   /* gris bleuté très doux */
    --accent-2: #e5e7eb; /* utilisé pour les titres mis en avant */
    --accent-3: #6b7280; /* accent secondaire discret */
    --ring: rgba(148, 163, 184, 0.25);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
}

body {
    background: #020617;
    color: var(--text);
}

.site-header {
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
}

.logo {
    color: var(--text);
}

.nav-links a {
    color: var(--text);
}

.nav-links a:hover,
.nav-links a:focus {
    background: rgba(148, 163, 184, 0.15);
}

.hero {
    max-width: 1100px;
    margin: 56px auto 40px;
    padding: 0 20px 24px;
}

.hero--title {
    color: var(--accent-2);
    text-shadow: 0 2px 18px #000a;
}

.subtitle {
    color: var(--muted);
}

.section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.section.modern {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 28px 24px;
    margin: 40px auto;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.section.modern h2 {
    color: var(--text);
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.card,
.feature,
.project,
.tile {
    background: var(--surface-2);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 40px rgba(30, 39, 56, 0.9);
}

.card,
.project,
.tile {
    padding: 18px 16px;
}

.feature {
    padding: 18px 16px;
    backdrop-filter: blur(12px);
}

.feature__media {
    background: #111827;
    border-radius: 14px;
}

.feature__media img {
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7));
    max-height: 90px;
}

.button {
    border-radius: 999px;
    border-color: rgba(148, 163, 184, 0.4);
    background: #0b1120;
}

.button.primary {
    background: var(--accent);
    color: #161b28;
    box-shadow: 0 12px 30px rgba(30, 39, 56, 0.8);
}

.button.primary:hover {
    background: var(--accent-3);
}

.list {
    color: var(--muted);
}

.timeline {
    border-left-color: rgba(148, 163, 184, 0.5);
}

.timeline li::before {
    background: var(--accent);
}

.footer {
    border-top: 1px solid var(--line);
    background: #020617;
    color: var(--muted);
}

.footer-links a {
    color: var(--text);
}

.footer-social a {
    border-color: var(--line);
    background: rgba(15, 23, 42, 0.85);
}

.footer-social a:hover {
    background: rgba(30, 64, 175, 0.7);
}

/* Source tiles en thème sombre */
.source-tiles .tile.source {
    background: var(--surface-2);
    border-color: rgba(148, 163, 184, 0.35);
}

.source-tiles .tile.source span {
    color: var(--text);
}

/* Sous-navigation Réalisations */
.subnav {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(30, 39, 56, 0.9);
}

.subnav a {
    color: var(--text);
}

.subnav a:hover {
    background: rgba(37, 99, 235, 0.3);
}

/* Grilles */
.grid,
.projects,
.tiles,
.source-tiles,
.feature-list {
    gap: 18px;
}

/* Surcharges sans dégradés supplémentaires */
.hero {
    background: none;
}

.subnav {
    background: #020617;
}

.source-tiles .tile.source {
    background: var(--surface-2);
    border-color: var(--line);
}

/* ========== PAGE-SPECIFIC BACKGROUNDS ========== */

/* Accueil - Code & Technology */
.page-accueil {
    background:
        url('assets/accueil.jpg') center/cover fixed,
        radial-gradient(60% 40% at 15% 10%, rgba(139, 166, 191, .06), transparent 60%),
        radial-gradient(40% 35% at 85% 20%, rgba(127, 147, 168, .06), transparent 60%),
        radial-gradient(50% 45% at 50% 90%, rgba(164, 181, 200, .05), transparent 65%),
        linear-gradient(180deg, rgba(10, 11, 14, 0.92), rgba(15, 18, 26, 0.92) 40%, rgba(10, 11, 14, 0.92));
    background-attachment: fixed, scroll, scroll, scroll, scroll;
}

/* Entreprise - Burger King Building */
.page-entreprise {
    background:
        url('assets/Entre-burgerking.png') center/cover fixed,
        radial-gradient(60% 40% at 15% 10%, rgba(139, 166, 191, .04), transparent 60%),
        radial-gradient(40% 35% at 85% 20%, rgba(127, 147, 168, .04), transparent 60%),
        linear-gradient(180deg, rgba(10, 11, 14, 0.88), rgba(15, 18, 26, 0.88) 40%, rgba(10, 11, 14, 0.88));
    background-attachment: fixed, scroll, scroll, scroll;
}

/* Réalisations - Development & Projects */
.page-realisations {
    background:
        url('assets/Réalisation.png') center/cover fixed,
        radial-gradient(60% 40% at 15% 10%, rgba(139, 166, 191, .06), transparent 60%),
        radial-gradient(40% 35% at 85% 20%, rgba(127, 147, 168, .06), transparent 60%),
        radial-gradient(50% 45% at 50% 90%, rgba(164, 181, 200, .05), transparent 65%),
        linear-gradient(180deg, rgba(10, 11, 14, 0.92), rgba(15, 18, 26, 0.92) 40%, rgba(10, 11, 14, 0.92));
    background-attachment: fixed, scroll, scroll, scroll, scroll;
}

/* Veille Technologique - Technology & Innovation */
.page-veille {
    background:
        url('assets/veile.jpg') center/cover fixed,
        radial-gradient(60% 40% at 15% 10%, rgba(139, 166, 191, .06), transparent 60%),
        radial-gradient(40% 35% at 85% 20%, rgba(127, 147, 168, .06), transparent 60%),
        radial-gradient(50% 45% at 50% 90%, rgba(164, 181, 200, .05), transparent 65%),
        linear-gradient(180deg, rgba(10, 11, 14, 0.92), rgba(15, 18, 26, 0.92) 40%, rgba(10, 11, 14, 0.92));
    background-attachment: fixed, scroll, scroll, scroll, scroll;
}

/* Bilan - Analysis & Reflection */
.page-bilan {
    background:
        url('assets/accueil.jpg') center/cover fixed,
        radial-gradient(60% 40% at 15% 10%, rgba(139, 166, 191, .06), transparent 60%),
        radial-gradient(40% 35% at 85% 20%, rgba(127, 147, 168, .06), transparent 60%),
        radial-gradient(50% 45% at 50% 90%, rgba(164, 181, 200, .05), transparent 65%),
        linear-gradient(180deg, rgba(10, 11, 14, 0.92), rgba(15, 18, 26, 0.92) 40%, rgba(10, 11, 14, 0.92));
    background-attachment: fixed, scroll, scroll, scroll, scroll;
}

/* E6 - Exam & Certifications */
.page-e6 {
    background:
        url('assets/Réalisation.png') center/cover fixed,
        radial-gradient(60% 40% at 15% 10%, rgba(139, 166, 191, .06), transparent 60%),
        radial-gradient(40% 35% at 85% 20%, rgba(127, 147, 168, .06), transparent 60%),
        radial-gradient(50% 45% at 50% 90%, rgba(164, 181, 200, .05), transparent 65%),
        linear-gradient(180deg, rgba(10, 11, 14, 0.92), rgba(15, 18, 26, 0.92) 40%, rgba(10, 11, 14, 0.92));
    background-attachment: fixed, scroll, scroll, scroll, scroll;
}

/* ========== E5-E6 PAGE CUSTOM STYLES ========== */

/* Hero section - Modern, professional */
.e6-hero {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.e6-hero__content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: center;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideUpFade 0.8s ease-out;
}

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

.e6-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.e6-hero__visual svg {
    width: 100%;
    height: auto;
    max-width: 380px;
    filter: drop-shadow(0 8px 24px rgba(37, 99, 235, 0.12));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.e6-hero__text h1 {
    font-size: clamp(2rem, 3vw + 0.5rem, 2.8rem);
    color: #0f172a;
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.e6-hero__subtitle {
    font-size: 1.2rem;
    color: #2563eb;
    font-weight: 600;
    margin: 0 0 16px;
}

.e6-hero__description {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 20px;
}

.e6-hero__description strong {
    color: #0f172a;
    font-weight: 700;
}

.e6-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tag {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* E6 Sections - Light & Clean */
.e6-section {
    max-width: 1100px;
    margin: 44px auto;
    padding: 0 20px;
    animation: slideUpFade 0.8s ease-out;
    animation-fill-mode: backwards;
}

.e6-section:nth-child(2) { animation-delay: 0.1s; }
.e6-section:nth-child(3) { animation-delay: 0.2s; }
.e6-section:nth-child(4) { animation-delay: 0.3s; }
.e6-section:nth-child(5) { animation-delay: 0.4s; }
.e6-section:nth-child(6) { animation-delay: 0.5s; }

.e6-section__container {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    padding: 44px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.e6-section__container:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.e6-section h2 {
    font-size: 1.9rem;
    color: #0f172a;
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.e6-section__subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0 0 32px;
    line-height: 1.6;
}

/* Competence Grid */
.competence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.competence-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.competence-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.competence-card:hover::before {
    left: 100%;
}

.competence-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
    border-color: #2563eb;
}

.competence-icon {
    font-size: 2.2rem;
    color: #2563eb;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.3s ease;
}

.competence-card:hover .competence-icon {
    transform: scale(1.15) rotate(5deg);
}

.competence-card h3 {
    color: #0f172a;
    font-size: 1.1rem;
    margin: 0 0 14px;
    font-weight: 700;
}

.competence-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.competence-card li {
    color: #475569;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
    transition: color 0.3s ease;
}

.competence-card:hover li {
    color: #0f172a;
}

.competence-card li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.tech-category h3 {
    color: #0f172a;
    font-size: 1rem;
    margin: 0 0 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.tech-badge {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.tech-badge:hover {
    background: #1e40af;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

/* Projets Grid */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.projet-card {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.projet-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 14px 14px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.projet-card:hover::after {
    transform: scaleX(1);
}

.projet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.22);
    border-color: #2563eb;
}

.projet-card__icon {
    font-size: 2.8rem;
    color: #2563eb;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.projet-card:hover .projet-card__icon {
    transform: translateY(-5px);
}

.projet-card h3 {
    color: #0f172a;
    font-size: 1.2rem;
    margin: 0 0 12px;
    font-weight: 700;
}

.projet-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.projet-card__meta {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.meta-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-projet {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-projet i {
    margin-right: 6px;
}

.btn-projet:hover {
    background: #1e40af;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

/* Preuves Section */
.preuves-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.preuve-box {
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    border: 1.5px solid #ddd6fe;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.preuve-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.15);
    border-color: #7c3aed;
}

.preuve-box h3 {
    color: #0f172a;
    font-size: 1rem;
    margin: 0 0 12px;
    font-weight: 700;
}

.preuve-box h3 i {
    color: #7c3aed;
    margin-right: 8px;
}

.preuve-box p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.preuve-box strong {
    color: #0f172a;
    font-weight: 700;
}

/* CTA Section */
.e6-cta {
    text-align: center;
}

.e6-cta .e6-section__container {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
}

.e6-cta h2 {
    color: #0f172a;
}

.e6-cta > .e6-section__container > p {
    color: #475569;
    font-size: 1rem;
    margin: 0 0 28px;
}

.nav-autres {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-link {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn-link:hover::after {
    left: 100%;
}

.btn-link:hover {
    background: #1e40af;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

/* Responsive - Tablets */
@media (max-width: 900px) {
    .e6-hero__content {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 24px;
    }

    .e6-hero__visual {
        min-height: 240px;
    }

    .e6-section__container {
        padding: 32px 24px;
    }

    .competence-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Responsive - Mobile */
@media (max-width: 640px) {
    .e6-hero {
        margin: 20px auto 0;
        padding: 0 16px;
    }

    .e6-hero__content {
        padding: 24px 16px;
    }

    .e6-hero__text h1 {
        font-size: 1.8rem;
    }

    .e6-hero__subtitle {
        font-size: 1rem;
    }

    .e6-section {
        margin: 32px auto;
        padding: 0 16px;
    }

    .e6-section__container {
        padding: 24px 16px;
    }

    .e6-section h2 {
        font-size: 1.5rem;
    }

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

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

    .tech-list {
        gap: 6px;
    }

    .tech-badge {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .e6-hero__tags {
        gap: 8px;
    }

    .nav-autres {
        gap: 10px;
    }

    .btn-link {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .projet-card {
        padding: 20px;
    }

    .preuve-box {
        padding: 20px;
    }

    .competence-icon {
        font-size: 2rem;
    }

    .projet-card__icon {
        font-size: 2.4rem;
    }
}

/* E5 Page - Realisations Styles */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.realisation-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.realisation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.realisation-card:hover::before {
    left: 100%;
}

.realisation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
    border-color: #2563eb;
}

.realisation-icon {
    font-size: 2.4rem;
    color: #2563eb;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.realisation-card:hover .realisation-icon {
    transform: scale(1.1) rotate(5deg);
}

.realisation-card h3 {
    color: #0f172a;
    font-size: 1.2rem;
    margin: 0 0 16px;
    font-weight: 700;
}

.realisation-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 8px;
}

.realisation-card strong {
    color: #0f172a;
    font-weight: 700;
}

/* Synthese Section */
.synthese-container {
    display: flex;
    justify-content: center;
}

.synthese-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9f0 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    max-width: 400px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.synthese-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.2);
    border-color: #d97706;
}

.synthese-icon {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease;
}

.synthese-card:hover .synthese-icon {
    transform: scale(1.1);
}

.synthese-card h3 {
    color: #0f172a;
    font-size: 1.3rem;
    margin: 0 0 12px;
    font-weight: 700;
}

.synthese-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Responsive for E5 */
@media (max-width: 900px) {
    .realisations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .realisation-card {
        padding: 20px;
    }

    .synthese-card {
        padding: 24px;
    }

    .realisation-icon {
        font-size: 2rem;
    }

    .synthese-icon {
        font-size: 2.5rem;
    }
}

/* ==========================================================
   THEME OVERRIDE - LIGHT BLUE (NOT PURE WHITE)
   ========================================================== */
:root {
    --bg: #eaf2ff;
    --surface: #edf4ff;
    --surface-2: #e4eeff;
    --surface-3: #dbe7ff;
    --text: #0f2a4d;
    --text-secondary: #214a7a;
    --muted: #446790;
    --line: #bccfee;
    --accent: #2b63cf;
    --accent-2: #1f4fae;
    --accent-3: #4b7fde;
    --ring: rgba(43, 99, 207, 0.2);
    --shadow: 0 10px 26px rgba(31, 79, 174, 0.12);
}

html,
body {
    background: linear-gradient(180deg, #eef5ff 0%, #e4eeff 100%) !important;
    color: var(--text);
}

.page-accueil,
.page-entreprise,
.page-realisations,
.page-veille,
.page-bilan,
.page-e5,
.page-e6 {
    background: linear-gradient(180deg, #eef5ff 0%, #e4eeff 100%) !important;
    background-attachment: scroll !important;
}

.site-header {
    background: rgba(237, 244, 255, 0.92) !important;
    border-bottom: 1px solid var(--line) !important;
}

.section.modern,
.card,
.project,
.tile,
.feature,
.resume-card,
.e6-hero__content,
.e6-section__container {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow) !important;
}

.button {
    background: var(--surface-2) !important;
    border-color: var(--line) !important;
    color: var(--text) !important;
}

.button.primary,
.btn-link,
.btn-projet {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #f5f9ff !important;
}

.button.primary:hover,
.btn-link:hover,
.btn-projet:hover {
    background: var(--accent-2) !important;
}

/* ==========================================================
   THEME OVERRIDE - Inspired by portfolio-fernandes
   ========================================================== */
:root {
    --bg: #0a1224;
    --surface: #111b33;
    --surface-2: #162443;
    --surface-3: #1e2f57;
    --text: #e7efff;
    --text-secondary: #c8d8ff;
    --muted: #a8bde7;
    --line: #28406f;
    --accent: #4f8cff;
    --accent-2: #6ca2ff;
    --accent-3: #7ab0ff;
    --ring: rgba(79, 140, 255, 0.25);
    --shadow: 0 16px 36px rgba(5, 12, 26, 0.5);
}

html,
body {
    background:
        radial-gradient(80% 60% at 20% 0%, rgba(79, 140, 255, 0.18), transparent 55%),
        radial-gradient(70% 55% at 85% 10%, rgba(108, 162, 255, 0.13), transparent 55%),
        linear-gradient(180deg, #081022 0%, #0b1630 100%) !important;
    color: var(--text) !important;
}

.page-accueil,
.page-entreprise,
.page-realisations,
.page-veille,
.page-bilan,
.page-e5,
.page-e6 {
    background: transparent !important;
}

.site-header {
    background: rgba(10, 18, 36, 0.82) !important;
    border-bottom: 1px solid var(--line) !important;
}

.section.modern,
.card,
.project,
.tile,
.feature,
.resume-card,
.e6-hero__content,
.e6-section__container {
    background: linear-gradient(180deg, rgba(22, 36, 67, 0.92), rgba(17, 27, 51, 0.92)) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow) !important;
}

.subtitle,
.aboutme-text,
p,
.list,
.skill__desc,
.footer-meta {
    color: var(--muted) !important;
}

.logo,
.nav-links a,
.footer-links a,
.footer-social a,
h1,
h2,
h3,
h4 {
    color: var(--text) !important;
}

.button {
    background: rgba(79, 140, 255, 0.15) !important;
    border-color: var(--line) !important;
    color: var(--text) !important;
}

.button.primary,
.btn-link,
.btn-projet {
    background: linear-gradient(180deg, var(--accent), var(--accent-2)) !important;
    border-color: transparent !important;
    color: #f3f7ff !important;
}

/* E5/E6 visual harmony: icons, tags, cards in same blue tone */
.tag,
.tech-badge,
.meta-tag {
    background: rgba(79, 140, 255, 0.2) !important;
    color: #dfeaff !important;
    border: 1px solid rgba(108, 162, 255, 0.45) !important;
}

.tag:hover,
.tech-badge:hover,
.meta-tag:hover {
    background: rgba(108, 162, 255, 0.35) !important;
    color: #f2f7ff !important;
}

.competence-card,
.projet-card,
.preuve-box,
.realisation-card,
.synthese-card {
    background: linear-gradient(180deg, rgba(20, 33, 61, 0.95), rgba(14, 24, 46, 0.95)) !important;
    border: 1px solid var(--line) !important;
}

.competence-icon,
.projet-card__icon,
.realisation-icon,
.synthese-icon,
.preuve-box h3 i {
    color: var(--accent-2) !important;
}

.competence-card h3,
.projet-card h3,
.realisation-card h3,
.synthese-card h3,
.preuve-box h3 {
    color: var(--text) !important;
}

.competence-card li,
.projet-card p,
.realisation-card p,
.synthese-card p,
.preuve-box p,
.e6-section__subtitle,
.e6-hero__subtitle,
.e6-hero__description {
    color: var(--muted) !important;
}

.competence-card li::before {
    color: var(--accent-2) !important;
}

/* Readability fix for E5 context label */
.realisation-card p strong,
.feature__body p strong {
    color: #9ec4ff !important;
    font-weight: 700;
}

/* Active nav item polish */
.nav-links a.active {
    opacity: 1;
    background: rgba(79, 140, 255, 0.2);
    border: 1px solid rgba(108, 162, 255, 0.35);
}

/* Competences logos polish */
.skill__media {
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
}

.skill__media::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    background: transparent;
    z-index: 0;
}

.skill__media img {
    position: relative;
    z-index: 1;
    width: 44px !important;
    height: 44px !important;
    object-fit: contain;
    opacity: 1 !important;
    mix-blend-mode: normal;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25));
}

.skill .skill__media img {
    transform-origin: center;
}

/* Optical size normalization so all logos feel balanced */
.skill--cisco .skill__media img { transform: scale(0.95); }
.skill--proxmox .skill__media img { transform: scale(0.88); }
.skill--vmware .skill__media img { transform: scale(0.92); }
.skill--windows .skill__media img { transform: scale(1.08); }
.skill--wireshark .skill__media img { transform: scale(1.02); }
.skill--debian .skill__media img { transform: scale(0.96); }

.skill--cisco .skill__media img { filter: drop-shadow(0 2px 5px rgba(79, 140, 255, .28)); }
.skill--proxmox .skill__media img { filter: drop-shadow(0 2px 5px rgba(255, 164, 63, .22)); }
.skill--vmware .skill__media img { filter: drop-shadow(0 2px 5px rgba(99, 201, 255, .22)); }
.skill--windows .skill__media img { filter: drop-shadow(0 2px 5px rgba(125, 183, 255, .28)); }
.skill--wireshark .skill__media img { filter: drop-shadow(0 2px 5px rgba(111, 177, 255, .26)); }
.skill--debian .skill__media img { filter: drop-shadow(0 2px 5px rgba(255, 109, 171, .2)); }

/* Entreprise team section */
.team-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.team-card {
    background: linear-gradient(180deg, rgba(22, 36, 67, 0.92), rgba(17, 27, 51, 0.92));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(108, 162, 255, 0.08) 35%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 162, 255, 0.6);
    box-shadow: 0 18px 36px rgba(6, 12, 26, .45);
}

.team-card:hover::before {
    transform: translateX(120%);
}

.team-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.team-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(79, 140, 255, 0.22);
    border: 1px solid rgba(108, 162, 255, 0.45);
    color: #dce9ff;
    font-size: 0.8rem;
    font-weight: 600;
}

.team-count {
    color: var(--muted);
    font-size: 0.82rem;
}

.team-card h3 {
    margin-bottom: 10px;
    color: var(--accent-2) !important;
    text-align: left;
    position: relative;
    z-index: 1;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    position: relative;
    z-index: 1;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(108, 162, 255, 0.3);
    border-radius: 10px;
    background: rgba(79, 140, 255, 0.08);
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.team-member:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 162, 255, 0.55);
    background: rgba(79, 140, 255, 0.14);
}

.member-initials {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.team-member strong {
    display: block;
    color: var(--text);
    line-height: 1.2;
}

.team-member small {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.25;
}

@media (max-width: 900px) {
    .team-list {
        grid-template-columns: 1fr;
    }
}