/* Police Inter depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========== Variables & Reset ========== */
:root {
    --color-bordeaux: #584B77;
    --color-red: #8073A2;
    --color-light-red: #BCAEE1;
    --color-beige: #F5E6D3;
    --color-white: #FFFFFF;
    --color-dark: #1A0000;
    --color-violet-nav: #584B77;
    --color-violet-light: #BCAEE1;
    --color-violet-dark: #8073A2;
}

/* Police locale Rosie Brown (woff2 fourni dans assets/fronts) */
@font-face {
    font-family: 'Rosie Brown';
    src: url('assets/fronts/Rosie Brown Serif Demo.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Pour compenser la hauteur de la navbar */
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--color-beige);
    overflow-x: hidden;
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(88, 75, 119, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(245, 230, 211, 0.1);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 85px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-beige);
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--color-white);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    background: radial-gradient(circle at center, #BCAEE1 0%, #8073A2 100%);
    position: relative;
    display: block;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(128, 115, 162, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 100%;
    width: 100%;
    height: calc(100vh - 80px);
    padding: 0;
    position: relative;
    z-index: 10;
}

/* ========== Titre Portfolio ========== */
.title-section {
    position: absolute;
    top: 58%; /* ajouter plus d'espace entre la navbar et le texte */
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    z-index: 5;
    pointer-events: none;
    transform: translateY(-50%);
}

.main-title {
    /* taille fixée à 250px */
    font-size: clamp(6rem, 30vw, 250px);
    font-weight: 900;
    line-height: 0.85; /* serrer pour que les 3 lignes se chevauchent légèrement */
    letter-spacing: 12px;
    color: var(--color-beige);
    text-transform: uppercase;
    position: relative;
    opacity: 0.4; /* 40% opacité */
    margin: 0;
    padding: 0;
    display: block;
}

.main-title-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.08em;
}

/* Appliquer la police Rosie Brown aux titres principaux */
.section-title,
.main-title,
.designer-title,
.designer-part-1,
.designer-part-2,
.project-title {
    font-family: 'Rosie Brown', serif;
    font-variant-alternates: stylistic(1);
    font-feature-settings: "ss01" 1, "salt" 1;
}

/* ========== Sous-titres UX/UI/WEB ========== */
.subtitle-list {
    position: absolute;
    top: 55%;
    left: 15%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 15;
}

.subtitle-item {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 10px;
    color: var(--color-beige);
    text-transform: uppercase;
    opacity: 0.95;
    text-align: left;
}

/* ========== Section DESIGNER ========== */
.designer-section {
    position: absolute;
    top: 55%;
    right: 15%;
    transform: translateY(-50%);
    z-index: 15;
    text-align: left;
}

.designer-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 10px;
    color: var(--color-beige);
    text-transform: uppercase;
    font-family: 'Georgia', serif;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.designer-part-1 {
    display: block;
    color: var(--color-beige);
}

.designer-part-2 {
    display: block;
    color: var(--color-beige);
}

.designer-name {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--color-beige);
    text-transform: uppercase;
    margin-top: 1rem;
    -webkit-text-stroke: 0;
    color: var(--color-beige);
}

