/* ==========================================================================
   EMILE VISUALS — « Atelier » : moodboard papier, encre & vermillon
   Typographie : Bricolage Grotesque (titres) + Spectral (texte) + Space Mono
   ========================================================================== */

:root {
    --paper: #f5eddc;
    --paper-2: #ece0c6;
    --ink: #211d16;
    --muted: #6d6350;
    --faint: #9b9077;
    --accent: #e8531f;
    --accent-2: #f7b32b;
    --line: rgba(33, 29, 22, 0.16);

    --font-display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
    --font-body: 'Spectral', Georgia, serif;
    --font-mono: 'Space Mono', monospace;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 84px;
    --shadow-hard: 6px 6px 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    background:
        repeating-linear-gradient(0deg, transparent 0 55px, rgba(33, 29, 22, 0.045) 55px 56px),
        repeating-linear-gradient(90deg, transparent 0 55px, rgba(33, 29, 22, 0.045) 55px 56px),
        var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--paper);
}

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

a { color: inherit; }

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

section { scroll-margin-top: var(--header-h); }

.container {
    width: min(1180px, 100% - 2 * clamp(1.25rem, 5vw, 4rem));
    margin-inline: auto;
}

/* --- Grain papier ---------------------------------------------------------- */
.grain {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Labels mono ------------------------------------------------------------ */
.tag-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.tag-label::before {
    content: '✦ ';
}

/* --- Header ------------------------------------------------------------------ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    border-bottom: 2px solid transparent;
}

.site-header.scrolled {
    background: rgba(245, 237, 220, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--ink);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand em {
    font-style: normal;
    font-weight: 800;
    color: var(--accent);
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    align-self: center;
    border: 2px solid var(--ink);
    box-sizing: content-box;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.main-nav a {
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    padding: 0.5rem 0.95rem;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out);
}

.main-nav a:hover { border-color: var(--ink); background: var(--paper-2); transform: translateY(-2px); }

.nav-cta {
    margin-left: 0.6rem;
    background: var(--ink);
    color: var(--paper) !important;
    border-color: var(--ink) !important;
    box-shadow: 3px 3px 0 var(--accent);
}

.nav-cta:hover {
    background: var(--accent) !important;
    box-shadow: 3px 3px 0 var(--ink);
    transform: translate(-1px, -3px) !important;
}

/* Burger */
.menu-btn {
    display: none;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 10px;
    color: var(--ink);
    width: 46px;
    height: 46px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.menu-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .icon-close { display: none; }
body.menu-open .menu-btn .icon-open { display: none; }
body.menu-open .menu-btn .icon-close { display: block; }

/* Menu mobile */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open .mobile-menu { opacity: 1; visibility: visible; }

.mobile-menu a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--ink);
    opacity: 0;
    transform: translateY(18px) rotate(-1deg);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.2s;
}

.mobile-menu a:hover { color: var(--accent); transform: rotate(1deg); }

body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0) rotate(0); }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.32s; }
body.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.38s; }

/* --- Hero --------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 7vw, 5.4rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin: 1.5rem 0 1.8rem;
    text-wrap: balance;
}

.hero-title em {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--accent);
    position: relative;
    white-space: nowrap;
}

.hero-title em::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.02em;
    height: 0.28em;
    background: var(--accent-2);
    z-index: -1;
    transform: skewX(-8deg);
}

.hero-lede {
    max-width: 33rem;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--muted);
    margin-bottom: 2.4rem;
}

.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.95rem 1.8rem;
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s ease, color 0.2s ease;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }

.btn:hover { transform: translate(-2px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-solid {
    background: var(--accent);
    color: var(--paper);
}

.btn-solid:hover svg { transform: translateX(4px); }

.btn-ghost {
    background: var(--paper);
    color: var(--ink);
}

.btn-ghost:hover { background: var(--accent-2); }

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 99px;
    padding: 0.5rem 1.05rem;
    background: var(--paper);
    box-shadow: 3px 3px 0 var(--accent-2);
}

.hero-status .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3a9e4d;
    box-shadow: 0 0 0 0 rgba(58, 158, 77, 0.5);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(58, 158, 77, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(58, 158, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(58, 158, 77, 0); }
}

/* Collage d'affiches — polaroïds scotchés */
.hero-collage {
    position: relative;
    height: clamp(390px, 46vw, 570px);
}

