/* 22/10/25 */

*, *::before, *::after {
    box-sizing: border-box;
}

@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.otf');
  src: url('../fonts/Abordage-Regular.woff') format('woff'),
      url('../fonts/Abordage-Regular.woff2') format('woff'),
      url('../fonts/Abordage-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

@font-face {
  font-family: 'Murmure';
  src: url('../fonts/LeMurmure-Regular.eot');
  src: url('../fonts/LeMurmure-Regular.woff') format('woff'),
    url('../fonts/LeMurmure-Regular.woff2') format('woff'),
    url('../fonts/le-murmure.otf'),
    url('../fonts/le-murmure.ttf');
  font-weight: normal;
  font-style: normal;
}

html {
  margin:0;
  padding:0;
}

body {	
  background-color: #EEE;
  font-family: 'Fraunces', sans-serif;
  font-size: 100%;
  line-height: 1.5em;
  color: #000000;
  margin: 0;
}

section {
  padding: 1% 5%;
}

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

a:hover {
  color:#009FE3;
}

#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#main-header.sticky {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  background-color: #fff;
}

header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background-color: #FFF;
}

.container-header {
  display: flex;
  box-sizing: border-box;
  padding: 2% 5% 0;
}

div .logo {
  flex: 0 0 30%;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-decoration: none !important;
}

.container-header .logo a {
  text-decoration: none !important;
}

header nav#menu {
  border-top: 4px solid black;
  margin-left: 10px;
}

header img {
  width: 100%;  
  display: block;
}

#header-ecole {
  background: #FFF;
  display: flex;
  padding: 0% 5%;
  align-items: center;
  flex-direction: row;
  box-sizing: border-box;
  text-align: center;
}

.index {
  align-items: left;
  justify-content: left;
}

#header-ecole > div.index > ul {
  display: flex;
  font-family: 'Murmure';
  letter-spacing: 1px;
  font-size: 2rem;
  text-transform: uppercase;
  gap: 20px;
  list-style: none;
  padding-left: 0;
  line-height:1em;
}

#header-ecole > div > ul > li {
  display: block;
  width: auto;
  border: 1px dotted black;
  background-color: #CECECE;
  padding: 10px 30px 10px 30px;
  transition: 0.2s;
}

#header-ecole > div > ul > li:hover {
  background-color: #EEE;
}

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

main {
  font-family: 'Fraunces', sans-serif;
  background: #EEE;
}

/* STYLE GLOBAL DU MENU */

#menu-toggle {
  display: none;
}

#menu {
  flex: 0 0 70%;
  display: flex;
  flex-direction: column;
  border-top: 5px solid black;
  padding-top: 0.4rem;
  box-sizing: border-box;
}

#menu ul {
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Abordage";
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#menu li {
  text-align: left;
  position: relative;
}

#menu li a {
  display: block;
  padding: 6px 0 6px 6px;
  text-decoration: none;
  color: inherit;
  justify-content: left;
  align-items: top; 
  width: auto;
  word-wrap: break-word !important;
  line-height: 1em;
}

.sub-menu a {
  display: flex;
  align-items: center !important;
  padding: 0;
}

.sub-menu {
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  color: inherit;
}

#menu-list > li > ul {
  display: none;
}

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

/* STYLE DE BASE DES ELEMENTS DU MENU */
.cursus, .financements, .accessibilite, .stats, .contact {
  clip-path: polygon(0 0, 80% 0, 100% 20%, 100% 100%, 20% 100%, 0 80%);
  background-color: #009FE3;
  width: 18%;
	display: inline-block;
}

/* SURVOL MENU */
.cursus:hover,
.financements:hover,
.accessibilite:hover,
.stats:hover,
.contact:hover {
    color: white !important;
    background-color: #29235C !important;
}

h1 {
  font-family: 'Abordage';
  text-transform: uppercase;
  font-size:4rem;
  letter-spacing: 1.5px;
  line-height: 1em;
  padding: 0 !important;
  margin: 0 !important;
}

h2 {
  font-family: 'Murmure';
  font-size: 3rem;
  text-align: left;
  margin-top: 20px;
}

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

hr {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-top: 1.5px solid black;
  color: black;
  overflow: hidden;
  text-align: center;
}

/*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;
}

.accordion-bloc-title {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

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

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

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

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

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

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

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

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

.panel.open {
  display: flex;
  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;
}

.tarifs {
  display: block;
}

.modules {
  background-color: white;
  border-collapse: collapse;
  padding: 1%;
  border: 1px solid;
}

.modules > tbody > tr > th {
  font-weight: bold;
  padding: 5px 15px 5px 15px;
  border: 1px solid;
} 

.modules > th {
  border: 1px solid;
  padding: 10px;
  text-align: center;
  font-weight: 400;
}

.modules > tr, td {
  border: 1px solid;
  padding: 10px;
  text-align: left;
  font-weight: 400;
}

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

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

.bloc-financements {
  padding: 2% 20% 5% 20%;
  display: inline-block;
}

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

/* RETOUR EN HAUT */
#back-to-top {
  position: fixed;
  bottom: 5px;
  right: 5px;
  clip-path: circle(15px);
  background-color: grey;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, background-color 0.3s;
  z-index: 1000;
}

#back-to-top.show {
  opacity: 0.5;
  visibility: visible;
}

#back-to-top:hover {
  opacity: 1;
}

/* FORMULAIRE CANDIDATURE */

#contact form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 60%;
    margin: auto;
    align-items: center;
    text-align: right;
    margin-bottom: 30px;
}

#contact form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  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;
  font-size: 0.95rem;
  box-sizing: border-box;
}

#contact form textarea {
  grid-column: 1 / 3;
  min-height: 120px;
}

#contact form .full {
  grid-column: 1 / 3;
}

#contact form button[type="submit"] {
  background: #009FE3;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  margin-right: 10px;
  margin-bottom: 10px;
  font-family: Fraunces;
  font-weight: 700;
}

#contact form button[type="submit"]:hover {
  background: #29235C;
}

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

#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 > label.full {
  text-align: left !important;
  margin-top: 15px;
  margin-bottom: 0px;
}

#contact > div > div > form > div.full.note {
  text-align: left !important;
  margin-top: 10px;
}

#contact > div > div > form > div.full.buttons {
  margin-top: 15px;
  margin-bottom:10px;
  text-align: left !important;
}

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

#contact > div > div > form > div.full.buttons > div {
  font-size: 0.9rem;
}

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

footer p {
  font-size: 0.8rem;
}
