/* STYLES GENERAUX */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  font-family: Arial, Helvetica, sans-serif;
  padding: 0;
  margin: 0;
  text-align: justify;
  
}

body {
  background: #f6caee;
  min-height: 100vh;
}

p {
  font-size: 1em;
  line-height: 1.5em;
}

a {
  text-decoration: none;
  color: #000;
  transition: color 0.2s ease;
}

a:hover {
  color: #ed158f;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* HEADER & FOOTER */
header,
footer {
  width: 100%;
  padding: 20px 0;
  background: #4f4f4f;
  box-shadow: 0 0 15px rgba(51, 51, 51, 0.3);
}

header {
  border-bottom: 1px solid #ed158f;
  min-height: 150px;
}

header h1,
header h2 {
  color: white;
  width: 90%;
  margin: 0 auto;
}

header h1 {
  font-size: 1.8em;
}

header h2 {
  font-size: 1.5em;
}

footer {
  border-top: 2px solid #ed158f;
  text-align: center;
  justify-items: center;
}

footer p {
  width: 90%;
  margin: 0 auto;
  color: #fff;
  text-align: center;
}
footer a {
  color: #fff;
}

/* SECTIONS */
section {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  width: 100%;
  padding-bottom: 20px;
  margin: 20px auto;
  box-shadow: 0 0 10px rgba(187, 187, 187, 0.5);
  background-color: #fff;
}

section h2 {
  margin: 20px 0;
  width: 90%;
}

section > div,
section > article {
  width: 90%;
}


/* SECTION INFOS */
.photo {
  text-align: center;
  background-color: #ed158f;
  width: 100%;
}

.photo img {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: -80px auto 0;
  object-fit: cover;
  position: relative;
  border: 5px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(90deg, #6c5ce7, #ed158f, #ffeaa7, #f6caee) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: rotate-gradient 6s linear infinite;
  box-shadow: 0 0 20px rgba(237, 21, 143, 0.4);
}

@keyframes rotate-gradient {
  0% {
    background-position: 0% 50%, 0% 50%;
  }
  50% {
    background-position: 0% 50%, 100% 50%;
  }
  100% {
    background-position: 0% 50%, 0% 50%;
  }
}

.presentation {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.presentation::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6c5ce7, #ed158f, #ffeaa7, #f6caee);
  background-size: 300% 100%;
  animation: slide-gradient 6s linear infinite;
}

.presentation a {
  display: block;
  text-align: center;
  padding: 10px;
  margin: 10px auto 30px;
  color: black;
  background-color: #ed158f;
  box-shadow: 0 0 10px rgba(204, 204, 204, 0.5);
  border-radius: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.presentation a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(237, 21, 143, 0.4);
  background-color: #f6caee;
}

.contact-flex {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-flex img {
  flex-shrink: 0;
}

.contact-flex p {
  flex: 1 1 60%;
  word-break: break-word;
}

.social {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.social a {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.social a:hover {
  transform: scale(1.05);
}

.social img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.github-logo {
  width: 70px !important;
  height: 70px !important;
  padding: 12px;
}

/* EXPERIENCES */
.exp {
  display: flex;
  flex-flow: row wrap;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 20px;
  gap: 15px;
}

.exp::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  height: 3px;
  width: 90%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6c5ce7, #ed158f, #ffeaa7, #f6caee);
  background-size: 300% 100%;
  animation: slide-gradient 6s linear infinite;
}

section .exp:last-child::after {
  display: none;
}

@keyframes slide-gradient {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}
@keyframes slide-gradient-vertical {
  0% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}

.exp-logo {
  flex: 0 0 100%;
  max-width: 150px;
  margin: 0 auto;
}

.exp-logo a {
  display: block;
}

.exp-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-img,
.exp-imglogo {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-img:hover,
.exp-imglogo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(237, 21, 143, 0.5);
}

.exp-info {
  flex: 1 1 100%;
  display: flex;
  flex-flow: column;
}

.exp h3 {
  font-size: 1.2em;
  margin-bottom: 5px;
}

.exp h4 {
  font-size: 1em;
  font-weight: normal;
  margin-bottom: 3px;
}

.description {
  margin-top: 10px;
}

.description ul {
  list-style-position: inside;
  padding-left: 10px;
}

.description li {
  margin-bottom: 5px;
}

/* SECTION INTERETS */
.interets {
  flex: 0 1 45%;
  display: flex;
  flex-flow: column;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.imginteret {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(85, 85, 85, 0.5);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.imginteret:hover {
  transform: scale(1.1);
}

.interets figcaption {
  text-align: center;
  font-size: 0.9em;
}
/* Bannière cookie */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #4f4f4f;
  color: white;
  text-align: center;
  padding: 15px;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#cookie-banner button {
  background-color: #ed158f;
  color: black; /* texte noir */
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 5px;
}

.hidden {
  display: none !important;
}


.cookie-banner p {
  margin: 0;
  flex: 1;
}

.cookie-banner a {
  color: #f6caee;
  text-decoration: underline;
}

.cookie-banner a:hover {
  color:  #ed158f;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-buttons button {
  background: #ed158f;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-buttons button:hover {
  background:  #f6caee;
}

/* VERSION BUREAU DU CV */
@media screen and (min-width: 768px) {
  .exp-logo {
    flex: 0 0 120px;
    margin: 0;
  }

  .exp-info {
    flex: 1 1 calc(100% - 135px);
  }

  .interets {
    flex: 0 1 22%;
  }
}

@media screen and (min-width: 980px) {
  section {
    width: 80%;
  }

  header h1,
  header h2 {
    width: 80%;
  }

  .presentation,
  .contact {
    flex: 0 0 45%;
  }

   .presentation {
    border-bottom: none;
    padding-right: 20px;
    margin-left: auto;
  }

  .presentation::after {
    top: 0;
    bottom: auto;
    left: auto;
    right: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, #6c5ce7, #ed158f, #ffeaa7, #f6caee);
    background-size: 100% 300%;
    animation: slide-gradient-vertical 6s linear infinite;
  }

  .contact {
    padding-left: 20px;
    margin-right: auto;
  }

  .presentation a {
    border: 2px solid white;
  }

  .exp-logo {
    flex: 0 0 100px;
  }

  .exp-info {
    flex: 1 1 calc(100% - 115px);
  }

  .interets {
    flex: 0 1 20%;
  }
}