@import "_varsServices.css";
@import "_nav.css";
@import "_footer.css";

/* ------------------------------------
                BASE
------------------------------------ */
::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
  background: var(--background);
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

/* -------------------------------- */
/* ANIMATION D'ARRIVEE SUR LA PAGE */
/* ------------------------------ */
header > * {
  opacity: 0;
  transform: translateY(20px);
}

header .preTitle {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

header h1 {
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.15s;
  
}

header > p {
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.35s;
}

header .cta-group {
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.55s;
}

body.is-loaded header > * {
  opacity: 1;
  transform: translateY(0);
}

.page-interface-wrapper {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: 
    opacity 0.8s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.75s;
    will-change: transform, opacity;
}

/* État visible */
    body.is-loaded .page-interface-wrapper {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =====================================================
                        NAVBAR
===================================================== */

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    padding: 20px 80px;
    box-sizing: border-box;
    font-size: 1rem;
    position: relative;
    z-index: 10;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------------- Côté gauche ---------------- */

.leftNav img {
    margin-top: 70px ;
    height: 100px;
    width: auto;
}

/* ---------------- Côté droit ---------------- */

.rightNav {
    display: flex;
    align-items: center;
}

.rightNav > li {
    position: relative;
}

.rightNav a {
    color: var(--black);
    margin: auto 10px;
    white-space: nowrap;
    text-decoration: none;
    padding: 10px 20px;
}

.rightNav>li:nth-child(3)>a {
  background: none;
}

.rightNav>li:nth-child(4)>a {
    background: var(--mainGradient);
    border-radius: 20px;
    color: var(--white);
}

/* =====================================================
                    SERVICES DROPDOWN
===================================================== */

.nav-services {
    position: relative;
}

/* -------- Trigger -------- */

.services-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 10px;
    transition: .3s ease;
    position: relative;
    border: 1px solid transparent;
}

.nav-services:hover > .services-trigger,
.nav-services:focus-within > .services-trigger {
    border: 1px solid rgba(000,000,000,.1);
    background: var(--white);
}

/* -------- Chevron -------- */

.chevron {
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-right: 1px solid #1c1c1c;
    border-bottom: 1px solid #1c1c1c;
    transform: rotate(45deg);
    transition: transform .3s ease;
}

.nav-services:hover .chevron,
.nav-services:focus-within .chevron {
    transform: rotate(-135deg);
}

/* -------- Fenêtre du dropdown -------- */

.dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 280px;
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid rgba(000,000,000,.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    box-sizing: border-box;
    white-space: nowrap;
    z-index: 50;
}

/* zone hover invisible pour stabilité */
.nav-services::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

/* zone hover pour la liaison */
.nav-services:hover .dropdown,
.nav-services .dropdown:hover,
.nav-services:focus-within .dropdown {
    opacity: 1;
    pointer-events: auto;
}

/* -------- Dropdown services -------- */

.dropdown a {
    display: flex;
    align-items: center;
    margin-left: 0;
    gap: 10px;
    color: rgba(000,000,000,.5);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
}

.dropdown li:hover a {
    color: var(--black);
}

/* -------- SVG Icon -------- */

.dropdown a .dropdown-icon {
    width: 10px;
    height: 10px;
    opacity: 0;
    transition: opacity .25s ease;
}

.dropdown li:hover .dropdown-icon {
    opacity: 1;
}

/* =====================================================
                        MENU BURGER
===================================================== */

.burger {
    display: none;
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 50;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: .3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ------------------------------------
                HEADER
------------------------------------ */
header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 4%;
}

/* ----- PRE TITLE ----- */
.preTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--mainGradient);
  border-radius: 50px;
  box-sizing: fit-content;
  width: auto;
  margin: 25px auto;
  padding: 8px 19px;
}

.preTitle svg {
  width: 10px;
  height: auto;
}

.preTitle p {
  color: var(--white);
  font-size: .75rem;
}

/* ----- Main Title ----- */
h1 {
  width: 70%;
  font-size: 4.3rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.02;
  background: var(--title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 25px 0;
  z-index: 15;
}

header > p {
  color: var(--black);
  font-size: 1rem;
  line-height: 1.69;
  width: 37%;
  margin: 25px 0;
  z-index: 15;
}

.cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 25px auto;
  line-height: 1;
  box-sizing: border-box;
}

/* ----- CTA Services ----- */

.cta-service a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 10px;
  background: var(--mainGradient);
  background-clip: padding-box;
  background-origin: padding-box;
  color: var(--white);
  z-index: 1;
  border: 2px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cta-service a::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  background: var(--mainGradient);
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.cta-service a:hover {
  background: var(--mainGradient);
  background-clip: padding-box;
  background-origin: padding-box;
  transform: scale(1.05);
  border: 2px solid rgba(255, 255, 255, .5);
}

.cta-service a:hover::before {
  opacity: 1;
}

/* ------------------------------------
                FOOTER
------------------------------------ */
footer {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  margin-top: 100px;
}

