/* ===== Design tokens ===== */
:root {
    --navy: #0c1a3a;
    --navy-dark: #081428;
    --blue: #1e4a8a;
    --blue-light: #2d6cb5;
    --blue-bright: #3b82f6;
    --bg: #f4f6fa;
    --bg-alt: #eef1f7;
    --surface: #ffffff;
    --border: #d8dee9;
    --text: #1a2332;
    --text-muted: #5a6578;
    --text-on-dark: #ffffff;
    --text-muted-on-dark: rgba(255, 255, 255, 0.78);
    --accent: #1e4a8a;
    --accent-hover: #163a6e;
    --success: #16a34a;
    --danger: #dc2626;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 8px 30px rgba(12, 26, 58, 0.1);
    --max-width: 1280px;
    --max-width-wide: 1400px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

@media (min-width: 1400px) {
    .container {
        max-width: var(--max-width-wide);
        padding: 0 48px;
    }
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    line-height: 1.25;
    margin: 0;
}

.section-title {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--navy);
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 10px;
    max-width: 56ch;
}

.section-head { margin-bottom: 48px; }
.section-head-center { text-align: center; }
.section-head-center .section-subtitle { margin-left: auto; margin-right: auto; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-cv {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.btn-cv:hover {
    background: #f0f4fa;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-block { width: 100%; }

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 12px rgba(12, 26, 58, 0.06);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
    color: var(--accent);
    background: #eef3fa;
}

.nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--navy);
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-label span::before { position: absolute; top: -6px; }
.nav-toggle-label span::after { position: absolute; top: 6px; }

@media (max-width: 760px) {
    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(12, 26, 58, 0.08);
        padding: 8px 24px 18px;
        display: none;
    }

    .nav-links a { padding: 12px 8px; }
    .nav-toggle-label { display: flex; }
    .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(45, 108, 181, 0.45) 0%, transparent 70%),
        linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 45%, var(--blue) 100%);
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0 96px;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-inline: auto;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-on-dark);
    max-width: 22ch;
    margin-inline: auto;
    text-wrap: balance;
}

.hero-tagline {
    margin-top: 18px;
    color: var(--text-muted-on-dark);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    margin-inline: auto;
    text-wrap: balance;
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-actions .btn-cv {
    min-width: 220px;
    padding: 14px 36px;
    line-height: 1;
    text-align: center;
}

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.75);
    animation: hero-scroll-pulse 2s ease-in-out infinite;
    transition: color 0.2s ease;
}

.hero-scroll-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.hero-scroll:hover {
    color: #fff;
}

.hero-scroll svg {
    width: 28px;
    height: 28px;
    display: block;
}

