/* Reset de base */
:root {
  --h2-size: 70px;
  --h3-size: 35px;
  --h4-size: 35px;
  --p-size: 25px;
  --h2-line: 80px;
  --h3-line: 45px;
  --small-size: 14px;

  /* Spacing du carousel + 3 items centrés */
  --carousel-gap: 80px; /* ajuste l’espace entre items */

  /* Panneau texte qui slide + barre de boutons */
  --cc-buttons-h: 100px;     /* hauteur barre des boutons */
  --cc-preview-h: 140px;    /* hauteur visible (aperçu) quand fermé */
}
small{
  display:block;
  font-size: 14px;
  line-height:1;
}
h2 {
  font-size: var(--h2-size);
  text-transform: uppercase;
  line-height:var(--h2-line);
  font-variation-settings: "wght" 700;
}
h3 {
  font-size: var(--h3-size);
  text-transform: none;
  font-variation-settings: "wght" 700;
  line-height:var(--h3-line);
}
h4 {
  font-size: var(--h4-size);
  font-variation-settings: "wght" 700;
}
h5{
  font-size: var(--p-size);
  font-variation-settings: "wght" 700;
}
p,
ul li,
a {
  font-size: var(--p-size);
  font-variation-settings: "wght" 200;
}
strong{
  font-variation-settings: "wght" 700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "mozaic-hum-variable", sans-serif;
  font-variation-settings: "wght" 400;
}
html, body {
  scroll-behavior: smooth;
  font-family: Arial, sans-serif;
  color: #000;
  background-color: #fff;
  overflow-x: hidden;
  font-size: var(--p-size);
}
img{
  max-width: 100%;
  height: auto;
}
/* Burger menu styles */
.burger-menu {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1201;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}
.top-logo{
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1201;
  width: 145px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}
.burger-menu .bar {
  height: 4px;
  width: 32px;
  background: #F33E6C;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.68,-0.55,.27,1.55);
  display: block;
}
.burger-menu.active .bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.burger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
.burger-menu.active .bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Zone d’actions en haut (burger + bouton auth) */
.top-actions{
  position: fixed;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1100;
}

/* Bouton connexion/déconnexion */
.btn-auth{
  display: inline-flex;
  align-items: center;
  margin-left:50px;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #F33E6C;
  color: #fff;
  border: 1px solid #F33E6C;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .08s ease;
}
.btn-auth:hover{ background: #000; border-color: #000; color: #fff; }
.btn-auth:active{ transform: translateY(1px); }
.btn-auth img{
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Responsive: rapprocher le bouton sur mobile */
@media (max-width: 640px){
  .top-actions{ top: 16px; left: 12px; gap: 10px; }
  .btn-auth{ padding: 7px 12px; font-size: 13px; }
  .btn-auth img{ width: 16px; height: 16px; }
}

/* Side menu styles */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 427px;
  max-width: 100vw;
  height: 580px;
  max-height: 100vh;
  background: #111;
  color: #fff;
  z-index: 1200;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55);
  box-shadow: 2px 0 24px rgba(0,0,0,0.25);
  padding: 75px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-menu li {
  padding-bottom: 16px;
  margin-top:16px;
  border-bottom: 1px solid #fff;
}
.side-menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.side-menu a:hover {
  color: #F33E6C;
}
.side-menu.open {
  transform: translateX(0);
}

/* Responsive for mobile */
@media (max-width: 600px) {
  .side-menu {
    width: 100vw;
    height: 100vh;
    padding: 64px 24px 24px 24px;
  }
  .burger-menu {
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    gap: 6px;
  }
  .burger-menu .bar {
    width: 28px;
    height: 3px;
  }
}
/* Chaque section occupe 100% largeur et 100% hauteur */
section,
header,
footer {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-formulaire header,
footer{
  min-height:auto;
}

.container {
  padding-left: 14%;
  padding-right: 14%;
  box-sizing: border-box;
  margin: auto;
  display: flex;
  flex-direction: row;
  position:relative;
}

/* Navigation principale */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

/* HERO */
.hero {
  background: url('assets/AdobeStock_650683850.png') center center / cover no-repeat;
  flex-direction: column;
  justify-content: space-between;    max-height: 100vh;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.25); /* Ton mask noir semi-transparent */
  z-index: 1;
}

.hero .hero-content{
  position: absolute;
    bottom: 24px;
    right: 24px;
  max-width: fit-content;
  height: auto;
  z-index:2;
}
.hero .hero-content img{
  max-width:400px;
  height:auto;
  object-fit: contain;
}

.hero .container{
    display: flex;
    justify-content: center;
    align-items: center;
    height:100%;
    min-height:100vh;
    position:relative;
    z-index:2;
}
.hero .container > img{
  max-width:75%;
  height: auto;
}

.hero .youtube-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: red;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

/* Sections à fond personnalisé */
.brief {
  background-color: #fff;
  height:auto;
  padding:100px 0;
  position:relative;
  overflow:hidden;
}
.brief .container, .profils .container{
  height:100%;
}
.brief .container > div > div:nth-child(1), .profils .container > div {
  display:flex;
  flex-direction: column;
  position: relative;
}
.brief .container > div:nth-child(1){
  align-self:flex-start;
  position:relative;
  z-index:2;
}
.profils .container > div:nth-child(1){
  align-self: center;
}
.brief .container > div:nth-child(1) h3{
  max-width:50%;
  margin:1em 0;
}
.profils .container > div:nth-child(1) h3{
  color:#F33E6C;
}
.profils .container > div:nth-child(1) h3,
.postuler .container > div:nth-child(1) h3{
  color:black;
  margin:1em 0;
}
.profils .container > div:nth-child(1) p,
.postuler .container > div:nth-child(1) p{
  color:#000;
  margin:2em 0;
}
.profils .container > div:nth-child(1) ul,
.postuler .container > div:nth-child(1) ul {
  list-style: none;
  padding-left: 0;
}

.profils .container > div:nth-child(1) ul li,
.postuler .container > div:nth-child(1) ul li {
  position: relative;
  padding-left: 38px;
  margin: 1em 0;
}

.profils .container > div:nth-child(1) ul li::before,
.postuler .container > div:nth-child(1) ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 28px;
  height: 28px;
  background: url('assets/asterisk_list.png') no-repeat center center;
  background-size: contain;
  display: inline-block;
}
.postuler .container > div:nth-child(1) ul li::before{
  background: url('assets/asterisk_list_rose.png') no-repeat center center;
  background-size: contain;
}
.profils .container > div:nth-child(1) ul li span,
.postuler .container > div:nth-child(1) ul li span,
.postuler .container > div:nth-child(1) a{
  color:#F33E6C;
  text-decoration: none;
  font-variation-settings: "wght" 700;
}
.postuler .btn-form{
  background-color: #F33E6C;
  color: white!important;
  padding: .5rem 2rem;
  font-variation-settings: "wght" 700;
  border-radius: 0;
  text-decoration: none;
  font-size:var(--h3-size);
}


