:root {
    --bg: #eef2f1;
    --bg-alt: #e3e9e7;
    --surface: #ffffff;
    --text: #18211d;
    --muted: #54605a;
    --border: #cdd7d2;
    --primary: #1e7a63;
    --primary-strong: #165b4a;
    --accent: #9a4d2f;
    --hero: #1b2420;
    --hero-soft: #24302b;
    --shadow: 0 16px 32px rgba(24, 33, 29, 0.08);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(rgba(205, 215, 210, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(205, 215, 210, 0.35) 1px, transparent 1px),
        linear-gradient(180deg, #f5f8f7 0%, var(--bg) 100%);
    background-size: 28px 28px, 28px 28px, auto;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
}

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

h1,
h2,
h3,
h4,
p,
ul {
    margin-top: 0;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    padding: 72px 0 56px;
    color: #f4f7f6;
    background:
        linear-gradient(135deg, rgba(154, 77, 47, 0.12), transparent 45%),
        linear-gradient(180deg, var(--hero) 0%, var(--hero-soft) 100%);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
    gap: 32px;
    align-items: end;
}

.hero-tag,
.section-kicker {
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-tag {
    color: #8fd2bc;
}

.hero h1 {
    margin-bottom: 10px;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 1.02;
}

.hero-subtitle {
    margin-bottom: 18px;
    color: #d9e4df;
    font-size: 1.2rem;
    font-weight: 600;
}

.hero-text {
    max-width: 680px;
    margin-bottom: 0;
    color: #cbd6d0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-techs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tech-chip {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 16px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    min-height: 110px;
}

.tech-chip-link {
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tech-chip-link:hover,
.tech-chip-link:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.26);
    transform: translateY(-2px);
}

.tech-chip img {
    width: 38px;
    height: 38px;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(245, 248, 247, 0.96);
    backdrop-filter: blur(8px);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    padding: 14px 0;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--primary-strong);
}

.section {
    padding: 64px 0;
    scroll-margin-top: 72px;
}

.section-alt {
    background: linear-gradient(180deg, rgba(227, 233, 231, 0.65) 0%, rgba(227, 233, 231, 0.28) 100%);
}

.section-header {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-kicker {
    color: var(--primary);
}

.section-header h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.08;
}

.section-header p,
.text-panel p,
.desc,
.project-content p,
.project-template p,
.project-template ul,
.contact-list,
.form-note {
    color: var(--muted);
}

.panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.text-panel,
.project-template,
.form-panel {
    padding: 28px;
}

.skills-grid,
.projects-grid,
.veille-grid {
    display: grid;
    gap: 20px;
}

.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skill-card {
    padding: 22px;
}

.skill-card img {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
}

.skill-card h3 {
    margin-bottom: 6px;
    font-size: 1.08rem;
}

.level {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.94rem;
    font-weight: 700;
}

.desc {
    margin-bottom: 0;
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.veille-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.veille-stack {
    display: grid;
    gap: 20px;
}

.project-card {
    overflow: hidden;
}

.project-visual {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(30, 122, 99, 0.12), rgba(154, 77, 47, 0.18)),
        linear-gradient(180deg, #eff5f2 0%, #dde6e2 100%);
}

.project-visual img {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.project-tags {
    margin-bottom: 14px;
    color: var(--primary);
    font-weight: 700;
}

.project-template h3,
.text-panel h3,
.form-panel h3,
.pdf-copy h3,
.veille-card h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.veille-card {
    padding: 24px;
}

.problematic {
    color: var(--text);
    font-size: 1.12rem;
    font-weight: 700;
}

.veille-list {
    padding-left: 18px;
    margin-bottom: 0;
    color: var(--muted);
}

.veille-note {
    margin-top: 14px;
    margin-bottom: 0;
    color: var(--accent);
    font-weight: 600;
}

.veille-plan {
    padding-left: 18px;
    margin-bottom: 0;
    color: var(--muted);
}

.veille-plan li + li {
    margin-top: 10px;
}

.project-template h4 {
    margin: 20px 0 8px;
    color: var(--text);
    font-size: 1rem;
}

.project-template ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.stacked-panels {
    display: grid;
    gap: 20px;
}

.pdf-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.pdf-copy p {
    color: var(--muted);
}

.pdf-actions {
    margin-bottom: 0;
}

.pdf-panel object {
    width: 100%;
    height: 620px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: start;
}

.contact-list {
    padding-left: 18px;
    margin-bottom: 0;
}

.contact-list li + li {
    margin-top: 8px;
}

.contact-list a {
    color: var(--primary-strong);
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-list a:hover,
.contact-list a:focus {
    text-decoration: underline;
}

.form-panel form {
    display: grid;
    gap: 10px;
}

.form-panel label {
    font-weight: 600;
}

.form-panel input,
.form-panel textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcfc;
    color: var(--text);
    font: inherit;
}

.form-panel input:focus,
.form-panel textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 122, 99, 0.14);
}

.form-note {
    min-height: 1.4em;
    margin-bottom: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus {
    background: var(--primary-strong);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--primary);
    background: transparent;
    color: var(--primary-strong);
}

.btn-outline:hover,
.btn-outline:focus {
    background: rgba(30, 122, 99, 0.08);
    color: var(--primary-strong);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.24);
    background: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.08);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #f5f8f7;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 22px 0 30px;
    color: var(--muted);
}

.footer-content p {
    margin-bottom: 0;
}

.footer-content a {
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 920px) {
    .hero-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 56px;
    }

    .pdf-panel object {
        height: 520px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(1100px, calc(100% - 24px));
    }

    .nav-links,
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .skills-grid,
    .projects-grid,
    .veille-grid,
    .hero-techs {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 52px 0;
    }

    .text-panel,
    .project-template,
    .form-panel,
    .pdf-panel,
    .project-content,
    .skill-card {
        padding: 20px;
    }

    .project-visual {
        padding: 20px;
    }

    .pdf-panel object {
        height: 380px;
    }
}
