/* ------------------------------ */
/* 1) VARIABLES & GLOBAL RESET    */
/* ------------------------------ */
:root {
  --brand-color: #4A90E2;       /* bright blue */
  --brand-color-dark: #357ABD;  /* deeper blue */
  --text-color: #2c3e50;        /* dark slate blue */
  --light-text-color: #7f8c8d;  /* muted gray */
  --bg-color: #f9f9f9;          /* off-white background */
  --container-bg: #ffffff;      /* pure white for containers */
  --transition-speed: 0.3s;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevents horizontal scroll on small screens */
}

body {
  font-family: 'Poppins', 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 #e0e0e0;
  padding: 10px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-color);
}

/* Nav links style */
.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: 500;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--brand-color);
  transition: width var(--transition-speed) ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a:hover {
  color: var(--brand-color-dark);
}

/* 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) ease;
}

/* ------------------------------ */
/* 3) DROPDOWN MENUS              */
/* ------------------------------ */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--container-bg);
  min-width: 150px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity var(--transition-speed) ease;
  opacity: 0;
  pointer-events: none;
}

.dropdown-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.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) ease;
}

.dropdown-menu li a:hover {
  background-color: #f0f8ff;
}

.dropdown.active .dropdown-menu {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ------------------------------ */
/* 4) HERO SECTION                */
/* ------------------------------ */
/* Force hero to span full width and accommodate both image + text side by side */
.hero {
  width: 100%;
  display: flex;
  flex-wrap: wrap;             /* Allows stacking on small screens */
  align-items: center;
  justify-content: space-between;
  background-color: #c5d9f2;   /* Light blue background (adjust as needed) */
  padding: 60px 0;            /* Top/bottom spacing */
  box-sizing: border-box;
  margin: 0;                  /* Remove any default margins if present */
}

/* Hero image container */
.hero-img {
  flex: 1 1 50%;              /* Take up half the row on desktop */
  max-width: 600px;           /* Prevent the image from growing too large */
  margin: 0 auto;             /* Center horizontally if narrower than 50% */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Hero text/content container */
.hero-content {
  flex: 1 1 50%;
  max-width: 600px;           /* Keep text nicely readable */
  margin: 0 auto;
  padding: 0 20px;            /* Some horizontal padding for smaller screens */
  box-sizing: border-box;
  text-align: left;
  color: #2c3e50;             /* Dark text for contrast */
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.hero-button {
  display: inline-block;
  background-color: #4A90E2;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-button:hover {
  background-color: #357ABD;
  transform: translateY(-3px);
}

/* Responsive tweaks for tablets & phones */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;    /* Stack image and text vertically */
    padding: 40px 0;
  }

  .hero-img,
  .hero-content {
    flex: 1 1 100%;
    max-width: 90%;           /* Narrower on smaller screens */
    margin: 0 auto 20px;      /* Space between sections */
    text-align: center;
  }

  .hero-content {
    padding: 0;               /* Remove extra horizontal padding on mobile */
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}


/* ------------------------------ */
/* 5) SECTIONS                    */
/* ------------------------------ */
.section {
  padding: 60px 0;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--brand-color);
  font-weight: 600;
}

.section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--light-text-color);
  max-width: 800px;
  margin: 0 auto;
}

/* Alternate background */
.alt-bg {
  background-color: #edf2f7;
}

/* ------------------------------ */
/* 6) CARDS GRID (Prestations)    */
/* ------------------------------ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 40px;
}

.card {
  background-color: var(--container-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card::before {
  content: "";
  display: block;
  height: 5px;
  background: var(--brand-color);
}

.card h3 {
  font-size: 1.4rem;
  margin: 20px;
  color: var(--brand-color);
}

.card p,
.card ol {
  font-size: 0.95rem;
  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(--container-bg);
  padding: 10px 0;
  border-radius: 5px;
  text-decoration: none;
  transition: background var(--transition-speed) ease;
}

.card .btn:hover {
  background-color: var(--brand-color-dark);
}

/* .btnn style (for contact form submit) */
.btnn {
  background-color: var(--brand-color);
  color: var(--container-bg);
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-speed) ease;
}