ul{
  list-style: none;
}
.brief .container > div:nth-child(1) ul li, .profils .container > div:nth-child(1) ul li{
  transition: all 0.3s ease;
  color:black;
}
.brief .container > div:nth-child(1) ul li:hover, .profils .container > div:nth-child(1) ul li:hover{
  transform: translateX(10px);
}
.brief .container > div:nth-child(1) ul li a{
  text-decoration: none;
  color:black;
}
.brief .container > div:nth-child(1) ul li a:hover, .brief .container > div:nth-child(1) ul li a:visited{
  color:black;
  text-decoration:none;
}
.brief .container > div:nth-child(2) h2{
  color:black;
  z-index:2;
}
.asterisk{
  position:absolute;
  z-index:1;
  top:-250px;
  right:0;
}
.asterisk img{
  animation: rotation 10s linear infinite;
  transform-origin: center center;
  display: block;
  width:auto;
}
.profils .container > div:nth-child(2){
  justify-content: flex-end;
  align-items:flex-end;
}
.profils .container > div:nth-child(2) img{
  max-height: 70vh;
  width: auto;
  max-width: fit-content;
}
.objectif::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.75); /* Ton mask noir semi-transparent */
  z-index: 1;
}
.objectif {
  padding:0;
  position:relative;
  height:fit-content;
  background: url('assets/background_cle.png') center center / cover no-repeat;
}
.objectif .container{
  display: flex;
  width:100%;
  position:relative;
  z-index:2;
  flex-direction: column;
  align-items: flex-start;
  padding:100px 14%;
}
.objectif .bloc-1{
  display:flex;
  flex-direction: column;
}
.objectif .bloc-1 h2 {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s, transform 0.2s;
}
.objectif  .bloc-1 h2.grow-animate {
  animation: growIn 1s cubic-bezier(0.4, 0.2, 0.2, 1) forwards;
}
.objectif h2{
  width:100%;
  text-align:left;
  color:#c0ff00;
}
@keyframes growIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.objectif  ul {
  display: flex;
  width:100%;
  flex-direction: row;
  justify-content: center;
  align-items: normal;
  gap: 0;
  flex-wrap:wrap;
  padding: 0;
  margin: 2rem 0;
  list-style: none;
}

