html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #141414;
    color: #fff;
    flex-direction: column;
    line-height: 1.5;
}

main {
    padding-bottom: 90px;
}

.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.header {
    display: flex;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    background-color: #141414;
    position: fixed;
    width: 100%;
    top: 0;
    text-align: right;
    padding: 0 20px;
    box-shadow: 0 4px 8px #3131314d;
    transition: box-shadow 0.7s ease-in-out;
}

.header.scrolled {
    box-shadow: 0 4px 28px #ffc0cbcc;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.name-mobile {
    display: none;
}

.bottom-space {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #1a1a1a;
}

.skills,
.biography,
.projects-section,
.contact-section {
    scroll-margin-top: 60px;
}

.gallery {
    scroll-margin-top: 100px;
}

#moi {
    scroll-margin-top: 190px;
}

#experiences {
    scroll-margin-top: 130px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 10px;
    justify-content: right;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 10px;
    display: inline-block;
}

.nav-links a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    padding: 16px 12px;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    color: #ffb6c1;
    transform: scale(1.05) translateY(-0.5px);
}


/* sous menu ------------------------------------------------------------------------------------------------------------------------------------------------*/

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    text-align: center;
    transform: translateX(-50%) translateY(10px);
    background-color: #141414;
    border-radius: 10px;
    padding: 10px 0;
    flex-direction: column;
    min-width: 140px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    display: block;
    color: #fff;
    transition: color 0.3s ease, font-size 0.3s ease;
}

.dropdown-menu li a:hover {
    color: #ffb6c1;
    font-size: 17px;
}


/* Affichage avec transition */

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.portfolio {
    flex-direction: column;
    margin-top: 25px;
    text-decoration: none;
}

.portfolio-link {
    margin-top: -20px;
    color: #fff;
    font-size: 20px;
    text-shadow: 0 4px 8px rgba(17, 17, 17, 0.3);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.portfolio-img {
    width: 50px;
    height: auto;
    display: block;
    margin-left: 8px;
    margin-bottom: 22px;
    transition: 0.3s;
}

.portfolio-img:hover {
    transform: scale(1.1);
}


/* intro ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.intro-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.intro {
    max-width: 800px;
    color: #fff;
    animation: fadeInUp 1s ease-in-out;
}

.hello {
    margin-bottom: 200px;
    font-weight: bold;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.intro-title {
    font-size: 48px;
    font-family: 'Abril Fatface', serif;
    color: #ffc0cb;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-top: -190px;
}

.intro-description {
    font-size: 20px;
    margin-top: -20px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-bottom: 50px;
    color: #ffffff;
    text-shadow: 0 2px 2px #bd8e95;
}

.intro-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #141414;
    z-index: 1000;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-part {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 5rem;
    font-weight: bold;
    color: #fff;
    z-index: 2;
    transition: transform 1s ease, opacity 0.5s ease;
}

.logo-part.left {
    transform-origin: right center;
}

.logo-part.right {
    transform-origin: left center;
}

.intro-animation.hidden .logo-part.left {
    transform: translateX(-100%) rotateY(90deg);
}

.intro-animation.hidden .logo-part.right {
    transform: translateX(100%) rotateY(90deg);
}

.intro-animation.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease 1s;
}

.main-content {
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.main-content.visible {
    opacity: 1;
}

.main-content h1 {
    color: #ffc0cb;
    text-align: center;
    margin-top: 20%;
}

.presentation .intro-section {
    position: relative;
    overflow: hidden;
}

.intro {
    opacity: 0;
    transform: translateY(50px);
    animation: slideIn 1s forwards;
    animation-delay: 0.5s;
}

.intro h5,
.intro h1,
.intro p,
.intro a {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 2.5s forwards;
}

.intro h5 {
    animation-delay: 1.4s;
}

.intro h1 {
    animation-delay: 1.7s;
}

.intro p {
    animation-delay: 2s;
}

.intro a {
    animation-delay: 2.3s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Cambria', serif;
    border: solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    background-color: #ca7f8d24;
    box-shadow: 0 0 3.5px rgba(255, 192, 203, 0.8);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #e08e9d;
}


/* biographie ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.biography {
    display: flex;
    flex-wrap: wrap;
    margin-top: 5px;
    justify-content: space-around;
    padding: 50px;
    gap: 30px;
    padding-bottom: 70px;
}

.biography h2 {
    font-size: 28px;
    margin-top: -18px;
    margin-bottom: -5px;
    font-family: 'Cambria', serif;
    color: #ffffff;
    position: relative;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.biography h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: #ffc0cb;
    margin: 10px auto 0;
    border-radius: 2px;
}

.profile {
    order: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: -70px;
}

.profile-img {
    width: 160px;
    height: 180px;
    border-radius: 16px;
    object-fit: cover;
    margin-top: 30px;
    box-shadow: 0 0 1.8px rgba(255, 192, 203, 0.8);
    margin-bottom: 40px;
}

.profile-info {
    font-size: 16px;
    font-weight: bold;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-top: -32px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: -30px;
}

.column {
    display: flex;
    text-align: justify;
    background-color: #252525;
    padding: 5px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    flex: 1 1 100%;
    max-width: 60%;
    margin: 10px;
    transition: border 0.3s ease;
}

.column:hover {
    border: solid 1px #e08e9d76;
}


/* timeline----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    border-color: #FBC9D8;
    padding-bottom: 10%;
    gap: 20px;
    padding: 0px 235px;
}

.timeline {
    max-width: 600px;
    margin: 40px auto;
    padding: 0;
    list-style: none;
    position: relative;
}

.subtitle {
    font-size: 24px;
    margin-top: 70px;
    margin-bottom: -38px;
    font-family: 'Cambria', serif;
    color: #ffffff;
    position: relative;
    text-align: center;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.subtitle::after {
    content: '';
    display: block;
    width: 150px;
    height: 2px;
    background-color: #ffc0cb;
    margin: 5px auto 0;
    border-radius: 2px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #d8d8d8;
    transform: translateX(-50%);
}

.timeline li {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline li.parc {
    left: 0;
    text-align: right;
}

.timeline li.expc {
    left: 50%;
    text-align: left;
}

.timeline li.parc .content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -17px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent #ffb6c1;
}

.timeline li.expc .content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -17px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent #ffb6c1 transparent transparent;
}

.timeline li.parc::before {
    right: -6px;
}

.timeline li.expc::before {
    left: -6px;
}

.content {
    border: solid #ffb6c1;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.exp {
    background-color: #ca7f8d24;
    color: #ebebeb;
}

.content h3 {
    margin: 0;
    font-size: 16px;
}

.content h3 span {
    display: block;
    font-size: 12px;
    color: #ffdddd;
    margin-top: 4px;
}

.content p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.timeline li::before {
    content: '';
    position: absolute;
    top: 40px;
    width: 14px;
    height: 14px;
    background: #ffb6c1;
    border-radius: 50%;
    z-index: 1;
}

.timeline li.parc::before {
    left: calc(100% - 7px);
    /* ou right: -7px si tu préfères */
}

