/* ==========================
   Reset & Base (Global) pour C-N Store
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  margin: 0;
  background-image: url("/images/finance.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* ==========================
   Header (Global)
========================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 10px 20px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  object-fit: cover;
  background-color: #fff;
}

/* ==========================
   Navigation (Global)
========================== */
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav-menu a:hover {
  background: #444;
}

.nav-menu a.active {
  background-color: #ffd700;
  color: #111;
}

/* ==========================
   Boutons du Header (Global)
========================== */
.round-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffd700;
  color: #111;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-decoration: none;
  font-size: 18px;
  transition: transform 0.3s, background 0.3s;
}

.round-button:hover {
  background: #e0c000;
  transform: scale(1.1);
}

/* ==========================
   Contenu Principal (Main)
========================== */
main {
  padding: 2rem 1rem;
  flex: 1;
}

/* ==========================
   HERO SECTION (Nouveau pour C-N Store)
========================== */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('/images/store-hero.png');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  margin-bottom: 3rem;
  border-radius: 1rem;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-hero {
  display: inline-block;
  background: #ffd700;
  color: #111;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background: #e0c000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-hero.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.btn-hero.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================
   PROMOTIONS SECTION
========================== */
.promo-section {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.promo-section h2 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.promo-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-card h3 {
  color: #ffd700;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.promo-card p {
  color: #f0f0f0;
  font-size: 1rem;
}

/* ==========================
   SEE MORE BUTTON
========================== */
.see-more {
  text-align: center;
  margin: 2rem 0;
}

.see-more .btn {
  display: inline-block;
  background: #ffd700;
  color: #111;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.see-more .btn:hover {
  background: #e0c000;
  transform: translateY(-3px);
}

/* ==========================
   Footer
========================== */
.site-footer {
  background-color: #111;
  color: #ddd;
  padding: 60px 20px 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-nav {
  flex: 1 1 auto;
}

.footer-nav a {
  color: #aaa;
  margin: 0 15px 10px 0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-social a {
  margin: 0 15px;
  font-size: 24px;
  color: #aaa;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #fff;
}

.footer-info {
  text-align: center;
  border-top: 1px solid #222;
  padding-top: 20px;
}

.footer-copy {
  margin: 0 0 5px 0;
  color: #888;
}

.footer-legal a {
  color: #666;
  text-decoration: none;
  margin: 0 10px;
}

.footer-legal a:hover {
  color: #aaa;
}

/* ==========================
   Menu Mobile
========================== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #1a1a1a;
  z-index: 1002;
  padding: 2.5rem 2rem;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.mobile-menu-panel.show {
  right: 0;
}

.mobile-menu-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-panel a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 15px 10px;
  display: block;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu-panel a:hover {
  background: #ffd700;
  color: #111;
}

.mobile-menu-panel a.active {
  background: #ffd700;
  color: #111;
  font-weight: bold;
}

.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}


/* ==========================
   Responsive Design
========================== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .header {
    padding: 8px 15px;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .btn-hero {
    display: block;
    margin: 10px auto;
    width: 80%;
  }
  
  .promo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  main {
    padding: 1.5rem 0.5rem;
  }
  
  .logo {
    height: 40px;
    width: 40px;
  }
  
  .round-button {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .hero-section {
    padding: 2rem 1rem;
  }
}

/* ==========================
   Classes utilitaires
========================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}