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


/*  Pour les titres et éléments i*/
@font-face {
    font-family: 'Laviossa';
    src: url(../font/Laviossa-Medium.otf);
    font-weight: 500;
    font-style: normal;
}

/* la hiérarchie */
@font-face {
    font-family: 'Lora';
    src: url(../font/Lora-VariableFont_wght.ttf);
    font-weight: 300 700; 
    font-style: normal;
}

/* HEADER */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #131212;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: #FFCDE0;
    z-index: 999;
    font-family: 'Laviossa', serif;
    backdrop-filter: blur(10px);
}

#logo {
    padding-left: 20px;
    font-size: 3vw;
    text-decoration: none;
    color: #FFCDE0;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Laviossa', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#logo:hover {
    transform: scale(1.05);
    color: #FFCDE0;
}

#logo:visited, #logo:active, #logo:focus {
    color: #FFCDE0;
    text-decoration: none;
    outline: none;
}

#navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
    gap: 20px;
}

#navigation #menu {
    font-family: 'Lora', serif;
    font-weight: 550; 
    font-size: 2vw;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #FFCDE0;
    position: relative;
    cursor: pointer;
    letter-spacing: 0.3px;
}

#navigation #menu::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFCDE0;
    transition: width 0.3s ease;
}

#navigation #menu:hover {
    transform: scale3d(1.05, 1.05, 1.05);
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 205, 224, 0.8);
}

#navigation #menu:hover::after {
    width: 100%;
}

#navigation #menu:visited, #navigation #menu:active {
    color: #FFCDE0;
    text-decoration: none;
}

/* BODY */
body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    overflow-x: hidden;
    font-family: 'Lora', serif;
    font-weight: 400; 
    background: linear-gradient(135deg, #131212 0%, #1a1a1a 30%, #0f0f0f 70%, #131212 100%);
    position: relative;
    padding-top: 150px;
}

/* Animation de fond */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="modernPattern" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1.5" fill="%23FFCDE0" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="6" cy="18" r="0.8" fill="%23FFCDE0" opacity="0.15"/><path d="M 0 25 L 25 0" stroke="%23FFCDE0" stroke-width="0.3" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23modernPattern)"/></svg>') repeat;
    animation: subtleFloat 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-30px) translateX(-15px); }
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
    justify-content: center;
}

.photo-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 140px;
}

.photo-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 205, 224, 0.3);
    box-shadow: 0 20px 40px rgba(255, 205, 224, 0.2);
    transition: all 0.4s ease;
}

.photo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(255, 205, 224, 0.4);
    border-color: rgba(255, 205, 224, 0.6);
}

.photo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, 
        transparent, 
        rgba(255, 205, 224, 0.2), 
        transparent, 
        rgba(255, 105, 180, 0.2), 
        transparent);
    animation: rotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-container:hover::before {
    opacity: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.quote-bubble {
    background: linear-gradient(135deg, 
        rgba(255, 205, 224, 0.9) 0%, 
        rgba(255, 182, 193, 0.8) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
    border: 2px solid rgba(255, 205, 224, 0.3);
    box-shadow: 0 10px 30px rgba(255, 205, 224, 0.2);
}

.quote-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(255, 205, 224, 0.9);
}

.quote-text {
    font-style: italic;
    color: #131212;
    text-align: center;
    font-family: 'Lora', serif;
    font-weight: 500; 
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}


.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-family: 'Laviossa', serif; 
    font-weight: 500; 
    background: linear-gradient(45deg, #FFCDE0, rgb(225, 159, 192), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.about-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 205, 224, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 205, 224, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.about-section:hover::before {
    left: 100%;
}

.about-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 205, 224, 0.2);
    border-color: rgba(255, 205, 224, 0.4);
}

.section-title {
    font-size: 1.5rem;
    font-family: 'Laviossa', serif; 
    font-weight: 500; 
    color: #FFCDE0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
}

.section-content {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1.1rem;
    font-family: 'Lora', serif;
    font-weight: 400; 
    letter-spacing: 0.2px;
}

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

.skill-item {
    background: rgba(255, 205, 224, 0.1);
    border: 1px solid rgba(255, 205, 224, 0.3);
    border-radius: 10px;
    padding: 1rem 0.8rem; 
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Lora', serif;
    font-weight: 500; 
    min-height: 60px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.skill-item:hover {
    background: rgba(255, 205, 224, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 205, 224, 0.5);
}

.personality-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.trait-tag {
    background: linear-gradient(45deg, #FFCDE0, rgba(255, 205, 224, 0.5));
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'Lora', serif;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.trait-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* FOOTER */
footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background-color: #131212;
    color: #FFCDE0;
    box-shadow: 0px 7px 7px rgba(0, 0, 0, 0.05);
    font-family: 'Lora', serif;
    font-weight: 400;
    margin-top: 4rem;
}

footer h4 {
    font-weight: 500; 
    letter-spacing: 0.3px;
}

footer a {
    color: #FFCDE0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600; 
}

footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 205, 224, 0.5);
}

