/* ========================= */
/*        FONTS              */
/* ========================= */

@font-face {
  font-family: 'IntroRust';
  src: url('IntroRust.otf') format('opentype');
}

@font-face {
  font-family: 'Glacial';
  src: url('glacial-indifference.regular.otf') format('opentype');
  font-weight: normal;
}

@font-face {
  font-family: 'Glacial';
  src: url('glacial-indifference.bold.otf') format('opentype');
  font-weight: bold;
}

/* ========================= */
/*        GLOBAL             */
/* ========================= */

body {
  margin: 0;
  font-family: 'IntroRust', sans-serif;
  background: url('bg.png') no-repeat center center fixed;
  background-size: cover;
  color: #ffcc00;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================= */
/*        HEADER             */
/* ========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 98%;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  border: 2px solid #ffcc00;
  border-radius: 50px;
  padding: 8px 16px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-links li.active {
  background: linear-gradient(45deg, #ffcc00, #ff9900);
}

.nav-links li.active a {
  color: black;
}

.branding {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 10px;
}

.branding span {
  color: #ffcc00;
  font-size: 1.4em;
  font-weight: bold;
}

.branding img {
  height: 50px;
  width: auto;
}

/* ========================= */
/*        INTRO (GRID + AREAS) */
/* ========================= */

.intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-areas:
    "texte photo"
    "texte photo";
  align-items: center;
  padding: 60px 40px;
  column-gap: 40px;
}

/* Zones nommées */
.texte {
  grid-area: texte;
  text-align: right;
  margin-top:50px;
}

.photo {
  grid-area: photo;
  margin-top:50px;
}

/* Contenu visuel */

.photo img {
  width: 450px;
  height: auto;
}

.socials {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-right:100px;
}

.socials img {
  width: 50px;
  height: 50px;
  transition: transform 0.2s ease;
}

.socials img:hover {
  transform: scale(1.1);
}

.txt-grand {
  color: white;
  font-size: 3.4em;
  margin: 0;
  line-height: 1.1em;
}

.gradient,
.radial {
  background: radial-gradient(circle, #ffcc00 20%, #ffb800 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.txt-moyen {
  font-family: 'Glacial', sans-serif;
  font-size: 1.6em;
  color: white;
  margin: 10px 0 0 0;
  line-height: 1.3em;
}

.txt-moyen .bold {
  font-weight: bold;
}

.txt-petit {
  font-family: 'Glacial', sans-serif;
  font-size: 1.1em;
  color: white;
  margin: 10px 0 0 0;
  line-height: 1.4em;
}

/* ========================= */
/*        BUTTONS            */
/* ========================= */

.video-btn {
  background: #ffcc00;
  border: none;
  font-size: 2em;
  padding: 10px 25px;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 8px;
  color: black;
}

/* ========================= */
/*     TRANSITION PAGE       */
/* ========================= */

.transition-overlay {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9999;
  transition: transform 0.6s ease-in-out;
  pointer-events: none;
}

.transition-active {
  transform: translateX(-100%);
}

/* ========================= */
/*        PROFIL (FLEX)      */
/* ========================= */

.profil-section,
.profil-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 80px 60px;
  gap: 40px;
}

.profil-photo img {
  width: 420px;
  height: auto;
}

/* ========================= */
/*   TIMELINE VERTICALE      */
/* ========================= */

.timeline {
  width: 50%;
  position: relative;
  padding-left: 40px;
  border-left: 3px solid #ffcc00;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

.timeline-item .dot {
  width: 18px;
  height: 18px;
  background: #ffcc00;
  border-radius: 50%;
  position: absolute;
  left: -9px;
  top: 0;
}

.timeline-item .content {
  margin-left: 20px;
}

.year {
  font-family: 'IntroRust';
  color: #ffcc00;
  font-size: 1.8em;
  margin: 0;
}

.title {
  font-family: 'Glacial';
  font-weight: bold;
  color: white;
  font-size: 1.4em;
  margin: 5px 0;
}

.desc {
  font-family: 'Glacial';
  color: white;
  font-size: 1.1em;
  max-width: 450px;
  line-height: 1.4em;
}

/* ========================= */
/*   TIMELINE HORIZONTALE    */
/* ========================= */

.timeline-horizontal {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 60%;
}

.bloc {
  display: flex;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

.left-border {
  width: 8px;
  background-color: #ffcc00;
}

.bloc-content {
  padding: 20px 25px;
}

/* ========================= */
/*      RÉALISATIONS (GRID)  */
/* ========================= */

.realisation-section {
  padding: 30px 60px;
  text-align: center;
}

.real-title {
  font-family: 'IntroRust';
  color: #ffcc00;
  font-size: 3em;
  margin-bottom: 30px;
  margin-top:90px;
}

.pdf-viewer {
  width: 100%;
  max-width: 900px;   /* largeur max du viewer */
  height: 600px;      /* hauteur du viewer */
  margin: 0 auto;     /* centre le viewer */
  border: none;
  border-radius: 8px; /* optionnel : coins arrondis */
  overflow: hidden;
  margin-bottom: 30px;
}


/* ========================= */
/*        CARROUSEL          */
/* ========================= */

.last-works {
  margin-top: 10px;
  padding: 10px 60px;
  text-align: center;
}

.lw-title {
  font-family: 'IntroRust';
  font-size: 2.6em;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #ffcc00, #ff9900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 0px;
}

.carousel-track {
  display: flex;
  gap: 40px;
  animation: scrollInfinite 20s linear infinite;
}

.carousel-item {
  display: block;
  width: 520px;
  height: 320px;
  background-color: #2a2a2a;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item:hover {
  transform: scale(1.05);
}

@keyframes scrollInfinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1680px); }
}

