@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@1,100&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  font-family: "YouTube Sans", sans-serif;
  font-weight: 600;
  padding: 0;
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style-type: none;
}

h2 {
  text-transform: uppercase;
  text-align: center;
  padding-top: 30px;
  font-size: 2em;
  color: #ffff;
}

a {
  text-decoration: none;
  color: rgb(255, 255, 255);
}

.logo-i {
  position: absolute;
  top: 20px;
  right: 20px;
}

p {
  color: #ffff;
}


/******************** NAVBAR ********************/

nav {
  overflow: visible;
  background: linear-gradient(to bottom, #02398b, #1445e9);
  position: fixed;
  width: 100%;
  opacity: 0.9;     
}

header li {
  font-size: 1.2em;
}

header li a {
  text-decoration: none;
  display: block;
  text-align: center;
  padding: 18px 16px;
}

#logo {
  font-family: "YouTube Sans", sans-serif;
  float: left;
}

/***************** IMAGE PRINCIPALE **************/

#imagePrincipale {
  padding-top: 60px;
  background: url("imagePrincipale.png") no-repeat 50% 50%;
  background-size: cover;
  height: 799px;
}

h1 {
  font-family: "YouTube Sans", sans-serif;
  font-weight: 600;
  text-align: center;
  color: #fff;
  font-size: 6em;
  margin-top: 100px;
  text-shadow: 1px 3px 2px black;
}

#premierTrait {
  height: 1px;
  width: 25%;
  margin: -3px auto;
  background-color: #fffae1;
  box-shadow: 1px 3px 2px black;
}

h3 {
  text-align: center;
  font-weight: 600;
  color: rgb(255, 255, 255);
  font-size: 3em;
  text-shadow: 1px 3px 2px black;
  padding: 3%;
}

h4 {
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

/* **************************presentation*************************** */

#presentation {
  background-color: #1445e9;
  padding: 10px 0px 100px 0;
  padding: 3%;
}

#texteIntro {
  padding: 0px 20%;
  font-family: "YouTube Sans", sans-serif;
  font-weight: 600;
}

.imagesPresentation img {
  border-radius: 10px;
  box-shadow: 3px 4px 5px 4px rgba(0, 0, 0, 0.3);
}

.imagesPresentation {
  text-align: center;
}

.imagesPresentation img:hover {
  opacity: 0.5;
  transform: dcale(1.05);
  transition: 0.6s ease-in-out;
}

/* **************************footer************************** */

footer {
  background-color: #524a3a;
  color: #fffae1;
  padding: 20px 0 10px 0;
  text-align: center;
}

form {
  margin: 0 auto;
  max-width: 900px;
}

.Footer input {
  border: none;
  width: 55%;
  padding: 15px 10px;
  margin: 1px 0;
  font-size: 1.2em;
  font-family: "Advent Pro", sans-serif;
  border-radius: 8px;
}

.Footer textarea {
  height: 120px;
  border: none;
  width: 55%;
  padding: 15px 10px;
  margin: 1px 0;
  font-size: 1.2em;
  font-family: "Advent Pro", sans-serif;
  border-radius: 8px;
}

.Footer button {
  border: none;
  width: 55%;
  padding: 15px 10px;
  margin: 1px 0;
  font-family: "Advent Pro", sans-serif;
  border-radius: 8px;
  font-size: 1.5em;
  background-color: #fffae1;
}

.Footer button:hover {
  background-color: #e55039;
  color: #fffae1;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

#deuxiemeTrait {
  height: 1px;
  width: 75%;
  background-color: #fffae1;
  margin: 60px auto;
}

#Icons {
  display: flex;
  padding: 0 10%;
}

#icons {
  width: 50%;
  text-align: left;
  padding: 0 11.5%;
}

#icons a {
  display: inline-block;
  margin: 15px;
  font-size: 1.3em;
  color: #fffae1;
}

#icons a:hover {
  transform: scale(1.5);
  transition: 0.1s;
}

/* Styles pour le mode sombre */

.dark-mode {
  background-color: #606060;
  color: #ffffff;
}

.dark-mode nav {
  background: linear-gradient(to bottom,#06069e, #02165a );
  opacity: 0.9;
}

.dark-mode #presentation {
  background-color: #02165a;
}

.dark-mode h1 {
  color: #ffffff;
}

.dark-mode h2 {
  color: #ffffff;
}
S
.dark-mode h3 {
  color: #ffffff;
}

.dark-mode footer {
  background-color: #363127;
  color: #606060;
  padding: 20px 0 10px 0;
  text-align: center;
}

.dark-mode button {
  text-align: center;
}

.searchInput[type="text"] {
  width: 1px;
  height: 75px;
  border-radius: 25px;
  border: none;
}

