/* ==========================================================================
   PORTFOLIO.CSS - Styles des sections du portfolio
   ========================================================================== */

/* ==========================================================================
   HOMEPAGE - Hero Design
   ========================================================================== */

.home-container {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
  min-height: 50vh;
}

.home-hero-text h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.home-hero-text h1 em {
  font-style: italic;
  color: var(--color-grey-olive);
}

.home-hero-text .tagline {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.home-hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.home-hero-visual::before {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px dashed var(--color-ash-grey);
  border-radius: 50%;
  animation: slow-spin 60s linear infinite;
}

.home-hero-visual::after {
  content: "✦";
  position: absolute;
  top: 5%;
  right: 15%;
  font-size: 1.5rem;
  color: var(--color-grey-olive);
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* Soleil animé */
.sun-avatar {
  width: 250px;
  height: 250px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 20px rgba(154, 153, 140, 0.3));
  transition: transform 0.5s ease;
}

.sun-avatar:hover {
  transform: scale(1.05);
}

html[data-theme="dark"] .sun-avatar {
  filter: drop-shadow(0 4px 30px rgba(212, 205, 195, 0.25));
}

/* Animations du soleil */
.rays-outer {
  transform-origin: 100px 100px;
  animation: rotate-and-breathe 25s linear infinite;
}

.rays-middle {
  transform-origin: 100px 100px;
  animation: rotate-and-breathe-reverse 40s linear infinite;
}

.rays-inner {
  transform-origin: 100px 100px;
  animation: rotate-and-breathe-fast 18s linear infinite;
}

.ray {
  transform-origin: 100px 100px;
  animation: ray-extend 3s ease-in-out infinite;
}

.ray-1 {
  animation-delay: 0s;
}
.ray-2 {
  animation-delay: 0.4s;
}
.ray-3 {
  animation-delay: 0.8s;
}
.ray-4 {
  animation-delay: 1.2s;
}
.ray-5 {
  animation-delay: 1.6s;
}
.ray-6 {
  animation-delay: 2s;
}
.ray-7 {
  animation-delay: 2.4s;
}
.ray-8 {
  animation-delay: 2.8s;
}

.ray-m {
  transform-origin: 100px 100px;
  animation: ray-extend-alt 4s ease-in-out infinite;
}

.ray-m-1 {
  animation-delay: 0.2s;
}
.ray-m-2 {
  animation-delay: 0.5s;
}
.ray-m-3 {
  animation-delay: 0.8s;
}
.ray-m-4 {
  animation-delay: 1.1s;
}
.ray-m-5 {
  animation-delay: 1.4s;
}
.ray-m-6 {
  animation-delay: 1.7s;
}
.ray-m-7 {
  animation-delay: 2s;
}
.ray-m-8 {
  animation-delay: 2.3s;
}

.ray-i {
  transform-origin: 100px 100px;
  animation: ray-extend-small 2.5s ease-in-out infinite;
}

.pulse-ring {
  transform-origin: 100px 100px;
  animation: ring-pulse 6s ease-in-out infinite;
}

.sun-core {
  animation: core-breathe 8s ease-in-out infinite;
}

/* Rotation + respiration combinées */
@keyframes rotate-and-breathe {
  0% {
    transform: rotate(0deg) scale(0.92);
  }
  25% {
    transform: rotate(90deg) scale(1.05);
  }
  50% {
    transform: rotate(180deg) scale(0.92);
  }
  75% {
    transform: rotate(270deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(0.92);
  }
}

@keyframes rotate-and-breathe-reverse {
  0% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-90deg) scale(1.08);
  }
  50% {
    transform: rotate(-180deg) scale(1);
  }
  75% {
    transform: rotate(-270deg) scale(1.08);
  }
  100% {
    transform: rotate(-360deg) scale(1);
  }
}

