/* -------------
-----RESET
---------------- */
* {
  margin: 0;
  padding: 0;
  font-family: "Beiruti", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 1.2rem;
}
html {
  background-color: #fffcfd;
}
body {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

h1 {
  margin: 0;
  padding: 2rem 0 2rem 0;

  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  color: #64172b;
  font-size: 5rem;
  cursor: default;
}
h2 {
  margin: 0;
  padding: 1rem 0 1rem 0;

  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 3rem;
  cursor: default;
}
h3 {
  margin: 0;
  padding: 1rem 0 1rem 0;

  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 2rem;
  cursor: default;
}
p {
  margin: 0;

  font-family: "Beiruti", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 1.2rem;
  cursor: default;
}
li {
  list-style-type: none;
  cursor: default;
}
a {
  text-decoration: none;
  color: #ca244d;
  cursor: pointer;
}
img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* ----------------- 
-------NAVBAR
------------------*/
header {
  width: 100%;
}

/* Styles de base pour navbar et hamburger */
.hamburger {
  display: none;
}

nav {
  width: 100%;
  height: 50px;
  margin: 0 auto;
  padding: 0.5em 0 0.5em 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0; /* ← IMPORTANT ! */
  transition: 0.4s;
  background-color: #fff7f8;
  z-index: 9;
}

.logo {
  width: 4%;
  margin-left: 1em;
  max-width: 2.3em;
}

.links {
  width: 60%;
  margin-right: 1em;
}

.links ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

#cv {
  background-color: #f3002515;
  padding: 0.5em 0.7em 0.5em 0.7em;
  border-color: #f8bfc8;
  border-radius: 20px;
}

/* ===== MEDIA QUERIES ===== */

/* Desktop (1024px+) */
@media screen and (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

/* Mobile (max 1023px) */
@media screen and (max-width: 1023px) {
  .hamburger {
    display: block;
    width: auto;
    background-color: transparent;
    border: none;
    margin-right: 1em;
    z-index: 10;
    cursor: pointer;
  }
  .logo {
    width: 35px;
    margin-left: 1em;
    z-index: 10;
  }
  .links {
    top: 0;
    display: flex;
    position: absolute;
    background-color: #64172c2c;
    backdrop-filter: blur(9.5px);
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    margin-left: -100%;
    transition: margin-left 0.4s ease;
  }
  .links.mobile-menu {
    margin-left: 0;
  }
  .links ul {
    display: flex;
    flex-direction: column;
  }
  .links ul li {
    margin: 2% auto;
    font-size: 1.3em;
  }

  #cv {
    background-color: #f3002515;
    border-color: #f8bfc8;
    border-radius: 20px;
    padding: 0 0.5em 0 0.5em;
  }
}

/* -----------------
------liens contacts
--------------------*/
footer {
  position: relative;
  width: 100%;
  z-index: 30;
}
.liens {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  margin-bottom: 40px;
}
.reseaux {
  width: auto;
  display: flex;
  align-items: center;
  margin-left: 2em;
}
footer li {
  cursor: pointer;
}
.reseaux svg,
.mail svg {
  width: auto;
  height: 20px;
  color: #ca244d;
}

.mail {
  width: auto;
  margin-right: 2em;
  cursor: pointer;
}