.search {
  float: right;
  margin: 8px;
}

.darkModeButton {
  background-image: img ("Lune.png");
  width: 30px;
  height: 30px;
  background-size: cover;
  float: left;
  margin-right: 10px;
  background-size: cover;
}

.dark-mode .dark-mode-button {
  content: url("soleil.png");
  background-size: cover;
  float: left;
  margin-right: 10px;
}

/* **************************parti Anto******************************* */
input {
  border-radius: 15px;
  height: 2rem;
  border: 2px solid cyan;
  margin-top: 10px;
  outline: none;
  padding-left: 15px;
}
.videos {
  display: inline-block;
  margin: 0 20px;
  text-align: center;
}
.videos img {
  height: 90px;
  width: 90px;
  margin: 1rem;
}

.videos h4 {
  color: white;
  margin-top: 10px;
}

.container {
  text-align: center;
}


/* ***************parti Robin********************** */
*::after,
*::before {
  box-sizing: border-box;
}

body {
  margin: 0;
}

:root {
  --bar-width: 50px;
  --bar-height: 7px;
  --hamburger-gap: 6px;
  --foreground: #333;
  --background: white;
  --hamburger-margin: 10px;
  --animation-timing: 500ms ease-in-out;
  --hamburger-height: calc(var(--bar-height) * 3 + var(--hamburger-gap) * 2);
}

.hamburger-menu {
  --x-width: calc(var(--hamburger-height) * 1.41421356237);

  display: flex;
  flex-direction: column;
  gap: var(--hamburger-gap);
  width: max-content;
  position: absolute;
  top: var(--hamburger-margin);
  left: var(--hamburger-margin);
  z-index: 2;
  cursor: pointer;
}

.hamburger-menu:has(input:checked) {
  --foreground: white;
  --background: #333;
}

.hamburger-menu:has(input:focus-visible)::before,
.hamburger-menu:has(input:focus-visible)::after,
.hamburger-menu input:focus-visible {
  border: 1px solid var(--background);
  box-shadow: 0 0 0 1px var(--foreground);
}

.hamburger-menu::before,
.hamburger-menu::after,
.hamburger-menu input {
  content: "";
  width: var(--bar-width);
  height: var(--bar-height);
  background-color: var(--foreground);
  border-radius: 9px;
  transform-origin: left center;
  transition: opacity var(--animation-timing), width var(--animation-timing),
    rotate var(--animation-timing), translate var(--animation-timing),
    background-color var(--animation-timing);
}

.hamburger-menu input {
  appearance: none;
  padding: 0;
  margin: 0;
  outline: none;
  pointer-events: none;
}

.hamburger-menu:has(input:checked)::before {
  rotate: 45deg;
  width: var(--x-width);
  translate: 0 calc(var(--bar-height) / -2);
}

.hamburger-menu:has(input:checked)::after {
  rotate: -45deg;
  width: var(--x-width);
  translate: 0 calc(var(--bar-height) / 2);
}

.hamburger-menu input:checked {
  opacity: 0;
  width: 0;
}

.hamburger-menu:has(input:checked) + .sidebar {
  translate: 0;
}

.sidebar {
  transition: translate var(--animation-timing);
  translate: -100%;
  padding: 0.5rem 1rem;
  padding-top: calc(var(--hamburger-height) + var(--hamburger-margin) + 1rem);
  background-color: var(--foreground);
  color: var(--background);
  max-width: 15rem;
  min-height: 100vh;
  color: #1445e9;
  background-color: #1445e9;
  color: #fff;
  padding: 50px; 
  text-align: left; 
}

.sidebar div {
  margin-bottom: 20px; 
  font-size: 24px;
  font-weight: bold; 
  padding: 20px; 
  border-radius: 5px; 
  background-color: #413e3e; 
}

.sidebar nav {
  width: 100%; 
  height: 100%; 
  text-align: left; 
}

#menu-toggle {
  position: absolute;
  top: 0;
  left: 0;
  padding: 15px;
  cursor: pointer;
  z-index: 2;
}

#sidebar {
  position: fixed;
  top: 0;
  left: -200px;
  width: 200px;
  height: 100%;
  color : #1445e9;
  color: #fff;
  transition: left 0.3s;
  background-color: #1445e9;

}

#sidebar ul {
  list-style: none;
  padding: 0;
}

#sidebar ul li {
  padding: 15px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 4px 0;
  transition: 0.4s;
}

.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40%;
  margin-top: 1%;
  margin-left:30%;
  margin-bottom: 1%;
}

.search {
  width: 50%;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

#logo-i {
  float: right;
}


#darkModeButton {
  float: right;
}

.dark-mode #sidebar {
background-color: #02165a;
}