/* =============================================
   Nicolas Balestra — style.css
   Sections :
     01. Fonts
     02. Reset & Base
     03. CSS Variables
     04. Layout
     05. Navigation (top)
     06. Hero
     07. Buttons
     08. Dots Divider
     09. Section Titles
     10. Player (shared — index + projects)
     11. Projects (index cards + grid)
     12. Pricing
     13. Contact
     14. Page Header / Back Link
     15. Footer
     16. Bottom Nav Bar
     17. Modal (projects)
     18. Fade-in Animation
     19. Responsive
   ============================================= */


/* ── 01. Fonts ── */

@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');


/* ── 02. Reset & Base ── */

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

html {
  background: var(--bg);
  background-image: url('../images/bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

/* Overlay de couleur fixe sur le fond */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(44, 62, 82, 0.35);
  z-index: 0;
  pointer-events: none;
}

body > * {
  position: relative;
  z-index: 1;
}

a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
img { display: block; max-width: 100%; }


/* ── 03. CSS Variables ── */

:root {
  --bg:           #2c3e52;
  --surface:      #1A1F24;
  --border:       #8FA8C0;
  --text:         #E8EDF2;
  --muted:        #acd6ff;
  --accent:       #B8C4CC;
  --col-width:    720px;
  --font-display: 'IBM Plex Mono', monospace;
  --font-heading: 'IBM Plex Sans Arabic', sans-serif;
  --font-body:    'Geist Mono', monospace;
  --font-mono:    'Geist Mono', monospace;
  --font-sans:    'Geist Mono', monospace;
}


/* ── 04. Layout ── */

nav,
section,
footer {
  width: 100%;
  max-width: var(--col-width);
  padding-left: 24px;
  padding-right: 24px;
}



/* ── 06. Hero ── */

.hero {
  padding: 32px;
  margin-top: 34px;
  width: 100%;
  position: relative;
  background: #ffffff08;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-social {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 20px;
}

.hero-social-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.hero-social-link:hover {
  color: var(--accent);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-name-row {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 24px;
  width: 100%;
}

.hero-image-wrap {
  width: 120px;
  max-width: 120px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1%);
  transition: transform 0.6s ease;
}

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

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 4px;
  word-break: break-word;
}

.hero-role {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 520px;
}


/* ── 07. Buttons ── */

.btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary:hover {
  background: var(--border);
  color: var(--text);
  border-color: var(--accent);
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 11px 24px;
  margin-top: 32px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}


/* ── 08. Dots Divider ── */

.dots-row {
  display: flex;
  gap: 10px;
  padding: 16px 24px 32px;
  max-width: var(--col-width);
  width: 100%;
  justify-content: center;
}

.dots-row span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}


/* ── 09. Section Titles ── */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
}


/* ── 10. Player (shared — index.html + projects.html) ── */

/* L'iframe SC est toujours invisible */
.sc-iframe {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sp-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

/* Barre de contrôle */
.sp-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 8px;
}

.sp-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(143, 168, 192, 0.45);
  background: transparent;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}

.sp-btn:hover {
  background: rgba(143, 168, 192, 0.1);
  border-color: var(--accent);
}

.sp-current {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.18s;
}

/* Brackets animés sur hover du titre courant */
.sp-current::before,
.sp-current::after {
  content: '';
  opacity: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  transition: opacity 0.18s, margin 0.18s;
}
.sp-current:hover { color: var(--accent); }
.sp-current:hover::before { content: '['; opacity: 1; margin-right: 5px; }
.sp-current:hover::after  { content: ']'; opacity: 1; margin-left:  5px; }

.sp-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Progress bar */
.sp-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  border-radius: 1px;
  position: relative;
}

.sp-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
  pointer-events: none;
  position: relative;
}

/* Pastille au bout de la barre */
.sp-progress-fill::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}

.sp-progress:hover .sp-progress-fill::after { opacity: 1; }

/* Tracklist */
.sp-tracklist {
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.sp-tracklist::-webkit-scrollbar       { width: 2px; }
.sp-tracklist::-webkit-scrollbar-track { background: transparent; }
.sp-tracklist::-webkit-scrollbar-thumb {
  background: rgba(143, 168, 192, 0.15);
  border-radius: 1px;
}

.sp-track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.12s;
}

