@font-face {
  font-family: "SloopScript";
  src: url("fonts/SloopScriptOneRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* evite le blocage du rendu par la police */
}

:root {
  --blanc: #f2f4f3;
  --noir: #161616;
  --gris-trait: rgba(22, 22, 22, 0.22);
  --taille-page: min(100% - 32px, 1120px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--blanc);
  color: var(--noir);
  font-family: "Poppins", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.navigation-principale {
  position: fixed;
  top: 34px;
  left: 50%;
  z-index: 1000;
  width: min(520px, calc(100% - 48px));
  border-radius: 999px;
  background: var(--noir);
  transform: translateX(-50%);
}

.navigation-principale ul {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 66px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation-principale a {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--blanc);
  transition: color 0.2s ease;
}

.navigation-principale a:hover {
  color: var(--noir);
}

.nav-pill {
  position: absolute;
  border-radius: 999px;
  background: var(--blanc);
  opacity: 0;
  pointer-events: none;
  transition:
    left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
}

.en-tete {
  display: grid;
  min-height: 620px;
  padding-top: 80px;
  place-items: center;
}

.signature {
  position: relative;
  width: min(790px, 92vw);
  height: 300px;
}

.portfolio-script {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  margin: 0;
  font-family: "SloopScript", cursive;
  font-size: clamp(130px, 22vw, 280px);
  font-weight: 400;
  line-height: 0.72;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform: translate(calc(-50% + var(--deplacement-x, 0px)), calc(-50% + var(--deplacement-y, 0px)));
}

.mot-mobile {
  position: absolute;
  z-index: 3;
  margin: 0;
  font-size: clamp(19px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform: translate(var(--deplacement-x, 0px), var(--deplacement-y, 0px));
}

.mot-creative {
  top: 23%;
  left: 43%;
}

.mot-akturk {
  top: 76%;
  left: 58%;
}

.mot-elif {
  top: 76%;
  left: 71%;
}

.element-deplacable:active {
  cursor: grabbing;
}

.texte-deplacable:hover,
.texte-deplacable:focus-visible,
.texte-deplacable.est-actif {
  box-shadow: 0 0 0 1px var(--noir);
}

.texte-deplacable:hover::before,
.texte-deplacable:focus-visible::before,
.texte-deplacable.est-actif::before {
  content: "texte";
  position: absolute;
  top: -25px;
  left: -1px;
  z-index: 20;
  display: block;
  width: max-content;
  padding: 4px 10px 3px;
  border-radius: 4px 4px 4px 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: lowercase;
  white-space: nowrap;
  pointer-events: none;
}

.texte-deplacable:hover::after,
.texte-deplacable:focus-visible::after,
.texte-deplacable.est-actif::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: 19;
  pointer-events: none;
  background:
    linear-gradient(var(--noir), var(--noir)) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 50% 0 / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 100% 0 / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 0 50% / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 100% 50% / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 0 100% / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 50% 100% / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 100% 100% / 6px 6px no-repeat;
}

.contenu-principal {
  width: var(--taille-page);
  margin: 0 auto;
}

.section-grille {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
}

.titre-section {
  margin: 0 0 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gris-trait);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}

.presentation p {
  margin: 0 0 18px;
  font-size: 18px;
}

.liste-competences {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.carte-competence {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 140px;
  padding: 20px 18px;
  border: 1px solid var(--noir);
  background-color: var(--blanc);
  text-align: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform: translate(var(--deplacement-x, 0px), var(--deplacement-y, 0px));
  gap: 10px;
}

.carte-competence::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--noir), var(--noir)) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 50% 0 / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 100% 0 / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 0 50% / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 100% 50% / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 0 100% / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 50% 100% / 6px 6px no-repeat,
    linear-gradient(var(--noir), var(--noir)) 100% 100% / 6px 6px no-repeat;
}

.carte-competence h3 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
}

.carte-competence p {
  max-width: 150px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
}

