.sub-header-content {

  width: 100% !important;
}

.bloc-under-header {
  height: 82px;
  background: #A6A485 0% 0% no-repeat padding-box;
  box-shadow: 0px 3px 16px #00000029;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 120px;
  /* position: fixed; */
  /* top: 207px; */
  width: 100%;
  z-index: 5;
}

.btn {
  background-color: #d20000;
  color: white;
  padding: 12px;
  width: 270px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.section-1 {
  display: flex;
  align-items: start;
  /* justify-content: space-between; */
  gap: 25vw;
}

.images-container {
  position: relative;
}

.content-container {
  top: 291px;
  box-sizing: border-box;
  padding: 20px 120px;
  flex-direction: column;
  gap: 29px;
  width: 100vw;
  max-width: 98vw;
}

.content-container p {
  text-align: left;
  font: normal normal 16px / 25px Poppins;
  letter-spacing: 0px;
  color: #2A2916;
  opacity: 1;
}

.section-1-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 657px;
}

.content-quote {
  width: 663px;
  border: unset;
  border-left: 5px solid var(--primary-dark);
  box-sizing: border-box;
  padding-left: 20px;
}

.line {
  width: 155px;
  height: 2px;
  background: black;
  flex: none;
  align-self: center;
}

.section-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.card {
  width: 334px;
  height: 247px;
  background: #FFFFFF 0% 0% no-repeat padding-box;
  box-shadow: 0px 0px 16px #0000000F;
  border: 1px solid #A6A485;
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-sizing: border-box;
  padding: 40px 20px;
  border-radius: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
  width: 25px;
  height: 25px;
  background: #FDFDFA 0% 0% no-repeat padding-box;
  border: 1px solid #6E6D55;
  position: relative;
}

/* Change border to red when selected */
input[type="radio"]:checked {
  border-color: var(--primary-dark);
  border: 1px solid var(--primary-dark);

  /* Red border when selected */
}

/* Inner dot (red when selected) */
input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: unset;
  background: unset;
  border-radius: 50%;
  top: 50%;
  left: 49%;
  transform: translate(-50%, -50%);
}

input[type="radio"] {
  accent-color: var(--primary-dark);
}

header {
  background-color: #8c8a6b;
  color: white;
  padding: 15px 20px;
  font-size: 20px;
}

.container {
  padding: 30px;
  max-width: 1000px;
  margin: auto;
  background-color: #fff;
}

.filter-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

select,
button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button.filter {
  background-color: #d10f1f;
  color: white;
  border: none;
  cursor: pointer;
}

.accordion {
  border: 0px solid #ccc;
  margin-top: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-body {
  display: none;
  padding: 20px 0px;
  background-color: #f1f1f1;
  border-top: 1px solid #ccc;
  border: none;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background-color: #f4f4e8;
  padding: 15px;
  border-radius: 6px;
}

.card h4 {
  margin-top: 0;
  color: #5b5a42;
}

.objectives {
  margin-top: 30px;
}

.objectives ul {
  padding-left: 20px;
}

.subscribe-btn {
  background-color: #be0503;
  color: white;
  padding: 10px 27px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  /* float: right; */
  margin-top: 15px;
  position: relative;
  left: 85%;
  margin-bottom: 15px;
  font-size: 14px;
}

.filter-group {
  display: flex;
  gap: 50px;
  align-items: flex-end;
  margin-bottom: 25px;
  /* flex-wrap: wrap; */
}

.filter-item {
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
}

.filter-item label {
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 17px;
  /* text-align: center; */
  letter-spacing: 0px;
  color: #6E6D55;
}

.filter-item select {
  padding: 13px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  min-width: 220px;
  background-color: #fff;
  max-width: 470px;
  width: 27vw;
  height: 46px;
  background: #FFFFFF 0% 0% no-repeat padding-box;
  border: none;
  border-bottom: 3px solid #a6a485;
  font-size: 15px;
}

.filter-button button.filter {
    background-color: #d10f1f;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    width: fit-content;
    padding: 0 9vw;
    height: 47px;
    background: #BF0404 0% 0% no-repeat padding-box;
    box-shadow: 0px 5px 11px #00000029;
    border: 2px solid #BF0404;
    border-radius: 5px;
}

.content-container > .filter-group {
  margin-bottom: 10px;
}

.content-container {
  gap: 10px;
}

.content-container > .filter-group:nth-of-type(2) {
  margin-bottom: 0;
}

.content-container > .filter-group:nth-of-type(2):has(#filter-diplome[style*="display: none"]) {
  display: none;
}

#sessions-container,
#masters-radio-container {
  margin-top: 0;
}