.timeline li.expc::before {
    left: -7px;
}


/* section des projets ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.projects-section {
    text-align: center;
    padding: 50px 20px;
    margin-bottom: 20%;
    color: #fff;
}

.project-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filter-btn {
    padding: 8px 14px;
    border-radius: 20px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #ffc0cb44;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 220ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.filter-btn:hover {
    background-color: #ca7f8d33;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #ffc0cb;
    color: #121212;
    box-shadow: 0 6px 14px rgba(232,145,156,0.12);
}

.mode-btn {
    padding: 8px 14px;
    font-size: 20px;
    border-radius: 20px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #ffc0cb44;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 220ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.mode-btn:hover {
    background-color: #ca7f8d33;
    transform: translateY(-2px);
}

.mode-btn.active {
    background-color: #e08e9d;
    color: #121212;
    box-shadow: 0 6px 14px rgba(232,145,156,0.12);
}

.filter-select {
    display: none; /* visible only on small screens */
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ffc0cb;
    background-color: #141414;
    color: #fff;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    padding-right: 36px; /* space for custom arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    /* custom pink arrow (SVG data URI) */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffc0cb'><path d='M5.5 7.5L10 12l4.5-4.5z'/></svg>");
}

.filter-select:focus {
    border-color: #ffc0cb;
    box-shadow: 0 0 0 6px rgba(255,192,203,0.06);
}


.projects-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    font-family: 'Cambria', serif;
    color: #ffffff;
    position: relative;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.projects-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background-color: #ffc0cb;
    margin: 10px auto 0;
    border-radius: 2px;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.project-card {
    width: 260px;
    height: 445px;
    border-radius: 20px;
    flex-direction: column;
    border: solid #ffc0cb;
    display: flex;
    margin-top: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.884);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #141414;
    padding: 16px;
}

