@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: auto;
  src: url('../fonts/Fraunces-9pt-SuperSoft-Light.otf') format("opentype");
  src: url('../fonts/Fraunces-9pt-SuperSoft-Light.ttf') format("truetype");
  src: url('../fonts/Fraunces-9pt-SuperSoft-Light.woff') format("woff");
  src: url('../fonts/Fraunces-9pt-SuperSoft-Light.woff2') format("woff");
}

@font-face {
  font-family: 'Abordage';
  src: url('../fonts/Abordage-Regular.woff2') format('woff2'),
       url('../fonts/Abordage-Regular.woff') format('woff'),
       url('../fonts/Abordage-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Canarina';
  src: url('../fonts/Canarina-Regular.woff2') format('woff2'),
       url('../fonts/Canarina-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Murmure';
  src: url('../fonts/LeMurmure-Regular.woff2') format('woff2'),
       url('../fonts/LeMurmure-Regular.woff') format('woff');
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #EEEEEE;
  color: #000;
  font-family: 'Fraunces', sans-serif;
  line-height: 1.5;
  width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #D0D0D0;
  text-decoration-skip-ink: auto;
  text-underline-offset: 2px;
}

header {
  background: #FFFFFF;
  padding: 3% 2% 0 2%;
  text-align: center;
}

header img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* MENU */

#menu {
  width: 100%;
  margin: 0;
  text-align: center;
}

#menu a {
  text-decoration: none !important;
  color:inherit;
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Abordage';
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: none;
  flex-direction: column;
  width: 100%;
}

#menu ul.show {
  display: flex;
  font-size: 0.9rem;
}

#menu > ul > li {
  width: 95%;
  margin: 5px auto;
}

#menu a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.cursus, .financements, .accessibilite, .stats, .contact {
  background-color: #009FE3;
}

#menu-toggle {
  display: block;
  margin: 0 auto;
  margin-top: 15px;
  margin-bottom: 15px;
  font-family: Fraunces;
  padding: 0.7em 1.5em;
  font-size: 0.9em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #CECECE;
  color: black;
  transition: background-color 0.2s ease;
}

li.active > .sub-menu {
  display: block;
}

#menu li:hover > .sub-menu {
  display: none;
}

.titre {
  flex: 1;
  color: #009FE3;
  text-align: right;
  margin-top: 20px;
  margin-bottom: 10px;
}

.titre h1 {
  font-size: 3rem !important;
  line-height: 1em;
}

main {
  background: #EEE;
  margin-top: 1em;
}

h1 {
  font-family: 'Abordage';
  text-transform: uppercase;
  font-size:4rem;
  letter-spacing: 1.5px;
  text-align: center;
}

h2 {
  font-size: 2rem;
  font-family: 'Murmure';
  text-align: center;
}

#h2-margin-mobile {
  margin-top: 0;
}

h3, h4, h5 {
  color: #000000;
  font-family: 'Fraunces', sans-serif;
}

/*SECTIONS PAGES*/

section {
  box-sizing: border-box;
  padding: 0 5% 0 5%;
}

#blocs {
  display: inline-block;
  width: 100%;
}

.illustration {
  box-sizing: border-box;
  margin-top: 0 !important;
}

.text {
  box-sizing: border-box;
  margin-top: 0 !important;
}

.text p {
  font-size: 0.9rem;
}

.illustration img {
  width: 100%;
  height: auto;
  display: block;
}

#blocs > div.text > p {
  font-weight: 300;
}

#blocs > div.text > h4 {
  font-size: 0.9rem;
  font-weight: 500;
}

#blocs > div.text > li {
  font-size: 0.9rem;
  font-weight:300;
  margin-left: 20px;
}

/*CURSUS */

.accordion {
  display:flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  color: black;
  cursor: pointer;
  margin: 5px 0;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s ease-in-out;
  padding: 0;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-box-align: center;
  -ms-flex-align: center;
}

