:root{
    --bg: #070708;         /* noir neutre */
    --bg2: #0d0d0f;        /* surface / header */
    --text: #f2f2f2;
    --muted: #b7b7bc;
  
    --card: rgba(255,255,255,.03);
    --border: rgba(255,255,255,.10);
    --radius: 14px;
  
    --accent: #d4a90f;
  
    --shadow: 0 12px 40px rgba(0,0,0,.55);
    --max: 1120px;

    /* LIGHT */
    --light-bg: #f4f4f5;
    --light-card: #ffffff;
    --light-text: #111111;
    --light-muted: #555555;
    --light-border: rgba(0,0,0,.12);
  }

  :target{
    scroll-margin-top: 84px; /* ajuste à la hauteur réelle du header */
  }
  html{
    scroll-behavior: smooth;
  }

  .section--full {
    min-height: 100vh;
  }
  
  *{ box-sizing: border-box; }
  html,body{ height:100%; }
  body{
    margin:0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
  }
  
  a{ color:inherit; text-decoration:none; }
  .container{ max-width: var(--max); margin: 0 auto; padding: 0 20px; }
  
  .muted{ color: var(--muted); }
  .lead{
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    max-width: 60ch;
  }
  
  .pill{
    display:inline-flex;
    gap:10px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius:  var(--radius);
    background: rgba(0,0,0,.25);
    font-size: .92rem;
    color: var(--muted);
  }
  
  /* Buttons */
  .btn{
    border-radius:  var(--radius);   /* au lieu de 999px */
  }
  
  .btn--primary{
    background: rgba(0,0,0,.55);
    color: var(--accent);

  }
  
  .btn--primary:hover{
    background: rgba(0,0,0,.75);
    border-color: rgba(255,255,255,.18);
    transform: translateY(-1px);
  }
  
  .btn--ghost{
    background: transparent;
  }
  
  .btn--lg{
    padding: 13px 18px;
    font-weight: 650;
  }
  
  .btn:hover{
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.18);
  }

  /* Header */
  .header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
  
    background: rgba(13,13,15,.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);

      transform: translateZ(0);
  }
  .hero{
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 72px;
  }
  
  .header__inner{
    display:flex;
    align-items:center;
    gap:14px;
    padding: 12px 0;
  }
  
  .brand{
    display:flex;
    align-items:center;
    gap:12px;
    min-width: 220px;
  }
  
  .brand__logo{
    height: 50px;       /* contrôle principal */
    width: auto;
    object-fit: contain;
    display: block;
  }
  
  .brand__name{
    font-weight: 650;
    letter-spacing: .2px;
    white-space: nowrap;
  }
  
  .nav{
    display:flex;
    gap: 6px;
    margin-left: auto;
  }
  
  .nav a{
    color: var(--muted);
    padding: 8px 10px;
    border-radius:  var(--radius);
    transition: background .15s ease, color .15s ease;
  }
  
  .nav a:hover{
    color: var(--text);
    background: rgba(255,255,255,.04);
  }
  
  .header__actions{
    display:flex;
    align-items:center;
    gap:10px;
  }
  
  .lang{
    color: var(--muted);
    /* border: 1px solid var(--border);
    border-radius:  var(--radius); */
    padding: 8px 10px;
    background: rgba(255,255,255,.02);
  }
  
  .lang:hover{
    color: var(--text);
    border-color: rgba(255,255,255,.18);
  }
  
  .burger{
    display:none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius:  var(--radius);
    background: rgba(255,255,255,.03);
    margin-left: auto;
  }
  
  .burger span{
    display:block;
    height:2px;
    width:18px;
    background: var(--text);
    margin: 5px auto;
    opacity: .9;
  }
  
  .mobileNav{
    /* toujours présent pour pouvoir animer */
    display: block;
  
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
  
    padding: 0 20px;
    border-top: 1px solid var(--border);
  
    transition:
      max-height .28s ease,
      opacity .18s ease,
      transform .18s ease;
    will-change: max-height, opacity, transform;
  }
  
  .mobileNav a{
    display:block;
    padding: 10px 8px;
    color: var(--muted);
    border-radius:  var(--radius);
  }
  
  .mobileNav a:hover{
    background: rgba(255,255,255,.04);
    color: var(--text);
  }
  
  .mobileNav__cta{
    margin-top: 10px;
  }
  
  .mobileNav__lang{
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
  }
  
  /* show when JS adds class */
  /* quand ouvert */
  .mobileNav.isOpen{
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;

    padding: 10px 20px 16px;
  }

  /*petit fade du burger quand ouvert */
  .burger.isOpen{
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.18);
  }
  /*=========
      Hero
    =========*/

  .hero__bg{ z-index: 0; }
  .hero__content{ position: relative; z-index: 1; }
  .hero{
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    overflow: hidden;
  }
  
  .hero__bg{
    position: absolute;
    inset: 0px;
    z-index: 0;
  
    background-image:
      linear-gradient(180deg, rgba(7,7,8,.45), rgba(7,7,8,.92)),
      url("/assets/img/prepa.jpeg");
    background-size: cover;
    background-position: center;
    transform: translate3d(0,0,0) scale(1.03);
    will-change: transform;
  }
  
  .hero__content{
    position: relative;
    z-index: 1;
    padding: 64px 0;
  }
  
  h1{
    font-size: clamp(2.1rem, 4.2vw, 3.3rem);
    line-height: 1.08;
    margin: 14px 0 12px;
    letter-spacing: -0.02em;
  }
  
  .hero__cta{
    display:flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  
  .hero__bullets{
    list-style:none;
    padding:0;
    margin: 22px 0 0;
    display:flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
  }
  
  .hero__bullets li{
    border: 1px solid var(--border);
    padding: 8px 10px;
    border-radius:  var(--radius);
    background: rgba(0,0,0,.22);
  }
  
  .hero__hint{
    margin-top: 36px;
  }
  
  .hero__hint a{
    display:inline-grid;
    place-items:center;
    width: 44px;
    height: 44px;
    border-radius:  var(--radius);
    border: 1px solid var(--border);
    background: rgba(0,0,0,.20);
  }


  .btn--heroPrimary{
    background: rgba(255,255,255,.10);
    color: var(--text);
    border: 1px solid rgba(255,255,255,.16);
  }
  
  .btn--heroPrimary:hover{
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.22);
  }
  
  .btn--heroGhost{
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,.12);
  }
  
  .btn--heroGhost:hover{
    color: var(--text);
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.18);
  }

