/* STYLES COMMUNS  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABLES PORTFOLIO°*/
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-gray: #e0e0e0;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* STYLES PORTFOLIO */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6; 
    background: 
    url('background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

}


h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* HEADER PORTFOLIO */
header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--light-gray);
    padding: var(--spacing-md) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* INTRO PORTFOLIO */
.intro {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    max-width: 900px;
}

.intro-text {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 300;
    color: var(--text-color);
    animation-duration: 3s;
    animation-name: slide-in;
}

/* Animation intro text */
@keyframes slide-in {
  0% {
    translate: 150vw 0;
    scale: 200% 1;
    opacity: 0;
    color: whitesmoke;
  }
  25% {
    color: greenyellow;
  }
  50% {
    color: blueviolet;
  }
  75% {
    color: hotpink;
  }
  100% {
    translate: 0 0;
    scale: 100% 1;
    opacity: 1;
  }
}

/* PROJECTS PORTFOLIO */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
    grid-auto-flow: dense;
}

.project-card {
    position: relative;
    overflow: hidden;
    background-color: white;
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card.large {
    grid-column: span 3;
    grid-row: span 1;
}

.project-card.tall {
    grid-row: span 1;
}

.project-card.wide {
    grid-column: span 2;
}

.project-link {
    display: block;
    height: 100%;
}

.project-image {
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
    aspect-ratio: 4/3;
}

.project-card.tall .project-image {
    aspect-ratio: 2.5/4;
}

/* Images des projets larges */
.project-card.large .project-image {
    aspect-ratio: 16/9;
}

.project-card.large .project-image img {
    object-fit: cover;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-info {
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.project-info .year {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

/*
   FOOTER - PORTFOLIO */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-left p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: right;
}

.footer-right a {
    font-size: 0.95rem;
}

.footer-right a:hover {
    color: var(--accent-color);
}

/* CV */

/* Body  et BACKGROUND IMAGE */
body.cv-modern {
  background: 
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
    url('background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Section Hero CV */
.cv-hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.cv-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.cv-photo-section {
    margin-bottom: 2rem;
}

.photo-wrapper {
    position: relative;
    display: inline-block;
}

.cv-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #3D5A99;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Étoiles */
.star-decoration {
    position: absolute;
    font-size: 32px;
    color: #E07855;
    animation: spin-star 4s linear infinite;
}

.star-1 {
    top: 10px;
    right: 20px;
}

.star-2 {
    bottom: 20px;
    left: 10px;
    animation-duration: 5s;
}

.star-3 {
    top: 50%;
    right: -10px;
    animation-duration: 6s;
}

/* Animation */
@keyframes spin-star {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% { 
        transform: rotate(180deg) scale(1);
        opacity: 1;
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
        opacity: 0.8;
    }
    100% { 
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

.cv-intro h1 {
    font-family: "Imperial Script", cursive;;
    font-size: 2rem;
    font-weight: 800;
    color: #3D5A99;
    margin: 0 0 0.3rem;
    letter-spacing: -1px;
}


.cv-subtitle {
    font-size: 1rem;
    color: #E07855;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Contact Badges */
.contact-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    padding: 2rem 0 3rem;
    flex-wrap: wrap;
}

.contact-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #3D5A99;
    transition: all 0.3s ease;
}

.contact-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #E07855;
}

.badge-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.badge-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #E07855;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.badge-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

/* Grid */
.cv-content-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 4rem;
    padding: 2rem 0 4rem;
}

/* Blocks CV */
.cv-block {
    margin-bottom: 3rem;
}

.cv-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #3D5A99;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3D5A99;
    letter-spacing: 0.5px;
}

/* Experience */
.cv-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.cv-item:last-child {
    border-bottom: none;
}

.cv-item-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #3D5A99;
    margin: 0;
    flex: 1;
}

.item-year {
    font-size: 0.95rem;
    color: #E07855;
    font-weight: 600;
}

.item-company {
    font-size: 0.9rem;
    color: #E07855;
    font-weight: 500;
    margin: 0.25rem 0 0.5rem;
    font-style: italic;
}

.item-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Tags */
.tags-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: #3D5A99;
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Listes */
.simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.simple-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #E07855;
    font-weight: bold;
}

/* Languages */
.lang-item {
    margin-bottom: 1.5rem;
}

.lang-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.lang-name {
    font-weight: 600;
    color: #3D5A99;
    font-size: 0.95rem;
}

.lang-level {
    font-size: 0.85rem;
    color: #E07855;
    font-weight: 500;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

/* barre de progression */
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3D5A99 0%, #E07855 100%);
    border-radius: 10px;
}

/* Education */
.edu-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.edu-item:last-child {
    border-bottom: none;
}

.edu-year {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: #3D5A99;
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.edu-title {
    font-size: 1rem;
    font-weight: 600;
    color: #3D5A99;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.edu-school {
    font-size: 0.85rem;
    color: #E07855;
    font-weight: 500;
    margin: 0.25rem 0;
    font-style: italic;
}

.edu-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0.5rem 0 0;
}

/* Skills */
.skills-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.skill-item {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 120px;
    padding: 0.75rem;
    background: white;
    border: 2px solid #3D5A99;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3D5A99;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: #3D5A99;
    color: white;
    transform: translateY(-2px);
}

/* Workshops */
.workshop-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #E07855;
}

.star-icon {
    font-size: 1.5rem;
    color: #E07855;
    line-height: 1;
    flex-shrink: 0;
}

.workshop-item strong {
    display: block;
    font-size: 0.9rem;
    color: #3D5A99;
    margin-bottom: 0.25rem;
}

.workshop-item p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* ========================================
   @ - PORTFOLIO
   ======================================== */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .project-card.large,
    .project-card.wide,
    .project-card.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .intro-text {
        font-size: 1.25rem;
    }
    
    nav {
        gap: var(--spacing-sm);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-right {
        text-align: left;
    }
}

/* MEDIA QUERY @ 475px */
@media (max-width: 475px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav {
        width: 100%;
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .intro {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .intro-text {
        font-size: 1.1rem;
    }

    /* CV Responsive @ 475px */
    .cv-hero {
        padding: 3rem 0 2rem;
    }

    .cv-intro h1 {
        font-size: 2rem;
    }

    .cv-photo {
        width: 150px;
        height: 150px;
    }

    .star-decoration {
        font-size: 24px;
    }

    /* Contact badges */
    .contact-section {
        flex-direction: column;
        align-items: stretch;
        padding: 2rem 1rem;
    }

    .contact-badge {
        width: 100%;
    }

    /* Grid 1 colonne */
    .cv-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 0 2rem;
    }

    .cv-section-title {
        font-size: 1.4rem;
    }

    .tags-container {
        gap: 0.5rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* Skills en colonne sur mobile */
    .skills-list {
        flex-direction: column;
    }

    .skill-item {
        flex: 1 1 100%;
    }
}

@media (min-width: 476px) and (max-width: 768px) {
    .cv-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* MEDIA QUERY @ 1280px */
@media (min-width: 1280px) {
    /* Styles pour grands écrans - Portfolio */
    .container {
        max-width: 1600px;
    }

    /* Styles pour grands écrans - CV */
    .cv-content-grid {
        max-width: 1400px;
        margin: 0 auto;
    }

    .cv-intro h1 {
        font-size: 3.5rem;
    }

    .cv-section-title {
        font-size: 2rem;
    }
}