/*
Theme Name: Noa Portfolio
Theme URI: https://portfolio.nonov.fr
Author: Noa Voiturier
Description: Portfolio One-Page avec un design moderne, animations et interface sombre épurée.
Version: 1.0
Text Domain: noa-portfolio
*/

:root {
    --primary: #6C63FF;
    --secondary: #4E4BFF;
    --dark: #121212;
    --dark-light: #1E1E1E;
    --light-text: #F5F5F5;
    --card-bg: #252525;
    --hover-color: #8A84FF;
}

/* Theme clair */
[data-theme="light"] {
    --primary: #6C63FF;
    --secondary: #4E4BFF;
    --dark: #F5F5F5;
    --dark-light: #FFFFFF;
    --light-text: #1E1E1E;
    --card-bg: #FFFFFF;
    --hover-color: #8A84FF;
}

/* Styles globaux */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--light-text);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    padding: 30px 0;
}

h1, h2, h3 {
    color: var(--light-text);
    position: relative;
    display: inline-block;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary);
    bottom: -8px;
    left: 25%;
    transform: scaleX(0);
    transition: transform 0.4s ease-out;
}

h1:hover::after, h2:hover::after {
    transform: scaleX(1);
}

/* Animations globales */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    padding: 10px 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding 0.3s ease, background-color 0.3s ease;
}

[data-theme="light"] header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 5px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-nav .nav-item {
    margin: 0 10px;
}

.navbar-nav .nav-link {
    color: var(--light-text) !important;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* Mobile navbar */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--dark);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }

    [data-theme="light"] .navbar-collapse {
        background-color: var(--dark-light);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .theme-toggle-btn {
        margin: 10px auto 0;
    }
}

/* Sections */
section {
    padding: 120px 0 80px;
}

section:first-of-type {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Cards */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.card img {
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    margin: 20px 0 10px;
    color: var(--primary);
}

.card p {
    color: #ccc;
    line-height: 1.6;
}

/* Contact Form */
form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #ddd;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25);
}

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

button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(108, 99, 255, 0.3);
}

button:hover::before {
    opacity: 1;
}

button:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    background-color: var(--dark-light);
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    margin: 0;
    color: #999;
}

.admin-link {
    display: inline-block;
    margin-top: 12px;
    color: #666;
    font-size: 0.75rem;
    opacity: 0.25;
    transition: opacity 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.admin-link:hover {
    opacity: 1;
    color: var(--primary);
}

.social-icons {
    margin: 15px 0;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    color: #ccc;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .card-container {
        gap: 20px;
    }

    form {
        width: 90%;
    }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-content {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    top: 20px;
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

/* Compétences Cards */
.competence-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.competence-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.competence-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.competence-icon i {
    font-size: 2rem;
    color: white;
}

.competence-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.competence-card p {
    margin-bottom: 20px;
    color: #ccc;
}

.competence-card .btn {
    margin-top: auto;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        margin-bottom: 30px;
        left: 0 !important;
    }
    
    .timeline-content::before {
        left: 21px !important;
    }
}

/* Pages de Compétences */
.competence-detail {
    padding: 120px 0 80px;
}

.competence-description {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.competence-description p {
    color: #ccc;
    line-height: 1.8;
}

.competence-sidebar {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.competence-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.competence-info li {
    margin-bottom: 15px;
    color: #ccc;
}

.competence-info li i {
    color: var(--primary);
    margin-right: 10px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-tag {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card--featured {
    border: 2px solid #F5C518;
    box-shadow: 0 0 15px rgba(245, 197, 24, 0.2);
}

.project-card--featured:hover {
    box-shadow: 0 10px 25px rgba(245, 197, 24, 0.35);
}

.featured-badge {
    background: linear-gradient(45deg, #F5C518, #e0a800);
    color: #1a1a1a;
    font-weight: 600;
}

/* Vedette sur les cartes Bootstrap (page d'accueil) */
.card--featured {
    border: 2px solid #F5C518 !important;
    box-shadow: 0 0 15px rgba(245, 197, 24, 0.2);
    position: relative;
}

.card--featured:hover {
    box-shadow: 0 10px 25px rgba(245, 197, 24, 0.35);
}

.project-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.project-content p {
    color: #ccc;
    margin-bottom: 15px;
}


/* Pages des projets */

/* Project Detail Page Styles */
.project-detail {
    padding: 120px 0 80px;
}

.project-header h1 {
    color: var(--primary);
    margin-bottom: 15px;
}

.project-header .project-tags {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-main-content {
    background: var(--dark-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-description h2,
.project-features h2,
.project-technologies h2,
.project-challenges h2 {
    display: block;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.project-features ul {
    list-style-type: none;
    padding: 0;
}

.project-features ul li {
    padding: 10px;
    background: var(--card-bg);
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.project-features ul li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 15px;
    font-weight: bold;
}

.project-technologies .tech-details {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
}

.project-technologies h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.project-technologies ul {
    list-style-type: none;
    padding: 0;
}

.project-technologies ul li {
    margin-bottom: 10px;
    color: #ccc;
}

.project-sidebar {
    position: sticky;
    top: 120px;
}

.project-info-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.project-info-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.project-info-card ul li {
    margin-bottom: 10px;
    color: #ccc;
}

.project-links .btn {
    margin-bottom: 10px;
}

.project-gallery img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .project-sidebar {
        position: static;
        margin-top: 30px;
    }
}


.section-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin-bottom: 30px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.info-item {
    margin-bottom: 25px;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.info-item h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(74, 107, 253, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3457eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 107, 253, 0.4);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.career-goals {
    margin-top: 25px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.career-goals h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Bouton de basculement thème */
.theme-toggle-btn {
    background: transparent;
    border: 2px solid var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    padding: 0;
}

.theme-toggle-btn:hover {
    background: var(--primary);
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.theme-toggle-btn i {
    color: var(--light-text);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
    transform: scale(1.1);
}

/* Transitions fluides pour le changement de thème */
body, header, .card, .card-bg, form, input, textarea, .timeline-content,
.competence-card, .competence-description, .competence-sidebar,
.project-card, .project-main-content, .info-item, .career-goals {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .card:hover {
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.15);
}

[data-theme="light"] input,
[data-theme="light"] textarea {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer {
    background-color: var(--dark-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .footer p {
    color: #666;
}

[data-theme="light"] .social-icons a {
    color: #666;
}

/* Navbar toggler en mode clair */
[data-theme="light"] .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="light"] .navbar-nav .nav-link {
    color: #1E1E1E !important;
}

[data-theme="light"] .navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

[data-theme="light"] .navbar-brand .text-light {
    color: #1E1E1E !important;
}