@media (max-width: 520px) {
  .mail {
    margin-right: 0.5em;
  }
  .reseaux {
    margin-left: 0.5em;
  }
}
/* -----------------
------Hero page
--------------------*/
.hero_page {
  position: relative;
  width: 100%;
  padding: 50px 20px 0 20px;
  box-sizing: border-box;
}
.presentation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  height: 70%;
}
.presentation-conteneur {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.presentation-conteneur p {
  font-size: 2rem;
  color: #64172b;
  text-align: center;
}
.avatar-conteneur {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.avatar {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 60px -16px #f8bfc8;
}

@media (max-width: 768px) {
  .hero_page h1 {
    line-height: 0.8em;
  }

  .presentation {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
    gap: 70px;
  }

  .presentation-conteneur {
    flex: none;
  }

  .avatar {
    max-width: 200px;
  }
}

/* ---------------------
------skills & projets
------------------------*/
.skills-projets {
  position: relative;
  height: 100vh;
  width: 100%;
  box-sizing: border-box;
}
.skills {
  display: flex;
  height: 35%;
  justify-content: center;
  align-items: center;
  gap: 15%;
  background-color: #fff7f8;
  margin-top: 60px;
}
.skills li {
  width: 150px;
  background-color: #b3445a;
  border-radius: 90px;
  color: #fffcfd;
  padding: 60px 0px;

  text-align: center;

  box-shadow: 0 0 5px #eb8e90, 0 0 25px #eb8e90;
}
.skills li:hover {
  box-shadow: 0 0 5px #eb8e90, 0 0 25px #eb8e90, 0 0 50px #eb8e90,
    0 0 100px #eb8e90, 0 0 200px #eb8e90;
}

.projets {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60%;
  background-color: #fffcfd;
}
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #64172b;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow.left {
  left: 40px;
}
.carousel-arrow.right {
  right: 40px;
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 80%;
  max-height: 320px;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0.25;
  filter: blur(2px);
  background: linear-gradient(145deg, #b3445a, #eb8e90);
  border-radius: 18px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  max-width: 60%;
}

.card.active,
.card.next,
.card.prev {
  opacity: 0.25;
}

/* carte active (au centre) */
.card.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: blur(0);
}

.card.prev {
  transform: translate(calc(-50% - 260px), -50%) scale(0.8); /* 260 = largeur + marge */
}

.card.next {
  transform: translate(calc(-50% + 260px), -50%) scale(0.8);
}

/* titres / texte */
.card-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.card .card-link {
  margin-top: 16px;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: #ffffff;
  color: #64172b;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.card-link:hover {
  background-color: #64172b;
  color: #ffffff;
}

.card-desc {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* reflet sous la carte */
.card::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -60px;
  height: 40px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.18),
    transparent 70%
  );
  filter: blur(5px);
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .projets {
    height: auto; /* plus de 60% fixe */
    padding: 40px 0;
  }
  .carousel {
    max-width: 100%;
    height: 320px; /* hauteur raisonnable sur tablette/mobile */
  }
  .carousel-track {
    height: 100%;
  }
  .card {
    width: 200px; /* cartes un peu plus petites */
    max-height: 260px;
  }
  .card.prev {
    transform: translate(calc(-50% - 220px), -50%) scale(0.8);
  }
  .card.next {
    transform: translate(calc(-50% + 220px), -50%) scale(0.8);
  }
  .carousel-arrow.left {
    left: 10px; /* rapprocher les flèches sur mobile */
  }
  .carousel-arrow.right {
    right: 10px;
  }
}

@media (max-width: 700px) {
  .skills-projets {
    height: auto;
  }
  .skills {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 50px;
    padding: 60px;
    flex-direction: column;
    height: auto;
  }
  .skills li {
    width: 100px;
    padding: 45px 10px;
  }
}

/* -----------------
------Storytelling
--------------------*/
.storytelling {
  display: flex;
  gap: 10%;
  height: 100vh;
  padding: 40px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  background-color: #fffcfd;
}
.carousel-story {
  position: relative;
  flex: 1;
  max-width: 400px;
  height: 60%;
  background-color: #f8bfc8;
  border-radius: 30px;
  padding: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.carousel-story .fiche {
  scroll-snap-align: start;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #b3445a, #eb8e90);
  padding: 0 30px;
  box-sizing: border-box;
  color: #fff;
}
.carousel-story .dots {
  position: sticky;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
}
.carousel-story .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 04);
}
.carousel-story .dot.active {
  background: #64172b;
}

@media (max-width: 1023px) {
  .storytelling {
    flex-direction: column;
    gap: 40px;
  }
  .carousel-story {
    width: 50%;
    min-width: 200px;
  }
}

@media (max-width: 800px) {
  .storytelling {
    flex-direction: column;
    gap: 40px;
    height: auto;
    padding: 20px;
  }
  .carousel-story {
    width: 90%;
    min-width: 200px;
    height: 60%;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
  .carousel-story .fiche {
    padding: 16px;
    background: linear-gradient(145deg, #b3445a, #eb8e90);
    margin-bottom: 16px;
  }
  .carousel-story .fiche h3 {
    font-size: 1.2rem;
  }
  .carousel-story .fiche p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  .carousel-story .dots {
    display: none;
  }
}

/* --------------
------ Contact
-----------------*/
.contact {
  height: 100vh;
}
.contactez-moi {
  height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
}
.contact-description {
  color: #64172b;
  background-color: #eb8e90;
  padding: 20px 50px;
  border-radius: 20px;
  text-align: center;
}
.contact-button {
  color: #fff;
  background-color: #64172b;
  border-radius: 30px;
  padding: 10px 10px;
  cursor: pointer;
}
.createur p {
  display: flex;
  justify-content: center;
  color: #64172c2c;
  text-align: center;
  margin: 0 50px;
}

@media (max-width: 750px) {
  .contact-description {
    padding: 0 20px;
    margin: 0 50px;
    background-color: #fffcfd;
  }
}
