/* ==========================================================================
   gaudinjonathan.fr : feuille de style principale
   ========================================================================== */

/* Polices auto-hébergées (aucun appel à Google Fonts : RGPD + CSP stricte) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400-poxsSdI.woff2") format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500-Uwgfwtt.woff2") format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600-keCwlca.woff2") format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-500-vzQeC3q.woff2") format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/space-grotesk-600-958umbo.woff2") format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-700-SNsywT4.woff2") format('woff2'); }

:root {
    --bg: #fbfbfe;
    --bg-alt: #f3f2fb;
    --surface: #ffffff;
    --text: #15162b;
    --text-muted: #5d5f78;
    --border: #e4e3f0;
    --primary: #6d5dfc;
    --primary-dark: #5443e8;
    --primary-soft: #eeebff;
    --accent: #22c3a6;
    --danger: #e5484d;
    --success: #17a673;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgb(21 22 43 / 4%), 0 8px 24px rgb(21 22 43 / 6%);
    --shadow-lg: 0 24px 60px rgb(84 67 232 / 16%);
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-title: 'Space Grotesk', var(--font-body);
    --container: 1180px;
    --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d0e1c;
        --bg-alt: #13142a;
        --surface: #181a33;
        --text: #eceaff;
        --text-muted: #a3a4c2;
        --border: #2a2c4c;
        --primary: #8578ff;
        --primary-dark: #9d93ff;
        --primary-soft: #241f55;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
        --shadow-lg: 0 24px 60px rgb(0 0 0 / 40%);
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-title);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding: 0; margin: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

.accent { color: var(--primary); }
.gradient-text {
    background: linear-gradient(100deg, var(--primary) 10%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(34 195 166 / 20%); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(34 195 166 / 0%); } }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 62ch; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 600 1rem/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgb(109 93 252 / 30%); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 12px 28px rgb(109 93 252 / 38%); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: #15162b; }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow span { display: inline-block; transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }

.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-family: var(--font-title); font-weight: 700; font-size: 1.1rem; }
.logo-mark {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: .85rem;
}

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav ul a {
    display: block;
    padding: .45rem .85rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
    transition: color .2s, background .2s;
}
.main-nav ul a:hover { color: var(--text); background: var(--bg-alt); }
.main-nav ul a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 50%; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
    transform: translateX(-50%); transition: transform .25s, opacity .25s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        /* absolute (et non fixed) : le backdrop-filter du header crée un bloc conteneur */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        opacity: 0;
        transform: translateY(-12px);
        visibility: hidden;
        transition: opacity .25s ease, transform .25s ease, visibility .25s;
    }
    .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { padding: .8rem 1rem; font-size: 1.05rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tight { padding-top: 2rem; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head p:last-child { color: var(--text-muted); }
.section-head--row { display: flex; align-items: end; justify-content: space-between; max-width: none; text-align: left; gap: 1rem; flex-wrap: wrap; }
.section-head--row h2 { margin: 0; }
.center-link { text-align: center; margin-top: 2.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero-glow {
    position: absolute; inset: -30% -10% auto auto;
    width: 720px; height: 720px;
    background: radial-gradient(closest-side, rgb(109 93 252 / 22%), transparent), radial-gradient(closest-side at 30% 70%, rgb(34 195 166 / 16%), transparent);
    filter: blur(20px);
    pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2.5rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 2rem; color: var(--text-muted); font-size: .95rem; }
.hero-proof strong { display: block; font-family: var(--font-title); font-size: 1.6rem; color: var(--text); }

.hero-visual { position: relative; }
.browser {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: perspective(1400px) rotateY(-8deg) rotateX(4deg) translateY(-10px); } }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser-bar span:nth-child(2) { background: #febc2e; }
.browser-bar span:nth-child(3) { background: #28c840; }
.browser-bar em { margin-left: 1rem; font-style: normal; font-size: .75rem; color: var(--text-muted); background: var(--surface); padding: .15rem .8rem; border-radius: 999px; }
.browser-body { padding: 1.25rem; display: grid; gap: 1.25rem; }
.browser-body i, .browser-body b { display: block; border-radius: 6px; }
.mock-nav { display: flex; gap: .5rem; align-items: center; }
.mock-nav i { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); margin-right: auto; }
.mock-nav b { width: 42px; height: 8px; background: var(--border); }
.mock-hero { padding: 1.5rem; border-radius: 12px; background: linear-gradient(135deg, var(--primary-soft), transparent); display: grid; gap: .6rem; }
.mock-hero .w70 { width: 70%; height: 16px; background: var(--text); opacity: .85; }
.mock-hero .w50 { width: 50%; height: 10px; background: var(--text-muted); opacity: .5; }
.mock-hero .btn-mock { width: 90px; height: 26px; border-radius: 999px; background: var(--primary); margin-top: .5rem; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.mock-cards i { height: 70px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); }

.floating-card {
    position: absolute;
    display: flex; align-items: center; gap: .5rem;
    padding: .7rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-size: .88rem;
    white-space: nowrap;
}
.floating-card strong { color: var(--success); font-family: var(--font-title); font-size: 1.1rem; }
.fc-1 { left: -2rem; bottom: 2.5rem; animation: float-sm 6s ease-in-out infinite; }
.fc-2 { right: -1rem; top: -1.2rem; animation: float-sm 6s ease-in-out 1.5s infinite; }
@keyframes float-sm { 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 520px; margin: 1rem auto 0; width: 100%; }
    .fc-1 { left: 0; }
    .fc-2 { right: 0; }
}

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); background: radial-gradient(ellipse at top right, var(--primary-soft), transparent 60%); }
.page-hero--small { padding-bottom: 0; }
.page-hero h1 { max-width: 20ch; }
.back-link { display: flex; width: fit-content; gap: .4rem; margin-bottom: 1.5rem; color: var(--text-muted); text-decoration: none; font-weight: 500; }
.back-link:hover { color: var(--primary); }