.hero-collage figure {
    position: absolute;
    background: #fdf8ee;
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 9px 9px 26px;
    box-shadow: var(--shadow-hard);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.hero-collage figure::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    width: 74px;
    height: 24px;
    transform: translateX(-50%) rotate(-3deg);
    background: rgba(247, 179, 43, 0.75);
    border: 1px dashed rgba(33, 29, 22, 0.25);
    z-index: 3;
}

.hero-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.collage-1 {
    width: 60%;
    aspect-ratio: 4 / 5;
    top: 3%;
    left: 0;
    transform: rotate(-5deg);
    z-index: 1;
}

.collage-2 {
    width: 54%;
    aspect-ratio: 4 / 5;
    top: 20%;
    right: 0;
    transform: rotate(4deg);
    z-index: 2;
}

.collage-3 {
    width: 42%;
    aspect-ratio: 1;
    bottom: 2%;
    left: 13%;
    transform: rotate(-2deg);
    z-index: 3;
}

.hero-collage figure:hover {
    transform: rotate(0deg) scale(1.04);
    box-shadow: 10px 10px 0 var(--accent);
    z-index: 5;
}

/* Badge circulaire tournant */
.hero-badge {
    position: absolute;
    top: -3%;
    right: 6%;
    width: clamp(96px, 11vw, 136px);
    aspect-ratio: 1;
    z-index: 6;
    background: var(--accent);
    border: 2px solid var(--ink);
    border-radius: 50%;
    box-shadow: 4px 4px 0 var(--ink);
}

.hero-badge svg {
    position: absolute;
    inset: 4px;
    animation: spin 16s linear infinite;
}

.hero-badge text {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    fill: var(--paper);
}

.hero-badge-star {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--paper);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Marquee --------------------------------------------------------------------- */
.marquee {
    background: var(--ink);
    border-block: 2px solid var(--ink);
    overflow: hidden;
    padding: 0.9rem 0;
    transform: rotate(-0.6deg) scale(1.01);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 2.6rem;
    animation: marquee 32s linear infinite;
}

.marquee span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--paper);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2.6rem;
}

.marquee span::after {
    content: '✦';
    color: var(--accent-2);
    font-size: 0.85rem;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* --- Sections communes -------------------------------------------------------------- */
.section {
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(2.5rem, 6vw, 4.2rem);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-top: 1rem;
    text-wrap: balance;
}

.section-title em {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
}

.section-note {
    max-width: 22rem;
    color: var(--muted);
    font-size: 1rem;
    font-style: italic;
}

/* --- Travaux — moodboard de polaroïds --------------------------------------------------- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.6rem, 3.4vw, 2.8rem);
}

.work-card {
    position: relative;
    text-decoration: none;
    display: block;
    background: #fdf8ee;
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 10px 10px 0;
    box-shadow: var(--shadow-hard);
    transition: rotate 0.4s var(--ease-out), translate 0.4s var(--ease-out),
        box-shadow 0.4s var(--ease-out),
        opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.works-grid .work-card:nth-child(odd) { rotate: -1.3deg; }
.works-grid .work-card:nth-child(even) { rotate: 1.1deg; }

.work-card:hover {
    rotate: 0deg;
    translate: 0 -8px;
    box-shadow: 10px 10px 0 var(--accent);
    z-index: 2;
    transition-delay: 0s;
}

.work-card::before {
    content: '';
    position: absolute;
    top: -13px;
    left: 50%;
    width: 82px;
    height: 26px;
    transform: translateX(-50%) rotate(-2.5deg);
    background: rgba(247, 179, 43, 0.75);
    border: 1px dashed rgba(33, 29, 22, 0.25);
    z-index: 3;
}

.works-grid .work-card:nth-child(3n)::before { transform: translateX(-50%) rotate(3deg); }

.work-card figure {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.work-card:hover img { transform: scale(1.05); }

.work-card figcaption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.35rem 0.95rem;
}

.work-title {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    transition: color 0.25s ease;
}

.work-card:hover .work-title { color: var(--accent); }

.work-cat {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--ink);
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    white-space: nowrap;
}

/* Rythme éditorial : colonne centrale décalée */
@media (min-width: 961px) {
    .works-grid .work-card:nth-child(3n + 2) { margin-top: 2.4rem; }
}

/* --- Services — index brutal --------------------------------------------------------------- */
.services-list { border-top: 2px solid var(--ink); }

.service-row {
    position: relative;
    display: grid;
    grid-template-columns: 5rem minmax(0, 1.15fr) minmax(0, 1fr) 3rem;
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: center;
    padding: clamp(1.6rem, 3.5vw, 2.3rem) clamp(0.5rem, 2vw, 1.5rem);
    border-bottom: 2px solid var(--ink);
    overflow: hidden;
}

.service-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s var(--ease-out);
    pointer-events: none;
    z-index: 0;
}

