/* =====================================================================
   EldoriaNetwork — feuille de style « Blueprint / Atelier »
   Refonte complète. Langage : encre profonde (papier chaud en clair),
   grille d'ingénieur ténue, métadonnées en monospace, repères d'angle
   sur les panneaux, filets d'accent. Motion façon Emil Kowalski :
   courbes custom, :active, hover conditionné tactile, @starting-style,
   reduced-motion, stagger. On n'anime que transform / opacity.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg:        #0a0b0f;
    --surface:   #101219;
    --surface-2: #161923;
    --surface-3: #1d212c;
    --line:      #23262f;
    --line-2:    #333844;

    --text:       #eef0f6;
    --text-dim:   #bcc0cc;
    --text-mute:  #7f8494;
    --text-faint: #565b69;

    --accent:        #5b74ff;
    --accent-2:      #7ad3ff;
    --accent-hover:  #7789ff;
    --accent-press:  #4a61ea;
    --accent-weak:   rgba(91, 116, 255, 0.13);
    --accent-line:   rgba(91, 116, 255, 0.30);
    --accent-ring:   rgba(91, 116, 255, 0.5);
    --on-accent:     #ffffff;
    --good:          #46e0a0;

    --grad-accent: linear-gradient(102deg, #6f86ff 0%, #5b74ff 40%, #7ad3ff 108%);
    --grad-media:  linear-gradient(150deg, #34406b 0%, #222a52 55%, #10121f 100%);

    --grid: rgba(255, 255, 255, 0.021);

    --r-xs: 5px;
    --r-sm: 8px;
    --r:    11px;
    --r-lg: 16px;
    --r-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.45), 0 3px 8px -3px rgba(0,0,0,0.5);
    --shadow-md: 0 6px 18px -8px rgba(0,0,0,0.6), 0 18px 44px -20px rgba(0,0,0,0.7);
    --shadow-lg: 0 10px 30px -10px rgba(0,0,0,0.6), 0 34px 70px -28px rgba(0,0,0,0.75);
    --shadow-accent: 0 10px 30px -10px rgba(91,116,255,0.5);
    --edge: inset 0 1px 0 rgba(255,255,255,0.05);

    --e-out: cubic-bezier(0.23, 1, 0.32, 1);
    --e-io:  cubic-bezier(0.77, 0, 0.175, 1);
    --e-spring: cubic-bezier(0.34, 1.4, 0.5, 1);

    --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Menlo, Consolas, monospace;
    --maxw: 1140px;
    --pad: clamp(20px, 5vw, 46px);
}

[data-theme="light"] {
    --bg:        #f1eee6;
    --surface:   #fbfaf6;
    --surface-2: #f4f1e9;
    --surface-3: #eae6db;
    --line:      #ddd8cb;
    --line-2:    #c9c3b3;

    --text:       #15161d;
    --text-dim:   #3d4049;
    --text-mute:  #6b6f7c;
    --text-faint: #9a9caa;

    --accent:        #4459f0;
    --accent-hover:  #3549e0;
    --accent-press:  #2c3fce;
    --accent-weak:   rgba(68, 89, 240, 0.10);
    --accent-line:   rgba(68, 89, 240, 0.26);
    --on-accent:     #ffffff;

    --grid: rgba(20, 24, 45, 0.035);

    --shadow-sm: 0 1px 2px rgba(40,38,28,0.07), 0 3px 10px -3px rgba(40,38,28,0.10);
    --shadow-md: 0 8px 20px -8px rgba(40,38,28,0.14), 0 20px 44px -20px rgba(40,38,28,0.16);
    --shadow-lg: 0 12px 30px -10px rgba(40,38,28,0.18), 0 34px 70px -28px rgba(40,38,28,0.20);
    --edge: inset 0 1px 0 rgba(255,255,255,0.85);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
::selection { background: var(--accent-weak); color: var(--text); }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    transition: background 0.3s var(--e-out), color 0.3s var(--e-out);
}

/* Grille d'ingénieur + halo d'accent, fixes, discrets */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 42% at 50% -6%, var(--accent-weak), transparent 68%),
        linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 40px 40px;
    -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, #000 55%, transparent 100%);
            mask-image: radial-gradient(130% 100% at 50% 0%, #000 55%, transparent 100%);
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; }
button { font-family: inherit; }

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

