/* 
  styles.css
  ----------
  Design minimaliste, moderne, responsive pour le portfolio d'Amélina
*/

/* Variables globales */
:root {
  --color-bg: #f7f4f9;
  --color-bg-alt: #ffffff;
  --color-text: #1f1b24;
  --color-text-soft: #5d5567;
  --color-accent: #e08bb4;      /* rose poudré */
  --color-accent-dark: #b45f89; /* prune doux */
  --color-border: #e3dde9;
  --color-pill-bg: #f1e6f4;

  --shadow-soft: 0 18px 45px rgba(16, 8, 32, 0.09);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;

  --container-width: 1120px;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(20px);
  
  /* Couleurs supplémentaires pour light mode */
  --color-white: #ffffff;
  --color-black: #1f1b24;
  --color-gradient-start: rgba(251, 210, 255, 0.8);
  --color-gradient-end: rgba(204, 189, 255, 0.5);
  --color-header-bg: rgba(247, 244, 249, 0.9);
  --color-card-bg: rgba(255, 255, 255, 0.96);
  --color-status-bg: rgba(30, 18, 38, 0.93);
  --color-status-text: #fdfbff;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg: #1a1625;
  --color-bg-alt: #252030;
  --color-text: #f5f3f8;
  --color-text-soft: #b8b0c4;
  --color-border: #3a3447;
  --color-pill-bg: #2d2838;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.3);
  --glass-bg: rgba(37, 32, 48, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Couleurs supplémentaires pour dark mode */
  --color-white: #f5f3f8;
  --color-black: #1a1625;
  --color-gradient-start: rgba(30, 20, 40, 0.8);
  --color-gradient-end: rgba(20, 15, 30, 0.6);
  --color-header-bg: rgba(26, 22, 37, 0.95);
  --color-card-bg: rgba(37, 32, 48, 0.9);
  --color-status-bg: rgba(30, 18, 38, 0.93);
  --color-status-text: #fdfbff;
}

/* Reset léger */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: radial-gradient(circle at top left, var(--color-gradient-start) 0%, var(--color-bg) 45%, var(--color-bg-alt) 100%);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Typographie & utilitaires */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text-soft);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* Header / Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    var(--color-header-bg),
    rgba(247, 244, 249, 0.75),
    transparent
  );
  transition: background 0.3s ease;
}