.service-row:hover::before { transform: scaleY(1); }

.service-row > * { position: relative; z-index: 1; }

.service-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--faint);
    transition: color 0.3s ease;
}

.service-row:hover .service-num { color: var(--accent-2); }

.service-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
    transition: transform 0.35s var(--ease-out), color 0.3s ease;
}

.service-row:hover .service-name { transform: translateX(10px); color: var(--paper); }

.service-desc {
    color: var(--muted);
    font-size: 0.98rem;
    transition: color 0.3s ease;
}

.service-row:hover .service-desc { color: rgba(245, 237, 220, 0.8); }

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.service-tags li {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    border: 1.5px solid currentColor;
    border-radius: 99px;
    padding: 0.26rem 0.68rem;
    transition: color 0.3s ease;
}

.service-row:hover .service-tags li { color: var(--accent-2); }

.service-arrow {
    justify-self: end;
    color: var(--ink);
    transition: transform 0.35s var(--ease-out), color 0.3s ease;
}

.service-arrow svg { width: 28px; height: 28px; }

.service-row:hover .service-arrow {
    transform: translate(5px, -5px) rotate(8deg);
    color: var(--accent-2);
}

/* Snapcodes */
.snapcodes {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.snapcodes img {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    border: 2px solid var(--ink);
    transition: transform 0.3s var(--ease-out);
}

.snapcodes img:hover { transform: scale(1.6) rotate(-4deg); }

.snapcodes-hint {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
    max-width: 9rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.service-row:hover .snapcodes-hint { color: rgba(245, 237, 220, 0.7); }

/* --- À propos --------------------------------------------------------------------------------- */
.about {
    background: var(--paper-2);
    border-block: 2px solid var(--ink);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.about-photo { position: relative; }

.about-photo figure {
    position: relative;
    background: #fdf8ee;
    border: 2px solid var(--ink);
    border-radius: 4px;
    padding: 12px 12px 56px;
    box-shadow: var(--shadow-hard);
    transform: rotate(-1.8deg);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.about-photo figure:hover { transform: rotate(0deg); box-shadow: 10px 10px 0 var(--accent); }

.about-photo figure::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    width: 90px;
    height: 28px;
    transform: translateX(-50%) rotate(-2deg);
    background: rgba(247, 179, 43, 0.75);
    border: 1px dashed rgba(33, 29, 22, 0.25);
    z-index: 3;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid var(--line);
}

.about-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.about-text .section-title { margin-bottom: 1.6rem; }

.about-text p {
    color: var(--muted);
    margin-bottom: 1.2rem;
    max-width: 36rem;
}

.about-text p strong { color: var(--ink); font-weight: 600; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2.4rem 0;
    border-top: 2px solid var(--ink);
    padding-top: 1.8rem;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    margin-top: 0.5rem;
}

.socials {
    display: flex;
    gap: 0.7rem;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 50%;
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.socials a:hover {
    background: var(--accent);
    color: var(--paper);
    transform: translate(-1px, -4px) rotate(6deg);
    box-shadow: 5px 6px 0 var(--ink);
}

.socials svg { width: 20px; height: 20px; }

/* --- Contact — bloc vermillon -------------------------------------------------------------------- */
.contact {
    text-align: center;
    background: var(--accent);
    border-top: 2px solid var(--ink);
    color: var(--ink);
}

.contact .tag-label { color: var(--paper); }

.contact-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 6.5vw, 4.8rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin: 1.2rem auto 1.6rem;
    max-width: 20ch;
    text-wrap: balance;
}

.contact-title em {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 500;
    color: var(--paper);
}

.contact-sub {
    color: rgba(33, 29, 22, 0.75);
    font-style: italic;
    max-width: 32rem;
    margin: 0 auto 3rem;
}

.contact-mail {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.25rem, 3.4vw, 2.1rem);
    letter-spacing: -0.02em;
    color: var(--paper);
    text-decoration: none;
    border-bottom: 3px solid var(--ink);
    padding-bottom: 0.25rem;
    margin-bottom: 2.6rem;
    transition: color 0.3s ease, border-color 0.3s ease;
    overflow-wrap: anywhere;
}

.contact-mail:hover { color: var(--ink); border-color: var(--paper); }

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.contact .btn-solid { background: var(--ink); color: var(--paper); }
.contact .btn-ghost { background: var(--paper); color: var(--ink); }
.contact .btn-ghost:hover { background: var(--accent-2); }

/* --- Footer ------------------------------------------------------------------------------------------ */
.site-footer {
    background: var(--ink);
    color: var(--paper);
    padding: 3.5rem 0 2.5rem;
    overflow: hidden;
    border-top: 2px solid var(--ink);
}

.footer-word {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 12vw, 10rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(245, 237, 220, 0.4);
    user-select: none;
    margin-bottom: 2.5rem;
    white-space: nowrap;
}

.footer-word em { font-style: normal; -webkit-text-stroke-color: var(--accent); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: rgba(245, 237, 220, 0.55);
}

.footer-bottom a {
    color: rgba(245, 237, 220, 0.8);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-bottom a:hover { color: var(--accent-2); }

.footer-links { display: flex; gap: 1.4rem; }

/* --- Reveal on scroll ----------------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 90ms);
}

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

/* --- Responsive -------------------------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .main-nav { display: none; }
    .menu-btn { display: inline-flex; }

    .hero .container { grid-template-columns: 1fr; }
    .hero-collage { max-width: 460px; margin-top: 1.5rem; }
    .hero-badge { top: -6%; right: 0; }

    .works-grid { grid-template-columns: repeat(2, 1fr); }

    .service-row {
        grid-template-columns: 3rem minmax(0, 1fr);
        grid-template-areas:
            'num name'
            'num desc';
        row-gap: 0.8rem;
    }
    .service-num { grid-area: num; align-self: start; padding-top: 0.5rem; }
    .service-name { grid-area: name; }
    .service-desc { grid-area: desc; }
    .service-arrow { display: none; }

    .about-grid { grid-template-columns: 1fr; }
    .about-photo { max-width: 420px; }
}

@media (max-width: 600px) {
    .works-grid { grid-template-columns: 1fr; }
    .hero { padding-top: calc(var(--header-h) + 1.5rem); }
    .hero-collage { height: 400px; }
    .stats-row { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
    .footer-word { white-space: normal; }
}

/* --- Accessibilité : mouvement réduit ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; translate: none; }
}
