html {
  scroll-behavior: smooth;
}

/* Mega Menu Bouton Vert Actif */
ul.u20-menu li a.dropdown-button.button-etudier:not(.active) {
  color: var(--dropdown-button-active);
}
ul.u20-menu li a.dropdown-button.button-etudier:not(.active)::before,
ul.u20-menu li a.dropdown-button.button-etudier:not(.active)::after {
  width: 10px;
  right: 7px;
  background-color: var(--lien);
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}
ul.u20-menu li a.dropdown-button.button-etudier:not(.active)::after {
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

/* Page active du dropdown en vert */
ul.dropdown-menu
  li.dropdown-row
  ul.dropdown-col.col-decouvrir
  li
  a.p-cycles-superieurs {
  position: relative;
  color: var(--lien);
  font-weight: 700;
  border: 1px dashed var(--vert);
}
ul.dropdown-menu
  li.dropdown-row
  ul.dropdown-col.col-decouvrir
  li
  a.p-cycles-superieurs:hover {
  text-decoration: none;
}
ul.dropdown-menu
  li.dropdown-row
  ul.dropdown-col.col-decouvrir
  li
  a.p-cycles-superieurs::before {
  position: absolute;
  top: 3px;
  left: -18px;
  width: 12px;
  height: 12px;
  content: "";
  background-image: url("/u20-ico/ico-btn-fleche-grise-01-b.svg");
  background-size: 12px;
  background-repeat: no-repeat;
}

/* Inversion de colonnes sur mobile */
@media all and (max-width: 960px) {
  .flex-range.col-reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
  }
}

/* Intro */

.u20-intro {
  padding: 0;
}