/* responsive */
@media screen and (min-width: 1920px) {
    /* Projets et index seulement */
    .rp, #rp1, .lesprojets {
        width: 900px; 
        height: 600px; 
    }
    
    /* Index seulement */
    #intro {
        font-size: 4vw; 
    }
    #intro2 {
        font-size: 3vw; 
    }
    
    /* Bio seulement */
    .main-container {
        max-width: 1600px;
        grid-template-columns: 450px 1fr;
        gap: 5rem;
    }
    .photo-container {
        width: 400px;
        height: 400px;
    }
    
    #logo {
        font-size: 2vw; 
    }
    #navigation #menu, #navigation a {
        font-size: 1.5vw; 
    }
    
    h3 {
        font-size: 1.6rem;
    }
    h5 {
        font-size: 1.1rem;
    }
}

/* tablette */
@media screen and (max-width: 1280px) {
    body {
        justify-content: center;
    }
    
    header, footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
        width: 100%;
    }
    
    #logo {
        padding-left: 20px;
        font-size: 3vw;
    }
    
    #navigation {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 10px 0;
        gap: 20px;
    }
    
    #navigation #menu, #navigation a {
        margin-right: 0; 
        font-weight: 550;
        font-size: 2vw;
    }
    
    .rp, #rp1, .lesprojets {
        width: 550px;
        height: 450px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem 2rem;
    }
    
    /* Bio */
    .main-container {
        grid-template-columns: 350px 1fr;
        gap: 3rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    h5 {
        font-size: 0.9rem;
    }
}

/* mobile */
@media screen and (max-width: 768px) {
    body {
        display: flex;
        justify-content: center;
        padding-top: 80px; 
    }
    
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
        width: 100%;
        margin: 0;
    }
    
    #logo {
        padding-left: 10px;
        font-size: 4vw;
    }
    
    #navigation {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-size: 2vw;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 15px; 
    }
    
    #navigation #menu, #navigation a {
        font-size: 3vw; 
        font-weight: 600; 
        margin-right: 0;
    }
    
    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        font-size: 0.9rem; 
        padding: 10px;
        width: 100%;
        margin: 0;
    }

    .rp, #rp1, .lesprojets {
        width: 350px;
        height: 300px;
    }
    
    #intro {
        font-size: 5vw;
        margin-left: 30px;
        margin-right: 30px;
        margin-bottom: 80px;
    }
    #press {
        font-size: 25px;
        margin-bottom: 5px;
    }
    .arrow {
        font-size: 100px;
    }
    #intro2 {
        margin-bottom: 20px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem 2rem; 
    }
    .contact-title {
        font-size: 2rem;
        text-align: center;
    }
    .contact-form-section {
        padding: 2rem;
    }
    .social-links {
        justify-content: center;
    }
    
    /* Bio */
    .main-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem 2rem; 
    }
    .photo-section {
        position: relative;
        top: auto;
    }
    .photo-container {
        width: 250px;
        height: 250px;
    }
    .about-title {
        font-size: 2rem;
        text-align: center;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.8rem;
    }
    .skill-item {
        min-height: 50px;
        font-size: 0.9rem;
        padding: 0.8rem 0.5rem;
    }
    
    /* Projets  */
    #elements {
        padding: 2rem 1.5rem;
        margin: 1rem;
        width: 95%;
    }
    #titlerp {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    #github {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    h3 {
        font-size: 0.9rem;
        margin-top: 10px;
        font-weight: 700;
    }
    h5 {
        font-size: 0.8rem;
        font-weight: 400;
    }
}

/* animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section {
    animation: fadeInUp 0.6s ease forwards;
}

.about-section:nth-child(1) { animation-delay: 0.1s; }
.about-section:nth-child(2) { animation-delay: 0.2s; }
.about-section:nth-child(3) { animation-delay: 0.3s; }
.about-section:nth-child(4) { animation-delay: 0.4s; }

/* scrolbar rose */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #131212;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #FFCDE0, rgb(198, 148, 172));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, rgb(198, 148, 172), #FFCDE0);
}