#sessions-container .accordion:first-child,
#masters-radio-container .accordion:first-child {
  margin-top: 0;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f2f2e9;
  padding: 15px 20px;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  background: #FFFFFF 0% 0% no-repeat padding-box;
  box-shadow: 0px 3px 25px #0000000D;
  border-radius: 5px;
  border: 0px #fff solid;
}

.accordion-title {
  flex: 1;
  color: #3c3c3c;
  font-weight: 600;
  font-size: 18px;
}

.master-header-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.master-header-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.master-etablissement-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
  padding: 5px;
  background: #fff;
  border: 1px solid #ebe9d7;
  border-radius: 6px;
}

.master-etablissement-name {
  margin-top: 4px;
  color: #444;
  font-size: 14px;
  font-weight: 500;
}

.accordion-session {
  width: 180px;
  color: #444;
  font-weight: 500;
}

.session-open-text {
  color: #BF0404;
  font-weight: 700;
}

.accordion-domain {
  text-align: center;
  color: #666;
  font-weight: 500;
}

.accordion-date {
  text-align: right;
  color: #444;
  font-weight: 500;
}

.master-session-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  align-items: flex-start;
}

.master-session-meta .accordion-domain {
  text-align: left;
}

.master-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.master-session-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 42px;
  align-items: center;
}

.master-session-row .accordion-date {
  text-align: left;
}

.accordion-coordinateur {
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: #444;
  font-weight: 500;
}

.grid-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 25px;
}

.grid-info2 {
  display: grid;
  gap: 30px;
  margin-top: 25px;
}

.info-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #A6A485;
  color: white;
  padding: 12px 15px;
  margin: -20px -20px 20px -20px;
  border-radius: 8px 8px 0 0;
}

.card-header h4 {
  margin: 0;
  font-size: 16px;
}

.pdf-icon {
  width: 32px;
  height: 40px;
}

.card-content p {
  margin: 8px 0;
  font-size: 14px;
  color: #333;
}

.plan-telechargement {
  margin-top: 15px;
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  color: #d20000;
  border: 2px solid #d20000;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin-top: 15px;
}

.btn-pdf .icon-pdf {
  width: 16px;
  margin-right: 8px;
}

.fiche-master-bloc {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', sans-serif;
}

.fiche-master-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #a6a17b;
  padding: 12px 16px;
  border-radius: 6px 6px 0 0;
  color: white;
}

.fiche-master-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.fiche-icon {
  width: 24px;
  height: 24px;
}

.fiche-master-table p {
  margin: 10px 0;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.fiche-master-table p strong {
  color: #6E6D55;
  font-weight: 500;
  display: inline-block;
  min-width: 270px;
  font-size: 16px;
}

.grid-details {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  padding: 0px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  margin-top: 20px;
}

.grid-details2 {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 30px;
  padding: 0px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  margin-top: 20px;
}

.card_master p {
  margin: 8px 0;
  font-size: 14px;
  color: #333;
}

.label-col {
  color: #6E6D55 !important;
  font-weight: 500 !important;
  font-size: 16px !important;

}

.value-col {
  font-size: 16px !important;
  color: #333 !important;
  font-weight: 500 !important;
}

.grid-info2 {
  margin-top: 30px;
  font-family: 'Poppins', sans-serif;
}

.info-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: transparent;
  padding: 20px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
}



.card-header h4 {
  margin: 0;
  font-size: 16px;
}

.pdf-icon {
  width: 24px;
  height: 24px;
}

.card-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.card-content ul li {
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.objectifs-specifiques {
  margin-top: 15px;
}

.objectifs-specifiques p {
  font-size: 14px;
  color: #222;
}

.objectifs-card {
  margin-top: 30px;
  font-family: 'Poppins', sans-serif;
  border: 1px solid #ccc;
  background-color: #fdfdf8;
  border-radius: 10px;
  padding: 0;
}



.objectifs-card .card-header h4 {
  margin: 0;
  font-size: 16px;
}

.objectifs-card .pdf-icon {
  width: 24px;
  height: 24px;
}

.objectifs-table {
  padding: 20px;
  border-top: 1px solid #ccc;
  background-color: #f1f1f1;
}

.objectifs-row {
  display: flex;
  grid-template-columns: 1fr 3fr;
  gap: 20px;
  margin-bottom: 20px;
  /*flex-wrap: wrap;*/
}

.label {
  font-weight: 600;
  font-size: 14px;
  color: #444;
  flex: none;
  width:90px;
}

.values ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.values ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #222;
}

