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


/* Pour les titres et éléments*/
@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 a {
    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 a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFCDE0;
    transition: width 0.3s ease;
}

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

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

#navigation a:visited, #navigation a: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); }
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-header {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-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;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 0;
    line-height: 1.6;
    font-family: 'Lora', serif;
    font-weight: 400;
    letter-spacing: 0.2px;
    max-width: 800px;
    margin: 0 auto;
}
/* contact infos */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-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;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: 'Lora', serif;
    font-weight: 400; 
    letter-spacing: 0.2px;
}

.contact-method {
    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;
}

.contact-method::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;
}

.contact-method:hover::before {
    left: 100%;
}

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

.method-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.method-title {
    font-size: 1.3rem;
    font-family: 'Laviossa', serif;
    font-weight: 500; 
    color: #FFCDE0;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.method-content {
    color: #e0e0e0;
    font-size: 1rem;
    font-family: 'Lora', serif;
    font-weight: 400; 
    letter-spacing: 0.2px;
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #FFCDE0, rgba(255, 205, 224, 0.5));
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

/* formulaire */
.contact-form-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 205, 224, 0.2);
    border-radius: 25px;
    padding: 3rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding-bottom: 48px;
    
}

.form-title {
    font-size: 1.5rem;
    font-family: 'Laviossa', serif;
    font-weight: 500; 
    color: #FFCDE0;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 0.3px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 205, 224, 0.3);
    border-radius: 15px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Lora', serif;
    font-weight: 400; 
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: rgba(255, 205, 224, 0.8);
    box-shadow: 0 0 20px rgba(255, 205, 224, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, #FFCDE0, rgba(255, 205, 224, 0.5));
    color: #ffffff;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-family: 'Lora', serif;
    font-weight: 600; 
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
    align-self: center;
    margin-top: 23px;
    margin-bottom: 23px;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(45deg, rgba(255, 205, 224, 0.5), #FFCDE0);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* 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; 
    }
    
    /* Textes projets */
    h3 {
        font-size: 1.6rem;
    }
    h5 {
        font-size: 1.1rem;
    }

    /* Contact */
    .contact-container {
        max-width: 1400px;
        gap: 3rem;
    }
    
    .contact-header {
        max-width: 1400px;
    }
    
    .contact-subtitle {
        max-width: 900px;
        font-size: 1.3rem;
    }
    
    .contact-title {
        font-size: 4rem;
    }
}

/* 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 {
        max-width: 1000px;
        gap: 2rem;
        padding: 0 1.5rem 4rem;
    }
    
    .contact-header {
        max-width: 1000px;
        padding: 0 1.5rem;
    }
    
    .contact-subtitle {
        max-width: 700px;
    }
    
    /* 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: 550;
        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 1.5rem 3rem;
        max-width: 700px;
    }
    
    .contact-header {
        max-width: 700px;
        padding: 0 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-subtitle {
        max-width: 600px;
        font-size: 2vw;
    }
    
    .contact-form-section {
        padding: 2.5rem;
        margin-top: 2rem;
    }
    .contact-title {
        font-size: 5vw;
        text-align: center;
    }
    .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);
    }
}

@media screen and (min-width: 481px) and (max-width: 767px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 1rem 2rem;
        max-width: 450px; 
    }
    
    .contact-header {
        padding: 0 1rem;
        margin-bottom: 1.2rem;
        max-width: 450px;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-subtitle {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .contact-form-section {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .form-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .form-input, .form-textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-textarea {
        min-height: 80px;
    }
    
    .submit-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .contact-method {
        padding: 1.2rem;
    }
    
    .method-title {
        font-size: 1rem;
    }
    
    .method-content {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 0.8rem 1rem;
        max-width: 320px;
        width: 100%;
    }
    
    .contact-header {
        padding: 0 0.8rem;
        margin-bottom: 0.8rem;
        max-width: 320px;
    }
    
    .contact-title {
        font-size: 1.4rem; 
        line-height: 1.2;
    }
    
    .contact-subtitle {
        max-width: 100%;
        font-size: 0.8rem; 
        line-height: 1.4;
    }
    
    .contact-form-section {
        padding: 1rem; 
        border-radius: 15px;
        max-width: 100%;
    }
    
    .form-title {
        font-size: 1.1rem; 
        margin-bottom: 0.8rem;
    }
    
    .contact-form {
        gap: 0.8rem;
    }
    
    .form-input, .form-textarea {
        padding: 0.6rem 0.8rem; 
        font-size: 0.8rem; 
        border-radius: 10px;
    }
    
    .form-textarea {
        min-height: 60px; 
    }
    
    .submit-btn {
        padding: 0.8rem 1.5rem; 
        font-size: 0.8rem; 
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .contact-method {
        padding: 0.8rem; 
        border-radius: 12px;
    }
    
    .method-icon {
        font-size: 1.3rem; 
        margin-bottom: 0.6rem;
    }
    
    .method-title {
        font-size: 0.9rem; 
        margin-bottom: 0.3rem;
    }
    
    .method-content {
        font-size: 0.75rem; 
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 319px) {
    .contact-container {
        gap: 0.6rem;
        padding: 0 0.5rem 0.8rem;
        max-width: 280px;
    }
    
    .contact-header {
        padding: 0 0.5rem;
        margin-bottom: 0.6rem;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .contact-subtitle {
        font-size: 0.75rem;
    }
    
    .contact-form-section {
        padding: 0.8rem;
    }
    
    .form-title {
        font-size: 1rem;
    }
    
    .form-input, .form-textarea {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .form-textarea {
        min-height: 50px;
    }
    
    .submit-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.75rem;
    }
    
    .contact-method {
        padding: 0.6rem;
    }
    
    .method-title {
        font-size: 0.8rem;
    }
    
    .method-content {
        font-size: 0.7rem;
    }
}
.contact-method, .contact-form-section {
    animation: fadeInUp 0.6s ease forwards;
}

.contact-method:nth-child(2) { animation-delay: 0.1s; }
.contact-method:nth-child(3) { animation-delay: 0.1s; }
.contact-method:nth-child(4) { animation-delay: 0.1s; }
.contact-method:nth-child(5) { animation-delay: 0.1s; }
.contact-form-section { animation-delay: 0.1s; }


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