@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@400;700&display=swap');

:root{
--color: #333;
--secondcolor: #047d9b;
--thirdcolor: #297e14;
--fourthcolor: #538135;
--backgroundColor: whitesmoke;
--backgroundColor2: rgb(199, 199, 199);
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  font-family: 'Red Hat Text', sans-serif;
  margin: 0;
  color: var(--color);
}

aside {
  position: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 0px;
}

aside nav {
  display: flex;
  text-align: left;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  width: 300px;
  transform: translateX(-250px);
  transition: 0.5s;
}

aside nav:hover {
  transform: translateX(0px);
  transition: 0.5s;
}

aside .access {
  width: 248px;
  background-color: white;
  border: 1px solid #888;
}

aside .access p {
  font-weight: 700;
  text-align: center;
}

aside .access ul {
  justify-content: flex-start;
}

aside img {
  width: 50px;
  height: 50px;
  background-color: var(--thirdcolor);
}

.acchand input {
  margin: 20px;
  transition: 1s;
}

header {
  display: flex;
  flex-direction: column;
}

.title {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 50px;
}

.title h1 {
  line-height: 20px;
}

.title h1 span {
  font-size: 0.5em;
}

header nav {
  display: flex;
  justify-content: center;
}

.container {
  text-align: center;
  color: var(--color);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url(src/prescription-medicaments-pour-medicaments-traitement.webp);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-bottom: 50px;
  padding-top: 50px;
}

#institut {
  color: white;
}

#institut p {
  text-align: justify;
}

.catchline {
  font-size: 1.5em;
  color: var(--thirdcolor);
}

.firstletter {
  font-size: 1.3em;
}

#institut p b {
  display: block;
  text-align: center;
}

#institut p .bold {
  display: block;
  text-align: justify;
}

.droitauteur {
  position: relative;
  top: 30px;
  color: #333;
}

.logo {
    height: 100px;
}

h1 {
  font-weight: 700;
  font-size: 2rem;
  color: var(--thirdcolor);
}

nav ul {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li {
  margin: 10px;
}

p {
  max-width: 52ch;
  line-height: 1.5;
  padding: 1em;
  margin: 1em;
}

a {
  display: inline-block;
  padding: 1em 3.5em;
  background-color: var(--thirdcolor);
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 0.3em;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: .875rem;
}

.item h2, .item h3, .item h4 {
  text-align: left;
}

.item h3 {
  text-align: center;
}

.blank,
.other {
  width: 100%;
  min-height: 60vh;
  background-color: var(--backgroundColor);
}

.blank {
  text-align: center;
  color: var(--color);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.blank .item {
  max-width: unset;
  margin-bottom: 50px;
  text-align: justify;
  padding: 30px;
}

.blank .item ul {
  max-width: 52ch;
}

.blank .item ol {
  max-width: 52ch;
}

.blank .item ul li {
  list-style: unset;
}

.blank .item h2 {
  max-width: 52ch;
}

.other {
  text-align: center;
  color: var(--color);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: var(--backgroundColor2);
}

.second {
  background-image:url(src/kindle-1867751.webp);
  background-attachment: fixed;
  flex-wrap: wrap;
  align-content: center;
}

.second h1 {
  margin-bottom: 0;
  margin-top: 0;
  position: relative;
  top: 20px;
  font-size: 3em;
}

.second h2 {
  width: 100%;
}

.second p {
  margin-top: 0;
}

.third {
  background-image:url(src/people-2557396.webp);
  background-attachment: fixed;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
}

.third h2 {
  width: 100%;
  margin-top: 50px;
  color: whitesmoke;
}

.third .item {
  margin-bottom: 50px;
}

.fourth {
  background-image:url(src/desk-593327.webp);
  background-attachment: fixed;
  height: 1200px;
  color: whitesmoke;
  gap: 1.6em;
  align-content: center;
}

.fourth .item {
  color: var(--color);
  width: 50vw;
  padding: 20px;
}

.fourth .item p {
  margin-top: 0;
  margin-bottom: 0;
}

.fourth .item .caps {
  text-transform: uppercase;
  font-size: 0.8em;
  padding-bottom: 0;
}

h3 {
  font-weight: 700;
  font-size: 1.6rem;
  margin-top: 1em;
}

.card > a {
  margin-bottom: 2em;
}

.card ul {
    padding: 20px;
    padding-left: 30px;
}

.card ul li{
    text-align: left;
    list-style: none;
}

.item {
  display: flex;
  max-width: 320px;
  background-color: white;;
  flex-direction: column;
  align-items: center;
  border-radius: .5em;
  -webkit-box-shadow: 0px 29px 38px -15px rgba(0,0,0,0.43);
  -moz-box-shadow: 0px 29px 38px -15px rgba(0,0,0,0.43);
  box-shadow: 0px 29px 38px -15px rgba(0,0,0,0.43);
  padding: 10px;
}

summary {
  font-size: 1.5em;
  font-weight: 700;
  text-align: left;
}

.subsum {
  font-size: 1.1em;
  max-width: 45ch;
  text-align: left;
  color: var(--thirdcolor);
}

.img {
  width: 90%;
  height: 200px;
  background-color: lightgrey;
  background-size: cover;
  background-position: center;
  margin-top: 20px;
  border-radius: .3em;;
}

.img-first {
  background-image: url(src/person-5441453_1920.webp);
}

.img-second {
  background-image: url(src/frozen-bubble-1943224_1920.webp);
}

.second, .third {
  flex-direction: row;
  gap: 1.6em;
}

.map {
  border: 20px solid white;
  border-radius: 5px;
  width: 80%;
  box-shadow: 0px 29px 38px -15px rgba(0,0,0,0.43);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.entreprise ul li {
  list-style: none;
}

footer img {
  width: 100px;
}

footer a, .fourth a, header a, .blank .item a, 
.droitauteur a {
  text-transform: unset;
  color: unset;
  background-color: unset;
  display: unset;
  padding: unset;
  border-radius: unset;
  letter-spacing: unset;
}

footer a:hover, .fourth a:hover, header a:hover, 
.blank .item a:hover, .droitauteur a:hover {
  color: var(--thirdcolor);
}

.blank .item label {
  display: block;
  text-align: center;
}

.right {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

progress[value] {
  /* Reset the default appearance */
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  
  /* Get rid of default border in Firefox. */
  border: none;
  
  /* Dimensions */
  width: 100%;
  height: 20px;
}

progress[value]::-webkit-progress-bar {
  background-color: #eee;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

progress[value]::-webkit-progress-value {
  background-color: var(--thirdcolor);
}

progress[value]::-moz-progress-bar { 
  background-color: var(--thirdcolor);
}

body:has(#plus:checked) {
  font-size: 1.2em;
}

body:has(#moins:checked) {
  font-size: 0.8em;
}

body:has(#gris:checked) {
  filter: grayscale(1);
  transition: 1s;
}

body:has(#contraste:checked) {
  filter: contrast(150%);
  transition: 1s;
}

body:has(#negatif:checked) {
  filter: invert(100%);
  transition: 1s;
}

body:has(#clair:checked) {
  filter: brightness(150%);
  transition: 1s;
}

a {
  text-decoration: underline;
}

header a, .none {
  text-decoration: none;
}
