/* Reset & base */
body {
  margin: 0;
  font-family: 'SUSE Mono', monospace;
  background: #111; 
  color: #eee;
}


.suse-mono {
  font-family: "SUSE Mono", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

/* Header & navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* espace fixe entre logo et titre */
}

.site-title {
  font-family: 'SUSE Mono', monospace;
  font-weight: 800;
  font-size: 1.9rem;
  color: #BF2718;
  letter-spacing: 2px; /* accent techno */
  text-transform: uppercase;
  margin-left: 0.6rem;
  
  /* Lueur subtile type néon */
  text-shadow: 0 0 6px rgba(191, 39, 24, 0.4);
}



.nav-links {
  display: flex;
  gap: 1.5rem; /* espace régulier et un peu plus large */
}

.nav-links a {
  color: #eee;
  text-decoration: none;
  font-size: 1rem; /* plus discret que le titre */
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #bf185d;
}

nav a.current {
  color: #bf185d;
  font-weight: bold;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #eee;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    background: #222;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
  }
  .nav-links a {
    padding: 0.75rem 1rem;
    border-top: 1px solid #333;
    font-size: 1.1rem; /* un peu plus grand en mobile */
  }
  .hamburger {
    display: block;
  }
  .nav-links.active {
    display: flex;
  }
}

/* LOGO SCALING */
.logo svg {
  width: 80px;   /* taille par défaut */
  height: auto;
}

@media (min-width: 768px) {
  .logo svg {
    width: 100px;
  }
}

@media (min-width: 1200px) {
  .logo svg {
    width: 120px;
  }
}