[data-theme="dark"] .site-header {
  background: linear-gradient(
    to bottom,
    rgba(26, 22, 37, 0.95),
    rgba(26, 22, 37, 0.75),
    transparent
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.6rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 40% 60% 50% 50%;
  background: radial-gradient(circle at 20% 20%, var(--color-gradient-start), var(--color-accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.logo-text {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* Navigation */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
  transition: width 0.22s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(176, 118, 157, 0.4);
  background: rgba(252, 247, 253, 0.8);
  font-weight: 500;
}

/* Bouton burger mobile */

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(176, 118, 157, 0.4);
  background: rgba(252, 247, 253, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* HERO */

.hero-section {
  padding: 4.5rem 0 3.5rem;
}

.hero-bg-orbit {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, var(--color-gradient-start), transparent 55%),
    radial-gradient(circle at 90% 10%, var(--color-gradient-end), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
  transition: background 0.3s ease;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 0.9rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.hero-title span {
  color: var(--color-accent-dark);
}

.hero-main-line {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  min-height: 1.4em;
  color: var(--color-text);
}

.hero-main-line-text {
  white-space: nowrap;
}

.hero-cursor {
  display: inline-block;
  width: 10px;
  border-radius: 999px;
  margin-left: 2px;
  border-right: 2px solid var(--color-accent-dark);
  animation: heroCursorBlink 0.8s steps(1) infinite;
}

@keyframes heroCursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-soft);
  margin-bottom: 1.2rem;
}

.hero-intro {
  max-width: 34rem;
  font-size: 0.98rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    color 0.16s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
  box-shadow: 0 14px 30px rgba(172, 76, 133, 0.25);
  transition: all 0.3s ease;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(172, 76, 133, 0.35);
}

.btn.ghost {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.btn.ghost:hover {
  background: var(--color-bg-alt);
  opacity: 1;
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-pill-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

[data-theme="dark"] .meta-pill {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 52px;
  height: 86px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-indicator-wheel {
  width: 10px;
  height: 18px;
  border-radius: 999px;
  background: var(--color-accent-dark);
  animation: scrollWheel 1.4s ease-in-out infinite;
}

.scroll-indicator-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-soft);
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

/* HERO droite */

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-card {
  background: var(--color-card-bg);
  border-radius: 28px;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(18px);
  transition: all 0.3s ease;
}

.hero-card-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 0.4rem;
}

.hero-card-title {
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: var(--color-text);
}

.hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  display: grid;
  gap: 0.25rem;
}

.hero-card-list li::before {
  content: "•";
  color: var(--color-accent-dark);
  margin-right: 0.4rem;
}

.hero-status-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-status-bg);
  color: var(--color-status-text);
  font-size: 0.85rem;
  align-self: flex-start;
  transition: all 0.3s ease;
}

[data-theme="dark"] .hero-status-card {
  background: rgba(60, 50, 75, 0.93);
  color: var(--color-white);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #45d17a;
  box-shadow: 0 0 0 5px rgba(69, 209, 122, 0.28);
  /* Couleur de statut reste verte pour les deux thèmes */
}

/* SECTIONS GÉNÉRIQUES */

.section {
  padding: 3.5rem 0;
}

.section-inner {
  background: var(--color-bg-alt);
  border-radius: 32px;
  padding: 2.4rem 2.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.section-header {
  margin-bottom: 1.8rem;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.55rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.section-intro {
  max-width: 36rem;
  font-size: 0.95rem;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
  gap: 2rem;
}

.about-text {
  font-size: 0.97rem;
  display: grid;
  gap: 0.7rem;
}

.about-details {
  display: grid;
  gap: 0.9rem;
}

.about-detail {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: var(--color-pill-bg);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.about-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-soft);
  margin-bottom: 0.25rem;
}

.about-value {
  font-size: 0.9rem;
}

/* POURQUOI L'IA */

.why-ia-section {
  background: linear-gradient(135deg, var(--color-pill-bg) 0%, var(--color-bg) 100%);
  transition: background 0.3s ease;
}

.why-ia-content {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: start;
}

.why-ia-text {
  font-size: 0.97rem;
  display: grid;
  gap: 0.9rem;
}

.why-ia-visual {
  display: grid;
  gap: 1rem;
}

.why-ia-card {
  padding: 1rem;
  border-radius: 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all 0.3s ease;
}

.why-ia-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.why-ia-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--color-text);
}

.why-ia-card p {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* PASSIONS */

.passions-section {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  transition: background 0.3s ease;
}

.passions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.passion-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.passion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(38, 16, 54, 0.25);
  border-color: rgba(180, 95, 137, 0.85);
}

.passion-animation {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-pill-bg), var(--color-bg));
  border-radius: 16px;
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.passion-icon-animated {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Animation Cuisine - Femme qui cuisine */
.cook-figure {
  position: relative;
  width: 60px;
  height: 80px;
}

.cook-head {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f4c2a1;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: cookNod 2s ease-in-out infinite;
}

.cook-body {
  width: 30px;
  height: 40px;
  background: #e08bb4;
  border-radius: 8px;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.cook-arm-left {
  width: 8px;
  height: 25px;
  background: #f4c2a1;
  border-radius: 4px;
  position: absolute;
  top: 22px;
  left: 8px;
  transform-origin: top;
  animation: cookStir 1.5s ease-in-out infinite;
}

.cook-arm-right {
  width: 8px;
  height: 25px;
  background: #f4c2a1;
  border-radius: 4px;
  position: absolute;
  top: 22px;
  right: 8px;
  transform-origin: top;
  animation: cookStir 1.5s ease-in-out infinite 0.75s;
}

.cook-pan {
  width: 35px;
  height: 8px;
  background: #4a4a4a;
  border-radius: 50%;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: cookPanShake 0.8s ease-in-out infinite;
}

.cook-pan::before {
  content: "";
  width: 30px;
  height: 4px;
  background: #ff6b6b;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes cookNod {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  50% { transform: translateX(-50%) rotate(5deg); }
}

@keyframes cookStir {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(25deg); }
}

@keyframes cookPanShake {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-2px); }
}

/* Animation Harry Potter - Maison Serpentard */
.hp-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-house {
  position: relative;
  width: 50px;
  height: 60px;
}

