/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

/* =====================================
   RESET ET STYLES DE BASE
   ===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scroll Bar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* =====================================
   LAYOUT GÉNÉRAL
   ===================================== */
section {
    padding: 100px 0;
}

.max-width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

/* =====================================
   STYLES DE TEXTE GLOBAUX
   ===================================== */
.about,
.services,
.skills,
.teams,
.contact,
footer {
    font-family: 'Poppins', sans-serif;
}

p,
.about-content p {
    font-size: clamp(16px, 3vw, 18px);
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 2vh;
}

section .title {
    position: relative;
    font-size: 40px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-style: normal;
}

.littleheader,
.littleheaderserv,
.littleheadercomp {
    color: #bfbfbe;
    font-weight: 100;
}

/* =====================================
   NAVIGATION
   ===================================== */
.navbar {
    position: fixed;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #E5E5E5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.nav-links a:hover {
    color: #6B6B6B;
}

.menu-btn {
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    display: none;
}

/* =====================================
   BOUTON SCROLL-UP
   ===================================== */
.scroll-up-btn {
    position: fixed;
    height: 45px;
    width: 42px;
    background: #315624;
    right: 30px;
    bottom: 10px;
    text-align: center;
    line-height: 45px;
    color: #fff;
    z-index: 9999;
    font-size: 30px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.scroll-up-btn.show {
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}

.scroll-up-btn:hover {
    filter: brightness(90%);
}

/* =====================================
   SECTION HOME
   ===================================== */
.home {
    display: flex;
    background: url("../images/almave_background.webp") no-repeat center;
    height: 100vh;
    color: #fff;
    min-height: 500px;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    position: relative;
}

.logo-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
    perspective: 1000px;
}

.background-logo {
    width: 500px;
    height: auto;
    opacity: 0.25;
    animation: rotateY 4s linear infinite;
    transform-style: preserve-3d;
    backface-visibility: visible;
}

@keyframes rotateY {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.home .max-width {
    width: 100%;
    display: flex;
    position: relative;
    z-index: 2;
}

.home .home-content .text-1 {
    font-size: 27px;
    font-weight: 100;
    color: #fff;
}

.home .home-content .text-2 {
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}

/* =====================================
   SECTION ABOUT
   ===================================== */
.about .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.about-content .left {
    width: 45%;
    padding-right: 20px;
}

.about-content .left img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.3);
    animation: move 3s linear infinite;
}

