/* ============================================================
   TEMPLATE 3 — Portfolio Objectif Theodoros
   Design "dark-first" · Sidebar fixe · Palette violette
   ============================================================ */

/* ---------- 1. JETONS DE DESIGN ---------- */
:root {
    --font-display: 'Sora', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    /* thème sombre (défaut) */
    --bg: #0F1117;
    --bg-soft: #141722;
    --surface: #1A1E2C;
    --surface-2: #212637;
    --line: rgba(255, 255, 255, 0.08);
    --text: #ECECF3;
    --text-dim: #A6AABB;
    --text-faint: #6E7386;
    --accent: #8B5CF6;
    --accent-strong: #7C3AED;
    --accent-soft: rgba(139, 92, 246, 0.16);
    --mint: #34D399;
    --mint-soft: rgba(52, 211, 153, 0.14);
    --danger: #F87171;

    --grad: linear-gradient(120deg, #8B5CF6 0%, #34D399 100%);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    --sp-1: 0.5rem;
    --sp-2: 1rem;
    --sp-3: 1.5rem;
    --sp-4: 2rem;
    --sp-5: 3rem;
    --sp-6: 4.5rem;

    --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 0 1px var(--line), 0 14px 34px rgba(139, 92, 246, 0.18);

    --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
    --rail-w: 272px;
}

html[data-theme="light"] {
    --bg: #F3F3F8;
    --bg-soft: #ECECF3;
    --surface: #FFFFFF;
    --surface-2: #F7F7FB;
    --line: rgba(15, 17, 23, 0.10);
    --text: #14161F;
    --text-dim: #4B4F61;
    --text-faint: #7A7F92;
    --accent: #6D3FE0;
    --accent-strong: #5B2FD0;
    --accent-soft: rgba(109, 63, 224, 0.10);
    --mint: #0EA371;
    --mint-soft: rgba(14, 163, 113, 0.12);
    --shadow: 0 18px 44px rgba(20, 22, 31, 0.12);
    --shadow-glow: 0 0 0 1px var(--line), 0 14px 34px rgba(109, 63, 224, 0.14);
}

/* ---------- 2. RÉINITIALISATION & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

/* ---------- 3. COQUILLE : SIDEBAR + ZONE DE CONTENU ---------- */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    background: var(--bg-soft);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: var(--sp-4) var(--sp-3);
    gap: var(--sp-4);
    z-index: 60;
    overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 0.85rem; }

.brand-pic {
    width: 52px; height: 52px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--accent);
    box-shadow: var(--accent-soft), 0 0 18px rgba(139, 92, 246, 0.35);
}
.brand-pic img { width: 100%; height: 100%; object-fit: cover; }

.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; display: block; }
.brand-role { font-size: 0.74rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

.sidebar nav ul { display: flex; flex-direction: column; gap: 0.35rem; }

.rail-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--r-sm);
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.rail-link::before {
    content: '';
    position: absolute;
    left: 0; top: 20%;
    height: 60%; width: 3px;
    border-radius: var(--r-pill);
    background: var(--grad);
    transform: scaleY(0);
    transition: transform 0.25s var(--ease);
}
.rail-link:hover { background: var(--surface); color: var(--text); }
.rail-link.active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.rail-link.active::before { transform: scaleY(1); }

.rail-link .idx {
    font-size: 0.72rem;
    font-family: var(--font-display);
    color: var(--text-faint);
    min-width: 1.6rem;
}
.rail-link.active .idx { color: var(--accent); }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--sp-2); }

.theme-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.theme-switch:hover { border-color: var(--accent); color: var(--text); }
.theme-switch .knob {
    width: 34px; height: 18px;
    background: var(--surface-2);
    border-radius: var(--r-pill);
    position: relative;
    flex-shrink: 0;
}
.theme-switch .knob::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--grad);
    transition: transform 0.3s var(--ease);
}
html[data-theme="light"] .theme-switch .knob::after { transform: translateX(16px); }

