html {
  scroll-behavior: smooth;
}

:root {
  --w: #ffffff;
  --w-c: rgba(255, 255, 255, 0.85);
  --w-cm: rgba(255, 255, 255, 0.5);
  --w-cp: rgba(255, 255, 255, 0.15);

  --d: rgba(41, 41, 41, 1);
  --d-c: rgba(41, 41, 41, 0.85);
  --d-cm: rgba(41, 41, 41, 0.5);
  --d-cp: rgba(41, 41, 41, 0.15);

  --bg: rgb(10, 10, 13);

  --r: rgb(216, 49, 91);
  --r-c: rgba(216, 49, 91, 0.85);
  --r-cm: rgba(216, 49, 91, 0.5);
  --r-cp: rgba(216, 49, 91, 0.15);

  --cb: rgb(62, 146, 204);
  --cb-c: rgba(62, 146, 204, 0.85);
  --cb-cm: rgba(62, 146, 204, 0.5);
  --cb-cp: rgba(62, 146, 204, 0.15);

  --bl: rgb(10, 36, 99);
  --bl-c: rgba(10, 36, 99, 0.85);
  --bl-cm: rgba(10, 36, 99, 0.5);
  --bl-cp: rgba(10, 36, 99, 0.15);

  --bbg: rgb(30, 27, 24);

  --y: rgb(247, 223, 30);
  --y-c: rgba(247, 223, 30, 0.85);
  --y-cm: rgba(247, 223, 30, 0.5);
  --y-cp: rgba(247, 223, 30, 0.15);

  --g: rgb(43, 131, 47);
  --g-c: rgba(43, 131, 47, 0.85);
  --g-cm: rgba(43, 131, 47, 0.5);
  --g-cp: rgba(43, 131, 47, 0.15);

  --dl-bg: linear-gradient(
    90deg,
    rgba(10, 36, 99, 0.2) 0%,
    rgba(62, 146, 204, 0.2) 100%
  );
}

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  font-family: "Reem Kufi", sans-serif;
  overflow-x: hidden;
  font-weight: 400;
  color: var(--w);
}

#texture {
  left: 0px;
  z-index: -99;
  width: 100%;
  opacity: 0.1;
  pointer-events: none;
  transform: translateY(0px);
  filter: contrast(120%) brightness(120%);
  top: 0px;
  position: fixed;
  height: calc(200px + 100vh);
}

body {
  background-image: url(img/header-gradient.svg), url(img/footer-gradient.svg);
  background-repeat: no-repeat;
  background-position: center top, center bottom;
  background-size: 1400px;
  background-color: var(--bg);
}

.flex-col {
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.space-b {
  justify-content: space-between;
}

.radius-1 {
  border-radius: 1rem;
}

.radius-2 {
  border-radius: 2rem;
}

.gap-1 {
  gap: 1rem;
}

.gap-2 {
  gap: 2rem;
}

.padding-1 {
  padding: 1rem;
}

.padding-2 {
  padding: 2rem;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}
.border {
  border: 1px solid var(--d-cm);
}
h1 {
  font-size: 1.5rem;
  transition: 0.3s all ease;
  cursor: default;
}

p,
h2 {
  cursor: default;
}

div,
a {
  overflow-y: hidden;
}

/* 
	  ================= SECTION =================
*/
section {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  padding: 1rem 0;
}

.container {
  align-self: center;
  border: 1px solid var(--d-cm);
  background-color: var(--d-cm);
  backdrop-filter: blur(10px);
  width: 85%;
}
/* 
	  ================= TITLES =================
*/
.title {
  align-self: baseline;
}
.title h2 {
  font-size: 1.5rem;
}
.title img {
  height: 1rem;
  transition: 0.4s all ease;
}

.title img:hover {
  transform: rotate(-90deg);
}

/* 
	  ===== PROFIL =====
*/
.logo {
  height: 6rem;
  border: 1px solid var(--d-cm);
  transition: 0.3s all ease;
}

.logo:hover {
  transform: translateY(-5px);
}

.profil {
  justify-content: space-between;
}


h1:hover {
  background: linear-gradient(135deg, var(--r), var(--cb));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}

.profil div p {
  font-size: 1rem;
  color: var(--w-c);
  transition: 0.3s all ease;
}

.profil div p:hover {
  color: var(--w-cm);
}

ul {
  gap: 5px;
  border: 1px solid var(--w-cp);
  background-color: var(--w-cp);
  padding: 5px;
}

ul li {
  width: 40px;
  z-index: 1;
  overflow: visible;
}

.cv {
  background-image: linear-gradient(135deg, var(--r), var(--cb));
  background-repeat: no-repeat;
  background-size: cover;
}

.cv:hover {
  background-image: linear-gradient(35deg, var(--cb), var(--bl));
}

ul li a {
  height: 40px;
  border: 1px solid var(--d);
  background-color: var(--d-cp);
  border-radius: 10px;
  transition: 0.3s all ease;
  z-index: 2;
}

ul li a:hover {
  background-color: var(--d-cm);
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--d-cm);
}

