/* ── VARIABLES ── */
:root {
    --bg:       #f8fafc;
    --bg2:      #ffffff;
    --surface:  #ffffff;
    --surface2: #f1f5f9;
    --border:   #e2e8f0;
    --blue:     #2563eb;
    --blue-d:   #1d4ed8;
    --blue-l:   #eff6ff;
    --cyan:     #0891b2;
    --cyan-l:   #ecfeff;
    --green:    #059669;
    --text:     #1e293b;
    --sub:      #475569;
    --muted:    #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 8px rgba(0,0,0,.04);
    --shadow:   0 4px 16px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
    --radius:   12px;
    --radius-sm: 8px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
    overflow-x: hidden;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    background:
        linear-gradient(to right,  rgba(5,10,20,.5) 0%, rgba(5,10,20,.18) 8%, transparent 22%, transparent 78%, rgba(5,10,20,.18) 92%, rgba(5,10,20,.5) 100%),
        linear-gradient(to bottom, transparent 55%, rgba(5,10,20,.12) 100%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: 'Inter', sans-serif; }
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }

/* ── UTILITIES ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5.5rem 0; }
.section--alt { background: var(--surface2); }

.label {
    display: inline-block; font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue); margin-bottom: .6rem;
}
.section-title { font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: var(--text); margin-bottom: .5rem; }
.section-sub { font-size: .95rem; color: var(--sub); max-width: 540px; line-height: 1.75; }
.divider { width: 40px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 2px; margin: 1.1rem 0 2.75rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── NAV ── */
#nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.nav-logo {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    font-size: 1.1rem; color: var(--text);
}
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
    font-size: .85rem; font-weight: 500; color: var(--sub);
    transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--blue); border-radius: 1px;
    transform: scaleX(0); transition: transform .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cv {
    padding: .45rem 1.1rem; background: var(--blue); color: #fff;
    border-radius: 7px; font-size: .82rem; font-weight: 600;
    transition: background .2s;
}
.nav-cv:hover { background: var(--blue-d); }
#hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
#hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: all .3s; }
#mobile-nav {
    display: none; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    position: absolute; top: 60px; left: 0; right: 0;
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
    padding: .9rem 1.5rem; font-size: .95rem; font-weight: 500;
    color: var(--sub); border-bottom: 1px solid var(--border);
    transition: background .15s;
}
#mobile-nav a:hover { background: var(--bg); color: var(--text); }
@media(max-width:820px) {
    .nav-links { display: none; }
    #hamburger { display: flex; }
}
@media(max-width:600px) { .nav-cv { display: none; } }

/* ── HERO ── */
#accueil {
    min-height: 100vh; padding-top: 60px;
    display: flex; align-items: center;
    background:
        radial-gradient(ellipse 70% 50% at 70% 30%, rgba(37,99,235,.07) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 15% 75%, rgba(8,145,178,.06) 0%, transparent 60%),
        var(--bg2);
}
.hero-grid {
    display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center;
    padding: 4.5rem 0;
}
@media(max-width:768px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--blue-l); color: var(--blue);
    border: 1px solid rgba(37,99,235,.15);
    padding: .3rem .85rem; border-radius: 50px;
    font-size: .78rem; font-weight: 600; margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero-name { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--text); margin-bottom: .5rem; }
