/*
Theme Name: TYMI
Theme URI: https://ton-site.fr
Author: Tyana Miguel
Author URI: https://ton-site.fr
Description: Thème portfolio personnel TYMI
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tymi
*/

/* ================= FONT ================= */

@font-face {
  font-family: 'Gendy';
  src: url('fonts/gendy.otf') format('opentype');
}

/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= CURSEUR PERSONNALISÉ ================= */

body {
  cursor: default;
}

a, button, .link-button, .control-btn, .filter-btn, .project-card, .creation-card {
  cursor: pointer !important;
}

/* ================= BASE ================= */

html,
body {
  min-height: 100vh;
  width: 100%;
  font-family: 'Poppins', sans-serif;

  /* Dégradé vertical : gris très clair → gris moyen → presque noir */
  background: linear-gradient(
    to bottom,
    #f4f4f4 0%,
    #d0d0ce 45%,
    #1d1f1c 100%
  );

  background-attachment: fixed;
  overscroll-behavior: none;
}

/* ================= GRILLE SCRABBLE INTERACTIVE (COMMUN) ================= */

#grid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: none;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200, 200, 198, 0.15);
  z-index: 2;
  pointer-events: none;
}

.deco-circle-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  animation: rotate 30s linear infinite;
}

.deco-circle-2 {
  width: 450px;
  height: 450px;
  bottom: -150px;
  left: -150px;
  animation: rotate 40s linear infinite reverse;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Touch hint for mobile */
.touch-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: #888;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
  z-index: 10;
  display: none;
  text-align: center;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .deco-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
  }

  .deco-circle-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -80px;
  }

  .touch-hint {
    display: block;
  }
}

/* ================= HEADER ================= */

.header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 90px;
  padding: 0 48px;

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

  background: transparent;

  z-index: 1000;

  opacity: 0;
  transform: translateY(20px);
}

/* ================= MENU HAMBURGER (MOBILE) ================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer !important;
  z-index: 1001;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: #c8c8c6;  /* gris clair */
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ================= MENU ================= */

.menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu a {
  text-decoration: none;
  color: #1d1f1c;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #888886;  /* gris moyen — discret sur fond clair ET sombre */
}

/* ================= LOGO ================= */

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
}

/* ================= HERO ================= */

.hero {
  min-height: 100vh;
  padding-top: 140px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: #1d1f1c;

  position: relative;
  overflow: hidden;
  perspective: 1000px;

  opacity: 0;
  transform: translateY(20px);
}

.hero h1 {
  font-family: 'Gendy', serif;
  font-size: 72px;
  font-weight: normal;
  margin-bottom: 16px;
  position: relative;
  z-index: 10;
}

.hero p {
  font-size: 16px;
  opacity: 0.75;
  position: relative;
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* ================= LINKTREE / CONTACT ================= */

.linktree-container {
  max-width: 450px;
  width: 90%;
  margin: 50px auto 80px;

  padding: 60px 40px;
  text-align: center;

  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);

  border-radius: 24px;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);

  opacity: 0;
  transform: translateY(20px);

  position: relative;
  z-index: 10;
}

.profile-circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
}

.profile-pic {
  width: 140px;
  height: 140px;

  border-radius: 50%;
  object-fit: cover;

  border: 4px solid #c8c8c6;   /* gris perle à la place du vert */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.20);

  transition: transform 0.3s ease;
}

.profile-circle:hover .profile-pic {
  transform: scale(1.05);
}

.profile-plus {
  position: absolute;
  top: 0;
  right: 0;

  width: 45px;
  height: 45px;

  background: #ffffff;
  border: 3px solid #c8c8c6;   /* gris perle */
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
  font-weight: 300;
  color: #1d1f1c;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.profile-name {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1d1f1c;
}

.linktree-container h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.linktree-container p {
  font-size: 16px;
  margin-bottom: 36px;
  opacity: 0.85;
  color: rgba(29, 31, 28, 0.85);
}

/* ================= BOUTONS ================= */

.link-button {
  position: relative;
  display: block;

  width: 100%;
  margin: 14px 0;
  padding: 18px 0;

  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;

  color: #1d1f1c;
  background: #d0d0ce;         /* gris perle à la place du vert */

  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.10);

  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;

  opacity: 0;
  transform: translateY(20px);
}

.link-button:hover {
  background: #1d1f1c;
  color: #f0f0ee;
  transform: scale(1.05) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.30);
}

.link-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;

  background: linear-gradient(
    60deg,
    #d0d0ce,
    #1d1f1c,
    #d0d0ce
  );

  filter: blur(30px);
  opacity: 0.5;
  transition: all 0.5s ease;
  z-index: -1;
}

.link-button:hover::before {
  opacity: 1;
  transform: rotate(45deg);
}

/* ================= ANIMATIONS ================= */

.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
}

.link-button:nth-child(4) { animation: slideUp 0.5s forwards 0.3s; }
.link-button:nth-child(5) { animation: slideUp 0.5s forwards 0.4s; }
.link-button:nth-child(6) { animation: slideUp 0.5s forwards 0.5s; }
.link-button:nth-child(7) { animation: slideUp 0.5s forwards 0.6s; }
.link-button:nth-child(8) { animation: slideUp 0.5s forwards 0.7s; }

@keyframes slideUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================= AUDIO SECTION ================= */

.audio-section {
  max-width: 820px;
  margin: 6rem auto;
  padding: 0 24px;
}

.audio-title {
  font-family: 'Gendy', serif;
  font-size: 2.4rem;
  margin-bottom: 2.2rem;
  text-align: center;
  color: #1d1f1c;
}

.audio-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.audio-track {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 0.6rem 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audio-track:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.audio-track iframe {
  width: 100%;
  height: 110px;
  border-radius: 14px;
  filter: saturate(0.9) contrast(1.05);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .menu.left {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(208, 208, 206, 0.98);   /* gris perle à la place du vert */
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: left 0.4s ease;
    z-index: 999;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .menu.left.active {
    left: 0;
  }

  .menu.left a {
    font-size: 18px;
    color: #1d1f1c;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(29, 31, 28, 0.1);
  }

  /* Survol menu mobile — neutralise tout vert hérité des pages */
  .header .menu.left a:hover,
  .menu.left a:hover {
    color: #5a5a58 !important;  /* gris foncé neutre */
    opacity: 1;
  }

  .menu.right {
    gap: 20px;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 998;
  }

  body.menu-open::before {
    opacity: 1;
    pointer-events: all;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero {
    padding-top: 120px;
    min-height: 100vh;
  }

  .linktree-container {
    margin-top: 40px;
    margin-bottom: 60px;
    padding: 48px 28px;
  }

  .profile-circle {
    width: 110px;
    height: 110px;
  }

  .profile-pic {
    width: 110px;
    height: 110px;
  }

  .profile-plus {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .profile-name {
    font-size: 30px;
  }

  .link-button {
    font-size: 16px;
    padding: 15px 0;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 0 24px;
  }

  .logo img {
    height: 28px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .audio-section {
    padding: 0 16px;
  }
}

/* ================= HEADER — SURCHARGES FINALES ================= */

.header .menu a {
  color: #1d1f1c;
  opacity: 0.85;
}

.header .menu a:hover {
  color: #888886;
  opacity: 1;
}