ul li a img {
  height: 25px;
}

/* 
	  ===== SKILLS =====
*/
.skills {
  height: 12rem;
  justify-content: space-between;
  align-items: flex-start;
}

.techno {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 80%;
}

.techno div {
  align-items: flex-start;
}

.techno img {
  height: 2rem;
  transition: 0.3s all ease;
}

.techno img:hover {
  transform: translateY(-5px);
}

.techno a {
  cursor: pointer;
  padding: 5px;
  border: 1px solid var(--d);
  background-color: var(--d-cp);
  transition: 0.3s all ease-in-out;
  font-size: 12px;
  color: var(--w-c);
}

.techno a:hover {
  color: var(--w);
}

.techno a img {
  height: 15px;
}

.symfony {
  background-color: var(--g-cp) !important;
  border: 1px solid var(--g-cm) !important;
}

.symfony:hover {
  background-color: var(--g-cm) !important;
  border: 1px solid var(--g-c) !important;
}

.techno a:first-of-type {
  background-color: var(--r-cp);
  border: 1px solid var(--r-cm);
}

.techno a:first-of-type:hover {
  background-color: var(--r-cm);
  border: 1px solid var(--r-c);
}

.techno a:nth-child(2) {
  background-color: var(--y-cp);
  border: 1px solid var(--y-cm);
}

.techno a:nth-child(2):hover {
  background-color: var(--y-cm);
  border: 1px solid var(--y-c);
}

.techno a:last-of-type {
  background-color: var(--cb-cp);
  border: 1px solid var(--cb-cm);
}

.techno a:last-of-type:hover {
  background-color: var(--cb-cm);
  border: 1px solid var(--cb-c);
}
.projects {
  align-items: flex-start;
}
.projects .techno {
  display: flex !important;
  align-items: flex-start;
}

.maquet img {
  width: 100%;
}

/* 
	  ================= FORM =================
*/

.input,
.label,
.button {
  padding: 1rem 0;
}
/* Styles du formulaire */
.input {
  background-color: var(--d-cp);
  border: 1px solid var(--d-cm);
  color: var(--w);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  resize: vertical;
}

.input:focus {
  border-color: var(--cb);
  box-shadow: 0 0 10px var(--cb-cp);
}

.input.error {
  border-color: var(--r);
  box-shadow: 0 0 10px var(--r-cp);
}