@keyframes rotate-and-breathe-fast {
  0% {
    transform: rotate(0deg) scale(0.88);
  }
  25% {
    transform: rotate(90deg) scale(1.1);
  }
  50% {
    transform: rotate(180deg) scale(0.88);
  }
  75% {
    transform: rotate(270deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(0.88);
  }
}

/* Extension des rayons individuels */
@keyframes ray-extend {
  0%,
  100% {
    transform: scaleY(0.7);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

@keyframes ray-extend-alt {
  0%,
  100% {
    transform: scaleY(0.75);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1.15);
    opacity: 0.9;
  }
}

@keyframes ray-extend-small {
  0%,
  100% {
    transform: scaleY(0.8);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1.25);
    opacity: 0.7;
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    r: 55;
    opacity: 0.4;
  }
  50% {
    r: 68;
    opacity: 0.15;
  }
}

@keyframes core-breathe {
  0%,
  100% {
    r: 40;
  }
  50% {
    r: 45;
  }
}

/* Skills section */
.home-skills {
  margin: 3rem 0;
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-dust-grey);
  border-bottom: 1px solid var(--color-dust-grey);
}

.home-skills h2,
.home-timeline h2,
.home-contact h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.home-skills h2::before {
  content: "§ ";
  color: var(--color-grey-olive);
}

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

.skill-category h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grey-olive);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-dust-grey);
}

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

.skill-category li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.skill-category li::before {
  content: "→ ";
  color: var(--color-ash-grey);
}

/* Timeline section */
.home-timeline {
  margin: 3rem 0;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-dust-grey), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  background: var(--color-grey-olive);
  border-radius: 50%;
}

.timeline-item time {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--color-grey-olive);
}

.timeline-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.2rem 0;
}

.timeline-item p {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Contact section */
.home-contact {
  margin-top: 3rem;
  margin-bottom: 4rem;
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--color-dust-grey);
  border-radius: 2rem;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: var(--color-dust-grey);
  transform: translateY(-2px);
}

html[data-theme="dark"] .contact-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   ABOUT PAGE - Simple
   ========================================================================== */

.about-simple {
  max-width: 70ch;
  margin: 0 auto;
}

.about-simple header h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-dust-grey);
}

/* ==========================================================================
   BLOG
   ========================================================================== */

.blog-container {
  max-width: 700px;
  margin: 0 auto;
}

.blog-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-dust-grey);
}

.blog-header h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.blog-intro {
  max-width: 45ch;
  margin: 0 auto;
  opacity: 0.7;
  font-size: 0.95rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.blog-card:hover {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--color-dust-grey);
}

html[data-theme="dark"] .blog-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.blog-card-content {
  flex: 1;
}

.blog-card-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-grey-olive);
  margin-bottom: 0.4rem;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.blog-card-title a {
  text-decoration: none;
  color: inherit;
}

.blog-card-title a:hover {
  color: var(--color-grey-olive);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.7;
  margin-bottom: 0.6rem;
}

.blog-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  text-decoration: none;
  color: var(--color-grey-olive);
}

.blog-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-dust-grey);
  color: inherit;
  opacity: 0.4;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.blog-card:hover .blog-card-link {
  opacity: 1;
  transform: translateX(3px);
}

/* Blog single */
.blog-single {
  max-width: 70ch;
  margin: 0 auto;
}

.blog-single-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-dust-grey);
}

.blog-single-header h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.blog-single-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--color-grey-olive);
  margin-bottom: 0.75rem;
}

.blog-single-description {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.blog-single-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-single-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-dust-grey);
}

.blog-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.blog-nav-link {
  padding: 1rem;
  border: 1px solid var(--color-dust-grey);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.blog-nav-link:hover {
  background: var(--color-dust-grey);
}

html[data-theme="dark"] .blog-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.blog-nav-next {
  text-align: right;
}

.blog-nav-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--color-grey-olive);
  display: block;
  margin-bottom: 0.3rem;
}

.blog-nav-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.blog-back:hover {
  opacity: 1;
}

/* ==========================================================================
   PROJETS
   ========================================================================== */

.projets-container {
  max-width: 900px;
  margin: 0 auto;
}

.projets-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-dust-grey);
}

.projets-header h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.projets-header p {
  max-width: 45ch;
  margin: 0 auto;
  opacity: 0.7;
  font-size: 0.95rem;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.projet-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-dust-grey);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.projet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--color-ash-grey);
}