.values ul li::before {
  content: \"▶\";
  position: absolute;
  left: 0;
  color: #d20000;
  font-size: 12px;
}

.values p {
  font-size: 14px;
  color: #222;
  margin: 0;
}

.objectifs-card .card-header {
  margin: 0px
}

.objectifs-table ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.objectifs-table ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #222;
  font-family: 'Poppins', sans-serif;
}

.objectifs-table ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 0;
  height: 0;
  border-left: 7px solid #d20000;
  /* triangle rouge */
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.objectifs-table .objectifs-row .values > p {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #222;
  font-family: 'Poppins', sans-serif;
}

.objectifs-table .objectifs-row .values > p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 0;
  height: 0;
  border-left: 7px solid #d20000;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

img.icon-pdf2 {
  width: 34px;
  height: 44px;
  margin-right: 12px;
}

img.icon-download {
  width: 16px;
  height: 17px;
  margin-right: 5px;
}

span.subtitle {
  color: #a6a485;
}

.empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: #fdfdf8;
  border: 1px dashed #ccc;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
  font-family: 'Poppins', sans-serif;
  color: #444;
  text-align: center;
}

.empty-message .empty-image {
  width: 120px;
  height: auto;
  margin-bottom: 25px;
  opacity: 0.85;
  transition: transform 0.3s ease;
}

.empty-message .empty-image:hover {
  transform: scale(1.05);
}

.empty-message p {
  font-size: 15px;
  margin: 5px 0;
  color: #666;
}

.empty-message p:first-of-type {
  font-weight: 600;
  color: #d20000;
  font-size: 16px;
}

img.icon-retour {
  width: 26px;
  height: 23px;
  margin-right: 10px;
  position: relative;
  top: 4px;
}


@media screen and (max-width: 900px) {
  .filter-item select {
    width: 100% !important;
    max-width: none !important;
  }

  .filter-button button.filter {

    width: 100% !important;

  }

  .filter-group {

    flex-wrap: wrap;
  }

  .button.filter {
    width: 100% !important;
  }

  .content-container {

    padding: 20px;

  }

  .filter-item {
    width: 100%;
  }

  .grid-info {
    display: flex;
    flex-direction: column;
  }

  .accordion-header {
    align-items: flex-start !important;
  }

  .master-header-main {
    gap: 10px;
  }

  .master-etablissement-logo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .subscribe-btn {
    left: 0;
    width: 100%;
  }

  .accordion-body {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 0px 3px 25px #0000000D;
    border: 1px solid #A6A485;
    border-radius: 5px;
    margin-top: 18px;
    padding: 20px;
  }

  .btn-pdf {

    width: 100%;
    align-items: center;
    justify-content: center;
  }
}

.label-grid-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.grid-details {
  display: flex;
  flex-direction: column;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  padding: 0px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  margin-top: 20px;
}

.admission-cycle-block {
  margin-bottom: 18px;
  padding-bottom: 14px;
 /* border-bottom: 1px solid #e5e5e5;*/
  width: 50%; 
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admission-cycle-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.admission-cycle-title {
  font-size: 15px;
  font-weight: 700;
  color: #BF0404;
  margin: 0 0 12px 0;
}

.admission-details{
  display: flex;
  flex-direction: row;
}


.pieces-jointes-card {
  margin-top: 20px;
}

.pieces-jointes-list {
  display: grid;
  gap: 12px;
  padding: 15px 0;
}

.piece-jointe-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #EBE9D7;
  border-radius: 8px;
  /*background: #fff;*/
}

.piece-jointe-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  color: #333;
}

.btn-piece-jointe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.icon-pdf2 {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.icon-download {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Header master: title + etablissement + domaine in one row */
.master-header-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.master-header-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.master-header-row .accordion-title,
.master-header-row .master-etablissement-name,
.master-header-row .accordion-domain {
  margin: 0;
  text-align: left;
  min-width: 0;
}

.master-header-row .accordion-title {
  word-break: break-word;
}

.master-header-row .master-etablissement-name {
  font-size: 14px;
  font-weight: 500;
}

.master-header-row .accordion-domain {
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

/* Keep sessions list under the row */
.master-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.master-session-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 42px;
  align-items: center;
}

.master-session-row .accordion-date {
  text-align: left;
}

/* Mobile responsive */
@media screen and (max-width: 900px) {
  .master-header-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .master-session-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