.btnn:hover {
  background-color: var(--brand-color-dark);
}

/* ------------------------------ */
/* 7) CONTACT SECTION             */
/* ------------------------------ */
.contact-section {
  background-color: var(--container-bg);
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 40px auto 0;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background-color: #ffffff;
  color: var(--text-color);
  transition: border-color var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-color);
  outline: none;
}

.contact-form button {
  align-self: flex-start;
}

/* ------------------------------ */
/* 8) FOOTER                      */
/* ------------------------------ */
footer {
  background-color: var(--container-bg);
  padding: 40px 20px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.footer-content {
  color: var(--light-text-color);
  font-size: 0.95rem;
  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.1rem;
  color: var(--brand-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.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 ease;
  font-size: 0.9rem;
}

.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: 60px;
    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.1);
    padding: 15px 0;
    gap: 0;
    transition: transform var(--transition-speed) ease;
  }

  .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;
  }
}

/* ------------------------------ */
/* 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.2rem;
  margin: 20px;
  color: var(--container-bg);
  font-weight: 600;
  text-align: center;
}

/* ------------------------------ */
/* Devis section styling          */
/* ------------------------------ */
.devis-section {
  text-align: center;
  padding: 60px 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: 600;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  color: var(--text-color);
}

.devis-form .btnn {
  display: inline-block;
  background-color: var(--brand-color);
  color: var(--container-bg);
  border: none;
  padding: 14px 28px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-speed) ease;
}

.devis-form .btnn:hover {
  background-color: var(--brand-color-dark);
}

/* ------------------------------ */
/* Tarifs Section                 */
/* ------------------------------ */
.tarifs-section {
  text-align: center;
  padding: 60px 20px;
}

.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  text-align: left;
}

.tarifs-table th,
.tarifs-table td {
  border: 1px solid #ddd;
  padding: 12px;
}

.tarifs-table th {
  background-color: #f7f7f7;
  color: var(--text-color);
  font-weight: 600;
}

/* ------------------------------ */
/* Basic PC section styling       */
/* ------------------------------ */
.pc-section {
  text-align: center;
  padding: 60px 20px;
}

.pc-section ul {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--light-text-color);
}

/* ------------------------------ */
/* Payment Methods                */
/* ------------------------------ */
.payment-methods {
  margin-top: 50px;
  padding: 60px 20px;
  text-align: center;
}

.payment-content {
  display: flex;
  flex-wrap: wrap;        /* Allows wrapping on smaller screens */
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;      /* Constrain total width if desired */
  margin: 0 auto;
  padding: 0 20px;        /* Avoid edges on small screens */
  box-sizing: border-box;
}

.payment-image,
.payment-text {
  flex: 1 1 300px;        /* Ensure each can shrink on smaller devices */
  min-width: 250px;
  max-width: 600px;       /* Prevent them from getting too wide */
  margin: 0 auto;
}

.payment-text p {
  word-wrap: break-word;  /* Prevent overflow on very long words/URLs */
  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: 40px 20px;
  margin-top: 30px;
}

.device-hero h1 {
  color: var(--container-bg);
  font-size: 2.2rem;
  font-weight: 600;
}

/* ------------------------------ */
/* 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;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.device-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.device-card.dark {
  background-color: #f0f0f0;
}

.device-card.teal {
  background-color: var(--brand-color);
  color: var(--container-bg);
}

.card-icon {
  font-size: 2rem;
  margin-right: 15px;
}

.card-info {
  flex: 1;
}

.card-info h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.card-info p {
  font-size: 0.95rem;
  color: var(--light-text-color);
  margin-bottom: 8px;
}

.card-price {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ------------------------------ */
/* "Comment ça marche?" Heading   */
/* ------------------------------ */
.big-heading {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--brand-color);
  font-weight: 600;
}

.phone-howto {
  text-align: center;
  padding: 60px 20px;
}