/* ---------- Cartes services ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.service-card {
    padding: 2rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card p { color: var(--text-muted); margin: 0; font-size: .98rem; }
.service-icon {
    display: grid; place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: var(--primary-soft);
    font-size: 1.5rem;
}

/* ---------- Offres ---------- */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; align-items: stretch; }
.offer {
    position: relative;
    display: flex; flex-direction: column;
    padding: 2.25rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.offer h2 { font-size: 1.5rem; }
.offer > p { color: var(--text-muted); }
.offer .checklist { margin: .5rem 0 1.5rem; flex: 1; }
.offer .btn { margin-top: auto; }
.offer--highlight { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.offer-badge { position: absolute; top: -.8rem; left: 2rem; padding: .25rem .8rem; border-radius: 999px; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 600; }
.offer-price { font-family: var(--font-title); font-size: 1.3rem; font-weight: 700; }

/* ---------- Checklist & tags ---------- */
.checklist { display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
    content: '✓';
    position: absolute; left: 0; top: .15em;
    display: grid; place-items: center;
    width: 1.35rem; height: 1.35rem;
    border-radius: 50%;
    background: rgb(34 195 166 / 15%);
    color: var(--accent);
    font-size: .75rem; font-weight: 700;
}
.checklist--compact { gap: .55rem; font-size: .96rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { padding: .2rem .65rem; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.tags--lg li { padding: .4rem .9rem; font-size: .9rem; background: var(--surface); }

/* ---------- Projets ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.projects-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
@media (max-width: 400px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.project-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-thumb--placeholder { display: grid; place-items: center; color: rgb(255 255 255 / 92%); font: 700 4.5rem/1 var(--font-title); }
.tone-0 { background: linear-gradient(135deg, #6d5dfc, #22c3a6); }
.tone-1 { background: linear-gradient(135deg, #ff7a59, #ffb347); }
.tone-2 { background: linear-gradient(135deg, #2b2d6e, #6d5dfc); }
.tone-3 { background: linear-gradient(135deg, #22c3a6, #1a8fd8); }
.tone-4 { background: linear-gradient(135deg, #e14b8a, #6d5dfc); }

.project-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); margin-bottom: .5rem; }
.project-meta span:last-child { color: var(--text-muted); }
.project-title { margin-bottom: .4rem; }
.project-summary { color: var(--text-muted); font-size: .96rem; flex: 1; }
.project-more { margin-top: 1rem; font-weight: 600; color: var(--primary); font-size: .95rem; }
.project-more span { display: inline-block; transition: transform .2s; }
.project-card:hover .project-more span { transform: translateX(4px); }

.tabs { display: inline-flex; gap: .25rem; margin-top: 1.5rem; padding: .3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.tabs a { padding: .55rem 1.2rem; border-radius: 999px; text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: .95rem; }
.tabs a[aria-current="page"] { background: var(--primary); color: #fff; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { display: inline-block; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

.empty-state { padding: 4rem 1rem; text-align: center; color: var(--text-muted); border: 2px dashed var(--border); border-radius: var(--radius); }

.project-cover { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 3rem; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-cover.project-thumb--placeholder { font-size: 8rem; }
.project-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.project-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: .75rem; }
.project-aside dl { margin: 0 0 .75rem; }
.project-aside dt { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.project-aside dd { margin: .2rem 0 1rem; font-weight: 500; }
@media (max-width: 860px) {
    .project-layout { grid-template-columns: 1fr; }
    .project-aside { position: static; }
}

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step p { color: var(--text-muted); margin: 0; font-size: .97rem; }
.step-number { display: block; margin-bottom: 1rem; font: 700 2.5rem/1 var(--font-title); }
.step-number { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--top { align-items: start; grid-template-columns: .8fr 1.2fr; }
.split p { color: var(--text-muted); }
@media (max-width: 860px) { .split, .split--top { grid-template-columns: 1fr; } }

.about-portrait {
    display: grid; place-items: center;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    background: linear-gradient(150deg, var(--primary), var(--accent));
    color: rgb(255 255 255 / 90%);
    font: 700 6rem/1 var(--font-title);
    box-shadow: var(--shadow-lg);
}

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.skill-group { padding: 2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }

/* ---------- Prose ---------- */
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose { color: var(--text); }
.prose p { color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.faq-item summary { padding: 1.15rem 1.4rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta-band {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 28px;
    background: linear-gradient(120deg, #4f3ff0, #6d5dfc 45%, #22c3a6);
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin-bottom: .4rem; }
.cta-band p { margin: 0; opacity: .9; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-form-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-aside { display: grid; gap: 1.25rem; }
.contact-info { padding: 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.contact-info--muted { background: var(--bg-alt); }
.contact-info h2 { font-size: 1.2rem; }
.contact-info ul { display: grid; gap: 1.1rem; }
.contact-info li { display: flex; gap: .9rem; align-items: center; }
.contact-info li div { display: grid; font-size: .95rem; }
.contact-info li strong { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); }
.mini-steps { counter-reset: s; display: grid; gap: .7rem; }
.mini-steps li { counter-increment: s; display: flex; gap: .75rem; color: var(--text-muted); font-size: .95rem; }
.mini-steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .93rem; }
.field label.required::after { content: ' *'; color: var(--primary); }
.optional { font-weight: 400; color: var(--text-muted); font-size: .85rem; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field--checkbox { display: flex; align-items: center; gap: .65rem; }
.field--checkbox label { margin: 0; font-weight: 500; cursor: pointer; }
.field--checkbox input[type="checkbox"] { width: 1.2rem; height: 1.2rem; flex: none; margin: 0; accent-color: var(--primary); cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(109 93 252 / 15%); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-errors { margin-top: .4rem; color: var(--danger); font-size: .88rem; font-weight: 500; }
.form-note { font-size: .88rem; color: var(--text-muted); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.alert-success { background: rgb(23 166 115 / 12%); border: 1px solid rgb(23 166 115 / 35%); color: var(--success); }

/* ---------- Erreurs ---------- */
.error-page { text-align: center; padding: 6rem 0; }
.error-page h1, .error-page .lead { margin-inline: auto; }
.error-code { font: 700 clamp(5rem, 15vw, 9rem)/1 var(--font-title); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); max-width: 40ch; margin-top: 1rem; font-size: .95rem; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { color: var(--text); text-decoration: none; font-size: .95rem; word-break: break-word; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .88rem; color: var(--text-muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-muted); }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