.sp-track:hover  { background: rgba(255, 255, 255, 0.03); }
.sp-track.active { background: rgba(143, 168, 192, 0.06); }

.sp-track-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(143, 168, 192, 0.28);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
  transition: color 0.12s, font-size 0s;
}

.sp-track.active .sp-track-num { color: var(--accent); }

/* Flèche au survol à la place du numéro */
.sp-track:hover .sp-track-num          { font-size: 0; color: var(--accent); }
.sp-track:hover .sp-track-num::after   { content: '▶'; font-size: 9px; color: var(--accent); }

.sp-track-title {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(232, 237, 242, 0.5);
  text-decoration: none;
  transition: color 0.12s;
}

.sp-track.active .sp-track-title       { color: var(--text); }
.sp-track:hover  .sp-track-title       { color: var(--accent); }

.sp-track-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-left: auto;
}

/* ── Selected Works (index.html) ── */

.sw-player {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  padding: 0 24px 24px;
  background: rgba(24, 31, 37, 0.1);
  margin-top: 32px;
}

.sw-player .sp-bar     { padding: 20px 0 12px; }
.sw-player .sp-btn     { width: 40px; height: 40px; font-size: 13px; }
.sw-player .sp-current { font-size: 14px; }
.sw-player .sp-time    { font-size: 12px; }

.sw-player .sp-progress {
  height: 4px;
  padding: 8px 0;
  background: transparent;
}
.sw-player .sp-progress::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.sw-player .sp-progress-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 2px;
  pointer-events: none;
}

.sw-player .sp-tracklist {
  max-height: none;
  overflow-y: visible;
  gap: 8px;
  padding-top: 12px;
}
.sw-player .sp-track     { padding: 8px 6px; }
.sw-player .sp-track-num { font-size: 12px; width: 26px; }
.sw-player .sp-track-title { font-size: 14px; }

/* ── Modal Player (projects.html) ── */

.modal-player {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  padding: 0 20px 16px;
  background: #ffffff08;
}

.modal-player .sp-tracklist {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  grid-template-columns: 1fr;
}

/* Le titre courant n'est pas cliquable dans le modal */
.modal-player .sp-current {
  cursor: default;
  pointer-events: none;
}

.modal-player .sp-current:hover { color: var(--text); }
.modal-player .sp-current:hover::before,
.modal-player .sp-current:hover::after { content: ''; opacity: 0; margin: 0; }

.modal-player .sp-progress {
  height: 4px;
  margin: 4px 0;
  padding: 8px 0;
  background: transparent;
}
.modal-player .sp-progress::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.modal-player .sp-progress-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 2px;
  pointer-events: none;
}


/* ── 11. Projects (index cards + grid) ── */

.section-projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 90px;
  border-top: 1px solid var(--border);
  max-width: 1100px;
}

