@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* -------------------------------------------------------------------------- */
/*                                   NAVBAR                                   */
/* -------------------------------------------------------------------------- */
#navDesktop,
#navMobile {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    background-color: transparent;
}

/* État scrollé - Glassmorphism */
.navDesktopScrolled,
.navMobileScrolled {
    background: rgba(1, 14, 27, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.navDesktopScrolled svg path,
.navMobileScrolled svg path {
    fill: #fff !important;
    transition: fill 0.3s ease;
}

.navMobileScrolled a {
    color: #fff !important;
}

/* État menu ouvert */
.navMainMobileActive {
    background-color: transparent !important;
}

.navMainMobileActive #hamb span {
    background-color: #fff !important;
}

.navMainMobileActive svg path {
    fill: #fff !important;
}

/* Supprimer l'ancien effet de underline */
#navDesktop .navLinksList a::before {
    display: none;
}

/* Garder uniquement les transitions */
#navDesktop .navLinksList a {
    position: relative;
    transition: color 0.3s ease;
}

/* État actif */
.nav-link.active {
    color: #25C5AA !important;
    opacity: 1;
}

.nav-link-mobile.active {
    color: #25C5AA !important;
    opacity: 1;
}

/* -------------------------------------------------------------------------- */
/*                                HAMBURGER MENU                              */
/* -------------------------------------------------------------------------- */

.hamburger-lines span {
    display: block;
    height: 1.5px;
    background-color: #ffffff;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-radius: 2px;
}

.line-top {
    width: 28px;
}

.line-middle {
    width: 22px;
    margin-left: auto;
}

.line-bottom {
    width: 16px;
    margin-left: auto;
}

#hamb:hover .line-middle {
    width: 28px;
    transition-delay: 0.05s;
}

#hamb:hover .line-bottom {
    width: 28px;
    transition-delay: 0.1s;
}

#hamb:hover span {
    background-color: #25C5AA;
}

#hamb.active .line-top {
    transform: translateY(9px) rotate(45deg);
    width: 28px;
}

#hamb.active .line-middle {
    opacity: 0;
    transform: scale(0);
}

#hamb.active .line-bottom {
    transform: translateY(-9px) rotate(-45deg);
    width: 28px;
}

#hamb.active span {
    background-color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/*                              MENU MOBILE BACKDROP                          */
/* -------------------------------------------------------------------------- */

.menu-backdrop {
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background-color: rgba(1, 11, 21, 0);
    pointer-events: none;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

body.menu-open .menu-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background-color: rgba(1, 11, 21, 0.95) !important;
    pointer-events: auto !important;
}

/* -------------------------------------------------------------------------- */
/*                          MENU MOBILE LINKS                                 */
/* -------------------------------------------------------------------------- */

.navLinksMobile {
    height: 0;
    opacity: 0;
    visibility: hidden;
    background: transparent;
    z-index: 10001;
    transition: height 0.5s cubic-bezier(0.645, 0.045, 0.355, 1),
        opacity 0.4s ease,
        visibility 0s 0.5s;
}

.navLinksMobile.navMobileActive {
    height: 100vh;
    opacity: 1;
    visibility: visible;
    background: transparent;
    transition: height 0.5s cubic-bezier(0.645, 0.045, 0.355, 1),
        opacity 0.4s 0.1s ease,
        visibility 0s;
}

