/* === Programmes – Liste === */

.dgf-programmes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  margin-top: 2em;
  margin-bottom: 3em;
}

.dgf-program-card {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1.5em;
  width: 100%;
  max-width: 31%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dgf-program-card h2 {
  font-size: 1.25em;
  margin-top: 0;
  color: #0073aa;
}

.dgf-program-card p {
  font-size: 0.95em;
  line-height: 1.5;
  color: #333;
}

.dgf-program-card h4 {
  margin-top: 1em;
  font-size: 1em;
  color: #444;
}

.dgf-program-card ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0.5em 0 1em;
}

.dgf-program-card li {
  font-size: 0.95em;
  margin-bottom: 0.4em;
}

.dgf-program-card .dgf-btn {
  margin-top: auto;
  align-self: flex-start;
}


/* Catalogue – Liste */
.dgf-catalogue {
  list-style: none;
  padding: 0;
  margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 1em;
}

.dgf-catalogue-item {
  border: 1px solid #ddd;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 8px;
  background-color: #f9f9f9;
    min-width: 28%;
    width: 32%;
}

.dgf-catalogue-item h3 {
  margin-top: 0;
}

 

/* Formulaire de filtre */
.dgf-catalogue-filter {
  margin-bottom: 2em;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: flex-end;
}

.dgf-catalogue-filter input,
.dgf-catalogue-filter button {
  padding: 0.5em;
  font-size: 1em;
}

.dgf-catalogue-filter input[type="text"],
.dgf-catalogue-filter input[type="date"] {
  border: 1px solid #ccc;
  border-radius: 4px;
}

.dgf-catalogue-filter button {
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.dgf-catalogue-filter button:hover {
  background-color: #005f8d;
}


/* Filtres */


.dgf-catalogue-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 2em;
}

.dgf-catalogue-filter input[type="text"],
.dgf-catalogue-filter input[type="date"] {
  padding: 0.5em;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.dgf-catalogue-filter button,
.dgf-catalogue-filter .dgf-reset {
  background-color: #0073aa;
  color: white;
  border: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.dgf-catalogue-filter .dgf-reset {
  background-color: #aaa;
}

.dgf-catalogue-filter button:hover,
.dgf-catalogue-filter .dgf-reset:hover {
  background-color: #005f8d;
}




.dgf-instructors {
  font-size: 0.95em;
  color: #555;
  margin: 0.5em 0;
}




.dgf-img-wrap {
    margin-bottom: 10px;
}
.dgf-session-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}




.dgf-modules {
  margin-top: 1em;
    padding: 10px;
    border: 1px solid #999;
}
.dgf-modules ul {
  padding-left: 1.2em;
  list-style: disc;
}



 /* Layout principal */
.dgf-layout {
  display: grid;
  grid-template-columns: 2fr 1fr; /* contenu + sidebar */
  gap: 2rem; /* espace entre colonnes */
  align-items: start;
  margin-top: 2rem;
}

/* Colonne principale */
.dgf-main {
  min-width: 0; /* important pour éviter les débordements */
}

/* Sidebar */
.dgf-sidebar {
  position: relative; /* nécessaire pour le sticky */
}

.dgf-sticky {
  position: sticky;
  top: 2rem; /* distance par rapport au haut de l'écran */
}

/* Cartes de la sidebar */
.dgf-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Pour mobile : sidebar en dessous */
@media (max-width: 768px) {
  .dgf-layout {
    grid-template-columns: 1fr;
  }
  .dgf-sidebar {
    order: 2; /* sidebar après le contenu */
  }
  .dgf-main {
    order: 1;
  }
}

.dgf-grid section {
    padding: 0;
}









.dgf-dashboard {
  background: #f5f5f5;
  padding: 1em;
  border-radius: 8px;
}
.dgf-dashboard ul {
  list-style: none;
  padding-left: 0;
}
.dgf-dashboard li {
  padding: 0.5em;
  border-bottom: 1px solid #ddd;
}


.dgf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.dgf-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
}

.dgf-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.dgf-btn-modal {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
}





.dgf-thankyou {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 700px;
    margin: 2rem auto;
}
.dgf-thankyou h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}
.dgf-thankyou p, .dgf-thankyou li {
    font-size: 1.1rem;
}



.dgf-login-form {
  max-width: 500px;
  margin: 2em auto;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 2em;
}

.dgf-login-form h2 {
  margin-top: 0;
  color: #0073aa;
}

.dgf-login-form input[type="text"],
.dgf-login-form input[type="email"],
.dgf-login-form input[type="password"] {
  width: 100%;
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 0.2em;
  margin-bottom: 1em;
  font-size: 1em;
  box-sizing: border-box;
}

.dgf-login-form button.button,
.dgf-login-form input[type="submit"] {
  background-color: #0073aa;
  color: #fff;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.dgf-login-form button.button:hover,
.dgf-login-form input[type="submit"]:hover {
  background-color: #005f8d;
}

.dgf-login-form p {
  font-size: 1em;
  margin-bottom: 1em;
}

.dgf-login-form a {
  color: #0073aa;
  text-decoration: underline;
}

.dgf-login-form .notice {
  padding: 1em;
  border-radius: 5px;
  margin-bottom: 1em;
}

.dgf-login-form .notice-success {
  background-color: #dff0d8;
  border-left: 5px solid #3c763d;
  color: #3c763d;
}

.dgf-login-form .notice-error {
  background-color: #f2dede;
  border-left: 5px solid #a94442;
  color: #a94442;
}










.program-detail-title {
  display: block;
  cursor: pointer;
  font-weight: bold;
  padding: 0.5rem;
  background: #f5f5f5;
  border-radius: 4px;
    padding-right: 36px;
}

.program-detail.open .program-detail-title {
  background: #0073aa;
  color: #fff;
  border-radius: 4px 4px 0px 0px;
}

.program-detail ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}


.dgf-grid .dgf-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dedede;
    display: inline-block;
    width: 100%;
}





li.dgf-session {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

li.dgf-session .dgf-btn {
    margin: 0;
}

li.dgf-session time {
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}


aside li.dgf-session {
    flex-flow: column;
}

aside .dgf-session__cta {
    margin-top: 10px;
    margin-bottom: 10px;
}








