@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Playfair+Display:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0c0c0c;
    --bg-elevated: #141414;
    --text: #ffffff;
    --text-muted: #f3f3f3;
    --accent: #00ff88;
    --accent-secondary: #ff8fa3;
    --accent-tertiary: #5ce1ff;
    --mono: 'Space Mono', monospace;
    --serif: 'Playfair Display', Georgia, serif;
    --border: #454545;
}

/* ═══════════════════════════════════════════
   BACKGROUND EFFECTS
═══════════════════════════════════════════ */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, #00ff880f 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, #00d4ff0a 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, #ff336608 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%23222' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

body {
    font-family: var(--mono);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

*, *::before, *::after {
    cursor: none !important;
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════ */

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.15s ease-out;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

.cursor-outline.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: #00ff881a;
}

/* ═══════════════════════════════════════════
   GLITCH TEXT EFFECT
═══════════════════════════════════════════ */

.glitch {
    position: relative;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-secondary);
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent-tertiary);
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); }
    20% { clip-path: polygon(0 15%, 100% 15%, 100% 50%, 0 50%); }
    40% { clip-path: polygon(0 40%, 100% 40%, 100% 75%, 0 75%); }
    60% { clip-path: polygon(0 20%, 100% 20%, 100% 55%, 0 55%); }
    80% { clip-path: polygon(0 60%, 100% 60%, 100% 95%, 0 95%); }
    100% { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); }
}

@keyframes glitch-anim2 {
    0% { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); }
    25% { clip-path: polygon(0 45%, 100% 45%, 100% 80%, 0 80%); }
    50% { clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%); }
    75% { clip-path: polygon(0 55%, 100% 55%, 100% 90%, 0 90%); }
    100% { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(0deg); }
    21% { transform: skew(2deg); }
    22% { transform: skew(0deg); }
    80% { transform: skew(0deg); }
    81% { transform: skew(-1deg); }
    82% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

/* ═══════════════════════════════════════════
   HEADER - STICKY MINIMAL
═══════════════════════════════════════════ */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: #0c0c0ccc;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1002;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 8px var(--accent));
}

/* Header Right - Lang + Burger */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    z-index: 1002;
}

.lang-switch:hover {
    border-color: var(--accent);
}

.lang-active {
    color: var(--accent);
    font-weight: 700;
}

.lang-separator {
    color: var(--text-muted);
}

.lang-inactive {
    color: var(--text-muted);
}

@keyframes blink {
    50% { opacity: 0; }
}

.cursor-blink {
    color: var(--accent);
    font-weight: 400;
    animation: blink 1s step-end infinite;
    margin-left: 0.1em;
}

#menu-toggle {
    display: none;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    background: none;
    border: none;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#menu-toggle:checked ~ .nav-links {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: auto;
    max-height: 100vh;
    background: var(--bg-elevated);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    list-style: none;
    gap: 0.25rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.65, 0, 0.35, 1);
    border-left: 1px solid var(--border);
    z-index: 1001;
}

.nav-links li {
    overflow: hidden;
    width: 100%;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: attr(data-index);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 400;
    color: #b8b8b8;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.nav-links a:hover::before {
    color: var(--accent);
}

.nav-links a:hover::after {
    content: '';
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════ */

main {
    position: relative;
}

section {
    min-height: 100vh;
    padding: 8rem 2rem;
    position: relative;
}

/* ═══════════════════════════════════════════
   HERO - EDITORIAL LAYOUT
═══════════════════════════════════════════ */

.hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: start;
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: 'MAROUANE';
    position: absolute;
    font-family: var(--serif);
    font-size: clamp(15vw, 25vw, 30vw);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--border);
    right: -5%;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right center;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.5;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: var(--text);
}

.hero h1 .line {
    display: block;
    overflow: hidden;
}

.hero h1 .line span {
    display: block;
    transform: translateY(100%);
    animation: reveal 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.hero h1 .line:nth-child(2) span {
    animation-delay: 0.15s;
}

@keyframes reveal {
    to { transform: translateY(0); }
}

.hero h1 .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero p {
    font-family: var(--mono);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards;
}

.hero p::before {
    content: '// ';
    color: var(--accent);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeIn 1s 0.8s forwards;
}

.scroll-indicator::before {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--accent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleX(1); transform-origin: left; }
    50% { transform: scaleX(0.5); transform-origin: left; }
}

