/* ==========================================================================
   hedi.click — Architecture CSS Minimaliste & Épurée
   Inspirée des standards modernes (Linear, Vercel, Raycast)
   ========================================================================== */

/* --- Variables Globales (Design System Minimaliste) --- */
:root {
    /* Palette Sombre (Défaut) : Noir Obsidienne & Gris Profonds */
    --bg-base: #08090c;
    --bg-surface: #0e1118;
    --bg-surface-hover: #141724;
    --bg-surface-elevated: #181d2c;
    --bg-input: rgba(255, 255, 255, 0.03);

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-focus: rgba(255, 255, 255, 0.35);

    --text-pure: #ffffff;
    --text-primary: #e6e8ec;
    --text-secondary: #9097a6;
    --text-muted: #5a6272;

    /* Accents sobres et élégants */
    --accent: #ffffff;
    --accent-invert: #08090c;
    --accent-subtle: rgba(255, 255, 255, 0.06);
    --accent-highlight: #38bdf8; /* Cyan électrique discret */
    
    --success: #10b981;
    --danger: #ef4444;

    /* Typographie */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Rayons & Transitions */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.18s ease;
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mode Clair Minimaliste */
[data-theme="light"] {
    --bg-base: #f9fafb;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f3f4f6;
    --bg-surface-elevated: #ffffff;
    --bg-input: #f3f4f6;

    --border-subtle: rgba(0, 0, 0, 0.07);
    --border-hover: rgba(0, 0, 0, 0.16);
    --border-focus: rgba(0, 0, 0, 0.4);

    --text-pure: #090a0f;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --accent: #090a0f;
    --accent-invert: #ffffff;
    --accent-subtle: rgba(0, 0, 0, 0.04);
    --accent-highlight: #0284c7;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Grille en arrière-plan subtile */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

[data-theme="light"] .bg-pattern {
    background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    opacity: 0.7;
}

/* Lueur de curseur interactive */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-border-top {
    border-top: 1px solid var(--border-subtle);
}

/* En-tête de section épuré */
.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-pure);
    margin-bottom: 14px;
    line-height: 1.25;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.6;
}

/* Effet Spotlight interactif sur les cartes */
.spotlight-card {
    position: relative;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-smooth);
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -200px);
    left: var(--mouse-x, -200px);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

[data-theme="light"] .spotlight-card::before {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04), transparent 70%);
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Animations Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* --- Barre de Navigation Minimaliste --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 9, 12, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
    padding: 14px 0;
}

[data-theme="light"] .navbar {
    background: rgba(249, 250, 251, 0.85);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text-pure);
}

.logo-symbol {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-weight: 500;
}

.logo-dot {
    color: var(--accent-highlight);
}

.nav-list {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-pure);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Bouton GitHub Navbar épuré */
.btn-github-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.btn-github-nav:hover {
    border-color: var(--border-hover);
    color: var(--text-pure);
}

.btn-github-nav:hover .nav-arrow {
    transform: translate(2px, -2px);
    color: var(--text-pure);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    color: var(--text-pure);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --- Section Hero Minimaliste --- */
.hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

/* Pilule de statut subtile */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--success);
    margin-bottom: 24px;
}

.status-ping {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.hero-title {
    font-size: 3.3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    color: var(--text-pure);
    margin-bottom: 22px;
}

.gradient-text {
    color: var(--text-pure);
    position: relative;
    display: inline-block;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 34px;
    max-width: 540px;
}

.hero-subtext strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 44px;
}

/* Boutons universels minimalistes */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

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

