/* --- CONFIG & COULEURS --- */
@font-face {
  font-family: 'ThisCafe';
  src: url('assets/fonts/This Cafe.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --neon-mint: #ffffff;
  --neon-purple: #2D1B4D;
  --neon-pink: #FF71CE;
  --neon-yellow: #FDE047;
  --black: #0e0e0e;
  --border-thick: 3px solid #000;
  --neo-shadow: 6px 6px 0px #000;
}

body {
  background-color: var(--black);
  color: white;
  font-family: 'DIN', sans-serif;
  overflow-x: hidden;
}

/* --- HEADER FIN (RETOUR À L'ORIGINAL) --- */
header {
  background-color: var(--neon-mint); /* Garde le vert menthe de la maquette */
  padding: 10px 40px; /* Plus fin comme demandé */
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { 
  font-family: 'ThisCafe'; 
  font-size: 24px; 
  letter-spacing: 1px;
  color: #000; 
}

nav ul { list-style: none; display: flex; gap: 30px; }
nav a { text-decoration: none; color: #000; font-weight: 600; font-size: 0.9rem; }

.intro-animation {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--black);
  perspective: 1000px;
}

.portfolio-loader {
  display: flex;
  gap: 10px;
}

.letter {
  font-family: 'ThisCafe', sans-serif;
  font-size: clamp(3rem, 10vw, 8rem);
  color: var(--neon-mint);
  display: inline-block;
  text-shadow: 6px 6px 0px #000;
  -webkit-text-stroke: 2px #000;
  cursor: default;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animation de base qui fait bouger les lettres */
@keyframes letterJump {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(-10deg); color: var(--neon-pink); }
  75% { transform: translateY(10px) rotate(10deg); color: var(--neon-yellow); }
}

.letter.active {
  animation: letterJump 0.6s ease-in-out;
}

/*Effet video*/

.viewfinder-overlay {
  position: absolute;
  top: 50px;
  left: 50px;
  right: 50px;
  bottom: 50px;
  pointer-events: none; /* Pour ne pas gêner le swipe */
  opacity: 0.3;
  z-index: 1;
}

.corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid white;
}

.top-left { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.top-right { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.bottom-left { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.bottom-right { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.rec-indicator {
  position: absolute;
  top: 10px;
  right: 40px;
  font-family: monospace;
  color: red;
  font-weight: bold;
  animation: blink 1s infinite;
}

.time-code {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: monospace;
  letter-spacing: 2px;
}


/* --- SECTION ABOUT RE-STYLISÉE --- */
.about {
  padding: 120px 5%;
  background-color: var(--black);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Texte géant en fond */
.about-bg-text {
  position: absolute;
  top: 10%;
  left: 5%;
  font-family: 'ThisCafe';
  font-size: 15rem;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Visuel avec cadres superposés */
.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-frame {
  position: relative;
  width: 350px;
  height: 450px;
  background: var(--neon-mint);
  border: 4px solid #fff;
  box-shadow: 15px 15px 0px var(--neon-pink);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}


/* Formes abstraites de déco */
.deco-shape {
  position: absolute;
  z-index: -1;
  border: 3px solid #fff;
}

.shape-1 {
  width: 100%;
  height: 100%;
  top: -20px;
  left: -20px;
  background: var(--neon-yellow);
}

.shape-2 {
  width: 80px;
  height: 80px;
  bottom: -30px;
  right: -30px;
  background: var(--neon-pink);
  border-radius: 50%;
  border: 4px solid #000;
}

/* Texte à droite */
.about-big-title {
  font-family: 'ThisCafe';
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
  margin: 20px 0;
  color: #fff;
}

.highlight {
  color: var(--neon-mint);
  text-shadow: 4px 4px 0px var(--neon-pink);
}

.bio-card {
  background: #fff;
  color: #000;
  border: 4px solid #000;
  box-shadow: 10px 10px 0px #fff;
  margin-top: 30px;
}

.bio-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  background: #000;
  border: 2px solid var(--neon-mint);
  padding: 10px 20px;
  font-weight: 900;
  letter-spacing: 1px;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--neon-mint);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-mint);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .about-container { grid-template-columns: 1fr; text-align: center; }
  .about-visual { margin-bottom: 50px; }
  .photo-frame { width: 280px; height: 350px; margin: 0 auto; }
}


/* --- BANDEAU IDENTITÉ / MÉTIER --- */
.role-banner {
  overflow: hidden;
  background: white;
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 22px 0;
}

.role-banner-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: scroll-banner 26s linear infinite;
}

.role-banner span {
  font-family: 'ThisCafe';
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 900;
  white-space: nowrap;
  text-transform: uppercase;
  color: #000;
}

/* RÔLE PRINCIPAL */
.main-role {
  color: #000;
  letter-spacing: 1px;
}

/* COULEURS */
.pink   { color: var(--neon-pink); }
.mint   { color: var(--neon-mint); }
.yellow { color: var(--neon-yellow); }

/* DOTS */
.dot {
  font-size: 1.5em;
  line-height: 1;
}

/* ANIMATION */
@keyframes scroll-banner {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --- DESIGN DES CARTES SKILLS --- */
.window-header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 3px solid #000;
  gap: 15px;
}

.window-header p {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #000;
}

.window-controls { display: flex; gap: 6px; }
.window-controls .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #000;
}

/* Couleurs des barres de titre */
.bar-purple { background-color: var(--neon-pink); }
.bar-mint { background-color: var(--neon-mint); }
.bar-yellow { background-color: var(--neon-yellow); }

.skills-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: #f0f0f0;
  border-bottom: 2px dashed #000;
}

.icon-placeholder {
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid #000;
  box-shadow: 4px 4px 0px #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px;
  justify-content: center;
}

.badge {
  padding: 6px 12px;
  border: 2px solid #000;
  font-weight: 900;
  font-size: 0.8rem;
  box-shadow: 2px 2px 0px #000;
  text-transform: uppercase;
}

/* Couleurs des badges */
.b-pink { background: var(--neon-pink); color: #000; }
.b-purple { background: #9d50bb; color: #fff; }
.b-mint { background: var(--neon-mint); color: #000; }
.b-black { background: #000; color: #fff; }
.b-yellow { background: var(--neon-yellow); color: #000; }
.b-white { background: #fff; color: #000; }

/* --- PILE DE CARTES CORRIGÉE --- */
.skills-swipe-stack {
  position: relative;
  height: 500px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  perspective: 1000px; /* Ajoute du relief */
}

.swipe-card {
  position: absolute;
  width: 100%;
  cursor: grab;
  /* On centre la carte et on prépare la transition */
  top: 0;
  left: 0;
  transform-origin: bottom center;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  z-index: 1;
  opacity: 0;
  pointer-events: none; /* Désactive les cartes du dessous */
}

/* La carte active est bien visible */
.swipe-card.active {
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

/* Effet de profondeur pour les cartes suivantes */
.swipe-card.next {
  opacity: 0.8;
  z-index: 5;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.swipe-card.last {
  opacity: 0.4;
  z-index: 1;
  transform: translateY(40px) scale(0.9);
  pointer-events: none;
}

/* --- ZONE ICONES --- */
.skills-icons {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 3px solid #000;
  background: #f5f5f5;
}

.icon-placeholder {
  width: 48px;
  height: 48px;
  border: 3px solid #000;
  background: white;
  box-shadow: 3px 3px 0px #000;
}

/* --- CORRECTION BUG SWIPE --- */
.skills-section {
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--black);
  overflow: hidden; /* Empêche le scroll horizontal parasite */
}

/* --- CORRECTION BUG SWIPE --- */
.skills-swipe-stack {
  position: relative;
  width: 320px;
  height: 400px;
  margin: 40px auto; /* Centrage horizontal */
}



.swipe-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  border: var(--border-thick);
  box-shadow: var(--neo-shadow);
  cursor: grab;
  /* On enlève les transitions trop rigides pour laisser le JS travailler */
  transition: transform 0.3s ease-out, opacity 0.3s;
  z-index: 1;
  user-select: none; /* Empêche la sélection de texte pendant le drag */
  touch-action: none; /* Crucial pour le mobile */
}

/* On ne définit plus de translate(10px) ici, on le fera proprement en JS */
/* Positionnement des cartes en dessous */
.swipe-card[data-index="1"] { transform: translate(10px, 10px); z-index: 2; }
.swipe-card[data-index="2"] { transform: translate(20px, 20px); z-index: 1; }

.window-body { padding: 20px; color: #000; }

.software-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.soft-icon {
  width: 50px;
  height: 50px;
  background: #f0f0f0;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0px #000;
}

.soft-icon img { width: 80%; height: auto; }

.swipe-hint {
  color: var(--neon-mint);
  margin-top: 30px;
  font-weight: bold;
}



@keyframes blink { 50% { opacity: 0; } }

/* --- SECTION PROJETS --- */
.projects {
  padding: 100px 8%;
  background: #fff;
}

/* --- GRILLE --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-content: center;
}

/* Les cartes gardent une largeur max pour éviter l'étirement */
.project-card {
  max-width: 360px;
  width: 100%;
}
/* --- CARTE --- */
.project-card {
  background: white;
  border: var(--border-thick);
  box-shadow: var(--neo-shadow);
  text-decoration: none;
  color: black;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translate(-6px, -6px);
  box-shadow: 14px 14px 0 var(--neon-mint);
}

/* --- IMAGE --- */
.project-media {
  height: 260px;
  overflow: hidden;
  background: #f2f2f2;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

/* --- TEXTE --- */
.project-info {
  padding: 22px;
  border-top: var(--border-thick);
  background: white;
  text-align: center;
}

.project-info h4 {
  font-family: 'ThisCafe', sans-serif;
  font-size: 1.35rem;
}

/* --- SECTION TÉMOIGNAGES --- */
.testimonials {
  padding: 100px 5%;
  background-color: #0e0e0e;
}

.testimonials-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  border: var(--border-thick);
  box-shadow: var(--neo-shadow);
  padding: 30px;
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  position: relative;
  transition: 0.3s;
}

/* On fait pivoter légèrement les cartes pour casser la ligne droite */
.testimonial-card:nth-child(odd) { transform: rotate(-2deg); }
.testimonial-card:nth-child(even) { transform: rotate(2deg); }

.testimonial-card:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 10px 10px 0px var(--neon-pink);
}

.quote-icon {
  font-family: 'ThisCafe';
  font-size: 80px;
  color: var(--neon-mint);
  position: absolute;
  top: -20px;
  left: 20px;
  line-height: 1;
  opacity: 0.5;
}

.testimonial-text {
  color: #000;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 2px solid #eee;
  padding-top: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--neon-yellow);
  border: 2px solid #000;
  border-radius: 50%;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-info strong {
  color: #000;
  text-transform: uppercase;
  font-size: 14px;
}

.author-info span {
  color: #666;
  font-size: 12px;
}

/* --- SECTION CONTACT --- */
.contact-section {
  padding: 120px 5%;
  background-color: #0e0e0e;
  display: flex;
  justify-content: center;
}

.contact-container {
  width: 100%;
  max-width: 850px;
}

.contact-card {
  background: white;
  border: var(--border-thick);
  box-shadow: var(--neo-shadow);
  padding: 70px 50px;
}

/* --- HEADER --- */
.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-intro {
  max-width: 520px;
  margin: 20px auto 0;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.5;
}

/* --- LIENS --- */
.contact-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* Boutons retravaillés */
.contact-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border: var(--border-thick);
  box-shadow: 6px 6px 0px #000;
  text-decoration: none;
  color: #000;
  transition: all 0.25s ease;
}

.contact-btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0px #000;
}

/* Icone */
.btn-icon {
  font-size: 26px;
}

/* Texte */
.btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-text strong {
  font-family: 'ThisCafe';
  font-size: 1.15rem;
}

.btn-text small {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Couleurs */
.b-mint { background-color: var(--neon-mint); }
.b-purple { background-color: var(--neon-pink); }
.b-yellow { background-color: var(--neon-yellow); }

.b-yellow:hover {
  background-color: #fff;
}




/* --- CONTENEUR DES DÉCORS --- */
.skills-section {
  position: relative; /* Très important : définit le point de repère */
  overflow: hidden;   /* Empêche les icônes de dépasser sur les autres sections */
  width: 100%;
  min-height: 600px;
}

.floating-decor-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Permet de continuer à swiper sans être bloqué */
  z-index: 0; /* Passe derrière les cartes */
}

.soft-ghost {
  position: absolute;
  font-weight: 900;
  font-size: 5rem;
  opacity: 0.15;
  color: white;
  filter: blur(1px);
  font-family: 'DIN', sans-serif;
  animation: float 4s infinite ease-in-out; /* Ton animation existante */
}

/* Positionnement précis autour des cartes */
.ps { top: 20%; left: 10%; transform: rotate(-15deg); animation-delay: 0s; }
.ae { bottom: 20%; left: 15%; transform: rotate(10deg); animation-delay: 1s; }
.pr { top: 25%; right: 10%; transform: rotate(15deg); animation-delay: 2s; }
.ai { bottom: 25%; right: 15%; transform: rotate(-10deg); animation-delay: 0.5s; }

/* On s'assure que la pile est au-dessus du décor */
.skills-swipe-stack {
  z-index: 2;
  position: relative;
}
/* GALERIE */
.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.btn-gallery {
  display: inline-block;
  padding: 14px 32px;
  background: var(--neon-pink);
  color: #000;
  text-decoration: none;
  font-weight: 900;
  border: var(--border-thick);
  box-shadow: var(--neo-shadow);
  transition: 0.2s ease;
}

.btn-gallery:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0px var(--neon-mint);
}


.gallery-container {
  padding: 80px 10%;
}

.gallery-intro {
  max-width: 600px;
  margin-bottom: 40px;
  color: #ccc;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: var(--border-thick);
  box-shadow: var(--neo-shadow);
  transition: 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}


/* --- FOOTER --- */
.site-footer {
  background: #0e0e0e;
  border-top: var(--border-thick);
  padding: 40px 8%;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.footer-name {
  color: white;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--neon-mint);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--neon-yellow);
}



/* --- MENTIONS LÉGALES --- */
.legal-page {
  padding: 100px 10%;
  max-width: 900px;
  margin: auto;
  color: #ffffff;
}

.legal-page h1 {
  font-family: 'ThisCafe', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.legal-page section {
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.legal-page p {
  line-height: 1.7;
}