.hp-house.slytherin {
  background: linear-gradient(135deg, #1a472a, #2d5016);
  border-radius: 4px;
  position: relative;
}

.hp-roof {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 20px solid #0d2818;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.hp-window {
  width: 12px;
  height: 12px;
  background: #ffd700;
  border-radius: 2px;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: hpWindowGlow 2s ease-in-out infinite;
}

.hp-jewel {
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
  animation: hpJewelFloat 3s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.hp-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  animation: hpSparkle 2s ease-in-out infinite;
}

.hp-sparkle.sparkle-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.hp-sparkle.sparkle-2 {
  top: 40%;
  right: 20%;
  animation-delay: 0.6s;
}

.hp-sparkle.sparkle-3 {
  bottom: 20%;
  left: 30%;
  animation-delay: 1.2s;
}

@keyframes hpWindowGlow {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
  50% { opacity: 1; box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

@keyframes hpJewelFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(180deg); }
}

@keyframes hpSparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Animation Séries */
.series-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.series-tv {
  width: 50px;
  height: 35px;
  background: #2a2a2a;
  border-radius: 4px;
  position: relative;
  padding: 3px;
}

.tv-screen {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.tv-content {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #3a3a3a 25%, transparent 25%, transparent 75%, #3a3a3a 75%);
  background-size: 8px 8px;
  animation: tvScan 3s linear infinite;
}

.series-icon {
  font-size: 1.5rem;
  animation: seriesBounce 2s ease-in-out infinite;
}

.series-icon.police {
  animation-delay: 0s;
}

.series-icon.medical {
  animation-delay: 1s;
}

@keyframes tvScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@keyframes seriesBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Animation Autres passions */
.other-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.other-icon {
  font-size: 2rem;
  animation: otherRotate 4s ease-in-out infinite;
}

.other-icon:nth-child(1) {
  animation-delay: 0s;
}

.other-icon:nth-child(2) {
  animation-delay: 1.3s;
}

.other-icon:nth-child(3) {
  animation-delay: 2.6s;
}

@keyframes otherRotate {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(10deg) scale(1.1); }
  50% { transform: rotate(0deg) scale(1); }
  75% { transform: rotate(-10deg) scale(1.1); }
}

.passion-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.passion-title {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--color-text);
  font-weight: 600;
}

.passion-text {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.passion-why {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  font-style: italic;
}

/* SKILLS */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.skill-card {
  background: linear-gradient(145deg, var(--color-bg-alt), var(--color-pill-bg));
  border-radius: 24px;
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: all 0.3s ease;
}

.skill-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-alt);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.skill-title {
  font-size: 1rem;
  color: var(--color-text);
}

.skill-text {
  font-size: 0.88rem;
}

.skill-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0.2rem 0 0;
}

.skill-tags li {
  font-size: 0.78rem;
  padding: 0.24rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

[data-theme="dark"] .skill-tags li {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

/* PROJECTS */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.project-card {
  background: var(--color-bg-alt);
  border-radius: 24px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-accent);
}

.project-card.project-featured {
  border: 2px solid var(--color-accent);
  box-shadow: 0 8px 24px rgba(224, 139, 180, 0.2);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem 0.5rem;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(224, 139, 180, 0.3);
}

.project-icon {
  font-size: 1.8rem;
  opacity: 0.9;
}

.project-role-icon {
  margin-right: 0.3rem;
}

.project-image-placeholder {
  background: linear-gradient(120deg, var(--color-pill-bg), var(--color-bg));
  color: var(--color-text);
  font-size: 0.9rem;
  padding: 1.1rem 1.3rem;
  transition: all 0.3s ease;
}

.project-image-placeholder span {
  opacity: 0.85;
}

.project-content {
  padding: 1.2rem 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-title {
  font-size: 1.02rem;
  color: var(--color-text);
}

.project-meta {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.9rem;
}

.project-details {
  display: grid;
  gap: 0.3rem;
  font-size: 0.86rem;
}

.project-structure {
  display: grid;
  gap: 1rem;
}

.project-block {
  padding: 0.9rem;
  border-radius: 12px;
  background: var(--color-pill-bg);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

[data-theme="dark"] .project-block {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.project-block-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.project-block-icon {
  font-size: 1rem;
}

.project-block p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-soft);
  margin: 0;
}

.project-footer {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--color-border);
}

.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0;
  margin: 0;
}