.btn-solid:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-solid i {
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.btn-solid:hover i {
    transform: translateX(3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    color: var(--text-pure);
    background: var(--accent-subtle);
    transform: translateY(-1px);
}

/* Métriques d'en-tête */
.hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    max-width: 480px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-val {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-pure);
}

.meta-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- Showcase de Code avec Onglets Multi-Langages --- */
.hero-preview-wrapper {
    position: relative;
}

.code-window {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.code-window-bar {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.control-dot.close { background: #ff5f56; }
.control-dot.min { background: #ffbd2e; }
.control-dot.expand { background: #27c93f; }

.code-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
    margin-left: 8px;
}

.code-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.code-tab:hover {
    color: var(--text-primary);
}

.code-tab.active {
    background: var(--bg-surface-elevated);
    border-color: var(--border-subtle);
    color: var(--text-pure);
}

.color-java { color: #f89820; }
.color-python { color: #38bdf8; }
.color-js { color: #facc15; }

.file-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Panneaux de code */
.code-panel {
    display: none;
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.code-panel.active {
    display: block;
    opacity: 1;
}

.code-panel pre {
    margin: 0;
}

/* Coloration syntaxique épurée */
.c-anno { color: #c084fc; }
.c-kw { color: #f43f5e; }
.c-class { color: #38bdf8; }
.c-type { color: #2dd4bf; }
.c-fn { color: #60a5fa; }
.c-str { color: #34d399; }
.c-const { color: #fbbf24; }
.c-comment { color: #64748b; font-style: italic; }

.code-window-footer {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid var(--border-subtle);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-branch {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-msg {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

/* --- Ticker Marquee Défilant Minimaliste --- */
.ticker-section {
    padding: 20px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    animation: ticker 35s linear infinite;
    width: max-content;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-item i {
    font-size: 1rem;
    color: var(--text-muted);
}

.ticker-sep {
    color: var(--border-hover);
    font-size: 0.8rem;
}

/* --- Section Bento Compétences --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

.bento-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.bento-index {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.bento-icon-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-pure);
}

.bento-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.bento-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 22px;
    flex-grow: 1;
}

.bento-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bento-chips span {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.bento-card:hover .bento-chips span {
    color: var(--text-secondary);
    border-color: var(--border-hover);
}

/* --- Section Services Entreprises --- */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-row {
    padding: 28px 32px;
    display: grid;
    grid-template-columns: 60px 280px 1fr 120px;
    align-items: center;
    gap: 24px;
}

.service-col-num {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.service-col-title h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 4px;
}

.service-meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.service-col-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-col-action {
    display: flex;
    justify-content: flex-end;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.service-link i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.service-row:hover .service-link {
    color: var(--text-pure);
    border-color: var(--border-hover);
}

.service-row:hover .service-link i {
    transform: translateX(3px);
}

/* --- Section Projets & Réalisations --- */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-pill:hover {
    color: var(--text-pure);
    border-color: var(--border-hover);
}

.filter-pill.active {
    background: var(--text-pure);
    color: var(--bg-base);
    border-color: var(--text-pure);
    font-weight: 600;
}

.projects-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.project-box {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.tech-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-subtle);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 6px;
}

.java-badge { color: #f89820; }
.python-badge { color: #38bdf8; }
.web-badge { color: #facc15; }

.link-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.link-circle:hover {
    border-color: var(--border-hover);
    color: var(--text-pure);
    transform: scale(1.1);
}

.project-box-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 10px;
}

.project-box-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 22px;
    flex-grow: 1;
}

.project-box-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-box-chips span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* GitHub Callout Minimaliste Strip */
.github-strip {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.github-strip-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.github-strip-icon {
    font-size: 2.2rem;
    color: var(--text-pure);
}

.github-strip-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 3px;
}

.github-strip-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* --- Section À Propos --- */
.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.about-text {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.principles-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.principle-item {
    display: flex;
    gap: 14px;
}

.principle-bullet {
    color: var(--accent-highlight);
    font-size: 1.3rem;
    line-height: 1.2;
}

.principle-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 4px;
}

.principle-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Carte d'identité minimaliste */
.id-card {
    padding: 32px;
}

.id-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.id-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--text-pure);
    color: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.id-meta h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-pure);
}

.id-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.id-separator {
    height: 1px;
    background: var(--border-subtle);
    margin: 20px 0;
}

.id-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.id-specs li {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}

.spec-k {
    color: var(--text-muted);
}

.spec-v {
    font-weight: 500;
    color: var(--text-primary);
}

.spec-v.link {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--text-pure);
}

.spec-v.highlight-green {
    color: var(--success);
}

.full-width {
    width: 100%;
}

/* --- Section Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-contact-box {
    padding: 22px 24px;
}

.qc-label {
    display: block;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 6px;
}

.qc-val-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qc-email, .qc-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-pure);
    font-family: var(--font-mono);
}

.btn-copy-small {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-copy-small:hover {
    border-color: var(--border-hover);
    color: var(--text-pure);
}

.notice-card {
    padding: 24px;
    border-left: 2px solid var(--border-focus);
}

.notice-card h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-pure);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Formulaire épuré */
.contact-form-card {
    padding: 32px;
}

.clean-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-wrap label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-wrap .req {
    color: var(--accent-highlight);
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-pure);
    font-size: 0.92rem;
    transition: all var(--transition-fast);
}

.input-wrap select option {
    background: var(--bg-surface);
    color: var(--text-pure);
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    background: rgba(255, 255, 255, 0.05);
}

.form-feedback {
    font-size: 0.88rem;
    padding: 12px;
    border-radius: var(--radius-sm);
    display: none;
    text-align: center;
}

.form-feedback.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.form-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* --- Pied de Page Minimaliste --- */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 36px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-pure);
}

.footer-left p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-center {
    display: flex;
    gap: 24px;
}

.footer-center a {
    font-size: 0.84rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-center a:hover {
    color: var(--text-pure);
}

.footer-right {
    display: flex;
    gap: 12px;
}

.footer-icon-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.footer-icon-link:hover {
    color: var(--text-pure);
    border-color: var(--border-hover);
}

/* Toast Minimaliste */
.minimal-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--accent);
    color: var(--accent-invert);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition-smooth);
}

.minimal-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .projects-layout {
        grid-template-columns: 1fr;
    }

    .service-row {
        grid-template-columns: 40px 1fr auto;
    }

    .service-col-desc {
        grid-column: 2 / -1;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .hero-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background: var(--bg-base);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: left var(--transition-smooth);
        border-top: 1px solid var(--border-subtle);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(3.5px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-col-action {
        justify-content: flex-start;
    }

    .github-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-center {
        flex-wrap: wrap;
        justify-content: center;
    }
}