.u20-intro .u20-introBloc {
  display: flex;
  justify-content: flex-start;
  padding: 2% 4%;
  background: linear-gradient(45deg, #0a703d, #0a703d9c);
}

.u20-introBloc-image {
  display: flex;
  width: 100%;
  background-image: url("/u20-img/p-cycles-superieurs/header-cycle-superieur.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  align-items: flex-end;
}

.u20-intro .u20-introBloc .u20-introTitre {
  font-size: 6.4rem;
  line-height: 1.4em;
  font-weight: 600;
}

.u20-intro .u20-introBloc .u20-introDomaine {
  font-weight: 500;
  font-size: 2.8rem;
  line-height: 3.5rem;
  letter-spacing: 0.3rem;
}

/* Page - Mobile */
@media all and (max-width: 1024px) {
  .u20-intro {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
    min-height: 25vh;
  }
  .u20-intro .u20-introBloc,
  .u20-intro .u20-introBloc-image {
    display: block;
    width: 100%;
  }
  .u20-intro .u20-introBloc {
    padding: 20px;
    min-width: 100%;
  }
  .u20-intro .u20-introBloc h1.u20-introTitre {
    margin: 0 0 5px 0;
    font-size: 2rem;
  }

  .u20-introDomaine {
    font-size: 1.5rem;
  }

  .u20-intro .u20-introBloc-image {
    height: 320px;
  }
}

@media all and (max-width: 768px) {
  .u20-bloc {
    padding: 20px 0 0;
  }
  .u20-intro .u20-introBloc-image {
    height: 200px;
  }
}
@media all and (max-width: 480px) {
  .u20-intro .u20-introBloc .u20-introTitre {
    font-size: 4.4rem;
    line-height: 1em;
  }
  .u20-intro .u20-introBloc .u20-introDomaine {
    font-size: 1.14rem;
    line-height: 1.9rem;
    letter-spacing: 0.3rem;
  }
}

.img-avec-legende figcaption {
  position: absolute;
  bottom: 13%;
  left: 6%;
  width: fit-content;
  max-width: 500px;
}

.sectionCycle2 {
  background-image: url("/u20-img/p-cycles-superieurs/BG-section-cycle2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sectionCycle3 {
  background-image: url("/u20-img/p-cycles-superieurs/BG-section-cycle3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.direction-section {
  position: relative;
  padding-top: 60px;
}

.direction-bg {
  position: absolute;
  top: 60px;
  bottom: 0;
  left: 25%;
  right: 0;
  background: linear-gradient(62deg, #174653, #228964);
  z-index: 0;
  box-shadow: 0px 0px 6px 2px #0000006b;
  margin: 20px 0px;
}

/* Le flex layout par-dessus le fond */
.direction-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.direction-photo {
  width: 45%;
  flex-shrink: 0;
}

.direction-photo img {
  width: 100%;
  display: block;
  top: -200px;
  position: relative;
}

.direction-content {
  width: 55%;
  padding: 60px 40px 60px 20px;
}

.direction-content h2,
.direction-content span {
  color: var(--blanc) !important;
}

.direction-section p a {
  color: var(--blanc) !important;
}

.direction-section p a:hover {
  color: var(--vert-pale) !important;
}

.u20-accordeon {
  border-radius: 16px 16px 0 0;
}

.sectionAccordeon {
  margin-bottom: 100px;
}

/* Section Questions */

section.u20-bloc.bloc-questions {
  padding: 0 0;
}
section.bloc-questions .flex-range {
  position: relative;
}
section.bloc-questions .flex-range:before {
  position: absolute;
  content: "";
  width: 234px;
  height: 228px;
  background-image: url("/visiteruqtr/images/parler-icone.png");
  z-index: 1;
  top: 50px;
  left: 50%;
  transform: translate(-50%, -50%);
}
section.bloc-questions .flex-col6.image-bg {
  background-image: url("/portes-ouvertes/images/des-questions-bg.jpg");
  background-size: cover;
  background-position: center center;
  display: flex;
  justify-content: center;
  padding: 90px 120px 90px 150px;
}
section.bloc-questions .flex-col6.image-personnes {
  background-image: url("/visiteruqtr/images/des-questions.jpg");
  background-size: cover;
  background-position: center center;
}
section.bloc-questions h2.u20-titre {
  color: #363636;
  margin: 0 0 50px 0;
}
section.bloc-questions h2.u20-titre span {
  position: relative;
}
section.bloc-questions h2.u20-titre span:after {
  position: absolute;
  content: "";
  width: 70px;
  height: 6px;
  background-color: #0e8953;
  bottom: -5px;
  left: 50%;
  transform: translate(-50%, -50%);
}

section.bloc-questions a.btn {
  background-color: #404a52;
}

@media screen and (max-width: 1440px) {
  section.bloc-questions .flex-col6.image-bg {
    padding: 90px 4% !important;
  }
  section.bloc-questions .flex-range:before {
    width: 173px;
    height: 168px;
    background-size: contain;
  }
}
@media screen and (max-width: 1023px) {
  section.bloc-questions .flex-range {
    flex-direction: column;
  }
  section.bloc-questions .flex-range .flex-col6 {
    width: 100%;
  }
  section.bloc-questions .flex-col6.image-personnes {
    height: 500px;
  }
  section.bloc-questions .flex-range:before {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  section.bloc-questions .flex-range {
    text-align: center;
  }
}

/* =============================
   TABLETTE & MOBILE (< 1024px)
   ============================= */

@media (max-width: 1024px) {
  .direction-section {
    padding-top: 0;
  }

  .direction-bg {
    top: 300px;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .direction-inner {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .direction-photo {
    width: 80%;
    max-width: 900px;
    position: relative;
    z-index: 2;
    bottom: 0px;
    top: 200px;
  }

  .direction-content {
    width: 100%;
    padding: 60px 32px 48px;
    box-sizing: border-box;
    text-align: center;
  }
}

/* =============================
   MOBILE (< 640px)
   ============================= */

@media (max-width: 640px) {
  .direction-bg {
    top: 160px;
  }

  .direction-photo {
    width: 90%;
    margin-bottom: -32px;
  }

  .direction-content {
    padding: 52px 20px 40px;
  }
}