.image {
    width: 100%;
    margin-top: 5px;
    max-width: 230px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.image-legende {
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 2px 2px #434343;
    text-align: center;
}

.video {
    width: 100%;
    margin-bottom: 20px;
}


.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px #e08e9d;
}

.badge {
    padding: 4px 12px;
    border-radius: 9999px;
    border : solid 1px #fff;
    font-size: 0.875rem;
    color: white;
    font-weight: 500;
    text-shadow: 1px 1px 3px #0000007d;
    display: inline-block;
    margin-bottom: 5px;
}

.badge-html {
    background-color: #ffc0cb5e;
}

.badge-css {
    background-color: #ffc0cb5e;
}

.badge-js {
    background-color: #ffc0cb5e;
}

.badge-tailwindcss {
    background-color: #ffc0cb5e;
}

.badge-php {
    background-color: #ffc0cb5e;
}

.badge-photoshop {
    background-color: #ca7f8d24;
}

.badge-illustrator {
    background-color: #ca7f8d24;
}

.badge-photo {
    background-color: #ffc0cb9a;
}

.badge-github {
    background-color: #ca7f8d24;
}

.badge-wordpress {
    background-color: #ffc0cb5e;
}

.badge-video {
    background-color: #ffc0cb9a;
}

.badge-montage {
    background-color: #ffc0cb9a;
}

.badge-pr {
    background-color: #ffc0cb9a;
}

.badge-ch {
    background-color: #ffc0cb5e;
}

.badge-retouche {
    background-color: #ffc0cb5e;
}


/* lightbox projet -------------------------------*/

#project-lightbox.lightbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.85);
    height: 100vh;
    width: 100vw;
    padding: 20px;
    box-sizing: border-box;
}

#project-lightbox .lightbox-content {
    background-color: #101010;
    border-radius: 15px;
    border: 1px solid #ffc0cb5a;
    padding: 30px 20px 20px 20px;
    max-width: 600px;
    min-width: 600px;
    min-height: 600px;
    box-shadow: 0 0 15px #000;
    text-align: center;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#project-lightbox img {
    width: 100%;
    max-width: 380px;
    max-height: 420px;
    object-fit: contain;
    margin-bottom: 15px;
    background: none;
    box-shadow: none;
    padding: 0;
    transition: transform 0.3s ease;
}

#project-lightbox img:hover {
    transform: scale(1.01);
}

#project-lightbox h3,
#project-lightbox p {
    margin: 10px;
    padding: 0;
    text-align: justify;
    color: #ececec;
    font-family: 'Cambria', serif;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

#project-lightbox h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

#project-lightbox p {
    font-size: 17px;
    margin-bottom: 15px;
}


#lightbox-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

#close-lightbox {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 45px;
    height: 45px;
    background: #ca7f8d61;
    border: 1px solid #fff;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#close-lightbox:hover {
    background: #ca7f8d80;
    transform: scale(1.05);
}

/* Flèches gauche/droite EN DEHORS de la lightbox */

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: -80px;
    right: -80px;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    width: calc(100% + 160px);
    padding: 0;
    z-index: 10001;
}

.lightbox-nav button {
    pointer-events: auto;
    background-color: #ca7f8d61;
    color: white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: solid #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: background 0.3s, transform 0.3s;
}

.lightbox-nav button:hover {
    background-color: #ca7f8d80;
    transform: scale(1.1);
}


