:root {
  --text_color: #555;
  --title_color: #4ad295;
  --principal_color: #0d2a47; /*hsl(210, 68%, 20%)*/
  --white_color: #ffe;
  --background_color: #f3f2ef;

  --font-sans: "San Francisco", "Calibre", "Inter", "SF Pro Text", -apple-system,
    system-ui, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

  /* fonts size */
  --fs-h1: 3.5em;
  --fs-h2: 2.5em;
  --fs-h3: 1.5em;
  --fs-h4: 1.2em;
  --fs-h5: 0.9em;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  scroll-behavior: smooth;
  outline: none;
  line-height: 1.5em;
}

@media (prefers-reduced-motion: no-preference) {
  /* or  prefers-reduced-motion: reduce */
  * {
    scroll-behavior: smooth;
  }
}
::placeholder {
  color: gray;
  opacity: 0.5; /* Firefox */
}
body {
  font-size: 14px;
  color: var(--text_color);
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}
a {
  text-decoration: none;
}
.flex {
  display: flex;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-column {
  display: flex;
  flex-direction: column;
}

.top-bar {
  gap: 2em;
  color: white;
  background-color: var(--principal_color);
  height: 3em;
  font-size: 1.1em;
  align-items: center;
  justify-content: flex-end;
  padding: 0 5em;
}
.top-bar span {
  display: flex;
  align-items: center;
}
.top-bar span a {
  display: flex;
  align-items: center;
}
.top-bar img {
  width: 1.5em;
  margin-right: 0.8em;
}
.top-bar a:hover img {
  width: 2em;
  margin-right: 0.8em;
}
.top-bar a {
  color: white;
  text-decoration: none;
}
.top-bar span img a:hover {
  color: var(--title_color);
}
.navbar {
  padding: 0 5em;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  /* height: 7em; */
  box-shadow: 3px 3px 20px gray;
}
.brand {
  width: 10%;
  align-items: center;
  min-height: 100%;
}
.brand img {
  width: 100%;
  padding: 0.5em 0.8em 0.5em 0;
}
.brand span {
  color: var(--principal_color);
  font-size: 1.8em;
  font-weight: 780;
  font-family: var(--font-sans);
}
.brand span p {
  color: var(--title_color);
  font-size: 0.65em !important;
  font-weight: 400 !important;
  font-family: var(--font-sans);
  letter-spacing: 2px;
}
nav ul {
  align-items: center;
  gap: 35px;
}
nav ul li:first-child img,
nav ul li:last-child img {
  width: 2em;
  color: #555 !important;
}
nav ul li a {
  position: relative;
  text-transform: uppercase;
  font-weight: 600;
  padding: 1em 0;
  color: var(--principal_color);
}

nav ul li ul {
  position: absolute;
  background-color: hsl(60, 60%, 99%);
  margin-left: -0.5em;
  margin-top: 1em;
  box-shadow: 2px 2px 5px var(--principal_color),
    -2px -2px 5px var(--principal_color);
  z-index: 9999;
}
nav ul li ul li {
  width: 20em;
  padding: 1.5em 1em;
  display: none;
  border-bottom: 1px solid var(--title_color);
  flex-wrap: nowrap;
}
nav ul li:hover ul li {
  display: block;
}
/* .navbar > li:hover */
nav ul li ul li a:hover,
nav ul li a:hover {
  color: var(--title_color);
}

/**************SLIDER***************/
#slider {
  width: 100%;
  height: 70vh;
  position: relative;
}
#slider img {
  width: 100%;
  height: 100%;
}
.slider__text {
  position: absolute;
  top: 120px;
  left: 80px;
}
.slider__text h1 {
  font-weight: 900;
  text-transform: uppercase;
  color: var(--title_color);
  font-size: 42px;
  margin-bottom: 1em;
}
.slider__text input {
  text-transform: capitalize;
  background-color: transparent;
  color: #fff;
  font-size: 20px;
  padding: 0.5em 1.5em;
  border: 2px solid #fff;
  border-radius: 10px;
}
.slider__text input:hover {
  color: #fff;
  font-weight: bold;
  background-color: var(--title_color);
  border: 2px solid var(--title_color);
}
#messagerie {
  width: 80%;
  margin: 1em auto 0.2em auto;
}