h5 {
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

/* Main content */
.infosContainer {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 50px 100px;
}

.contactContainer {
  width: 100%;
  min-height: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
}

/* Info Contact */
.nousContacter {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  margin-left: 13%;
}

.nousContacter p {
  color: var(--black);
  font-size: .8rem;
  opacity: .7;
  margin: 0;
}

.nousContacter p:nth-child(3) {
  margin-bottom: 20px;
}

.nousContacter a {
  color: var(--black);
  opacity: .7;
  font-size: .8rem;
  text-decoration: none;
  transition: .5s;
}

.nousContacter a:hover {
  color: var(--black);
  opacity: 1;
  text-decoration: none;
  transition: .5s;
}

/* Navigation Footer */
.navFooter {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
}

.navFooter a {
  color: var(--black);
  opacity: .7;
  font-size: .8rem;
  text-decoration: none;
  margin: 5px 0;
  transition: .5s;
}

.navFooter a:hover {
  color: var(--black);
  opacity: 1;
  text-decoration: none;
  transition: .5s;
}

/* Navigation Services Footer */
.servicesFooter {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
}

.servicesFooter a {
  color: var(--black);
  opacity: .7;
  font-size: .8rem;
  text-decoration: none;
  margin: 5px 0;
  transition: .5s;
}

.servicesFooter a:hover {
  color: var(--black);
  opacity: 1;
  text-decoration: none;
  transition: .5s;
}

/* Réseaux Sociaux Footer */
.reseauxSociaux {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  margin-right: 13%;
}

.reseauxSociaux a {
  margin: 0;
  padding: 0;
  text-decoration: none;
}

.reseauxSociaux img {
  height: 20px;
  width: auto;
}

/* Fin du Footer */
.endFooter {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(000, 000, 000, .1);
}

.endFooter a {
  min-width: fit-content;
  color: var(--black);
  text-decoration: none;
  margin: 15px 13%;
  font-size: .8rem;
}

.endFooter p {
  min-width: fit-content;
  color: var(--black);
  margin: 15px 13%;
  font-size: .8rem;
  opacity: .7;
}

/* =====================================================
                        RESPONSIVE
===================================================== */

@media screen and (max-width: 1024px) {

    .burger {
        display: flex;
        position: fixed;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }

    .burger.active span {
      background-color: var(--white);
    }

    .leftNav,
    .rightNav {
        display: none;
    }

    nav.open {
        position: fixed;
        inset: 0;
        height: 100vh;
        width: 100%;
        background: rgba(0, 26, 47, 0.95);
        backdrop-filter: blur(8px);
        display: flex;
        justify-content: center;
        align-items: center;
        animation: navFade .35s ease;
        z-index: 90;
    }

    nav.open .rightNav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    nav.open li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    nav.open > .rightNav > li > a {
        font-size: 1.2rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        padding: 10px 20px;
        display: inline-block;
        font-weight: 600;
        color: var(--white);
    }

    .nav-services:hover > .services-trigger,
    .nav-services:focus-within > .services-trigger {
        border: none;
        background: none;
    }

    .nav-services {
        width: 100%;
    }

    .services-trigger {
        justify-content: center;
    }

    .chevron {
        display: none;
    }

    .nav-services.open .chevron {
        transform: rotate(-135deg);
    }

    .dropdown {
        position: static;
        transform: none;
        margin-top: 15px;
        background: none;
        border: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height .35s ease, opacity .25s ease;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-services.open .dropdown {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
    }

    .dropdown li {
        margin: .5rem 0;
    }
    
    nav.open .dropdown a  {
        font-size: 1.25rem;
        letter-spacing: 1px;
        color: rgba(255,255,255,.7);
        justify-content: center;
    }

    nav.open .nav-services .dropdown a {
        font-weight: 400;
    }

    .dropdown-icon {
        display: none;
    }
}

/* HEADER */
@media (max-width: 1400px) {
  h1 {
    width: 60%;
  }

  header > p {
    width: 50%;
  }
}

@media (max-width: 768px) {
  h1 {
    width: 80%;
  }

  header > p {
    width: 70%;
  }
}

@media (max-width: 550px) {
  h1 {
    width: 90%;
    font-size: 2.8rem;
  }

  header > p {
    width: 80%;
  }

  .cta-group {
    flex-direction: column;
    width: 90%;
  }

  .cta-contact {
    display: block;
  }
}

/* FOOTER */
@media only screen and (max-width: 1024px) {

    .nousContacter {
        margin-left: 8%;
    }

    .reseauxSociaux {
        margin-right: 8%;
    }

    .endFooter a {
        margin: 15px 8%;
    }

    .endFooter p {
        margin: 15px 8%;
    }
}

@media (max-width: 768px) {
  .infosContainer {
    margin: 30px 20px;
  }

  .contactContainer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }


  .nousContacter,
  .navFooter,
  .servicesFooter,
  .reseauxSociaux {
    margin: 0;
    align-items: center;
    text-align: center;
  }

  .nousContacter a,
  .navFooter a,
  .servicesFooter a,
  .reseauxSociaux a {
    display: block;
    margin: 3px 0;
    text-align: center;
  }

  .reseauxSociaux img {
    margin: 0 auto;
  }

  .endFooter {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: left;
  }

  .endFooter a,
  .endFooter p {
    margin: 10px;
  }
}