/* Container */
main {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* Titles */
h2 {
  margin: 0 0 2rem 0;
  font-family: 'SUSE Mono', monospace;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #bf185d;
}

.card h3 {
  margin-top: 0;
  color: #fff;
  font-family: 'SUSE Mono', monospace;
  font-size: 1.4rem;
}

/* Cards */
.card {
  background: linear-gradient(145deg, #1a1a1a, #202020);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  margin-bottom: 2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}

.photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.photo:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* Captions */
.caption {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  font-style: italic;
  margin-bottom: 2rem;
}

/* Gallery grid for multiple images */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid #333;
  color: #888;
  margin-top: 3rem;
  background: #1a1a1a;
  font-size: 0.9rem;
}


/* Typing animation */
.typing {
  border-right: 2px solid #bf185d;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 3s steps(30, end) forwards, blink 0.7s infinite;
}

@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink { 50% { border-color: transparent } }

/* Mot du jour */
.mot-du-jour {
  max-width: 600px;
  margin: 3rem auto;
  padding: 1.5rem;
  background: #1a1a1a;
  border-left: 5px solid #bf185d;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.mot-du-jour h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #bf185d;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mot-du-jour blockquote {
  margin: 1rem 0 0;
  font-style: italic;
  line-height: 1.6;
  color: #ddd;
  position: relative;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #333;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-content {
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.timeline-content h3 {
  margin-top: 0;
  color: #bf185d;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 1.2rem;
  width: 15px;
  height: 15px;
  background: #bf185d;
  border-radius: 50%;
  border: 2px solid #111;
}

.timeline-item:nth-child(odd)::after { right: -8px; }
.timeline-item:nth-child(even)::after { left: -8px; }

@media (max-width: 768px) {
  .timeline::before { left: 10px; }
  .timeline-item {
    width: 100%;
    padding-left: 2.5rem;
    text-align: left !important;
    left: 0 !important;
  }
  .timeline-item::after { left: 0; }
}

/* Working grid */
.working-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 1rem;
}

.badge {
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 0.5rem;
}

.en-cours { background: #bf185d; color: #fff; }
.bientot { background: #bf7b18; color: #fff; }
.termine { background: #18bf3b; color: #fff; }

.card.repetition { border-left: 4px solid #bf7b18; }
.card.concours { border-left: 4px solid #bf7b18; }

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

/* Resources grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 1rem;
}

.resource-card {
  display: block;
  background: #1e1e1e;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-decoration: none;
  color: #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  background: #222;
}

.resource-card h3 {
  margin-top: 0.5rem;
  color: #bf185d;
}

.resource-card .icon { font-size: 2rem; }

.resource-card p {
  margin-top: 0.5rem;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
}

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

/* Music */
.music-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 1rem;
}

.track-card {
  background: rgba(30,30,30,0.8);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.track-card h3 {
  margin: 0 0 0.3rem 0;
  color: #bf185d;
}

.track-card p {
  margin: 0 0 0.5rem 0;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
}

.visualizer {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  margin-top: 0.8rem;
  height: 20px;
}

.visualizer .bar {
  width: 6px;
  background: #bf185d;
  animation: bounce 1s infinite ease-in-out;
  border-radius: 2px;
}

.visualizer .bar:nth-child(1) { animation-delay: 0s; }
.visualizer .bar:nth-child(2) { animation-delay: 0.2s; }
.visualizer .bar:nth-child(3) { animation-delay: 0.4s; }
.visualizer .bar:nth-child(4) { animation-delay: 0.6s; }
.visualizer .bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes bounce {
  0%, 100% { height: 4px; }
  50% { height: 20px; }
}

/* Journal style */
.card {
  background: #1e1c18;
  padding: 1.2rem 1rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  border: 2px solid #3c2f2f;
  font-family: 'Georgia', serif;
  line-height: 1.6;
}

.card h3 {
  margin-top: 0;
  color: #bf185d;
  font-family: 'SUSE Mono', monospace;
}

.card small {
  display: block;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.summary-tags {
  background: #3c2f2f;
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  color: #ccc;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.progress-bar {
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  height: 12px;
  margin: 1rem 0;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.progress-bar .progress {
  background: linear-gradient(90deg, #bf185d, #bf7b18, #bf185d);
  height: 100%;
  width: 0;
  border-radius: 10px;
  animation: fillProgress 2s forwards;
}

@keyframes fillProgress {
  0% { width: 0; }
  100% { width: var(--progress, 75%); } /* par défaut 75% */
}


.media-gallery {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.media-gallery img {
  width: 48%;
  border-radius: 5px;
}

.inspiration {
  background: #3c2f2f;
  padding: 0.5rem;
  border-radius: 5px;
  color: #bf7b18;
  font-style: italic;
  margin-top: 0.8rem;
  
}
.pensee-nuit {
  background: #3c2f2f; /* jaune très clair, doux */
  /* alternative bleu clair : #e7f3fe */
  padding: 0.5rem;
  border-radius: 5px;
  color: #bfa618; /* jaune doux pour le texte, ou #3498db pour bleu */
  font-style: italic;
  margin-top: 0.8rem;
}

/* Recommendations */
.recommendations {
  margin: 3rem auto;
  padding: 1rem;
  max-width: 1000px;
}

.recommendations h2 {
  text-align: left;
  margin-bottom: 1rem;
  color: #bf185d;
}

.recommendations p {
  text-align: left;
  font-style: italic;
  margin-bottom: 2rem;
  color: #aaa;
}

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

.rec-card {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.2rem;
  color: #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.rec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  background: #222;
}

.rec-type {
  font-size: 0.9rem;
  font-weight: bold;
  color: #bf185d;
  margin-bottom: 0.8rem;
}

.rec-item {
  margin-bottom: 1.2rem;
}

.rec-item:last-child {
  margin-bottom: 0;
}

.rec-card h3 {
  margin: 0.3rem 0;
  color: #eee;
}

.rec-card p {
  margin: 0.4rem 0 0;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.rec-status {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
}

.rec-status.recent { background: #bf185d; }
.rec-status.favorite { background: #e67e22; }
.rec-status.inprogress { background: #2980b9; }
.rec-status.classic { background: #27ae60; }


/* Dropdown */
.dropdown {
  position: relative;
}

.dropbtn {
  color: #eee;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.3rem 0; /* aligne avec tes autres liens */
}

.dropbtn:hover {
  color: #bf185d;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* juste en dessous du lien principal */
  left: 0;
  background: #1e1e1e;
  min-width: 200px;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.6);
  z-index: 999;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  color: #eee;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
  background: #222;
  color: #bf185d;
}

.dropdown:hover .dropdown-content {
  display: block;
}

