/* GLOBAL */

* {
    box-sizing: border-box;
}

body {
    background-color: #eee;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #444;
    line-height: 1.25rem;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* COMMON */

a:link, a:visited {
    color: #000;
    text-decoration: none;
}

a:hover, a:active {
    color: #000;
    text-decoration: underline;
}

.alert {
    border-radius: 0;
}

.blast {
    display: inline-block;
}

.cursor-pointer {
    cursor: pointer;
}

.download-pdf {
    color: #dc251f !important;
}

.download-pdf:hover, .download-pdf:active {
    color: #e65954 !important;
}

.fa-chevron-up {
    transition: color 0.35s ease-in-out;
}

.fa-file-pdf {
    transition: color 0.35s ease-in-out;
}

.flash-message {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.flash-message.flash-hide {
    opacity: 0;
    transform: translateY(-5px);
}

.form-control {
    border-radius: 0;
}

hr {
    height: 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin: 0.75rem 0;
}

.main-color {
    color: #ffd400;
}

.mb-50 {
    margin-bottom: 50px;
}

.page-margin {
    margin-top: 100px;
}

.success {
    color: #00AA4C;
}

.with-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* BUTTONS */

.btn {
    border-radius: 0;
}

.btn-main {
    display: inline-block;
    background-color: #ffd400;
    border-bottom: 3px solid #F6B300;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.btn-main:hover, .btn-main:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background-color: #FFD400;
    text-decoration: none;
}

.btn-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    text-align: center;
    background-color: #ffd400;
    border-bottom: 3px solid #F6B300;
    border-radius: 6px;
    font-size: 1rem;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    text-decoration: none;

    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background-color 0.35s ease;
}

.btn-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-top:hover, .btn-top:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-top:focus {
    outline: none;
}

.btn-top:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.6);
}

/* TITLES */

h1, h2, h3, h4, h5 {
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

h1 {
    font-size: 2rem;
    margin: 0;
    padding: 1rem 0;
}

h2 {
    font-size: 1.5rem;
    text-align: center;
    width: 100%;
}

h3 {
    font-size: 1rem;
    margin: 0;
    padding: 1rem 0;
}

h5:hover {
    color: #888;
}

/* HEADER */

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: rgba(0,0,0,0);
    transition: all 0.35s ease;
    z-index: 999;
}

.header-black {
    background-color: rgba(0,0,0,1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
    transition: all 0.35s ease-in-out;
}

.nav-collapse {
    padding: 10px 0;
}

.sitename {
    float: left;
}

.logo {
    height: 40px;
    transition: all 0.35s ease-in-out;
}

.menu {
    float: right;
}

.menu ul {
    list-style: none;
    margin: 0;
}

.menu ul li {
    position: relative;
    display: inline;
    margin: 0 15px;
    padding: 0;
}

.menu ul li:last-of-type {
    margin-right: 0;
}

.menu ul li a:link, .menu ul li a:visited {
    color: #fff;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    letter-spacing: 0.05rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.35s ease-in-out;
}

.menu ul li a:hover, .menu ul li a:active {
    color: #ffd400;
    text-decoration: none;
}

.menu ul li a::after {
    content: "";
    width: 100%;
    position: absolute;
    margin-top: 3px;
    top: 100%;
    left: 0;
    height: 2px;
    background-color: #ffd400;
    transform: scaleX(0);
    transition: transform 0.35s ease-in-out;
}

.menu ul li a:hover::after {
    transform: scaleX(1);
}

.menu ul li a.active {
    color: #ffd400;
}

/*
.menu ul li a.active::after {
  transform: scaleX(1);
  transition: none;
}

.menu ul li a.active {
  color: #ffd400;
}*/

/* NAV BUTTON (MOBILE) */

.btn-nav {
    display: none;
    position: absolute;
    right: 10px;
    top: 25px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    z-index: 999;
}

.btn-nav-collapse {
    top: 12px;
}

.btn-nav span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    transform: translateX(-50%) translateY(-50%);
}

.btn-nav span::before, .btn-nav span::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    transform: translateY(-6px);
    transition: transform 0.35s;
}

.btn-nav span::after {
    transform: translateY(6px);
}

