/* ---------------------------------------------------------
   Fonts & Root Styles
   - Urbanist: Google Fonts
   - Behance: Custom font
--------------------------------------------------------- */

@font-face {
    font-family: "Behance";
    src: url("/assets/fonts/behance.woff2") format("woff2");
    font-display: swap;
}

:root {
    --navy: #000827;
    --blue: #004D92;
    --orange: #E25B21;
    --pink: #F5ADA8;
    --cream: #F8F5EF;
    --yellow: #FCBC00;
    --teal: #006669;
    --text: var(--navy);
    --bg: var(--cream);
    --radius-lg: 42px;
    --radius-md: 18px;
    --shadow: 0 12px 30px rgba(0, 0, 0, .08);
    --container: 1140px;
    --font-body: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-head: "Behance", "Urbanist", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.45;
}

a {
    color: inherit;
    text-underline-offset: 3px;
}

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

/* ---------------------------------------------------------
   CTA bandeau (partagé apropos + projets)
--------------------------------------------------------- */
.cta-banner {
    position: relative;
    height: clamp(240px, 28vw, 420px);
    overflow: hidden;
    background: #ddd;
}

.cta-media {
    position: absolute;
    inset: 0;
}

.cta-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .2);
}

.cta-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    place-items: center;
}

.cta-btn {
    padding: 18px 34px;
    min-width: min(520px, calc(100% - 48px));
    font-weight: 800;
}

.font-bold {
    font-weight: 700;
}

.font-italic {
    font-style: italic;
}

.ul {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.hl {
    background-color: rgba(255, 192, 0, 0.4);
    padding: 2px 4px;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: #fff;
    border: 2px solid var(--navy);
    padding: 10px 12px;
    border-radius: 10px;
}

.skip-link:focus {
    left: 12px;
    z-index: 9999;
}

/* ---------------------------------------------------------
   Type
--------------------------------------------------------- */
.h1,
.h2,
.h3 {
    font-family: var(--font-head);
    letter-spacing: 2px;
}

.h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: .25rem !important;
}

.h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: .15rem !important;
}

.h2--center {
    text-align: center;
}

.h2--orange {
    color: var(--orange);
}

.h3 {
    margin: 0 0 10px;
    font-size: 22px;
    text-transform: uppercase;
}

.kicker {
    margin: 0 0 14px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: lowercase;
    color: color-mix(in srgb, var(--navy) 65%, #fff);
}

.lead {
    margin: 14px 0 0;
    font-size: 16px;
    max-width: 60ch;
}

.text {
    margin: 10px 0 0;
}

.small {
    font-size: 14px;
    opacity: .9;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease, background .12s ease, border-color .12s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--small {
    padding: 10px 16px;
    font-size: 14px;
}

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

.btn--primary:hover {
    filter: brightness(1.03);
}

.btn--ghost {
    background: transparent;
    border-color: color-mix(in srgb, var(--navy) 22%, transparent);
}

.btn--ghost:hover {
    border-color: color-mix(in srgb, var(--navy) 40%, transparent);
}

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 245, 239, .78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
}

.header-inner {
    display: grid;
    grid-template-columns: 220px 1fr 180px;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 900;
}

.brand-name {
    font-family: var(--font-head);
    line-height: 1;
    text-transform: uppercase;
    font-size: 18px;
}

.brand-mark {
    position: relative;
    width: 34px;
    height: 34px;
}

.shape {
    position: absolute;
    display: block;
}

.shape--qtr {
    width: 20px;
    height: 20px;
    background: var(--yellow);
    border-top-left-radius: 999px;
    left: 0;
    top: 0;
}

.shape--sq {
    width: 14px;
    height: 14px;
    background: var(--orange);
    right: 0;
    bottom: 0;
    border-radius: 4px;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.nav-link {
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 600;
    opacity: .9;
}

.nav-link:hover {
    background: color-mix(in srgb, var(--navy) 6%, transparent);
}

.nav-link.is-active {
    background: color-mix(in srgb, var(--navy) 8%, transparent);
    opacity: 1;
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
    padding: 34px 0;
    border-top: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
}

.footer-brand {
    margin: 0;
    font-family: var(--font-head);
    text-transform: uppercase;
    line-height: 1.05;
    font-size: 18px;
}

.footer-brand span {
    font-family: var(--font-body);
    text-transform: none;
    font-weight: 600;
    font-size: 14px;
    opacity: .8;
}

.footer-note {
    margin: 10px 0 0;
    opacity: 0;
}

.footer-title {
    margin: 0 0 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-links {
    margin: 0;
}

.sep {
    opacity: .5;
    padding: 0 8px;
}

.footer-hidden {
    display: none;
}

/* ---------------------------------------------------------
   Placeholders
--------------------------------------------------------- */
.ph {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed rgba(0, 0, 0, .18);
    color: rgba(0, 0, 0, .55);
    font-weight: 800;
    letter-spacing: .04em;
    background: rgba(255, 255, 255, .35);
}

.ph span {
    padding: 10px;
}

.ph--cover {
    position: absolute;
    inset: 0;
    border: none;
    background: linear-gradient(135deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .02));
    color: rgba(0, 0, 0, .55);
}

.ph--icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
}

.ph--avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
}

.ph--frame {
    width: 100%;
    height: 100%;
}

.ph--project {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
}

/* ---------------------------------------------------------
   Form base (inputs used on contact & registration pages)
--------------------------------------------------------- */
input,
textarea {
    width: 100%;
    border: 2px solid color-mix(in srgb, var(--navy) 22%, transparent);
    border-radius: 999px;
    background: transparent;
    padding: 12px 14px;
    font: inherit;
    outline: none;
}

textarea {
    border-radius: 22px;
    resize: vertical;
    min-height: 120px;
}

input:focus,
textarea:focus {
    border-color: color-mix(in srgb, var(--navy) 45%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 35%, transparent);
}

/* ---------------------------------------------------------
   Utilities
--------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.link {
    color: var(--orange, #E25B21);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 0;
    }

    .nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 405px) {
    .nav {
        flex-wrap: nowrap;
        gap: 2px;
        justify-content: center;
    }

    .nav-link {
        padding: 6px 6px;
        font-size: 15px;
    }
}
