﻿@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Lato:ital,wght@0,300;0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

body {
    font-family: 'Lato', sans-serif;
    background-color: #f6f2ec;
    color: #2b1b1b;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

#page {
    max-width: 1000px;
    margin: 30px auto;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 40px;
    border-top: 5px solid #800020;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

header {
    text-align: center;
    border-bottom: 1px solid #e0dada;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

#titre_page h1 {
    font-family: 'Dancing Script', cursive;
    color: #800020;
    font-size: 3.8em;
    margin-bottom: 10px;
    margin-top: 0;
    font-weight: 700;
}

#titre_page h2 {
    font-family: 'Playfair Display', serif;
    color: #5e4b4b;
    margin-top: 0;
    font-size: 1.4em;
    text-transform: uppercase;
    letter-spacing: 2px;
}


nav {
    position: relative;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin-top: 25px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

nav > ul > li {
    position: relative;
    display: block;
}

nav a {
    font-family: 'Playfair Display', serif;
    color: #4a4a4a;
    font-size: 1.1em;
    padding: 10px 15px;
    border-bottom: 2px solid transparent;
    display: block;
}

nav a:hover, nav a.active {
    color: #800020;
    border-bottom: 2px solid #800020;
}


section.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    position: relative; 
    z-index: 1;
}

article {
    flex: 3;
    min-width: 300px;
}

aside {
    flex: 1;
    min-width: 250px;
    background-color: #fdfbfb;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 4px;
    height: fit-content;
}


article h3 {
    font-family: 'Playfair Display', serif;
    color: #800020;
    font-size: 1.8em;
    border-bottom: 1px solid #dbcbcb;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.skill-box {
    margin-bottom: 25px;
}

.skill-title {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2b1b1b;
    font-family: 'Playfair Display', serif;
}

.progress-bar-bg {
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 22px;
    width: 100%;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.progress-bar {
    background-color: #800020;
    height: 100%;
    border-radius: 10px 0 0 10px;
    text-align: right;
    padding-right: 10px;
    line-height: 22px;
    color: white;
    font-size: 0.85em;
    font-weight: bold;
    transition: width 1.5s ease-in-out; 
    width: 0;
} 


ul.soft-skills-list {
    list-style-type: none;
    padding: 0;
}

ul.soft-skills-list li {
    background-color: #fff;
    border-left: 4px solid #800020;
    margin-bottom: 15px;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 1.05em;
    transition: transform 0.2s ease;
}

ul.soft-skills-list li:hover {
    transform: translateX(5px);
    background-color: #fafafa;
}


aside h3 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #800020;
    margin-bottom: 20px;
    border-bottom: 1px solid #eadddd;
    padding-bottom: 10px;
}

#photo-container {
    text-align: center;
    margin-bottom: 20px;
}

#photo-container img {
    max-width: 150px;
    border-radius: 50%;
    border: 3px solid #f6f2ec;
    box-shadow: 0 0 10px rgba(128, 0, 32, 0.2);
}

.infos-perso p {
    font-size: 0.95em;
    margin-bottom: 12px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

.infos-perso a {
    display: block;
    text-align: center;
    margin-top: 15px;
    background-color: #800020;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
}

.infos-perso a:hover {
    background-color: #5c0017;
    text-decoration: none;
}


footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e0dada;
    font-size: 0.8em;
    color: #888;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

footer a {
    color: #800020;
}

footer a:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    #page {
        margin: 0;
        width: 100%;
        padding: 20px;
        box-shadow: none;
    }

    #titre_page h1 {
        font-size: 2.8em;
    }

    section.main-content {
        flex-direction: column;
    }
    
    aside {
        order: -1;
        text-align: center;
        background-color: transparent;
        border: none;
        padding: 0;
        margin-bottom: 30px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav > ul > li {
        width: 100%;
        margin: 5px 0;
    }
    .submenu {
        position: static;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: transparent;
        padding: 0;
    }

    .submenu li a {
        text-align: center;
        padding: 8px 0;
        font-size: 0.95em;
    }

    .submenu-parent:hover .submenu {
        display: block;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    }
    
    .contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-container h3 {
    font-family: 'Playfair Display', serif;
    color: #800020;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #dbcbcb;
    padding-bottom: 10px;
}



.contact-form {
    background-color: #fdfbfb;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    color: #2b1b1b;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #800020;
    box-shadow: 0 0 5px rgba(128, 0, 32, 0.3);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}



.contact-form button {
    display: block;
    width: 100%;
    background-color: #800020;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.contact-form button:hover {
    background-color: #5c0017;
    transform: translateY(-2px);
}



.contact-info {
    text-align: center;
    margin-top: 40px;
    font-size: 1em;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #800020;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

  
  
  
.submenu-parent {
    position: relative;
}


.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 220px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #800020;
    border-radius: 0 0 6px 6px;
    z-index: 9999;
}


.submenu li a {
    padding: 10px 20px;
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1em;
    color: #4a4a4a;
    transition: background-color 0.3s, color 0.3s;
}


.submenu li a:hover {
    background-color: #f6f2ec;
    color: #800020;
}


.submenu-parent:hover .submenu {
    display: block;
}
