@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* GLOBAL */
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
h4 {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1, h2 {
  font-weight: 800;
  text-align: center;
}

h3 {
  font-weight: 700;
}

/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* NOUVELLE PALETTE CLEAN LIGHT MODE */
  --bg-primary: #F9FAFB;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F3F4F6;
  --surface: #FFFFFF;
  --surface-hover: #F3F4F6;
  --border: #E5E7EB;
  --border-hover: #D1D5DB;
  
  --text-primary: #111827;
  --text-secondary: #4B5563;
  
  --accent-primary: #2563EB; /* Bleu Royal */
  --accent-secondary: #4F46E5; /* Indigo */
  --accent-primary-glow: rgba(37, 99, 235, 0.15);
  
  --dev-accent: #0284C7;
  --dev-accent-soft: rgba(2, 132, 199, 0.1);
  --crea-accent: #E11D48;
  --crea-accent-soft: rgba(225, 29, 72, 0.1);
  
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.5);
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --header-height: 72px;
  
  --dot-active: var(--accent-primary);
  --dot-inactive: #E5E7EB;
  
  --fs-xs: 0.9rem;
  --fs-sm: 1rem;
  --fs-base: 1.1rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.45rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.35rem;
  --fs-3xl: 3rem;
  --fs-hero: clamp(3rem, 6vw, 5rem);
  
  /* Ombres Bento Clean */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 0;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  /* Background subtil avec un très léger dégradé pour la profondeur */
  background-image: radial-gradient(circle at top right, rgba(37, 99, 235, 0.03), transparent 40%),
                    radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.03), transparent 40%);
  overflow-x: hidden;
  position: relative;
}

p,
li {
  font-size: var(--fs-base);
}

/* ANIMATIONS */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > section,
.work-card,
.skill-card,
.testimonial-card,
.card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-ready main > section,
.js-ready .work-card,
.js-ready .skill-card,
.js-ready .testimonial-card,
.js-ready .card {
  opacity: 0;
  transform: translateY(24px);
}

.js-ready main > section.is-visible,
.js-ready .work-card.is-visible,
.js-ready .skill-card.is-visible,
.js-ready .testimonial-card.is-visible,
.js-ready .card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  main > section,
  .work-card,
  .skill-card,
  .testimonial-card,
  .card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  transition: transform 0.3s ease;
  will-change: transform;
}
.logo-home:hover .logo-img {
  transform: scale(1.05);
}
nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: auto;
}
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent-primary);
}

nav .nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg-secondary);
  font-weight: 600;
  transition: all 0.3s ease;
}

nav .nav-cta:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ACCUEIL */
.accueil {
  padding: 120px 80px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: calc(100vh - var(--header-height));
}

.accueil-content {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  margin: auto 0;
}

.accueil-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fade-up 1s ease both;
}

.accueil .intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.accueil .intro-badge strong {
  color: var(--accent-primary);
}

.accueil h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  text-align: left;
  color: var(--text-primary);
}

.accueil h1 .highlight {
  color: var(--accent-primary);
}

