﻿/* Nathan Diegelmann - Portfolio One Page Dark Racing Theme v3.0 */

/* === SECTIONS === */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

section {
    min-height: auto;
    padding: 3rem 2rem;
    position: relative;
    overflow-x: hidden;
}

.section-dark {
    background: var(--bg-primary);
    padding-top: 3rem;
}

.section-light {
    background: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-1200 {
    max-width: 1200px;
    margin: 0 auto;
}

.container-1400 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title-main {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    color: var(--racing-red);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-family: var(--font-title);
    text-shadow: 0 0 30px rgba(255, 10, 10, 0.5);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.3rem;
    margin-bottom: 4rem;
    font-weight: 400;
}

/* === HERO SOCIAL LINKS === */
.hero-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 2px solid var(--steel-gray);
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.social-link:hover {
    background: var(--racing-red);
    border-color: var(--racing-red);
    color: #fff;
    transform: translateY(-3px);
}

/* Bouton CV spécifique */
.social-link--cv {
    background: linear-gradient(135deg, #FF0A0A, #CC0000);
    border-color: #FF0A0A;
    color: #fff;
    font-weight: 700;
}

.social-link--cv:hover {
    background: linear-gradient(135deg, #FF4444, #FF0A0A);
    transform: translateY(-3px) scale(1.05);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-description-v2 {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-description-v2 strong {
    color: var(--racing-red);
}

/* Navigation fixed */
.cyber-nav-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid var(--racing-red);
}

/* Projects Notice */
.projects-notice {
    background: var(--bg-secondary);
    border: 1px solid var(--steel-gray);
    border-left: 4px solid var(--racing-red);
    padding: 1.5rem 2rem;
    margin: 0 auto 3rem;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
}

.projects-notice i {
    font-size: 2rem;
    color: var(--racing-red);
    flex-shrink: 0;
    text-shadow: 0 0 10px rgba(255, 10, 10, 0.5);
}

.projects-notice p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.projects-notice strong {
    color: var(--racing-red);
    font-weight: 700;
}

/* === PROJECT CARDS - RACING STYLE === */
:root {
    --electric-color: #FF0A0A;
    --electric-color-secondary: #CC0000;
}

/* Projects Grid */
.projects-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

/* Electric Card Wrapper */
.electric-card-wrapper {
    position: relative;
    padding: 2px;
    background: linear-gradient(135deg,
            rgba(255, 10, 10, 0.3),
            transparent 40%,
            transparent 60%,
            rgba(204, 0, 0, 0.3));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    will-change: transform;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.electric-card-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--racing-red), var(--racing-red-dark));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.electric-card-wrapper:hover::before {
    opacity: 1;
}

/* Glow effects */
.electric-glow-1 {
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(255, 10, 10, 0.4);
    pointer-events: none;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.electric-glow-2 {
    position: absolute;
    inset: -2px;
    border: 2px solid var(--racing-red);
    filter: blur(8px);
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.electric-card-wrapper:hover .electric-glow-2 {
    opacity: 0.7;
}

.electric-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    mix-blend-mode: overlay;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15),
            transparent 40%,
            transparent 60%,
            rgba(255, 255, 255, 0.15));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.electric-card-wrapper:hover .electric-overlay {
    opacity: 1;
}

.electric-bg-glow {
    position: absolute;
    inset: -10px;
    filter: blur(20px);
    opacity: 0;
    z-index: -1;
    background: linear-gradient(135deg,
            var(--racing-red),
            transparent 50%,
            var(--racing-red-dark));
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.electric-card-wrapper:hover .electric-bg-glow {
    opacity: 0.3;
}

.electric-card-wrapper:hover {
    transform: translateY(-8px);
}

/* Project Card */
.project-card-full {
    background: var(--bg-secondary);
    border: none;
    padding: 2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.project-featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--racing-red), var(--racing-red-dark));
    color: var(--white-pure);
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(255, 10, 10, 0.4);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.project-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-family: var(--font-title);
    text-transform: uppercase;
}

.project-desc {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--bg-tertiary);
    border: 1px solid var(--steel-gray);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-mono);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.tech-tag:hover {
    border-color: var(--racing-red);
    color: var(--racing-red);
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--steel-gray);
}