/* ═══════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════ */

h2 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

h2::before {
    content: attr(data-number);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 400;
    position: absolute;
    top: -1.5rem;
    left: 0;
    color: var(--accent);
    letter-spacing: 0.1em;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* ═══════════════════════════════════════════
   ABOUT SECTION - ASYMMETRIC
═══════════════════════════════════════════ */

#apropos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 10rem 5%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-content p {
    font-family: var(--mono);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
    line-height: 2;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border);
    transition: all 0.3s ease;
}

.about-content p:hover {
    border-left-color: var(--accent);
    color: var(--text);
    transform: translateX(10px);
}

.about-content p::before {
    content: '>';
    position: absolute;
    left: -1rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-content p:hover::before {
    opacity: 1;
}

/* ═══════════════════════════════════════════
   SKILLS - BRUTAL GRID
═══════════════════════════════════════════ */

#competences {
    padding: 10rem 5%;
    background: var(--bg-elevated);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    background: var(--border);
    margin-top: 4rem;
}

.skill-card {
    background: var(--bg);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 0;
}

.skill-card:hover::before {
    transform: translateY(0);
}

.skill-card:hover {
    color: var(--bg);
}

.skill-card h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.skill-card:hover h3 {
    color: var(--bg);
}

.skill-card p {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.skill-card:hover p {
    color: var(--bg);
}

.skill-card::after {
    content: attr(data-index);
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-family: var(--mono);
    font-size: 4rem;
    font-weight: 700;
    color: var(--border);
    transition: color 0.4s ease;
    z-index: 1;
}

.skill-card:hover::after {
    color: #0000004d;
}

/* ═══════════════════════════════════════════
   PROJECTS - MAGAZINE STYLE
═══════════════════════════════════════════ */

#projets {
    padding: 10rem 5%;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.project-card:first-child {
    border-top: 1px solid var(--border);
}

.project-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.project-card:hover::before {
    width: 4px;
}

.project-card:hover {
    padding-left: 2rem;
}

/* Project Link Styles - Fix blue underline */
.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.project-card h3 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: var(--accent);
}

.project-card p {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 600px;
}

.project-cta {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.project-card:hover .project-cta {
    transform: translateX(5px);
}

.project-card::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-20px);
    font-size: 2rem;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    color: var(--accent);
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */

.contact {
    padding: 10rem 5%;
    background: var(--bg-elevated);
}

.contact h2 {
    text-align: left;
}

.contact-form-section {
    max-width: 650px;
    margin-top: 4rem;
}