.side-socials { display: flex; gap: 0.6rem; }
.side-socials a {
    width: 36px; height: 36px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.side-socials a:hover { transform: translateY(-3px); border-color: var(--accent); }
.side-socials img { width: 100%; height: 100%; object-fit: cover; }

.side-mail { font-size: 0.8rem; color: var(--text-faint); word-break: break-all; }
.side-mail a:hover { color: var(--accent); }

.shell {
    margin-left: var(--rail-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrap { width: min(1120px, 100% - 4rem); margin-inline: auto; }

/* ---------- 4. BOUTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--grad);
    color: #0F1117;
    box-shadow: 0 10px 26px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(139, 92, 246, 0.45); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn-solid {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line);
}
.btn-solid:hover { border-color: var(--accent); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.02rem; }

/* ---------- 5. EN-TÊTES DE SECTION ---------- */
.section { padding: var(--sp-6) 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: var(--sp-2);
}
.eyebrow::before {
    content: '';
    width: 26px; height: 2px;
    background: var(--grad);
    border-radius: var(--r-pill);
}

.head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
    flex-wrap: wrap;
}
.head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.head p { color: var(--text-dim); max-width: 52ch; margin-top: 0.4rem; }

/* ---------- 6. HERO ---------- */
.hero {
    position: relative;
    padding: var(--sp-6) 0 var(--sp-5);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -180px; right: -140px;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 65%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -160px; left: 10%;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.14), transparent 65%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--sp-5);
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--mint-soft);
    color: var(--mint);
    border: 1px solid rgba(52, 211, 153, 0.35);
    padding: 0.4rem 0.95rem;
    border-radius: var(--r-pill);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: var(--sp-3);
}
.hero-tag::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--mint);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
    50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 800;
    margin-bottom: var(--sp-2);
}
.hero h1 .accent-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-role {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: var(--sp-3);
}
.hero-role b { color: var(--text); font-weight: 700; }

.hero-desc { color: var(--text-dim); max-width: 58ch; margin-bottom: var(--sp-4); }

.hero-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }

.hero-facts { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.fact strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.fact span { font-size: 0.82rem; color: var(--text-faint); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-photo {
    position: relative;
    width: min(340px, 100%);
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo.photo-wide { width: 100%; aspect-ratio: 4 / 3; }
.hero-photo::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15, 17, 23, 0.55), transparent 45%);
}

.hero-badge {
    position: absolute;
    bottom: 18px; left: 18px; right: 18px;
    z-index: 2;
    background: rgba(15, 17, 23, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-md);
    padding: 0.75rem 1rem;
    color: #ECECF3;
    font-size: 0.85rem;
}
.hero-badge strong { display: block; font-family: var(--font-display); }
.hero-badge span { color: #A6AABB; font-size: 0.78rem; }

/* ---------- 7. BANDE DÉFILANTE (MARQUEE) ---------- */
.marquee {
    background: var(--grad);
    color: #0F1117;
    overflow: hidden;
    padding: 0.85rem 0;
    transform: rotate(-0.4deg) scale(1.01);
    border-block: 1px solid rgba(255, 255, 255, 0.18);
}
.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: slide 26s linear infinite;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-track span { display: flex; align-items: center; gap: 2.5rem; }
.marquee-track span::after { content: '✦'; opacity: 0.6; }

/* ---------- 8. GRILLES & CARTES ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--sp-3);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: var(--shadow-glow);
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.93rem; }

.card-pic {
    width: 56px; height: 56px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: var(--sp-2);
    border: 1px solid var(--line);
}
.card-pic img { width: 100%; height: 100%; object-fit: cover; }

.card-list { margin-top: var(--sp-2); display: grid; gap: 0.45rem; }
.card-list li {
    font-size: 0.88rem;
    color: var(--text-dim);
    padding-left: 1.2rem;
    position: relative;
}
.card-list li::before {
    content: '→';
    position: absolute; left: 0;
    color: var(--accent);
    font-weight: 700;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--sp-2); }
.chip {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.28rem 0.75rem;
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.chip.mint { background: var(--mint-soft); color: var(--mint); border-color: rgba(52, 211, 153, 0.3); }

/* ---------- 9. STATS ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-3);
}
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--sp-3);
    text-align: left;
    position: relative;
}
.stat::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    height: 3px; width: 100%;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease);
}
.stat.is-visible::after { transform: scaleX(1); }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- 10. BARRE DE FILTRES PROJETS ---------- */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    flex-wrap: wrap;
    margin-bottom: var(--sp-4);
}
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter {
    padding: 0.5rem 1.15rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-dim);
    font-size: 0.87rem;
    font-weight: 600;
    transition: all 0.25s var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--text); }
.filter.active {
    background: var(--grad);
    color: #0F1117;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}
.counter { font-size: 0.87rem; color: var(--text-faint); }
.counter b { color: var(--accent); font-family: var(--font-display); }

/* ---------- 11. PROJETS ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }

.project {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: var(--shadow-glow);
}
.project.is-hidden { display: none; }

.project-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.project-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.project:hover .project-media img { transform: scale(1.07); }

.project-year {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(15, 17, 23, 0.75);
    backdrop-filter: blur(6px);
    color: #34D399;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: var(--r-pill);
    border: 1px solid rgba(52, 211, 153, 0.4);
}
.project-cat {
    position: absolute;
    bottom: 12px; left: 12px;
    background: rgba(139, 92, 246, 0.9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border-radius: var(--r-pill);
}
.project-body { padding: var(--sp-3); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.project-body h3 { font-size: 1.08rem; }
.project-body p { color: var(--text-dim); font-size: 0.9rem; flex: 1; }
.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    padding-top: 0.75rem;
    border-top: 1px dashed var(--line);
    font-size: 0.82rem;
    color: var(--text-faint);
}
.project-meta .btn { color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.project-meta .btn:hover { color: var(--mint); }

/* ---------- 12. BARRES DE COMPÉTENCES ---------- */
.skills { display: grid; gap: var(--sp-3); }
.skill-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}
.skill-top span:last-child { color: var(--accent); font-family: var(--font-display); }
.skill-track {
    height: 9px;
    background: var(--surface-2);
    border-radius: var(--r-pill);
    overflow: hidden;
}
.skill-fill {
    height: 100%;
    width: 0;
    background: var(--grad);
    border-radius: var(--r-pill);
    transition: width 1.1s var(--ease);
}

