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

/* Défilement en douceur de la flèche */
html {
    scroll-behavior: smooth;
}


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

/* 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;
    font-family: 'Laviossa', serif;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    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); }
}

div {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    margin: 5px;
}

/* petit intro */
#hi {
    font-size: 3vw;
    transition: all 0.3s ease;
    margin-left: 0.5vw;
    color: #fae0ea;
    opacity: 0.9;
    font-family: 'Lora', serif;
    font-weight: 300; 
    line-height: 1.4;
    letter-spacing: 0.2px;
}

#hi:hover {
    transform: scale3d(1.03, 1.03, 1.03);
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 205, 224, 0.4);
}

#intro {
    width: 100%;
    font-family: 'Laviossa', serif; 
    color: #FFCDE0;
    margin-top: 50px;
    justify-content: center;
    margin-left: 50px;
    margin-right: 50px;
    font-size: 4.2vw;
    position: relative;
}

#intro h1 {
    background: linear-gradient(45deg, #FFCDE0, rgb(225, 159, 192), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Laviossa', serif;
    font-weight: 500; 
    line-height: 1.1;
    letter-spacing: 0.5px;
}

/* flèche */
#press {
    display: flex;
    justify-content: center;
    color: #fae0ea;
    font-size: 30px;
    margin-bottom: -30px;
    transition: all 0.3s ease;
    opacity: 0.8;
    font-family: 'Lora', serif;
    font-weight: 400; 
    letter-spacing: 0.5px;
}

.arrow {
    display: block;
    text-align: center;
    margin-bottom: 500px;
    text-decoration: none;
    color: #FFCDE0;
    font-size: 150px;
    transition: all 0.4s ease;
    position: relative;
}

.arrow:hover {
    transform: scale3d(1.1, 1.1, 1.1);
    color: #ffffff;
}

.arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 205, 224, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.arrow:hover .arrow-icon {
    transform: translateY(10px);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Liste projets récents */
#cible {
    padding: 20px;
    margin-top: 50px;
}

#intro2 {
    width: 100%;
    font-family: 'Laviossa', serif; 
    color: #FFCDE0;
    font-size: 3.5vw;
    font-weight: 500; 
    margin-top: 150px;
    margin-bottom: 50px;
    justify-content: center;
    margin-left: 50px;
    margin-right: 50px;
    text-align: center;
    letter-spacing: 0.3px;
}

#rp_list {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-bottom: 1vw;
    font-family: 'Lora', serif;
    flex-wrap: wrap;
}

#rp_list a {
    text-decoration: none;
    color: inherit;
}

/* projet card */
.rp, #rp1 {
    width: 700px;
    height: 500px;
    background: linear-gradient(135deg, 
        #FFCDE0 0%, 
        rgba(255, 205, 224, 0.9) 50%, 
        rgba(255, 205, 224, 0.8) 100%);
    margin-bottom: 1.5vw;
    color: #131212;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(255, 205, 224, 0.3);
    border: 2px solid rgba(255, 205, 224, 0.1);
}

/* animation card */
.rp::before, #rp1::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.6s ease;
}

.rp:hover::before, #rp1:hover::before {
    left: 100%;
}

/* Indicateurs de statut */
.rp::after, #rp1::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

/* EN COURS = orange */
#rp1::after,
#rp2::after {
  background: #f3bc69;
  box-shadow: 0 0 15px rgba(195, 169, 130, 0.6);
}

/* TERMINÉ = vert */
#rp3::after,
#rp4::after {
  background: #49b666;
  box-shadow: 0 0 15px rgba(127, 184, 130, 0.6);
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Effets de survol */
#rp1:hover {
    background-image: linear-gradient(
        rgba(255, 205, 224, 0.3), 
        rgba(19, 18, 18, 0.8)
    ), url(Img/medicalbear.avif);
    background-size: cover;
    background-position: center;
    transform: scale3d(1.05, 1.05, 1.05) translateY(-10px);
    color: #FFCDE0;
}

#rp2:hover {
    background-image: linear-gradient(
        rgba(255, 205, 224, 0.3), 
        rgba(19, 18, 18, 0.8)
    ), url(Img/introvert.jpg);
    background-size: cover;
    background-position: bottom;
    transform: scale3d(1.05, 1.05, 1.05) translateY(-10px);
    color: #FFCDE0;
}

#rp3:hover {
    background-image: linear-gradient(
        rgba(255, 205, 224, 0.3), 
        rgba(19, 18, 18, 0.8)
    ), url(Img/exoplanet.avif);
    background-size: cover;
    background-position: center;
    transform: scale3d(1.05, 1.05, 1.05) translateY(-10px);
    color: #FFCDE0;
}

#rp4:hover {
    background-image: linear-gradient(
        rgba(255, 205, 224, 0.3), 
        rgba(19, 18, 18, 0.8)
    ), url(Img/Frenz.jpeg);
    background-size: cover;
    background-position: center;
    transform: scale3d(1.05, 1.05, 1.05) translateY(-10px);
    color: #FFCDE0;
}

/* Contenue card */
h3 {
    margin-bottom: 8px;
    margin-left: 15px;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-family: 'Lora', serif;
    font-weight: 700; 
    font-size: 1.4rem;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

h5 {
    margin-bottom: 5px;
    margin-left: 15px;
    margin-right: 15px;
    transition: all 0.3s ease;
    font-family: 'Lora', serif;
    font-weight: 400; 
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: 0.2px;
    opacity: 0.85;
}

.rp:hover h3, #rp1:hover h3 {
    transform: translateY(-3px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700; 
}

.rp:hover h5, #rp1:hover h5 {
    transform: translateY(-2px);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    opacity: 1; 
}

/* FOOTER */
footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    background-color: #131212;
    color: #FFCDE0;
    padding: 30px;
    font-family: 'Lora', serif;
    font-weight: 400;
}

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;
    }
    
    /* Header */
    #logo {
        font-size: 2vw; 
    }
    #navigation #menu, #navigation a {
        font-size: 1.5vw; 
    }
    
    /* Textes projets */
    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 FIRST  */
@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: 550;
        margin-right: 0;
    }
    
    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        font-size: 0.9rem;
        padding: 10px;
        width: 100%;
        margin: 0;
    }
    
    /* PROJETS ET INDEX */
    .rp, #rp1, .lesprojets {
        width: 350px;
        height: 300px;
    }
    
    /* Index spécifique */
    #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 apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rp, #rp1 {
    animation: fadeInUp 0.6s ease forwards;
}

#rp1 { animation-delay: 0.1s; }
#rp2 { animation-delay: 0.2s; }
#rp3 { animation-delay: 0.3s; }
#rp4 { animation-delay: 0.4s; }

/* scrollbar 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);
}