#messagerie ul {
  flex-direction: row;
  gap: 0.1em;
  justify-content: space-between;
}
#messagerie ul a {
  width: 18%;
  background-color: var(--principal_color);
  color: var(--white_color);
  font-weight: 900;
  font-size: 1.1em;
  text-indent: 0.5em;
  padding: 1em 0em;
  text-decoration: none;
  text-transform: uppercase;
}
#messagerie ul a:hover {
  background-color: var(--title_color);
  font-weight: 900;
  /* border-radius: 5em; */
  box-shadow: 2px 2px 5px #999, -2px -2px 5px #999;
}
#messagerie ul li::after {
  content: " \002B";
  font-size: 1.3em;
}
main {
  width: 80%;
  margin: 0 auto;
}
section {
  margin-top: 5em;
  padding-bottom: 2em;
}
.banner {
  margin-top: 0.5em;
  padding-bottom: 1em;
  width: 100%;
}
section:last-child {
  border-bottom: 1px solid var(--title_color);
}

#a_propos img {
  width: 30%;
}
.a_propos_text {
  margin-left: 3em;
}
.title {
  font-size: 2em;
  color: var(--title_color);
  text-transform: uppercase;
  padding-bottom: 1em;
}
.a_propos_text blockquote {
  font-style: italic;
  font-size: 16px;
}
.quote_author {
  font-weight: bold;
  text-align: right;
  margin-bottom: 2em;
}
.a_propos_pragraph {
  text-indent: 1em;
  text-justify: distribute-all-lines;
}
.library {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
}

.library div {
  width: 100%;
  height: 350px;
  position: relative;
}
.overlay {
  opacity: 0.1;
  background-color: var(--title_color);
  position: absolute;
  z-index: 1;
  /* filter: blur(10px); */
}
.library div:hover .overlay {
  opacity: 0.9;
}
.library div img {
  width: 100%;
  height: 100%;
  top: 0px;
  overflow: hidden;
  position: absolute;
}

.library div h2 {
  display: none;
  text-align: center;
  width: 5em;
}
.library div:hover h2 {
  display: block;
  position: absolute;
  color: var(--background_color);
  top: 0px;
  padding: 3.2em;
  z-index: 3;
  width: 100%;
  margin: auto;
}

.cards {
  justify-content: space-between;
}
.card {
  width: 20%;
  background-color: var(--principal_color);
}
.card img {
  width: 100%;
  height: 120px;
}
.card h4 {
  height: 5em;
}
.card h4,
.card p {
  text-align: center;
  color: var(--white_color);
  padding: 0.3em 0.2em;
}
.msg__button {
  color: var(--title_color);
  background-color: transparent;
  border: 1px solid var(--title_color);
  padding: 0.75em 2.5em;
  /* width: 90%; */
  margin: 1em 5%;
}
.msg__button:hover {
  color: var(--white_color);
  background-color: var(--title_color);
}
/*************Formulaires***************/
#formular {
  margin-top: -1.5em;
  margin-left: -2em;
}
.formular {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.5em;
  padding: 5.5em 7em;
}

.input-form,
.formular textarea {
  background-color: white;
  /* opacity: 0.5; */
  color: var(--text_color);
  border: 0px;
  padding: 0.2em 0.5em;
  width: 100%;
}
.input-form {
  height: 2.5em;
}
.formular textarea {
  height: 7.5em;
}
.formular button {
  align-self: end;
}

.input-form:focus,
.formular textarea:focus {
  border-left: 5px solid var(--title_color);
  /* border-right: 3px solid var(--title_color); */

  /* border: 1px solid var(--lightGreen); */
}
.formular button {
  background-color: transparent;
  border: 1px solid var(--title_color);
  color: var(--title_color);
  font-size: 1.2em;
  padding: 0.5em 1em;
  min-width: 6em;
  max-width: 15em;
}
.formular button:hover,
.formular button:focus {
  background-color: var(--title_color);
  color: var(--principal_color);
  font-weight: bold;
  padding: 0.5em 1em;
}
/*****************************/

