/*
Theme Name:     the-minimal Child
Description:    Thème enfant du thème the-minimal
Author:         TEINGNIER Mickaël
Template:       the-minimal
Version:        1.0.0
*/

/* Import du style du parent */
@import url('../the-minimal/style.css');

/**********************************************************
*** GENERAL
**********************************************************/
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --black-frame: #2B2D42;
    --white-frame: #EDF3F5;
    --accent-frame: #9CC1CE;
}
.center{
    text-align: center;
}
.section-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 2rem 0;
}
.section-container{
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
    padding:0
}
.section-content,
.section-media {
  flex: 1 1 300px;
}

.section-logo img {
  max-width: 370px;
  height: auto;
}

.section-title {
    font-weight: 700;
    font-size: 47.78px;
    line-height: 100%;
    letter-spacing: 0;
    margin-bottom:28px;
    margin-top:0
}

.section-text {
    line-height: 1.5;
    letter-spacing: 0;
    margin-bottom:32px;
    margin-top: 0;
    font-weight: 400;
}

.btn {
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s;
    font-family: "Rubik", sans-serif;
    font-weight: 500;
    font-size: 23.04px;
    line-height:24px;
    letter-spacing: 0;
}

.btn-primary {
    background-color: transparent;
    color: var(--white-frame);
    padding: 16px 24px;
    border-radius: 24px;
    border: solid 1px var(--white-frame);
}

.btn-primary:hover {
    background-color: var(--white-frame);
    color:var(--black-frame)
}

.btn-secondary {
    background-color: transparent;
    color: var(--black-frame);
    padding: 16px 24px;
    border-radius: 24px;
    border: solid 1px var(--black-frame);
}

.btn-secondary:hover {
    background-color: var(--black-frame);
    color: var(--white-frame)
}
.btn-tertiary {
    background-color: var(--black-frame);
    color: var(--white-frame);
    padding: 16px 24px;
    border-radius: 24px;
    border: solid 1px var(--black-frame);
}

.btn-tertiary:hover {
  background-color: var(--white-frame);
  color: var(--black-frame);
  border: solid 1px var(--white-frame);
}

.section-media img {
  max-width: 355px;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
h1, h2, h3, h4, h5, h6{
  font-family: "Rubik", sans-serif;
}
p{
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
}
/**********************************************************
*** HEADER
**********************************************************/
#main-menu{
  width:calc(100% - 108px);
  justify-content: space-between;
}
.site-header{
  width:100%;
  background-color:var(--white-frame);
  position: sticky;
  top:0;
  z-index: 100;
  -webkit-box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.5); 
  box-shadow: 0px 3px 15px 0px rgba(0,0,0,0.5);
}
.site-header-content{
  width:100%;
  max-width: 1135px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 10px;
}
.site-title{
  margin-right:48px
}
.site-title img{
  width:60px;
  height:60px
}
.main-nav ul.menu{
  display: flex;
  align-items: center;
  margin:0;
  padding:0
}
.main-nav ul.menu li{
  list-style: none;
}
.main-nav ul.menu#menu-menu-principal{
  gap:48px;
  justify-content: flex-start;
}
.main-nav ul.menu#menu-menu-principal a{
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 23.04px;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--black-frame);
}
.main-nav ul.menu#menu-menu-secondaire{
  gap:32px
}
.main-nav ul.menu#menu-menu-secondaire a{
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  font-size: 23.04px;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--black-frame);
}
.main-nav ul.menu#menu-menu-secondaire li:first-child a{
  padding:16px 24px;
  border: solid 1px var(--black-frame);
  border-radius:24px
}
.main-nav ul.menu#menu-menu-secondaire li:first-child a:hover{
  color: var(--white-frame);
  background-color: var(--black-frame);
}
.main-nav ul.menu#menu-menu-principal li.current_page_item::after{
  display: block;
  content:'';
  width:100%;
  height:2px;
  background-color: var(--black-frame);
}
/**********************************************************
*** ACCUEIL
**********************************************************/
.section-hero{
  background-color:var(--black-frame);
  padding:125px 0
}
.section-hero > div{
    align-items: stretch;
    gap:80px;
}
.section-hero .section-content {
  flex: 1 1 605px;
}
.section-hero .section-media {
  flex: 1 1 355px;
}
.section-hero .section-title,
.section-hero .section-text{
    color:#fff
}
.section-formation{
    background-color:var(--white-frame);
    padding:65px 0
}
.section-formation .section-flex{
    max-width: 630px;
    margin:0 auto;
    gap:32px;
    align-items: flex-start;
    justify-content: center;
}
.section-premiereFormation .section-logo{
    width:170px
}
.section-premiereFormation .section-logo img{
    max-width: 100%;
}
.section-premiereFormation .section-content,
.section-deuxiemeFormation .section-content{
    width:430px
}
.section-premiereFormation .firstBtn{
    margin-right: 32px;
}
.section-deuxiemeFormation .section-title{
    font-weight: 600;
    font-size: 39.81px;
    line-height: 44px;
    letter-spacing: 0;
}
.section-deuxiemeFormation .section-logo{
    width: 170px;
    text-align: right;
}
.section-deuxiemeFormation .section-logo img{
    max-width: 85px;
}
.section-nos-actualites,
.section-qui-sommes-nous{
    background-color:var(--black-frame);
    padding:65px 0;
    color:var(--white-frame);
}
.section-qui-sommes-nous .section-flex{
    gap:64px
}
.section-qui-sommes-nous .section-title{
    margin-bottom: 64px;
}
.section-qui-sommes-nous .section-media img{
    border-radius:8px;
    max-width: 480px;
}
.section-qui-sommes-nous .section-subtitle{
    font-weight: 500;
    font-size: 27.65px;
    line-height: 28px;
    letter-spacing: 0;
    margin-top: 0;
    margin-bottom:12px
}
.section-nos-actualites h2{
  margin-bottom:64px
}
.bandeau-actualites{
  position: relative;
}
.slick-wrapper {
    position: relative;
    display: flex;
    overflow: hidden;
    max-width: 880px;
    margin:0 auto 30px
}