/* ---------- Utilitaires ---------- */
.accent-gradient {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.accent-dot { color: var(--accent); }

/* Repères d'angle (marques de calage blueprint) sur les panneaux */
.hero-visual, .quick-link-card, .contact-card { position: relative; }
.hero-visual::before, .hero-visual::after,
.quick-link-card::before, .quick-link-card::after,
.contact-card::before, .contact-card::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    pointer-events: none;
    border: 1.5px solid var(--line-2);
    opacity: 0.75;
    transition: border-color 0.25s var(--e-out), opacity 0.25s var(--e-out);
}
.hero-visual::before, .quick-link-card::before, .contact-card::before {
    top: 11px; left: 11px; border-right: 0; border-bottom: 0;
}
.hero-visual::after, .quick-link-card::after, .contact-card::after {
    bottom: 11px; right: 11px; border-left: 0; border-top: 0;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px var(--pad);
    background: color-mix(in srgb, var(--bg) 74%, transparent);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.titre-de-page, .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    transition: opacity 0.15s var(--e-out);
}
.titre-de-page:active { opacity: 0.7; }
.site-logo { width: 25px; height: 25px; object-fit: contain; }
.footer-logo .site-logo { width: 21px; height: 21px; }

.header-right { display: flex; align-items: center; gap: 12px; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 550;
    color: var(--text-mute);
    transition: color 0.18s var(--e-out), background 0.18s var(--e-out);
}
.site-nav a i { font-size: 0.82em; opacity: 0.85; }
.site-nav a:active { transform: scale(0.96); }
.site-nav a.active { color: var(--text); }
.site-nav a.active::after {
    content: "";
    position: absolute;
    left: 15px; right: 15px; bottom: 3px;
    height: 2px; border-radius: 2px;
    background: var(--accent);
}
.site-nav a.nav-cta {
    color: var(--on-accent);
    background: var(--accent);
    box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255,255,255,0.2);
}
.site-nav a.nav-cta.active::after { display: none; }
@media (hover: hover) and (pointer: fine) {
    .site-nav a:hover { color: var(--text); background: var(--surface-2); }
    .site-nav a.nav-cta:hover { background: var(--accent-hover); color: var(--on-accent); }
}