.objectif  ul li {
  width:33.333%;
  text-align: left;
  padding:0;
  color: #c0ff00;
  background: transparent;
  display: flex;
  font-size: var(--h3-size);
  flex-direction: column;
  justify-content: flex-start;
}
.objectif  ul li:nth-child(1) {
  border-right: 1px solid #c0ff00;
  padding:0 0.75em 0 0;
}
/* Bordures sur le bloc du milieu */
.objectif ul li:nth-child(2) {
  border-left: 1px solid #c0ff00;
  border-right: 1px solid #c0ff00;
  padding:0 .75em;
}
.objectif  ul li:nth-child(3) {
  padding:0 0 0 .75em;
}
.objectif  ul li:nth-child(4) {
  width: calc(100% - .75em);
  padding:0  0.75em 0 0;
  /*border-right: 1px solid #c0ff00;*/
  margin: .75em .375em 0 0;
}

.objectif  ul li:nth-child(4) strong {
  border-top: 1px solid #c0ff00;
  padding:0.375em 0 0 0;
}
.objectif  ul li:nth-child(5) {
  width:50%;
  padding:0.375em 0 0 0;
  border-top: 1px solid #c0ff00;margin: .75em 0 0 .375em;
}
.objectif p.deadline{
  font-size: var(--h3-size);
  text-align:center;
  padding: 0 0.25em 0.25em 0.25em;
  border:1px white solid;
  width:100%;
  font-variation-settings: "wght" 700;
}
.video{
  padding:0;
  position:relative;
  height:auto;
  padding: 100px 0;
}
.video h2{
  color:#F33E6C;
  margin-bottom:1em;
}
.video .container{
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background-color: #000;
  padding: 60px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  display: flex;
  flex-shrink: 0;
  width: 100%;
  margin: 0 auto;
  background-color: #f34878;
  box-sizing: border-box;
  align-items: center;
  position:relative;
}

.carousel-video{
  flex: 1;
  width: 100%;
  min-width:530px;
  display: flex;
  justify-content: center;
}

.carousel-video iframe {
  width: 100%;
  display:block;
  border: none;
}

.carousel-content {
  padding-left: 40px;
  color: #000;
}

.carousel-content h2 {
  font-size: 32px;
  margin-top: 0;
}

.carousel-content p {
  font-size: 18px;
  line-height: 1.5;
}

.btn-watch {
  display: inline-flex;
  align-items: center;
  background: #000;
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  text-decoration: none;
  width: fit-content;
}

.btn-watch img {
  width: 24px;
  height: 24px;
  margin-left: 10px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform:translateY(-66px);
  background: none;
  border: none;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.arrow.left {
  left: calc( 14% - 50px );
}

.arrow.right {
  right: calc( 14% + 30px );
}
.arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.dots {
  text-align: center;
  margin-top: 20px;
}

.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 6px;
  background-color: #5b1e39;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: #f34878;
}
.carousel {
  position: relative;
  overflow: hidden;
  padding: 0 14%;
}

.carousel-track {
  display: flex;
  gap:80px;
  transition: transform 0.5s ease;
}

.carousel-item {
  display:flex;
  padding:2em;
  background-color: #f24d7c;
  width: calc( 100% - 80px );
  box-sizing: border-box;
}

.carousel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}


/* Dégradés sur les bords */
.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 40%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
}

.carousel::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.8), transparent);
}
.carousel-item .btns a{
  height:fit-content;
}
#carousel-modal-mask{
  
  position:fixed; inset:0; background:rgba(243, 62, 108, 0.8); z-index:1000;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
#carousel-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 75vw;         /* 75% de la largeur de l'écran */
  max-width: 100%;
  min-width: 320px;
  padding: 32px;
  z-index: 1001;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
#carousel-modal {
  opacity: 0;
  transform: translate(-50%, -45%) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
}

#carousel-modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

#carousel-modal-mask {
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
#carousel-modal-mask.active {
  opacity: 1;
  pointer-events: auto;
}
#carousel-modal-content h3{
  font-size:24px;
}
#carousel-modal-content p,
#carousel-modal-content ul li{
  font-size:16px;
  margin-bottom:16px;
}
@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.parcours{
  padding:0;
  height:auto;
  min-height:100vh;
  background: #c0ff00;
}
.parcours .container{
  flex-wrap:wrap;
  padding-bottom: 100px;
}
.parcours h2 {
  width:100%;
  padding:50px 0 ;
  text-align: left;
  line-height: 1;
}

/* Steps container en flex row, wrap pour passer à la ligne */
.parcours .steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  background:black;
  position:relative
}

/* Chaque step fait 50% sauf le 5 */
.parcours .step{
  display: flex;
  flex-direction: row;
  gap: 2em;
  align-items: center;
  width: 100%;
  min-width: 320px;
  min-height:250px;
  color: #fff;
  padding: 0 1em;
  position: relative;
  background:black;
}
.step > *{
  transition: transform 0.5s ease;
  will-change: transform;
}
.step:hover > *{
  transform: scale(.98);
}

/* Step 5 occupe toute la largeur */
.parcours .step.step-5 {
  width: 100%;
}

