/* Styles spécifiques — adc */
body.page-adc { background-color: #F5F5F7; }

/* IMAGE DE FOND FIXE */
.background {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url("../../../media/adc_27_banner.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

@media (max-width: 900px) {
  .background {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    background-image: url("../../../media/adc_27_banner.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
  }
}

@media (max-width: 530px) {
  .background {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 45vh;
    background-image: url("../../../media/adc_27_banner.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
  }
}


.section-text1 {
  color: black;
  text-align: center;
  font-weight: bold;
  margin-top: 7%;
  font-size: 32px;
}

.section-text1-1 {
  color: black;
  text-align: center;
  align-items: center;
  margin-top: 1%;
  font-size: 12px;
  display: flex;
  margin-bottom: 6%;
  justify-content: center;
}

.adc-section {
  padding: 0px 5%;
}

@media (max-width: 850px) {
  .section-text1 {
    color: black;
    text-align: center;
    font-weight: bold;
    margin-top: 7%;
    font-size: 12px;
  }

  .section-text1-1 {
    color: black;
    text-align: center;
    align-items: center;
    margin-top: 3%;
    font-size: 7px;
    display: flex;
    margin-bottom: 6%;
    justify-content: center;
  }
}

/* =========================
   Carrousel des conventions ADC
   ========================= */
.adc-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 1fr);
  gap: 24px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.adc-card {
  min-height: 390px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  color: #000;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 30px;
  scroll-snap-align: start;
}

.adc-card--upcoming {
  background:#fff;
}

.adc-title {
  margin: 0;
  text-align: center;
  font-size: 25px;
  font-weight: 700;
}

.adc-theme {
  margin: 4px 0 25px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.adc-description {
  margin: 0 0 32px;
  text-align: left;
  font-size: 12px;
  line-height: 1.65;
}

.adc-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.info-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.info-line img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.adc-button {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.adc-button a,
.adc-button-disabled {
  display: inline-flex;
  min-height: 44px;
  padding: 12px 22px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #2f6bff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.adc-button a:hover {
  background: #2454cc;
  transform: translateY(-2px);
}

.adc-button-disabled {
  cursor: not-allowed;
  background: #7f8ba3;
  opacity: 0.8;
}

@media (max-width: 1050px) {
  .adc-grid {
    grid-auto-columns: minmax(280px, 85%);
    gap: 16px;
    scrollbar-width: none;
  }

  .adc-grid::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 520px) {
  .adc-section {
    padding-inline: 20px;
  }

  .adc-grid {
    grid-auto-columns: 92%;
  }

  .adc-card {
    min-height: 370px;
    padding: 22px;
    border-radius: 24px;
  }
}

/* =========================                         RECAP 2025                               ============================*/
.section-text2 {
  color: black;
  text-align: center;
  font-weight: bold;
  margin-top: 7%;
  font-size: 32px;
}

.section-text2-2 {
  color: black;
  text-align: center;
  align-items: center;
  margin-top: 1%;
  font-size: 12px;
  display: flex;
  margin-bottom: 6%;
  justify-content: center;
}

/* =========================                        CASE RECAP 2025                               ============================*/
.recap-section {
  padding: 0px 5%;
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-items: center;
}

.rectangle {
  background-color: white;
  padding: 20px;
  width: 650px;
  border-radius: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.rectangle svg {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
}

.recap-title {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: bold;
  color: #000;
}

.recap-des {
  margin: 5px 0;
  font-size: 12px;
  margin-bottom: 60px;
  color: #000;
}

.recap-theme {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #000;
}

.recap-tdes {
  font-size: 12px;
  color: #000;
}

.blue-box-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blue-box {
  background-color: #007bff;
  color: white;
  padding: 10px;
  display: flex;
  font-weight: bold;
  font-size: 12px;
  align-items: center;
  border-radius: 30px;
  gap: 10px;
}

.blue-box img {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 30px;
}

.blue-box1 {
  font-size: 12px;
  font-weight: lighter;
}

/* =========================
   Carrousel <= 1050px (RECAP 2025)
   ============================*/
@media (max-width: 1050px) {

  .recap-grid {
    display: flex;
    /* devient un carrousel */
    gap: 16px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding-bottom: 10px;
  }

  .rectangle {
    flex: 0 0 90%;
    /* largeur d'une slide */
    width: auto;
    /* évite le blocage à 650px */
    scroll-snap-align: center;
  }

  /* cacher la scrollbar (optionnel) */
  .recap-grid::-webkit-scrollbar {
    display: none;
  }

  .recap-grid {
    scrollbar-width: none;
  }
}

/* =========================                         PROCH 2026                               ============================*/
.section-text2 {
  color: black;
  text-align: center;
  font-weight: bold;
  margin-top: 7%;
  font-size: 32px;
}

.section-text2-2 {
  color: black;
  text-align: center;
  align-items: center;
  margin-top: 1%;
  font-size: 12px;
  display: flex;
  margin-bottom: 6%;
  justify-content: center;
}

@media (max-width: 850px) {
  .section-text2 {
    color: black;
    text-align: center;
    font-weight: bold;
    margin-top: 7%;
    font-size: 12px;
  }

  .section-text2-2 {
    color: black;
    text-align: center;
    align-items: center;
    margin-top: 3%;
    font-size: 7px;
    display: flex;
    margin-bottom: 6%;
    justify-content: center;
  }
}

/* =========================                        CASE RECAP 2025                               ============================*/
.recap-section2 {
  padding: 0px 5%;
}

.recap-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-items: center;
}

.rectangle2 {
  background-color: white;
  padding: 20px;
  width: 650px;
  border-radius: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.rectangle2 svg {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
}

.recap-title2 {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: bold;
  color: #000;
}

.recap-des2 {
  margin: 5px 0;
  font-size: 12px;
  color: #000;
  margin-bottom: 60px;
}

.recap-theme2 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #000;
}

.recap-tdes2 {
  font-size: 12px;
  color: #000;
}

.blue-box-container2 {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blue-box2 {
  background-color: #3d115b;
  color: white;
  padding: 10px;
  display: flex;
  font-weight: bold;
  font-size: 12px;
  align-items: center;
  border-radius: 30px;
  gap: 10px;
}

.blue-box2 img {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 30px;
}

.blue-box12 {
  font-size: 12px;
  font-weight: lighter;
}

/* =========================
   Carrousel <= 1050px (RECAP SECTION 2)
   ============================*/
@media (max-width: 1050px) {

  .recap-grid2 {
    display: flex;
    /* grille → carrousel */
    gap: 16px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding-bottom: 10px;
  }

  .rectangle2 {
    flex: 0 0 90%;
    /* largeur d’une slide */
    width: auto;
    /* annule le 650px fixe */
    scroll-snap-align: center;
  }

  /* cacher la scrollbar (optionnel) */
  .recap-grid2::-webkit-scrollbar {
    display: none;
  }

  .recap-grid2 {
    scrollbar-width: none;
  }
}