/* =========================
   SECTION : FORMATIONS
   ========================= */

   .section{
    padding: 70px 0;
  }
  
  .section__head{
    margin-bottom: 40px;
  }
  
  .section__head h2{
    font-size: 2rem;
    margin: 0 0 8px;
  }

  .stages-intro{
    max-width: 72ch;
    margin-bottom: 26px;
  }
  
  .stages-intro h2{
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 2.6vw, 2.3rem);
    letter-spacing: -0.02em;
  }
  
  .stages-intro__text{
    margin: 0 0 10px;
    color: var(--light-muted);
    line-height: 1.6;
  }
  
  .stages-intro__note{
    margin: 0;
    font-weight: 750;
    color: var(--light-text);
  }
  
  /* GRID */
  .formations-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }

    .img-pos-low{ object-position: center 15%; }
    .img-pos-mid{ object-position: center 40%; }
    .img-pos-high{ object-position: center 25%; }

  /* mobile */
  @media (max-width: 920px){
    .formations-grid{
      grid-template-columns: 1fr;
      gap: 16px;
    }
  }
  
  /* CARD */
  .formation-card{
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.02);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
    cursor: pointer;
  
    /* ✅ évite les overflow/texte qui casse la mise en page */
    min-width: 0;
  }
  
  .formation-card:hover{
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.03);
  }
  
  /* IMAGE (optionnel) */
  .formation-card__image img{
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
  }
  
  /* BODY */
  .formation-card__body{
    padding: 20px;
    min-width: 0;
  }
  
  .formation-card__body h3{
    margin: 0 0 8px;
  }
  
  /* Texte : empêche de casser la grille (mots longs) */
  .formation-card__body p{
    margin: 0;
    overflow-wrap: anywhere;
  }

  .formation-card__meta{
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    letter-spacing: .3px;
  }

  .formation-card__header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  
  .formation-card__title{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .formation-card__icon{
    font-size: 2rem;
    margin-left: auto;
    transition: transform .25s ease;
    opacity: .7;
  }
  
  .formation-card.open .formation-card__icon{
    transform: rotate(180deg);
  }
  

  .formation-card__body{
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  /* EXPAND */
  .formation-card__expand{
    display: none;
    padding: 0 20px 20px;
    min-width: 0;
  }

  .formation-card__content p{
    margin-bottom: 14px;
    color: var(--muted);
  }
  
  .formation-card.open .formation-card__expand{
    display: block;
  }
  
  /* Helpers */
  .small{
    font-size: .9rem;
  }

/*  ==============================
    INFO BASE HISTOIRE
    ==============================*/
  .infoDrop{
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.02);
    overflow: hidden;
    max-width: 820px;
  }
  
  .infoDrop__summary{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px;
    cursor: pointer;
    color: var(--text);
    font-weight: 500;
  }
  
  .infoDrop__summary::-webkit-details-marker{ display:none; }
  
  .infoDrop__icon{
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: transform .18s ease, background .18s ease, color .18s ease;
  }
  
  .infoDrop[open] .infoDrop__icon{
    transform: rotate(45deg);
    color: var(--text);
    background: rgba(255,255,255,.04);
  }
  
  .infoDrop__content{
    padding: 0 16px 16px;
    color: var(--muted);
    line-height: 1.7;
  }
  
  .infoDrop__content p{ margin: 0 0 12px; }




  /* DATES STAGES */

  .section--light{
    background: var(--light-bg);
    color: var(--light-text);
    /* height: 100vh; */
  }
  
  .section--light .muted-dark{
    color: var(--light-muted);
  }
  .dates-list{
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
  }
  

/*  ==============================
    Cards stages (background image)
    ==============================*/
.dates-list{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
  }
  
  .stage-card{
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--light-border);
    background: var(--light-card);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    min-height: 325px;
  
    background-image: var(--bg);
    background-size: cover;
    background-position: var(--pos, 50% 50%);
  
    isolation: isolate;
    border: 0px solid rgba(0,0,0,.08);
  }
  
  .stage-card__overlay{
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5); /* simple voile */
    border-radius: inherit;
  }

  /* Content above overlay */
  .stage-card__content{
    position: relative;
    padding: 18px;
    display: grid;
    gap: 12px;
  }
  
  .stage-card__top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .stage-card__month{
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--light-text);
    text-shadow: 0 1px 0 rgba(255,255,255,.35);

  }
  
  .stage-card__pill{
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(0, 0, 0, 0.116);
    color: var(--light-text);
    font-weight: 700;
    font-size: .9rem;
    text-shadow: 0 1px 0 rgba(255,255,255,.35);

  }
  
  .stage-card__line{
    margin: 0;
    /* color: var(--light-muted); */
    color: #111111;
    font-weight: 600;
    line-height: 1.45;
    max-width: 65ch;
    text-shadow: 0 1px 0 rgba(255,255,255,.35);

  }


  
  .stage-card__actions{
    margin-top: 6px;
  }

  .stage-card__actions .btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px; /* CTA rond OK ici */
    font-weight: 750;
    border: 1px solid rgba(0,0,0,.14);
    background: rgba(255,255,255,.55);
    color: #111;
    box-shadow: 0 10px 22px rgba(0,0,0,.08);
    transform: translateZ(0);
  }
  
  .stage-card__actions .btn:hover{
    background: rgba(255,255,255,.80);
    border-color: rgba(0,0,0,.22);
    transform: translateY(-1px);
  }
  
  /* Hover (subtil) */
  .stage-card:hover{
    transform: translateY(-2px);
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 14px 38px rgba(0,0,0,.10);
  }
  
  /* Past stage -> grisé */
  .stage-card.is-past{
    filter: grayscale(1);
    opacity: .62;
  }
  .stage-card.is-past .stage-card__overlay{
    background: linear-gradient(
      180deg,
      rgba(255,255,255,.40),
      rgba(255,255,255,.92)
    );
  }
  .stage-card.is-past .btn{
    opacity: .75;
  }



  /* =====================
   STAGE PASSÉ
   ===================== */