@keyframes move {
    0% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(5px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

.about-content .right {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.about-content .text {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.about-content .text span {
    color: #315624;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.about-content ul li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: black;
}

.about-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #315624;
}

.about-content ul li strong {
    color: #333;
    font-weight: 600;
}

.about .about-content .right a {
    display: inline-block;
    background: #fff;
    color: #bfbfbe;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 40px;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid #faffff;
    transition: all 0.3s ease;
}

.about .about-content .right a:hover {
    color: #315624;
    background: none;
}

/* =====================================
   WRAPPER VIDÉO
   ===================================== */
.video-wrapper {
    width: 100%;
    max-width: 560px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.3);
    position: relative;
}

.video-wrapper img,
.video-wrapper iframe {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 40px;
    transition: transform 0.3s ease;
}

.video-wrapper:hover img,
.video-wrapper:hover iframe {
    transform: scale(1.02);
}

.video-container {
    margin: 2rem;
    max-height: 300px;
}

/* =====================================
   SECTION SERVICES
   ===================================== */
.services,
.teams {
    color: #fff;
    background: #111;
}

.services .title::before,
.teams .title::before {
    background: #fff;
}

/* Styles pour les cartes individuelles */
.card1,
.card2,
.card3,
.card4,
.card5,
.card6 {
    width: calc(33% - 20px);
    min-height: 500px;
    min-width: 100%;
    border-radius: 40px;
    padding: 50px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.card1 {
    background: url(../images/almave_card.webp) center center/cover no-repeat;
}

.card2 {
    background: url('../images/arrache_3_sauces.webp') center center/cover no-repeat;
}

.card3 {
    background: url('../images/lasportiva_card.webp') center center/cover no-repeat;
}

.card4 {
    background: url('../images/LHC_card.webp') center center/cover no-repeat;
}

.card5 {
    background: url('../images/affiche_evam.webp') center center/cover no-repeat;
}

.card6 {
    background: url('../images/affiche_mjf_card.webp') center center/cover no-repeat;
}

/* Styles génériques pour les cartes de services */
.services .serv-content .card {
    width: calc(33% - 20px);
    min-height: 500px;
    border-radius: 40px;
    padding: 50px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.services .serv-content .card:hover {
    opacity: 0.4;
}

.services .serv-content .card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    border-radius: 0 0 40px 40px;
}

.services .serv-content .card .box {
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

.services .serv-content .card i {
    font-size: 50px;
    color: white;
    transition: color 0.3s ease;
}

.services .serv-content .card .text {
    font-size: 25px;
    font-weight: 500;
    text-align: left;
}

.services a {
    color: inherit;
    text-decoration: none;
}

/* =====================================
   OWL CAROUSEL STYLES
   ===================================== */
.services .owl-carousel .card {
    width: 100%;
    min-height: 500px;
    border-radius: 40px;
    padding: 50px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    margin: 20px 10px;
}

.services .owl-carousel .card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    border-radius: 0 0 40px 40px;
}

.services .owl-carousel .card .box {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

/* Navigation Owl Carousel */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px);
    border-radius: 50% !important;
    transition: all 0.3s ease;
}

.owl-nav button:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

.owl-prev {
    left: -60px;
}

.owl-next {
    right: -60px;
}

.owl-nav button span {
    font-size: 30px;
    color: white;
}

.owl-dots {
    margin-top: 20px;
}

.owl-dot span {
    background: rgba(255, 255, 255, 0.2) !important;
}

.owl-dot.active span {
    background: white !important;
}

/* =====================================
   SECTION SKILLS
   ===================================== */
.skills .skills-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.skills .skills-content .column {
    width: calc(50% - 30px);
}

.skills .skills-content .left .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.skills .skills-content .left p {
    text-align: justify;
}

.skills .skills-content .left a {
    display: inline-block;
    background: #315624;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 16px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid #315624;
    transition: all 0.3s ease;
}

.skills .skills-content .left a:hover {
    color: crimson;
    background: none;
}

.skills .skills-content .right .bars {
    margin-bottom: 15px;
}

.skills .skills-content .right .info {
    display: flex;
    margin-bottom: 5px;
    align-items: center;
    justify-content: space-between;
}

.skills .skills-content .right span {
    font-weight: 500;
    font-size: 18px;
}

.skills .skills-content .right .line {
    height: 5px;
    width: 100%;
    background: #E8E8E8;
    position: relative;
}

.skills .skills-content .right .line::before {
    content: "";
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: #315624;
}

/* Pourcentages des compétences */
.skills-content .right .microsoft::before {
    width: 85%;
}

.skills-content .right .photoshop::before {
    width: 75%;
}

.skills-content .right .aftereffects::before {
    width: 35%;
}

.skills-content .right .illustrator::before {
    width: 80%;
}

.skills-content .right .indesign::before {
    width: 90%;
}

.skills-content .right .premiere::before {
    width: 75%;
}

.skills-content .right .lightroom::before {
    width: 65%;
}

.skills-content .right .web::before {
    width: 60%;
}

/* =====================================
   SECTION CONTACT
   ===================================== */
.contact .contact-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.contact .contact-content .column {
    width: calc(50% - 30px);
}

.contact .contact-content .text {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: left;
}

.contact .contact-content a {
    display: inline-block;
    background: #fff;
    color: #bfbfbe;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 40px;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid #faffff;
    transition: all 0.3s ease;
}

.contact .contact-content a:hover {
    color: #315624;
    background: none;
}

/* =====================================
   SECTION AWARDS
   ===================================== */
.awards-container {
    max-width: 400px;
    margin: 0 auto;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.award-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.award-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.award-description {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    opacity: 0;
    text-align: justify;
}

.award-item.active .award-description {
    max-height: 400px;
    opacity: 1;
    margin-top: 1rem;
}

.award-arrow {
    transition: transform 0.3s ease;
}

.award-item.active .award-arrow {
    transform: rotate(90deg);
}

/* =====================================
   IMAGE COMPARISON SLIDER
   ===================================== */
.image-comparison-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.image-before,
.image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-before {
    clip-path: inset(0 calc(100% - var(--position, 50%)) 0 0);
    z-index: 2;
}

.slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 4;
    margin: 0;
}

.slider-line {
    position: absolute;
    inset: 0;
    width: 2px;
    height: 100%;
    background-color: #fff;
    left: var(--position, 50%);
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: var(--position, 50%);
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-button svg {
    width: 24px;
    height: 24px;
    color: #333;
}

/* =====================================
   FOOTER
   ===================================== */
footer {
    background-color: #111;
    min-height: 10%;
    display: flex;
    align-content: center;
}

.demilogo {
    width: 300px;
    height: 350px;
    background-size: cover;
    background-position: center;
    float: left;
}

/* =====================================
   STYLES GÉNÉRAUX
   ===================================== */
a {
    text-decoration: none;
    color: white;
}

input {
    text-decoration: none;
    color: #fff;
    display: block;
    width: 300px !important;
    height: 55px;
    outline: none;
    font-size: 20px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    border-radius: 6px;
    cursor: pointer;
    flex-wrap: nowrap;
    background: #315624;
    border: 2px solid #315624;
    transition: all 0.3s ease;
}

input:hover {
    color: #315624;
    background: none;
}

img {
    max-width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    text-decoration: none;
    color: white;
    font-family: Arial, sans-serif;
}

.arrow {
    transition: transform 0.3s ease;
}

.link-arrow:hover .arrow {
    transform: translate(4px, -4px);
}

.text {
    font-size: 25px;
    font-weight: 500;
}

.box {
    font-size: 15px;
}

/* =====================================
   MEDIA QUERIES
   ===================================== */
@media (max-width: 1104px) {
    .video-wrapper {
        max-width: 480px;
    }
    
    .about .about-content .left img {
        height: 350px;
        width: 350px;
    }
}

@media (max-width: 991px) {
    .max-width {
        padding: 0 50px;
    }
}

@media (max-width: 947px) {
    .menu-btn {
        display: block;
        z-index: 999;
    }

    .menu-btn i.active:before {
        content: "\f00d";
    }

    .navbar .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        top: 0;
        background: #111;
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
    }

    .navbar .menu.active {
        left: 0;
    }

    .navbar .menu li {
        display: block;
    }

    .navbar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }

    .home .home-content .text-2 {
        font-size: 70px;
    }

    .max-width {
        max-width: 930px;
    }

    .about .about-content .column {
        width: 100%;
    }

    .about .about-content .left {
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }

    .about .about-content .right {
        flex: 100%;
    }

    .services .serv-content .card {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }

    .skills .skills-content .column,
    .contact .contact-content .column {
        width: 100%;
        margin-bottom: 35px;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    h2.title {
        font-size: 25px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-content .left,
    .about-content .right {
        width: 100%;
        padding-right: 0;
    }

    .owl-nav {
        display: none;
    }

    .services .owl-carousel .card {
        margin: 10px 5px;
    }

    .demilogo {
        width: 200px;
        height: 233px;
    }
}

@media (max-width: 690px) {
    .max-width {
        padding: 0 23px;
    }

    .home .home-content .text-2 {
        font-size: 50px;
    }

    .services .serv-content .card {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .max-width {
        padding: 0 20px;
    }

    .home .home-content .text-1 {
        font-size: 20px;
    }

    .home .home-content .text-2 {
        font-size: 40px;
    }

    .about-content .text {
        font-size: 20px;
    }

    .about .about-content .right .text,
    .skills .skills-content .left .text {
        font-size: 19px;
    }

    .scroll-up-btn {
        right: 15px;
        bottom: 15px;
        height: 38px;
        width: 35px;
        font-size: 23px;
        line-height: 38px;
    }

    .contact .right form .fields {
        flex-direction: column;
    }

    .contact .right form .name,
    .contact .right form .email {
        margin: 0;
    }

    .right form .error-box {
        width: 150px;
    }
}


@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-content .column {
        width: 100%;
    }

    .about-content .left {
        margin-bottom: 30px;
        text-align: center;
    }

    .about-content .right {
        padding: 0 10px;
    }
}

@media (max-width: 500px) {
    .about-content .left img {
        width: 100%;
        height: auto;
    }

    .about-content .text {
        font-size: 20px;
    }

    .about-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .about-content .left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .about-content .left .littleheaderserv {
        order: 1;
    }

    .about-content .left .text {
        order: 2;
        margin-top: 5px;
    }
}