.theme-toggle, .nav-toggle {
    width: 37px; height: 37px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.14s var(--e-out), background 0.18s var(--e-out), color 0.18s var(--e-out), border-color 0.18s var(--e-out);
}
.theme-toggle:active, .nav-toggle:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) {
    .theme-toggle:hover, .nav-toggle:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
}
.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: block; }
[data-theme="light"] .theme-toggle .fa-sun { display: block; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 16px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Layout ---------- */
main { display: block; flex: 1 0 auto; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.site-footer { flex-shrink: 0; }

/* ---------- Boutons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 0.93rem;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.14s var(--e-out), background 0.18s var(--e-out),
                border-color 0.18s var(--e-out), box-shadow 0.2s var(--e-out);
}
.btn i { font-size: 0.9em; }
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-ghost {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
    box-shadow: var(--edge);
}
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover { background: var(--accent-hover); box-shadow: 0 12px 34px -10px rgba(91,116,255,0.6), inset 0 1px 0 rgba(255,255,255,0.24); }
    .btn-ghost:hover { background: var(--surface-2); border-color: var(--line-2); }
}

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(30px, 6vw, 70px);
    padding: clamp(52px, 9vw, 100px) 0 clamp(46px, 7vw, 82px);
}
.hero-text { max-width: 640px; }
.hero-text > * { animation: rise 0.5s var(--e-out) both; }
.hero-text > h1            { animation-delay: 0.04s; }
.hero-text > p             { animation-delay: 0.12s; }
.hero-text > .hero-actions { animation-delay: 0.20s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.hero h1 {
    font-size: clamp(2.7rem, 6.4vw, 4.6rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
}
.hero p {
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.6;
    color: var(--text-mute);
    max-width: 500px;
    margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
    justify-self: end;
    display: grid;
    place-items: center;
    padding: clamp(30px, 4vw, 52px);
    border-radius: var(--r-lg);
    background:
        radial-gradient(120% 120% at 50% 0%, var(--accent-weak), transparent 62%),
        var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md), var(--edge);
}
.hero-mascot { position: relative; width: clamp(158px, 20vw, 214px); height: auto; }

/* Assemblage du logo (pixels) puis flottaison — inchangé dans l'esprit */
.hero-logo { will-change: transform; animation: logo-float 4s ease-in-out 1.5s infinite; }
.hero-logo .px {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0.35);
    animation: pixel-in 0.6s var(--e-spring) forwards;
}
@keyframes pixel-in { from { opacity: 0; transform: scale(0.35); } 60% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Titres de section (filet d'accent) ---------- */
.section-header, .page-header { margin-bottom: clamp(28px, 4vw, 44px); }
.section-header h2::before, .page-header h1::before {
    content: "";
    display: block;
    width: 32px; height: 3px;
    border-radius: 2px;
    background: var(--accent);
    margin-bottom: 16px;
}
.section-header h2, .page-header h1 {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 10px;
}
.section-header p, .page-header p { color: var(--text-mute); font-size: 1.02rem; max-width: 620px; }
.page-header { padding-top: clamp(40px, 6vw, 64px); }

/* ---------- Stats ---------- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: clamp(26px, 4vw, 38px) clamp(18px, 3vw, 34px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm), var(--edge);
    margin-bottom: clamp(60px, 10vw, 100px);
}
.stat-item { text-align: center; position: relative; }
.stat-item + .stat-item::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 42px;
    background: var(--line);
}
.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-mute);
    margin-top: 4px;
}

/* ---------- Cartes liens rapides ---------- */
.quick-links-section { padding-bottom: clamp(70px, 11vw, 116px); }
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.quick-link-card {
    display: block;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--edge);
    transition: transform 0.22s var(--e-out), border-color 0.22s var(--e-out), box-shadow 0.22s var(--e-out);
}
.quick-link-icon {
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    background: var(--accent-weak);
    border: 1px solid var(--accent-line);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
    transition: transform 0.24s var(--e-spring);
}
.quick-link-card h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.quick-link-card p { color: var(--text-mute); font-size: 0.9rem; }
.quick-link-card:active { transform: translateY(-1px) scale(0.995); }
@media (hover: hover) and (pointer: fine) {
    .quick-link-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-md), var(--edge); }
    .quick-link-card:hover::before, .quick-link-card:hover::after { border-color: var(--accent); opacity: 1; }
    .quick-link-card:hover .quick-link-icon { transform: scale(1.08) rotate(-3deg); }
}