html[data-theme="dark"] .projet-card:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.projet-card-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-dust-grey);
  position: relative;
}

.projet-card-media img,
.projet-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
}

.projet-card:hover .video-overlay {
  opacity: 0;
}

.play-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.play-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 14px solid var(--bg-dark);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

.placeholder-media {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-dust-grey),
    var(--color-ash-grey)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-family: "Instrument Serif", serif;
  color: var(--color-ivory-mist);
}

.projet-card-content {
  padding: 1.2rem;
}

.projet-card-tags {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.projet-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  background: var(--color-dust-grey);
  border-radius: 3px;
}

html[data-theme="dark"] .projet-tag {
  background: rgba(255, 255, 255, 0.1);
}

.projet-card-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.projet-card-content h2 a {
  text-decoration: none;
  color: inherit;
}

.projet-card-content p {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.projet-card-links {
  display: flex;
  gap: 0.8rem;
}

.projet-link {
  font-size: 0.75rem;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.projet-link:hover {
  opacity: 1;
}

/* Projet single */
.projet-single {
  max-width: 70ch;
  margin: 0 auto;
}

.projet-single-header {
  margin-bottom: 2rem;
}

.projet-single-header h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.projet-single-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.projet-single-description {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.projet-single-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.projet-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  background: var(--color-dust-grey);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.projet-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.projet-link-secondary {
  background: transparent;
  border: 1px solid var(--color-dust-grey);
  color: inherit;
}

html[data-theme="dark"] .projet-link-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.projet-single-media {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.projet-single-media img,
.projet-single-media video {
  width: 100%;
  display: block;
}

.projet-single-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-dust-grey);
}

.projet-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.projet-back:hover {
  opacity: 1;
}

/* ==========================================================================
   NOTES
   ========================================================================== */

.notes-container {
  max-width: 900px;
  margin: 0 auto;
}

.notes-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-dust-grey);
}

.notes-header h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.notes-intro {
  opacity: 0.75;
  font-size: 1rem;
}

.notes-tags {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

html[data-theme="dark"] .notes-tags {
  background: rgba(255, 255, 255, 0.03);
}

.notes-tags-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-grey-olive);
  padding-top: 0.25rem;
  flex-shrink: 0;
}

.notes-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.note-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--color-grey-olive);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--color-dust-grey);
  border-radius: 3px;
  transition: all 0.2s ease;
}

.note-tag:hover {
  background: var(--color-dust-grey);
  color: var(--text-dark);
}

html[data-theme="dark"] .note-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.note-card {
  padding: 1.25rem;
  border: 1px solid var(--color-dust-grey);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.note-card:hover {
  border-color: var(--color-ash-grey);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .note-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.note-card header {
  margin-bottom: 0.75rem;
}

.note-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.note-card h2 a {
  text-decoration: none;
  color: inherit;
}

.note-card h2 a:hover {
  color: var(--color-grey-olive);
}

.note-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.note-card-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  color: var(--color-ash-grey);
  text-transform: lowercase;
}

.note-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.note-card-updated {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--color-grey-olive);
}

.notes-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  opacity: 0.5;
}

/* Note single */
.note-single {
  max-width: 70ch;
  margin: 0 auto;
}

.note-single-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-dust-grey);
}

.note-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.note-single-header h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.note-single-description {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.note-single-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--color-grey-olive);
}

.note-single-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-dust-grey);
}

.note-related {
  margin-bottom: 2rem;
}

.note-related h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-grey-olive);
  margin-bottom: 0.75rem;
}