.btn-nav:hover span::before {
    transform: translateY(-8px);
}

.btn-nav:hover span::after {
    transform: translateY(8px);
}

.btn-nav.isCross span {
    background: transparent;
    transition: all 0.35s, transform 0.35s;
}

.btn-nav.isCross span::before {
    transform: translateY(0) rotate(45deg);
}

.btn-nav.isCross span::after {
    transform: translateY(0) rotate(-45deg);
}

/* HOME */

.home-bg {
    background-color: #000 !important;
}

.home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #000;
}

.fullscreen-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.fullscreen-video-wrap video {
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
}

.home-overlay {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.home-content {
    text-align: center;
    z-index: 2;
}

.home-title, .home-sub-title {
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.home-title {
    font-size: 3.5rem;
    line-height: 3.5rem;
    padding: 10px 0;
}

.home-sub-title {
    font-size: 2.75rem;
    line-height: 2.75rem;
    padding: 10px 0;
}

/* PORTFOLIO */

.projects-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 3rem;
    row-gap: 2rem;
}

.project {
    width: 100%;
}

.project-thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
    border: 1px solid #ccc;
    box-shadow: 0 0 12px 0 rgba(0,0,0,.15);
    overflow: hidden;
    cursor: pointer;
    transition: border 0.35s ease;
}

.project-thumbnail:hover {
    border-color: #ffd400;
}

/* Overlay jaune */
.project-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 212, 0, 0.6);
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Icône */
.project-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    font-size: 2.5rem;
    color: #000;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 2;
}

/* Hover */
.project-thumbnail:hover::after {
    opacity: 1;
}

.project-thumbnail:hover .project-icon {
    opacity: 1;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.project-thumbnail:hover img {
    filter: brightness(0.9);
}

.project-caption {
    margin-top: 0.5rem;
}

.project-caption h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    text-align: left;
}

.project-caption .date {
    color: #777;
}

.project-details {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
}

.project-details .images {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-details .carousel {
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, .15);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 1;
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 2rem;
    color: #000;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.carousel-control-prev:hover i {
    transform: translateX(-4px);
}

.carousel-control-next:hover i {
    transform: translateX(4px);
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 6px;

    background-color: #000;
    border-radius: 50%;
    border: none;

    opacity: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-indicators [data-bs-target]:focus-visible {
    outline: 2px solid #ffd400;
    outline-offset: 3px;
}

.carousel-indicators .active {
    background-color: #ffd400;
    transform: scale(1.2);
}

.project-details .images img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid #ccc;
}

.project-details .description {
    width: 100%;
    line-height: 1.4;
}

/* PROFILE */

.presentation {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
}

.presentation-photo img {
    border: 2px solid #aaa;
}

.presentation-text {
    width: 100%;
}