/* ---------- Projets ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    padding-bottom: clamp(70px, 11vw, 116px);
}
.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--edge);
    transition: transform 0.22s var(--e-out), border-color 0.22s var(--e-out), box-shadow 0.22s var(--e-out);
}
@media (hover: hover) and (pointer: fine) {
    .project-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg), var(--edge); }
    .project-card:hover .project-media .project-icon { transform: scale(1.07); }
    .project-card:hover .project-link i { transform: translateX(3px); }
}
.project-media {
    position: relative;
    height: 178px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-media);
    overflow: hidden;
}
.project-media::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.14), transparent 58%);
}
.project-icon { font-size: 2.7rem; color: rgba(255,255,255,0.95); transition: transform 0.3s var(--e-out); z-index: 1; }

/* Logos de marque recréés dans le média */
.project-media.brand-erythrite { background: radial-gradient(120% 110% at 50% 25%, #2c2213 0%, #0b0906 72%); }
.project-media.brand-bloomfeed { background: radial-gradient(120% 110% at 28% 18%, #2a2410 0%, #0b0a06 72%); }
.project-media.brand-erythrite::after,
.project-media.brand-bloomfeed::after { background: radial-gradient(120% 80% at 50% 0%, rgba(245,182,56,0.12), transparent 60%); }
.logo-erythrite {
    position: relative; z-index: 1;
    font-weight: 800;
    font-size: clamp(1.5rem, 4.6vw, 2.05rem);
    letter-spacing: 0.09em;
    padding-left: 0.09em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fdeab6 0%, #f6c34c 46%, #e0982c 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 10px rgba(240,160,40,0.35));
}
.logo-bloomfeed { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; }
.logo-bloomfeed .mark { width: 40px; height: 40px; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(245,182,56,0.4)); }
.logo-bloomfeed .word { font-weight: 700; font-size: clamp(1.3rem, 3.7vw, 1.7rem); letter-spacing: -0.015em; color: #f2f4f8; }
.logo-bloomfeed .word b {
    font-weight: 700;
    background: linear-gradient(180deg, #ffd873, #f5b638);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.project-logotext {
    position: relative; z-index: 1;
    display: inline-flex; align-items: baseline;
    font-family: var(--mono);
    font-size: clamp(1.6rem, 4.5vw, 2.15rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.96);
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.project-logotext::after {
    content: "\258C";
    margin-left: 3px;
    color: rgba(255,255,255,0.65);
    animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.project-ribbon {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.project-card.is-upcoming .project-media { filter: saturate(0.85) brightness(0.92); }

.project-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 18px 20px 0; }
.tag {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    padding: 3px 9px;
    border-radius: var(--r-xs);
    background: var(--accent-weak);
    border: 1px solid var(--accent-line);
    color: var(--accent);
}
[data-theme="light"] .tag { color: var(--accent-press); }

.project-card h3 { padding: 14px 20px 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; }
.project-card > p { padding: 8px 20px 0; color: var(--text-mute); font-size: 0.9rem; line-height: 1.55; flex-grow: 1; }

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
}
.project-date { font-family: var(--mono); color: var(--text-faint); font-size: 0.74rem; display: flex; align-items: center; gap: 6px; }
a.project-date.is-link { transition: color 0.16s var(--e-out); }
@media (hover: hover) and (pointer: fine) { a.project-date.is-link:hover { color: var(--text-dim); } }
.project-link { color: var(--accent); font-weight: 600; font-size: 0.87rem; display: flex; align-items: center; gap: 6px; }
.project-link i { transition: transform 0.2s var(--e-out); }

/* ---------- Détail projet ---------- */
.project-detail { max-width: 740px; margin: 0 auto; padding: clamp(34px, 5vw, 54px) 0 clamp(70px, 11vw, 112px); }
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono);
    color: var(--text-mute);
    font-size: 0.82rem;
    margin-bottom: 26px;
    transition: color 0.16s var(--e-out);
}
.back-link i { transition: transform 0.2s var(--e-out); }
@media (hover: hover) and (pointer: fine) {
    .back-link:hover { color: var(--text); }
    .back-link:hover i { transform: translateX(-3px); }
}
.project-detail-media {
    height: clamp(200px, 30vw, 258px);
    border-radius: var(--r);
    background: var(--grad-media);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 26px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-md);
}
.project-detail-media::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.16), transparent 58%);
}
.project-detail-media .project-icon { font-size: 4.4rem; z-index: 1; }
.project-detail .project-tags { padding: 0; margin-bottom: 16px; }
.project-detail h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; }
.project-detail-date { font-family: var(--mono); color: var(--text-mute); font-size: 0.8rem; display: flex; align-items: center; gap: 6px; margin-bottom: 24px; }
.project-detail-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dim);
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
}
.project-detail-features h2 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 16px; }
.project-detail-features ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 40px; }
.project-detail-features li { display: flex; align-items: flex-start; gap: 11px; color: var(--text-dim); line-height: 1.5; }
.project-detail-features li i {
    color: var(--good); margin-top: 3px; flex-shrink: 0;
    width: 20px; height: 20px; border-radius: 50%;
    background: color-mix(in srgb, var(--good) 15%, transparent);
    display: flex; align-items: center; justify-content: center; font-size: 0.68rem;
}
.project-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-wrapper { padding-bottom: clamp(70px, 11vw, 116px); }
.contact-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(28px, 4vw, 42px);
    box-shadow: var(--shadow-md), var(--edge);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field label { font-family: var(--mono); font-weight: 500; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mute); }
