/*
 * Tech Renouveau – Dark neon theme
 * Palette : cyan et magenta sur fond bleu nuit.
 * Les animations et les effets de survol donnent un aspect futuriste inspiré des publicités M.T Ads.
 */

:root {
  --primary: #00f0ff;
  --secondary: #ff7be5;
  --bg-start: #041C32;
  --bg-middle: #04293A;
  --bg-end: #064663;
}

/* Liens généraux */
a {
  color: var(--secondary);
  text-decoration: underline;
  transition: color 0.3s;
}
a:hover {
  color: var(--primary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Montserrat', sans-serif;
  color: #e4f1f7;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-middle) 50%, var(--bg-end));
  background-size: 400% 400%;
  animation: gradient-x 20s ease infinite;
  min-height: 100%;
}

@keyframes gradient-x {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.nav-right a {
  color: #e4f1f7;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  text-decoration: none;
}
.nav-right a:hover,
.nav-right a.active {
  color: var(--primary);
}
.logo {
  width: 40px;
  height: 40px;
  display: block;
}

/* Hero section */
.hero {
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  background: url('assets/header-bg.png') center/cover no-repeat;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}
.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  z-index: 1;
}
.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 600px;
  z-index: 1;
}
.subscribe-form {
  display: flex;
  margin-top: 2rem;
  z-index: 1;
}
.subscribe-form input {
  padding: 0.75rem 1rem;
  border-radius: 4px 0 0 4px;
  border: none;
  outline: none;
  font-size: 1rem;
  width: 250px;
}
.subscribe-form button {
  padding: 0.75rem 1.5rem;
  border-radius: 0 4px 4px 0;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #041C32;
  background: var(--primary);
  font-weight: 600;
  transition: transform 0.3s;
}
.subscribe-form button:hover {
  transform: scale(1.05);
}

/* Section titles and containers */
.section-offres {
  padding: 4rem 2rem;
  text-align: center;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card component */
.card {
  background: linear-gradient(145deg, rgba(4, 28, 50, 0.8), rgba(6, 70, 99, 0.8));
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #c8dbe5;
}
.card .btn-primary {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: var(--primary);
  color: #041C32;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s;
}
.card .btn-primary:hover {
  transform: scale(1.05);
}

/* Buttons */
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.btn-secondary:hover {
  background: var(--primary);
  color: #041C32;
  transform: scale(1.05);
}

/* Filter buttons */
.filters {
  text-align: center;
  padding: 2rem;
}
.filter-btn {
  margin: 0 1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: #041C32;
}

/* Sub hero for inner pages */
.sub-hero {
  padding: 10rem 2rem 4rem;
  text-align: center;
}
.sub-hero h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.sub-hero p {
  color: #c8dbe5;
}

/* Blog */
.section-blog {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: linear-gradient(145deg, rgba(4, 28, 50, 0.8), rgba(6, 70, 99, 0.8));
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}
.blog-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.blog-card h3 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.blog-card p {
  margin-bottom: 1rem;
  color: #c8dbe5;
}
.blog-card .btn-primary {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: var(--primary);
  color: #041C32;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s;
}
.blog-card .btn-primary:hover {
  transform: scale(1.05);
}

/* Offer detail */
.offer-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
.offer-detail img {
  width: 350px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.offer-info {
  flex: 1;
  min-width: 300px;
}
.offer-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.offer-info p {
  margin-bottom: 1rem;
  color: #c8dbe5;
  line-height: 1.5;
}
.offer-info .price {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.offer-info .discount {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.offer-info .guarantee {
  margin-bottom: 1rem;
}
.offer-info .btn-primary {
  padding: 0.75rem 1.5rem;
}

/* Legal sections */
.legal {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.legal h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.legal p {
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #c8dbe5;
}
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #688ba8;
}

/* Utility */
.center {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-right {
    margin-top: 0.5rem;
  }
  .offer-detail {
    flex-direction: column;
  }
  .offer-info h2 {
    font-size: 1.6rem;
  }
}