/* ------------------------------ */
/* 1) VARIABLES & GLOBAL RESET    */
/* ------------------------------ */
:root {
  --brand-color: #FF4081;       /* Vibrant pink accent */
  --brand-color-dark: #F50057;  /* Darker pink */
  --text-color: #E0E0E0;        /* Light gray text */
  --light-text-color: #B0BEC5;  /* Muted light gray */
  --bg-color: #121212;          /* Deep dark background */
  --container-bg: #1E1E1E;      /* Dark container background */
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

img {
  max-width: 100%;
  display: block;
}

/* ------------------------------ */
/* 2) HEADER / NAVBAR             */
/* ------------------------------ */
header {
  background: var(--container-bg);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid #2c2c2c;
  padding: 15px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-color);
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-speed);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand-color);
  transition: width var(--transition-speed);
}

.nav-links li a:hover {
  color: var(--brand-color);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Burger menu for mobile */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger span {
  height: 3px;
  width: 25px;
  background: var(--text-color);
  margin-bottom: 5px;
  border-radius: 2px;
  transition: all var(--transition-speed);
}

/* ------------------------------ */
/* 3) DROPDOWN MENUS              */
/* ------------------------------ */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: var(--container-bg);
  min-width: 150px;
  border: 1px solid #2c2c2c;
  list-style: none;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity var(--transition-speed);
  opacity: 0;
  pointer-events: none;
}

.dropdown-menu li {
  border-bottom: 1px solid #2c2c2c;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 15px;
  color: var(--text-color);
  transition: background var(--transition-speed);
}

.dropdown-menu li a:hover {
  background-color: #333333;
}

.dropdown.active .dropdown-menu {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ------------------------------ */
/* 4) HERO SECTION                */
/* ------------------------------ */
.hero {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E1E1E, #2c2c2c);
  padding: 80px 20px;
  margin: 0;
}

.hero-img {
  flex: 1 1 45%;
  max-width: 500px;
  margin: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.hero-content {
  flex: 1 1 45%;
  margin: 20px;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--brand-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--light-text-color);
}

.hero-button {
  display: inline-block;
  background-color: var(--brand-color);
  color: var(--bg-color);
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition-speed), transform var(--transition-speed);
}

.hero-button:hover {
  background-color: var(--brand-color-dark);
  transform: translateY(-5px);
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 60px 20px;
  }
  .hero-img, .hero-content {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 10px 0;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* ------------------------------ */
/* 5) SECTIONS                    */
/* ------------------------------ */
.section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--container-bg);
  margin-bottom: 20px;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--brand-color);
  font-weight: 700;
}

.section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--light-text-color);
  max-width: 800px;
  margin: 0 auto;
}

/* Alternate section background */
.alt-bg {
  background-color: #1E1E1E;
}

/* ------------------------------ */
/* 6) CARDS GRID (Prestations)    */
/* ------------------------------ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 40px;
}

.card {
  background-color: var(--container-bg);
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.card::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--brand-color);
}

.card h3 {
  font-size: 1.6rem;
  margin: 20px;
  color: var(--brand-color);
}

.card p,
.card ol {
  font-size: 1rem;
  color: var(--light-text-color);
  padding: 0 20px 20px;
  line-height: 1.6;
}

/* Button in card */
.card .btn {
  display: block;
  width: calc(100% - 40px);
  margin: 20px;
  text-align: center;
  background-color: var(--brand-color);
  color: var(--bg-color);
  padding: 10px 0;
  border-radius: 50px;
  text-decoration: none;
  transition: background var(--transition-speed);
}

.card .btn:hover {
  background-color: var(--brand-color-dark);
}

/* ------------------------------ */
/* 7) CONTACT SECTION             */
/* ------------------------------ */
.contact-section {
  background-color: var(--container-bg);
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #2c2c2c;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 40px auto 0;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #333333;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  background-color: #1E1E1E;
  color: var(--text-color);
  transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-color);
  outline: none;
}

.contact-form button {
  align-self: flex-start;
  background-color: var(--brand-color);
  color: var(--bg-color);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-speed);
}

.contact-form button:hover {
  background-color: var(--brand-color-dark);
}

/* ------------------------------ */
/* 8) FOOTER                      */
/* ------------------------------ */
footer {
  background-color: var(--container-bg);
  padding: 40px 20px;
  border-top: 1px solid #2c2c2c;
  text-align: center;
}