@keyframes hero-scroll-pulse {
    0%, 100% {
        opacity: 0.45;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll {
        animation: none;
        opacity: 0.75;
    }
}

/* Section scroll hints */
.section-has-scroll {
    position: relative;
    padding-bottom: 72px;
}

.section-scroll {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    z-index: 5;
    animation: section-scroll-pulse 2s ease-in-out infinite;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero-scroll.is-hidden,
.section-scroll.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none;
}

.section-scroll:hover {
    color: var(--navy);
}

.section-scroll-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.section-scroll svg {
    width: 24px;
    height: 24px;
    display: block;
}

@keyframes section-scroll-pulse {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-scroll {
        animation: none;
        opacity: 0.75;
    }
}

/* ===== Animations ===== */
.hero-animate {
    opacity: 0;
    animation: hero-enter 0.75s ease forwards;
}

.hero-animate--1 { animation-delay: 0.1s; }
.hero-animate--2 { animation-delay: 0.25s; }
.hero-animate--3 { animation-delay: 0.4s; }
.hero-scroll.hero-animate {
    animation:
        hero-scroll-enter 0.75s ease 0.7s forwards,
        hero-scroll-pulse 2s ease-in-out 0.7s infinite;
}

@keyframes hero-scroll-enter {
    from { opacity: 0; }
    to { opacity: 0.75; }
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-animate {
        opacity: 1;
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Sections ===== */
.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-contact {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.section-about {
    background: var(--bg);
}

/* About */
.about-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

@media (min-width: 1400px) {
    .about-card { grid-template-columns: 380px 1fr; }
    .about-photo { max-width: 280px; }
    .about-content { padding: 48px 56px; }
}

@media (max-width: 860px) {
    .about-card { grid-template-columns: 1fr; }
}

.about-photo-wrap {
    background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 100%);
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-photo {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-photo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.about-identity {
    margin-top: 24px;
    color: var(--text-on-dark);
}

.about-name {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.about-role {
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted-on-dark);
    line-height: 1.5;
}

.about-content {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 600px) {
    .about-content { padding: 28px 24px; }
    .about-photo-wrap { padding: 28px 24px 24px; }
}

.about-content .section-title {
    margin-top: 4px;
}

.about-text {
    color: var(--text-muted);
    white-space: pre-line;
    font-size: 1.02rem;
    line-height: 1.8;
    margin: 20px 0 0;
    max-width: 58ch;
}

.about-details {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-details li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.94rem;
    color: var(--navy);
    font-weight: 500;
}

.about-details svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    flex-shrink: 0;
}

.about-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Timeline / Parcours */
.timeline {
    --timeline-date-width: 190px;
    --timeline-axis-width: 44px;
    --timeline-gap: 28px;
    position: relative;
    padding: 8px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: calc(var(--timeline-date-width) + var(--timeline-gap) + (var(--timeline-axis-width) / 2) - 1px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, #c5d0e3 60%, transparent 100%);
}

.timeline-item {
    display: grid;
    grid-template-columns: var(--timeline-date-width) var(--timeline-axis-width) 1fr;
    gap: var(--timeline-gap);
    align-items: start;
    position: relative;
    padding-bottom: 28px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-date {
    text-align: right;
    padding-top: 6px;
}

.timeline-period {
    display: inline-block;
    background: var(--navy);
    color: var(--text-on-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    line-height: 1.4;
    text-align: center;
}

.timeline-axis {
    display: flex;
    justify-content: center;
    padding-top: 4px;
    position: relative;
    z-index: 1;
}

.timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-on-dark);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px var(--bg-alt);
}

.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 32px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.timeline-card:hover {
    border-color: #b8c4d8;
    box-shadow: 0 14px 40px rgba(12, 26, 58, 0.12);
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    line-height: 1.35;
}

.timeline-org {
    margin: 8px 0 0;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 600;
}

.timeline-desc {
    margin: 14px 0 0;
    color: var(--text-muted);
    white-space: pre-line;
    font-size: 0.95rem;
    line-height: 1.75;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

@media (min-width: 1400px) {
    .timeline {
        --timeline-date-width: 220px;
        --timeline-gap: 36px;
    }
}

@media (max-width: 760px) {
    .timeline {
        --timeline-date-width: 0px;
        --timeline-axis-width: 36px;
        --timeline-gap: 16px;
    }

    .timeline::before {
        left: 17px;
    }

    .timeline-item {
        grid-template-columns: var(--timeline-axis-width) 1fr;
        gap: 0 var(--timeline-gap);
    }

    .timeline-date {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        padding-top: 0;
        margin-bottom: 10px;
    }

    .timeline-axis {
        grid-column: 1;
        grid-row: 1 / 3;
        padding-top: 6px;
        justify-content: flex-start;
    }

    .timeline-card {
        grid-column: 2;
        grid-row: 2;
        padding: 20px 22px;
    }

    .timeline-period {
        background: #e8eef7;
        color: var(--accent);
        font-size: 0.74rem;
        padding: 5px 10px;
    }

    .timeline-dot {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
        box-shadow: 0 0 0 4px var(--bg-alt);
    }
}

/* Cards / grid */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 1400px) {
    .grid { gap: 32px; }
}

@media (max-width: 980px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #b8c4d8;
    box-shadow: 0 14px 40px rgba(12, 26, 58, 0.12);
}

.card-media {
    aspect-ratio: 16/10;
    background: var(--bg-alt);
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-client {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    flex: 1;
}

.card-link {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-link:hover { text-decoration: underline; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
    background: #e8eef7;
    color: var(--accent);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 600;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.skill-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 28px 30px 30px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.skill-block:hover {
    border-color: #b8c4d8;
    border-left-color: var(--blue-light);
    box-shadow: 0 14px 40px rgba(12, 26, 58, 0.12);
    transform: translateY(-2px);
}

.skill-block-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid #e8eef7;
}

.skill-block-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: #e8eef7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-block-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.skill-block-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
}

.skill-block-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

.skill-block-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.4;
}

.skill-block-list li svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    flex-shrink: 0;
}

@media (min-width: 1400px) {
    .skills-grid {
        gap: 32px;
    }

    .skill-block {
        padding: 32px 34px 34px;
    }
}

@media (max-width: 760px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-block-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Gallery */
.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    aspect-ratio: 1/1;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(8, 20, 40, 0.85), transparent);
    color: #fff;
    font-size: 0.82rem;
    padding: 28px 14px 12px;
    font-weight: 500;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-card,
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.contact-card-title,
.form-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e8eef7;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.contact-info-item:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: #e8eef7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
}

.contact-info-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.contact-info-value {
    font-weight: 600;
    color: var(--navy);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.social-links a:hover {
    border-color: var(--accent);
    background: #e8eef7;
}

.social-links svg { width: 17px; height: 17px; }

.form-row { margin-bottom: 18px; }
.form-row:last-of-type { margin-bottom: 0; }

.form-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.94rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 74, 138, 0.12);
}

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

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: #ecfdf3;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Footer */
.footer {
    padding: 36px 0;
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.65);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.86rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.65);
}

.footer a:hover { color: #fff; }

/* Auth / login page */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
}

.auth-title {
    text-align: center;
    margin-bottom: 6px;
    font-size: 1.25rem;
    color: var(--navy);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.auth-back {
    text-align: center;
    margin-top: 20px;
    font-size: 0.86rem;
    color: var(--text-muted);
}
