:root {
    --fg: #0f172a;
    --muted: #6b7280;
    --accent: #f87171; /* rouge plus doux */
    --accent-2: #0ea5a3;
    --accent-contrast: #6366f1; /* violet pour contraste */
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial;
    color: var(--fg);
    background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1.25rem;
    width: 95%;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: .5em;
}

.muted {
    color: var(--muted);
}

section {
    margin-bottom: 2.5rem;
}

/* HERO gradient with diagonal cut */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    color: white;
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
}

.hero h1 {
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 800;
    margin: 0 0 .7rem;
}

.hero .lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    margin: 0 0 .8rem;
    opacity: .95;
}

.doggo {
    max-height: 220px;
    margin: 1rem 0 0;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25));
}

/* Buttons */
.btn {
    display: inline-block;
    padding: .7rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.btn.primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 12px 22px rgba(248, 113, 113, .18);
    transition: box-shadow .2s, transform .2s;
}

.btn.primary:hover {
    box-shadow: 0 18px 32px rgba(248, 113, 113, .28);
    transform: translateY(-2px) scale(1.04);
}

.btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--accent-contrast);
    background-color: var(--accent-contrast);
    transition: background .2s, color .2s;
}

.btn.secondary:hover {
    background: #fff;
    color: var(--accent-contrast);
    border-color: var(--accent-contrast);
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (max-width: 700px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
    border: 1px solid rgba(0, 0, 0, .04);
    transition: box-shadow .2s, transform .2s;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
    transform: translateY(-2px) scale(1.02);
}

.card .inner {
    padding: 1.5rem;
}

.card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    margin: 0.75rem 0 0.75rem 0;
    border-radius: 0.75rem;
}

.card h3 {
    margin: .6rem 0 .3rem;
}

.actions {
    display: flex;
    gap: .6rem;
    margin-top: .6rem;
    flex-wrap: wrap;
}

/* Contact Section */
.contact-block {
    background: #f3f4f6 url('/images/bg-image.jpg') center/cover no-repeat;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 18px rgba(99, 102, 241, .08);
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
}

.contact-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(243, 244, 246, 0.92);
    border-radius: 1rem;
    z-index: 0;
}

.contact-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.contact-logo img {
    height: 56px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .12);
    background: #fff;
    padding: .5rem;
}

.contact-lead, .contact-form, .contact-links {
    position: relative;
    z-index: 1;
}

.contact-lead {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--fg);
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.contact-form input,
.contact-form textarea {
    padding: .7rem 1rem;
    border-radius: .6rem;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    background: #fff;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent-contrast);
    border-color: var(--accent-contrast);
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--accent-contrast);
    font-weight: 500;
    text-decoration: none;
    transition: color .2s, box-shadow .2s;
    padding: .4rem 1rem;
    border-radius: .7rem;
    background: #f3f4f6;
    box-shadow: 0 2px 8px rgba(99,102,241,.08);
}

.contact-link:hover {
    color: var(--accent);
    background: #e0e7ff;
    box-shadow: 0 4px 16px rgba(99,102,241,.18);
}

.contact-link.github {
    background: #23272e;
    color: #fff;
    border: 1px solid #23272e;
}
.contact-link.github:hover {
    background: #333;
    color: #fff;
    box-shadow: 0 4px 16px rgba(36,41,46,.18);
}
.contact-link.linkedin {
    background: #0a66c2;
    color: #fff;
    border: 1px solid #0a66c2;
}
.contact-link.linkedin:hover {
    background: #004182;
    color: #fff;
    box-shadow: 0 4px 16px rgba(10,102,194,.18);
}

/* Header Logo Full */
.header-logo-full {
    width: 100vw;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.header-logo-full-bg {
    width: 100vw;
    min-height: 40vh;
    background: url('/images/bg-image.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem 2rem 1rem;
    position: relative;
}

.header-logo-full-img {
    height: 250px;
    width: auto;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 16px rgba(99, 102, 241, .16);
    padding: 1rem;
    margin-bottom: 1.2rem;
}

.header-logo-full-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: darkblue;
    letter-spacing: 1px;
    text-shadow: 0 4px 32px rgba(0, 0, 139, .32), 0 2px 12px rgba(0, 0, 0, .18);
    margin-top: 1.2rem;
    margin-bottom: 0;
}

.header-logo-full-subtitle {
    margin-top: 2rem;
    font-size: 2.2rem;
    color: black;
}

@media (max-width: 700px) {
    .header-logo-full, .header-logo-full-bg {
        min-height: 28vh;
        padding: 2rem .5rem 1.5rem .5rem;
    }

    .header-logo-full-img {
        height: 72px;
        padding: .6rem;
    }

    .header-logo-full-title {
        font-size: 1.3rem;
    }
}

/* Section à propos plus valorisée */
#about.section {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(99, 102, 241, .08);
    padding: 3rem 2rem;
    margin: 3rem auto 2.5rem auto;
    max-width: 800px;
}

#about.section h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--accent-contrast);
    margin-bottom: 1.2rem;
}

#about.section p {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--fg);
    margin-bottom: 0;
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.btn.primary.site-btn::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin-right: .5rem;
    background: url('/images/placeholder.svg') no-repeat center/contain;
}
.btn.secondary.code-btn::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin-right: .5rem;
    background: url('/images/github-mark.svg') no-repeat center/contain;
}