/* Animation des liens en cascade */
.navLinksMobile a {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.navLinksMobile.navMobileActive a {
    opacity: 1;
    transform: translateX(0);
}

.navLinksMobile.navMobileActive a:nth-child(1) {
    transition-delay: 0.15s;
}

.navLinksMobile.navMobileActive a:nth-child(2) {
    transition-delay: 0.2s;
}

.navLinksMobile.navMobileActive a:nth-child(3) {
    transition-delay: 0.25s;
}

.navLinksMobile.navMobileActive a:nth-child(4) {
    transition-delay: 0.3s;
}

.navLinksMobile.navMobileActive a:nth-child(5) {
    transition-delay: 0.35s;
}

/* État actif des liens */
.nav-link-mobile.active {
    color: #25C5AA !important;
    background: linear-gradient(90deg, rgba(37, 197, 170, 0.15) 0%, transparent 100%);
}

.nav-link-mobile.active .absolute {
    transform: scaleY(1) !important;
}

.nav-link-mobile.active span {
    color: #25C5AA !important;
}

/* Effet hover sur les liens */
.nav-link-mobile:hover {
    padding-left: 3rem;
    background: linear-gradient(90deg, rgba(37, 197, 170, 0.1) 0%, transparent 100%);
    color: #ffffff !important;
}

.nav-link-mobile.active:hover {
    color: #25C5AA !important;
}

/* Force le style primary pour les liens actifs desktop */
.nav-link:hover {
    color: #ffffff !important;
}

.nav-link.active:hover {
    color: #25C5AA !important;
}

/* -------------------------------------------------------------------------- */
/*                                   HEADER                                   */
/* -------------------------------------------------------------------------- */

header {
    background-image: url('../assets/imgs/Vector.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    /* ← Centré horizontalement et verticalement */
    width: 100%;
    height: 100%;
    background-attachment: fixed;
}

/* Optimisation mobile */
@media (max-width: 768px) {
    header {
        background-attachment: scroll;
        /* Fixed cause des problèmes sur mobile */
        background-position: center center;
        /* Force le centrage */
        background-size: cover;
        /* ou 'contain' si tu veux voir toute l'image */
    }
}

.ligne {
    width: 1px;
    height: 0;
    background-color: white;
    margin-top: 30px;
    animation: ligneHeader 1s ease infinite alternate;
}

@keyframes ligneHeader {
    0% {
        height: 0;
    }

    100% {
        height: 75%;
    }
}

.carre {
    width: 3px;
    height: 3px;
    background-color: white;
}

#ligneMobile {
    width: 0.5px;
    height: 100px;
    background-color: white;
    margin-top: 30px;
}

.headerArrowAnim {
    animation: headerArrowAnim 1s ease infinite alternate;
}

@keyframes headerArrowAnim {
    0% {
        transform: translateY(-25%);
    }

    100% {
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------------- */
/*                                    ABOUT                                   */
/* -------------------------------------------------------------------------- */

.aboutColSpacer {
    height: 1px;
    width: 70%;
    background-color: #25c5aa;
    position: relative;
    margin-left: auto;
}

.aboutColSpacer::after {
    content: '';
    width: 5px;
    height: 5px;
    background-color: #25c5aa;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.aboutSpacer {
    height: 1px;
    width: 20%;
    background-color: #25c5aa;
    position: relative;
}

.aboutSpacer::after {
    content: '';
    width: 5px;
    height: 5px;
    background-color: #25c5aa;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.aboutImgContainer::after {
    content: '';
    width: 80px;
    height: 80px;
    background-image: url('../assets/imgs/diagonalArrow.svg');
    background-position: center;
    background-size: contain;
    position: absolute;
    top: -8%;
    left: -5%;
    animation: arrowAnimation 1s ease infinite alternate;
}

.aboutImgContainer:before {
    content: '';
    width: 80%;
    height: 2px;
    background-color: #25c5aa;
    position: absolute;
    bottom: 0;
    left: 0;
    animation: formationImgBar 2s ease infinite alternate;
}

/* -------------------------------------------------------------------------- */
/*                           METIERS ET COMPETENCES                           */
/* -------------------------------------------------------------------------- */

.competenceGrid {
    grid-template-areas:
        'a b c d x'
        'e f g h i'
        'j k l m n';
    grid-template-columns: repeat(5, 1fr);
}

.competenceGridMobile {
    grid-template-areas:
        'a' 'b' 'c' 'd' 'd'
        'e' 'f' 'g' 'h' 'i'
        'j' 'k' 'l' 'm' 'n';
    grid-template-columns: 1fr;
}

.text1 {
    margin-bottom: 10px;
    grid-area: b;
}

.text2 {
    margin-bottom: 10px;
    grid-area: d;
}

.text3 {
    margin-bottom: 10px;
    grid-area: j;
}

.text4 {
    margin-bottom: 10px;
    grid-area: l;
}

.text5 {
    margin-bottom: 10px;
    grid-area: n;
}

.pic1 {
    grid-area: e;
}

.pic2 {
    grid-area: f;
    margin-top: -20px;
}

.pic3 {
    grid-area: g;
}

.pic4 {
    grid-area: h;
    margin-top: -20px;
}

.pic5 {
    grid-area: i;
}

@media (max-width: 768px) {
    .competenceGrid {
        grid-template-areas:
            'a' 'b' 'c' 'd' 'd'
            'e' 'f' 'g' 'h' 'i'
            'j' 'k' 'l' 'm' 'n';
        grid-template-columns: 1fr;
    }

    .text1 {
        margin-bottom: 0;
        grid-area: d;
    }

    .text2 {
        margin-bottom: 0;
        grid-area: h;
    }

    .text3 {
        margin-bottom: 0;
        grid-area: b;
    }

    .text4 {
        margin-bottom: 0;
        grid-area: f;
    }

    .text5 {
        margin-bottom: 0;
        grid-area: j;
    }

    .pic1 {
        grid-area: a;
    }

    .pic2 {
        margin-top: 10px;
        grid-area: c;
    }

    .pic3 {
        grid-area: e;
    }

    .pic4 {
        margin-top: 10px;
        grid-area: g;
    }

    .pic5 {
        grid-area: i;
    }
}

/* -------------------------------------------------------------------------- */
/*                                 FORMATIONS                                 */
/* -------------------------------------------------------------------------- */

.formationsCard {
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 0 10%);
    transform-style: preserve-3d;
    box-shadow: 0px 40px 80px 0px rgba(0, 0, 0, 0.678);
    transform: perspective(1000px) rotateY(var(--rotateY)) rotateX(var(--rotateX));
    transition: all 0.2s ease;
}

.formationsImgContainer::before {
    content: '';
    width: 0%;
    position: absolute;
    bottom: -2%;
    right: 0;
    border-bottom: 2px solid #25c5aa;
    border-radius: 999px;
    z-index: 20;
    animation: formationImgBar 2s ease infinite alternate;
}

.formationsImgContainer::after {
    content: '';
    width: 80px;
    height: 80px;
    background-image: url('../assets/imgs/diagonalArrow.svg');
    background-position: center;
    background-size: contain;
    position: absolute;
    top: -8%;
    left: -5%;
    animation: arrowAnimation 1s ease infinite alternate;
}

.specialPdfDownloadButton:after {
    background-color: #fff;
}

.specialPdfDownloadButton:hover {
    border-color: #fff;
}

.specialPdfDownloadButton:not(:hover) p {
    transition-delay: 0s;
}

.specialPdfDownloadButton p {
    transition-delay: 0.4s;
}

.specialPdfDownloadButton:hover p {
    color: #000;
}

/* -------------------------------------------------------------------------- */
/*                                   MISSION                                  */
/* -------------------------------------------------------------------------- */
.missionCard {
    background-size: cover;
    background-repeat: no-repeat;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%, 0 20%);
    background-position: right;
}

.mission1 {
    background-image: url('../assets/imgs/missions/bgMissions1.png');
}

.mission2 {
    background-image: url('../assets/imgs/missions/bgMissions2.png');
}

.mission3 {
    background-image: url('../assets/imgs/missions/bgMissions3.png');
}

.missionBar {
    background-color: white;
    height: 1px;
    animation: missionBar 1s ease infinite alternate;
}

.mobileMissionBar {
    background-color: white;
    width: 1px;
    height: 50px;
    animation: mobileMissionBar 1s ease infinite alternate;
}

.missionFleche {
    animation: missionFleche 1s ease infinite alternate;
}

@media (max-width: 768px) {
    .missionCard {
        background-size: cover;
        background-position: center;
        clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 15%);
    }

    .mission1 {
        background-image: url('../assets/imgs/missions/bgMissionsMobile1.png');
    }

    .mission2 {
        background-image: url('../assets/imgs/missions/bgMissionsMobile2.png');
    }

    .mission3 {
        background-image: url('../assets/imgs/missions/bgMissionsMobile3.png');
    }
}