.project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.project-item-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 2px;
  backdrop-filter: blur(8px);
  box-shadow:
    0 40px 24px rgba(0, 10, 30, 0.4),
    0 1px 8px rgba(10, 30, 60, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.project-name {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  cursor: pointer;
  transition: letter-spacing 0.2s, color 0.2s;
}

.project-name:hover {
  letter-spacing: 0.01em;
  color: var(--accent);
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-embed {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.project-embed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(145, 132, 185, 0.20);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.project-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s, padding-left 0.2s;
}

.project-item:hover {
  color: var(--accent);
  padding-left: 6px;
}

.project-card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-cover {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.6s ease;
}

.project-cover img:hover {
  transform: scale(1.03);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}


/* ── 12. Pricing ── */

.section-pricing {
  max-width: 1100px;
  background: rgba(26, 31, 36, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 32px;
}

.pricing-intro {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pricing-card {
  border: 1px solid var(--border);
  padding: 24px;
  background: var(--surface);
}

.pricing-plan {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pricing-price {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.pricing-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
}

.pricing-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 24px;
}

.pricing-note a {
  color: var(--accent);
  transition: opacity 0.2s;
}

.pricing-note a:hover { opacity: 0.7; }


/* ── 13. Contact ── */

.section-contact {
  padding-top: 16px;
  padding-bottom: 64px;
}

.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: var(--accent);
}

.form-select {
  cursor: pointer;
  background-image: url('../images/bg.webp');
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
}

.form-select option {
  background: var(--surface);
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  line-height: 1.6;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

.checkbox-item:hover { color: var(--text); }

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  appearance: auto;
}

.btn-submit {
  cursor: pointer;
  font-size: 11px;
}


/* ── 14. Page Header / Back Link ── */

.page-header {
  padding-top: 16px;
  padding-bottom: 32px;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }


/* ── 15. Footer ── */

.footer {
  width: 100%;
  max-width: var(--col-width);
  padding: 48px 24px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 40px;
}

.footer-email-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-copy-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.footer-copy-btn:hover { opacity: 0.75; }

.footer-email {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-tz {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}

.footer-cta {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-style: italic;
}


/* ── 16. Bottom Nav Bar ── */

.bottom-nav {
  display: inline-flex;
  justify-content: center;
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 50;
  backdrop-filter: blur(12px);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
  background: rgba(26, 31, 36, 0.75);
  border: 1px solid var(--border);
}

.bottom-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.bottom-nav-link:last-child { border-right: none; }

.bottom-nav-link:hover,
.bottom-nav-link.active {
  background: rgba(255, 255, 255, 0.07);
}


/* ── 17. Modal (projects.html) ── */


.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(14px);
}

.modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1060px;
  height: 90vh;
  max-height: 90vh;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: row;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Colonne gauche : cover + player */
.modal-left {
  flex: 0 0 380px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.modal-left-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.22);
  transform: scale(1.15);
}

.modal-cover {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Colonne droite : texte */
.modal-right {
  overflow-y: auto;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 36px 36px 36px 32px;
  background: rgba(14, 20, 30, 0.97);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
  margin: 0;
}

.modal-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.modal-genre {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

.modal-type {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(143, 168, 192, 0.3);
  padding: 2px 8px;
  border-radius: 2px;
}

.modal-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 18px;
}

.modal-desc {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 2;
  color: rgba(232, 237, 242, 0.55);
  white-space: pre-line;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, color 0.18s;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Project cards (projects.html grid) */
.project-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.18);
}

.project-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(1px) brightness(0.5);
  transform: scale(1.02);
  transition: filter 0.4s ease;
}

.project-card:hover .project-card-bg {
  filter: blur(0px) brightness(0.6);
}


.project-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 5px;
}

.card-genre {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}

.card-type {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ── 18. Fade-in Animation ── */

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

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


/* ── 19. Responsive ── */

@media (max-width: 600px) {
  .hero {
    padding: 20px;
    margin-top: 20px;
  }

  .hero-name-row   { gap: 16px; }
  .hero-image-wrap { width: 72px; max-width: 72px; }
  .hero-name       { font-size: clamp(1.2rem, 7vw, 1.6rem); }
  .hero-role       { font-size: 12px; }
  .hero-desc       { font-size: 13px; }

  .section-title   { font-size: 1.6rem; }

  .project-list    { grid-template-columns: 1fr; gap: 16px; }
  .project-item    { font-size: 1.05rem; }

  .pricing-grid    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pricing-card    { padding: 16px; }
  .pricing-price   { font-size: 1.8rem; }
  .pricing-plan    { font-size: 13px; }
  .pricing-features li { font-size: 11px; }
  .section-pricing { padding: 20px 16px; }

  /* Selected Works player : 1 colonne + tags masqués */
  .sw-player .sp-tracklist  { grid-template-columns: 1fr; }
  .sw-player .sp-track-tag  { display: none; }
  .sw-player                { padding: 0 16px 16px; }
}

@media (max-width: 760px) {
  .modal-box   { flex-direction: column; }
  .modal-left  { flex: none; width: 100%; max-height: 40vh; }
  .modal-cover { aspect-ratio: unset; height: 160px; }
  .modal-right { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 20px; }
}

@media (max-width: 820px) {
  .project-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .project-list { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .pricing-grid { grid-template-columns: 1fr; }
}