/*page 2---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.project-extra-description {
    width: 70%;
    text-align: center;
    margin: 0 auto;
}

.project-extra-description h4 {
    font-size: 20px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-bottom: 40px;
    font-weight: 600;
    color: #ffc0cb;
    text-align: center;
}

.project-extra-description p {
    text-align: center;
    margin-right: 0;
}


/* section des compétences ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    border-color: #FBC9D8;
    padding-bottom: 10%;
    gap: 20px;
    padding: 10px;
}

.skills h2 {
    font-size: 28px;
    margin-top: 30px;
    font-family: 'Cambria', serif;
    color: #ffffff;
    position: relative;
    text-align: center;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.skills h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #ffc0cb;
    margin: 10px auto 0;
    border-radius: 2px;
}

.skills-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 50px;
    margin: 0 10px
}

.skills-container {
    background-color: #141414;
    border: solid #ffc0cb;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgb(0, 0, 0);
    margin-top: 30px;
    margin-bottom: 20px;
    flex: 1 1 40%;
    padding-left: 55px;
}

.skills-container h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 15px;
    margin-top: -10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 90%;
    margin: 0 10px
}

.skill {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #252525;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    height: 70px;
    width: 85%;
    text-align: center;
    transition: color 1.8s ease, transform 1s ease;
}

.progress-bar {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    overflow: hidden;
    border-radius: 5px;
    background-color: #252525;
    z-index: 0;
}

.progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #ffc0cb;
    border-radius: 5px;
    z-index: 1;
    transition: height 1s ease-in-out;
}

.skill[data-progress="10"] {
    --progress: 10%;
}

.skill[data-progress="20"] {
    --progress: 20%;
}

.skill[data-progress="30"] {
    --progress: 30%;
}

.skill[data-progress="35"] {
    --progress: 35%;
}

.skill[data-progress="33"] {
    --progress: 33%;
}

.skill[data-progress="40"] {
    --progress: 40%;
}

.skill[data-progress="45"] {
    --progress: 45%;
}

.skill[data-progress="50"] {
    --progress: 50%;
}

.skill[data-progress="60"] {
    --progress: 60%;
}

.skill[data-progress="67"] {
    --progress: 66%;
}

.skill[data-progress="70"] {
    --progress: 70%;
}

.skill[data-progress="80"] {
    --progress: 80%;
}

.skill[data-progress="85"] {
    --progress: 85%;
}

.skill[data-progress="95"] {
    --progress: 95%;
}

.skill[data-progress="100"] {
    --progress: 100%;
}

.skill[data-progress="110"] {
    --progress: 110%;
}

.skill p,
.skill span {
    position: relative;
    z-index: 2;
}

.dark-skill {
    color: #1c1c1c;
}

.skill p {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
}

.skill span {
    font-size: 0.9rem;
    color: #808080;
}


/* galerie -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-items: center;
    gap: 50px;
    margin-top: 80px;
    perspective: 1000px;
    padding: 0 80px;
}

.gallery h2 {
    font-size: 28px;
    margin-top: 110px;
    margin-bottom: -5px;
    text-align: center;
    font-family: 'Cambria', serif;
    color: #ffffff;
    position: relative;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gallery h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #ffc0cb;
    margin: 10px auto 0;
    border-radius: 2px;
}

.sous-titre {
    margin-top: 90px;
    margin-bottom: -40px;
    font-size: 20px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: center;
}

.sous-titre::after {
    content: '';
    display: block;
    width: 40px;
    height: 1.5px;
    background-color: #ffc0cb;
    margin: 5px auto 0;
    border-radius: 2px;
}

.carte {
    width: 18.75rem;
    height: 25rem;
    border-radius: 0.625rem;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.2);
}

.carte img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.carte:hover {
    cursor: pointer;
    transform: scale(1.04);
    z-index: 1;
    box-shadow: 0 0.320rem 1rem #4f3c40;
}

.btnglry {
    border-radius: 1.875rem;
    border: none;
    color: inherit;
    text-decoration: none;
    color: #121212;
    background-color: #ffc0cb;
    padding: 0.625rem 0.9375rem;
    font-size: 0.9375rem;
    font-family: 'Cambria', serif;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.btnglry:hover {
    cursor: pointer;
    background-color: #e08e9d;
    box-shadow: 0 0.375rem 0.625rem rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}


/*lightbox------------------------------------------------------------------------------------------------------------------------------------*/

.lightbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 30px;
}

.lightbox-controls button {
    background-color: #ca7f8d70;
    border: solid 1px #f7edf0;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    transition: background 0.3s ease;
}

.lightbox-controls button:hover {
    background-color: #ca7f8d7f;
}

#close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 45px;
    height: 45px;
    background: #ca7f8d61;
    border: 1px solid #fff;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white !important;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 9999;
}


/* section de contact ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.contact-section {
    margin-top: 100px;
    text-align: center;
    padding: 20px;
}

.contact-section.hidden {
    display: none !important;
}

.contact-section.revealed {
    display: block !important;
    animation: fadeIn 280ms ease-out;
}

.contact-section.form-open h2 {
    display: none;
}

.contact-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-family: 'Cambria', serif;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.contact-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: #ffc0cb;
    margin: 10px auto 0;
    border-radius: 2px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
    background-color: #2424243e;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: 20px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* Animation d'ouverture/fermeture du formulaire de contact */
.contact-toggle-btn {
    display: inline-block;
    margin: 8px auto 14px auto;
    padding: 10px 14px;
    font-size: 17px;
    border-radius: 20px;
    line-height: 1;
}