/* Project Buttons */
.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, color 0.3s ease;
    will-change: transform;
    border: none;
    cursor: none;
    position: relative;
    overflow: hidden;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.project-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.project-btn:hover i {
    transform: scale(1.15);
}

/* Demo Button */
.project-btn--demo {
    background: linear-gradient(135deg, var(--racing-red) 0%, var(--racing-red-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 10, 10, 0.4);
}

.project-btn--demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.project-btn--demo:hover::before {
    left: 100%;
}

.project-btn--demo:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 10, 10, 0.5);
}

/* GitHub Button */
.project-btn--github {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    color: var(--text-secondary);
    border: 1px solid var(--steel-gray);
}

.project-btn--github:hover {
    border-color: var(--racing-red);
    color: var(--racing-red);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(255, 10, 10, 0.3);
}

/* Disabled Button */
.project-btn--disabled {
    opacity: 0.5;
    cursor: none;
    pointer-events: none;
}

/* === SKILLS SECTION - RACING DASHBOARD === */
#competences {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Skills Columns Grid */
.skills-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Skills Category */
.skills-category {
    background: var(--bg-secondary);
    border: 1px solid var(--steel-gray);
    border-left: 4px solid var(--racing-red);
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skills-category:hover {
    border-color: var(--racing-red);
    transform: translateX(5px);
}

/* Category Title */
.category-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--racing-red);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--racing-red);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-title i {
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 10, 10, 0.5);
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Skill Item */
.skill-item {
    position: relative;
}

.skill-item .skill-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-item .skill-name span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Skill Bar Background */
.skill-bar-bg {
    height: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--steel-gray);
    position: relative;
    overflow: hidden;
}

.skill-bar-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 8px,
            rgba(0, 0, 0, 0.3) 8px,
            rgba(0, 0, 0, 0.3) 10px);
    z-index: 1;
}

/* Skill Bar Fill */
.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--racing-red-dark), var(--racing-red), var(--racing-red-light));
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(255, 10, 10, 0.5);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--white-hot, #fff);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Legacy skill classes for compatibility */
.skill-category {
    margin-bottom: 4rem;
}

.skill-category-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--racing-red);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--racing-red);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skill-category-title i {
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 10, 10, 0.5);
}

/* Skills Grid */
.skills-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Skill Item - Speedometer Style */
.skill-item-full {
    background: var(--bg-secondary);
    border: 1px solid var(--steel-gray);
    border-left: 4px solid var(--racing-red);
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 10, 10, 0.1), transparent);
    transition: width 0.4s ease;
}

.skill-item-full:hover {
    border-color: var(--racing-red);
    transform: translateX(10px);
}

.skill-item-full:hover::before {
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-name i {
    color: var(--racing-red);
    font-size: 1.3rem;
}

.skill-percentage {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--racing-red);
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 10, 10, 0.3);
}

/* Progress Bar - Racing Style */
.skill-bar-full {
    height: 10px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.skill-bar-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 8px,
            rgba(0, 0, 0, 0.3) 8px,
            rgba(0, 0, 0, 0.3) 10px);
    z-index: 1;
}

.skill-progress-full {
    height: 100%;
    background: linear-gradient(90deg, var(--racing-red-dark), var(--racing-red), var(--racing-red-light));
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(255, 10, 10, 0.5);
    position: relative;
}

.skill-progress-full::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--white-hot);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* === CONTACT SECTION === */
#contact {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form-modern {
    background: var(--bg-secondary);
    border: 1px solid var(--steel-gray);
    border-left: 4px solid var(--racing-red);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group label::before {
    content: '> ';
    color: var(--code-green);
    font-family: var(--font-mono);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border: 2px solid var(--steel-gray);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--racing-red);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--racing-red), var(--racing-red-dark));
    color: var(--white-hot);
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 10, 10, 0.5);
}

/* === TIMELINE SECTION === */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--racing-red), var(--racing-red-dark));
    box-shadow: 0 0 15px rgba(255, 10, 10, 0.5);
}

.timeline-item {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--steel-gray);
    border-left: 4px solid var(--racing-red);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 2.5rem;
    width: 16px;
    height: 16px;
    background: var(--racing-red);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 15px rgba(255, 10, 10, 0.6);
}

.timeline-item:hover {
    transform: translateX(10px);
    border-color: var(--racing-red);
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    color: var(--racing-red);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
    border: 1px solid var(--racing-red);
}