.accueil-description {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

.availability-pill {
  margin: 0;
  width: fit-content;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #A7F3D0; /* Vert menthe pastel pour signifier dispo */
  background: #ECFDF5;
  color: #065F46;
  font-size: var(--fs-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.accueil-highlights {
  margin: 8px 0 0;
  padding-left: 0;
  color: var(--text-secondary);
  display: grid;
  gap: 12px;
  list-style: none;
}

.accueil-highlights li {
  padding-left: 28px;
  position: relative;
}

.accueil-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.accueil-highlights strong {
  color: var(--text-primary);
  font-weight: 700;
}

.accueil-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.accueil-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fade-up 1.1s ease both;
  animation-delay: 0.1s;
}

.profile-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-photo {
  width: 380px;
  height: 380px;
  border-radius: 32px; /* Coins arrondis façon Bento, plus moderne qu'un rond parfait */
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--surface);
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-photo:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.reseau {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.reseau .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.reseau .icon i {
  font-size: 1.5rem;
}

.reseau .icon:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.scroll-down {
  display: none; /* Moins pertinent dans ce design épuré, l'utilisateur sait scroller */
}


/* BUTTONS */
.accueil-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-base);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.accueil-link.primary {
  color: #ffffff;
  background: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.accueil-link.primary:hover {
  transform: translateY(-4px);
  background: var(--accent-secondary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.accueil-link.secondary {
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
}

.accueil-link.secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--surface);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-primary {
  color: #fff;
  background: var(--text-primary); /* Bouton noir profond très chic */
}
.btn-primary:hover {
  background: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* COMMUN AUX SECTIONS (TITRES) */
.profile-focus, .career-target, .about, .projects, .testimonials, .competences, .experience, .parcours, .contact {
  padding: 100px 40px;
  scroll-margin-top: var(--header-height);
  display: flex;
  flex-direction: column;
  align-items: center;
}

section > h2, .profile-focus-intro h2, .career-target-intro h2 {
  font-size: var(--fs-3xl);
  color: var(--text-primary);
  margin-bottom: 48px;
}

/* PROFIL RECRUTEUR & OBJECTIF PRO */
.profile-focus-intro p, .career-target-intro p, .about > p, .projects-subtitle, .skills-subtitle {
  color: var(--text-secondary);
  max-width: 800px;
  text-align: center;
  font-size: var(--fs-md);
  line-height: 1.8;
  margin: -24px auto 48px auto;
}

.profile-focus-grid, .career-target-grid {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.focus-card, .target-card, .experience-card, .timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-bottom: 24px;
  list-style: none;
}

.focus-card:hover, .target-card:hover, .experience-card:hover, .timeline-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.focus-card h3, .target-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: 16px;
  color: var(--text-primary);
}


/* BENTO CARDS (A propos) */
.card-grid {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img {
  transform: scale(1.05);
}
.card-body {
  padding: 24px;
}
.card-title {
  margin: 0 0 12px 0;
  font-size: var(--fs-md);
}
.card-text {
  color: var(--text-secondary);
  margin: 0;
}

/* PROJETS (BENTO STYLE) */
.projects-switch {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.switch-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  padding: 12px 32px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.switch-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}
.switch-btn.is-active {
  background: var(--text-primary);
  color: var(--bg-secondary);
  border-color: var(--text-primary);
}

.project-grid {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin: 0 auto;
}

.projects-more {
  display: block;
  margin: 32px auto 0;
  cursor: pointer;
}

.work-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: left;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  display: flex;
  flex-direction: column;
}

.work-card[hidden] {
  display: none;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.work-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: 0;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-media.logo-media,
.work-media.awf-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}
.work-media.logo-media img,
.work-media.awf-media img {
  object-fit: contain;
  padding: 24px;
}
.work-card:hover .work-media img {
  transform: scale(1.05);
}

.work-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.work-title {
  font-size: var(--fs-lg);
  margin: 0;
}

.work-link {
  color: var(--text-primary);
  text-decoration: none;
}
.work-link:hover {
  color: var(--accent-primary);
}

.work-excerpt {
  color: var(--text-secondary);
  margin: 0;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tag {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* TEMOIGNAGES */
.testimonials-subtitle {
  color: var(--text-secondary);
  max-width: 800px;
  margin: -24px auto 48px;
  text-align: center;
}
.testimonials-container {
  width: min(1500px, 100%);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}
.quote-icon {
  color: var(--accent-primary);
  font-size: 2rem;
  line-height: 1;
}
.quote {
  flex-grow: 1;
  margin: 0;
  color: var(--text-primary);
  font-size: var(--fs-base);
  line-height: 1.55;
}
.author-row {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-secondary);
  font-weight: 700;
}
.author-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.name {
  color: var(--text-primary);
}
.role {
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.work-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.work-actions .btn {
  flex: 1 1 130px;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
}

/* COMPETENCES */
.skills-container {
  width: min(1200px, 100%);
}
.skills-grid, .future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.skill-card, .future-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.skill-card:hover, .future-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.skill-icon i { font-size: 1.5rem; }
.skill-icon img { width: 60%; height: 60%; object-fit: contain; }

.skill-title, .future-title {
  font-size: var(--fs-md);
  margin: 0;
}
.skill-cat, .future-note {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin: -12px 0 0 0;
}

.skill-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 16px;
  margin-top: auto;
}

.skill-dots::before {
  content: "Niveau";
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 3px;
}

.skill-dots .dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-hover);
}

.skill-card[data-level="1"] .dot:nth-child(-n+1),
.skill-card[data-level="2"] .dot:nth-child(-n+2),
.skill-card[data-level="3"] .dot:nth-child(-n+3),
.skill-card[data-level="4"] .dot:nth-child(-n+4),
.skill-card[data-level="5"] .dot:nth-child(-n+5) {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* NOW PLAYING */
.now-playing {
  background: var(--bg-tertiary); /* Gris très doux au lieu de noir */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}
.now-playing h2 {
  margin-bottom: 40px;
}
.album-cover {
  width: min(100%, 400px);
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}
.spotify-embed {
  width: 100%;
  height: 100%;
}
.now-playing-caption {
  margin-top: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* FOOTER */
.site-footer {
  padding: 32px 40px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .accueil-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .accueil-text {
    align-items: center;
    text-align: center;
  }
  .accueil h1 {
    text-align: center;
  }
  .accueil-highlights {
    text-align: left;
  }
  .accueil-actions {
    justify-content: center;
  }
  .profile-photo {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .header { padding: 12px 20px; }
  .accueil, .profile-focus, .about, .projects, .competences, .contact {
    padding: 60px 20px;
  }
  .testimonials {
    padding: 60px 20px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card {
    padding: 24px;
  }
  nav { justify-content: center; }
  nav a { margin: 8px; }
}