.timeline {
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.line {
    background-color: #ccc;
    bottom: 0;
    height: auto;
    position: absolute;
    left: 50%;
    right: 50%;
    top: 0;
    width: 2px;
    z-index: 9;
}

.level {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.panel-blank {
    width: 47.5%;
}

.panel {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    background-color: #fff;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.15);
    width: 47.5%;
    z-index: 99;
    position: relative;
}

.panel-left::after {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    right: -38px;
    width: 38px;
    height: 2px;
    background-color: #ccc;
    transform: translateY(-50%);
}

.panel-right::after {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: -38px;
    width: 38px;
    height: 2px;
    background-color: #ccc;
    transform: translateY(-50%);
}

.panel-header {
    background-color: #ffd400;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom: 3px solid #f6b300;
    overflow: hidden;
    width: 100%;
}

.panel-header-school {
    background-color: #96ceea;
    border-bottom: 3px solid #5bb0dc;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    overflow: hidden;
    width: 100%;
}

.panel-date {
    border-right: 1px solid #f6b300;
    float: left;
    font-weight: bold;
    padding: 10px;
}

.panel-date-school {
    border-right: 1px solid #5bb0dc;
    float: left;
    font-weight: bold;
    padding: 10px;
}

.panel-title {
    float: left;
    font-weight: 600;
    padding: 10px;
}

.panel-icon {
    float: right;
    font-size: 1.1rem;
    padding: 10px;
}

.panel-body {
    padding: 10px;
    width: 100%;
}

.panel-body-role {
    padding: 3px 0;
}

.panel-body ul {
    margin: 0;
    padding-left: 20px;
}

.panel-body ul li {
    padding: 3px 0;
}

.marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5%;
}

.point {
    background-color: #ccc;
    border-radius: 50%;
    height: 16px;
    margin-left: 2px;
    width: 16px;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.skills-list {
    width: 50%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.skill-card {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .4rem;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 0 12px 0 rgba(0,0,0,.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.skill-card:hover {
    transform: translateY(-2px);
    cursor: pointer;
}

.skill-card img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

/* CONTACT */

.contact {
    display: grid;
    grid-template-columns: 3fr 2fr;
    column-gap: 2rem;
}

.map-wrapper {
    border: 1px solid #ccc;
    box-shadow: 0 0 12px 0 rgba(0,0,0,.15);
}

.map {
    width: 100%;
    height: 460px;
    border: none;
}

.form ul {
    color: #dc251f;
    font-weight: 600;
    list-style: none;
    margin-bottom: 0;
    margin-top: 0.35rem;
    padding: 0;
}

/* MEDIA QUERIES */

@media (max-width: 1400px) {

    .panel-left::after {
        right: -34px;
        width: 34px;
    }

    .panel-right::after {
        left: -34px;
        width: 34px;
    }

    .skills-list {
        width: 60%;
    }
}

@media (max-width: 1200px) {

    .panel-left::after {
        right: -30px;
        width: 30px;
    }

    .panel-right::after {
        left: -30px;
        width: 30px;
    }

    .skills-list {
        width: 70%;
    }

    .projects-list {
        grid-template-columns: 1fr 1fr;
    }
    
    .project-details {
        grid-template-columns: 3fr 1fr;
        gap: 2rem;
    }

    .map {
        height: 390px;
    }

}

@media (max-width: 992px) {

    .home-title {
        font-size: 3.35rem;
        line-height: 3rem;
    }
    
    .home-sub-title {
        font-size: 2.25rem;
        line-height: 2.25rem;
    }
    
    .main-color {
        display: block;
    }

    .timeline {
        padding: 0;
    }

    .level {
        flex-wrap: wrap;
        justify-content: center;
    }

    .panel {
        width: 100%;
        margin: 20px 0;
    }

    .panel-left::after {
        display: none;
    }

    .panel-right::after {
        display: none;
    }

    .panel-blank {
        display: none;
    }

    .marker {
        display: none;
    }

    .skills-list {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        }

    .skill-card img {
        max-width: 75%;
        max-height: 75%;
        object-fit: contain;
    }
    
    .project-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 2rem;
    }

}

@media (max-width: 768px) {

    .home-title {
        font-size: 2.8rem;
        line-height: 2.8rem;
    }
    
    .home-sub-title {
        font-size: 2rem;
        line-height: 2rem;
    }

    .menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        background-color: #000;
        z-index: 999;
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform 0.35s ease-in-out;
    }

    .menu ul {
      margin: 0;
      padding: 15px 0 0 0;
    }

    .menu ul li {
        display: block;
        margin: 0;
        padding: 30px 0;
        font-size: 2rem;
        text-align: center;
    }

    .menu ul li a::after, .menu ul li a:hover::after {
        height: 0;
    }

    .isOpen {
        transform: translateX(0);
        visibility: visible;
    }

    .btn-nav {
        display: block;
    }

    .panel {
        font-size: 0.95rem;
    }

    .panel-date, .panel-date-school {
        border-right: 0;
        padding: 3px 10px;
        text-align: center;
        width: 100%;
    }

    .panel-title {
        padding: 3px 10px;
        text-align: center;
        width: 100%;
    }

    .panel-icon {
        float: none;
        text-align: center;
    }

    .panel-icon i {
        margin-top: 5px;
    }

    .projects-list {
        grid-template-columns: 1fr;
    }

    .map {
        height: 350px;
    }

}

@media (max-width: 500px) {

    .home-title {
        font-size: 2.5rem;
        line-height: 2.5rem;
    }
    
    .home-sub-title {
        font-size: 1.75rem;
        line-height: 1.75rem;
    }

    .map {
        height: 280px;
    }
}