.hero-name span { color: var(--blue); }
.hero-role {
    font-size: 1.1rem; font-weight: 500; color: var(--sub);
    margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
@media(max-width:768px) { .hero-role { justify-content: center; } }
.role-sep { width: 1px; height: 16px; background: var(--border); }
.hero-desc { font-size: .97rem; color: var(--sub); max-width: 500px; line-height: 1.8; margin-bottom: 2rem; }
@media(max-width:768px) { .hero-desc { margin: 0 auto 2rem; } }
.hero-btns { display: flex; gap: .85rem; flex-wrap: wrap; }
@media(max-width:768px) { .hero-btns { justify-content: center; } }
.btn {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .7rem 1.5rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .9rem; transition: all .2s; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.hero-social { display: flex; gap: .65rem; margin-top: 1.75rem; }
@media(max-width:768px) { .hero-social { justify-content: center; } }
.social-link {
    width: 38px; height: 38px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
    color: var(--sub); font-size: .95rem; transition: all .2s;
}
.social-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }

/* Photo */
.hero-photo { position: relative; }
.hero-photo-inner {
    width: 280px; height: 280px; border-radius: 50%;
    overflow: hidden; border: 4px solid #fff;
    box-shadow: var(--shadow-lg); position: relative;
}
.hero-photo-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-photo-badge {
    position: absolute; bottom: 16px; right: -8px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 10px; padding: .55rem .9rem;
    box-shadow: var(--shadow);
    display: flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 600; color: var(--text); white-space: nowrap;
}
.hero-photo-badge i { color: var(--blue); }
@media(max-width:768px) {
    .hero-photo { display: flex; justify-content: center; }
    .hero-photo-inner { width: 200px; height: 200px; }
    .hero-photo-badge { display: none; }
}

/* ── STATS BAND ── */
.stats-band {
    background: var(--text); color: #fff; padding: 2.25rem 0;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem;
    divide-x: 1px solid rgba(255,255,255,.1);
}
@media(max-width:600px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat { text-align: center; padding: .5rem; }
.stat-num {
    font-family: 'Space Grotesk', sans-serif; font-size: 2.25rem; font-weight: 700;
    color: #fff; line-height: 1;
}
.stat-lbl { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: .3rem; }

/* ── SKILLS BLOCKS (Certifs / Éditeurs / Domaines) ── */
.skills-block { margin-bottom: 3.25rem; }
.skills-block-title {
    display: flex; align-items: center; gap: .55rem;
    font-size: 1rem; font-weight: 700; color: var(--text);
    margin-bottom: 1.25rem; padding-bottom: .65rem;
    border-bottom: 2px solid var(--border);
}
.skills-block-title i { color: var(--blue); font-size: .95rem; }

/* Certifications */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .85rem;
}
.cert-card {
    display: flex; align-items: center; gap: .85rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .9rem 1.1rem;
    box-shadow: var(--shadow-sm); transition: all .25s;
}
.cert-card:hover { box-shadow: var(--shadow); border-color: rgba(37,99,235,.2); transform: translateY(-1px); }
.cert-logo {
    width: 42px; height: 42px; border-radius: 9px;
    background: var(--surface2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; padding: 6px;
}
.cert-logo img { max-height: 26px; max-width: 30px; object-fit: contain; }
.cert-info { flex: 1; min-width: 0; }
.cert-name { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.cert-sub { font-size: .73rem; color: var(--muted); margin-top: .15rem; }
.cert-badge {
    display: inline-block; font-size: .68rem; font-weight: 700;
    padding: .2rem .6rem; border-radius: 50px; white-space: nowrap;
    letter-spacing: .04em; flex-shrink: 0;
}
.cert-blue   { background: var(--blue-l); color: var(--blue); border: 1px solid rgba(37,99,235,.2); }
.cert-orange { background: #fff7ed; color: #c2410c; border: 1px solid rgba(194,65,12,.2); }
.cert-cyan   { background: var(--cyan-l); color: var(--cyan); border: 1px solid rgba(8,145,178,.2); }
.cert-gray   { background: var(--surface2); color: var(--sub); border: 1px solid var(--border); }
.cert-green  { background: #f0fdf4; color: #15803d; border: 1px solid rgba(21,128,61,.2); }
.cert-logo-icon {
    width: 42px; height: 42px; border-radius: 9px;
    background: #f0fdf4; border: 1px solid rgba(21,128,61,.2);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cert-logo-icon i { color: #15803d; font-size: 1.1rem; }

/* Vendor logos grid */
.vendors-grid {
    display: flex; flex-wrap: wrap; gap: .75rem;
}
.vendor-card {
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: .7rem 1.1rem;
    box-shadow: var(--shadow-sm); transition: all .25s;
}
.vendor-card:hover { box-shadow: var(--shadow); border-color: rgba(37,99,235,.2); transform: translateY(-1px); }
.vendor-card img { max-height: 28px; max-width: 100px; object-fit: contain; }
.vendor-card img[src*="paloalto"],
.vendor-card img[src*="wazuh"],
.vendor-card img[src*="hpe"] { max-height: 36px; max-width: 140px; }
.vendor-dark { background: var(--vbg, #1e293b) !important; border-color: transparent !important; }
.vendor-dark:hover { border-color: transparent !important; }

/* ── COMPETENCES (skill cards for domains) ── */
.skills-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem;
}
@media(max-width:900px) { .skills-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow-sm); transition: all .25s;
}
.skill-card:hover { box-shadow: var(--shadow); border-color: rgba(37,99,235,.2); transform: translateY(-2px); }
.skill-icon-box {
    width: 40px; height: 40px; border-radius: 9px;
    background: var(--blue-l); display: flex; align-items: center; justify-content: center;
    margin-bottom: .9rem;
}
.skill-icon-box i { color: var(--blue); font-size: 1rem; }
.skill-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .9rem; }
.skill-sub-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .4rem; margin-top: .1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
    font-size: .73rem; padding: .2rem .55rem; border-radius: 4px;
    background: var(--surface2); color: var(--sub);
    border: 1px solid var(--border); white-space: nowrap;
}
.tag-blue { background: var(--blue-l); color: var(--blue); border-color: rgba(37,99,235,.15); }
.tag-cyan { background: var(--cyan-l); color: var(--cyan); border-color: rgba(8,145,178,.15); }

/* ── LOGOS ── */
.logos-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.25rem 0; overflow: hidden; }
.logos-band-label { text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-bottom: 1.4rem; }
.logos-track-wrap { position: relative; overflow: hidden; }
.logos-track-wrap::before, .logos-track-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.logos-track-wrap::before { left: 0; background: linear-gradient(to right, var(--surface), transparent); }
.logos-track-wrap::after { right: 0; background: linear-gradient(to left, var(--surface), transparent); }
.logos-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.logos-track:hover { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.logo-item { width: 170px; height: 56px; display: flex; align-items: center; justify-content: center; padding: 0 18px; }
.logo-item img { max-height: 32px; max-width: 130px; opacity: 1; filter: none; transition: all .3s; object-fit: contain; }

/* ── CLIENTS BAND ── */
.clients-band { overflow: hidden; padding: 1.5rem 0 2rem; }
.clients-track-wrap { position: relative; overflow: hidden; }
.clients-track-wrap::before, .clients-track-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.clients-track-wrap::before { left: 0; background: linear-gradient(to right, var(--surface2), transparent); }
.clients-track-wrap::after  { right: 0; background: linear-gradient(to left,  var(--surface2), transparent); }
.clients-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.clients-track:hover { animation-play-state: paused; }

/* ── PARCOURS TIMELINE ── */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
    content: ''; position: absolute; left: 7px; top: 10px; bottom: 20px;
    width: 2px; background: linear-gradient(to bottom, var(--blue), var(--cyan), var(--border));
}
.tl-item { position: relative; margin-bottom: 2.25rem; }
.tl-dot {
    position: absolute; left: -1.75rem; top: 8px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--blue); border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--blue);
}
.tl-dot.cyan { background: var(--cyan); box-shadow: 0 0 0 2px var(--cyan); }
.tl-dot.gray { background: var(--muted); box-shadow: 0 0 0 2px var(--muted); }
.tl-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, border-color .25s;
}
.tl-card:hover { box-shadow: var(--shadow); border-color: rgba(37,99,235,.2); }
.tl-card.current { border-color: rgba(37,99,235,.3); background: linear-gradient(to right, var(--blue-l), var(--surface)); }
.tl-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .75rem; margin-bottom: .9rem; }
.tl-head-left { display: flex; align-items: center; gap: .75rem; }
.tl-employer-logo { height: 36px; max-width: 90px; object-fit: contain; flex-shrink: 0; }
.tl-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.tl-company { font-size: .85rem; color: var(--sub); margin-top: .15rem; }
.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .28rem .75rem; border-radius: 50px; font-size: .72rem; font-weight: 700;
    white-space: nowrap;
}
.badge-blue { background: var(--blue-l); color: var(--blue); }
.badge-cyan { background: var(--cyan-l); color: var(--cyan); }
.badge-gray { background: var(--surface2); color: var(--sub); border: 1px solid var(--border); }
.tl-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.tl-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--sub); }
.tl-list li i { color: var(--blue); font-size: .7rem; margin-top: 4px; flex-shrink: 0; }