/* ========== Icône centrale en arrière-plan ========== */
.center-image {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

.center-image img {
    width: clamp(280px, 35vw, 500px);
    height: auto;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    opacity: 0.95;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========== Sections communes ========== */
.section {
    min-height: auto;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 3rem;
    letter-spacing: -2px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--color-light-red);
}

/* ========== Section A Propos ========== */
.about-section {
    background: linear-gradient(135deg, #130E1E 0%, #271A3F 100%);
    color: var(--color-beige);
    padding-top: 6rem;
}

.about-content {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    position: relative;
}

.about-star-image {
    position: absolute;
    right: -550px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: auto;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.skills {
    margin-top: 3rem;
}

.skills h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--color-beige);
    font-family: 'Rosie Brown', serif;
    font-weight: 400;
    font-variant-alternates: stylistic(1);
    font-feature-settings: "ss01" 1, "salt" 1;
}

.skills-scroll-container {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    padding: 2rem 0;
}

.skills-scroll {
    display: inline-flex;
    gap: 2rem;
    animation: scroll-infinite 40s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.skill-item {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-beige);
    display: inline-block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.skill-item:hover {
    opacity: 1;
}

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

/* Anciens styles de compétences (à supprimer si nécessaire) */
.skills ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
}

.skills li {
    background: rgba(61, 47, 90, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-light-red);
    transition: transform 0.3s ease, background 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
}

.skills li:hover {
    transform: translateX(10px);
    background: rgba(61, 47, 90, 0.8);
}

/* ========== Section Portfolio ========== */
.portfolio-section {
    background: linear-gradient(135deg, #483B66 0%, #6E618F 50%, #BCAEE1 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 230, 211, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(188, 174, 225, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
    border-color: #BCAEE1;
}

.portfolio-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-beige);
    position: relative;
    z-index: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.portfolio-card p {
    font-size: 1.1rem;
    color: rgba(245, 230, 211, 0.8);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.project-title {
    margin-top: 0.9rem;
    font-size: 1.05rem;
    color: var(--color-beige);
    text-align: center;
}

.project-desc {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    color: rgba(245,230,211,0.85);
    text-align: center;
    line-height: 1.4;
}

.project-tag {
    display: inline-block;
    background: var(--color-light-red);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.view-project {
    display: block;
    color: var(--color-beige);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.portfolio-card:hover .view-project {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Section Contact ========== */
.contact-section {
    background: radial-gradient(circle, #271A3F 0%, #13111A 100%);
    color: var(--color-beige);
    padding: 12rem 2rem !important;
}

.contact-intro {
    font-size: 18px;
    margin-bottom: 3rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(245, 230, 211, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-button:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.contact-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* ========== Bouton CV (réutilisable) ========== */
.cv-download-wrapper {
    margin-top: 16px;
}

.interested-text {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--color-beige);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.4px;
    transition: background 0.18s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.cv-download {
    background: var(--color-light-red);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.cv-download:hover,
.cv-download:focus {
    background: var(--color-red);
    transform: translateY(-3px);
    outline: none;
}

.cv-download:focus {
    box-shadow: 0 0 0 3px #2F2742;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .subtitle-list {
        left: 10%;
        gap: 1.5rem;
    }
    
    .designer-section {
        right: 10%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1.2rem;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .logo {
        height: 65px;
    }
    
    .title-section {
        top: 55%; /* léger ajustement mobile/tablette */
    }
    
    .main-title {
        font-size: clamp(4rem, 12vw, 7rem);
        letter-spacing: 8px;
    }
    
    .subtitle-list {
        position: absolute;
        left: 8%;
        top: 60%;
    }
    
    .subtitle-item {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .designer-section {
        right: 8%;
        top: 35%;
    }
    
    .designer-title {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .center-image img {
        width: clamp(200px, 40vw, 350px);
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.6rem;
    }
    
    .nav-link {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .logo {
        height: 50px;
    }
    
    .main-title {
        font-size: 3rem;
        letter-spacing: 5px;
    }
    
    .subtitle-list {
        gap: 1rem;
        left: 5%;
    }
    
    .subtitle-item {
        font-size: 1.3rem;
        letter-spacing: 5px;
    }
    
    .designer-title {
        font-size: 1.3rem;
        letter-spacing: 5px;
    }
    
    .designer-section {
        right: 5%;
    }
}

/* ========== Footer ========== */
.site-footer {
    background: linear-gradient(180deg, #171024 0%, #25193C 100%);
    color: var(--color-beige);
    border-top: 1px solid rgba(245,230,211,0.06);
    padding: 1.5rem 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.site-footer .footer-inner {
    display: flex;
    align-items: center;
    justify-content: center; /* centrer le contenu */
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer .footer-copy {
    font-size: 0.95rem;
    opacity: 0.95;
}

.site-footer .footer-meta {
    font-size: 0.95rem;
}

.site-footer a {
    color: var(--color-light-red);
    text-decoration: none;
    font-weight: 500;
}

.site-footer a:hover {
    color: var(--color-white);
}

@media (max-width: 640px) {
    .site-footer .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== Section Centres d'interets ========== */
.interests-section {
    background: linear-gradient(135deg, #8073A2 0%, #BCAEE1 100%);
    color: var(--color-beige);
    padding: 8rem 2rem !important;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.interest-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(245,230,211,0.04);
    padding: 2.5rem;
    border-radius: 10px;
    transition: transform 0.22s ease, box-shadow 0.18s ease;
}

.interest-item h3 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--color-beige);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.interest-item p {
    font-size: 17px;
    color: rgba(245,230,211,0.85);
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.interest-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