.note-related ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.note-related a {
  font-size: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.note-related a:hover {
  color: var(--color-grey-olive);
}

.note-back {
  text-align: center;
}

.note-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.note-back a:hover {
  opacity: 1;
}

/* ==========================================================================
   PROSE - TYPOGRAPHIE OPTIMISÉE
   ========================================================================== */

.prose {
  --prose-width: 70ch;
  max-width: var(--prose-width);
  margin-left: auto;
  margin-right: auto;
}

.prose-content {
  font-size: 1.05rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.prose-content p,
.prose-content ul,
.prose-content ol,
.prose-content blockquote,
.prose-content dl {
  margin-bottom: 1.5em;
  max-width: var(--prose-width);
}

.prose-content h2,
.prose-content h3,
.prose-content h4 {
  max-width: var(--prose-width);
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose-content h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
}

.prose-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.prose-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.prose-content ul,
.prose-content ol {
  padding-left: 1.5em;
}

.prose-content li {
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

.prose-content li::marker {
  color: var(--color-grey-olive);
}

.prose-content blockquote {
  border-left: 3px solid var(--color-grey-olive);
  padding-left: 1.5em;
  margin-left: 0;
  font-style: italic;
  opacity: 0.9;
}

.prose-content pre {
  max-width: calc(var(--prose-width) + 10ch);
  margin-left: -5ch;
  margin-right: -5ch;
  margin-bottom: 1.5em;
}

.prose-content img,
.prose-content video,
.prose-content iframe,
.prose-content figure {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  border-radius: 6px;
}

.prose-content figure img {
  margin: 0 auto;
}

.prose-content figcaption {
  margin-top: 0.75em;
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-grey-olive);
  font-style: italic;
}

.prose-content table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose-content th,
.prose-content td {
  padding: 0.75em 1em;
  border: 1px solid var(--color-dust-grey);
  text-align: left;
}

.prose-content th {
  background: var(--color-dust-grey);
  font-weight: 600;
}

html[data-theme="dark"] .prose-content th {
  background: rgba(255, 255, 255, 0.1);
}

.prose-content hr {
  border: none;
  height: 1px;
  background: var(--color-dust-grey);
  margin: 3em auto;
  max-width: 8rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  margin-top: auto;
  padding: 2rem;
  border-top: 1px solid var(--color-dust-grey);
  font-size: 0.85rem;
}

.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer-copy {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  opacity: 0.6;
}

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

.site-footer-links a {
  text-decoration: none;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.site-footer-links a:hover {
  opacity: 1;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.page-404 {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.page-404 h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 6rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.2;
}

.page-404 p {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--color-dust-grey);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .btn-home {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

/* Bouton toggle animations */
.animation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-dust-grey);
  border-radius: 2rem;
  background: transparent;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-grey-olive);
  transition: all 0.2s;
}

.animation-toggle:hover {
  background: var(--color-dust-grey);
}

html[data-theme="dark"] .animation-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* État animations en pause (toggle manuel) */
.animations-paused .rays-outer,
.animations-paused .rays-middle,
.animations-paused .rays-inner,
.animations-paused .ray,
.animations-paused .ray-m,
.animations-paused .ray-i,
.animations-paused .pulse-ring,
.animations-paused .sun-core,
.animations-paused .home-hero-visual::before,
.animations-paused .home-hero-visual::after {
  animation-play-state: paused !important;
}

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

@media (max-width: 768px) {
  .home-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .home-hero-visual {
    order: -1;
  }

  .sun-avatar {
    width: 180px;
    height: 180px;
  }

  .home-hero-visual::before {
    width: 220px;
    height: 220px;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .projets-grid {
    grid-template-columns: 1fr;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .notes-tags {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-nav {
    grid-template-columns: 1fr;
  }

  .prose-content pre {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }

  .site-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

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

  .contact-links {
    flex-direction: column;
  }

  .projet-single-links {
    flex-direction: column;
  }
}

/* ==========================================================================
   NOUVELLES FONCTIONNALITÉS
   ========================================================================== */

/* --- Temps de lecture --- */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--color-ash-grey);
}

.reading-time svg {
  opacity: 0.7;
}

.meta-sep {
  color: var(--color-ash-grey);
  opacity: 0.5;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  margin-bottom: 1.5rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  opacity: 0.4;
  color: var(--color-grey-olive);
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--color-grey-olive);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--text-dark);
}

html[data-theme="dark"] .breadcrumbs a:hover {
  color: var(--text-light);
}

.breadcrumbs li:last-child {
  color: var(--color-ash-grey);
}

/* --- Articles liés --- */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-dust-grey);
}

