@import "_vars.css";
@import "_nav.css";
@import "_footer.css";

/* ------------------------------------
                BASE
------------------------------------ */
::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom,#fff 0%,#f3f4fb 25%,#eaecf9 50%,#f3f4fb 75%,#fff 100%);
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    color: #1C1C1C;
}

ul {
    list-style: none;
}

.fade-section {
    opacity: 0.001;
    transition:
        opacity 1s cubic-bezier(.22, 1, .36, 1),
        transform 1s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
    min-height: 200px;
}

.fade-section.visible {
    opacity: 1;
}

/* ------------------------------------
                LAYOUT
------------------------------------ */
/* Setup Layout*/
.firstLayout, .secondLayout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  margin: 0 13%;
  min-height: 100vh;
}

/* PRE-TITLE */
.pre-title-container {
  display: flex;
  align-items: center;
  border: 1px solid rgba(28,28,28,0.1);
  border-radius: 25px;
  max-width: fit-content;
  margin-bottom: 20px;
  gap: 8px;
  padding: 5px;
}

.pre-title-badge {
  background: radial-gradient(circle at top left, #5F9BF0, #76C6F3);
  color: white;
  padding: 5px 10px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 8px;
}

.pre-title-text {
  color: rgba(28,28,28,0.7);
  font-size: 14px;
  font-weight: 500;
  padding-right: 10px;
  letter-spacing: -0.02em;
}


/* BLOC MEDIA */
.media-wrapper{
  display: flex;
  justify-content: center;
  width: fit-content;
}

.media-bg {
  background: rgba(255, 255, 255, 0.5); /* Test Glow */
  border: 1px solid white; /* Test Glow */
  border-radius: 25px;
  padding: 10px;
  position: relative;
  overflow: visible; /* Test Glow */
  width: min(600px, 45vw);
  aspect-ratio: 16/9;
  height: auto;
  box-sizing: border-box;
}

/* Glow bleu */
.media-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50vw;
  height: 25%;
  background: #76C6F3;
  filter: blur(200px);
  opacity: 1;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Glow blanc */
.media-bg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35vw;
  height: 25%;
  background: #fff;
  filter: blur(200px);
  mix-blend-mode: lighten;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* FENETRE CONTAINER */
.media-inner {
  background: white;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(95,155,240,0.25);
  width: 100%;
  height: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* TOP BAR INTERFACE */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .circles {
  display: flex;
  gap: 6px;
}

.circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background:#FF605C; }
.yellow { background:#FFBD44; }
.green { background:#00CA4E; }

.top-bar .text{
  font-weight: 500;
  font-style: italic;
  font-size: .7em;
}

/* SEPARATEUR */
.separator {
  height: 1px;
  background: #D9DEE8;
  margin: 10px 0 0 0;
  width: calc(100% + 30px);
  margin-left: -15px;
}

/* CONTENU MEDIA */
.content-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
}

.media-content {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background-size: cover;
  background-position: top;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1);
  opacity: 1;
}
.media-content.anim-out {
  opacity: 0;
  transform: scale(0.97);
}

/* BLOC TEXTE .firstLayout */
.firstLayout h1 {
  font-weight: 600;
  color: #1C1C1C;
  line-height: 42px;
  margin: 20px 0;
  font-size: 40px;
  max-width: 650px;
}

.firstLayout .subtext {
  color: rgba(28,28,28,0.7);
  letter-spacing: -0.04em;
  line-height: 25px;
  font-size: 17px;
  max-width: 700px;
  margin: 20px 0;
}

/* BLOC TEXTE .secondLayout */
h2 {
  font-weight: 600;
  color: #1C1C1C;
  line-height: 42px;
  margin: 20px 0;
  font-size: 40px;
  max-width: 650px;
}

.secondLayout .subtext {
  color: rgba(28,28,28,0.7);
  letter-spacing: -0.04em;
  line-height: 25px;
  font-size: 17px;
  max-width: 700px;
  margin: 20px 0;
}

/* ------------------------------------
                RESPONSIVE
------------------------------------ */

@media (max-width: 1366px) {

  .firstLayout,
  .secondLayout {
    margin: 0 6%;
  }

  .media-bg {
    width: min(520px, 40vw);
  }

  .firstLayout h1,
  .secondLayout h2 {
    font-size: 30px;
    line-height: auto;
  }

  .firstLayout .subtext {
    line-height: auto;
    margin: 20px 20px 20px 0;
  }

  .secondLayout .subtext {
    font-size: 16px;
    line-height: 24px;
    margin: 20px 0 20px 20px;
  }

  .firstLayout h1 {
    margin: 20px 20px 20px 0;
  }

  .secondLayout h2 {
    margin: 20px 0 20px 20px;
  }
}

/* 1024px */
@media (max-width: 1024px) {

  .firstLayout,
  .secondLayout {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
    margin: 53px 6%;
  }

  .layoutLeft,
  .layoutRight {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  h1, h2 {
    font-size: 36px;
    line-height: 40px;
    max-width: 90%;
    margin-top: 16px;
    margin-bottom: 12px;
  }

  .subtext {
    font-size: 16px;
    max-width: 90%;
    margin-top: 8px;
    margin-bottom: 12px;
  }

  .media-wrapper {
    width: 95%;
    margin: 0 auto;
    justify-content: center;
    order: -1;
  }

  .media-bg {
    width: 100%;
    aspect-ratio: 16/9;
  }
}

/* <700px */
@media (max-width: 700px) {

  h1, .subtext {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top:20px;
    margin-bottom:12px;
  }

  .media-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }

  .media-bg {
    width: 100%;
    max-width: 794px;
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
  }
}

/* 480px */
@media (max-width: 480px) {

  .media-wrapper {
    padding-left: 8px;
    padding-right: 8px;
  }
}