.project-tags li {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--color-pill-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

[data-theme="dark"] .project-tags li {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.project-link {
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  background: var(--color-text);
  color: var(--color-bg-alt);
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  background: var(--color-accent);
  color: var(--color-white);
}

/* WORKFLOW (Comment je travaille) */

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.workflow-card {
  border-radius: 20px;
  padding: 1.2rem 1.1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.workflow-title {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.workflow-text {
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.workflow-list {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
  display: grid;
  gap: 0.18rem;
  font-size: 0.82rem;
}

.workflow-list li::before {
  content: "•";
  margin-right: 0.35rem;
  color: var(--color-accent-dark);
}

/* TIMELINE (Parcours) */

.timeline {
  display: grid;
  gap: 1.4rem;
  position: relative;
  padding-left: 1.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 0.8rem;
}

.timeline-dot {
  position: absolute;
  left: -0.05rem;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-accent);
  transition: all 0.3s ease;
}

.timeline-content {
  background: var(--color-bg-alt);
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.timeline-date {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 0.2rem;
}

.timeline-title {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.timeline-text {
  font-size: 0.88rem;
}

.timeline-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0.5rem 0 0;
}

.timeline-tags li {
  font-size: 0.78rem;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-pill-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

[data-theme="dark"] .timeline-tags li {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.5fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-intro {
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}

.contact-btn {
  margin-top: 1rem;
}

.contact-info {
  display: grid;
  gap: 0.9rem;
}

.contact-item {
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background: var(--color-pill-bg);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-soft);
  margin-bottom: 0.18rem;
}

.contact-link {
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(180, 95, 137, 0.35);
}

.contact-link:hover {
  text-decoration-color: var(--color-accent-dark);
}

.contact-note {
  font-size: 0.86rem;
}

/* FOOTER */

.site-footer {
  padding: 1.6rem 0 1.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-color: rgba(176, 118, 157, 0.4);
}

/* Animations d’apparition */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SÉLECTEUR DE COULEURS */

.color-picker-container {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  z-index: 100;
}

.color-picker-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.color-picker-toggle:hover {
  transform: scale(1.1);
}

.color-picker-panel {
  position: absolute;
  top: 60px;
  right: 0;
  width: 240px;
  background: var(--color-bg-alt);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow-glass);
  display: none;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.color-picker-panel .theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 0.5rem;
}

.theme-toggle-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.color-picker-panel.active {
  display: flex;
}

.color-picker-panel h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
}

.color-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.color-input-group label {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.color-input-group input[type="color"] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

.color-reset {
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.color-reset:hover {
  background: var(--color-pill-bg);
}

/* SECTION CV */

.cv-section {
  background: var(--color-pill-bg);
  transition: background 0.3s ease;
}

.cv-container {
  background: var(--color-bg-alt);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.cv-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border);
}

.cv-header h1 {
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.cv-title {
  font-size: 1.1rem;
  color: var(--color-accent-dark);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cv-location {
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.cv-section-item {
  margin-bottom: 2rem;
}

.cv-section-item h2 {
  font-size: 1.3rem;
  color: var(--color-accent-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.cv-entry {
  margin-bottom: 1.2rem;
}

.cv-entry h3 {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.cv-date {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.cv-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.cv-skill-category h3 {
  font-size: 0.95rem;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}

.cv-skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-skill-category li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.cv-skill-category li::before {
  content: "•";
  color: var(--color-accent);
  margin-right: 0.5rem;
}

.cv-actions {
  margin-top: 2rem;
  text-align: center;
}

/* FORMULAIRE DE CONTACT */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* CHATBOT 3-en-1 */

.chatbot-toggle {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 40;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.chatbot-toggle:hover {
  transform: translateY(-2px);
}

.chatbot-icon {
  font-size: 1.2rem;
}

.chatbot-label {
  white-space: nowrap;
}

.chatbot-container {
  position: fixed;
  right: 1.5rem;
  bottom: 5rem;
  width: 380px;
  max-width: calc(100vw - 3rem);
  max-height: 600px;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 50;
  animation: chatbotSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatbotSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chatbot-container.active {
  display: flex;
}

.chatbot-header {
  padding: 1rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.chatbot-header p {
  margin: 0.3rem 0 0 0;
  font-size: 0.75rem;
  opacity: 0.9;
}

.chatbot-header-voice {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chatbot-header-voice .chat-voice-label {
  font-size: 0.75rem;
  opacity: 0.95;
  color: var(--color-white);
}

.chatbot-header-voice .chat-voice-select {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  min-width: 120px;
}

.chatbot-header-voice .chat-voice-select option {
  background: var(--color-bg);
  color: var(--color-text);
}

.chatbot-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chatbot-modes {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.chat-mode-btn {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.chat-mode-btn:hover {
  background: var(--color-pill-bg);
}

.chat-mode-btn.active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.chatbot-controls {
  padding: 0.6rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-control-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.chat-control-label input[type="checkbox"] {
  cursor: pointer;
}

.chat-voice-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--color-border);
}

.chat-voice-label {
  font-size: 0.75rem;
  color: var(--color-text-soft);
  white-space: nowrap;
}

.chat-voice-select {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-voice-select:hover {
  border-color: var(--color-accent);
}

.chat-voice-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(224, 139, 180, 0.2);
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--color-bg-alt);
  min-height: 200px;
  max-height: 300px;
}

.chat-message,
.chatbot-message {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 85%;
  word-wrap: break-word;
}

.chat-message.user,
.chatbot-message.user {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(224, 139, 180, 0.3);
  transition: all 0.3s ease;
  animation: messageSlideIn 0.3s ease-out;
}

.chat-message.bot,
.chatbot-message.bot {
  background: var(--color-bg-alt);
  color: var(--color-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  animation: messageSlideIn 0.3s ease-out;
}

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

.chat-message.bot table,
.chatbot-message.bot table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.chat-message.bot th,
.chat-message.bot td,
.chatbot-message.bot th,
.chatbot-message.bot td {
  padding: 0.4rem;
  text-align: left;
  border: 1px solid #ddd;
}

.chat-message.bot th,
.chatbot-message.bot th {
  background: #f5f5f5;
  font-weight: 600;
}

.chat-message.thinking,
.chatbot-message.thinking {
  background: var(--color-pill-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
}

.thinking-animation {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.thinking-animation span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: thinkingBounce 1.2s infinite ease-in-out;
}

.thinking-animation span:nth-child(1) {
  animation-delay: 0s;
}

.thinking-animation span:nth-child(2) {
  animation-delay: 0.15s;
}

.thinking-animation span:nth-child(3) {
  animation-delay: 0.3s;
}

.thinking-text {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  font-style: italic;
}

@keyframes thinkingBounce {
  0%, 100% {
    transform: translateY(0) scale(0.85);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-4px) scale(1.15);
    opacity: 1;
  }
}

/* Boutons suggestions rapides */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-top: 0.25rem;
}

.chat-suggestion-btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.chat-suggestion-btn:hover {
  background: var(--color-pill-bg);
  transform: translateY(-1px);
}

.typing-cursor {
  display: inline-block;
  animation: blinkCursor 0.8s infinite;
  color: var(--color-accent);
  font-weight: bold;
}

@keyframes blinkCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Styles premium pour les messages structurés */
.chat-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1rem 0;
  opacity: 0.3;
}

.chat-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.chat-list li {
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--color-text-soft);
  line-height: 1.6;
}

.chat-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.chatbot-message.bot strong {
  color: var(--color-text);
  font-weight: 600;
}

.chatbot-message.bot em {
  font-style: italic;
  color: var(--color-text-soft);
}

.chatbot-input-container {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
}

.chatbot-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: inherit;
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.chatbot-voice {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chatbot-voice:hover {
  background: var(--color-pill-bg);
}

.chatbot-send {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.chatbot-send:hover {
  transform: translateY(-1px);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    order: -1;
  }

  .about-grid,
  .skills-grid,
  .projects-grid,
  .contact-grid,
  .why-ia-content,
  .passions-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-header {
    padding: 0.8rem 1rem 0.4rem;
  }

  .project-icon {
    font-size: 1.5rem;
  }

  .project-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
  }

  .project-block {
    padding: 0.7rem;
  }

  .project-block-header {
    font-size: 0.85rem;
  }

  .project-block p {
    font-size: 0.85rem;
  }

  .section-inner {
    padding: 1.9rem 1.5rem;
  }

  .skills-grid {
    gap: 1.1rem;
  }

  .projects-grid {
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1.2rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    inset-inline: 1.2rem;
    top: 64px;
    flex-direction: column;
    padding: 0.9rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(16, 8, 32, 0.18);
    border: 1px solid rgba(220, 205, 236, 0.95);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .nav-list.open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 0.4rem 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.2rem;
  }

  .hero-section {
    padding-top: 3.5rem;
  }

  .hero-intro {
    max-width: 100%;
  }

  .section-inner {
    padding: 1.7rem 1.3rem;
  }

  .timeline {
    padding-left: 1.1rem;
  }

  .timeline::before {
    left: 0.4rem;
  }

  .timeline-dot {
    left: -0.16rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .project-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-grid,
  .skills-grid {
    gap: 1rem;
  }

  .chatbot-container {
    right: 0.75rem;
    bottom: 4rem;
    width: calc(100vw - 1.5rem);
    max-height: 70vh;
  }

  .color-picker-container {
    right: 0.75rem;
    top: 70px;
  }

  .color-picker-panel {
    width: 200px;
  }
}