.related-posts h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-grey-olive);
}

.related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.related-posts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.related-posts a {
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.related-posts a:hover {
  color: var(--color-grey-olive);
}

.related-section {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: var(--color-dust-grey);
  border-radius: 3px;
  color: var(--color-grey-olive);
  text-transform: capitalize;
}

html[data-theme="dark"] .related-section {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Carrousel projets --- */
.projets-carousel {
  position: relative;
  margin: 0 -1rem;
  padding: 0 1rem;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 0.5rem;
}

.carousel-slide .projet-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(154, 153, 140, 0.05);
  border-radius: 12px;
  padding: 2rem;
  min-height: 350px;
}

.carousel-slide .projet-card-media {
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-dust-grey);
}

.carousel-slide .placeholder-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 600;
  color: var(--color-grey-olive);
  background: linear-gradient(
    135deg,
    var(--color-dust-grey),
    var(--color-ash-grey)
  );
}

.carousel-slide .projet-card-content h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0.5rem 0 0.75rem;
}

.carousel-slide .projet-card-content h2 a {
  text-decoration: none;
  color: inherit;
}

.carousel-slide .projet-card-content h2 a:hover {
  color: var(--color-grey-olive);
}

.carousel-slide .projet-card-content p {
  color: var(--color-grey-olive);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.carousel-slide .projet-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.carousel-slide .projet-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-dust-grey);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.carousel-slide .projet-link:hover {
  background: var(--color-dust-grey);
}

.carousel-slide .projet-link-more {
  background: var(--color-grey-olive);
  color: var(--color-ivory-mist);
  border-color: var(--color-grey-olive);
}

.carousel-slide .projet-link-more:hover {
  background: var(--color-ash-grey);
  border-color: var(--color-ash-grey);
}

/* Navigation carrousel - boutons sur les côtés */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-dust-grey);
  border-radius: 50%;
  background: var(--bg-light, #f8f4e3);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .carousel-btn {
  background: var(--bg-dark, #1f2738);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.carousel-prev {
  left: -0.5rem;
}

.carousel-next {
  right: -0.5rem;
}

.carousel-btn:hover {
  background: var(--color-dust-grey);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn svg {
  color: var(--color-grey-olive);
}

/* Dots sous le carrousel */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-dust-grey);
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot:hover {
  background: var(--color-ash-grey);
}

.carousel-dot.active {
  background: var(--color-grey-olive);
  transform: scale(1.2);
}

/* --- Page 404 améliorée --- */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 2rem;
}

.error-visual {
  margin-bottom: 2rem;
}

.error-icon {
  width: 120px;
  height: 120px;
  animation: float 3s ease-in-out infinite;
}

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

.page-404 h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.page-404 p {
  color: var(--color-grey-olive);
  max-width: 400px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--color-grey-olive);
  color: var(--color-ivory-mist);
}

.btn-primary:hover {
  background: var(--color-ash-grey);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--color-dust-grey);
  color: inherit;
}

.btn-secondary:hover {
  background: var(--color-dust-grey);
}

/* --- Responsive carrousel --- */
@media (max-width: 768px) {
  .carousel-slide .projet-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    min-height: auto;
  }

  .carousel-slide .projet-card-content h2 {
    font-size: 1.4rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-prev {
    left: 0.25rem;
  }

  .carousel-next {
    right: 0.25rem;
  }
}

@media (max-width: 480px) {
  .breadcrumbs {
    font-size: 0.75rem;
  }

  .related-posts li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

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

/* ==========================================================================
   PROJETS — Poster vidéo cliquable (lazy-load) dans le carrousel
   Ne redéfinit PAS .video-overlay / .play-icon (déjà utilisés sur le site)
   ========================================================================== */

.projet-video-lite-btn {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.projet-video-lite-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  border-radius: 8px;
}

/* A11y: tags en <ul> */
.blog-single-tags,
.note-single-tags,
.projet-single-tags,
.default-single-tags {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-single-tags li,
.note-single-tags li,
.projet-single-tags li,
.default-single-tags li {
  margin: 0;
  padding: 0;
}