.contact-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transition: max-height 420ms cubic-bezier(.2,.9,.2,1), opacity 280ms ease;
}

.contact-expanded {
    max-height: 1400px !important; 
    opacity: 1 !important;
    overflow: visible !important;
    transition: max-height 420ms cubic-bezier(.2,.9,.2,1), opacity 280ms ease 80ms;
}

form:hover {
    border-color: #ffc0cb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

form label {
    align-self: flex-start;
    font-size: 16px;
}

form input,
form textarea {
    width: 100%;
    max-width: 98%;
    min-width: 98%;
    padding: 10px;
    font-size: 14px;
    border-radius: 20px;
    border: 1px solid #b3747e;
    border-bottom: 2px solid #b3747e;
    background-color: #e9d5db;
    color: #333;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus {
    border: 2px solid #ffc0cb;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 192, 203, 0.8);
    transition: border 0.2s ease, box-shadow 0.3s ease;
}

.message {
    font-size: 18px;
    padding-bottom: 30px;
}

form button {
    margin: 15px;
    padding: 7px 15px;
    font-size: 15px;
    font-family: 'Cambria', serif;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    background-color: #ffc0cb;
    color: #333;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
}

form button:hover {
    background-color: #e08e9d;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

h2.contact-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transition: max-height 420ms cubic-bezier(.2,.9,.2,1), opacity 280ms ease;
}

h2.contact-expanded {
    max-height: 200px !important;
    opacity: 1 !important;
    overflow: visible !important;
    transition: max-height 420ms cubic-bezier(.2,.9,.2,1), opacity 280ms ease 80ms;
}



/* footer -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.footer {
    width: 100%;
    background-color: #121212;
    box-shadow: 0 -1px 10px #44444484;
    color: white;
    padding: 30px 0;
    display: flex;
    gap: 20px;
    justify-content: center; 
    align-items: center;     
}

.footer .text-center {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 12px;              
    width: 100%;
    max-width: 980px;
}

.footer p {
    margin: 0;
}

.footer p:nth-child(2) {
    display: flex;
    justify-content: center; 
    gap: 10px;               
    margin-top: 8px;
}

.insta-link,
.linkedin-link {
    text-decoration: none;
    display: inline-block;
}

.logo-reseaux {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.logo-insta {
    width: 62px;
}

.logo-linkedin {
    width: 42px;
}

.logo-reseaux:hover {
    transform: scale(1.2);
}

.droits {
    font-size: 14px;
    margin-top: 10px;
}

/* Contact button styling */
#footer-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 40px;
    background-color: #ca7f8d24;
    color: #fff;
    border: 1px solid #ffffffcc;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(232,145,156,0.08);
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    margin-top: 8px;
}

#footer-contact-link:hover {
    background-color: #e08e9d;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(232,145,156,0.12);
}




@media (max-width: 480px) {
    .footer .text-center { padding: 8px; }
    #footer-contact-link { width: 100%; padding: 12px 16px; border-radius: 10px; }
}