/* -------------------------------------------------------------------------- */
/*                               RECOMMANDATIONS                              */
/* -------------------------------------------------------------------------- */

.swiper-slide {
    transition: all 0.5s ease;
}

.swiper-slide:not(.swiper-slide-active) {
    transform: scale(0.7) !important;
    opacity: 0.5 !important;
}

.swiper-slide-prev {
    transform: scale(0.7) rotate(-10deg) translateY(50px) !important;
}

.swiper-slide-next {
    transform: scale(0.7) rotate(10deg) translateY(50px) !important;
}

/* === TESTIMONIALS SLIDER === */
.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-out;
}

.testimonial-card {
    box-sizing: border-box;
}

.dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(37, 197, 170, 0.5) !important;
}

/* Fondus sur les côtés */
.testimonials-slider {
    position: relative;
}

.testimonials-slider::before,
.testimonials-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.testimonials-slider::before {
    left: 0;
    background: linear-gradient(to right, #010B15 0%, transparent 100%);
}

.testimonials-slider::after {
    right: 0;
    background: linear-gradient(to left, #010B15 0%, transparent 100%);
}

@media (max-width: 768px) {

    .testimonials-slider::before,
    .testimonials-slider::after {
        width: 40px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                   CONTACT                                  */
/* -------------------------------------------------------------------------- */

.ligneContact1 {
    height: 1px;
    width: 26%;
    background-color: #25c5aa;
}

.ligneContact2 {
    height: 1px;
    width: -webkit-fill-available;
    background-color: #25c5aa;
}

/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */

.footerLinkSeparator {
    width: 40px;
    height: 1px;
    background-color: #25c5aa;
}

.footerLinkSeparator::after {
    content: '';
    width: 5px;
    height: 5px;
    background-color: #25c5aa;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-55%);
}

/* -------------------------------------------------------------------------- */
/*                                  ANIMATION                                 */
/* -------------------------------------------------------------------------- */
@keyframes formationImgBar {
    0% {
        width: 10%;
    }

    33% {
        width: 10%;
    }

    66% {
        width: 80%;
    }

    100% {
        width: 80%;
    }
}

@keyframes arrowAnimation {
    0% {
        transform: translate(-10%, -10%);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes missionFleche {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(10px);
    }
}

@keyframes missionBar {
    0% {
        width: 5%;
    }

    100% {
        width: 100%;
    }
}

@keyframes mobileMissionBar {
    0% {
        height: 0;
    }

    100% {
        height: 50px;
    }
}

/* -------------------------------------------------------------------------- */
/*                              THANK YOU POPUP                               */
/* -------------------------------------------------------------------------- */

#thank-you-popup.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#thank-you-popup.show #popup-content {
    transform: scale(1) !important;
}

/* Animation bounce lente */
@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

/* Animation d'apparition */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#thank-you-popup.show #popup-content {
    animation: fadeInScale 0.5s ease-out;
}