/* ---------- 13. TIMELINE ---------- */
.timeline { position: relative; display: grid; gap: var(--sp-3); padding-left: 1.9rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 6px; bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--mint));
}
.tl-item { position: relative; }
.tl-item::before {
    content: '';
    position: absolute;
    left: -1.9rem; top: 6px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-year {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--mint);
    background: var(--mint-soft);
    border: 1px solid rgba(52, 211, 153, 0.35);
    padding: 0.15rem 0.7rem;
    border-radius: var(--r-pill);
    margin-bottom: 0.4rem;
}
.tl-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.tl-item p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- 14. TARIFS ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); align-items: stretch; }
.price {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-4) var(--sp-3);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    position: relative;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.price:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, 0.5); }
.price.featured {
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.14), var(--surface) 55%);
    border-color: rgba(139, 92, 246, 0.55);
}
.price-flag {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: #0F1117;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.3rem 1rem;
    border-radius: var(--r-pill);
    white-space: nowrap;
}
.price h3 { font-size: 1.2rem; }
.price-amount {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.price-amount small { font-size: 0.9rem; color: var(--text-faint); font-weight: 500; -webkit-text-fill-color: var(--text-faint); }
.price-note { font-size: 0.86rem; color: var(--text-dim); }
.price ul { display: grid; gap: 0.5rem; flex: 1; }
.price ul li {
    font-size: 0.89rem;
    color: var(--text-dim);
    padding-left: 1.4rem;
    position: relative;
}
.price ul li::before {
    content: '✓';
    position: absolute; left: 0;
    color: var(--mint);
    font-weight: 800;
}

/* ---------- 15. FAQ (ACCORDÉON) ---------- */
.faq { display: grid; gap: 0.8rem; max-width: 780px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.25s var(--ease);
}
.faq-item.open { border-color: rgba(139, 92, 246, 0.55); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    text-align: left;
    padding: 1.05rem var(--sp-3);
    font-weight: 600;
    font-size: 0.97rem;
}
.faq-q .plus {
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.faq-item.open .plus { transform: rotate(45deg); background: var(--grad); color: #0F1117; }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}
.faq-a p {
    padding: 0 var(--sp-3) var(--sp-3);
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* ---------- 16. TÉMOIGNAGES ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.quote {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--sp-3);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    position: relative;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.quote:hover { transform: translateY(-5px); border-color: rgba(52, 211, 153, 0.45); }
.quote-mark {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 0.6;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.quote-stars { color: #FBBF24; letter-spacing: 0.18em; font-size: 0.9rem; }
.quote p { color: var(--text-dim); font-size: 0.93rem; font-style: italic; flex: 1; }
.quote footer { display: flex; align-items: center; gap: 0.75rem; }
.quote-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid rgba(139, 92, 246, 0.35);
}
.quote footer strong { display: block; font-size: 0.92rem; }
.quote footer span { font-size: 0.78rem; color: var(--text-faint); }

/* ---------- 17. PAGE INTERNE : EN-TÊTE ---------- */
.page-head {
    position: relative;
    padding: var(--sp-6) 0 var(--sp-5);
    background:
        radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.18), transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(52, 211, 153, 0.10), transparent 45%),
        var(--bg-soft);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.page-head h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: var(--sp-2);
}
.page-head h1 .accent-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.page-head > .wrap > p { color: var(--text-dim); max-width: 62ch; margin-bottom: var(--sp-3); }
.crumbs { display: flex; gap: 0.6rem; font-size: 0.84rem; color: var(--text-faint); }
.crumbs a { color: var(--accent); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { opacity: 0.5; }

/* ---------- 18. CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: var(--sp-4); align-items: start; }

.info-list { display: grid; gap: var(--sp-2); }
.info {
    display: flex;
    gap: var(--sp-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--sp-2) var(--sp-3);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.info:hover { border-color: rgba(139, 92, 246, 0.5); transform: translateX(5px); }
.info-pic {
    width: 46px; height: 46px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--line);
}
.info-pic img { width: 100%; height: 100%; object-fit: cover; }
.info h3 { font-size: 0.98rem; margin-bottom: 0.15rem; }
.info p, .info a { font-size: 0.88rem; color: var(--text-dim); display: block; }
.info a:hover { color: var(--accent); }

.form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
}
.form h2 { font-size: 1.4rem; margin-bottom: var(--sp-1); }
.form > p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: var(--sp-3); }

.form-alert {
    display: none;
    padding: 0.8rem 1rem;
    border-radius: var(--r-sm);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: var(--sp-2);
}
.form-alert.show { display: block; }
.form-alert.ok { background: var(--mint-soft); color: var(--mint); border: 1px solid rgba(52, 211, 153, 0.4); }
.form-alert.ko { background: rgba(248, 113, 113, 0.12); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.4); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: var(--sp-2); }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--text-dim); }
.field label b { color: var(--accent); }
.field input, .field select, .field textarea {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 0.75rem 0.9rem;
    font-size: 0.93rem;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field .err { font-size: 0.78rem; color: var(--danger); min-height: 1em; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }

.form .btn { width: 100%; margin-top: var(--sp-1); }

/* ---------- 19. CTA + FOOTER ---------- */
.cta {
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.30), transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(52, 211, 153, 0.20), transparent 50%),
        var(--bg-soft);
    border-block: 1px solid var(--line);
    text-align: center;
    padding: var(--sp-6) 0;
}
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: var(--sp-1); }
.cta p { color: var(--text-dim); margin-bottom: var(--sp-3); }
.cta-actions { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }

.site-foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: var(--sp-4) 0 var(--sp-3); margin-top: auto; }
.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--sp-4);
    margin-bottom: var(--sp-3);
}
.foot-grid h4 { font-size: 0.95rem; margin-bottom: var(--sp-1); color: var(--accent); }
.foot-grid p { font-size: 0.88rem; color: var(--text-dim); }
.foot-links { display: grid; gap: 0.45rem; }
.foot-links a { font-size: 0.88rem; color: var(--text-dim); transition: color 0.2s var(--ease), padding-left 0.2s var(--ease); }
.foot-links a:hover { color: var(--accent); padding-left: 5px; }
.foot-base {
    border-top: 1px solid var(--line);
    padding-top: var(--sp-2);
    display: flex;
    justify-content: space-between;
    gap: var(--sp-2);
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-faint);
}