.footer-content {
  color: var(--light-text-color);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.footer-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h3 {
  font-size: 1.3rem;
  color: var(--brand-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--light-text-color);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1rem;
}

.footer-col ul li a:hover {
  color: var(--brand-color);
}

.bottom-row p {
  margin: 10px 0;
}

/* ------------------------------ */
/* RESPONSIVE MEDIA QUERIES      */
/* ------------------------------ */
@media screen and (max-width: 768px) {
  .burger {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 89px;
    right: 20px;
    background-color: var(--container-bg);
    flex-direction: column;
    width: 200px;
    transform: translateX(100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    padding: 15px 0;
    gap: 0;
    transition: transform var(--transition-speed);
  }
  
  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }
  
  .nav-links.nav-active {
    transform: translateX(0%);
  }
}

@media screen and (max-width: 992px) {
  .nav-links {
    gap: 1rem;
    right: 0px;
  }
}

/* ------------------------------ */
/* Minimal hero for the Devis page */
/* ------------------------------ */
.hero-devis {
  position: relative;
  width: 100%;
  min-height: 30vh;
  background-color: var(--brand-color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-devis .hero-content h1 {
  font-size: 2.5rem;
  margin: 20px;
  color: var(--bg-color);
  font-weight: 700;
}

/* ------------------------------ */
/* Devis section styling          */
/* ------------------------------ */
.devis-section {
  text-align: center;
  padding: 80px 20px;
}

.devis-form {
  margin-top: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 15px;
  border: 1px solid #333333;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  background-color: #1E1E1E;
  color: var(--text-color);
}

.devis-form .btnn {
  display: inline-block;
  background-color: var(--brand-color);
  color: var(--bg-color);
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  transition: background var(--transition-speed);
}

.devis-form .btnn:hover {
  background-color: var(--brand-color-dark);
}

/* ------------------------------ */
/* Tarifs Section                 */
/* ------------------------------ */
.tarifs-section {
  text-align: center;
  padding: 80px 20px;
}

.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  text-align: left;
}

.tarifs-table th,
.tarifs-table td {
  border: 1px solid #333333;
  padding: 15px;
}

.tarifs-table th {
  background-color: #2c2c2c;
  color: var(--text-color);
  font-weight: 700;
}

/* ------------------------------ */
/* Basic PC section styling       */
/* ------------------------------ */
.pc-section {
  text-align: center;
  padding: 80px 20px;
}

.pc-section ul {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--light-text-color);
}

/* ------------------------------ */
/* Payment Methods                */
/* ------------------------------ */
.payment-methods {
  margin-top: 50px;
  padding: 80px 20px;
  text-align: center;
}

.payment-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.payment-image,
.payment-text {
  flex: 1 1 300px;
  min-width: 250px;
  max-width: 600px;
  margin: 0 auto;
}

.payment-text p {
  word-wrap: break-word;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .payment-content {
    flex-direction: column;
    text-align: center;
  }
  .payment-image,
  .payment-text {
    max-width: 100%;
    margin: 0 auto 20px;
  }
}

/* ------------------------------ */
/* Minimal device hero            */
/* ------------------------------ */
.device-hero {
  background: var(--brand-color);
  text-align: center;
  padding: 60px 20px;
  margin-top: 30px;
}

.device-hero h1 {
  color: var(--bg-color);
  font-size: 2.5rem;
  font-weight: 700;
}

/* ------------------------------ */
/* Device Cards Section           */
/* ------------------------------ */
.device-cards .container {
  max-width: 700px;
  margin: 0 auto;
}

.device-card {
  background-color: var(--container-bg);
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #2c2c2c;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.device-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.device-card.dark {
  background-color: #2c2c2c;
}

.device-card.teal {
  background-color: var(--brand-color);
  color: var(--bg-color);
}

.card-icon {
  font-size: 2rem;
  margin-right: 15px;
}

.card-info {
  flex: 1;
}

.card-info h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.card-info p {
  font-size: 1rem;
  color: var(--light-text-color);
  margin-bottom: 8px;
}

.card-price {
  font-weight: 700;
  font-size: 1rem;
}

/* ------------------------------ */
/* "Comment ça marche?" Heading   */
/* ------------------------------ */
.big-heading {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--brand-color);
  font-weight: 700;
}

.phone-howto {
  text-align: center;
  padding: 80px 20px;
}
