/* ===========================
   Thème global (variables)
   =========================== */
:root {
    --bg: #05060a;
    --bg-alt: #080b12;
    --panel: #10141f;
    --panel-soft: #111827;
    --border: #262a33;
    --accent: #4fc1ff;
    --accent-soft: rgba(79, 193, 255, 0.16);
    --accent-strong: #43d08a;
    --text: #e6edf3;
    --muted: #8b949e;
    --danger: #ff6b81;

    --radius: 6px;
    --shadow-soft: 0 0 0 1px #000, 0 18px 40px rgba(0, 0, 0, 0.55);

    --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ===========================
   Reset / base
   =========================== */

html,
body,
.Wt-root {
    margin: 0;
    padding: 0;
    height: 100%;
    background: radial-gradient(circle at top, #101420 0, #05060a 55%, #020308 100%);
    color: var(--text);
    font-family: var(--font-ui);
}

/* Pour que Wt occupe toute la hauteur */
.Wt-root {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

/* ===========================
   Conteneur principal
   =========================== */

.app-root {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* ===========================
   Titre / header
   =========================== */

.app-root h1 {
    font-size: 2.4rem;
    margin: 0 0 0.25rem;
    text-align: left;
    font-family: var(--font-mono);
    color: var(--accent);
    text-shadow: 0 0 12px rgba(79, 193, 255, 0.6);
}

/* Curseur qui clignote type terminal */
.app-root h1::after {
    content: "_";
    margin-left: 0.2rem;
    color: var(--accent-strong);
    animation: blink-cursor 1s steps(2, start) infinite;
}

@keyframes blink-cursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.app-root > p {
    margin: 0 0 0.75rem;
    color: var(--muted);
}

/* ===========================
   Navigation
   =========================== */

nav {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, var(--panel), var(--panel-soft));
    box-shadow: var(--shadow-soft);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

nav a {
    color: var(--accent);
    text-decoration: none;
    position: relative;
}

nav a::before {
    content: "# ";
    color: var(--muted);
}

nav a:hover {
    text-decoration: underline;
}

/* ===========================
   Sections type "fenêtre"
   =========================== */

section {
    position: relative;
    padding: 1.6rem 1.8rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: radial-gradient(circle at top left, #161b2a 0, #090d16 50%, #05060a 100%);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

/* Titres de section */
section h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    color: var(--accent-strong);
}

/* Texte standard */
section p {
    margin-top: 0;
    margin-bottom: 0.6rem;
    line-height: 1.6;
    color: var(--text);
}

/* Sous-titre "mute" éventuel */
.subtitle {
    margin-top: 0.4rem;
    color: var(--muted);
}

/* ===========================
   Listes de projets
   =========================== */

/* conteneur global des projets (div.projects-section) */
.projects-section {
    position: relative;
    margin-top: 1.75rem;
    margin-bottom: 1.75rem; /* même écart avec Contact qu’avec About */
    padding: 1.6rem 1.8rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: radial-gradient(circle at top left, #161b2a 0, #090d16 50%, #05060a 100%);
    box-shadow: var(--shadow-soft);
}

/* titre Projects (sans "$") */
.projects-section h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    color: var(--accent-strong);
}

/* conteneur de la liste (div.projects-list) */
.projects-list {
    margin: 0.4rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* chaque projet = ancre cliquable qui ressemble à une carte */
.project-item {
    position: relative;
    display: block;              /* toute la carte est cliquable */
    border-radius: var(--radius);
    border: 1px solid rgba(38, 42, 51, 0.9);
    background: rgba(5, 8, 15, 0.85);
    padding: 0.7rem 0.9rem 0.65rem 1.3rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease,
        box-shadow 0.15s ease,
        color 0.15s ease;
}

/* petit chevron à gauche */
.project-item::before {
    content: "▶";
    position: absolute;
    left: 0.55rem;
    top: 0.85rem;
    font-size: 0.7rem;
    color: var(--accent);
}

/* titre dans la carte */
.project-title {
    font-weight: 600;
}

/* description courte */
.project-short {
    opacity: 0.9;
}

/* hover sur la carte entière */
.project-item:hover {
    background: rgba(10, 16, 30, 0.95);
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 1px rgba(79, 193, 255, 0.2);
    transform: translateY(-1px);
    color: var(--accent);
}

/* ===========================
   Lien GitHub / contact
   =========================== */

.project-github-link,
section#contact a[href^="https://github.com"],
a[href^="https://github.com/ajumeaux"] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.3rem;
    padding: 0.28rem 0.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--accent-soft);
    background: rgba(10, 18, 30, 0.9);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease,
        box-shadow 0.15s ease,
        color 0.15s ease;
}

/* pas de "$" devant le lien GitHub */
.project-github-link::before,
section#contact a[href^="https://github.com"]::before {
    content: "";
}

.project-github-link:hover,
section#contact a[href^="https://github.com"]:hover {
    background: rgba(16, 26, 44, 1);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(79, 193, 255, 0.35);
    transform: translateY(-1px);
}

/* ===========================
   Petits détails responsives
   =========================== */

@media (max-width: 640px) {
    .app-root {
        padding: 2rem 1rem 3rem;
    }

    section {
        padding: 1.4rem 1.3rem 1.4rem;
    }

    .projects-section {
        padding: 1.4rem 1.3rem 1.4rem;
    }

    .app-root h1 {
        font-size: 1.9rem;
    }
}