.form-field input, .form-field textarea {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.16s var(--e-out), box-shadow 0.16s var(--e-out), background 0.16s var(--e-out);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-faint); }
.form-field textarea { min-height: 156px; resize: vertical; line-height: 1.6; }
.form-field input:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-weak);
}
.char-count { align-self: flex-end; font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.contact-form .btn-block { margin-top: 4px; }
.contact-note {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--text-mute);
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    gap: 9px;
}
.contact-note i { color: #5865f2; }

/* ---------- Partenaire (bandeau discret) ---------- */
.partner-banner { margin-top: clamp(24px, 4vw, 44px); padding: clamp(40px, 6vw, 60px) 0 clamp(60px, 9vw, 96px); border-top: 1px solid var(--line); }
.partner-banner-inner {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: clamp(16px, 3vw, 30px);
    max-width: 720px; margin: 0 auto;
    transition: transform 0.14s var(--e-out);
}
.partner-banner-inner:active { transform: scale(0.99); }
.partner-mark { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.tt-mono { width: 38px; height: 38px; }
.partner-word { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.partner-word b { color: var(--text); }
.partner-sep { width: 1px; align-self: stretch; min-height: 38px; background: var(--line); flex-shrink: 0; }
.partner-copy { color: var(--text-mute); font-size: 0.96rem; line-height: 1.55; max-width: 360px; }
.partner-more { color: var(--accent); font-weight: 600; white-space: nowrap; }
.partner-more i { font-size: 0.82em; transition: transform 0.2s var(--e-out); }
@media (hover: hover) and (pointer: fine) {
    .partner-banner-inner:hover .partner-more { color: var(--accent-hover); }
    .partner-banner-inner:hover .partner-more i { transform: translateX(3px); }
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 24px; right: 24px;
    display: flex; align-items: center; gap: 10px;
    padding: 13px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 100;
    font-size: 0.92rem;
    font-weight: 500;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s var(--e-out), transform 0.35s var(--e-out);
}
@starting-style { .toast { opacity: 0; transform: translateY(140%); } }
.toast i { color: var(--good); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(30px, 5vw, 46px) var(--pad); margin-top: 32px; }
.footer-content {
    max-width: var(--maxw); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 18px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-mute); font-size: 0.9rem; transition: color 0.16s var(--e-out); }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-mute);
    transition: transform 0.16s var(--e-out), color 0.16s var(--e-out), border-color 0.16s var(--e-out), background 0.16s var(--e-out);
}
.footer-social a:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) {
    .footer-social a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-weak); }
}
.footer-copyright { width: 100%; font-family: var(--mono); color: var(--text-faint); font-size: 0.76rem; text-align: center; }

/* ---------- Révélation au scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.48s var(--e-out), transform 0.48s var(--e-out);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@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;
    }
    .reveal { transform: none !important; transition: opacity 0.25s ease !important; }
    .hero-text > * { transform: none !important; }
    .hero-logo, .hero-logo .px { transform: none !important; }
    .hero-logo .px { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 12px; right: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--r);
        padding: 8px;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    .site-header.nav-open .site-nav { display: flex; }
    .site-nav a { padding: 12px 14px; }
    .site-nav a.active::after { display: none; }
    .site-nav a.active { background: var(--accent-weak); color: var(--accent); }
    .nav-toggle { display: flex; }

    .hero { grid-template-columns: 1fr; gap: 6px; padding: 46px 0 38px; }
    .hero-visual { display: none; }
    .stats-strip { grid-template-columns: 1fr; }
    .stat-item { padding: 18px 0; }
    .stat-item + .stat-item::before { left: 22%; right: 22%; top: 0; bottom: auto; width: auto; height: 1px; transform: none; }
    .contact-grid { grid-template-columns: 1fr; gap: 0; }
    .footer-content { justify-content: center; text-align: center; }
}