/* ========================= */
/*     PAGE PROJET (GRID)    */
/* ========================= */

.project-page {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 40px;
  padding: 40px 20px;
}

@media (min-width: 900px) {
  .project-page {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .project-cover {
    grid-column: 1 / 3;
  }
}

/* ========================= */
/*        FOOTER             */
/* ========================= */

footer {
  text-align: center;
  padding: 15px;
  background-color: rgba(0,0,0,0.7);
  color: #ffcc00;
  margin-top: auto;
  width: 100%;
}

/* ========================= */
/*        RESPONSIVE         */
/* ========================= */

@media (max-width: 768px) {

  body {
    background-attachment: scroll;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .nav-links li {
    padding: 6px 10px;
    border-radius: 30px;
  }

  .branding {
    order: -1;
    padding-right: 0;
  }

  .intro {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "texte";
    text-align: center;
    padding: 28px 16px;
    row-gap: 18px;
  }

  .texte {
    text-align: center;
  }

  .photo img,
  .profil-photo img {
    width: 80%;
    max-width: 320px;
    height: auto;
  }

  .socials {
    justify-content: center;
    gap: 12px;
  }

  .socials img {
    width: 40px;
    height: 40px;
  }

  .txt-grand { font-size: 2.2em; }
  .txt-moyen { font-size: 1.1em; }
  .txt-petit { font-size: 0.95em; }

  .video-btn {
    font-size: 1.6em;
    padding: 8px 18px;
    margin-top: 14px;
  }

  .profil-layout,
  .profil-section,
  .timeline,
  .timeline-horizontal {
    flex-direction: column;
    padding: 30px 16px;
    width: 100%;
    gap: 18px;
  }

  .timeline {
    border-left: none;
    padding-left: 0;
  }

  .left-border {
    display: none;
  }

  .bloc {
    flex-direction: column;
  }

  .desc {
    max-width: 100%;
  }

  .real-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  footer {
    padding: 12px;
    font-size: 0.95em;
  }
}

/* SECTION COMPÉTENCES */
.skills-logos {
  margin-top: 80px;
  margin-bottom: 80px;
  text-align: center;
}

.skills-title {
  font-size: 2em;
  font-weight: 700;
  color: #f1c40f; /* ton jaune */
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: -100px;
}

/* Grille responsive */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* Chaque compétence */
.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Logo */
.skill-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
  transition: transform 0.25s ease;
}

/* Hover premium */
.skill-item img:hover {
  transform: scale(1.15);
}

/* Nom du logiciel */
.skill-item p {
  font-size: 1em;
  color: white;
  font-weight: 500;
  margin: 0;
}

/* RECTANGLE FLOUTÉ AUTOUR DES COMPÉTENCES */
.skills-logos {
  margin-top: 80px;
  margin-bottom: 80px;
  padding: 40px 30px;

  /* Le rectangle sombre transparent */
  background: rgba(22, 22, 22, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 20px;
  border: 1px solid rgba(22, 22, 22, 0.35);

  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================= */
/*        CONTACT PAGE       */
/* ========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "info form";
  gap: 60px;
  padding: 80px 60px;
  align-items: start;
}

.contact-info {
  grid-area: info;
}

.contact-title {
  font-family: 'IntroRust';
  font-size: 3em;
  color: #ffcc00;
  margin-bottom: 20px;
}

.contact-text {
  font-family: 'Glacial';
  font-size: 1.2em;
  color: white;
  margin-bottom: 20px;
  line-height: 1.5em;
}

.contact-mail a {
  color: #ffcc00;
  font-family: 'Glacial';
  font-size: 1.2em;
  text-decoration: none;
}

.contact-socials {
  margin-top: 25px;
  display: flex;
  gap: 20px;
}

.contact-socials img {
  width: 50px;
  height: 50px;
  transition: transform 0.2s ease;
}

.contact-socials img:hover {
  transform: scale(1.1);
}

.contact-form {
  grid-area: form;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-family: 'Glacial';
  color: #ffcc00;
  font-size: 1.1em;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #1a1a1a;
  color: white;
  font-family: 'Glacial';
  font-size: 1em;
}

.contact-btn {
  background: #ffcc00;
  color: black;
  border: none;
  padding: 12px;
  font-size: 1.2em;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

.contact-btn:hover {
  background: #ffdd33;
}

/* Responsive */
@media (max-width: 786px) {
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "form";
    padding: 30px 20px;
    gap: 40px;
  }

  .contact-title {
    text-align: center;
  }

  .contact-socials {
    justify-content: center;
  }
}

/* ========================= */
/*   PAGE ROBOT MODULAIRE   */
/* ========================= */

.robot-body {
  background: url('bg2.png') no-repeat center center fixed;
  background-size: cover;
}

/* HEADER SPÉCIAL */
.robot-header {
  width: 100%;
  padding: 25px 40px;
  display: flex;
  justify-content: flex-start;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.back-btn {
  font-family: 'Glacial';
  font-size: 1.2em;
  color: #ffcc00;
  text-decoration: none;
  border: 2px solid #ffcc00;
  padding: 8px 18px;
  border-radius: 50px;
  transition: 0.25s ease;
}

.back-btn:hover {
  background: #ffcc00;
  color: black;
}

/* CONTENU PRINCIPAL */
.robot-wrapper {
  max-width: 950px;
  margin: 0 auto;
  padding: 60px 40px 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* BANNIÈRE */
.robot-banner {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  display: block;
}

/* TITRE */
.robot-title {
  font-family: 'IntroRust';
  font-size: 3.4em;
  color: #ffcc00;
  margin-top: 10px;
  letter-spacing: 2px;
}

/* TEXTE */
.robot-text {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.robot-text p {
  font-family: 'Glacial';
  font-size: 1.25em;
  color: black;
  line-height: 1.6em;
}

/* GRILLE DES 3 ROBOTS */
/* Grille verticale */
.robot-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

/* Conteneur de chaque robot */
.robot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Image avec zoom */
.robot-item img {
  width: 250px; /* taille initiale */
  transition: transform 0.3s ease, width 0.3s ease;
  cursor: pointer;
}

.robot-item img:hover {
  width: 300px; /* taille au survol */
  transform: scale(1.05);
}

/* Texte caché par défaut */
.robot-caption {
  font-family: 'Glacial';
  font-size: 1.3em;
  color: #ffcc00;
  margin-top: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Apparition du texte au survol */
.robot-item:hover .robot-caption {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .robot-wrapper {
    padding: 40px 20px;
  }

  .robot-title {
    font-size: 2.4em;
  }

  .robot-text p {
    font-size: 1.05em;
  }

  .robot-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* ========================= */
/*   PAGE BIOPETS            */
/* ========================= */

.bio-body {
  background: url('bg3.png') no-repeat center center fixed;
  background-size: cover;
}

/* HEADER SPÉCIAL BIOPETS */
.bio-header {
  width: 100%;
  padding: 20px 40px;
  background: #5fb551;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.bio-back {
  position: absolute;
  left: 80px;
  font-size: 2.2em;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.bio-header-logo {
  height: 55px;
  width: auto;
}

/* CONTENU PRINCIPAL */
.bio-wrapper {
  max-width: 950px;
  margin: 0 auto;
  padding: 60px 40px 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* MINIATURE */
.bio-cover {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  display: block;
}

/* TEXTE */
.bio-text {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bio-text p {
  font-family: 'Glacial';
  font-size: 1.25em;
  color: #333;
  line-height: 1.6em;
}

/* VARIANTES LOGO */
.bio-variants,
.bio-sacs,
.bio-site {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* ========================= */
/*   CAROUSEL COVERFLOW 3D   */
/* ========================= */

.bio-carousel {
  width: 100%;
  position: relative;
  margin-top: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  margin-bottom: 150px;
}

.bio-carousel-track {
  position: relative;
  width: 600px;
  height: 350px;
}

/* Tous les mockups cachés par défaut */
.bio-mockup {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  opacity: 0;
  transform-style: preserve-3d;
  transition: all 0.45s ease;
  transform: translate(-50%, -50%) scale(0.8);
  filter: blur(4px);
}

/* Mockup au centre */
.bio-mockup.active {
  display: block;
  width: 300px;
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%) rotateY(0deg) scale(1);
  z-index: 3;
}

/* Mockup à gauche */
.bio-mockup.left {
  display: block;
  width: 200px;
  opacity: 0.6;
  filter: blur(3px);
  transform: translate(calc(-50% - 220px), -50%) rotateY(25deg) scale(0.9);
  z-index: 2;
}

/* Mockup à droite */
.bio-mockup.right {
  display: block;
  width: 200px;
  opacity: 0.6;
  filter: blur(3px);
  transform: translate(calc(-50% + 220px), -50%) rotateY(-25deg) scale(0.9);
  z-index: 2;
}

/* FLÈCHES */
.bio-arrow {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 2.2em;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.bio-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .bio-wrapper {
    padding: 40px 20px;
  }

  .bio-text p {
    font-size: 1.05em;
  }

  .bio-mockup.active {
    width: 240px;
  }

  .bio-mockup.left,
  .bio-mockup.right {
    width: 160px;
  }
}