.slick-slide {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.slick-prev-custom,
.slick-next-custom,
.slick-prev-custom:hover,
.slick-next-custom:hover,
.slick-prev-custom:focus,
.slick-next-custom:focus {
  padding: 0.5em 1em;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  width: 48px;
  height:48px;
  background-position:center;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background: transparent;
  outline:0
}
.slick-prev-custom {
  left: 10px;
}
.slick-next-custom {
  right: 10px;
}
.slick-prev-custom:before,
.slick-next-custom:before{
  display: block;
  content:'';
  position: absolute;
  top:0;
  left:0;
  width:48px;
  height:48px;
  background-position:center;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}
.slick-prev-custom:before{
  background-image: url('/wp-content/themes/the-minimal-child/img/prev.png');
}
.slick-next-custom:before{
  background-image: url('/wp-content/themes/the-minimal-child/img/next.png');
}
.slide-content{
  display: flex;
  justify-content: flex-start;
  gap:64px;
  max-width: 880px;
}
.slide-text{
  width: calc(45% - 32px);
}
.slide-text h3{
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  font-size: 27.65px;
  line-height: 28px;
  letter-spacing: 0;
  margin-top:16px;
  margin-bottom:12px
}
.slide-text h3 a{
  color:var(--white-frame)
}
.slide-text p{
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  margin-top:0;
  margin-bottom:0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slide-image{
  width: calc(55% - 32px);
  border-radius: 8px;
  overflow: hidden;
}
.slide-image img{
  height:310px;
  object-fit: cover;
  width:100%
}
/**********************************************************
*** SINGLE POST
**********************************************************/
.hentry{
  margin:0
}
article .entry-header{
  display:grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap:50px;
  color: var(--white-frame)
}
article .entry-header img{
  height:300px;
  object-fit: cover;
}
.section-contenu-post{
  padding:65px 0
}
/**********************************************************
*** DASHBOARD
**********************************************************/
.dashboard-container{
  background-color: var(--black-frame);
  color:var(--white-frame);
  margin:0;
  padding:96px 0
}
.dashboard-container > section{
  max-width: 1040px;
  margin:0 auto
}
.dashboard-container h1{
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 39.81px;
  line-height: 44px;
  letter-spacing: 0;
  margin-top:0;
  margin-bottom:12px
}
.dashboard-container p{
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
}
/**********************************************************
*** LECONS
**********************************************************/
.lesson-header{
  padding:96px 0;
  background-color: var(--black-frame);
  color: var(--white-frame)
}
.lesson-header > div{
  display:flex;
  gap:96px;
  max-width:1040px;
  align-items: center;
  margin:0 auto
}
.lesson-header > div > div{
  flex:1
}
.lesson-text{
  width:calc(40% - 48px)
}
.lesson-thumbnail{
  width:calc(60% - 48px)
}
.lesson-thumbnail img{
  max-height:230px;
  object-fit: cover;
  border-radius: 8px;
}
.lesson-content h3{
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 33.18px;
  line-height: 36;
  letter-spacing: 0;
}
.lesson-key-info{
  padding:96px 0;
  background-color: var(--white-frame);
  color:var(--black-frame);
}
.lesson-key-info > div{
  max-width: 1040px;
  margin:0 auto;
}
/**********************************************************
*** FOOTER
**********************************************************/
.site-footer {
  background-color:var(--black-frame);
  padding: 160px 0;
  color:var(--white-frame)
}

.footer-container {
  max-width: 1040px;
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}

.footer-widget-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.footer-widget {
  margin-bottom: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  margin:0 auto;
  gap: 32px;
  max-width: 630px;
}

.footer-bottom-widget {
  flex: 1 1 auto;
}
footer a,
footer a:hover{
  color:#fff
}
footer a:hover{
  text-decoration: underline;
}
/* Responsive */
@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.logoFooter{
    width:105px
}
.site-footer .wp-block-social-links{
    gap:16px
}
.site-footer .wp-block-social-link-anchor{
    background-color: var(--black-frame);
    padding:0
}
.site-footer h4{
    font-weight: 500;
    font-size: 19.2px;
    margin-top:0;
    margin-bottom:28px
}
.site-footer p{
    margin-top:0;
    margin-bottom: 13px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
}
/**********************************************************
*** SINGLE COURS
**********************************************************/
body.single-sfwd-courses{
  background-color: var(--black-frame);
  color:var(--white-frame)
}
article.sfwd-courses{
  width:100vw;
  margin:0 auto
}
article.sfwd-courses .container{
  max-width: 1060px;
  padding:50px 10px;
}
#introCours{
  padding:96px 0
}
#introCours .container{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 96px;
  padding:46px 0 96px;
}
#introCours .container > div:first-child{
  width:39%
}
#introCours .container > div:nth-child(2){
  width:50%
}
#introCours h1{
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
  margin-top:0;
  margin-bottom:12px
}
#introCours h2{
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  margin-top:0;
  margin-bottom:28px
}
#progressCours{
  padding:0 0 96px
}
.image-cours{
  border-radius:8px;
  height:230px;
  width:100%;
  object-fit:cover;
  margin-bottom: 48px;
}
#cours-lecons .section-container{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:32px;
}
.cours-lecons-details{
  padding:32px;
  border-radius:8px;
  border:solid 1px var(--accent-frame);
  background-color: var(--white-frame);
  color:var(--black-frame)
}
.cours-lecons-details .lesson-number{
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
  text-align: right;
  margin-bottom:8px
}
.cours-lecons-details .lesson-thumbnail{
  width:100%
}
.cours-lecons-details .lesson-thumbnail .image-lecon{
  width:100%;
  height: 105px;
  border-radius: 8px;
  margin-bottom:8px;
  object-fit: cover;
  object-position: center;
}
.cours-lecons-details h3,
.cours-lecons-details h3 a{
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  color:var(--black-frame);
  margin-top: 0;
  margin-bottom: 12px;
}
.cours-lecons-details .learndash-wrapper .ld-progress .ld-progress-heading .ld-progress-stats margin:0 auto{
  color:var(--black-frame) !important
}
#quizCours{
  margin:96px 0;
  padding:96px 0;
  background-color: var(--white-frame);
  color:var(--black-frame)
}
#quizCours h2{
  margin-top:0;
  margin-bottom: 48px;
}
#quizCours .quizContainer{
  padding:0 96px
}
#quizCours .wpProQuiz_content .wpProQuiz_list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap:39px 96px;
}
#quizCours .learndash-wrapper .wpProQuiz_content .wpProQuiz_question{
  padding:0;
  margin:0 !important
}
#quizCours .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) label{
  max-width: 100%;
  padding:16px 30px;
  background-color:var(--black-frame);
  color:var(--white-frame);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  border-radius: 20px;
  border:none;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}