/* ── MISSION STATS ── */
.mission-kpis {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem;
}
@media(max-width:700px) { .mission-kpis { grid-template-columns: repeat(2,1fr); } }
.kpi {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem 1rem; text-align: center;
    box-shadow: var(--shadow-sm);
}
.kpi-num { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--blue); line-height: 1; }
.kpi-lbl { font-size: .77rem; color: var(--sub); margin-top: .3rem; }
.mission-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media(max-width:900px) { .mission-cards { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px) { .mission-cards { grid-template-columns: 1fr; } }
.m-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.m-card h3 { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; display: flex; align-items: center; gap: .45rem; }
.m-card h3 i { color: var(--blue); }
.bar-row { margin-bottom: .75rem; }
.bar-meta { display: flex; justify-content: space-between; font-size: .77rem; color: var(--sub); margin-bottom: .28rem; }
.bar-track { height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 3px; width: 0; transition: width 1s ease; }
.tech-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.tech-pill {
    display: flex; align-items: center; gap: .35rem;
    padding: .32rem .7rem; border-radius: 5px;
    background: var(--surface2); border: 1px solid var(--border);
    font-size: .77rem; color: var(--sub);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sectors { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; }
.sector {
    text-align: center; padding: .8rem .4rem;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px;
}
.sector i { color: var(--blue); font-size: 1.1rem; margin-bottom: .35rem; display: block; }
.sector span { font-size: .73rem; color: var(--sub); }

/* ── PROJETS ── */
.projects-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
    padding: .4rem 1rem; border: 1.5px solid var(--border); background: var(--surface);
    border-radius: 50px; font-size: .8rem; font-weight: 600; color: var(--sub);
    cursor: pointer; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Filter bar */
.filter-bar { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.filter-employers { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-controls { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.filter-select-wrap {
    position: relative; display: flex; align-items: center;
}
.filter-select-wrap i {
    position: absolute; left: .7rem; color: var(--muted); font-size: .75rem; pointer-events: none;
}
.filter-select-wrap select {
    appearance: none; padding: .45rem 2rem .45rem 2rem;
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: 50px; font-size: .8rem; font-weight: 500; color: var(--sub);
    cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif;
    min-width: 150px;
}
.filter-select-wrap select:hover, .filter-select-wrap select:focus {
    border-color: var(--blue); color: var(--text); outline: none;
}
.filter-search-wrap {
    position: relative; display: flex; align-items: center; flex: 1; min-width: 200px;
}
.filter-search-wrap i {
    position: absolute; left: .75rem; color: var(--muted); font-size: .8rem; pointer-events: none;
}
.filter-search-wrap input {
    width: 100%; padding: .45rem 1rem .45rem 2.1rem;
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: 50px; font-size: .82rem; color: var(--text);
    transition: border-color .2s; outline: none; font-family: 'Inter', sans-serif;
}
.filter-search-wrap input:focus { border-color: var(--blue); }
.filter-search-wrap input::placeholder { color: var(--muted); }
.filter-meta {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.filter-count { font-size: .82rem; color: var(--sub); }
.filter-count strong { color: var(--text); }
.filter-reset {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .85rem; border: 1.5px solid var(--border);
    background: var(--surface); border-radius: 50px;
    font-size: .78rem; font-weight: 600; color: var(--sub);
    cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif;
}
.filter-reset:hover { border-color: var(--blue); color: var(--blue); }

/* Client / tech initials fallback */
.client-initial {
    width: 52px; height: 52px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif;
}

/* Spec text and badge */
.spec-text { font-size: .82rem; color: var(--sub); line-height: 1.55; }
.spec-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .22rem .6rem; border-radius: 5px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: .78rem; font-weight: 600; color: var(--sub);
}
.spec-badge i { color: var(--blue); font-size: .7rem; }

/* No results / loading */
.projects-no-results, .projects-loading {
    grid-column: 1 / -1; text-align: center;
    padding: 4rem 2rem; color: var(--muted);
}
.projects-no-results i, .projects-loading i {
    font-size: 2rem; margin-bottom: .75rem; display: block;
}
.projects-no-results p, .projects-loading p { font-size: .95rem; }

.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media(max-width:900px) { .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: all .25s; display: flex; flex-direction: column;
}
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(37,99,235,.2); }
.project-card[data-hidden] { display: none; }
.project-img {
    height: 120px; overflow: hidden; display: flex; position: relative;
}
/* left half — client logo */
.project-img-client {
    flex: 1; background: #fff; border-right: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; padding: .9rem;
    transition: background .25s;
}
.project-img-client img {
    max-height: 52px; max-width: 90%; object-fit: contain; opacity: 1;
    transition: opacity .25s, transform .25s;
}
/* right half — technology logo */
.project-img-tech {
    flex: 1; background: #fff;
    display: flex; align-items: center; justify-content: center; padding: .9rem;
    transition: background .25s;
}
.project-img-tech img {
    max-height: 38px; max-width: 90%; object-fit: contain; opacity: 1;
    transition: opacity .25s, transform .25s;
}
/* separator label */
.project-img-sep {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 22px; height: 22px; border-radius: 50%; background: var(--surface);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    font-size: .55rem; font-weight: 700; color: var(--muted); z-index: 2; letter-spacing: 0;
    /* push sep above employer strip */
    margin-top: -20px;
}
/* employer logo strip — prominent */
.project-img-employer {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 40px; display: flex; align-items: center; justify-content: center;
    padding: 0 .75rem; gap: .5rem; z-index: 3;
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,.5);
}
.emp-bg-sfr     { background: rgba(220,38,38,.18); }
.emp-bg-allied  { background: rgba(8,145,178,.18); }
.emp-bg-bouygues{ background: rgba(124,58,237,.18); }
.project-img-employer img {
    max-height: 26px; max-width: 110px; object-fit: contain; opacity: 1;
    filter: saturate(.9);
    transition: opacity .2s, filter .2s;
}
.project-img-employer span {
    font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--sub);
}
.project-card:hover .project-img-employer img { opacity: 1; filter: saturate(1.1); }
.project-card:hover .project-img-client { background: #fff; }
.project-card:hover .project-img-client img { opacity: 1; transform: scale(1.05); }
.project-card:hover .project-img-tech img { opacity: .9; transform: scale(1.05); }
.project-body { padding: 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.project-employer {
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: .35rem; min-height: .9rem;
}
.emp-sfr { color: var(--blue); }
.emp-allied { color: var(--cyan); }
.emp-bouygues { color: #7c3aed; }
.project-body h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
.project-body p { font-size: .82rem; color: var(--sub); line-height: 1.55; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .7rem 0 .9rem; }
.project-detail-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: var(--surface2); border: 1px solid var(--border);
    border-radius: 7px; padding: .5rem .85rem; font-size: .8rem; font-weight: 600;
    color: var(--sub); cursor: pointer; transition: all .2s;
}
.project-detail-btn:hover { background: var(--blue-l); color: var(--blue); border-color: rgba(37,99,235,.2); }
.project-detail-btn i { font-size: .75rem; transition: transform .2s; }
.project-detail-btn.open i { transform: rotate(180deg); }
.project-details {
    display: none; margin-top: .75rem;
    background: var(--surface2); border-radius: 8px; border: 1px solid var(--border);
    overflow: hidden;
}
.project-details.open { display: block; }

/* ── Tech specs layout ── */
.tech-specs { display: flex; flex-direction: column; }
.spec-row {
    display: flex; align-items: flex-start; gap: .6rem;
    padding: .65rem .9rem; border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-label {
    display: flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 700; color: var(--sub); text-transform: uppercase;
    letter-spacing: .06em; min-width: 105px; flex-shrink: 0; padding-top: 2px;
}
.spec-label i { color: var(--blue); width: 12px; text-align: center; }
.spec-val { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; flex: 1; }

/* editors — logo only */
.spec-editor {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .65rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: 5px; font-size: .78rem; font-weight: 600; color: var(--text);
}
.spec-editor img { height: 20px; max-width: 80px; object-fit: contain; }
.spec-editor span { white-space: nowrap; }

/* domain badges */
.domain-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .72rem; font-weight: 700; padding: .22rem .6rem; border-radius: 50px;
}
.dom-secu  { background: #fef2f2; color: #dc2626; }
.dom-sse   { background: #faf5ff; color: #7c3aed; }
.dom-sdwan { background: #eff6ff; color: #2563eb; }
.dom-lan   { background: #ecfeff; color: #0891b2; }
.dom-siem  { background: #fffbeb; color: #d97706; }
.dom-sys   { background: #f0fdf4; color: #059669; }

/* sub-domains */
.subdomain {
    font-size: .72rem; padding: .18rem .5rem; border-radius: 4px;
    background: var(--surface); border: 1px solid var(--border); color: var(--sub);
    white-space: nowrap;
}

/* hypervisor */
.spec-hyp { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--sub); }
.spec-hyp img { height: 16px; max-width: 52px; object-fit: contain; }

/* realisations list */
.spec-items { list-style: none; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.spec-items li { font-size: .8rem; color: var(--sub); display: flex; gap: .4rem; line-height: 1.45; }
.spec-items li::before { content: '→'; color: var(--blue); flex-shrink: 0; margin-top: 1px; }

/* ── PAGINATION ── */
#projects-pagination { margin-top: 2rem; }
.pagination-inner {
    display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap;
}
.page-arrow, .page-num {
    min-width: 36px; height: 36px; border-radius: 8px;
    border: 1.5px solid var(--border); background: var(--surface);
    color: var(--sub); font-size: .85rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .2s; font-family: 'Inter', sans-serif;
}
.page-arrow:hover:not(:disabled), .page-num:hover:not(.active) {
    border-color: var(--blue); color: var(--blue); background: var(--blue-l);
}
.page-num.active {
    background: var(--blue); border-color: var(--blue); color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.page-arrow:disabled { opacity: .35; cursor: default; }
.page-ellipsis {
    min-width: 28px; text-align: center; color: var(--muted); font-size: .85rem;
    line-height: 36px;
}

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
@media(max-width:768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; }
.contact-info p { font-size: .9rem; color: var(--sub); line-height: 1.75; margin-bottom: 1.75rem; }
.c-item { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.c-icon { width: 36px; height: 36px; background: var(--blue-l); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-icon i { color: var(--blue); font-size: .85rem; }
.c-text strong { font-size: .85rem; color: var(--text); display: block; }
.c-text span { font-size: .85rem; color: var(--sub); }
.social-row { display: flex; gap: .6rem; margin-top: 1.6rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--sub); margin-bottom: .35rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: .65rem 1rem; background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-family: 'Inter', sans-serif;
    font-size: .9rem; transition: border-color .2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
    width: 100%; padding: .75rem; background: var(--blue); color: #fff;
    border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
    cursor: pointer; transition: background .2s; font-family: 'Inter', sans-serif;
}
.btn-submit:hover { background: var(--blue-d); }

/* ── FOOTER ── */
footer {
    background: var(--text); color: rgba(255,255,255,.5);
    padding: 1.75rem 0; font-size: .82rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
footer a { color: rgba(255,255,255,.5); transition: color .2s; }
footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 1.25rem; }
