/* ============================================================
   style.css — Portfolio Gyrel Momo Metchop
   Aesthetic : Terminal / Cybersecurity — Dark, précis, typé
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #0a0c10;
    --bg-2:        #0f1117;
    --bg-card:     #141820;
    --bg-card-h:   #1a2030;
    --border:      #1e2535;
    --border-h:    #2d3a52;

    --text:        #d4dbe8;
    --text-muted:  #6b7a99;
    --text-dim:    #3d4a65;

    --accent:      #00e5ff;
    --accent-dim:  rgba(0, 229, 255, 0.12);
    --accent-2:    #7c3aed;
    --green:       #22d3a0;
    --red:         #f43f5e;

    --font-mono:   'Space Mono', 'Courier New', monospace;
    --font-sans:   'DM Sans', -apple-system, sans-serif;

    --radius:      6px;
    --radius-lg:   12px;

    --max-w:       1100px;
    --nav-h:       64px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

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

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 3px; }

/* ── Layout helpers ──────────────────────────────────────── */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: .8;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -.02em;
}

/* ── NAV ──────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(10,12,16,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
}
.nav__logo-bracket { color: var(--accent); }

.nav__links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav__link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: .02em;
    transition: color .2s;
    position: relative;
}
.nav__link:hover,
.nav__link--active { color: var(--text); opacity: 1; }
.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav__burger { display: none; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: calc(var(--nav-h) + 4rem) 1.5rem 4rem;
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--green);
    border: 1px solid var(--green);
    padding: .25rem .75rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: .03em;
    opacity: .9;
}

.tag-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.75); }
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
    margin-bottom: .5rem;
}
.hero__title-line { display: block; }
.hero__title-line--accent { color: var(--accent); }

.hero__subtitle {
    font-family: var(--font-mono);
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: .05em;
}

.hero__desc {
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2.5rem;
    font-size: .95rem;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Terminal widget ──────────────────────────────────────── */
.terminal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,229,255,.06), 0 20px 60px rgba(0,0,0,.4);
}

.terminal__bar {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: .5rem;
    align-items: center;
}

.terminal__dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.terminal__dot--red    { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green  { background: #28c840; }

.terminal__code {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: .8rem;
    line-height: 2;
    color: var(--text);
    overflow-x: auto;
}

.t-comment { color: var(--text-dim); }
.t-prompt  { color: var(--accent); }
.t-cmd     { color: var(--text); }
.t-green   { color: var(--green); }

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    font-size: .875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    font-family: var(--font-sans);
    letter-spacing: .01em;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.btn--primary:hover {
    background: transparent;
    color: var(--accent);
    opacity: 1;
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-h);
}
.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
}

.btn--full { width: 100%; justify-content: center; }
.btn--lg { padding: .85rem 2rem; font-size: 1rem; }

/* ── ABOUT ────────────────────────────────────────────────── */
.about { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about__text p { color: var(--text-muted); margin-bottom: 1rem; }
.about__text strong { color: var(--text); }

.about__cards { display: flex; flex-direction: column; gap: 1rem; }
.about__card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}
.about__card-icon { font-size: 1.25rem; flex-shrink: 0; }
.about__card strong { display: block; font-size: .875rem; color: var(--text); }
.about__card span   { font-size: .8rem; color: var(--text-muted); }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: border-color .2s, background .2s;
}
.skill-card:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}
.skill-card__name   { font-weight: 700; font-size: .875rem; color: var(--accent); margin-bottom: .25rem; }
.skill-card__detail { font-size: .78rem; color: var(--text-muted); }

/* ── TIMELINE ─────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline__item {
    padding-left: 2rem;
    padding-bottom: 2.5rem;
    position: relative;
}
.timeline__item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: .35rem;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: 0 0 12px var(--accent);
}

.timeline__meta {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-bottom: .75rem;
}
.timeline__date { font-family: var(--font-mono); font-size: .75rem; color: var(--accent); opacity: .8; }
.timeline__company { font-size: .825rem; color: var(--text-muted); }

.timeline__role { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.timeline__role em { font-style: normal; color: var(--text-muted); font-weight: 400; font-size: .875rem; }

.timeline__list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.timeline__list li {
    font-size: .875rem;
    color: var(--text-muted);
    padding-left: 1.2rem;
    position: relative;
}
.timeline__list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: .7rem;
    top: .1rem;
}
.timeline__list strong { color: var(--text); }

/* ── PROJECTS ─────────────────────────────────────────────── */
.projects { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,229,255,.1);
}

.project-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.project-card__icon { font-size: 1.5rem; }
.project-card__tags { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }

.badge {
    font-family: var(--font-mono);
    font-size: .65rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 100px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(0,229,255,.2);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.project-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--text);
}
.project-card__desc {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.project-card__points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.project-card__points li {
    font-size: .8rem;
    color: var(--text-muted);
    padding-left: 1rem;
    position: relative;
}
.project-card__points li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section { text-align: center; }
.cta-section__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.cta-section__title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; }
.cta-section__text { color: var(--text-muted); font-size: 1rem; }
.cta-section__text strong { color: var(--text); }

/* ── CONTACT PAGE ─────────────────────────────────────────── */
.contact-section { padding-top: var(--nav-h); }

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact__intro { color: var(--text-muted); margin-bottom: 2rem; }

.contact__details { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact__detail { display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--text-muted); }
.contact__detail-icon { font-size: 1rem; flex-shrink: 0; color: var(--accent); }
.contact__detail a { color: var(--text-muted); }
.contact__detail a:hover { color: var(--accent); opacity: 1; }

.contact__availability {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--green);
    border: 1px solid var(--green);
    padding: .3rem .8rem;
    border-radius: 100px;
    font-family: var(--font-mono);
}

/* ── FORMULAIRE ───────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-label {
    font-size: .825rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .03em;
    text-transform: uppercase;
}
.req { color: var(--accent); }

.form-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: .95rem;
    padding: .75rem 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder { color: var(--text-dim); }

.form-textarea { resize: vertical; min-height: 130px; }

/* Honeypot — caché des humains, visible seulement aux bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* ── Alertes flash ────────────────────────────────────────── */
.alert {
    padding: .875rem 1.25rem;
    border-radius: var(--radius);
    font-size: .9rem;
    border: 1px solid transparent;
}
.alert--success {
    background: rgba(34,211,160,.1);
    border-color: rgba(34,211,160,.3);
    color: var(--green);
}
.alert--error {
    background: rgba(244,63,94,.1);
    border-color: rgba(244,63,94,.3);
    color: var(--red);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
}
.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer__copy { font-size: .825rem; color: var(--text-dim); }
.footer__social-link { font-size: .825rem; color: var(--text-muted); }
.footer__social-link:hover { color: var(--accent); opacity: 1; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: calc(var(--nav-h) + 2rem);
    }
    .hero__visual { display: none; }

    .about__grid { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; gap: 2rem; }

    .nav__links {
        display: none;
        position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        background: var(--bg-2);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .nav__links.is-open { display: flex; }
    .nav__burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: .5rem;
    }
    .nav__burger span {
        display: block;
        width: 22px; height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: all .25s;
    }
}

/* ── Animations d'entrée ──────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__tag      { animation: fadeUp .5s ease both; }
.hero__title    { animation: fadeUp .5s .1s ease both; }
.hero__subtitle { animation: fadeUp .5s .2s ease both; }
.hero__desc     { animation: fadeUp .5s .3s ease both; }
.hero__cta      { animation: fadeUp .5s .4s ease both; }
.hero__visual   { animation: fadeUp .6s .2s ease both; }