.label {
  color: var(--w-c);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.button {
  background: linear-gradient(135deg, var(--r), var(--cb));
  border: none;
  color: var(--w);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--r-cm);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Messages d'erreur */
.error-message {
  color: var(--r);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

/* Statut du formulaire */
.form-status {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-status.success {
  background-color: var(--g-cp);
  border: 1px solid var(--g-cm);
  color: var(--g);
}

.form-status.error {
  background-color: var(--r-cp);
  border: 1px solid var(--r-cm);
  color: var(--r);
}
/* 
	  ================= BACK-TO-TOP =================
*/
#backToTopBtn {
  height: 45px;
  width: 45px;
  display: none;
  position: fixed;
  right: 15px;
  bottom: 85px;
  background-color: var(--g);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0px 0px 4px 0px var(--g-c);
  transition: all 0.1s ease-in-out;
  z-index: 1000;
}
#backToTopBtn:hover {
  background-color: var(--g-cp);
}
#backToTopBtn:active {
  transform: scale(1.1);
}
#backToTopBtn img {
  height: 35px;
  transition: all 0.4s ease-in-out;
}
#backToTopBtn:hover img {
  transform: scale(0.9);
}
/* 
	  ================= FOOTER =================
*/
.footer-bottom {
  align-self: center;
  width: 85%;
  padding: 20px 10px;
  border-top: 1px solid rgba(69, 70, 70, 0.4);
}
.footer-bottom a {
  color: rgba(227, 232, 244, 0.7);
  font-size: 0.8rem;
  cursor: pointer;
}
.footer-bottom a span {
  color: var(--g-c);
  transition: all 0.3s ease-in-out;
  font-size: 1rem;
}
/* 
	  ================= RESPONSIVE =================
*/
/* Téléphones (375px - 768px) */
@media (max-width: 375px) {
  h1,
  .title h2 {
    font-size: 1.2rem;
  }

  .profil div p:first-of-type {
    font-size: 1rem;
  }

  .profil div p:last-of-type {
    font-size: 0.8rem;
  }

  ul li {
    width: 30px;
  }
  ul li a {
    height: 30px;
  }
  .techno a {
    font-size: 8px;
  }
}
/* Tablettes (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .title h2 {
    font-size: 2rem;
  }
  .title img {
    height: 1.5rem;
  }
  .logo {
    height: 8rem;
  }

  .navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: inherit;
  }
  h1 {
    font-size: 2.2rem;
  }
  .profil div p:last-of-type {
    font-size: 1.5rem;
  }
  .profil ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .profil ul li, .profil ul li a{
    height: 50px;
    width: 50px;
  }
.profil ul li a img{
  height: 35px;
}
  .techno {
    grid-template-columns: repeat(6, 1fr);
  }
  .techno div {
    display: flex;
    align-items: center;
  }
  .techno img {
    height: 3rem;
  }
  .techno p {
    font-size: 1.2rem;
  }
  .techno a {
    font-size: 1.5rem;
    border-radius: 1.5rem;
    padding: 0.5rem;
  }
  .techno a img {
    height: 2rem;
  }

  .projects ul {
    width: 25%;
  }
  .projects ul li {
    height: 4rem;
    width: 50%;
  }
  .projects ul li a {
    height: 4rem;
  }
  .projects ul li a img {
    height: 3rem;
  }

  .label,
  .input,
  .button,
  .error-message {
    font-size: 1.5rem;
  }
  .footer-bottom {
    width: 75%;
  }
  .footer-bottom a {
    font-size: 1rem;
  }

  #backToTopBtn {
    right: 20px;
    bottom: 20px;
    height: 50px;
    width: 50px;
  }

  #backToTopBtn img {
    height: 40px;
  }
}
@media (min-width: 1024px) {
  /* Structure en 2 colonnes pour PC */
  section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: min-content min-content min-content;
    max-width: 1400px;
    margin: auto;
  }
h1{
  font-size: 2rem;
}
.profil{
  justify-content: space-evenly;
}
.profil div p{
  font-size: 1.5rem;
}
  .title h2{
    font-size: 2rem;
  }

  .skills {
    grid-column: 1;
    grid-row: 2;
    gap: 1rem;
   
  }

  .container{align-self: flex-start;}
  .form {
    grid-column: 1;
    grid-row: 3;

   
  }

  /* Colonne droite : Deezer, Projets */
  .deezer-widget {
    grid-column: 2;
    grid-row: 1;

  }

  .projects:nth-of-type(1) {
    grid-column: 2;
    grid-row: 2;


  }

  .projects:nth-of-type(2) {
    grid-column: 2;
    grid-row: 3;

 
  }

  /* Footer en bas au centre */
  .footer-bottom {
    grid-column: 1 / -1;
    grid-row: 4;

    margin: 2rem auto 0;
    text-align: center;
  }

  /* Bouton retour en haut - Position fixe */
  #backToTopBtn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 60px;
    width: 60px;
    z-index: 1000;
  }

  #backToTopBtn img {
    height: 45px;
  }


  .logo {
    height: 10rem;
  }

  .navbar ul li {
    width: 50px;
  }

  .navbar ul li a {
    height: 50px;
  }

  .navbar ul li a img {
    height: 30px;
  }

  .techno img {
    height: 2.5rem;
  }

  .techno p {
    font-size: 1.1rem;
  }

  .projects .techno a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .projects ul li, .projects ul li a {
    height: 3rem;
    width: 3rem;
  }

  .projects ul li a img {
    height: 2rem;
  }
}