#quizCours .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) label.is-selected{
  background-color:var(--accent-frame);
  color:var(--black-frame);
}
#quizCours .learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem:not(.ld-sortable__item) label input{
  margin-right: 0;
}
.wpProQuiz_question_text p{
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0;
  margin-bottom:32px
}
#contactsrefCours{
  display: flex;
  gap: 96px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding:96px 0
}
#contactsrefCours h2{
  font-weight: 600;
  font-style: SemiBold;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
  margin-top:0;
  margin-bottom:48px
}
#contactsrefCours .contactsCours{
  width:39%
}
.bloc-contact{
  display: flex; 
  gap: 16px;
  padding:16px;
  border-radius:24px;
  margin-bottom: 32px;
  background-color:var(--white-frame);
}
.photo-contact img{
  width:160px;
  height:150px;
  border-radius:12px;
}
.infos-contact p{
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color:var(--black-frame);
  margin-bottom:6px
}
.infos-contact p:first-child{
  font-weight: 500;
}
#contactsrefCours .referencesCours{
  width:50%
}
#contactsrefCours .bloc-reference{
  margin-bottom:32px
}
#contactsrefCours .bloc-reference .prenomnomAuteur{
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: 6px;
}
#contactsrefCours .bloc-reference .titreOuvrage{
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom:0
}
.learndash-wrapper.learndash-widget .ld-progress .ld-progress-bar{
  background-color: var(--white-frame);
}
.learndash-wrapper .ld-progress .ld-progress-heading .ld-progress-stats margin:0 auto{
  color:var(--white-frame) !important
}
.learndash-wrapper.learndash-widget .ld-progress .ld-progress-heading .ld-progress-steps{
  display: none;
}
.learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage{
  background: var(--accent-frame) !important;
}
.bandeau-otherCourses{
  position:relative;
  padding:0 60px
}
.carte-otherCourses{
  padding:32px
}
.carte-otherCourses h3{
  font-weight: 500;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: 0;
  margin-top:0;
  margin-bottom:48px
}
.carte-otherCourses a{
  color:var(--white-frame);
}
.image-otherCourses{
  margin:48px 0;
  border-radius: 8px;
  width:100%;
  height:175px;
  object-fit: cover;
}
.introduction-otherCourses{
  margin-top:48px;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0;
}
/**********************************************************
*** MENTIONS LEGALES
**********************************************************/
#mentions-legales-intro h1{
  color:var(--white-frame)
}
#mentions-legales-content{
  padding:48px 0
}
/**********************************************************
*** NOUS CONTACTER
**********************************************************/
#nous-contacter-intro h1{
  color:var(--white-frame)
}
#nous-contacter-content{
  padding:48px 0
}
.nf-form-content label{
  max-width: 100%;
}
input.ninja-forms-field[type=submit]{
  background-color: var(--black-frame);
  color:var(--white-frame)
}
input.ninja-forms-field[type=submit]:hover{
  background-color: var(--accent-frame);
  color:var(--black-frame)
}
/**********************************************************
*** FAQ
**********************************************************/
#faq-intro h1{
  color:var(--white-frame)
}
#faq-content{
  padding:48px 0
}
.faq-container {
  margin: 0 auto;
}
.faq-item {
  width:100%;
  margin-bottom: 25px;
  border: 1px solid var(--black-frame);
  border-radius: 5px;
  overflow: hidden;
}
.faq-item:last-child{
  margin-bottom: 0
}
.faq-question {
  width: 100%;
  padding: 15px 35px 15px 15px;
  margin: 0;
  text-align: left;
  background-color: var(--black-frame);
  color:var(--white-frame);
  border: 1px solid var(--black-frame);
  cursor: pointer;
  font-size: 16px;
  position: relative;
}
.faq-question p{
  margin-bottom: 0;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  transition: transform 0.2s ease;
}
.faq-question.active::after {
  content: '–';
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--accent-frame);
    color:var(--black-frame)
}
.faq-answer.open {
  padding: 15px;
  max-height: auto;
}
/**********************************************************
*** SE CONNECTER
**********************************************************/
.login-button{
  margin:0 auto !important
}
/**********************************************************
*** RESPONSIVE
**********************************************************/
/* Cacher le menu en mobile */
@media (max-width: 768px) {
  .merged-menus {
    display: none;
    flex-direction: column;
  }

  .merged-menus.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
    background: none;
    font-size: 2rem;
    border: none;
    cursor: pointer;
  }
}

/* En desktop : afficher les deux menus horizontalement */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .merged-menus {
    display: flex;
    gap: 2rem;
  }
}