/* Form Container */
.form-container {
    background: linear-gradient(135deg, #ffffff08 0%, #ffffff03 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-tag {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}

/* Input Fields */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-field {
    position: relative;
    margin-bottom: 2rem;
}

.input-field input,
.input-field textarea,
.input-field select {
    width: 100%;
    padding: 1.25rem 0 0.75rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.input-field label {
    position: absolute;
    left: 0;
    top: 1rem;
    font-family: var(--mono);
    font-size: 0.9rem;
    color: #e8e8e8;
    pointer-events: none;
    transition: all 0.25s ease;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}

.input-field label::before {
    display: none;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
}

.input-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

/* Label animation on focus/filled */
.input-field input:focus ~ label,
.input-field input:not(:placeholder-shown) ~ label,
.input-field textarea:focus ~ label,
.input-field textarea:not(:placeholder-shown) ~ label,
.input-field select:focus ~ label,
.input-field select:valid ~ label {
    top: -0.5rem;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.input-field input:focus ~ .input-line::after,
.input-field textarea:focus ~ .input-line::after,
.input-field select:focus ~ .input-line::after {
    width: 100%;
}

.input-field input:focus,
.input-field textarea:focus,
.input-field select:focus {
    outline: none;
}

/* Select specific */
.select-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

.select-field select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300ff88' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.select-field select option {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    padding: 0.5rem;
}

/* Textarea */
.textarea-field textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Form Footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text);
    margin: 0;
}

.checkbox-label::before {
    display: none;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkmark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid var(--accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.checkbox-label input:checked ~ .checkmark {
    border-color: var(--accent);
    background: #00ff881a;
}

.checkbox-label input:checked ~ .checkmark::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-label input:checked ~ .checkbox-text {
    color: var(--text);
}

/* Submit Button */
.form-footer button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 50px;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-footer button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #ffffff33;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.form-footer button[type="submit"]:hover::before {
    width: 200px;
    height: 200px;
}

.form-footer button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px #00ff884d;
}

.form-footer button[type="submit"] svg {
    transition: transform 0.3s ease;
}

.form-footer button[type="submit"]:hover svg {
    transform: translateX(3px) translateY(-3px);
}

.form-footer button[type="submit"]::after {
    display: none;
}

/* Honeypot */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* ═══════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════ */

.alert {
    font-family: var(--mono);
    font-size: 0.85rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert::before {
    font-size: 1.1rem;
}

.alert-success {
    background: #00ff8814;
    border: 1px solid #00ff8833;
    color: var(--accent);
}

.alert-success::before {
    content: '✓';
}

.alert-error {
    background: #ff336614;
    border: 1px solid #ff336633;
    color: var(--accent-secondary);
}

.alert-error::before {
    content: '✗';
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */

footer {
    padding: 4rem 5% 3rem;
    border-top: 1px solid var(--border);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left p {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    opacity: 1;
}

.footer-left p:first-child {
    margin-bottom: 0.25rem;
}

/* Social Links */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-muted);
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--accent);
    border-style: solid;
    background: #00ff880d;
    transform: translateY(-3px);
}

.social-link:hover svg {
    color: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent));
}

/* ═══════════════════════════════════════════
   PARTICLES OVERRIDE
═══════════════════════════════════════════ */

.particle {
    display: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE - MOBILE FIRST
═══════════════════════════════════════════ */

@media (max-width: 768px) {
    section {
        padding: 6rem 1.5rem;
    }

    .hero {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero::before {
        font-size: 40vw;
        right: -20%;
    }

    #apropos,
    #competences,
    #projets,
    .contact {
        padding: 6rem 1.5rem;
    }

    /* Header mobile */
    header {
        padding: 1rem 1.5rem;
    }

    .header-right {
        gap: 1rem;
    }

    .lang-switch {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }

    .nav-links {
        width: 100%;
        max-width: 100%;
        padding: 4.5rem 1.5rem 2rem;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.7rem 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .project-card::after {
        display: none;
    }

    /* Form mobile */
    .form-container {
        padding: 2rem 1.5rem;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .form-footer button[type="submit"] {
        justify-content: center;
    }

    footer {
        padding: 3rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-socials {
        justify-content: center;
    }

    /* Hide custom cursor on mobile */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    /* Désactiver le glitch sur mobile */
    .glitch::before,
    .glitch::after {
        display: none;
    }

    .glitch {
        animation: none;
    }

    /* Restore cursor on mobile */
    body, *, *::before, *::after {
        cursor: auto !important;
    }
}

@media (min-width: 769px) {
    .hero {
        grid-template-columns: 1fr;
        padding-left: 10%;
    }

    #apropos {
        padding-left: 10%;
        padding-right: 10%;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links a::before {
        left: -4rem;
    }

    /* Logo plus grand sur tablette/desktop */
    .logo-img {
        height: 45px;
    }
}

@media (min-width: 1200px) {
    .hero {
        padding-left: 15%;
    }

    #apropos {
        padding-left: 15%;
        padding-right: 15%;
    }

    /* Logo plus grand sur grand écran */
    .logo-img {
        height: 55px;
    }
}

@media (min-width: 1600px) {
    /* Logo encore plus grand sur très grand écran */
    .logo-img {
        height: 65px;
    }
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   SELECTION STYLE
═══════════════════════════════════════════ */

::selection {
    background: var(--accent);
    color: var(--bg);
}

::-moz-selection {
    background: var(--accent);
    color: var(--bg);
}

/* ═══════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ═══════════════════════════════════════════
   WCAG FOCUS STYLES
═══════════════════════════════════════════ */

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
.social-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    background: #00e67a1a;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    padding: 1rem 2rem;
    font-family: var(--mono);
    font-size: 0.9rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    top: 0;
}