.banner1 {
  width: 100%;
  position: relative;
}
.slide_title {
  font-family: "Poppins", Arial, sans-serif;
  position: absolute;
  text-transform: uppercase;
  font-size: 3.5em;
  top: 190px;
  color: #0d2a47;
  width: 100%;
  text-align: center;
  text-shadow: 3px 3px 3px #fff, -3px -3px 3px #fff;
}
.path {
  position: absolute;
  font-size: 1.1em;
  font-weight: 400;
  width: 100%;
  top: 265px;
  left: 0%;
  text-align: center;
}
.path a {
  color: white;
}
.path:hover {
  font-size: 1.2em;
}
.path a:hover,
.path a:focus {
  font-weight: bold;
}

.reglement {
  width: 80%;
  margin: 1.5em auto;
  flex-direction: row-reverse;
  line-height: 1.5em;
}
.reglement nav {
  width: 20%;
}
.reglement nav ul {
  gap: 0em;
  position: sticky;
  top: 10px;
}
.reglement nav ul li {
  background-color: var(--principal_color);
  padding: 0.5em;
  width: 100%;
}

.reglement nav ul li a {
  text-align: center;
  color: var(--white_color);
}
.reglement nav ul li:hover {
  background-color: var(--title_color);
  padding: 0.5em;
}
.content-reglement {
  padding-inline: 0em 2em;
  width: 80%;
}
.content-reglement h2 {
  font-size: 1.8em;
  color: var(--title_color);
  text-transform: uppercase;
  margin-top: 1.1em;
  margin-bottom: 0.5em;
}
.content-reglement p {
  line-height: 1.75em;
  padding-left: 1em;
  /* text-indent: 1em; */
  text-align: justify;
}
.content-reglement ul {
  line-height: 1.75em;
  text-align: justify;
}
.content-reglement ul li {
  margin-left: 3.5em;

  padding-left: 0.5em;
  list-style-type: square;
}
.contact__info {
  align-items: center;
  margin-bottom: 1em;
  padding: 0.5em 0;
}
.contact__info:first-child {
  padding: 0.5em 0 0 0;
}
.contact__info:nth-child(2) {
  margin-bottom: 0em;
  top: -1em;
  padding: 0 0 0.5em 0;
}
.contact__info a {
  color: var(--text_color);
  font-weight: 600;
  margin-left: 0.5em;
}
.contact__info a:hover {
  color: var(--principal_color);
}
.contact__info img {
  padding-left: 1em;
  width: 38px;
}
.message_alert_success {
  background-color: var(--title_color);
  color: white;
  padding: 0.5em 1em;
  margin: 1em 0.5em -3em 0.5em;
  font-weight: 600;
}
.message_alert_error {
  background-color: red;
  color: white;
  padding: 0.5em 1em;
  margin: 1em 0.5em -3em 0.5em;
  font-weight: 600;
}

/**************FOOTER***************/
.footer_nav {
  margin-top: 0.5em;
  gap: 2em;
  padding: 5em 7em;
  justify-content: space-between;
  background-color: var(--background_color);
  border-top: 1px solid var(--title_color);
}
.footer_nav div:nth-child(1) {
  max-width: 25%;
  text-align: center;
  align-items: center;
}
.footer_nav div:nth-child(1) img {
  max-width: 50%;
  margin: 1em auto;
}

.footer_nav div:nth-child(1) span {
  font-family: "Poppins", Arial, sans-serif;

  color: var(--principal_color);
  font-size: 1.2em;
  font-weight: 500;
}
.footer_nav :not(div:nth-child(1)) ul li:nth-child(1) a {
  font-family: "Poppins", Arial, sans-serif;
  color: var(--title_color);
  font-size: 1.1em;
  font-weight: 900;
  text-decoration: underline;
  letter-spacing: 0px !important;
}
.footer_nav :not(div:nth-child(1)) ul li:nth-child(1) {
  margin-bottom: 1em;
}
.footer_nav :not(div:nth-child(1)) ul :not(li:nth-child(1)) a {
  color: var(--principal_color);
  padding-left: 1em;
  border-left: 1px solid var(--title_color);
}
.footer_nav :not(div:nth-child(1)) ul :not(li:nth-child(1)) a:hover {
  font-weight: 600;
}

footer {
  justify-content: space-between;
  color: white;
  background-color: var(--principal_color);
  font-size: 1.1em;
  align-items: center;
  padding: 1.5em 5em;
  bottom: 0;
  position: relative;
}
footer span {
  font-weight: 600;
}
footer a {
  color: var(--background_color);
}
