/* ✨ Global Variables */
:root {
  --font-main: 'Roboto', sans-serif;
  --font-decorative: 'Sofia', cursive;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-lightblue: #e0f0ff;
  --color-blue-border: #3399ff;
  --color-blue-dark: #003366;
  --color-blue-hover: #007BFF;
  --color-hover-bg: rgba(0, 123, 255, 0.1);
  --bg-glass: rgba(0, 0, 0, 0.5);
  --bg-footer: rgba(0, 0, 0, 0.4);
}

/* 🎸 Page Backgrounds */
body#index,
body#carventura {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-size: 16px;
  background: no-repeat center center fixed;
  background-size: cover;
  color: var(--color-white);
}
body#index {
	background: no-repeat center top fixed;
	background-size: cover;
}
body#carventura {
	background: no-repeat center top fixed;
	background-size: cover;
}
body#index {
  background-image: url('https://www.nouvodepart.fr/images/20211112_002925-2.jpg');
}

body#carventura {
  background-image: url('https://www.nouvodepart.fr/images/Carventura.jpg');
}

/* 🧭 Layout Structure */
header {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-glass);
}

nav, content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background-color: var(--bg-glass);
  margin: 0 auto;
  max-width: 800px;
  text-align: left;
}

footer {
  padding: 2rem;
  text-align: center;
  background: var(--bg-footer);
}

/* 🖋 Typography */
h1 {
  font-family: var(--font-decorative);
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  margin: 0;
  text-align: center;
}

figcaption {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* 📱 Responsive Typography */
@media (max-width: 1024px) { body { font-size: 14px; } }
@media (max-width: 768px)  { body { font-size: 13px; } }
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  figcaption { font-size: 1.3rem; }
  a { font-size: 0.95rem; }
}

/* 🪧 Lists & Navigation */
ul, #playlist, #signature {
  padding: 0;
  margin: 1rem 0;
  list-style-type: none;
  width: 100%;
  text-align: left;
}

li.nav, li.spectacle {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

li.nav:nth-child(1)::before,
li.nav:nth-child(2)::before,
li.nav:nth-child(3)::before,
li.spectacle:nth-child(-n+3)::before {
  content: '→';
  margin-right: 8px;
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: bold;
  flex-shrink: 0;
}
li.nav:nth-child(4)::before { content: '✎ @'; }
li.nav:nth-child(5)::before { content: '☎'; }

li.nav u {
  padding-left: 8px;
}

/* 🔗 Links */
a, a.title, a.nav {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s;
}

a.nav {
  font-size: 1.2rem;
  display: block;
}

a:hover {
  color: var(--color-white);
}

/* 🎧 Audio Player & Text Area */
#audio-container {
  width: 100%;
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(200, 200, 200, 0.4);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  box-sizing: border-box;
}

#audio-container textarea {
  width: 100%;
  resize: none;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.75rem;
  border: 2px solid var(--color-blue-border);
  background-color: #e6f0ff;
  color: var(--color-blue-dark);
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(51, 153, 255, 0.3);
  margin-bottom: 1rem;
  box-sizing: border-box;
}

#audio-container audio {
  width: 100%;
  margin-bottom: 1rem;
  max-width: 100%;
}

#audio-container img {
  width: auto;
  height: auto;
  margin-top: 1rem;
  border-radius: 4px;
}

/* 🎶 Playlist Styling */
#playlist li {
  margin: 0.25rem 0;
  transition: background-color 0.3s ease;
}

#playlist li:nth-child(odd) {
  background-color: var(--color-lightblue);
}

#playlist li:nth-child(even) {
  background-color: var(--color-white);
}

#playlist a {
  display: block;
  padding: 0.5rem 0.75rem;
  background-color: transparent;
  border-radius: 4px;
  color: #2c3e50;
  font-size: 1rem;
  transition: color 0.3s, background-color 0.3s;
}

#playlist a:hover {
  background-color: var(--color-hover-bg);
  color: var(--color-blue-hover);
}

/* ✍ Signature */
#signature {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* 🖼 Images */
#loupimg, #carventuraimg {
  display: block;
  margin: 2rem auto;
}

#loupimg {
  width: 50%;
  height: auto;
}

/* 📱 Responsive Audio & Text */
@media (max-width: 480px) {
  #audio-container {
    padding: 1rem 0.5rem;
    margin: 1rem auto;
  }

  #audio-container textarea {
    font-size: 1rem;
    padding: 0.5rem;
  }

  #playlist a {
    font-size: 0.95rem;
    padding: 0.5rem;
  }
}

/* 🛡 Layout Consistency */
html, body {
  width: 100%;
  overflow-x: hidden;
}