.accordion-bloc-title {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.accordion-icon {
  width: 70px;
  background-color:#009FE3;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: inline-flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.accordion-icon img {
  max-width: 40px;
}

.accordion-title {
  font-family: Fraunces;
  padding: 18px;
  margin-left: calc(70px + 5px);
}

.accordion .active:after {
  background-color:white;
  color: black;
}

.accordion:after {
  content: '\02795'; /* Unicode character for "plus" sign (+) */
  font-size: 15px;
  color: #000000;
  float: right;
  margin-right: 15px;
}

.accordion .active:after {
  content: "\2796"; /* Unicode character for "minus" sign (-) */
}

#cursus-accordion {
  padding: 2% 5%;
  box-sizing: border-box;
}

.panel {
  display: none;
  box-sizing: border-box;
  padding: 0 10px;
  overflow: hidden;
  max-height: 0;
  width: 100%;
  background-color: white;
  transition: max-height 0.4s ease-in-out;
  font-size: 1rem;
}

.panel.open {
  display: block !important;
  word-wrap: break-word !important;
  opacity: 1;
}

.col-gauche {
  flex: 65%;
  padding: 10px;
  box-sizing: border-box;
}

.col-droite {
  flex: 35%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #29235C;
  color: white;
}

.text{
  flex: 0 0 50%;
  box-sizing: border-box;
  padding: 0px 0px 0px 15px;
  margin-top: 0 !important;
  margin-bottom: 15%;
}

/*tableaux modules*/
table.modules,
table.modules tbody,
table.modules tr,
table.modules th,
table.modules td {
  display: block;
}

table.modules {
  border-collapse: collapse;
  margin-top: 1em;
}

table.modules thead {
  display: none;
}

table.modules tr {
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 1em;
  padding: 0.5em;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

table.modules tr:nth-child(1) { animation-delay: 0.1s; }
table.modules tr:nth-child(2) { animation-delay: 0.2s; }
table.modules tr:nth-child(3) { animation-delay: 0.3s; }
table.modules tr:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

table.modules th {
  font-weight: bold;
  margin-bottom: 0.4em;
}

table.modules td {
  font-size: 0.95em;
  line-height: 1.5em;
  color: #333;
}

.bloc-accessibilite {
  padding: 1% 5%;
}

.contact-mail {
  width: 90%;
  background-color:#D0D0D0;
  padding: 1%;
}

.bloc-financements {
  padding: 1% 10%;
  display: inline-block;
}

body > main > div > div.logo {
  display: flex;
}

.bloc-financements .logo img {
  width: 30%;
  margin: auto;
  margin-bottom: 5px;
}

/* FORMULAIRE CANDIDATURE */

#contact form {
  display: block;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  width: 100%;
  margin: auto;
  box-sizing: border-box;
  align-items: center;
}

#contact form label {
  display: block;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

#contact form input[type="text"],
#contact form input[type="email"],
#contact form input[type="date"],
#contact form select,
#contact form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

#contact form button[type="submit"] {
  background: #009FE3;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  display: block;
  margin: auto;
}

#contact form button[type="reset"] {
  color: black;
  border: 1px solid grey;
  padding: 5px;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  display: block;
  margin: 10px auto;
}

#contact form .errors, #contact form .success {
  grid-column: 1 / 3;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

#contact form .errors {
  background: #fff2f2;
  border: 1px solid #ffd2d2;
  color: #8a1f1f;
}

#contact form .success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #065f46;
}

#contact form input[type="checkbox"] {
  margin-right: 6px;
}

#contact > div > div > form > div.full.buttons {
  margin-top: 30px;
  margin-bottom:10px;
}

#contact > .container > .card > .errors {
  color: #8a1f1f;
}

/*FOOTER*/
footer {
  background-color: white; 
  width: 100%;
  padding: 1px 1px;
  box-sizing: border-box;
}

footer p {
  font-size: 0.8rem;
}
