/* ========================================
   BistroRoyale — Thème clair & sombre (refonte)
   ======================================== */

/* --- Base typographique --- */
html, body {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
}

/* --- Mode clair --- */
body {
  background-color: #f9f9f7;
  color: #222;
}

/* --- Mode sombre (hérité de CodeByLouppe) --- */
body.dark {
  background-color: #0b0f0f;
  color: #f1f1f1;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background-color: #00ffc6;
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: #0b0f0f;
}

/* --- HEADER --- */
#site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
body.dark #site-header {
  background: rgba(11, 15, 15, 0.95);
  border-bottom: 1px solid rgba(0, 255, 198, 0.15);
}

/* --- Structure interne du header --- */
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Logo --- */
.brand {
  font-family: 'Georgia', serif;
  font-size: 2rem;
  letter-spacing: -0.02em;
  font-style: italic;
  color: #333;
}
.brand span {
  font-style: normal;
  font-weight: 700;
}
body.dark .brand {
  color: #00ffc6;
}

/* --- Navigation --- */
.main-nav {
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.main-nav a:hover {
  color: #555;
}
body.dark .main-nav a {
  color: #00ffc6;
}
body.dark .main-nav a:hover {
  color: #00e6b5;
}

/* --- Bouton Dark Mode --- */
#dark-toggle {
  border: 1px solid #444;
  color: #333;
  background: transparent;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
#dark-toggle:hover {
  background: #444;
  color: #fff;
}
body.dark #dark-toggle {
  border-color: #00ffc6;
  color: #00ffc6;
}
body.dark #dark-toggle:hover {
  background: #00ffc6;
  color: #000;
}

/* --- Section principale --- */
main {
  text-align: center;
  padding: 6rem 1rem;
}
main h1 {
  font-family: 'Georgia', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #222;
}
body.dark main h1 {
  color: #fff;
}
main p {
  color: #555;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}
body.dark main p {
  color: #ccc;
}

/* --- Cartes / Features --- */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card {
  flex: 1 1 280px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.card h5 {
  color: #222;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ✅ Correction : titres des cartes en vert comme le header */
body.dark .card {
  background: #121212;
  border: 1px solid rgba(0, 255, 198, 0.1);
  box-shadow: none;
}
body.dark .card h5 {
  color: #00ffc6;
}

/* --- Footer --- */
footer {
  background: #f5f5f3;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 3rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #444;
}
footer a {
  color: #333;
  text-decoration: underline;
}
footer a:hover {
  color: #666;
}
body.dark footer {
  background: #0b0f0f;
  color: #ccc;
  border-top: 1px solid rgba(0, 255, 198, 0.2);
}
body.dark footer a {
  color: #00ffc6;
}

/* --- Petits détails --- */
a, button {
  transition: color 0.3s, background 0.3s, border 0.3s;
}
#copy-warning {
  pointer-events: none;
}