/* Step header en flex row */
.parcours .step-header {
  display: flex;
  min-width:115px;
}

/* h3 à gauche, p à droite */
.parcours .step-header h3 {
  font-size:200px;
}

.parcours .step-header p {
  margin: 0;
  flex: 1;
  text-align:right;
}

.parcours .step-1,
.parcours .step-3,
.parcours .step-5{
  position:relative;
  background-repeat: no-repeat;
  background-position: top left;
  background-size:cover;
}
.parcours .step-1::before,
.parcours .step-3::before,
.parcours .step-5::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.75); /* Ton mask noir semi-transparent */
  z-index: 1;
}

.parcours .step-1 > *,
.parcours .step-3 > *,
.parcours .step-5 > * {
  position: relative;
  z-index: 2; /* S'assurer que le contenu passe au-dessus du ::before */
}
.parcours .step-1{
  background-image: url('assets/step1.png');
}

.parcours .step-3{
  background-image: url('assets/step3.png');
}

.parcours .step-5{
  background-image: url('assets/step5.png');
}
/* Step content aligné en bas */
.parcours .step-content {
  color: #fff;
}

.steps .asterisk{
    position: absolute;
    z-index: 2;
    height: auto;
    margin: auto;
    top: auto;
    left: auto;
    right: 0;
    bottom: -450px;
}
.steps .asterisk img{
  width:450px;
}

.objectif {
  background-color: #000;
  color: #fff;
  text-align: center;
}

.video {
  background-color: #000;
  color: #fff;
  flex-direction: column;
}

.intro {
  background-color: #f72585;
  color: #fff;
}

.profils {
  background-color: #fff;
}

.etapes {
  background-color: #d4ff00;
}

.postuler {
  background-color: #f0f0f0;
}

.faq {
  background-color: #000;
  height:auto;
  min-height:100vh;
  padding:0;
  flex-direction: column;
  justify-content: start;
  padding-bottom:100px;
}
.faq .container{
  display: flex;
  flex-direction: column;
}
.faq .section-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width:100%;
  min-height:50vh;
  background:black;
}
.faq h2{
  color:#fff;
  padding-top: 1.25em;
  text-transform: uppercase;
}
.faq .section-header img{
  max-width:250px;
}
.faq .section-header img:nth-child(1){
  align-self: flex-start;
  justify-self: flex-start;
  padding:2rem;
}
.faq .section-header img:last-of-type{
  align-self: flex-end;
  justify-self: flex-end;
  padding:2rem;
}
.faq-list {
    list-style: none;
    width: 100%;
}

.faq-list li {
  color:white;
  margin-top:1.25em;
  padding-bottom:1.25em;
  border-bottom: 1px solid white;;
  transition: all 0.3s ease;
}
.faq-list li:hover{
  transform: translateX(10px);
}
.footer {
  background-color: white;
  color: black;
  padding:40px;
  height: auto;
  display:flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
}
.page-formulaire footer {
  margin-top:100px;
}
.footer .logo{
  height: auto;
  display:flex;
  flex-direction: row;
  justify-content: start;
  gap: 1rem;
}
.footer .logo img{
  width:auto;
  height:50px;
  max-width:225px;
}
.footer .footer-links{
  display: flex;
  justify-content: flex-end;
  flex-wrap:wrap;
}
.footer .footer-links a{
  font-size:18px;
  display:inline-flex;
  text-decoration:none;
  color:black;
  padding:0 25px;
  border-left:2px solid black;
}
.footer .footer-links a:last-child{
  border-right:2px solid black;
}
/* --- Deux colonnes --- */

/* Deux colonnes */
.two-columns {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}

.two-columns > div {
  width:50%;
}

.reverse-on-mobile {
  flex-direction: column;
}

.reverse-on-mobile.mobile {
  flex-direction: column-reverse;
}

/* FAQ */

.details {
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  background: #f72585;
  padding: 0 20px;
}