/* ---------- 20. TOPBAR MOBILE + DRAWER ---------- */
.topbar { display: none; }

.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(5, 6, 10, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 55;
}
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }

/* ---------- 21. ANIMATIONS D'APPARITION ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- 22. RETOUR EN HAUT ---------- */
.to-top {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--grad);
    color: #0F1117;
    font-size: 1.2rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.4);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    z-index: 50;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- 23. RESPONSIVE ---------- */
@media (max-width: 1080px) {
    .projects, .quotes, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .prices { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

@media (max-width: 900px) {
    .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--sp-2);
        position: sticky;
        top: 0;
        z-index: 70;
        background: rgba(15, 17, 23, 0.85);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
        padding: 0.7rem 1.25rem;
    }
    html[data-theme="light"] .topbar { background: rgba(243, 243, 248, 0.88); }

    .topbar .brand-pic { width: 40px; height: 40px; border-radius: 12px; }
    .topbar .brand-name { font-size: 0.95rem; }

    .top-actions { display: flex; align-items: center; gap: 0.6rem; }
    .icon-btn {
        width: 40px; height: 40px;
        border-radius: 12px;
        background: var(--surface);
        border: 1px solid var(--line);
        display: grid;
        place-items: center;
        font-size: 1.05rem;
        transition: border-color 0.25s var(--ease);
    }
    .icon-btn:hover { border-color: var(--accent); }
    .burger { display: grid; gap: 4px; }
    .burger span {
        display: block;
        width: 18px; height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    }
    body.drawer-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    body.drawer-open .burger span:nth-child(2) { opacity: 0; }
    body.drawer-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.35s var(--ease);
        box-shadow: var(--shadow);
        width: min(310px, 84vw);
        padding-top: var(--sp-3);
    }
    body.drawer-open .sidebar { transform: none; }

    .shell { margin-left: 0; }
    .wrap { width: min(1120px, 100% - 2.5rem); }

    .hero-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
    .hero-visual { order: -1; }
    .hero-photo:not(.photo-wide) { width: min(260px, 70vw); aspect-ratio: 1; border-radius: 50%; }
    .contact-grid { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
}

@media (max-width: 640px) {
    .projects, .quotes, .grid-3, .grid-2, .grid-4, .stats { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-actions .btn, .cta-actions .btn { width: 100%; }
    .section { padding: var(--sp-5) 0; }
    .toolbar { flex-direction: column; align-items: flex-start; }
    .head { flex-direction: column; align-items: flex-start; }
}