.timeline-date i {
    color: var(--racing-red);
}

.timeline-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.timeline-company i {
    color: var(--racing-red);
}

.timeline-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    margin-left: 1rem;
}

.timeline-location i {
    color: var(--racing-red);
    font-size: 0.85rem;
}

.timeline-desc {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* === ABOUT SECTION === */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-intro-text {
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-intro-text strong {
    color: var(--racing-red);
}

.about-intro-secondary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-intro-secondary strong {
    color: var(--racing-red);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--bg-secondary);
    border: 1px solid var(--steel-gray);
    border-left: 4px solid var(--racing-red);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--racing-red);
}

.about-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--racing-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--racing-red);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.about-card-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--racing-red);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-card-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-card-link-hint {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--racing-red);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.about-card-link:hover .about-card-link-hint {
    opacity: 1;
}

.about-card-text strong {
    color: var(--text-primary);
}

/* === TECHNOLOGIES SECTION === */
.technologies-section {
    margin-top: 4rem;
}

.technologies-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--racing-red);
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.technologies-title i {
    text-shadow: 0 0 15px rgba(255, 10, 10, 0.5);
}

.technologies-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background: var(--bg-secondary);
    border: 1px solid var(--steel-gray);
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: none;
    min-height: 120px;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--racing-red);
    transition: height 0.3s ease;
}

.tech-card:hover {
    border-color: var(--racing-red);
    transform: scale(1.1);
}

.tech-card:hover::before {
    height: 100%;
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    border: 2px solid var(--steel-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--racing-red);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    border-color: var(--racing-red);
    box-shadow: 0 0 15px rgba(255, 10, 10, 0.4);
}

.tech-name {
    display: block !important;
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.tech-description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    display: none;
}

/* Modal pour description technologies */
.tech-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.tech-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--racing-red);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideIn 0.3s ease;
    position: relative;
}

.tech-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--racing-red);
    cursor: none;
    transition: all 0.3s ease;
}

.tech-modal-close:hover {
    transform: scale(1.2);
}

.tech-modal-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-primary);
    border: 2px solid var(--racing-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--racing-red);
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px rgba(255, 10, 10, 0.4);
}

.tech-modal-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--racing-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.tech-modal-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === CONTACT SECTION === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--steel-gray);
    border-left: 4px solid var(--racing-red);
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(10px);
    border-color: var(--racing-red);
    box-shadow: 0 0 20px rgba(255, 10, 10, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: 2px solid var(--racing-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--racing-red);
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.contact-info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* Contact Form Container */
.contact-form-container {
    background: var(--bg-secondary);
    border: 1px solid var(--steel-gray);
    border-left: 4px solid var(--racing-red);
    padding: 3rem;
    margin-bottom: 3rem;
}

.contact-form-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--racing-red);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form-title i {
    text-shadow: 0 0 10px rgba(255, 10, 10, 0.5);
}

.contact-form-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

#contactForm .form-group input,
#contactForm .form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border: 2px solid var(--steel-gray);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

#contactForm .form-group input:focus,
#contactForm .form-group textarea:focus {
    outline: none;
    border-color: var(--racing-red);
    box-shadow: 0 0 20px rgba(255, 10, 10, 0.3);
}

#contactForm .form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Checkbox CGU */
.form-checkbox-group {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--steel-gray);
    background: var(--bg-primary);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    user-select: none;
}

.checkbox-label:hover {
    border-color: var(--racing-red);
    background: rgba(255, 10, 10, 0.03);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    display: inline-block;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border: 2px solid var(--chrome);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    border-radius: 3px;
    box-sizing: border-box;
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--racing-red);
    background: rgba(255, 10, 10, 0.05);
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    border-color: var(--racing-red);
    background: var(--racing-red);
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked~span:last-child {
    color: var(--text-primary);
}

.cgu-link {
    color: var(--racing-red);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 10, 10, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
    font-weight: 600;
}

.cgu-link:hover {
    color: var(--racing-red-light);
    border-bottom-color: var(--racing-red-light);
}

/* Cyber Button */
.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
}

.cyber-btn.primary {
    background: linear-gradient(135deg, var(--racing-red), var(--racing-red-dark));
    color: #fff;
}