/* media cury ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

@media (max-width: 768px) {
    @media (max-width: 768px) {
    .lightbox-slide embed[type="application/pdf"] {
        height: 65vh;
        margin-bottom: 50px;
    }
}

.footer {
    flex-direction: column;
}
#footer-contact-link {
padding: 5px 0;
}
    .video {
        margin-top: -100px;
    }
    #project-lightbox .lightbox-content .lightbox-slide {
        min-height: 300px;
        max-height: 620px; 
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-bottom: 12px;
    }
 
    .project-card {
        min-height: 450px; /* ajuster si vous voulez plus ou moins */
        height: auto; 
    }
    /* galery-----------------------------------*/
    .gallery {
        display: grid;
        grid-template-columns: 1fr;
        place-items: center;
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }
    .cartes {
        display: grid;
        grid-template-columns: 1fr;
        place-items: center;
        gap: 2rem;
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }
    /*skills ---------------*/
    .skill .progress {
        height: 0%;
    }
    .skill.active .progress {
        height: var(--progress);
    }
    /* timeline---------------------------*/
    .timeline-container {
        padding: 0 20px;
        border-color: transparent;
    }
    .timeline::before {
        left: 8px;
        transform: none;
    }
    .timeline li {
        position: relative;
        width: 100%;
        padding-left: 30px;
        padding-right: 0;
        text-align: left !important;
        left: 0 !important;
    }
    .timeline li::before {
        left: 3px;
        right: auto;
    }
    .timeline li.parc::before {
        left: 3px;
        right: auto;
    }
    .timeline li.expc::before {
        left: 3px;
        right: auto;
    }
    .timeline li.parc .content {
        position: relative;
    }
    .timeline li.parc .content::before {
        content: '';
        position: absolute;
        top: 20px;
        right: 521px;
        border-width: 8px;
        border-style: solid;
        border-color: transparent #ffb6c1 transparent transparent;
    }
    .timeline li.parc::before {
        right: -6px;
    }
    .timeline li.parc {
        left: 50%;
        text-align: left;
    }
    /* menu burger ----------------------------------------- */
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        margin-right: 16px;
        width: 30px;
        height: 24px;
        cursor: pointer;
        z-index: 2;
        transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .burger span {
        width: 30px;
        height: 2.5px;
        background-color: #fff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .burger:hover span {
        background-color: #ffb6c1;
    }
    /* menu déroulant */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        gap: 40px;
        width: 100%;
        background-color: #141414;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-100%);
        transition: transform 0.5s ease, opacity 0.5s ease;
        z-index: 1;
        padding: 60px 0;
        pointer-events: none;
    }
    .nav-links.open {
        transform: translateY(70px);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }
    .nav-links a {
        text-decoration: none;
        color: #fff;
        font-size: 18px;
        padding: 2px;
        transition: color 0.3s ease, font-size 0.3s ease;
    }
    .nav-links a:hover {
        color: #ffb6c1;
        font-size: 20px;
    }
    /* Sous-menu mobile (menu burger ouvert) */
    .nav-links.open .dropdown .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    }
    .nav-links.open .dropdown:hover .dropdown-menu {
        max-height: 500px;
        opacity: 1;
    }
    .name-mobile {
        display: flex;
        font-size: 18px;
        color: #f7edf0;
        text-shadow: 0 2px 5px #999999;
        font-family: Georgia, 'Times New Roman', Times, serif;
    }
    .portfolio {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 35px;
    }
    /* projet lightbox----------*/
    #project-lightbox .lightbox-content {
        max-width: 320px;
        min-width: 320px;
        min-height: 300px;
    }
    #project-lightbox.lightbox-wrapper {
        height: 100vh;
        width: 100vw;
    }
    #project-lightbox img {
        width: 100%;
        max-width: 200px;
        max-height: 340px;
    }

    /* replace filter buttons with select on mobile */
    .project-filters .filter-btn { display: none; }
    .filter-select { display: inline-block; }




  /* Cacher les boutons injectés par JS */
    .secondary-filters button.filter-btn {
        display: none;
    }

    /* Afficher le select mobile */
    .secondary-filters select.filter-select {
        display: inline-block;
        padding: 8px 12px;
      	font-size: 18px;
        border-radius: 8px;
        border: 1px solid #ffc0cb;
        background-color: #141414;
        color: #fff;
        appearance: none;
        outline: none;
        padding-right: 36px;
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 18px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffc0cb'><path d='M5.5 7.5L10 12l4.5-4.5z'/></svg>");
    }

    .secondary-filters select.filter-select:focus {
        border-color: #ffc0cb;
        box-shadow: 0 0 0 6px rgba(255,192,203,0.06);
    }





/* texte des lightbox */
    #project-lightbox .lightbox-slide p {
    margin-bottom: 40px;
    }

    #project-lightbox .lightbox-slide h3 {
    margin-bottom: 20px;
    }


@media (max-width: 500px) {
    .skills,
    .biography,
    .projects-section,
    .contact-section {
        scroll-margin-top: 90px;
    }
    .portfolio {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .portfolio-link {
        margin-left: 35px;
    }
    .skill {
        margin-left: -12px;
    }
     /* bouton des projets ----------------------------------*/
    .lightbox-nav {
        position: absolute !important;
        top: auto;
        bottom: 16px;
        left: 12px;
        right: 12px;
        width: auto;
        justify-content: center;
        gap: 20px;
        pointer-events: none; 
        margin-top: 10px;
    }

    .lightbox-nav button {
        margin: 5px -7px;
        pointer-events: auto;
        position: absolute;
        bottom: 0; 
        width: 55px;
        height: 44px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background-color: #ca7f8d61;
        border: 1px solid #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    }

    .lightbox-nav button#prev-slide { left: 6px; }
    .lightbox-nav button#next-slide { right: 6px; }

    .lightbox-controls {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
        padding: 0 30px;
    }
}
}