.logiciels {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.icone-logiciel {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.lien-avec-fleche {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.lien-avec-fleche::after {
  content: "↗\FE0E";
  display: inline-block;
  font-size: 0.65em;
  line-height: 1;
  transform: translateY(-0.15em);
  transition: transform 0.2s ease;
}

.lien-social {
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    text-decoration-color 0.2s ease;
}

.lien-social:hover {
  opacity: 0.45;
}

.lien-social:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lien-social:hover::after {
  transform: translateY(-0.3em) translateX(0.1em);
}

.lien-projet {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.lien-projet:hover {
  opacity: 0.4;
}

.projets {
  padding: 80px 0;
}

.projet {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr 0.5fr;
  gap: 28px;
  padding: 24px 0;
}

.projet h3,
.projet p {
  margin: 0;
  font-size: 13px;
}

.zone-bouton {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.bouton-plus {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 150px;
  min-height: 42px;
  border-radius: 999px;
  background: var(--noir);
  color: var(--blanc);
  font-weight: 600;
  text-transform: uppercase;
}

.bouton-plus:hover {
  border: 1px solid var(--noir);
  background-color: var(--blanc);
  color: var(--noir);
}


.bande-images {
  overflow: hidden;
  margin-top: 60px;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  contain: layout;
}

.piste-images {
  display: flex;
  width: max-content;
  gap: 16px;
  animation: defilement-images 28s linear infinite;
  will-change: transform;
}

.image-defilante {
  width: 320px;
  height: 220px;
  aspect-ratio: 320 / 220;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

@keyframes defilement-images {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


.footer-page {
  overflow: hidden;
  background: #000;
  color: var(--blanc);
}

.bande-defilante {
  display: flex;
  width: max-content;
  animation: defilement 18s linear infinite;
  will-change: transform;
}

.bande-defilante span {
  padding-right: 24px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(58px, 8vw, 115px);
  font-weight: 100;
  white-space: nowrap;
  opacity: 0.9;
}

.bande-defilante .point {
  font-size: 0.35em;
  font-style: normal;
  vertical-align: middle;
}

@keyframes defilement {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.contenu-footer {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: var(--taille-page);
  margin: 0 auto;
  padding: 40px 0;
}

.colonne-gauche {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.reseaux {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 60px;
}

.contact-footer {
  align-self: flex-end;
  text-align: right;
  font-style: normal;
}

.copyright {
  margin: 0;
}

#suiveur {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--noir);
  pointer-events: none;
  transform: translate(-50%, -50%);
  /* will-change pour l'animation du curseur */
  will-change: left, top;
}


@media (max-width: 820px) {
  .navigation-principale {
    top: 16px;
    width: min(400px, calc(100% - 32px));
  }

  .navigation-principale ul {
    min-height: 52px;
  }

  .navigation-principale a {
    padding: 5px 10px;
    font-size: 14px;
  }

  .en-tete {
    min-height: 480px;
    padding-top: 90px;
  }

  .signature {
    width: min(360px, 92vw);
    height: 260px;
  }

  .portfolio-script {
    font-size: clamp(90px, 28vw, 160px);
  }

  .mot-creative {
    top: 30%;
    left: 42%;
    font-size: clamp(14px, 4vw, 22px);
  }

  .mot-akturk {
    top: 68%;
    left: 60%;
    font-size: clamp(14px, 4vw, 22px);
  }

  .mot-elif {
    top: 68%;
    left: 80%;
    font-size: clamp(14px, 4vw, 22px);
  }

  .section-grille {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .liste-competences {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .presentation p {
    font-size: 16px;
  }

  .projets {
    padding: 48px 0;
  }

  .projet {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gris-trait);
  }

  .projet h3 {
    font-size: 15px;
    font-weight: 600;
  }

  .projet p,
  .projet a {
    font-size: 13px;
  }

  .annee-projet {
    color: rgba(22, 22, 22, 0.45);
  }

  .contenu-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .contact-footer {
    text-align: left;
    align-self: flex-start;
  }

  .reseaux {
    margin-bottom: 32px;
  }

  .image-defilante {
    width: 240px;
    height: 165px;
    aspect-ratio: 240 / 165;
  }

  #suiveur {
    display: none;
  }
}

@media (max-width: 480px) {
  .mot-creative {
    top: 35%;
    left: 44%;
  }

  .mot-akturk {
    top: 64%;
    left: 55%;
  }

  .mot-elif {
    top: 64%;
    left: 70%;
  }

  .liste-competences {
    grid-template-columns: 1fr;
  }

  .carte-competence {
    min-height: 110px;
  }

  .en-tete {
    min-height: 400px;
  }

  .signature {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .piste-images,
  .bande-defilante {
    animation: none;
  }
}