.cyber-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cyber-btn.primary:hover::before {
    left: 100%;
}

.cyber-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 10, 10, 0.5);
}

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Honeypot */
.honeypot {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

/* Form Test Status */
.form-test-status {
    margin-left: 1rem;
    font-size: 1rem;
}

.form-test-status.test-success {
    color: var(--success-green, #00FF88);
}

.form-test-status.test-error {
    color: var(--error-red, #FF0A0A);
}

#formMessage {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
}

/* Alternance Box */
.alternance-box {
    background: var(--bg-secondary);
    border: 2px solid var(--racing-red);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.alternance-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--racing-red), var(--racing-red-light));
    box-shadow: 0 0 15px rgba(255, 10, 10, 0.5);
}

.alternance-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--racing-red);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alternance-title i {
    text-shadow: 0 0 10px rgba(255, 10, 10, 0.5);
}

.alternance-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.alternance-text strong {
    color: var(--racing-red);
}

/* === PORTFOLIO FOOTER === */
.portfolio-footer {
    background: var(--bg-primary);
    border-top: 4px solid var(--racing-red);
    padding: 3rem 2rem;
    box-shadow: 0 -10px 30px rgba(255, 10, 10, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--racing-red);
    text-shadow: 0 0 10px rgba(255, 10, 10, 0.5);
}

.footer-divider {
    padding-top: 2rem;
    border-top: 1px solid var(--steel-gray);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-signature {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* === FOOTER === */
.cyber-footer {
    background: var(--bg-primary);
    border-top: 2px solid var(--racing-red);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--racing-red);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 10, 10, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--racing-red);
    text-shadow: 0 0 10px rgba(255, 10, 10, 0.5);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Racing stripe in footer */
.footer-stripe {
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--racing-red) 20%, var(--racing-red) 80%, transparent 100%);
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(255, 10, 10, 0.5);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    section {
        padding: 5rem 1.5rem 3rem;
    }

    .section-dark {
        padding-top: 6rem;
    }

    .container-1400 {
        padding: 0 1.5rem;
    }

    .section-title-main {
        font-size: 2.5rem;
        letter-spacing: 3px;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .projects-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .skills-columns {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .skills-full-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .technologies-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .about-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1rem 2.5rem;
    }

    .section-dark {
        padding-top: 5rem;
    }

    .container-1400 {
        padding: 0 1rem;
    }

    .section-title-main {
        font-size: 2rem;
        letter-spacing: 2px;
        margin-bottom: 0.75rem;
        padding-top: 0.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .projects-notice {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.5rem;
        margin-bottom: 2rem;
    }

    .projects-notice i {
        font-size: 1.5rem;
    }

    .projects-notice p {
        font-size: 0.95rem;
    }

    .projects-grid-full {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .project-card-full {
        padding: 1.5rem;
    }

    .contact-form-modern {
        padding: 2rem;
    }

    /* Skills responsive */
    .skills-columns {
        grid-template-columns: 1fr;
    }

    /* Timeline responsive */
    .timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -30px;
        width: 12px;
        height: 12px;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    /* About responsive */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-intro-text {
        font-size: 1.1rem;
    }

    /* Technologies responsive */
    .technologies-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }

    .tech-card {
        padding: 0.75rem 0.5rem;
    }

    .tech-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .tech-name {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0.5px;
    }

    .tech-description {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .technologies-title {
        font-size: 1.5rem;
    }

    /* Contact responsive */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 2rem;
    }

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

    /* Footer responsive */
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .section-title-main {
        font-size: 1.6rem;
    }

    .project-title {
        font-size: 1.4rem;
    }

    .project-links {
        flex-direction: column;
    }

    .project-btn {
        width: 100%;
        justify-content: center;
    }

    /* Hero responsive */
    .hero-socials {
        justify-content: center;
    }

    /* Timeline responsive */
    .timeline-title {
        font-size: 1.2rem;
    }

    .timeline-date {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* About responsive */
    .about-card {
        padding: 1.5rem;
    }

    .about-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Tech responsive */
    .tech-card {
        padding: 1.5rem;
    }

    /* Contact responsive */
    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .alternance-box {
        padding: 1.5rem;
    }

    .alternance-title {
        font-size: 1.2rem;
        flex-direction: column;
    }
}