/* ========================
   Base & variables
   ======================== */
:root {
    --bg-main: #020617;
    --bg-alt: #050816;
    --bg-card: #0b1120;
    --border-soft: rgba(148, 163, 184, 0.35);

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;

    --accent: #38bdf8;      /* bleu cyan */
    --accent-soft: rgba(56, 189, 248, 0.15);
    --accent-strong: #f97316; /* orange */

    --radius-lg: 1.25rem;
    --radius-md: 0.9rem;

    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.92);

    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-title: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Si tu veux remettre Varino & Letters, tu peux décommenter et mettre les bons chemins
@font-face {
    font-family: "varino";
    src: url("../typo/Varino - Normal.ttf") format("truetype");
    font-weight: 700;
}
@font-face {
    font-family: "letters";
    src: url("../typo/Letters for Learners.ttf") format("truetype");
}
:root {
    --font-body: "letters", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-title: "varino", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*/

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* Images & liens */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Containers & sections */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4.5rem 0;
}

.section--alt {
    background: radial-gradient(circle at top, #020617 0, #020617 45%, #000 100%);
}

.section-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-muted);
}

/* ========================
   Navigation
   ======================== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-strong));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0b1120;
    box-shadow: 0 0 0 2px #020617, 0 12px 30px rgba(0, 0, 0, 0.9);
}

.nav-logo-text {
    font-family: var(--font-title);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #e5e7eb;
}

.nav-menu {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    font-size: 0.85rem;
}

.nav-menu a {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.2rem;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.15rem;
    width: 60%;
    height: 2px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--accent-strong), var(--accent));
    transition: transform 0.2s ease;
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    width: 40px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    padding: 0;
    cursor: pointer;
}

.nav-toggle-bar {
    height: 2px;
    width: 60%;
    align-self: center;
    border-radius: 999px;
    background: #e5e7eb;
}

/* ========================
   HERO
   ======================== */
.hero {
    padding-top: 4.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: center;
}

.hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-typewriter {
    margin-bottom: 1.5rem;
}

.typewriter {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.85);
    font-size: 0.95rem;
}

.typewriter__cursor {
    margin-left: 0.3rem;
    font-weight: 700;
    animation: cursor-blink 0.9s infinite;
}

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

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    color: #0b1120;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.95);
}

.btn-ghost {
    border-color: rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

.btn-ghost:hover {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 1);
}

.btn-download {
    border-color: rgba(56, 189, 248, 0.75);
    background: rgba(56, 189, 248, 0.12);
    color: #e5e7eb;
}

.btn-download:hover {
    border-color: var(--accent-strong);
    background: rgba(249, 115, 22, 0.14);
}

.hero-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo-inner {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-strong));
    padding: 4px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.95);
}

.hero-photo-inner img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /* on vise encore plus le haut de la photo */
    object-position: 50% 30%;
    border: 4px solid #020617;
}

.hero-badge {
    position: absolute;
    bottom: -10px;
    right: 0;
    background: rgba(15, 23, 42, 0.96);
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.8);
    padding: 0.5rem 0.9rem;
    box-shadow: var(--shadow-soft);
    font-size: 0.8rem;
}

.hero-badge-title {
    display: block;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
}

.hero-badge-text {
    color: var(--text-muted);
}

/* ========================
   ABOUT
   ======================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

.about-block {
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}

.about-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.about-list {
    list-style: none;
    margin-top: 0.4rem;
}

.about-list li {
    margin-bottom: 0.4rem;
}

.about-list li span {
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================
   TIMELINE
   ======================== */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.1), rgba(56, 189, 248, 0.7));
}

.timeline-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    column-gap: 1.75rem;
    align-items: center;
}

.timeline-col {
    min-height: 100%;
}

.timeline-col--left {
    text-align: right;
}

.timeline-col--right {
    text-align: left;
}

.timeline-center {
    display: flex;
    justify-content: center;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    background: #020617;
    box-shadow: 0 0 0 4px #020617;
}

/* cartes timeline */
.timeline-card {
    display: inline-block;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.96);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.timeline-col--left .timeline-card {
    text-align: left;
}

.timeline-card-header {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 0.6rem;
}

.timeline-logo {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    object-fit: contain;
    padding: 4px;
    background: #ffffff;
    border: 1px solid rgba(30, 64, 175, 0.8);
}

.timeline-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.15rem;
}

.timeline-tag--experience {
    color: #22c55e;
}

.timeline-tag--formation {
    color: var(--accent-strong);
}

.timeline-title {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.timeline-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-top: 0.4rem;
}

/* ========================
   SKILLS
   ======================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.skill-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}

.skill-card h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

/* ========================
   CONTACT
   ======================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.contact-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-soft);
}

.contact-card h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.contact-list {
    list-style: none;
    font-size: 0.95rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    background: #020617;
    padding: 1.2rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 30;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: rgba(229, 231, 235, 0.78);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.scroll-top:hover,
.scroll-top:focus-visible {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    outline: none;
}

.scroll-top--visible {
    opacity: 0.82;
    visibility: visible;
    transform: translateY(0);
}