/* Stage passé : filigrane */
.stage-card.is-past{
  position: relative;
  overflow: hidden; /* important pour couper le texte */
}

.stage-card.is-past::after{
  content: "TERMINÉ";
  position: absolute;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);

  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: .25em;
  text-transform: uppercase;

  color: rgba(0,0,0,.12);
  border: 4px solid rgba(0,0,0,.08);
  padding: 12px 28px;
  border-radius: 8px;

  pointer-events: none;
}

/* Désactive tous les boutons/cta dans une card passée */
.stage-card.is-past a.btn{
  pointer-events: none;
  opacity: .55;
  cursor: not-allowed;
}



  /* ======================
   GALLERY IMMERSIVE
   ====================== */

.gallery{
  width: 100%;
  overflow: hidden;
  background: #000;
}

.gallery__track{
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery__track::-webkit-scrollbar{
  display: none;
}

.gallery__track img{
  flex: 0 0 80%;
  height: 65vh;
  object-fit: cover;
  scroll-snap-align: center;
  margin-right: 20px;
  border-radius: 18px;
}

/* Desktop */
@media (min-width: 920px){
  .gallery__track img{
    flex: 0 0 60%;
    height: 70vh;
  }
}

/* Mobile */
@media (max-width: 600px){
  .gallery__track img{
    flex: 0 0 100%;
    height: 55vh;
    margin-right: 0;
  }
}




/* ===
   FAQ
   === */
.faq{
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq__item{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  background: transparent;
  border: 0;
  color: var(--text);
  padding: 16px 16px;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.faq__q span:first-child{
  line-height: 1.25;
}

.faq__icon{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.faq__item.is-open .faq__icon{
  transform: rotate(45deg); /* + devient x */
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.faq__a{
  padding: 0 16px 16px;
  color: var(--muted);
}

.faq__a p{
  margin: 0;
}


/* ======================
   ABOUT (LIGHT)
   ====================== */
   .aboutLight{
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 46px;
    align-items: center;
  }
  
  .aboutLight__media{
    margin: 0;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--light-border);
    box-shadow: 0 18px 55px rgba(0,0,0,.10);
    background: var(--light-card);
  }
  
  .aboutLight__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
  .aboutLight__kicker{
    margin: 0 0 6px;
    font-style: italic;
    color: var(--light-muted);
  }
  
  .aboutLight__title{
    margin: 0 0 16px;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--light-text);
  }
  
  .aboutLight__text p{
    margin: 0 0 14px;
    color: var(--light-muted);
    line-height: 1.7;
    max-width: 70ch;
  }
  
  .aboutLight__text strong{
    color: var(--light-text);
  }
  
  .aboutLight__quote{
    margin-top: 18px;
    padding-left: 14px;
    border-left: 3px solid rgba(0,0,0,.18);
    font-style: italic;
    color: var(--light-text);
    font-weight: 750;
  }
  
  /* Responsive */
  @media (max-width: 920px){
    .aboutLight{
      grid-template-columns: 1fr;
      gap: 26px;
      align-items: start;
    }
  
    .aboutLight__media{
      width: 260px;
      height: 260px;
    }
  }

  
  /*==========
    RESPONSIVE
    ==========*/
  @media (max-width: 920px){
    .dates-list{
      grid-template-columns: 1fr;
    }
    .stage-card{
      min-height: 200px;
    }
  }
  

  /* ======================
   CONTACT SECTION
   ====================== */
  .contact{
    background: var(--bg);
    text-align: center;
  }

  .contact__inner{
    max-width: 760px;
    margin: 0 auto;
  }

  .contact__title{
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
  }

  .contact__lead{
    color: var(--muted);
    margin: 0 0 28px;
    line-height: 1.6;
  }

  .contact__cta{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 26px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid var(--border);
    font-weight: 800;
    font-size: 1.05rem;
    transition: all .2s ease;
  }

  .contact__cta:hover{
    background: rgba(255,255,255,.14);
    transform: translateY(-2px);
  }

  .contact__alt{
    margin-top: 22px;
    font-size: .9rem;
    color: var(--muted);
  }

  .contact__alt a{
    color: var(--text);
    text-decoration: underline;
  }



  /* ======================
   FOOTER (premium)
   ====================== */
  .siteFooter{
    background: var(--bg);
    border-top: 1px solid var(--border);
  }

  .siteFooter__emailLine{
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
  }
  .siteFooter__emailLine a{
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .siteFooter__main{
    padding: 26px 0 18px;
  }

  .siteFooter__inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .siteFooter__brand{
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }

  .siteFooter__avatar{
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--border);
  }

  .siteFooter__meta{
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .siteFooter__name{
    font-weight: 800;
    letter-spacing: .2px;
  }

  .siteFooter__tagline{
    font-size: .92rem;
  }

  .siteFooter__phone{
    width: fit-content;
    font-weight: 800;
    color: var(--text);
    opacity: .95;
    text-decoration: underline;
    text-underline-offset: 5px;
  }

  .siteFooter__social{
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .socialIcon{
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    color: var(--text);
    font-weight: 800;
    letter-spacing: .02em;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
  }
  .socialIcon:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.18);
  }

  .siteFooter__bottom{
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .siteFooter__links{
    display: flex;
    gap: 12px;
  }
  .siteFooter__links a{
    color: var(--muted);
  }
  .siteFooter__links a:hover{
    color: var(--text);
  }

  @media (max-width: 920px){
    .siteFooter__inner{
      flex-direction: column;
      align-items: flex-start;
    }
    .siteFooter__bottom{
      flex-direction: column;
      align-items: flex-start;
    }
    .siteFooter__topInner{
      justify-content: flex-start;
    }
  }



  @media (max-width: 920px){
    .nav{ display:none; }
    .header__actions{ display:none; }
    .burger{ display:inline-block; }
    .brand{ min-width: unset; }
  
    .header__inner{ padding: 12px 18px; }
  
    .hero__content{
      padding: 56px 0;
      padding-left: 24px;
      padding-right: 18px;
    }
  
    .hero__bg{
      background-position: 70% center;
    }
  
    /* Formations : 1 colonne en mobile */
    .formations-grid{
      grid-template-columns: 1fr;
      gap: 16px;
    }
  
    /* Optionnel : image un peu moins haute en mobile */
    .formation-card__image img{
      height: 230px;
    }

    .date-card{
        grid-template-columns: 1fr;
      }
      .date-card__cta{
        justify-self: start;
      }
      .dates-footer{
        flex-direction: column;
        align-items: flex-start;
    }

    .date-card{
        grid-template-columns: 1fr;
        gap: 14px;
      }
      .date-card__month{
        justify-items: start;
        width: fit-content;
      }
      .date-card__cta{
        justify-self: start;
    }
}









/* =====
  FLECHE
   ===== */
   .toTop{
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(20,20,22,.92);
    backdrop-filter: blur(10px);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
    z-index: 60;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  .toTop.isVisible{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .toTop:hover{
    background: rgba(13,13,15,.95);
  }