.details.open {
    opacity: 1;
    max-height: 350px;
    padding: 3em;
    width: calc(100% - 12rem);
    position: absolute;
    overflow: visible;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -150px;
}
.details.open::before {
  content: "";
    position: absolute;
    display: block;
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #f72585 0%, #f72585 50%, transparent 50%, transparent 100%);
    top: -25px;
    left: 50%;
    z-index:1;
    transform: translateX(-50%) rotate(135deg)
}
.details .detail-content{
  display: flex;
  position: relative;
  z-index:2;
  flex-direction: row;
  justify-content: space-between;
  gap: 0;
}
.details .detail-content div{
  width:50%;
  display: flex;
  justify-content: center;
}
.details .detail-content div:nth-child(2){
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.details .detail-content div:nth-child(2) h2{
  color: #fff;
}
.details .detail-content div:nth-child(2) a{
  align-self: end;
  padding:15px;
  color:white;
  text-decoration: none;
  background:black
}
.close-details {
  margin-top: 20px;
  padding: 8px 16px;
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.close-details:hover {
  background: #555;
}
/* --- Modal globale --- */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    .modal-overlay.active {
      display: flex;
    }

    .modal {
      background: #fff;
      width: 90%;
      max-width: 1200px;
      max-height: 90vh;
      overflow-y: auto;
      border-radius: 8px;
      padding: 2rem;
      position: relative;
    }

    .modal h5 {
      margin-top: 0;
    }

    .modal .close-btn {
      position: absolute;
      top: 1rem;
      right: 1rem;
      cursor: pointer;
      font-size: 1.5rem;
      border: none;
      background: transparent;
    }

    /* --- Grid deux colonnes --- */
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
    }

    .form-section h6 {
      margin-top: 1rem;
      margin-bottom: 0.5rem;
      border-bottom: 1px solid #ccc;
      padding-bottom: 0.3rem;
    }

    label {
      display: block;
      margin-bottom: 0.3rem;
      font-weight: bold;
    }

    input, select, textarea {
      width: 100%;
      margin-bottom: 1rem;
    }

    .form-check {
      display: flex;
      align-items: center;
      margin-bottom: 1rem;
    }

    .form-check input {
      margin-right: 0.5rem;
    }

    .text-muted {
      color: #555;
      margin-top: 1rem;
      margin-bottom: 1rem;
    }

    .text-center {
      text-align: center;
    }

    .btn {
      padding: 0.6rem 1.5rem;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }

    .btn-primary {
      background-color: #007bff;
      color: white;
    }

    .btn-success {
      background-color: #f72585;
      color: white;
      font-size:var(--h3-size);
      font-variation-settings: "wght" 700;
      border-radius: 0;
    }

    .btn-secondary {
      background-color: #6c757d;
      color: white;
    }

    .form-footer {
      text-align: center;
      margin-top: 2rem;
    }
.fade-init {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animation spécifique selon direction */
.fade-down {
  transform: translateY(-20px); /* descend */
}
.fade-up {
  transform: translateY(20px);  /* monte */
}
.fade-in {
  transform: none;
}

/* Une fois visible */
.fade-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Optionnel : délai pour effet progressif */
.fade-delay-1 { transition-delay: 0.2s; }
.fade-delay-2 { transition-delay: 0.4s; }
.fade-delay-3 { transition-delay: 0.6s; }
.slide-init {
  opacity: 0;
  transition: all 0.8s ease-out;
  will-change: transform, opacity;
}

.slide-left {
  transform: translateX(-50px);
}

.slide-right {
  transform: translateX(50px);
}

.slide-visible {
  opacity: 1;
  transform: translateX(0);
}

.page-formulaire .hero::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Ton mask blanc semi-transparent */
  z-index: 1;
}
.page-formulaire .hero{
  height:360px;
  position:relative;
  max-height:360px;
}
.page-formulaire .hero .container{
  width:100%;
  position:relative;
  justify-content: space-between;
  z-index:2;
  padding:0 7%!important;
  min-height:auto;
}
.page-formulaire .hero .container img{
  height:auto;
}
.page-formulaire .hero .container img:nth-child(2){
  max-width: 220px;
  height: auto;
}
.page-formulaire .formulaire .container{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top:100px;
  background: url(assets/asterisque.svg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position-x: right;
  background-position-y: 150px;
  background-size: 750px;
}
.dashboard {
  background: url(assets/asterisque.svg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position-x: right;
  background-position-y: 150px;
  background-size: 750px;
}
.dashboard .candidat-bloc:hover{
  border: 3px solid #C0FF04!important;
}
.page-formulaire .formulaire form{
  width:100%;
}
.form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}
.form-row .form-group {
  flex: 1;
  position: relative;
  margin-bottom: 0;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
  width: 100%;
  border: none;
  border-bottom: 1px solid #000;
  border-radius: 0;
  padding: 16px 8px 8px 0;
  font-size: 16px;
  background: transparent;
  outline: none;
  box-sizing: border-box;
  resize: none;
}
.form-group textarea {
  min-height: 48px;
  resize: vertical;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.form-group {
  position: relative;
}
.form-group.select::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 28px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  border: none;
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
  transform: translateY(-60%) rotate(45deg);
  z-index: 3;
  background: none;
}
.form-group label {
  position: absolute;
  left: 0;
  top: 16px;
  font-size: 16px;
  color: #000;
  pointer-events: none;
  transition: 0.2s ease all;
  background: transparent;
  z-index: 2;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 12px;
  color: #000;
  background: transparent;
  padding: 0 4px;
}
/* Pour que le label flotte même si le champ est rempli */
.form-group input:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 12px;
  color: #000;
  background: #fff;
  padding: 0 4px;
}
/* Pour les input type date, forcer le placeholder-shown */
.form-group input[type="date"]:not(:focus):not(:placeholder-shown) + label {
  top: -8px;
  font-size: 12px;
  color: #000;
  background: #fff;
  padding: 0 4px;
}
.formulaire h3{
  margin-top:100px;
  padding-bottom:35px;
  margin-bottom:65px;
  width:100%;
  border-bottom: 1px solid #000;
}
.form-check {
  display: flex;
  align-items: center;
  margin: 16px 0;
  width: 100%;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0 12px 0 0;
  accent-color: #000; /* couleur de la case cochée, compatible navigateurs récents */
  flex-shrink: 0;
}

.form-check label {
  font-size: 16px;
  color: #222;
  line-height: 1.4;
  margin: 0;
  cursor: pointer;
  flex: 1;
  white-space: normal;
}
form.was-validated input:invalid,
form.was-validated select:invalid,
form.was-validated textarea:invalid {
  border-bottom: 1px solid #F33E6C !important;
}
/* Manager */
.login {
	width: 100%;
	height:100vh;
	background: url(assets/AdobeStock_650683850.jpeg) center center / cover no-repeat;
	background-size:cover;
	display:flex;
	flex-wrap:wrap;
}
	.login .intro-left{
		width:66.66667%;
		height:100%;
		display: flex;
		align-items: flex-start;
		flex-direction: column;
		padding:2% 5% 5% 2%;
	}
  .login .intro-left img:nth-child(2){
    margin-top: auto;
    align-self: end;
  }
	.login .intro-full{
		width:100%;
		height:100%;
		display: flex;
		align-items: flex-start;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		padding:0 5% 0 10%;
	}
		.login .intro-left p, .login .intro-full p{
			color:#fff;
			font-size:25px;
			margin-top:50px;
		}
		.login .intro-full p:nth-child(3){
			margin-top:10px;
		}
		.login .intro-left p strong, .login .intro-full p strong{
			color:#fff;
			font-size:25px;
		}
	.login .intro-right{
		width:33.33333%;
		height:100%;
		background:rgba(255,255,255, 1);
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
	}
	.intro-right .bloc-login, .intro-right .bloc-forgot{
		width:100%;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
	}
		.intro-right .bloc-forgot{
			display:none;
		}
		.login .intro-right h1{
			color:#000;
			font-size:var(--h3-size);
      font-variation-settings: "wght" 700;
			padding:0;
      text-transform: uppercase;
			text-align:center;
		}
		.login .intro-right form{
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			width:80%;
		}
			.login .intro-right form a{
				color:#000;
        font-size:12px;
				text-decoration: underline;display:flex;width:100%;margin:10px 0;
				justify-content:right;
			}
			.login .intro-right form ::placeholder {
				color: #000;
				opacity: 1;
			}
			.login .intro-right form input:focus{
				border:none;
				outline:none;
			}
			.login .intro-right form input[type="text"], .login .intro-right form input[type="password"]{
				background:transparent;
				border:none;
				border-bottom:1px solid #707070;
				margin-top:25px;
				padding:8px 0;
				color:#5C013F!important;
				width:100%;
			}
			.login .intro-right form input[type="submit"]{
				background:#FF4370;
				border:none;
        padding:5px 10px 10px 10px;
				color:white;
				margin-top:25px;
				font-size:25px;
        border-radius:0;
				width:100%;
			}
			.login .intro-right form input[type="submit"]:hover{
				background:#C0FF04;
				color:#000;
			}

			a.first-login{
				border:1px solid #5c013f;
				background:none;
				color:#5c013f;
				margin-bottom:25px;
				font-size:20px;
				width:50%;
				display:flex;text-align:center;
				align-items: center;
    			justify-content: center;
				flex-direction: column;
				line-height:0.75;
				padding:10px 0;
				text-decoration: none;
			}
			a.first-login span{
				width:100%;display:block;
				font-size:14px;
			}
			a.first-login:hover{
				color:white;
				background:#5c013f;
			}
a.retour-btn{
  display:block;
  width:fit-content;
  text-decoration:none;
  color:black;
  font-size:14px;
  padding:5px 10px;
  border:1px solid black;
  border-radius:25px;
}
a.retour-btn:hover{
  background:black;
  color:white;
}


/* Connexion */

/* Actions: lien rose à droite + bouton à droite */
.login-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-direction:column;
  gap: 14px;
}
.forgot-link {
  font-size: 12px;
  color: #F33E6C;
  text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }
.login-link {
  font-size: 12px;
  color: #000;
  text-decoration: none;
}
.login-link:hover { text-decoration: underline; }

/* Bouton noir / hover inversé */
.btn-login {
  background: #111;
  color: #fff;
  border: 1px solid #111;
  padding: 0 30px 8px 30px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  font-size:1em;
}
.btn-login:hover {
  background: #fff;
  color: #111;
}
.btn-full { display:block; width:100%; padding:12px 16px; text-align:center; }
.btn-ghost-pink { background:transparent; color:#F33E6C; border:1px solid #F33E6C; border-radius:12px; font-size:1em; margin-top:1em;}
.btn-ghost-pink:hover { background:#F33E6C; color:#fff; }
.btn-ghost-black { background:transparent; color:#000; border:1px solid #000; border-radius:12px; font-size:1em; margin-top:1em;}
.btn-ghost-black:hover { background:#000; color:#fff; }


/* Barre de sauvegarde fixe */
.save-bar {
    position: fixed;
    left: 14%;
    bottom: 0;
    transform: translateX(-19%);
    z-index: 1200;
    background: #F33E6C;
    backdrop-filter: blur(6px);
    border-radius: 25px 25px 0 0;
    padding: 8px;
    width: calc(100% - 28%);
    margin: 0 14%;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:25px;
}
.save-bar p{
  font-size:18px;
  font-variation-settings: "wght" 700;
}
.btn-save{
  background: #fff;
  color: #F33E6C;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease-in-out;
}
.btn-save:hover{ background: #000; border-color:#000; color:#fff; }

/* Toast de confirmation */
.save-toast{
  position: fixed;
  left: 50%; bottom: 72px;
  transform: translateX(-50%) translateY(20px);
  background: #222; color: #fff;
  padding: 10px 14px; border-radius: 10px;
  opacity: 0; pointer-events: none;
  transition: transform .15s ease, opacity .15s ease;
  z-index: 1201;
}
.save-toast.ok{ background:#0a6d2a; }
.save-toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); }
/* Responsive */
@media (max-width: 640px) {
  .login-actions {
    gap: 10px;
  }
}
@media (max-width: 1440px) {
  :root {
    --h2-size: 54px;
    --h3-size: 28px;
    --h4-size: 28px;
    --p-size: 19px;

    --h2-line:1;
    --h3-line:1;
  }
  .carousel-item {
    flex-direction: column;
    align-items: center;
    gap:2rem;
  }

  .footer .footer-links{
    flex-direction: column;
  }
  .footer .footer-links a{
    border-left:2px solid black;
    border-right:2px solid black;
  }
}

/* Responsive mobile */
@media (max-width: 1024px) {
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .two-columns > div,
  .parcours .step {
    width: 100%;
  }
  .parcours .step {
    height: fit-content;
    max-height: fit-content;
  }
  .two-columns {
    flex-direction: column;
    width: 100%;
  }
  .two-columns > div:nth-child(1) {
    padding-top:50px;
  }
  .two-columns > div:nth-child(2){
    text-align:center!important;
  }
  .profils .container > div:nth-child(2){
    justify-content: center;
    align-items: center;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    flex: 1 1 100%;
  }

  .reverse-on-mobile {
    flex-direction: column-reverse;
  }

  section, header, footer {
    height: auto;
    min-height: auto;
  }
  .divided{
    align-items: normal;
    justify-content: normal;
  }
  .carousel-item{
    width:100%;
  }
  .carousel-video{
    min-width:100%;
    flex:0;
  }
  .carousel-video iframe{
  }
  .carousel-content{
    padding-left:0;
  }
  .arrow.right {
    right: 15px;
}
.arrow.left {
    left: 15px;
}
.carousel-content p {
    font-size: 14px;
    line-height: 1;
}
.carousel-item .btns{
  flex-direction: column;
  margin-top:14px;
}
.carousel-item .btns a{
  width:100%;
  }

  .steps .asterisk {
      opacity: 0.1;
  }
  .footer{
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  :root {
    --h2-size: 40px;
    --h3-size: 28px;
    --h4-size: 28px;
    --p-size: 18px;
  }

      .form-grid {
        grid-template-columns: 1fr;
      }
      .page-formulaire .hero .container{
        padding: 0 7% 25px 7% !important;
            align-items: end;
      }
      .page-formulaire .hero .container > img {
          max-width: 50%;
          height: auto;
      }
      .page-formulaire .hero .container img:nth-child(2) {
          max-width: 120px;
          height: auto;
      }
      .hero .container{
        padding-left:0;
        padding-right:0;
      }
  .hero .hero-content img {
    max-width:50%;

  }
  .page-formulaire .hero .hero-content img {
    max-width:25%;

  }
  .hero .hero-content{
    text-align:right;
  }
  h2, h3{
    line-height:1;
  }
  .page-formulaire .hero {
      height: 160px;
      max-height: 360px;
  }
  .page-formulaire .formulaire .container {
    padding:25px;
  }
  .page-formulaire.formulaire h3{
    padding-bottom: 5px;
    margin-bottom: 65px;
  }
  .form-row {
    display: flex;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
  .form-row .form-group{
    flex:1 1 100%;
    width:100%;
  }
  .brief .container > div:nth-child(1) h3{
    line-height:1;
    width:100%;
    max-width:100%;
  }
  .objectif br{}
  .objectif ul {
    flex-direction: column;
  }
  .objectif ul li{
    width:100%;
    border-left:none!important;
    border-right:none!important;
    margin-bottom:12px;
    padding-bottom:12px!important;
    border-bottom: 1px solid #c0ff00;
  }
  .objectif ul li:nth-child(2){
    padding:0 0 12px 0;
  }
  .objectif ul li:nth-child(3){
    padding:0 0 12px 0;
  }
  footer{
    flex-direction: column!important;
  }
  .footer .footer-links a{
    padding:0 5px;
  }
  .footer .logo img {
      height:auto!important;
      max-width: 100px;
      min-width:100px;
  }
}


@media (max-width: 700px) {
}

@media (max-width: 480px) {
  :root {
    --h2-size: 28px;
    --h3-size: 22px;
    --h4-size: 22px;
    --p-size: 16px;
  }
}

/* Carousel: largeur fixe par item + gap responsive */
:root{
  --carousel-item-w: 620px;  /* 1920px → 620px */
  --carousel-gap: 40px;      /* 40px entre items */
}
.carousel-viewport{
  overflow: hidden;
  width: 100%;
  padding: 0;
}
.carousel-track{
  display: flex;
  align-items: stretch;
  gap: var(--carousel-gap);
  will-change: transform;
}
.carousel-item{
  flex: 0 0 var(--carousel-item-w);
  width: var(--carousel-item-w);
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background:#fff;
  min-height:800px;
  overflow:hidden;
}

/* Contenu interne */
.carousel-content{
  display: flex;
  flex-direction: column;
}

/* Responsive: rétrécit l’item et le gap progressivement */
@media (max-width: 1440px){
  :root{ --carousel-item-w: 520px; --carousel-gap: 32px; }
}
@media (max-width: 1024px){
  :root{ --carousel-item-w: 440px; --carousel-gap: 24px; }
}
@media (max-width: 768px){
  :root{ --carousel-item-w: calc(100vw - 48px); --carousel-gap: 16px; }
  .carousel-item{ width: var(--carousel-item-w); flex-basis: var(--carousel-item-w); }
}

/* Overlay texte: occupe l’item, réservé en bas pour la barre de boutons */
.carousel-content{
  position: absolute;
  left: 0; right: 0;
  top: 315px; bottom:0;
  background: #fff;
  transition: transform .35s ease;
  z-index: 1;
  pointer-events: none; /* évite de bloquer la vidéo quand fermé */
}

/* Zone scrollable interne */
.carousel-content .cc-scroll{
  position: absolute;
  inset: 0;
  height:fit-content;
  max-height:720px;
  overflow:auto;
  padding: 16px 20px 20px 20px;
}
.carousel-content .cc-scroll h3{
  font-size:var(--p-size);
}
.carousel-content .cc-scroll p{
  font-size:var(--small-size);
  line-height:1.25;
  margin-bottom:var(--small-size);
}
/* Effet dégradé en bas pour suggérer qu’il y a plus à lire (état fermé) */
.carousel-item:not(.cc-expanded) .carousel-content::after{
  content:'';
  position:absolute; left:0; right:0; bottom:0; height:56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

/* État ouvert: le panneau remonte au top et devient interactif */
.carousel-item.cc-expanded .carousel-content{
  transform: translateY(-315px);
  pointer-events: auto;
}

/* Barre de boutons collée bas, au-dessus du panneau */
.cc-buttons{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--cc-buttons-h);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 2;
  background: #F33E6C;
}

/* Boutons existants */
.cc-buttons .btn-read-more,
.cc-buttons .btn-watch{
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  padding:0 14px 6px 14px;
  border-radius: 15px;
  border: 1px solid #000;
  color: #000;
  background: #F33E6C;
  font-weight: 700; font-size: var(--h5-size);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .08s ease;
  margin:0;
  width:40%;
  justify-content:center;
}
.cc-buttons .btn-read-more:hover{ background:#000; border-color:#000; color:#fff; }
.cc-buttons .btn-watch{ background:#000; border-color:#000; color:#fff; }
.cc-buttons .btn-watch:hover{ background:#fff; border-color:#fff; color:#000; }
.cc-buttons .btn-watch img{ width:18px; height:18px; display:inline-block; }

/* Mobile: réduit les hauteurs */
@media (max-width: 768px){
  :root{
    --cc-buttons-h: 56px;
    --cc-preview-h: 110px;
  }
  .cc-buttons .btn-read-more,
  .cc-buttons .btn-watch{
    padding: 8px 12px; font-size: 13px;
  }
}